46f16893acbd25872ba14cf1a30a445c049558e7
[gnulib.git] / ChangeLog
1 2010-09-28  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'poll-h'.
4         * modules/poll-h-tests: New file.
5         * tests/test-poll-h.c: New file.
6
7 2010-09-28  Bruno Haible  <bruno@clisp.org>
8
9         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10         * modules/poll-h (Depends-on): Add 'extensions'.
11
12 2010-09-28  Bruno Haible  <bruno@clisp.org>
13
14         New module 'poll-h'.
15         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16         (poll): Use modern idiom.
17         * modules/poll-h: New file.
18         * modules/poll (Files): Remove lib/poll.in.h.
19         (Depends-on): Add poll-h.
20         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22         * m4/poll_h.m4: New file.
23         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25         and invoke gl_REPLACE_POLL_H.
26         * lib/poll.c: Use common idiom.
27         * tests/test-poll.c: Likewise.
28         * doc/posix-headers/poll.texi: Mention the poll-h module.
29         Suggested by Eric Blake.
30
31 2010-09-26  Bruno Haible  <bruno@clisp.org>
32
33         sys_wait: Implement WSTOPSIG.
34         * lib/sys_wait.in.h (WSTOPSIG): New macro.
35         Reported by Simon Josefsson.
36
37 2010-09-26  Simon Josefsson  <simon@josefsson.org>
38
39         stdlib, sys_wait: Avoid compilation error on mingw.
40         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
41
42 2010-09-26  Bruno Haible  <bruno@clisp.org>
43
44         stdlib tests: Avoid code duplication.
45         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
46         * modules/sys_wait-tests (Files): Likewise.
47         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
48         * tests/test-stdlib.c: Include test-sys_wait.h.
49         (main): Invoke test_sys_wait_macros.
50         * tests/test-sys_wait.c: Include test-sys_wait.h.
51         (main): Invoke test_sys_wait_macros.
52
53 2010-09-25  Simon Josefsson  <simon@josefsson.org>
54
55         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
56         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
57         sure Windows sockets are working before calling getaddrinfo.
58         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
59         * doc/gnulib.texi (Windows sockets): Fix typo.
60
61 2010-09-25  Bruno Haible  <bruno@clisp.org>
62
63         Tests for module 'regex-quote'.
64         * modules/regex-quote-tests: New file.
65         * tests/test-regex-quote.c: New file.
66
67         New module 'regex-quote'.
68         * lib/regex-quote.h: New file.
69         * lib/regex-quote.c: New file.
70         * modules/regex-quote: New file.
71         Suggested by Reuben Thomas <rrt@sc3d.org>.
72
73 2010-09-24  Bruno Haible  <bruno@clisp.org>
74
75         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
76         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
77
78 2010-09-23  Bruno Haible  <bruno@clisp.org>
79
80         setenv: Relax license.
81         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
82         Blake.
83         Requested by Eric Blake.
84
85 2010-09-22  Bruno Haible  <bruno@clisp.org>
86
87         termios: Relax license.
88         * modules/termios (License): Change to LGPLv2+.
89         Requested by Eric Blake.
90
91 2010-09-22  Bruno Haible  <bruno@clisp.org>
92
93         threadlib: Allow the package to change the default to 'no'.
94         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
95         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
96         Reported by Paul Eggert.
97
98 2010-09-22  Pádraig Brady  <P@draigbrady.com>
99             Bruno Haible  <bruno@clisp.org>
100
101         Fix endless loop in mbmemcasecoll.
102         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
103         byte.
104         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
105
106 2010-09-22  Bruno Haible  <bruno@clisp.org>
107
108         Tests for module 'memcoll'.
109         * modules/memcoll-tests: New file.
110         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
111
112         memcoll, xmemcoll: Clarify size vs. length.
113         * modules/memcoll.c (memcoll0): Clarify specification.
114         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
115         passed to collate_error.
116
117 2010-09-22  Bruno Haible  <bruno@clisp.org>
118
119         Tests for module 'memcasecmp'.
120         * modules/memcasecmp-tests: New file.
121         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
122
123 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
124
125         * lib/pthread.in.h: Add split double-inclusion guard, and include
126         system <pthread.h> if there is one.  Use @@-style as in other
127         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
128         pthread.h doesn't.
129         (pthread_mutexattr_destroy, pthread_mutexattr_init):
130         (pthread_mutexattr_settype, pthread_mutex_trylock):
131         New static inline functions, if there's no system <pthread.h>.
132         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
133         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
134         Approximate with mutexes if the system lacks spinlocks, as in
135         MacOS.
136         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
137         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
138         @@-style.  Check for spinlocks separately.
139         (gl_PTHREAD_DEFAULTS): New macro.
140         * modules/pthread: Redo to use a more typical style for in.h files.
141
142 2010-09-21  Eric Blake  <eblake@redhat.com>
143
144         net_if: enhance tests
145         * tests/test-net_if.c (main): Move signature checks earlier.
146         Print failures to stderr.
147         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
148         Document the bug that we do not yet fix.
149
150 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
151
152         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
153         about gnulib, not GSS.
154
155 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
156
157         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
158         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
159         for Emacs.
160         * build-aux/pmccabe2html: Make Makefile.am example code more
161         cut-and-paste friendly.
162
163 2010-09-21  Simon Josefsson  <simon@josefsson.org>
164
165         * tests/test-net_if.c: New file.
166         * modules/net_if-tests: New file.
167
168 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
169
170         pthread: add pthread_spin_destroy
171         * lib/pthread.in.h (pthread_spin_destroy): New function.
172
173 2010-09-19  Bruno Haible  <bruno@clisp.org>
174
175         gnulib-tool: Fix --help output.
176         * gnulib-tool (func_usage): Fix help message.
177         Reported by Reuben Thomas <rrt@sc3d.org>.
178
179 2010-09-18  Jim Meyering  <meyering@redhat.com>
180
181         maint.mk: avoid unexpanded \n in two diagnostics
182         * top/maint.mk (sc_prohibit_always_true_header_tests):
183         Don't use a literal \n in a halt=... assignment.  It would not be
184         expanded, and the two \n bytes would appear in the diagnostic output
185         rather than the desired newline.  Use halt=$$(printf ... instead.
186         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
187
188 2010-09-18  Bruno Haible  <bruno@clisp.org>
189
190         netinet_in: Doc tweak.
191         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
192         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
193
194 2010-09-18  Jim Meyering  <meyering@redhat.com>
195
196         init.sh: correct an outdated comment
197         * tests/init.sh (create_exe_shims_):  s/function/alias/
198
199         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
200         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
201         a file named "*.exe" is removed between the glob expansion and the
202         processing of that oddly named file.
203
204 2010-09-17  Eric Blake  <eblake@redhat.com>
205
206         mirbsd: add some more support
207         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
208         in BSD family.
209         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
210         devices as OpenBSD.
211         * m4/host-os.m4 (mirbsd): Add MirBSD.
212
213         tests: fix unportable assumption on sys/wait.h
214         * tests/test-sys_wait.c (main): Relax test.
215         * tests/test-stdlib.c (main): Likewise.
216
217         init.sh: accomodate directory with no .exes
218         * tests/init.sh: Accomodate directory containing only scripts.
219
220         tests: avoid compiler warning
221         * tests/test-stdlib.c (main): Use the variable.
222
223         fdutimens, fdutimensat: update signature, again
224         * lib/utimens.h (gl_futimens): Delete, and move signature...
225         (fdutimens): ...here.
226         (fdutimensat): Rearrange signature.
227         (lutimensat): Rename variable for clarity.
228         * lib/fdutimensat.c (fdutimensat): Update signature.
229         * lib/utimens.c (fdutimens): Likewise.
230         (gl_futimens): Delete.
231         (utimens, lutimens): Update callers.
232         * lib/futimens.c (futimens): Likewise.
233         * tests/test-fdutimensat.c: Likewise.
234         * tests/test-utimens.c: Likewise.
235         * tests/test-futimens.h: Update comment.
236         * NEWS: Mention this.
237         Suggested by Paul Eggert.
238
239 2010-09-17  Bruno Haible  <bruno@clisp.org>
240
241         Take over the maintenance of some older macros from Autoconf.
242         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
243         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
244         GNU Autoconf.
245         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
246         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
247
248 2010-09-17  Eric Blake  <eblake@redhat.com>
249
250         fdutimensat: drop atflag validation
251         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
252         with valid fd, to close a race scenario where futimens is
253         unsupported and FILE was replaced by a symlink.
254         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
255         accordingly.
256         Suggested by Paul Eggert.
257
258 2010-09-16  Bruno Haible  <bruno@clisp.org>
259
260         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
261         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
262
263 2010-09-16  Bruno Haible  <bruno@clisp.org>
264
265         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
266         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
267         login_tty exists.
268         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
269
270 2010-09-16  Bruno Haible  <bruno@clisp.org>
271
272         login_tty: Make the replacement code work on BSD systems.
273         * lib/login_tty.c: Include <sys/ioctl.h>.
274         (login_tty): Use ioctl TIOCSCTTY when available.
275         * modules/login_tty (Depends-on): Add sys_ioctl.
276         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
277
278 2010-09-16  Bruno Haible  <bruno@clisp.org>
279
280         login_tty: Stricter unit test.
281         * modules/login_tty-tests (Depends-on): Add tcgetsid.
282         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
283         and tcgetsid() after login_tty.
284         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
285
286 2010-09-16  Bruno Haible  <bruno@clisp.org>
287
288         New module 'tcgetsid'.
289         * lib/tcgetsid.c: New file.
290         * m4/tcgetsid.m4: New file.
291         * modules/tcgetsid: New file.
292         * modules/termios (Depends-on): Add c++defs, warn-on-use.
293         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
294         GNULIB_TCGETSID, HAVE_TCGETSID.
295         * lib/termios.in.h: Include <sys/types.h>.
296         (tcgetsid): New declaration.
297         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
298         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
299         * doc/posix-functions/tcgetsid.texi: Mention the new module.
300         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
301
302 2010-09-16  Bruno Haible  <bruno@clisp.org>
303
304         Tests for module 'termios'.
305         * modules/termios-c++-tests: New file.
306         * modules/termios-tests: New file.
307         * tests/test-termios-c++.cc: New file.
308         * tests/test-termios.c: New file.
309
310         New module 'termios'.
311         * modules/termios: New file.
312         * lib/termios.in.h: New file.
313         * m4/termios_h.m4: New file.
314         * doc/posix-headers/termios.texi: Mention the new module.
315
316 2010-09-16  Eric Blake  <eblake@redhat.com>
317
318         fdutimensat: add an atflag parameter
319         * lib/fdutimensat.c (fdutimensat): Add new parameter.
320         * lib/utimens.h (fdutimensat): Update prototype.
321         * tests/test-fdutimensat.c: Adjust test to match.
322         * NEWS: Document the change.
323         Suggested by Paul Eggert.
324
325 2010-09-16  Bruno Haible  <bruno@clisp.org>
326
327         Fix typos in comments.
328         * lib/striconveh.h: Fix typo in comment.
329         * lib/login_tty.c (login_tty): Likewise.
330
331 2010-09-15  Bruno Haible  <bruno@clisp.org>
332
333         stdlib: clarify MirBSD WEXITSTATUS bug
334         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
335         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
336
337 2010-09-15  Eric Blake  <eblake@redhat.com>
338
339         stdlib: work around MirBSD WEXITSTATUS bug
340         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
341         * modules/stdlib (Depends-on): Add sys_wait.
342         * tests/test-sys_wait.c (main): Enhance test.
343         * tests/test-stdlib.c (main): Likewise.
344         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
345
346         docs: mention MacOS issue with WEXITSTATUS(constant)
347         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
348         issue.
349         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
350
351         strnlen: add tests
352         * modules/strnlen-tests: New file.
353         * tests/test-strnlen.c: Likewise.
354
355 2010-09-14  Bruno Haible  <bruno@clisp.org>
356
357         unistr/base: Avoid link errors when module 'libunistring' is also used.
358         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
359         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
360         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
361         Declare also when HAVE_LIBUNISTRING is set.
362         Reported by Pádraig Brady <P@draigbrady.com>.
363
364 2010-09-14  Eric Blake  <eblake@redhat.com>
365
366         test-rawmemchr: make more robust
367         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
368         (Depends-on, configure.ac): Add needed prerequisites to use it.
369         * modules/memchr-tests (Files, Depends-on, configure.ac):
370         Likewise, to avoid implicit reliance on memchr module prereqs.
371         * tests/test-memchr.c (main): Ensure proper masking.
372         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
373         reads.
374
375         memchr: detect glibc Alpha bug
376         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
377         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
378         Alpha.
379         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
380         * tests/test-memchr.c (main): Enhance test.
381         Reported by Nelson H. F. Beebe.
382
383 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
384
385         fts, getcwd, glob: audit for dirfd returning -1
386         * lib/fts.c (opendir): Remove #define; no longer used.
387         (opendirat): New arg PDIR_FD.  All callers changed.
388         (fts_build, _opendir2): Use new opendirat to avoid the need for
389         dirfd, or for checking whether dirfd returns a negative value.
390         Don't use opendir; always use openat followed by fdopendir.
391         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
392         it.
393         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
394         returns -1 here.
395         * modules/fts (Depends-on): Remove dirfd.
396         * modules/getcwd (Depends-on): Likewise.
397
398 2010-09-13  Eric Blake  <eblake@redhat.com>
399
400         float: fix broken MirBSD header
401         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
402         * doc/posix-headers/float.texi (float.h): Document it.
403
404 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
405
406         fts: use O_NOFOLLOW to avoid race condition when opening a directory
407         * lib/fts.c (opendirat): New arg extra_flags.
408         (__opendir2): Use it to avoid following symlinks when opening
409         a directory, if symlinks are not supposed to be followed.  See
410         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
411
412         fdopendir: preserve argument fd before returning
413         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
414         (fdopendir_with_dup, fd_clone_opendir): New static functions.
415         (fdopendir): Use them, arranging for FD to be open to the same
416         directory that it was when it started.  (It might be temporarily
417         closed while fdopendir is running, so this not thread- or
418         signal-safe.)  Be careful to do the right thing even when file
419         descriptors are scarce and dup fails with errno == EMFILE.  See
420         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
421
422 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
423
424         regex: Pass the system regex if its only problem is 32-bit regoff_t.
425         * NEWS: Document change.
426         * m4/regex.m4: Disable test for regoff_t size.
427
428 2010-09-13  Jim Meyering  <meyering@redhat.com>
429
430         fts: don't operate on an invalid file descriptor after failed dup
431         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
432         negative file descriptor.
433
434 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
435
436         savedir: add streamsavedir, deprecate fdsavedir
437         * NEWS: Mention deprecation of fdsavedir.
438         * lib/savedir.c (streamsavedir): New extern function, whose name
439         ends in "savedir" to be consistent with the others.  This differs
440         from savedirstream in that it doesn't close its argument.  The
441         next version of GNU tar will use this instead of fdsavedir, to
442         avoid some race conditions and conserve file descriptors.
443         (savedirstream): Reimplement as a wrapper around streamsavedir.
444         (fdsavedir): Add a comment deprecating this function.  As far as
445         I know, only GNU tar used it, and GNU tar doesn't need it any more.
446         * lib/savedir.h (streamsavedir): New decl.
447         (fdsavedir): Add a comment deprecating this.
448
449 2010-09-10  Bruno Haible  <bruno@clisp.org>
450
451         langinfo: Fix last commit.
452         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
453         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
454         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
455
456 2010-09-10  Bruno Haible  <bruno@clisp.org>
457
458         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
459         * lib/progreloc.c (O_EXEC): Define fallback.
460
461 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
462
463         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
464         * NEWS: Document recent changes to fcntl-h.
465         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
466         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
467         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
468         Similarly for O_SEARCH; this last was already true, but not documented.
469         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
470         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
471         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
472         Likewise.
473         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
474         is zero, not whether it is defined.
475         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
476         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
477         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
478
479 2010-09-10  Bruno Haible  <bruno@clisp.org>
480
481         langinfo, nl_langinfo: Fix for IRIX 5.3.
482         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
483         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
484         HAVE_LANGINFO_YESEXPR.
485         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
486         HAVE_LANGINFO_YESEXPR.
487         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
488         HAVE_LANGINFO_T_FMT_AMPM is 0.
489         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
490         HAVE_LANGINFO_YESEXPR is 0.
491         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
492         NOEXPR.
493         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
494         * doc/posix-functions/nl_langinfo.texi: Likewise.
495         Reported by Eric Blake.
496
497 2010-09-10  Bruno Haible  <bruno@clisp.org>
498
499         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
500         * doc/glibc-functions/login_tty.texi: Mention the include file problem
501         on FreeBSD 8.0 and OpenBSD 4.6.
502         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
503         * m4/pty_h.m4 (gl_PTY_H): Likewise.
504         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
505         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
506         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
507         ac_includes_default.
508         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
509
510 2010-09-09  Eric Blake  <eblake@redhat.com>
511
512         strsignal: work around NetBSD bug
513         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
514         * lib/string.in.h (includes): Likewise.
515         * doc/posix-functions/strsignal.texi (strsignal): Document the
516         bug.
517         Reported by Nelson H. F. Beebe.
518
519         gnulib-tool: work with NetBSD /bin/sh
520         * gnulib-tool (func_cache_var, func_cache_lookup_module)
521         (func_get_description, func_get_comment, func_get_status)
522         (func_get_notice, func_get_applicability, func_get_filelist)
523         (func_get_dependencies, func_get_autoconf_early_snippet)
524         (func_get_autoconf_snippet, func_get_automake_snippet)
525         (func_get_include_directive, func_get_link_directive)
526         (func_get_license, func_get_maintainer, func_import): Avoid
527         shell syntax errors from parsing syntax extensions.
528
529 2010-09-09  Bruno Haible  <bruno@clisp.org>
530
531         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
532         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
533         a reliable way to determine whether the 'alias' command works.
534
535 2010-09-08  Jim Meyering  <meyering@redhat.com>
536
537         init.sh: penalize a set-x-impaired shell; don't disqualify it
538         * tests/init.sh: Too many shells corrupt application stderr when
539         you set -x, so we can't afford to disqualify them, since at least
540         on Irix-6.5, that would disqualify all bourne shells.
541         Instead, use a two-pass approach.
542         On the first pass, try to find a shell that meets the stricter
543         condition that set -x does not corrupt stderr.
544         If no shell meets the stricter condition, retest each candidate
545         shell, but without that extra condition.  Finally, when
546         VERBOSE=yes is requested and set -x might cause trouble, simply
547         issue a warning and refrain from enabling debug output.
548
549 2010-09-08  Eric Blake  <eblake@redhat.com>
550
551         unsetenv: fix OpenBSD bug
552         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
553         * doc/posix-functions/unsetenv.texi (unsetenv): Update
554         documentation.
555         Reported by Jim Meyering.
556
557         strtod: work around IRIX 6.5 bug
558         * lib/strtod.c (strtod): Reparse number on shorter string if
559         exponent parse was invalid.
560         * tests/test-strtod.c (main): Add check for "0x1p 2".
561         Reported by Tom G. Christensen.
562
563         getopt: optimize previous patch
564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
565         empty variable.  Speed up awk script.
566         Reported by Paolo Bonzini.
567
568 2010-09-08  Jim Meyering  <meyering@redhat.com>
569
570         test.sh: disqualify shells for which set -x corrupts stderr
571         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
572         and OpenBSD 4.7.  They make it so with "set -x", environment settings
573         appear in stderr output.  For example, this command:
574             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
575         prints "P=1" on those two systems:
576
577 2010-09-08  Bruno Haible  <bruno@clisp.org>
578
579         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
580         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
581         commands, because some shells ignore redirections when there is an
582         error in the command lookup.
583         Reported by Eric Blake.
584
585 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
586
587         * lib/regex.h: Fix a mention of `regex_compile' (should be
588         `re_compile_pattern').
589         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
590         (re_set_registers): Correct name of parameter in comment.
591
592         * doc/regex.texi: Add documentation for missing syntax flags.
593         Remove commented-out documentation of defunct syntax option
594         RE_NO_EMPTY_ALTS.
595         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
596         Add documentation of re_set_registers.
597         Document trick to re-use a pattern buffer by setting fastmap manually.
598         Update documentation of struct re_pattern_buffer per public members.
599         Uncomment documentation of equivalence class operators and
600         collating symbol operators, since they are now implemented,
601         Explain leftmost-longest matching in relation to alternatives.
602         Tidy documentation of substring matching.
603         Remove POSIX documentation, which is done better in
604         glibc, and refer the reader there. Keep BSD API documentation, as
605         that is not readily available elsewhere.
606
607 2010-09-07  Eric Blake  <eblake@redhat.com>
608
609         getopt: handle POSIXLY_CORRECT set but not exported
610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
611         export state of POSIXLY_CORRECT, due to bash set -o posix.
612         Reported by Dustin J. Mitchell.
613
614 2010-09-05  Bruno Haible  <bruno@clisp.org>
615
616         gnulib-tool: Highlight the changed options.
617         * gnulib-tool (func_usage): Display the --import, --add-import,
618         --remove-import explanations in bold font.
619
620 2010-09-06  Karl Berry  <karl@gnu.org>
621
622         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
623
624 2010-09-05  Bruno Haible  <bruno@clisp.org>
625
626         uniwidth/width: Update comment.
627         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
628         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
629
630 2010-09-05  Bruno Haible  <bruno@clisp.org>
631
632         isinf, isnan: Relax license.
633         * modules/isinf (License): Change from GPL to LGPL, with consent from
634         Ben Pfaff.
635         * modules/isnan (License): Likewise.
636         Requested by Ludovic Courtès.
637
638 2010-09-04  Bruno Haible  <bruno@clisp.org>
639
640         gnulib-tool: Help migration from --import to --add-import or --update.
641         * gnulib-tool: Emit a verbose error message when --import is used
642         without any module name.
643
644 2010-09-04  Bruno Haible  <bruno@clisp.org>
645
646         Update doc about gnulib-tool.
647         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
648         'gnulib-tool --update' in more detail.
649         Reported by Eric Blake.
650
651 2010-09-04  Bruno Haible  <bruno@clisp.org>
652
653         gnulib-tool: Change --import. New options --add/remove-import.
654         * gnulib-tool: New options --add-import, --remove-import.
655         (func_usage): Document them.
656         (have_associative): Define always.
657         (func_import): In import mode, don't merge the specified settings with
658         the cached settings. Implement remove-import mode.
659         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
660         Explain when to use them versus --import.
661         (Simple update): Use --add-import instead of --import.
662         * NEWS: Mention the change.
663
664 2010-09-04  Bruno Haible  <bruno@clisp.org>
665
666         * doc/gnulib-tool.texi (Initial import): Update paragraph about
667         separate gnulib.mk.
668
669 2010-09-04  Bruno Haible  <bruno@clisp.org>
670
671         gnulib-tool: Don't talk about CVS any more.
672         * gnulib-tool (func_usage, func_import): Write "version control"
673         instead of CVS.
674
675 2010-09-04  Jim Meyering  <meyering@redhat.com>
676
677         maint.mk: avoid obscure sc_copyright_check failure in coreutils
678         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
679         false positives (whose names may be ill-chosen) when searching
680         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
681         would cause a false-positive.
682
683         avoid coreutils "make distcheck" failure
684         Coreutils tests with an absolute build directory name that contains
685         a space.  Not quoting this directory name caused a failure.
686         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
687         * tests/test-vc-list-files-cvs.sh: Likewise.
688
689 2010-09-04  Bruno Haible  <bruno@clisp.org>
690
691         gnulib-tool: Avoid error when run in a package without Makefile.am.
692         * gnulib-tool: When collecting the m4dirs in a package that does not
693         have a Makefile.am, eliminate those directories that contain no
694         gnulib-cache.m4. Fix expression that counts these directories.
695
696 2010-09-04  Bruno Haible  <bruno@clisp.org>
697
698         update-copyright test: Improve output when perl is missing or too old.
699         * tests/test-update-copyright.sh: Move test of Perl version down after
700         the test whether Perl exists. Provide an explanation relating Perl's
701         error message to Automake's SKIP: message.
702
703 2010-09-04  Bruno Haible  <bruno@clisp.org>
704
705         Don't augment PATH in TESTS_ENVIRONMENT.
706         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
707         set abs_aux_dir instead of augmenting PATH.
708         * modules/vc-list-files-tests (Makefile.am): Likewise.
709         * tests/test-update-copyright.sh: Augment PATH here.
710         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
711         path_prepend_.
712         * tests/test-vc-list-files-git.sh: Likewise.
713
714 2010-09-04  Jim Meyering  <meyering@redhat.com>
715
716         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
717         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
718
719 2010-09-04  Bruno Haible  <bruno@clisp.org>
720
721         strdup: Fix compilation error in C++ mode.
722         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
723         the macro.
724
725 2010-09-04  Bruno Haible  <bruno@clisp.org>
726
727         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
728         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
729         macro into a function.
730         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
731
732 2010-09-04  Bruno Haible  <bruno@clisp.org>
733
734         Set PATH_SEPARATOR the same way autoconf does.
735         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
736         the value of PATH_SEPARATOR the same way autoconf-generated configure
737         scripts do.
738         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
739         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
740
741 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
742
743         Set PATH_SEPARATOR the same way autoconf does.
744         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
745         the same way autoconf-generated configure scripts do.
746         * posix-modules: Likewise.
747
748 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
749
750         hash: fix safe_hasher const typo
751         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
752         const; otherwise, there is a type error later.
753
754 2010-09-02  Jim Meyering  <meyering@redhat.com>
755
756         test-update-copyright.sh: require perl 5.8.0
757         * tests/test-update-copyright.sh: Require 5.8.0,
758         which Tom G. Christensen has confirmed is adequate,
759         while 5.6.1 is not.
760
761 2010-09-02  Eric Blake  <eblake@redhat.com>
762
763         tests: init.sh improvements for re-exec'ing with zsh
764         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
765         -vx through shell re-exec.
766         Reported by Tom G. Christensen.
767
768         wctype: fix typo in previous commit
769         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
770         Reported by Ludovic Courtès.
771
772 2010-09-02  Jim Meyering  <meyering@redhat.com>
773
774         test-update-copyright.sh: skip test if Perl is too old
775         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
776         Reported by Tom G. Christensen.
777
778 2010-09-02  Bruno Haible  <bruno@clisp.org>
779
780         wctype: Avoid compilation error on IRIX 6.5.30.
781         * lib/wctype.in.h (iswblank): Declare with a replacement if
782         REPLACE_ISWBLANK is set.
783         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
784         declared. Set REPLACE_ISWBLANK.
785         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
786         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
787         * doc/posix-headers/wctype.texi: Likewise.
788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
789
790 2010-09-01  Bruno Haible  <bruno@clisp.org>
791
792         New module 'socketlib'.
793         * modules/socketlib: New file.
794         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
795         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
796         * modules/sockets (Depends-on): Add socketlib.
797         Suggested by Sam Steingold <sds@gnu.org>.
798
799 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
800
801         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
802
803         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
804         when one needs search access to a directory but not read access.
805         On systems where it is available, it works in some cases where
806         O_RDONLY does not, namely on directories that are searchable but
807         not readable, and which need only to be searchable.  If O_SEARCH
808         is not available, fall back to the traditional method of using
809         O_RDONLY.
810
811         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
812         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
813         when opening a directory that needs only to be searchable.
814         * lib/chdir-safer.c (chdir_no_follow): Likewise.
815         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
816         * lib/openat-proc.c (openat_proc_name): Likewise.
817         * lib/openat.c (openat_needs_fchdir): Likewise.
818         * lib/save-cwd.c (save_cwd): Likewise.
819         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
820
821 2010-08-28  Bruno Haible  <bruno@clisp.org>
822
823         New module 'host-cpu-c-abi'.
824         * modules/host-cpu-c-abi: New file.
825         * m4/host-cpu-c-abi.m4: New file, based on part of
826         clisp/src/m4/general.m4.
827         Requested by Sam Steingold <sds@gnu.org>.
828
829 2010-08-31  Eric Blake  <eblake@redhat.com>
830         and Jim Meyering  <meyering@redhat.com>
831
832         hash: factor, and guard against misbehaving hasher function
833         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
834         of table->hasher's return value.  Also protect against a hash value
835         so large that adding it to table->bucket results in a NULL pointer.
836         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
837         Use it in place of open-coded check-and-abort.
838
839 2010-08-30  Bruno Haible  <bruno@clisp.org>
840
841         hash: silence spurious clang warning
842         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
843         Reported by Eric Blake.
844
845 2010-08-30  Eric Blake  <eblake@redhat.com>
846
847         strstr, memmem, strcasestr: avoid leaked shell message
848         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
849         FreeBSD.
850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
851         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
852
853         tests: silence clang warning
854         * tests/test-malloca.c (do_allocation): Avoid dead store.
855
856 2010-08-29  Bruno Haible  <bruno@clisp.org>
857
858         gettext: Fix recent mistake.
859         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
860
861 2010-08-29  Bruno Haible  <bruno@clisp.org>
862
863         selinux-h: Offer a --without-selinux option.
864         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
865         --without-selinux was specified, skip all tests and define
866         HAVE_SELINUX_SELINUX_H to 0.
867         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
868         set LIB_SELINUX to empty.
869         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
870         gl_LIBSELINUX. If --without-selinux was specified, replace
871         selinux/context.h.
872         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
873
874 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
875             Bruno Haible  <bruno@clisp.org>
876
877         Make the module 'realloc-gnu' work again on AIX and OSF/1.
878         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
879         of HAVE_REALLOC.
880         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
881         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
882         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
883         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
884
885 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
886             Bruno Haible  <bruno@clisp.org>
887
888         Make the module 'calloc-gnu' work again on AIX and OSF/1.
889         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
890         HAVE_CALLOC.
891         * lib/xmalloc.c: Update accordingly.
892         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
893         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
894         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
895
896 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
897             Bruno Haible  <bruno@clisp.org>
898
899         Make the module 'malloc-gnu' work again on AIX and OSF/1.
900         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
901         HAVE_MALLOC.
902         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
903         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
904         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
905
906 2010-08-29  Bruno Haible  <bruno@clisp.org>
907
908         Update modules list.
909         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
910         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
911         (String handling <string.h>): Add astrxfrm.
912         (File system functions): Add readlinkat.
913
914 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
915
916         Tests for module 'realloc-gnu'.
917         * modules/realloc-gnu-tests: New file.
918         * tests/test-realloc-gnu.c: New file.
919
920         Tests for module 'calloc-gnu'.
921         * modules/calloc-gnu-tests: New file.
922         * tests/test-calloc-gnu.c: New file.
923
924         Tests for module 'malloc-gnu'.
925         * modules/malloc-gnu-tests: New file.
926         * tests/test-malloc-gnu.c: New file.
927
928 2010-08-28  Bruno Haible  <bruno@clisp.org>
929
930         Rename module 'realloc' -> 'realloc-gnu'.
931         * modules/realloc-gnu: New file, copied from modules/realloc.
932         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
933         obsolete.
934         * modules/mgetgroups (Depends-on): Update.
935         * doc/posix-functions/realloc.texi: Update.
936         * NEWS: Mention the change.
937
938         Rename module 'calloc' -> 'calloc-gnu'.
939         * modules/calloc-gnu: New file, copied from modules/calloc.
940         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
941         obsolete.
942         * doc/posix-functions/calloc.texi: Update.
943         * NEWS: Mention the change.
944
945         Rename module 'malloc' -> 'malloc-gnu'.
946         * modules/malloc-gnu: New file, copied from modules/malloc.
947         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
948         obsolete.
949         * modules/argp (Depends-on): Update.
950         * modules/regex (Depends-on): Update.
951         * doc/posix-functions/malloc.texi: Update.
952         * NEWS: Mention the change.
953
954 2010-08-28  Eric Blake  <eblake@redhat.com>
955
956         pread, pwrite: add missing dependency
957         * modules/pread (Depends-on): Add extensions.
958         * modules/pwrite (Depends-on): Likewise.
959
960 2010-08-28  Bruno Haible  <bruno@clisp.org>
961
962         unistr/u*-strchr: Fix tests dependencies.
963         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
964         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
965         Reported by Ian Beckwith <ianb@erislabs.net>.
966
967 2010-08-28  Bruno Haible  <bruno@clisp.org>
968
969         read-file: Don't occupy too much unused memory.
970         * lib/read-file.c (fread_file): Shrink the buffer at the end.
971
972 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
973             Eric Blake  <eblake@redhat.com>
974             Bruno Haible  <bruno@clisp.org>
975
976         read-file: Avoid memory reallocations with regular files.
977         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
978         (fread_file): With regular files, use the remaining length as the
979         initial buffer size.  Check against overflow.
980         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
981         sys_stat.
982
983 2010-08-28  Bruno Haible  <bruno@clisp.org>
984
985         ftello: Relax license.
986         * modules/ftello (License): Relax to LGPLv2+.
987         Reported by Eric Blake.
988
989 2010-08-28  Bruno Haible  <bruno@clisp.org>
990
991         Avoid relocwrapper link errors due to gnulib replacement functions.
992         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
993         function.
994         Reported by Ben Pfaff <blp@cs.stanford.edu>.
995
996 2010-08-28  Bruno Haible  <bruno@clisp.org>
997
998         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
999         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
1000         defined.
1001         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
1002         Suggested by Eric Blake.
1003
1004 2010-08-28  Bruno Haible  <bruno@clisp.org>
1005
1006         sys_socket, netdb: Ensure socklen_t gets defined.
1007         * modules/sys_socket (Depends-on): Add socklen.
1008         * modules/netdb (Depends-on): Likewise.
1009         * modules/getaddrinfo (Depends-on): Remove socklen.
1010         * modules/getsockopt (Depends-on): Likewise.
1011         * modules/setsockopt (Depends-on): Likewise.
1012         * tests/test-sys_socket.c: Check that socklen_t is defined.
1013         * tests/test-netdb.c: Likewise.
1014         * m4/socklen.m4: Update comments.
1015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1016
1017 2010-08-27  Eric Blake  <eblake@redhat.com>
1018
1019         login_tty: add missing dependency
1020         * modules/login_tty (Depends-on): Add pty.
1021
1022 2010-08-26  Eric Blake  <eblake@redhat.com>
1023
1024         lib-symbol-versions: fix m4 quoting
1025         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
1026         format for AC_LINK_IFELSE.
1027
1028         glob: fix compile test
1029         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
1030
1031         btowc: fix missing file
1032         * modules/btowc (Files): Also ship locale-fr.m4.
1033
1034         lseek: fix link test
1035         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
1036         AC_LINK_IFELSE.
1037
1038         include_next: silence autoconf 2.68 warning
1039         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
1040         AC_COMPILE_IFELSE as special.
1041         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
1042         autoconf < 2.68.
1043
1044         acl: fix compilation test
1045         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
1046         AC_COMPILE_IFELSE.
1047
1048 2010-08-26  Bruno Haible  <bruno@clisp.org>
1049
1050         Modernize AC_TRY_RUN invocations.
1051         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
1052         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1053         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
1054         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
1055         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
1056         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1057         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
1058         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1059         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1060         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1061         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
1062         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
1063         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
1064         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1065         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
1066         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1067         gl_MBRLEN_NUL_RETVAL): Likewise.
1068         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1069         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
1070         Likewise.
1071         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1072         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1073         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1074         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1075         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
1076         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
1077         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
1078         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1079         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
1080         Likewise.
1081         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
1082         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
1083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1084         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1085         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1086         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1087         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1088         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
1089         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1091
1092 2010-08-26  Bruno Haible  <bruno@clisp.org>
1093
1094         Modernize AC_TRY_LINK invocations.
1095         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
1096         AC_TRY_LINK.
1097         * m4/argp.m4 (gl_ARGP): Likewise.
1098         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1099         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1100         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
1101         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1102         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1103         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
1104         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1105         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1106         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1107         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1108         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1109         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
1110         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
1111         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1112         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
1113         * m4/hostent.m4 (gl_HOSTENT): Likewise.
1114         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1115         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
1116         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
1117         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
1118         Likewise.
1119         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
1120         Likewise.
1121         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
1122         Likewise.
1123         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
1124         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
1125         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
1126         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1127         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1128         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1129         * m4/servent.m4 (gl_SERVENT): Likewise.
1130         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1131         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1132         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1133         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1134         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1135         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1136         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1137         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1138         * modules/tsearch-tests (configure.ac): Likewise.
1139
1140 2010-08-26  Bruno Haible  <bruno@clisp.org>
1141
1142         Modernize AC_TRY_COMPILE invocations.
1143         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
1144         AC_TRY_COMPILE.
1145         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
1146         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
1147         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
1148         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1149         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
1150         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1151         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1152         * m4/lock.m4 (gl_LOCK): Likewise.
1153         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1154         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1155         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1156         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1157         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1158         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1159         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1160         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1161         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1162         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1163         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1164         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1165         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1166         extraneous semicolon.
1167
1168 2010-08-26  Jim Meyering  <meyering@redhat.com>
1169
1170         stat-time: relax license LGPL
1171         * modules/stat-time (License): Change from GPL to LGPL,
1172         with consent from all contributors, for use in libguile.
1173         Requested by Ludovic Courtès.
1174
1175 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1176
1177         poll: return immediately on POLLHUP.
1178         * lib/poll.c (poll): Always set timeout before wait_timeout is
1179         computed.
1180
1181 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1182
1183         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1184         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1185         rmdir ("dir/.//"), unlinkat.
1186
1187 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         stdbool: avoid spurious failure with modern xlc
1190         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1191
1192 2010-08-24  Bruno Haible  <bruno@clisp.org>
1193
1194         getloadavg: simplify code
1195         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1196         gl_have_func. Update comments.
1197
1198 2010-08-24  Eric Blake  <eblake@redhat.com>
1199
1200         getloadavg: don't define SVR4 on cygwin
1201         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1202         only define SVR4 when -lkvm is required.
1203         Reported by Yaakov Selkowitz.
1204
1205 2010-08-24  Bruno Haible  <bruno@clisp.org>
1206
1207         priv-set: fix comment
1208         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1209
1210 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1211
1212         priv-set: fix comments
1213         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1214         to match code, as suggested by David Bartley in:
1215         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1216
1217 2010-08-23  Eric Blake  <eblake@redhat.com>
1218
1219         stdbool: avoid rejecting clang
1220         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1221         * tests/test-stdbool.c: Enable more tests if using the system
1222         <stdbool.h> instead of the gnulib replacement.
1223         (main): Move xlc bug test to a runtime test for all compilers.
1224         Reported by Anders Kaseorg.
1225
1226         argz: fix shell quoting issue
1227         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1228         Reported by Charles Wilson.
1229
1230 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1231             Erik Faye-Lund <kusmabite@gmail.com>
1232
1233         poll, select: handle ERROR_BROKEN_PIPE.
1234         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1235         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1236         * lib/select.c (win32_compute_revents): Do not mark a pipe
1237         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1238
1239 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1240
1241         fts: allow compilation with C++
1242         * lib/fts_.h: Specify extern "C" linkage with C++.
1243
1244 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1245
1246         Fix gnulib-tool sed script de-commentation for AIX sed.
1247         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1248         sed.
1249
1250 2010-08-17  Eric Blake  <eblake@redhat.com>
1251
1252         test-stddef: test for (some) offsetof bugs
1253         * tests/test-stddef.c: Enhance test to ensure correct type of
1254         offsetof.
1255         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1256         that we are not fixing at this time.
1257
1258 2010-08-15  Bruno Haible  <bruno@clisp.org>
1259
1260         stpncpy: Allow stpncpy to be defined as a macro.
1261         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1262         if it's already correctly declared.
1263         * lib/string.in.h (stpncpy): Undefine before redefining.
1264         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1265
1266 2010-08-14  Bruno Haible  <bruno@clisp.org>
1267
1268         Rename module 'memxfrm' to 'amemxfrm'.
1269         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1270         (amemxfrm): Renamed from memxfrm.
1271         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1272         (amemxfrm): Renamed from memxfrm.
1273         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1274         * NEWS: Mention the change.
1275         * MODULES.html.sh (String handling <string.h>): Update.
1276         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1277         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1278         * lib/unicase/u16-casexfrm.c: Likewise.
1279         * lib/unicase/u32-casexfrm.c: Likewise.
1280         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1281         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1282         * lib/uninorm/u16-normxfrm.c: Likewise.
1283         * lib/uninorm/u32-normxfrm.c: Likewise.
1284         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1285         memxfrm.
1286         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1287         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1288         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1289         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1290         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1291         Suggested by Paul Eggert.
1292
1293 2010-08-14  Bruno Haible  <bruno@clisp.org>
1294
1295         Tests for module 'astrxfrm'.
1296         * modules/astrxfrm-tests: New file.
1297         * tests/test-astrxfrm.c: New file.
1298
1299         New module 'astrxfrm'.
1300         * lib/astrxfrm.h: New file.
1301         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1302         * modules/astrxfrm: New file.
1303
1304 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1305
1306         regex: Tweak doc.
1307         * doc/regex.texi (Overview): Don't mention regex.c.
1308         (GNU Regular Expression Compiling): Likewise.
1309         (Match-end-of-line Operator): Mention 'not_eol'.
1310
1311 2010-08-14  Brian Gough  <bjg@gnu.org>
1312             Bruno Haible  <bruno@clisp.org>
1313
1314         git-merge-changelog: add doc relating to use with bzr and hg.
1315         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1316
1317 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1318
1319         pthread: fix pthread.h creation for srcdir != builddir
1320         * modules/pthread (Makefile.am): Fix the rule to work also in a
1321         non-srcdir build.
1322
1323 2010-08-13  Karl Berry  <karl@gnu.org>
1324
1325         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1326         * doc/posix-*/*: force line break before @url of POSIX
1327         specifications.
1328         Suggested by Werner Lemberg.
1329
1330 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1331
1332         strtod: fix const diagnostic
1333         * lib/strtod.c (strtod): Don't assign const char * to char *,
1334         as this elicits a warning from GCC when warnings are enabled.
1335
1336 2010-08-10  Pádraig Brady <P@draigbrady.com>
1337         and Eric Blake  <eblake@redhat.com>
1338
1339         copy-acl: ignore ENOTSUP on HP-UX
1340         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1341         so that it is available for HP-UX.
1342         * lib/copy-acl.c (qcopy_acl): Use it.
1343         Reported by Patrick M. Callahan.
1344
1345 2010-08-10  Eric Blake  <eblake@redhat.com>
1346
1347         open, chown: relax license
1348         * modules/open (License): Change to LGPLv2+, with consent by all
1349         authors, for use in augeas.
1350         * modules/chown (License): Likewise.
1351         * modules/lchown (Likewise): Likewise.
1352         Requested by Adam Stokes.
1353
1354 2010-08-09  Karl Berry  <karl@gnu.org>
1355
1356         * build-aux/ar-lib: new file, import from Automake.
1357         * config/srclist.txt: autocheck for updates.
1358
1359 2010-08-09  Eric Blake  <eblake@redhat.com>
1360
1361         readlinkat: adjust client modules
1362         * modules/areadlinkat (Depends-on): Use readlinkat, not
1363         symlinkat.
1364         * modules/areadlinkat-with-size (Depends-on): Likewise.
1365
1366         mknod: be more vocal about danger of running tests as root
1367         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1368         root, since that is just asking for problems.
1369         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1370
1371         readlinkat: split into its own module
1372         * modules/symlinkat: Split readlinkat...
1373         * modules/readlinkat: ...into separate module.
1374         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1375         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1376         * lib/symlinkat.c (readlinkat): Move...
1377         * lib/readlinkat.c: ...into new file.
1378         * modules/symlinkat-tests: Split readlinkat test...
1379         * modules/readlinkat-tests: ...into separate module.
1380         * tests/test-symlinkat.c: Split...
1381         * tests/test-readlinkat.c: ...into new file.
1382         * NEWS: Document the split.
1383         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1384         * lib/unistd.in.h (readlinkat): Likewise.
1385         Suggested by Bruno Haible.
1386
1387 2010-08-08  Bruno Haible  <bruno@clisp.org>
1388
1389         memxfrm: Speed up.
1390         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1391         that usually only one call to strxfrm is necessary for each string
1392         part.
1393         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1394
1395 2010-08-07  Karl Berry  <karl@gnu.org>
1396
1397         * doc/posix-headers/limits.texi,
1398         * doc/posix-functions/malloc.texi,
1399         * doc/posix-functions/strsignal.texi: missing @item.
1400         * doc/ld-version-script.texi: spurious leading i.
1401         * doc/regex.texi (Interval Operators): no commas inside @var.
1402
1403 2010-08-01  Bruno Haible  <bruno@clisp.org>
1404
1405         Integrate the regex documentation.
1406         * doc/gnulib.texi: Define 'cn' index.
1407         (Regular expressions): New a chapter that includes regex.texi and
1408         regexprops-generic.texi.
1409         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1410         syntax.
1411
1412         Whitespace cleanup.
1413         * doc/regex.texi: Remove trailing spaces.
1414
1415         Add regex documentation.
1416         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1417         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1418         Written by Kathy A. Hargreaves and Karl Berry.
1419
1420 2010-08-01  Bruno Haible  <bruno@clisp.org>
1421
1422         link: Update documentation.
1423         * doc/posix-functions/link.texi: Update regarding Solaris.
1424
1425 2010-07-31  Bruno Haible  <bruno@clisp.org>
1426
1427         Update modules list.
1428         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1429         (String handling <string.h>): Add memcmp2, memxfrm.
1430         (Container data structures): Add xlist, xsublist, xoset.
1431         (Core language properties): Add alignof, unused-parameter.
1432         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1433         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1434         (Unibyte characters <ctype.h>): New section.
1435         (String handling <string.h>): New section.
1436         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1437         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1438         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1439         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1440         tan, tanh, tanl, y0, y1, yn.
1441         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1442         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1443         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1444         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1445         unlockpt, vdprintf, vdprintf-posix.
1446         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1447         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1448         xconcat-filename.
1449         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1450         getdtablesize, pipe2, pipe2-safer.
1451         (Security): New section.
1452         (Networking functions): Add accept4.
1453         (Signal handling): Add sigpipe.
1454         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1455         mbmemcasecoll.
1456         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1457         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1458         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1459         pipe-filter-ii.
1460         (Misc): Add argp-version-etc, login_tty, parse-duration.
1461
1462 2010-07-31  Bruno Haible  <bruno@clisp.org>
1463
1464         Improve doc in MODULES.html.
1465         * modules/linkat (Description): Add the word "function".
1466         * modules/mkfifo (Description): Likewise.
1467         * modules/mknod (Description): Likewise.
1468         * modules/remove (Description): Likewise.
1469         * modules/renameat (Description): Likewise.
1470         * modules/stat (Description): Likewise.
1471         * modules/symlink (Description): Likewise.
1472         * modules/unlink (Description): Likewise.
1473
1474 2010-07-31  Bruno Haible  <bruno@clisp.org>
1475
1476         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1477         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1478         option --enable/disable-c++ instead of --enable/disable-cxx.
1479         * NEWS: Mention the change.
1480
1481 2010-07-31  Bruno Haible  <bruno@clisp.org>
1482
1483         readlink, areadlink: Relax test a bit.
1484         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1485         alternative to ENOTDIR.
1486         * tests/test-areadlink.h (test_areadlink): Likewise.
1487         Reported by Rainer Tammer.
1488
1489 2010-07-31  Bruno Haible  <bruno@clisp.org>
1490
1491         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1492         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1493         character, perform the search using U_STRCHR.
1494         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1495         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1496         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1497         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1498         Suggested by Paolo Bonzini.
1499
1500 2010-07-31  Bruno Haible  <bruno@clisp.org>
1501
1502         unistr/u*-strstr: Fix dependencies.
1503         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1504         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1505         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1506
1507 2010-07-31  Bruno Haible  <bruno@clisp.org>
1508
1509         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1510         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1511         the beginning of the loop.
1512         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1513         cases in 'switch' statement.
1514
1515         unistr/u8-strchr: Fix several bugs.
1516         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1517         the string. When not found, return NULL, not a pointer near the end.
1518
1519         More tests for unistr/u8-strchr.
1520         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1521         that the function does not read past the first occurrence of the byte
1522         being searched.
1523         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1524         * tests/unistr/test-u16-strchr.c (main): New function.
1525         * tests/unistr/test-u32-strchr.c (main): New function.
1526
1527 2010-07-31  Bruno Haible  <bruno@clisp.org>
1528
1529         posix-modules: Ignore backup files of documentation files.
1530         * posix-modules: grep only through files named *.texi.
1531
1532 2010-07-31  Bruno Haible  <bruno@clisp.org>
1533
1534         symlinkat: Fix documentation.
1535         * doc/posix-functions/readlinkat.texi: Fix module name.
1536
1537 2010-07-31  Bruno Haible  <bruno@clisp.org>
1538
1539         fchownat: Replace also when chown has the trailing slash bug.
1540         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1541         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1542         introduced on 2010-04-10.
1543         Reported by Rainer Tammer.
1544
1545 2010-07-31  Bruno Haible  <bruno@clisp.org>
1546
1547         linkat: Work around AIX 7.1 bug.
1548         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1549         whether linkat handles trailing slash correctly. If not, replace linkat
1550         and define LINKAT_TRAILING_SLASH_BUG.
1551         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1552         check whether (fd1,file1) points to a directory if file1 or file2 ends
1553         in a slash. Code taken from lib/link.c.
1554         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1555         Reported by Rainer Tammer.
1556
1557 2010-07-31  Bruno Haible  <bruno@clisp.org>
1558
1559         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1560         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1561         This disables an xlc optimization that was causing wrong test results.
1562         Reported by Rainer Tammer.
1563
1564 2010-07-31  Bruno Haible  <bruno@clisp.org>
1565
1566         iconv: Work around AIX 6.1..7.1 bug.
1567         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1568         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1569         cross-compiling, guess no on all versions of AIX.
1570         Reported by Rainer Tammer.
1571
1572 2010-07-31  Bruno Haible  <bruno@clisp.org>
1573
1574         readlink: Relax test a bit.
1575         * tests/test-readlink.h (test_readlink): Allow different errno value
1576         when readlink is called with a file name that ends in / and refers to
1577         a file.
1578         Suggested by Eric Blake.
1579         Reported by Rainer Tammer.
1580
1581 2010-07-31  Bruno Haible  <bruno@clisp.org>
1582
1583         copysign: Does not require -lm on glibc systems.
1584         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1585         gl_COMMON_DOUBLE_MATHFUNC.
1586         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1587
1588 2010-07-31  Bruno Haible  <bruno@clisp.org>
1589
1590         duplocale: Work around AIX 7.1 bug.
1591         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1592         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1593         * lib/duplocale.c (rpl_duplocale): Update comment.
1594         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1595         Reported by Rainer Tammer.
1596
1597 2010-07-30  Bruno Haible  <bruno@clisp.org>
1598
1599         dirfd: Avoid link error on AIX 7.1.
1600         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1601         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1602         exist, set REPLACE_DIRFD.
1603         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1604         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1605         * doc/posix-functions/dirfd.texi: Update.
1606         Reported by Rainer Tammer.
1607
1608 2010-07-30  Eric Blake  <eblake@redhat.com>
1609
1610         strtod: next round of AIX fixes
1611         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1612         exponent.
1613         * tests/test-strtod.c (main): Enhance tests.
1614         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1615         Reported by Rainer Tammer.
1616
1617         futimens: fix configure check
1618         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1619         Reported by Bruno Haible.
1620
1621 2010-07-30  Bruno Haible  <bruno@clisp.org>
1622
1623         getline: Update regarding AIX.
1624         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1625         Reported by Rainer Tammer.
1626
1627 2010-07-30  Bruno Haible  <bruno@clisp.org>
1628
1629         wcwidth: Drop replacement on AIX 7.
1630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1631         AIX 7.
1632         Reported by Rainer Tammer.
1633
1634 2010-07-30  Bruno Haible  <bruno@clisp.org>
1635
1636         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1637         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1638         a 'char *'.
1639         Reported by Rainer Tammer.
1640
1641 2010-07-30  Bruno Haible  <bruno@clisp.org>
1642
1643         unlink: Update regarding AIX.
1644         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1645         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1646         Reported by Rainer Tammer.
1647
1648 2010-07-30  Bruno Haible  <bruno@clisp.org>
1649
1650         symlink: Update regarding AIX.
1651         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1652         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1653         Reported by Rainer Tammer.
1654
1655 2010-07-30  Bruno Haible  <bruno@clisp.org>
1656
1657         strndup: Update regarding AIX.
1658         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1659         AIX 7.
1660         Reported by Rainer Tammer.
1661
1662 2010-07-30  Bruno Haible  <bruno@clisp.org>
1663
1664         stat: Update regarding AIX.
1665         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1666         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1667         Reported by Rainer Tammer.
1668
1669 2010-07-30  Bruno Haible  <bruno@clisp.org>
1670
1671         truncl: Fix autoconf test.
1672         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1673         whether truncl works.
1674         Reported by Rainer Tammer.
1675
1676 2010-07-30  Bruno Haible  <bruno@clisp.org>
1677
1678         round: Update regarding AIX.
1679         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1680         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1681         Reported by Rainer Tammer.
1682
1683 2010-07-30  Bruno Haible  <bruno@clisp.org>
1684
1685         rename: Update regarding AIX.
1686         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1687         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1688         Reported by Rainer Tammer.
1689
1690 2010-07-30  Bruno Haible  <bruno@clisp.org>
1691
1692         printf.m4: Update regarding AIX.
1693         * m4/printf.m4: Update comments regarding AIX.
1694         Reported by Rainer Tammer.
1695
1696 2010-07-30  Bruno Haible  <bruno@clisp.org>
1697
1698         iconv: Update regarding AIX.
1699         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1700         AIX 7.
1701         Reported by Rainer Tammer.
1702
1703 2010-07-30  Bruno Haible  <bruno@clisp.org>
1704
1705         getopt: Update regarding AIX.
1706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1707         no on AIX.
1708         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1709         Reported by Rainer Tammer.
1710
1711 2010-07-30  Bruno Haible  <bruno@clisp.org>
1712
1713         ldexpl; Update regarding AIX.
1714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1715         on AIX 7.
1716         Reported by Rainer Tammer.
1717
1718 2010-07-30  Bruno Haible  <bruno@clisp.org>
1719
1720         frexpl: Update regarding AIX.
1721         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1722         on AIX 7.
1723         Reported by Rainer Tammer.
1724
1725 2010-07-30  Bruno Haible  <bruno@clisp.org>
1726
1727         open, fopen: Update regarding AIX.
1728         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1729         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1730         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1731         * doc/posix-functions/fopen.texi: Likewise.
1732         Reported by Rainer Tammer.
1733
1734 2010-07-30  Bruno Haible  <bruno@clisp.org>
1735
1736         chown: Update doc regarding AIX.
1737         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1738         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1739         Reported by Rainer Tammer.
1740
1741 2010-07-30  Eric Blake  <eblake@redhat.com>
1742
1743         strtod: fix bug in replacement function on AIX
1744         * lib/strtod.c (strtod): Special case broken "0x" parse in
1745         underlying strtod.
1746         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1747         * doc/posix-functions/strtod.texi (strtod): Likewise.
1748         Reported by Rainer Tammer.
1749
1750 2010-07-30  Bruno Haible  <bruno@clisp.org>
1751
1752         mbrlen: Fix cross-compilation guess for AIX.
1753         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1754         guess. Leftover from 2008-12-22.
1755
1756 2010-07-30  Bruno Haible  <bruno@clisp.org>
1757
1758         mbrtowc: Fix cross-compilation guess for AIX.
1759         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1760         guess. Leftover from 2008-12-21.
1761
1762 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1763
1764         init.sh: work around trap limitation of some shells
1765         * tests/init.sh (setup_): Move exit trap outside of shell function.
1766
1767 2010-07-29  Eric Blake  <eblake@redhat.com>
1768
1769         strtod: aid debugging
1770         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1771         understanding why strtod is rejected.
1772
1773 2010-07-28  Bruno Haible  <bruno@clisp.org>
1774
1775         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1776         * lib/unistr/u8-chr.c: Include <string.h>.
1777         * tests/unistr/test-u8-chr.c: Likewise.
1778         * tests/unistr/test-u16-chr.c: Likewise.
1779         * tests/unistr/test-u32-chr.c: Likewise.
1780         * tests/unistr/test-u8-strchr.c: Likewise.
1781         * tests/unistr/test-u16-strchr.c: Likewise.
1782         * tests/unistr/test-u32-strchr.c: Likewise.
1783         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1784         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1785         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1786         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1787
1788 2010-07-28  Bruno Haible  <bruno@clisp.org>
1789
1790         Use spaces for indentation, not tabs.
1791         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1792
1793 2010-07-27  Bruno Haible  <bruno@clisp.org>
1794
1795         mbspcasecmp: Fix function specification.
1796         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1797         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1798         Reported by Eric Blake <eblake@redhat.com>.
1799
1800 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1801
1802         timespec: use cast and not conditional, as truncation isn't possible
1803         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1804         instead of a conditional.  Comment about the situation in more detail.
1805         This undoes most of the 2009-10-29 patch.
1806
1807 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1808
1809         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1810         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1811         * lib/unistr/u8-strchr.c: Likewise.
1812         * modules/unistr/u8-chr: Depend on memchr.
1813
1814         unistr/u*-strchr: add tests
1815         * modules/unistr/u8-strchr-tests: New file.
1816         * modules/unistr/u16-strchr-tests: New file.
1817         * modules/unistr/u32-strchr-tests: New file.
1818         * tests/unistr/test-strchr.h: New file.
1819         * tests/unistr/test-u8-strchr.c: New file.
1820         * tests/unistr/test-u16-strchr.c: New file.
1821         * tests/unistr/test-u32-strchr.c: New file.
1822
1823         unistr/u*-chr: test multibyte sequences more
1824         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1825         test vector.
1826         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1827         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1828         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1829
1830         unistr/u*-chr: test multibyte sequences
1831         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1832
1833         unistr/u*-chr: prepare for multibyte tests
1834         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1835         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1836         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1837         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1838         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1839         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1840
1841 2010-07-18  Bruno Haible  <bruno@clisp.org>
1842
1843         unistr/u8-strchr: Optimize non-ASCII argument case.
1844         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1845         because the first byte often matches anyway.
1846         Reported by Pádraig Brady <P@draigbrady.com>.
1847
1848 2010-07-15  Karl Berry  <karl@gnu.org>
1849
1850         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1851
1852 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1853
1854         getcwd: on Solaris, work better if ancestors are inaccessible
1855         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1856         buffer and size, try again with a large buffer.  This works better
1857         on Solaris, since its getcwd succeeds even if the path to the root
1858         is inaccessible, and this is helpful in common cases such as .zfs
1859         hidden directories.  Problem reported by J Chapman Flack in
1860         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1861         Use system getcwd if it's declared, not merely if it's partly
1862         working; use the partly-working test only to avoid needless effort
1863         if the system getcwd fails.
1864         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1865         comment that was already obsolete and is now even more obsolete.
1866         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1867         now might call strdup.
1868
1869 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1870
1871         pthread: Add enough so that coreutils/src/sort.c compiles.
1872         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1873         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1874         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1875         Include <sys/types.h>, in case it defines pthread_t.
1876         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1877         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1878         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1879         (pthread_rwlockattr_t, pthread_spinlock_t):
1880         New typedefs, if HAVE_PTHREAD_T is not defined.
1881         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1882         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1883         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1884         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1885         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1886         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1887         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1888         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1889         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1890         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1891         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1892         New macros.
1893         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1894         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1895         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1896         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1897         (pthread_spin_unlock): New dummy functions.
1898         (pthread_create): Return EAGAIN; don't set errno.
1899         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1900         require AC_C_INLINE.
1901         * modules/pthread (Depends-on): Add sched, time.
1902         (pthread.h): Use AM_V_GEN.
1903
1904 2010-07-13  Bruno Haible  <bruno@clisp.org>
1905
1906         striconveh: Don't malloc memory if the result buffer is sufficient.
1907         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1908         buffer if its size is sufficient.
1909         Reported by Ludovic Courtès <ludo@gnu.org>.
1910
1911 2010-07-13  Bruno Haible  <bruno@clisp.org>
1912
1913         strtod: Add safety check.
1914         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1915
1916 2010-07-12  Bruno Haible  <bruno@clisp.org>
1917
1918         Unify tests that set gl_cv_func_ldexpl_no_libm.
1919         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1920         gl_FUNC_LDEXPL.
1921         (gl_FUNC_LDEXPL): Invoke it.
1922         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1923
1924 2010-07-12  Bruno Haible  <bruno@clisp.org>
1925
1926         Unify tests that set gl_cv_func_ldexp_no_libm.
1927         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1928         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1929         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1930         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1931         * modules/strtod (Files): Add m4/ldexp.m4.
1932
1933 2010-07-12  Bruno Haible  <bruno@clisp.org>
1934
1935         Unify tests that set gl_cv_func_frexpl_no_libm.
1936         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1937         gl_FUNC_FREXPL_NO_LIBM.
1938         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1939         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1940
1941 2010-07-12  Bruno Haible  <bruno@clisp.org>
1942
1943         Unify tests that set gl_cv_func_frexp_no_libm.
1944         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1945         gl_FUNC_FREXP_NO_LIBM.
1946         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1947         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1948
1949 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1950
1951         memcoll: clarify sizes versus lengths, document better, and tweak perf
1952         * lib/memcoll.c (strcoll_loop, memcoll0):
1953         Improve quality of descriptive comments.  Name variables
1954         consistently as to whether they are lengths (which do not include
1955         terminating null) versus sizes (which do).
1956         * lib/xmemcoll.c (xmemcoll0): Likewise.
1957         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1958         returned when s1size == 0; this is easier to compile and saves
1959         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1960
1961 2010-07-12  Bruno Haible  <bruno@clisp.org>
1962
1963         Tests for module '_Exit'.
1964         * modules/_Exit-tests: New file.
1965         * tests/test-_Exit.sh: New file.
1966         * tests/test-_Exit.c: New file.
1967
1968         New module '_Exit'.
1969         * lib/stdlib.in.h (__attribute__): New macro.
1970         (_Exit): New declaration.
1971         * lib/_Exit.c: New file.
1972         * m4/_Exit.m4: New file.
1973         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1974         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1975         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1976         * modules/_Exit: New file.
1977         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1978         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1979
1980 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1981
1982         strtod: make it more-accurate typically, and don't require libm
1983         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1984         Include limits.h.  Don't include string.h.
1985         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1986         (locale_isspace): New function, so that no casts are needed to
1987         check whether *s is a space.
1988         (ldexp): Provide an unused dummy if not available.
1989         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1990         (strtod): Use them.  This implementation prefers to use the
1991         underlying strtod if available, falling back on our own code
1992         only to fix known bugs.  This is more likely to produce an
1993         accurate result.  Also, it avoids the use of libm functions.
1994         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1995         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
1996         was absent, but it caused a test failure with coreutils.
1997         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
1998         with libm.
1999         * modules/strtod (Makefile.am, Link): libm is no longer needed.
2000         * modules/strtod-tests (Makefile.am): Likewise.
2001
2002 2010-07-11  Pádraig Brady  <P@draigBrady.com>
2003             Bruno Haible  <bruno@clisp.org>
2004
2005         unistr/u8-strchr: Optimize ASCII argument case.
2006         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
2007
2008 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2009
2010         (x)memcoll: minor tweaks
2011         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
2012         is after the type that it qualifies.
2013         (memcoll0): Likewise.
2014         * lib/memcoll.h (memcoll0): Likewise.
2015         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
2016         * lib/xmemcoll.h (xmemcoll0): Likewise.
2017         * lib/memcoll.c (memcoll0): Correct the comment.  This function
2018         differs from memcoll in that the NUL byte is part of the argument.
2019         Omit the abort-checks, as performance is a real issue here.  Plus,
2020         the checks were wrong anyway (an off-by-one error).  Omit local
2021         variable 'diff', as it's a bit clearer that way.
2022         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
2023         no longer needed.
2024
2025 2010-07-08  Chen Guo <chenguo4@yahoo.com>
2026
2027         (x)memcoll: speedup when input is known to be NUL delimited
2028         * lib/memcoll.c: Include stdlib.
2029         (memcoll0) New function.
2030         (strcoll_loop) New function, refactored for use in both memcoll
2031         and memcoll0.
2032         * lib/memcoll.h: Add prototype for memcoll0.
2033         * lib/xmemcoll.c: (xmemcoll0) New function.
2034         (collate_error) New function, refactored for use in both xmemcoll
2035         and xmemcoll0.
2036         * lib/xmemcoll.h: Add prototype for xmemcoll0.
2037         * m4/memcoll.m4: add inline invocation.
2038
2039 2010-07-06  Pádraig Brady  <P@draigBrady.com>
2040
2041         * build-aux/bootstrap: Remove any local translations
2042         from the translation project synchronization directory,
2043         so that local only translations are not distributed.
2044
2045 2010-07-04  Bruno Haible  <bruno@clisp.org>
2046
2047         fsusage: Clarify which code applies to which platforms.
2048         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
2049         platform.
2050         * lib/fsusage.c (get_fs_usage): Likewise.
2051
2052 2010-07-04  Bruno Haible  <bruno@clisp.org>
2053
2054         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
2055         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
2056         Reported by Martin Lambers <marlam@marlam.de>.
2057
2058 2010-07-04  Jim Meyering  <meyering@redhat.com>
2059
2060         hash: once again explicitly disallow insertion of NULL
2061         * lib/hash.c (hash_insert0): Reinstate just-removed test:
2062         inserting a NULL pointer cannot work with these functions.
2063         Add a comment with details.
2064         This reverts part of the 2010-07-01 commit, 5bef1a35
2065         "hash: extend module to deal with non-pointer keys".
2066
2067 2010-07-01  Bruno Haible  <bruno@clisp.org>
2068
2069         stdbool: Update doc.
2070         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
2071         Info from Christian Weisgerber <naddy@mips.inka.de>.
2072
2073 2010-07-01  Jim Meyering  <meyering@redhat.com>
2074
2075         hash: extend module to deal with non-pointer keys
2076         * lib/hash.c (hash_insert0): New interface, much like hash_insert
2077         but that allows insertion of non-pointer entries.
2078         Do not disallow an ENTRY value of NULL.
2079         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
2080         * lib/hash.h (hash_insert0): Declare.
2081
2082 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2083
2084         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
2085         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
2086         not present (i.e. with autoconf 2.59 and when using gettextize, not
2087         gnulib), require AC_GNU_SOURCE instead.
2088
2089 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
2090
2091         idpriv-drop: Fix tests.
2092         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
2093         not to the test-idpriv-droptemp program.
2094
2095 2010-06-29  Bruno Haible  <bruno@clisp.org>
2096
2097         string: Fix syntax error with g++ 2.96.
2098         * lib/string.in.h (__pure__): Remove definition.
2099         (_GL_ATTRIBUTE_PURE): New macro.
2100         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
2101         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
2102         Reported by Christian Weisgerber <naddy@mips.inka.de>.
2103
2104 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
2105
2106         unitypes: Fix bug introduced on 2010-05-18.
2107         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
2108
2109 2010-06-22  Eric Blake  <eblake@redhat.com>
2110
2111         memmem: slight optimization
2112         * lib/str-two-way.h (critical_factorization): Update comments.
2113         Reduce work during factorization phase.
2114         Reported by Carlos Bueno <carlos@bueno.org>.
2115
2116 2010-06-21  Bruno Haible  <bruno@clisp.org>
2117
2118         Fix HAVE_CALLOC_POSIX misnomer.
2119         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
2120         !HAVE_CALLOC_POSIX.
2121         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
2122         HAVE_CALLOC_POSIX.
2123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
2124         instead of HAVE_CALLOC_POSIX.
2125         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
2126         HAVE_CALLOC_POSIX.
2127
2128         Use modern idiom for calloc() replacement.
2129         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
2130         AC_FUNC_CALLOC.
2131         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
2132         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
2133         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2134         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
2135         (gl_REPLACE_CALLOC): New macro.
2136
2137 2010-06-21  Bruno Haible  <bruno@clisp.org>
2138
2139         Fix HAVE_REALLOC_POSIX misnomer.
2140         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
2141         !HAVE_REALLOC_POSIX.
2142         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
2143         HAVE_REALLOC_POSIX.
2144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
2145         instead of HAVE_REALLOC_POSIX.
2146         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
2147         HAVE_REALLOC_POSIX.
2148
2149         Use modern idiom for realloc() replacement.
2150         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
2151         AC_FUNC_REALLOC.
2152         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
2153         Autoconf's AC_FUNC_REALLOC.
2154         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2155         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2156         (gl_REPLACE_REALLOC): New macro.
2157         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2158
2159 2010-06-21  Bruno Haible  <bruno@clisp.org>
2160
2161         Fix HAVE_MALLOC_POSIX misnomer.
2162         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2163         !HAVE_MALLOC_POSIX.
2164         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2165         HAVE_MALLOC_POSIX.
2166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2167         instead of HAVE_MALLOC_POSIX.
2168         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2169         HAVE_MALLOC_POSIX.
2170
2171         Use modern idiom for malloc() replacement.
2172         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2173         AC_FUNC_MALLOC.
2174         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2175         Autoconf's AC_FUNC_MALLOC.
2176         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2177         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2178         (gl_REPLACE_MALLOC): New macro.
2179         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2180
2181 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2182
2183         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2184         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2185         This macro takes 3 arguments, not 4.
2186
2187 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2188
2189         ipv6: fix detection under mingw
2190         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2191         in6_addr.
2192
2193 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2194
2195         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2196         that strtod() works when cross-compiling to a glibc version known
2197         to work.
2198
2199 2010-06-15  Bruno Haible  <bruno@clisp.org>
2200
2201         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2202
2203 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2204
2205         select: Correct timeout.
2206         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2207
2208 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2209
2210         git-version-gen: init shell var to avoid env var influence
2211         * build-aux/git-version-gen (v): Init shell var to empty.
2212
2213 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2214
2215         priv-set: Don't assume that priv.h exists merely because getppriv does.
2216         See Jan Andersen's bug report about AIX 5L in
2217         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2218         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2219         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2220         * lib/priv-set.h: Likewise.
2221         * tests/test-priv-set.c: Likewise.
2222
2223 2010-06-13  Bruno Haible  <bruno@clisp.org>
2224
2225         relocatable: Make it easier to test whether to install wrappers.
2226         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2227         RELOCATABLE_VIA_WRAPPER.
2228
2229 2010-06-13  Bruno Haible  <bruno@clisp.org>
2230
2231         gnulib-tool: Display specified modules and dependencies differently.
2232         * gnulib-tool (func_show_module_list): New function.
2233         (func_import, func_create_testdir): Invoke it.
2234         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2235
2236 2010-06-13  Bruno Haible  <bruno@clisp.org>
2237
2238         gnulib-tool: Align code of func_import and func_create_testdir.
2239         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2240         specified_modules.
2241
2242 2010-06-12  Jim Meyering  <meyering@redhat.com>
2243
2244         test-inttostr: avoid spurious failure on Solaris 9
2245         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2246         to accept "%ju".  Reported by Bruno Haible.
2247
2248 2010-06-11  Jim Meyering  <meyering@redhat.com>
2249
2250         test-sys_socket: mark variables as used more readably
2251         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2252         as "used" explicitly via (void) statement casts.  This is more
2253         readable than using them in an artificial return expression.
2254         Suggestion from Bruno Haible.
2255
2256 2010-06-11  Bruno Haible  <bruno@clisp.org>
2257
2258         Avoid some more warnings from "gcc -Wwrite-strings".
2259         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2260         to 'const char *'.
2261         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2262         * tests/test-c-strcasestr.c (main): Likewise.
2263         * tests/test-mbscasestr1.c (main): Likewise.
2264         * tests/test-mbscasestr2.c (main): Likewise.
2265         * tests/test-memmem.c (main): Likewise.
2266         * tests/test-strstr.c (main): Likewise.
2267         * tests/test-strcasestr.c (main): Likewise.
2268
2269 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2270
2271         init.sh: change framework_failure_ to fail with status 99, not 1
2272         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2273         automake's parallel-tests rule that this is an unexpected failure,
2274         even if the test is listed in XFAIL_TESTS.
2275
2276 2010-06-11  Jim Meyering  <meyering@redhat.com>
2277
2278         test-inttostr: avoid warnings about 4-6KB literal strings
2279         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2280         Include "macros.h", for its definition of ASSERT.
2281         (CK): s/assert/ASSERT/
2282         * modules/inttostr-tests (Files): Add macros.h.
2283
2284         init.sh: don't use $ME_ or skip_ before they are defined
2285         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2286         their first uses.  Also hoist their companions: warn_, fail_,
2287         framework_failure_, $stderr_fileno.  Prompted by a patch from
2288         Stefano Lattarini.
2289
2290         test-sys_socket: avoid set-but-not-used warnings from gcc
2291         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2292         avoid warning about set-but-not-used variables.
2293
2294         test-xvasprintf: avoid 'const' discard warnings
2295         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2296         "const" when assigning from literal strings.
2297         (test_xasprintf): Add "void" in function argument list to placate
2298         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2299
2300         tests: avoid compilation warnings in argmatch and exclude tests...
2301         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2302         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2303         Since it always exits, declare with the "noreturn" attribute.
2304         * tests/test-argmatch.c: Likewise.
2305
2306         tests: avoid 'const' discard warnings in mbsstr tests
2307         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2308         * tests/test-mbsstr2.c (main): Likewise.
2309
2310         test-verify: avoid warning from gcc's -Wmissing-declarations
2311         * tests/test-verify.c (function): Declare to be static.
2312
2313         test-inttostr.c: include <string.h> for use of strcmp
2314         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2315
2316         test-linkat: avoid failed assertion on "other" architectures
2317         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2318         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2319         sparc: https://bugs.launchpad.net/bugs/591968
2320
2321 2010-06-11  Jim Meyering  <meyering@redhat.com>
2322
2323         printf.m4: avoid autoconf's "Expanded Before Required" warning
2324         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2325         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2326         autoconf warning.
2327
2328 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2329
2330         Replacement header templates are now named with ".in", not "_".
2331         * doc/gnulib-intro.texi: Correct.
2332
2333 2010-06-10  Jim Meyering  <meyering@redhat.com>
2334
2335         inttostr-tests: depend on snprintf, not snprintf-posix
2336         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2337         snprintf-posix, to avoid this aclocal failure:
2338           missing file gnulib-tests/vasnprintf.c
2339           configure.ac:45: error: expected source file, required through \
2340           AC_LIBSOURCES, not found
2341
2342 2010-06-10  Jim Meyering  <meyering@redhat.com>
2343
2344         inttostr: add a new function, inttostr, and tests
2345         The namesake function was not available.  The existence of the
2346         template file, inttostr.c makes its addition nontrivial.
2347         * lib/anytostr.c: Rename from inttostr.c.
2348         (anytostr): Rename from inttostr.
2349         * lib/inttostr.c: New file.
2350         * modules/inttostr (Files): Add anytostr.c.
2351         (Makefile.am): Set lib_SOURCES instead of ...
2352         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2353         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2354         * lib/offtostr.c: Likewise.
2355         * lib/uinttostr.c: Likewise.
2356         * lib/umaxtostr.c: Likewise.
2357         * modules/inttostr-tests: New file.
2358         * tests/test-inttostr.c: New file.  Test these functions.
2359
2360 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2361             Bruno Haible  <bruno@clisp.org>
2362
2363         Add "Extending Gnulib" chapter to manual.
2364         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2365         chapter.
2366         (Extending Gnulib): New chapter.
2367         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2368         chapter.
2369
2370 2010-06-09  Bruno Haible  <bruno@clisp.org>
2371
2372         Avoid relocwrapper link errors due to gnulib replacement functions.
2373         * lib/areadlink.c: Use the system's malloc, realloc functions.
2374         (areadlink): Set errno to ENOMEM explicitly.
2375         * modules/areadlink (Depends-on): Remove malloc-posix.
2376         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2377
2378 2010-06-09  Bruno Haible  <bruno@clisp.org>
2379
2380         Avoid relocwrapper link errors due to gnulib replacement functions.
2381         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2382         * lib/malloca.c: Likewise.
2383         * lib/relocatable.c: Likewise.
2384         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2385         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2386         * lib/setenv.c: Use the system's malloc, realloc functions.
2387         * lib/strerror.c: Use the system's sprintf function.
2388         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2389
2390 2010-06-04  Bruno Haible  <bruno@clisp.org>
2391
2392         Prefer documented low-level autoconf macro names.
2393         * m4/lib-link.m4: Use m4_translit instead of translit.
2394         * m4/environ.m4: Likewise.
2395         * m4/mathfunc.m4: Likewise.
2396         * m4/onceonly.m4: Likewise.
2397         * m4/stdint.m4: Likewise.
2398         Suggested by Eric Blake.
2399
2400 2010-06-04  Martin Lambers  <marlam@marlam.de>
2401             Bruno Haible  <bruno@clisp.org>
2402
2403         havelib: Allow library names with '+' characters.
2404         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2405         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2406
2407 2010-06-09  Bruno Haible  <bruno@clisp.org>
2408
2409         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2410         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2411         realloc failed.
2412
2413 2010-06-08  Peter Simons  <simons@cryp.to>
2414
2415         maint.mk: make the news-check rule more configurable
2416         * top/maint.mk (news-check-lines-spec) New variable.
2417         (news-check): Use "sed -n 1,10p" in place of "head".
2418
2419 2010-06-07  Jim Meyering  <meyering@redhat.com>
2420
2421         do-release-commit-and-tag: fix typo in --help
2422         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2423
2424         regex: avoid new dead-code warning with gcc-4.6.0
2425         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2426         if-block containing a while-loop.  It's been unused for at least
2427         5 years.
2428
2429 2010-06-05  Bruno Haible  <bruno@clisp.org>
2430
2431         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2432         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2433
2434 2010-06-04  Bruno Haible  <bruno@clisp.org>
2435
2436         Update to GNU gettext 0.18.1.
2437         * modules/gettext (configure.ac): Require gettext infrastructure from
2438         version 0.18.1.
2439
2440 2010-06-03  Bruno Haible  <bruno@clisp.org>
2441
2442         Don't use AC_LIBOBJ with file names in subdirectories.
2443         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2444         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2445         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2446         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2447         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2448         gl_LIBUNISTRING_LIBSOURCE.
2449         (Makefile.am): Augment lib_SOURCES here, conditionally.
2450         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2451
2452 2010-06-03  Bruno Haible  <bruno@clisp.org>
2453
2454         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2455         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2456         expansion does not end with a newline.
2457         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2458         unnecessary newline.
2459
2460 2010-06-03  Bruno Haible  <bruno@clisp.org>
2461
2462         Reduce dependencies.
2463         * tests/test-quotearg.h: New file, extracted from
2464         tests/test-quotearg.c.
2465         * tests/test-quotearg-simple.c: New file, extracted from
2466         tests/test-quotearg.c.
2467         * tests/test-quotearg.c: Don't include <ctype.h>.
2468         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2469         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2470         use_quote_double_quotes, use_quotearg_colon): Moved to
2471         tests/test-quotearg.h.
2472         (results_g, flag_results, custom_quotes, custom_results): Moved
2473         to tests/test-quotearg-simple.c.
2474         (main): Moved the part that does not depend on gettext to
2475         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2476         performed.
2477         * modules/quotearg-simple: New file.
2478         * modules/quotearg-simple-tests: New file.
2479         * modules/quotearg (Depends-on): Add quotearg-simple.
2480         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2481         (Files): Add tests/test-quotearg.h.
2482         Reported by Paolo Bonzini.
2483
2484 2010-06-03  Bruno Haible  <bruno@clisp.org>
2485
2486         Reduce dependencies.
2487         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2488
2489 2010-06-03  Bruno Haible  <bruno@clisp.org>
2490
2491         time: Undefine more broken macros.
2492         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2493         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2494         Reported by Eric Blake.
2495
2496 2010-06-03  Bruno Haible  <bruno@clisp.org>
2497
2498         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2499         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2500         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2501         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2502         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2503         Reported by Ludovic Courtès <ludo@gnu.org>.
2504
2505 2010-06-02  Eric Blake  <eblake@redhat.com>
2506
2507         time: work with mingw + pthreads-win32 library
2508         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2509         if timespec is defined only in pthread.h.
2510         * modules/time (Makefile.am): Substitute it.
2511         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2512         <pthread.h>, when needed.
2513         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2514         from the library.
2515
2516 2010-05-31  Bruno Haible  <bruno@clisp.org>
2517
2518         Avoid expanding two macros in the wrong order.
2519         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2520         gl_LIBUNISTRING if it is defined.
2521         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2522         autoconf >= 2.64.
2523         Reported by Ludovic Courtès <ludo@gnu.org>.
2524
2525 2010-05-27  Jim Meyering  <meyering@redhat.com>
2526
2527         maint.mk: also prohibit "#undef" of always-defined symbols
2528         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2529         Allow more than one space before the symbol name.
2530         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2531         the regexp uses alternation.
2532
2533 2010-05-26  Eric Blake  <eblake@redhat.com>
2534
2535         maint.mk: avoid echo -e
2536         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2537         Convert all uses of echo -* to printf.
2538         Reported by Matthias Bolte.
2539
2540 2010-05-25  Bruno Haible  <bruno@clisp.org>
2541
2542         Update to GNU gettext 0.18, part 2.
2543         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2544         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2545
2546 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2547
2548         Add missing include in test-pwrite.c.
2549         * tests/test-pwrite.c: Include string.h, for strcmp.
2550
2551 2010-05-24  Bruno Haible  <bruno@clisp.org>
2552
2553         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2554
2555 2010-05-24  Bruno Haible  <bruno@clisp.org>
2556
2557         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2558         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2559         iconveh_error argument.
2560         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2561         U_STRCONV_TO_LOCALE.
2562         * lib/unistr/u16-strcoll.c: Likewise.
2563         * lib/unistr/u32-strcoll.c: Likewise.
2564         * modules/unistr/u8-strcoll (Depends-on): Add
2565         uniconv/u8-strconv-to-enc, localcharset. Remove
2566         uniconv/u8-strconv-to-locale.
2567         (configure.ac): Bump version number.
2568         * modules/unistr/u16-strcoll (Depends-on): Add
2569         uniconv/u16-strconv-to-enc, localcharset. Remove
2570         uniconv/u16-strconv-to-locale.
2571         (configure.ac): Bump version number.
2572         * modules/unistr/u32-strcoll (Depends-on): Add
2573         uniconv/u32-strconv-to-enc, localcharset. Remove
2574         uniconv/u32-strconv-to-locale.
2575         (configure.ac): Bump version number.
2576
2577 2010-05-24  Bruno Haible  <bruno@clisp.org>
2578
2579         Avoid a test failure on NetBSD 5.0.
2580         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2581         an iconv() bug.
2582
2583 2010-05-24  Bruno Haible  <bruno@clisp.org>
2584
2585         Adjust #include directive style.
2586         * modules/regex (Includes): Recommend to write <regex.h>.
2587
2588 2010-05-24  Bruno Haible  <bruno@clisp.org>
2589
2590         regex: Don't require alloca.
2591         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2592         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2593         only inside if (0).
2594
2595 2010-05-23  Jim Meyering  <meyering@redhat.com>
2596
2597         test-renameat.c: include <sys/stat.h>
2598         * tests/test-renameat.c: Include <sys/stat.h>; required for
2599         definition of S_IS* macros.
2600
2601 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2602
2603         Update maintainer documentation for 'relocatable-prog' module.
2604         * doc/relocatable-maint.texi: Update.
2605         Comments by Bruno Haible.
2606
2607 2010-05-23  Bruno Haible  <bruno@clisp.org>
2608
2609         git-merge-changelog: Enable --split-merged-entry by default.
2610         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2611         (usage): Don't mention this option any more.
2612         Reported by Ralf Wildenhues.
2613
2614 2010-05-23  Jim Meyering  <meyering@redhat.com>
2615
2616         test-pwrite: do not leave behind a test file named "out"
2617         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2618         The trivial-looking use of init.sh is really necessary.
2619         It ensures that the temporary file, "out", is created in
2620         a temporary directory, and removed upon termination.
2621         * tests/test-pwrite.sh: Re-add file.
2622         * modules/pwrite-tests: Reference it.
2623
2624 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2625
2626         Fix output redirection buglet in init.sh.
2627         * tests/init.sh: Fix redirection of stderr.
2628
2629 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2630
2631         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2632
2633 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2634
2635         * modules/valgrind-tests: New file.
2636         * m4/valgrind-tests.m4: New file.
2637         * doc/valgrind-tests.texi: New file.
2638         * doc/gnulib.texi (Running self-tests under valgrind): New
2639         section.
2640
2641 2010-05-19  Bruno Haible  <bruno@clisp.org>
2642
2643         Clean up dead code in recent commit.
2644         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2645         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2646         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2647         Suggested by Paolo Bonzini.
2648
2649 2010-05-19  Bruno Haible  <bruno@clisp.org>
2650
2651         Avoid valgrind error reports from libunistring.
2652         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2653         * modules/libunistring (Files): Add it.
2654         * modules/libunistring-optional (Files): Likewise.
2655
2656 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2657             Bruno Haible  <bruno@clisp.org>
2658
2659         New module 'libunistring-optional'.
2660         * modules/libunistring-optional: New file.
2661         * m4/libunistring-base.m4: New file.
2662         * m4/libunistring-optional.m4: New file.
2663         * lib/unicase.in.h: Renamed from lib/unicase.h.
2664         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2665         * lib/unictype.in.h: Renamed from lib/unictype.h.
2666         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2667         * lib/uniname.in.h: Renamed from lib/uniname.h.
2668         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2669         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2670         * lib/unistr.in.h: Renamed from lib/unistr.h.
2671         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2672         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2673         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2674         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2675         gl_LIBUNISTRING. If the library was found, determine the installed
2676         version and set LIBUNISTRING_VERSION.
2677         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2678         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2679         handle a configuration option --with-included-libunistring.
2680         * modules/libunistring (Files): Add m4/absolute-header.m4.
2681         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2682         Add m4/libunistring-base.m4.
2683         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2684         (Makefile.am): Build unicase.h from unicase.in.h.
2685         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2686         Add m4/libunistring-base.m4.
2687         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2688         (Makefile.am): Build uniconv.h from uniconv.in.h.
2689         * modules/unictype/base (Files): Use unictype.in.h instead of
2690         unictype.h. Add m4/libunistring-base.m4.
2691         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2692         (Makefile.am): Build unictype.h from unictype.in.h.
2693         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2694         Add m4/libunistring-base.m4.
2695         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2696         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2697         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2698         Add m4/libunistring-base.m4.
2699         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2700         (Makefile.am): Build uniname.h from uniname.in.h.
2701         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2702         Add m4/libunistring-base.m4.
2703         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2704         (Makefile.am): Build uninorm.h from uninorm.in.h.
2705         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2706         unistdio.h. Add m4/libunistring-base.m4.
2707         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2708         (Makefile.am): Build unistdio.h from unistdio.in.h.
2709         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2710         Add m4/libunistring-base.m4.
2711         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2712         (Makefile.am): Build unistr.h from unistr.in.h.
2713         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2714         Add m4/libunistring-base.m4.
2715         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2716         (Makefile.am): Build unitypes.h from unitypes.in.h.
2717         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2718         Add m4/libunistring-base.m4.
2719         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2720         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2721         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2722         uniwidth.h. Add m4/libunistring-base.m4.
2723         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2724         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2725         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2726         instead of augmenting lib_SOURCES.
2727         * modules/unicase/empty-suffix-context: Likewise.
2728         * modules/unicase/locale-language: Likewise.
2729         * modules/unicase/tolower: Likewise.
2730         * modules/unicase/totitle: Likewise.
2731         * modules/unicase/toupper: Likewise.
2732         * modules/unicase/u8-casecmp: Likewise.
2733         * modules/unicase/u8-casecoll: Likewise.
2734         * modules/unicase/u8-casefold: Likewise.
2735         * modules/unicase/u8-casexfrm: Likewise.
2736         * modules/unicase/u8-ct-casefold: Likewise.
2737         * modules/unicase/u8-ct-tolower: Likewise.
2738         * modules/unicase/u8-ct-totitle: Likewise.
2739         * modules/unicase/u8-ct-toupper: Likewise.
2740         * modules/unicase/u8-is-cased: Likewise.
2741         * modules/unicase/u8-is-casefolded: Likewise.
2742         * modules/unicase/u8-is-lowercase: Likewise.
2743         * modules/unicase/u8-is-titlecase: Likewise.
2744         * modules/unicase/u8-is-uppercase: Likewise.
2745         * modules/unicase/u8-prefix-context: Likewise.
2746         * modules/unicase/u8-suffix-context: Likewise.
2747         * modules/unicase/u8-tolower: Likewise.
2748         * modules/unicase/u8-totitle: Likewise.
2749         * modules/unicase/u8-toupper: Likewise.
2750         * modules/unicase/u16-casecmp: Likewise.
2751         * modules/unicase/u16-casecoll: Likewise.
2752         * modules/unicase/u16-casefold: Likewise.
2753         * modules/unicase/u16-casexfrm: Likewise.
2754         * modules/unicase/u16-ct-casefold: Likewise.
2755         * modules/unicase/u16-ct-tolower: Likewise.
2756         * modules/unicase/u16-ct-totitle: Likewise.
2757         * modules/unicase/u16-ct-toupper: Likewise.
2758         * modules/unicase/u16-is-cased: Likewise.
2759         * modules/unicase/u16-is-casefolded: Likewise.
2760         * modules/unicase/u16-is-lowercase: Likewise.
2761         * modules/unicase/u16-is-titlecase: Likewise.
2762         * modules/unicase/u16-is-uppercase: Likewise.
2763         * modules/unicase/u16-prefix-context: Likewise.
2764         * modules/unicase/u16-suffix-context: Likewise.
2765         * modules/unicase/u16-tolower: Likewise.
2766         * modules/unicase/u16-totitle: Likewise.
2767         * modules/unicase/u16-toupper: Likewise.
2768         * modules/unicase/u32-casecmp: Likewise.
2769         * modules/unicase/u32-casecoll: Likewise.
2770         * modules/unicase/u32-casefold: Likewise.
2771         * modules/unicase/u32-casexfrm: Likewise.
2772         * modules/unicase/u32-ct-casefold: Likewise.
2773         * modules/unicase/u32-ct-tolower: Likewise.
2774         * modules/unicase/u32-ct-totitle: Likewise.
2775         * modules/unicase/u32-ct-toupper: Likewise.
2776         * modules/unicase/u32-is-cased: Likewise.
2777         * modules/unicase/u32-is-casefolded: Likewise.
2778         * modules/unicase/u32-is-lowercase: Likewise.
2779         * modules/unicase/u32-is-titlecase: Likewise.
2780         * modules/unicase/u32-is-uppercase: Likewise.
2781         * modules/unicase/u32-prefix-context: Likewise.
2782         * modules/unicase/u32-suffix-context: Likewise.
2783         * modules/unicase/u32-tolower: Likewise.
2784         * modules/unicase/u32-totitle: Likewise.
2785         * modules/unicase/u32-toupper: Likewise.
2786         * modules/unicase/ulc-casecmp: Likewise.
2787         * modules/unicase/ulc-casecoll: Likewise.
2788         * modules/unicase/ulc-casexfrm: Likewise.
2789         * modules/uniconv/u8-conv-from-enc: Likewise.
2790         * modules/uniconv/u8-conv-to-enc: Likewise.
2791         * modules/uniconv/u8-strconv-from-enc: Likewise.
2792         * modules/uniconv/u8-strconv-from-locale: Likewise.
2793         * modules/uniconv/u8-strconv-to-enc: Likewise.
2794         * modules/uniconv/u8-strconv-to-locale: Likewise.
2795         * modules/uniconv/u16-conv-from-enc: Likewise.
2796         * modules/uniconv/u16-conv-to-enc: Likewise.
2797         * modules/uniconv/u16-strconv-from-enc: Likewise.
2798         * modules/uniconv/u16-strconv-from-locale: Likewise.
2799         * modules/uniconv/u16-strconv-to-enc: Likewise.
2800         * modules/uniconv/u16-strconv-to-locale: Likewise.
2801         * modules/uniconv/u32-conv-from-enc: Likewise.
2802         * modules/uniconv/u32-conv-to-enc: Likewise.
2803         * modules/uniconv/u32-strconv-from-enc: Likewise.
2804         * modules/uniconv/u32-strconv-from-locale: Likewise.
2805         * modules/uniconv/u32-strconv-to-enc: Likewise.
2806         * modules/uniconv/u32-strconv-to-locale: Likewise.
2807         * modules/unictype/bidicategory-byname: Likewise.
2808         * modules/unictype/bidicategory-name: Likewise.
2809         * modules/unictype/bidicategory-of: Likewise.
2810         * modules/unictype/bidicategory-test: Likewise.
2811         * modules/unictype/block-list: Likewise.
2812         * modules/unictype/block-test: Likewise.
2813         * modules/unictype/category-C: Likewise.
2814         * modules/unictype/category-Cc: Likewise.
2815         * modules/unictype/category-Cf: Likewise.
2816         * modules/unictype/category-Cn: Likewise.
2817         * modules/unictype/category-Co: Likewise.
2818         * modules/unictype/category-Cs: Likewise.
2819         * modules/unictype/category-L: Likewise.
2820         * modules/unictype/category-Ll: Likewise.
2821         * modules/unictype/category-Lm: Likewise.
2822         * modules/unictype/category-Lo: Likewise.
2823         * modules/unictype/category-Lt: Likewise.
2824         * modules/unictype/category-Lu: Likewise.
2825         * modules/unictype/category-M: Likewise.
2826         * modules/unictype/category-Mc: Likewise.
2827         * modules/unictype/category-Me: Likewise.
2828         * modules/unictype/category-Mn: Likewise.
2829         * modules/unictype/category-N: Likewise.
2830         * modules/unictype/category-Nd: Likewise.
2831         * modules/unictype/category-Nl: Likewise.
2832         * modules/unictype/category-No: Likewise.
2833         * modules/unictype/category-P: Likewise.
2834         * modules/unictype/category-Pc: Likewise.
2835         * modules/unictype/category-Pd: Likewise.
2836         * modules/unictype/category-Pe: Likewise.
2837         * modules/unictype/category-Pf: Likewise.
2838         * modules/unictype/category-Pi: Likewise.
2839         * modules/unictype/category-Po: Likewise.
2840         * modules/unictype/category-Ps: Likewise.
2841         * modules/unictype/category-S: Likewise.
2842         * modules/unictype/category-Sc: Likewise.
2843         * modules/unictype/category-Sk: Likewise.
2844         * modules/unictype/category-Sm: Likewise.
2845         * modules/unictype/category-So: Likewise.
2846         * modules/unictype/category-Z: Likewise.
2847         * modules/unictype/category-Zl: Likewise.
2848         * modules/unictype/category-Zp: Likewise.
2849         * modules/unictype/category-Zs: Likewise.
2850         * modules/unictype/category-and: Likewise.
2851         * modules/unictype/category-and-not: Likewise.
2852         * modules/unictype/category-byname: Likewise.
2853         * modules/unictype/category-name: Likewise.
2854         * modules/unictype/category-none: Likewise.
2855         * modules/unictype/category-of: Likewise.
2856         * modules/unictype/category-or: Likewise.
2857         * modules/unictype/category-test: Likewise.
2858         * modules/unictype/combining-class: Likewise.
2859         * modules/unictype/ctype-alnum: Likewise.
2860         * modules/unictype/ctype-alpha: Likewise.
2861         * modules/unictype/ctype-blank: Likewise.
2862         * modules/unictype/ctype-cntrl: Likewise.
2863         * modules/unictype/ctype-digit: Likewise.
2864         * modules/unictype/ctype-graph: Likewise.
2865         * modules/unictype/ctype-lower: Likewise.
2866         * modules/unictype/ctype-print: Likewise.
2867         * modules/unictype/ctype-punct: Likewise.
2868         * modules/unictype/ctype-space: Likewise.
2869         * modules/unictype/ctype-upper: Likewise.
2870         * modules/unictype/ctype-xdigit: Likewise.
2871         * modules/unictype/decimal-digit: Likewise.
2872         * modules/unictype/digit: Likewise.
2873         * modules/unictype/mirror: Likewise.
2874         * modules/unictype/numeric: Likewise.
2875         * modules/unictype/property-alphabetic: Likewise.
2876         * modules/unictype/property-ascii-hex-digit: Likewise.
2877         * modules/unictype/property-bidi-arabic-digit: Likewise.
2878         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2879         * modules/unictype/property-bidi-block-separator: Likewise.
2880         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2881         * modules/unictype/property-bidi-common-separator: Likewise.
2882         * modules/unictype/property-bidi-control: Likewise.
2883         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2884         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2885         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2886         * modules/unictype/property-bidi-european-digit: Likewise.
2887         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2888         * modules/unictype/property-bidi-left-to-right: Likewise.
2889         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2890         * modules/unictype/property-bidi-other-neutral: Likewise.
2891         * modules/unictype/property-bidi-pdf: Likewise.
2892         * modules/unictype/property-bidi-segment-separator: Likewise.
2893         * modules/unictype/property-bidi-whitespace: Likewise.
2894         * modules/unictype/property-byname: Likewise.
2895         * modules/unictype/property-combining: Likewise.
2896         * modules/unictype/property-composite: Likewise.
2897         * modules/unictype/property-currency-symbol: Likewise.
2898         * modules/unictype/property-dash: Likewise.
2899         * modules/unictype/property-decimal-digit: Likewise.
2900         * modules/unictype/property-default-ignorable-code-point: Likewise.
2901         * modules/unictype/property-deprecated: Likewise.
2902         * modules/unictype/property-diacritic: Likewise.
2903         * modules/unictype/property-extender: Likewise.
2904         * modules/unictype/property-format-control: Likewise.
2905         * modules/unictype/property-grapheme-base: Likewise.
2906         * modules/unictype/property-grapheme-extend: Likewise.
2907         * modules/unictype/property-grapheme-link: Likewise.
2908         * modules/unictype/property-hex-digit: Likewise.
2909         * modules/unictype/property-hyphen: Likewise.
2910         * modules/unictype/property-id-continue: Likewise.
2911         * modules/unictype/property-id-start: Likewise.
2912         * modules/unictype/property-ideographic: Likewise.
2913         * modules/unictype/property-ids-binary-operator: Likewise.
2914         * modules/unictype/property-ids-trinary-operator: Likewise.
2915         * modules/unictype/property-ignorable-control: Likewise.
2916         * modules/unictype/property-iso-control: Likewise.
2917         * modules/unictype/property-join-control: Likewise.
2918         * modules/unictype/property-left-of-pair: Likewise.
2919         * modules/unictype/property-line-separator: Likewise.
2920         * modules/unictype/property-logical-order-exception: Likewise.
2921         * modules/unictype/property-lowercase: Likewise.
2922         * modules/unictype/property-math: Likewise.
2923         * modules/unictype/property-non-break: Likewise.
2924         * modules/unictype/property-not-a-character: Likewise.
2925         * modules/unictype/property-numeric: Likewise.
2926         * modules/unictype/property-other-alphabetic: Likewise.
2927         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2928         * modules/unictype/property-other-grapheme-extend: Likewise.
2929         * modules/unictype/property-other-id-continue: Likewise.
2930         * modules/unictype/property-other-id-start: Likewise.
2931         * modules/unictype/property-other-lowercase: Likewise.
2932         * modules/unictype/property-other-math: Likewise.
2933         * modules/unictype/property-other-uppercase: Likewise.
2934         * modules/unictype/property-paired-punctuation: Likewise.
2935         * modules/unictype/property-paragraph-separator: Likewise.
2936         * modules/unictype/property-pattern-syntax: Likewise.
2937         * modules/unictype/property-pattern-white-space: Likewise.
2938         * modules/unictype/property-private-use: Likewise.
2939         * modules/unictype/property-punctuation: Likewise.
2940         * modules/unictype/property-quotation-mark: Likewise.
2941         * modules/unictype/property-radical: Likewise.
2942         * modules/unictype/property-sentence-terminal: Likewise.
2943         * modules/unictype/property-soft-dotted: Likewise.
2944         * modules/unictype/property-space: Likewise.
2945         * modules/unictype/property-terminal-punctuation: Likewise.
2946         * modules/unictype/property-test: Likewise.
2947         * modules/unictype/property-titlecase: Likewise.
2948         * modules/unictype/property-unassigned-code-value: Likewise.
2949         * modules/unictype/property-unified-ideograph: Likewise.
2950         * modules/unictype/property-uppercase: Likewise.
2951         * modules/unictype/property-variation-selector: Likewise.
2952         * modules/unictype/property-white-space: Likewise.
2953         * modules/unictype/property-xid-continue: Likewise.
2954         * modules/unictype/property-xid-start: Likewise.
2955         * modules/unictype/property-zero-width: Likewise.
2956         * modules/unictype/scripts: Likewise.
2957         * modules/unictype/syntax-c-ident: Likewise.
2958         * modules/unictype/syntax-c-whitespace: Likewise.
2959         * modules/unictype/syntax-java-ident: Likewise.
2960         * modules/unictype/syntax-java-whitespace: Likewise.
2961         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2962         * modules/unilbrk/u8-width-linebreaks: Likewise.
2963         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2964         * modules/unilbrk/u16-width-linebreaks: Likewise.
2965         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2966         * modules/unilbrk/u32-width-linebreaks: Likewise.
2967         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2968         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2969         * modules/uniname/uniname: Likewise.
2970         * modules/uninorm/canonical-decomposition: Likewise.
2971         * modules/uninorm/composition: Likewise.
2972         * modules/uninorm/decomposing-form: Likewise.
2973         * modules/uninorm/decomposition: Likewise.
2974         * modules/uninorm/filter: Likewise.
2975         * modules/uninorm/nfc: Likewise.
2976         * modules/uninorm/nfd: Likewise.
2977         * modules/uninorm/nfkc: Likewise.
2978         * modules/uninorm/nfkd: Likewise.
2979         * modules/uninorm/u8-normalize: Likewise.
2980         * modules/uninorm/u8-normcmp: Likewise.
2981         * modules/uninorm/u8-normcoll: Likewise.
2982         * modules/uninorm/u8-normxfrm: Likewise.
2983         * modules/uninorm/u16-normalize: Likewise.
2984         * modules/uninorm/u16-normcmp: Likewise.
2985         * modules/uninorm/u16-normcoll: Likewise.
2986         * modules/uninorm/u16-normxfrm: Likewise.
2987         * modules/uninorm/u32-normalize: Likewise.
2988         * modules/uninorm/u32-normcmp: Likewise.
2989         * modules/uninorm/u32-normcoll: Likewise.
2990         * modules/uninorm/u32-normxfrm: Likewise.
2991         * modules/unistdio/u8-asnprintf: Likewise.
2992         * modules/unistdio/u8-asprintf: Likewise.
2993         * modules/unistdio/u8-snprintf: Likewise.
2994         * modules/unistdio/u8-sprintf: Likewise.
2995         * modules/unistdio/u8-u8-asnprintf: Likewise.
2996         * modules/unistdio/u8-u8-asprintf: Likewise.
2997         * modules/unistdio/u8-u8-snprintf: Likewise.
2998         * modules/unistdio/u8-u8-sprintf: Likewise.
2999         * modules/unistdio/u8-u8-vasnprintf: Likewise.
3000         * modules/unistdio/u8-u8-vasprintf: Likewise.
3001         * modules/unistdio/u8-u8-vsnprintf: Likewise.
3002         * modules/unistdio/u8-u8-vsprintf: Likewise.
3003         * modules/unistdio/u8-vasnprintf: Likewise.
3004         * modules/unistdio/u8-vasprintf: Likewise.
3005         * modules/unistdio/u8-vsnprintf: Likewise.
3006         * modules/unistdio/u8-vsprintf: Likewise.
3007         * modules/unistdio/u16-asnprintf: Likewise.
3008         * modules/unistdio/u16-asprintf: Likewise.
3009         * modules/unistdio/u16-snprintf: Likewise.
3010         * modules/unistdio/u16-sprintf: Likewise.
3011         * modules/unistdio/u16-u16-asnprintf: Likewise.
3012         * modules/unistdio/u16-u16-asprintf: Likewise.
3013         * modules/unistdio/u16-u16-snprintf: Likewise.
3014         * modules/unistdio/u16-u16-sprintf: Likewise.
3015         * modules/unistdio/u16-u16-vasnprintf: Likewise.
3016         * modules/unistdio/u16-u16-vasprintf: Likewise.
3017         * modules/unistdio/u16-u16-vsnprintf: Likewise.
3018         * modules/unistdio/u16-u16-vsprintf: Likewise.
3019         * modules/unistdio/u16-vasnprintf: Likewise.
3020         * modules/unistdio/u16-vasprintf: Likewise.
3021         * modules/unistdio/u16-vsnprintf: Likewise.
3022         * modules/unistdio/u16-vsprintf: Likewise.
3023         * modules/unistdio/u32-asnprintf: Likewise.
3024         * modules/unistdio/u32-asprintf: Likewise.
3025         * modules/unistdio/u32-snprintf: Likewise.
3026         * modules/unistdio/u32-sprintf: Likewise.
3027         * modules/unistdio/u32-u32-asnprintf: Likewise.
3028         * modules/unistdio/u32-u32-asprintf: Likewise.
3029         * modules/unistdio/u32-u32-snprintf: Likewise.
3030         * modules/unistdio/u32-u32-sprintf: Likewise.
3031         * modules/unistdio/u32-u32-vasnprintf: Likewise.
3032         * modules/unistdio/u32-u32-vasprintf: Likewise.
3033         * modules/unistdio/u32-u32-vsnprintf: Likewise.
3034         * modules/unistdio/u32-u32-vsprintf: Likewise.
3035         * modules/unistdio/u32-vasnprintf: Likewise.
3036         * modules/unistdio/u32-vasprintf: Likewise.
3037         * modules/unistdio/u32-vsnprintf: Likewise.
3038         * modules/unistdio/u32-vsprintf: Likewise.
3039         * modules/unistdio/ulc-asnprintf: Likewise.
3040         * modules/unistdio/ulc-asprintf: Likewise.
3041         * modules/unistdio/ulc-fprintf: Likewise.
3042         * modules/unistdio/ulc-snprintf: Likewise.
3043         * modules/unistdio/ulc-sprintf: Likewise.
3044         * modules/unistdio/ulc-vasnprintf: Likewise.
3045         * modules/unistdio/ulc-vasprintf: Likewise.
3046         * modules/unistdio/ulc-vfprintf: Likewise.
3047         * modules/unistdio/ulc-vsnprintf: Likewise.
3048         * modules/unistdio/ulc-vsprintf: Likewise.
3049         * modules/unistr/u8-check: Likewise.
3050         * modules/unistr/u8-chr: Likewise.
3051         * modules/unistr/u8-cmp: Likewise.
3052         * modules/unistr/u8-cmp2: Likewise.
3053         * modules/unistr/u8-cpy: Likewise.
3054         * modules/unistr/u8-cpy-alloc: Likewise.
3055         * modules/unistr/u8-endswith: Likewise.
3056         * modules/unistr/u8-mblen: Likewise.
3057         * modules/unistr/u8-mbsnlen: Likewise.
3058         * modules/unistr/u8-mbtouc: Likewise.
3059         * modules/unistr/u8-mbtouc-unsafe: Likewise.
3060         * modules/unistr/u8-mbtoucr: Likewise.
3061         * modules/unistr/u8-move: Likewise.
3062         * modules/unistr/u8-next: Likewise.
3063         * modules/unistr/u8-prev: Likewise.
3064         * modules/unistr/u8-set: Likewise.
3065         * modules/unistr/u8-startswith: Likewise.
3066         * modules/unistr/u8-stpcpy: Likewise.
3067         * modules/unistr/u8-stpncpy: Likewise.
3068         * modules/unistr/u8-strcat: Likewise.
3069         * modules/unistr/u8-strchr: Likewise.
3070         * modules/unistr/u8-strcmp: Likewise.
3071         * modules/unistr/u8-strcoll: Likewise.
3072         * modules/unistr/u8-strcpy: Likewise.
3073         * modules/unistr/u8-strcspn: Likewise.
3074         * modules/unistr/u8-strdup: Likewise.
3075         * modules/unistr/u8-strlen: Likewise.
3076         * modules/unistr/u8-strmblen: Likewise.
3077         * modules/unistr/u8-strmbtouc: Likewise.
3078         * modules/unistr/u8-strncat: Likewise.
3079         * modules/unistr/u8-strncmp: Likewise.
3080         * modules/unistr/u8-strncpy: Likewise.
3081         * modules/unistr/u8-strnlen: Likewise.
3082         * modules/unistr/u8-strpbrk: Likewise.
3083         * modules/unistr/u8-strrchr: Likewise.
3084         * modules/unistr/u8-strspn: Likewise.
3085         * modules/unistr/u8-strstr: Likewise.
3086         * modules/unistr/u8-strtok: Likewise.
3087         * modules/unistr/u8-to-u16: Likewise.
3088         * modules/unistr/u8-to-u32: Likewise.
3089         * modules/unistr/u8-uctomb: Likewise.
3090         * modules/unistr/u16-check: Likewise.
3091         * modules/unistr/u16-chr: Likewise.
3092         * modules/unistr/u16-cmp: Likewise.
3093         * modules/unistr/u16-cmp2: Likewise.
3094         * modules/unistr/u16-cpy: Likewise.
3095         * modules/unistr/u16-cpy-alloc: Likewise.
3096         * modules/unistr/u16-endswith: Likewise.
3097         * modules/unistr/u16-mblen: Likewise.
3098         * modules/unistr/u16-mbsnlen: Likewise.
3099         * modules/unistr/u16-mbtouc: Likewise.
3100         * modules/unistr/u16-mbtouc-unsafe: Likewise.
3101         * modules/unistr/u16-mbtoucr: Likewise.
3102         * modules/unistr/u16-move: Likewise.
3103         * modules/unistr/u16-next: Likewise.
3104         * modules/unistr/u16-prev: Likewise.
3105         * modules/unistr/u16-set: Likewise.
3106         * modules/unistr/u16-startswith: Likewise.
3107         * modules/unistr/u16-stpcpy: Likewise.
3108         * modules/unistr/u16-stpncpy: Likewise.
3109         * modules/unistr/u16-strcat: Likewise.
3110         * modules/unistr/u16-strchr: Likewise.
3111         * modules/unistr/u16-strcmp: Likewise.
3112         * modules/unistr/u16-strcoll: Likewise.
3113         * modules/unistr/u16-strcpy: Likewise.
3114         * modules/unistr/u16-strcspn: Likewise.
3115         * modules/unistr/u16-strdup: Likewise.
3116         * modules/unistr/u16-strlen: Likewise.
3117         * modules/unistr/u16-strmblen: Likewise.
3118         * modules/unistr/u16-strmbtouc: Likewise.
3119         * modules/unistr/u16-strncat: Likewise.
3120         * modules/unistr/u16-strncmp: Likewise.
3121         * modules/unistr/u16-strncpy: Likewise.
3122         * modules/unistr/u16-strnlen: Likewise.
3123         * modules/unistr/u16-strpbrk: Likewise.
3124         * modules/unistr/u16-strrchr: Likewise.
3125         * modules/unistr/u16-strspn: Likewise.
3126         * modules/unistr/u16-strstr: Likewise.
3127         * modules/unistr/u16-strtok: Likewise.
3128         * modules/unistr/u16-to-u32: Likewise.
3129         * modules/unistr/u16-to-u8: Likewise.
3130         * modules/unistr/u16-uctomb: Likewise.
3131         * modules/unistr/u32-check: Likewise.
3132         * modules/unistr/u32-chr: Likewise.
3133         * modules/unistr/u32-cmp: Likewise.
3134         * modules/unistr/u32-cmp2: Likewise.
3135         * modules/unistr/u32-cpy: Likewise.
3136         * modules/unistr/u32-cpy-alloc: Likewise.
3137         * modules/unistr/u32-endswith: Likewise.
3138         * modules/unistr/u32-mblen: Likewise.
3139         * modules/unistr/u32-mbsnlen: Likewise.
3140         * modules/unistr/u32-mbtouc: Likewise.
3141         * modules/unistr/u32-mbtouc-unsafe: Likewise.
3142         * modules/unistr/u32-mbtoucr: Likewise.
3143         * modules/unistr/u32-move: Likewise.
3144         * modules/unistr/u32-next: Likewise.
3145         * modules/unistr/u32-prev: Likewise.
3146         * modules/unistr/u32-set: Likewise.
3147         * modules/unistr/u32-startswith: Likewise.
3148         * modules/unistr/u32-stpcpy: Likewise.
3149         * modules/unistr/u32-stpncpy: Likewise.
3150         * modules/unistr/u32-strcat: Likewise.
3151         * modules/unistr/u32-strchr: Likewise.
3152         * modules/unistr/u32-strcmp: Likewise.
3153         * modules/unistr/u32-strcoll: Likewise.
3154         * modules/unistr/u32-strcpy: Likewise.
3155         * modules/unistr/u32-strcspn: Likewise.
3156         * modules/unistr/u32-strdup: Likewise.
3157         * modules/unistr/u32-strlen: Likewise.
3158         * modules/unistr/u32-strmblen: Likewise.
3159         * modules/unistr/u32-strmbtouc: Likewise.
3160         * modules/unistr/u32-strncat: Likewise.
3161         * modules/unistr/u32-strncmp: Likewise.
3162         * modules/unistr/u32-strncpy: Likewise.
3163         * modules/unistr/u32-strnlen: Likewise.
3164         * modules/unistr/u32-strpbrk: Likewise.
3165         * modules/unistr/u32-strrchr: Likewise.
3166         * modules/unistr/u32-strspn: Likewise.
3167         * modules/unistr/u32-strstr: Likewise.
3168         * modules/unistr/u32-strtok: Likewise.
3169         * modules/unistr/u32-to-u16: Likewise.
3170         * modules/unistr/u32-to-u8: Likewise.
3171         * modules/unistr/u32-uctomb: Likewise.
3172         * modules/uniwbrk/u8-wordbreaks: Likewise.
3173         * modules/uniwbrk/u16-wordbreaks: Likewise.
3174         * modules/uniwbrk/u32-wordbreaks: Likewise.
3175         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3176         * modules/uniwbrk/wordbreak-property: Likewise.
3177         * modules/uniwidth/u8-strwidth: Likewise.
3178         * modules/uniwidth/u8-width: Likewise.
3179         * modules/uniwidth/u16-strwidth: Likewise.
3180         * modules/uniwidth/u16-width: Likewise.
3181         * modules/uniwidth/u32-strwidth: Likewise.
3182         * modules/uniwidth/u32-width: Likewise.
3183         * modules/uniwidth/width: Likewise.
3184         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3185         with $(LIBUNISTRING).
3186         * modules/unicase/ignorable-tests: Likewise.
3187         * modules/unicase/locale-language-tests: Likewise.
3188         * modules/unicase/tolower-tests: Likewise.
3189         * modules/unicase/totitle-tests: Likewise.
3190         * modules/unicase/toupper-tests: Likewise.
3191         * modules/unicase/u8-casecmp-tests: Likewise.
3192         * modules/unicase/u8-casecoll-tests: Likewise.
3193         * modules/unicase/u8-casefold-tests: Likewise.
3194         * modules/unicase/u8-is-cased-tests: Likewise.
3195         * modules/unicase/u8-is-casefolded-tests: Likewise.
3196         * modules/unicase/u8-is-lowercase-tests: Likewise.
3197         * modules/unicase/u8-is-titlecase-tests: Likewise.
3198         * modules/unicase/u8-is-uppercase-tests: Likewise.
3199         * modules/unicase/u8-tolower-tests: Likewise.
3200         * modules/unicase/u8-totitle-tests: Likewise.
3201         * modules/unicase/u8-toupper-tests: Likewise.
3202         * modules/unicase/u16-casecmp-tests: Likewise.
3203         * modules/unicase/u16-casecoll-tests: Likewise.
3204         * modules/unicase/u16-casefold-tests: Likewise.
3205         * modules/unicase/u16-is-cased-tests: Likewise.
3206         * modules/unicase/u16-is-casefolded-tests: Likewise.
3207         * modules/unicase/u16-is-lowercase-tests: Likewise.
3208         * modules/unicase/u16-is-titlecase-tests: Likewise.
3209         * modules/unicase/u16-is-uppercase-tests: Likewise.
3210         * modules/unicase/u16-tolower-tests: Likewise.
3211         * modules/unicase/u16-totitle-tests: Likewise.
3212         * modules/unicase/u16-toupper-tests: Likewise.
3213         * modules/unicase/u32-casecmp-tests: Likewise.
3214         * modules/unicase/u32-casecoll-tests: Likewise.
3215         * modules/unicase/u32-casefold-tests: Likewise.
3216         * modules/unicase/u32-is-cased-tests: Likewise.
3217         * modules/unicase/u32-is-casefolded-tests: Likewise.
3218         * modules/unicase/u32-is-lowercase-tests: Likewise.
3219         * modules/unicase/u32-is-titlecase-tests: Likewise.
3220         * modules/unicase/u32-is-uppercase-tests: Likewise.
3221         * modules/unicase/u32-tolower-tests: Likewise.
3222         * modules/unicase/u32-totitle-tests: Likewise.
3223         * modules/unicase/u32-toupper-tests: Likewise.
3224         * modules/unicase/ulc-casecmp-tests: Likewise.
3225         * modules/unicase/ulc-casecoll-tests: Likewise.
3226         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3227         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3228         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3229         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3230         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3231         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3232         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3233         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3234         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3235         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3236         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3237         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3238         * modules/unictype/bidicategory-byname-tests: Likewise.
3239         * modules/unictype/bidicategory-name-tests: Likewise.
3240         * modules/unictype/bidicategory-of-tests: Likewise.
3241         * modules/unictype/bidicategory-test-tests: Likewise.
3242         * modules/unictype/block-list-tests: Likewise.
3243         * modules/unictype/block-of-tests: Likewise.
3244         * modules/unictype/block-test-tests: Likewise.
3245         * modules/unictype/category-C-tests: Likewise.
3246         * modules/unictype/category-Cc-tests: Likewise.
3247         * modules/unictype/category-Cf-tests: Likewise.
3248         * modules/unictype/category-Cn-tests: Likewise.
3249         * modules/unictype/category-Co-tests: Likewise.
3250         * modules/unictype/category-Cs-tests: Likewise.
3251         * modules/unictype/category-L-tests: Likewise.
3252         * modules/unictype/category-Ll-tests: Likewise.
3253         * modules/unictype/category-Lm-tests: Likewise.
3254         * modules/unictype/category-Lo-tests: Likewise.
3255         * modules/unictype/category-Lt-tests: Likewise.
3256         * modules/unictype/category-Lu-tests: Likewise.
3257         * modules/unictype/category-M-tests: Likewise.
3258         * modules/unictype/category-Mc-tests: Likewise.
3259         * modules/unictype/category-Me-tests: Likewise.
3260         * modules/unictype/category-Mn-tests: Likewise.
3261         * modules/unictype/category-N-tests: Likewise.
3262         * modules/unictype/category-Nd-tests: Likewise.
3263         * modules/unictype/category-Nl-tests: Likewise.
3264         * modules/unictype/category-No-tests: Likewise.
3265         * modules/unictype/category-P-tests: Likewise.
3266         * modules/unictype/category-Pc-tests: Likewise.
3267         * modules/unictype/category-Pd-tests: Likewise.
3268         * modules/unictype/category-Pe-tests: Likewise.
3269         * modules/unictype/category-Pf-tests: Likewise.
3270         * modules/unictype/category-Pi-tests: Likewise.
3271         * modules/unictype/category-Po-tests: Likewise.
3272         * modules/unictype/category-Ps-tests: Likewise.
3273         * modules/unictype/category-S-tests: Likewise.
3274         * modules/unictype/category-Sc-tests: Likewise.
3275         * modules/unictype/category-Sk-tests: Likewise.
3276         * modules/unictype/category-Sm-tests: Likewise.
3277         * modules/unictype/category-So-tests: Likewise.
3278         * modules/unictype/category-Z-tests: Likewise.
3279         * modules/unictype/category-Zl-tests: Likewise.
3280         * modules/unictype/category-Zp-tests: Likewise.
3281         * modules/unictype/category-Zs-tests: Likewise.
3282         * modules/unictype/category-and-not-tests: Likewise.
3283         * modules/unictype/category-and-tests: Likewise.
3284         * modules/unictype/category-byname-tests: Likewise.
3285         * modules/unictype/category-name-tests: Likewise.
3286         * modules/unictype/category-none-tests: Likewise.
3287         * modules/unictype/category-of-tests: Likewise.
3288         * modules/unictype/category-or-tests: Likewise.
3289         * modules/unictype/category-test-withtable-tests: Likewise.
3290         * modules/unictype/combining-class-tests: Likewise.
3291         * modules/unictype/ctype-alnum-tests: Likewise.
3292         * modules/unictype/ctype-alpha-tests: Likewise.
3293         * modules/unictype/ctype-blank-tests: Likewise.
3294         * modules/unictype/ctype-cntrl-tests: Likewise.
3295         * modules/unictype/ctype-digit-tests: Likewise.
3296         * modules/unictype/ctype-graph-tests: Likewise.
3297         * modules/unictype/ctype-lower-tests: Likewise.
3298         * modules/unictype/ctype-print-tests: Likewise.
3299         * modules/unictype/ctype-punct-tests: Likewise.
3300         * modules/unictype/ctype-space-tests: Likewise.
3301         * modules/unictype/ctype-upper-tests: Likewise.
3302         * modules/unictype/ctype-xdigit-tests: Likewise.
3303         * modules/unictype/decimal-digit-tests: Likewise.
3304         * modules/unictype/digit-tests: Likewise.
3305         * modules/unictype/mirror-tests: Likewise.
3306         * modules/unictype/numeric-tests: Likewise.
3307         * modules/unictype/property-alphabetic-tests: Likewise.
3308         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3309         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3310         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3311         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3312         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3313         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3314         * modules/unictype/property-bidi-control-tests: Likewise.
3315         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3316         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3317         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3318         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3319         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3320         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3321         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3322         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3323         * modules/unictype/property-bidi-pdf-tests: Likewise.
3324         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3325         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3326         * modules/unictype/property-byname-tests: Likewise.
3327         * modules/unictype/property-combining-tests: Likewise.
3328         * modules/unictype/property-composite-tests: Likewise.
3329         * modules/unictype/property-currency-symbol-tests: Likewise.
3330         * modules/unictype/property-dash-tests: Likewise.
3331         * modules/unictype/property-decimal-digit-tests: Likewise.
3332         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3333         * modules/unictype/property-deprecated-tests: Likewise.
3334         * modules/unictype/property-diacritic-tests: Likewise.
3335         * modules/unictype/property-extender-tests: Likewise.
3336         * modules/unictype/property-format-control-tests: Likewise.
3337         * modules/unictype/property-grapheme-base-tests: Likewise.
3338         * modules/unictype/property-grapheme-extend-tests: Likewise.
3339         * modules/unictype/property-grapheme-link-tests: Likewise.
3340         * modules/unictype/property-hex-digit-tests: Likewise.
3341         * modules/unictype/property-hyphen-tests: Likewise.
3342         * modules/unictype/property-id-continue-tests: Likewise.
3343         * modules/unictype/property-id-start-tests: Likewise.
3344         * modules/unictype/property-ideographic-tests: Likewise.
3345         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3346         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3347         * modules/unictype/property-ignorable-control-tests: Likewise.
3348         * modules/unictype/property-iso-control-tests: Likewise.
3349         * modules/unictype/property-join-control-tests: Likewise.
3350         * modules/unictype/property-left-of-pair-tests: Likewise.
3351         * modules/unictype/property-line-separator-tests: Likewise.
3352         * modules/unictype/property-logical-order-exception-tests: Likewise.
3353         * modules/unictype/property-lowercase-tests: Likewise.
3354         * modules/unictype/property-math-tests: Likewise.
3355         * modules/unictype/property-non-break-tests: Likewise.
3356         * modules/unictype/property-not-a-character-tests: Likewise.
3357         * modules/unictype/property-numeric-tests: Likewise.
3358         * modules/unictype/property-other-alphabetic-tests: Likewise.
3359         * modules/unictype/property-other-default-ignorable-code-point-tests:
3360         Likewise.
3361         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3362         * modules/unictype/property-other-id-continue-tests: Likewise.
3363         * modules/unictype/property-other-id-start-tests: Likewise.
3364         * modules/unictype/property-other-lowercase-tests: Likewise.
3365         * modules/unictype/property-other-math-tests: Likewise.
3366         * modules/unictype/property-other-uppercase-tests: Likewise.
3367         * modules/unictype/property-paired-punctuation-tests: Likewise.
3368         * modules/unictype/property-paragraph-separator-tests: Likewise.
3369         * modules/unictype/property-pattern-syntax-tests: Likewise.
3370         * modules/unictype/property-pattern-white-space-tests: Likewise.
3371         * modules/unictype/property-private-use-tests: Likewise.
3372         * modules/unictype/property-punctuation-tests: Likewise.
3373         * modules/unictype/property-quotation-mark-tests: Likewise.
3374         * modules/unictype/property-radical-tests: Likewise.
3375         * modules/unictype/property-sentence-terminal-tests: Likewise.
3376         * modules/unictype/property-soft-dotted-tests: Likewise.
3377         * modules/unictype/property-space-tests: Likewise.
3378         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3379         * modules/unictype/property-test-tests: Likewise.
3380         * modules/unictype/property-titlecase-tests: Likewise.
3381         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3382         * modules/unictype/property-unified-ideograph-tests: Likewise.
3383         * modules/unictype/property-uppercase-tests: Likewise.
3384         * modules/unictype/property-variation-selector-tests: Likewise.
3385         * modules/unictype/property-white-space-tests: Likewise.
3386         * modules/unictype/property-xid-continue-tests: Likewise.
3387         * modules/unictype/property-xid-start-tests: Likewise.
3388         * modules/unictype/property-zero-width-tests: Likewise.
3389         * modules/unictype/scripts-tests: Likewise.
3390         * modules/unictype/syntax-c-ident-tests: Likewise.
3391         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3392         * modules/unictype/syntax-java-ident-tests: Likewise.
3393         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3394         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3395         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3396         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3397         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3398         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3399         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3400         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3401         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3402         * modules/uniname/uniname-tests: Likewise.
3403         * modules/uninorm/canonical-decomposition-tests: Likewise.
3404         * modules/uninorm/compat-decomposition-tests: Likewise.
3405         * modules/uninorm/composition-tests: Likewise.
3406         * modules/uninorm/decomposing-form-tests: Likewise.
3407         * modules/uninorm/decomposition-tests: Likewise.
3408         * modules/uninorm/filter-tests: Likewise.
3409         * modules/uninorm/nfc-tests: Likewise.
3410         * modules/uninorm/nfd-tests: Likewise.
3411         * modules/uninorm/nfkc-tests: Likewise.
3412         * modules/uninorm/nfkd-tests: Likewise.
3413         * modules/uninorm/u8-normcmp-tests: Likewise.
3414         * modules/uninorm/u8-normcoll-tests: Likewise.
3415         * modules/uninorm/u16-normcmp-tests: Likewise.
3416         * modules/uninorm/u16-normcoll-tests: Likewise.
3417         * modules/uninorm/u32-normcmp-tests: Likewise.
3418         * modules/uninorm/u32-normcoll-tests: Likewise.
3419         * modules/unistdio/u8-asnprintf-tests: Likewise.
3420         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3421         * modules/unistdio/u8-vasprintf-tests: Likewise.
3422         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3423         * modules/unistdio/u8-vsprintf-tests: Likewise.
3424         * modules/unistdio/u16-asnprintf-tests: Likewise.
3425         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3426         * modules/unistdio/u16-vasprintf-tests: Likewise.
3427         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3428         * modules/unistdio/u16-vsprintf-tests: Likewise.
3429         * modules/unistdio/u32-asnprintf-tests: Likewise.
3430         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3431         * modules/unistdio/u32-vasprintf-tests: Likewise.
3432         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3433         * modules/unistdio/u32-vsprintf-tests: Likewise.
3434         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3435         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3436         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3437         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3438         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3439         * modules/unistr/u8-check-tests: Likewise.
3440         * modules/unistr/u8-chr-tests: Likewise.
3441         * modules/unistr/u8-cmp-tests: Likewise.
3442         * modules/unistr/u8-cmp2-tests: Likewise.
3443         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3444         * modules/unistr/u8-cpy-tests: Likewise.
3445         * modules/unistr/u8-mblen-tests: Likewise.
3446         * modules/unistr/u8-mbsnlen-tests: Likewise.
3447         * modules/unistr/u8-mbtouc-tests: Likewise.
3448         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3449         * modules/unistr/u8-mbtoucr-tests: Likewise.
3450         * modules/unistr/u8-move-tests: Likewise.
3451         * modules/unistr/u8-next-tests: Likewise.
3452         * modules/unistr/u8-prev-tests: Likewise.
3453         * modules/unistr/u8-set-tests: Likewise.
3454         * modules/unistr/u8-stpcpy-tests: Likewise.
3455         * modules/unistr/u8-stpncpy-tests: Likewise.
3456         * modules/unistr/u8-strcat-tests: Likewise.
3457         * modules/unistr/u8-strcmp-tests: Likewise.
3458         * modules/unistr/u8-strcoll-tests: Likewise.
3459         * modules/unistr/u8-strcpy-tests: Likewise.
3460         * modules/unistr/u8-strdup-tests: Likewise.
3461         * modules/unistr/u8-strlen-tests: Likewise.
3462         * modules/unistr/u8-strmblen-tests: Likewise.
3463         * modules/unistr/u8-strmbtouc-tests: Likewise.
3464         * modules/unistr/u8-strncat-tests: Likewise.
3465         * modules/unistr/u8-strncmp-tests: Likewise.
3466         * modules/unistr/u8-strncpy-tests: Likewise.
3467         * modules/unistr/u8-strnlen-tests: Likewise.
3468         * modules/unistr/u8-to-u16-tests: Likewise.
3469         * modules/unistr/u8-to-u32-tests: Likewise.
3470         * modules/unistr/u8-uctomb-tests: Likewise.
3471         * modules/unistr/u16-check-tests: Likewise.
3472         * modules/unistr/u16-chr-tests: Likewise.
3473         * modules/unistr/u16-cmp-tests: Likewise.
3474         * modules/unistr/u16-cmp2-tests: Likewise.
3475         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3476         * modules/unistr/u16-cpy-tests: Likewise.
3477         * modules/unistr/u16-mblen-tests: Likewise.
3478         * modules/unistr/u16-mbsnlen-tests: Likewise.
3479         * modules/unistr/u16-mbtouc-tests: Likewise.
3480         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3481         * modules/unistr/u16-mbtoucr-tests: Likewise.
3482         * modules/unistr/u16-move-tests: Likewise.
3483         * modules/unistr/u16-next-tests: Likewise.
3484         * modules/unistr/u16-prev-tests: Likewise.
3485         * modules/unistr/u16-set-tests: Likewise.
3486         * modules/unistr/u16-stpcpy-tests: Likewise.
3487         * modules/unistr/u16-stpncpy-tests: Likewise.
3488         * modules/unistr/u16-strcat-tests: Likewise.
3489         * modules/unistr/u16-strcmp-tests: Likewise.
3490         * modules/unistr/u16-strcoll-tests: Likewise.
3491         * modules/unistr/u16-strcpy-tests: Likewise.
3492         * modules/unistr/u16-strdup-tests: Likewise.
3493         * modules/unistr/u16-strlen-tests: Likewise.
3494         * modules/unistr/u16-strmblen-tests: Likewise.
3495         * modules/unistr/u16-strmbtouc-tests: Likewise.
3496         * modules/unistr/u16-strncat-tests: Likewise.
3497         * modules/unistr/u16-strncmp-tests: Likewise.
3498         * modules/unistr/u16-strncpy-tests: Likewise.
3499         * modules/unistr/u16-strnlen-tests: Likewise.
3500         * modules/unistr/u16-to-u32-tests: Likewise.
3501         * modules/unistr/u16-to-u8-tests: Likewise.
3502         * modules/unistr/u16-uctomb-tests: Likewise.
3503         * modules/unistr/u32-check-tests: Likewise.
3504         * modules/unistr/u32-chr-tests: Likewise.
3505         * modules/unistr/u32-cmp-tests: Likewise.
3506         * modules/unistr/u32-cmp2-tests: Likewise.
3507         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3508         * modules/unistr/u32-cpy-tests: Likewise.
3509         * modules/unistr/u32-mblen-tests: Likewise.
3510         * modules/unistr/u32-mbsnlen-tests: Likewise.
3511         * modules/unistr/u32-mbtouc-tests: Likewise.
3512         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3513         * modules/unistr/u32-mbtoucr-tests: Likewise.
3514         * modules/unistr/u32-move-tests: Likewise.
3515         * modules/unistr/u32-next-tests: Likewise.
3516         * modules/unistr/u32-prev-tests: Likewise.
3517         * modules/unistr/u32-set-tests: Likewise.
3518         * modules/unistr/u32-stpcpy-tests: Likewise.
3519         * modules/unistr/u32-stpncpy-tests: Likewise.
3520         * modules/unistr/u32-strcat-tests: Likewise.
3521         * modules/unistr/u32-strcmp-tests: Likewise.
3522         * modules/unistr/u32-strcoll-tests: Likewise.
3523         * modules/unistr/u32-strcpy-tests: Likewise.
3524         * modules/unistr/u32-strdup-tests: Likewise.
3525         * modules/unistr/u32-strlen-tests: Likewise.
3526         * modules/unistr/u32-strmblen-tests: Likewise.
3527         * modules/unistr/u32-strmbtouc-tests: Likewise.
3528         * modules/unistr/u32-strncat-tests: Likewise.
3529         * modules/unistr/u32-strncmp-tests: Likewise.
3530         * modules/unistr/u32-strncpy-tests: Likewise.
3531         * modules/unistr/u32-strnlen-tests: Likewise.
3532         * modules/unistr/u32-to-u16-tests: Likewise.
3533         * modules/unistr/u32-to-u8-tests: Likewise.
3534         * modules/unistr/u32-uctomb-tests: Likewise.
3535         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3536         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3537         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3538         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3539         * modules/uniwidth/u8-strwidth-tests: Likewise.
3540         * modules/uniwidth/u8-width-tests: Likewise.
3541         * modules/uniwidth/u16-strwidth-tests: Likewise.
3542         * modules/uniwidth/u16-width-tests: Likewise.
3543         * modules/uniwidth/u32-strwidth-tests: Likewise.
3544         * modules/uniwidth/u32-width-tests: Likewise.
3545         * modules/uniwidth/width-tests: Likewise.
3546
3547 2010-05-18  Richard Jones  <rjones@redhat.com>
3548
3549         doc: users.txt: list hivex
3550         * users.txt: Add hivex.
3551
3552 2010-05-18  Richard Jones  <rjones@redhat.com>
3553
3554         doc: users.txt: list febootstrap
3555         * users.txt: Add febootstrap.
3556
3557 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3558
3559         bootstrap: fix an error when gnulib is not used as a git submodule
3560         * build-aux/bootstrap (gnulib_path): If its length is zero then
3561         assign "gnulib" to it.
3562         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3563
3564 2010-05-16  Bruno Haible  <bruno@clisp.org>
3565
3566         Avoid autoconf warnings about AM_ICONV.
3567         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3568         2.64.
3569
3570 2010-05-16  Bruno Haible  <bruno@clisp.org>
3571
3572         absolute-header: Make the macro usable in more situations.
3573         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3574         from gl_ABSOLUTE_HEADER.
3575         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3576
3577 2010-05-16  James Youngman  <jay@gnu.org>
3578
3579         doc: update users.txt
3580         * users.txt: Add CSSC.
3581
3582 2010-05-16  Jim Meyering  <meyering@redhat.com>
3583
3584         init.sh: fix an error in the previous change; add more comments
3585         * tests/init.sh: Compare exit code in loop against 9, not 2.
3586         Patch by Bruno Haible.
3587         Make the two tests more similar by adding an empty "then" clause.
3588         Add comments.
3589
3590         init.sh: avoid unnecessary shell re-exec
3591         * tests/init.sh: Improve the re-exec-required check to first test the
3592         current shell.  If it passes the test, do not search for a shell that
3593         does pass, and do not re-exec.  This test is particularly contorted to
3594         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3595         of $(...) evokes a syntax error and causes immediate shell exit with
3596         status 2.  Bruno Haible reported that the re-exec made it impossible
3597         to single-step through any init.sh-using script.
3598
3599 2010-05-16  Bruno Haible  <bruno@clisp.org>
3600
3601         Fix collision between gnulib's and libintl's printf replacements.
3602         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3603         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3604         (printf): When using GNU C, map the __printf__ function to rpl_printf
3605         via __asm__. When not using GNU C, define rpl_printf instead of
3606         __printf__.
3607         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3608         commit.
3609         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3610         commit.
3611         * m4/asm-underscore.m4: New file.
3612         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3613         * modules/stdio (Files): Add m4/asm-underscore.m4.
3614         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3615         Reported by Ben Pfaff.
3616
3617 2010-05-16  Bruno Haible  <bruno@clisp.org>
3618
3619         verify: Avoid skipping the test on openSUSE 11.0.
3620         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3621
3622 2010-05-13  Bruno Haible  <bruno@clisp.org>
3623
3624         Avoid useless warnings from G++.
3625         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3626         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3627         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3628
3629 2010-05-11  Jim Meyering  <meyering@redhat.com>
3630
3631         maint.mk: tweak preceding change
3632         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3633         regexps tighter by anchoring at EOL, and make the new group "shy"
3634         for slightly decreased overhead.
3635
3636 2010-05-11  Eric Blake  <eblake@redhat.com>
3637
3638         maint.mk: gnulib doesn't guarantee NSIG
3639         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3640
3641 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3642
3643         test-pwrite.c: Remove unused variable declaration.
3644         * tests/test-pwrite.c (main): Remove read_buf declaration.
3645
3646         Remove useless test-pwrite.sh file.
3647         * tests/test-pwrite.sh: Delete file.
3648         * modules/pwrite-tests: Remove references.
3649         Reported by Bruno Haible.
3650
3651 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3652
3653         init.sh: fix a typo
3654         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3655
3656 2010-05-10  Jim Meyering  <meyering@redhat.com>
3657
3658         maint.mk: avoid using a temporary file in the always-defined-macros check
3659         * top/maint.mk (.re-defmac): Remove rule.
3660         (gl_trap_): Remove definition.
3661         (sc_prohibit_always-defined_macros): Rewrite not to create and
3662         depend on a temporary file.  Instead, depend on GNU grep's ability
3663         to read a list of regular expressions from stdin when given "-f -".
3664
3665 2010-05-09  Bruno Haible  <bruno@clisp.org>
3666
3667         Update to GNU gettext 0.18, part 1.
3668         * m4/gettext.m4: Update to GNU gettext 0.18.
3669         * m4/intl.m4: Likewise.
3670         * m4/po.m4: Likewise.
3671         * modules/gettext (Files): Add m4/fcntl-o.m4.
3672         (configure.ac): Require gettext infrastructure from version 0.18.
3673
3674 2010-05-09  Jim Meyering  <meyering@redhat.com>
3675
3676         init.sh: enable MALLOC_PERTURB_
3677         * tests/init.sh: Enable glibc's malloc-perturbing option.
3678
3679         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3680         With my recent change in init.sh from the two-line form:
3681             -#   : ${srcdir=.}
3682             -#   . "$srcdir/init.sh"; path_prepend_ .
3683             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3684         I noticed that using the one-line form would cause this test
3685         to fail with a false-positive, or to stop working altogether,
3686         depending on whether help-version changed or all the tests did.
3687         * top/maint.mk (_hv_regex): Remove this definition.
3688         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3689         (_hv_regex_strong): Use a stronger regex to check for conformance.
3690         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3691         Give a separate diagnostic for lack of conforming use.
3692
3693         maint.mk: prohibit definition of symbols defined by gnulib
3694         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3695         definition of symbols defined by gnulib.
3696
3697 2010-05-09  Bruno Haible  <bruno@clisp.org>
3698
3699         acl: Avoid test failure on Cygwin-hosted mingw.
3700         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3701
3702 2010-05-09  Bruno Haible  <bruno@clisp.org>
3703
3704         error: Use system's fcntl function.
3705         * lib/error.c (fcntl): Undefine.
3706
3707 2010-05-09  Jim Meyering  <meyering@redhat.com>
3708
3709         verify: adjust formatting to be more consistent
3710         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3711         argument-list '('s, and after one comma.
3712
3713 2010-05-09  Bruno Haible  <bruno@clisp.org>
3714
3715         error: More reliable output on mingw.
3716         * lib/error.c: Include <windows.h>.
3717         (is_open): New function.
3718         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3719         defined.
3720
3721 2010-05-09  Bruno Haible  <bruno@clisp.org>
3722
3723         vasnprintf: Fix syntax errors in libintl build on mingw.
3724         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3725         pad_ourselves and prec_ourselves after use.
3726
3727 2010-05-08  Bruno Haible  <bruno@clisp.org>
3728
3729         * lib/config.charset: Update comments for Cygwin 1.7.
3730         * lib/localcharset.c: Likewise.
3731
3732 2010-05-07  Jim Meyering  <meyering@redhat.com>
3733
3734         init.sh: improve comments
3735         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3736         . "${srcdir=.}/init.sh"; path_prepend_ .
3737         Add a note about path_prepend_ and the alternative of using
3738         TESTS_ENVIRONMENT.
3739
3740 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3741
3742         exclude: Unescape hashed patterns in wildcard mode.
3743         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3744         to the hash list.
3745         * tests/test-exclude8.sh: New test case.
3746         * modules/exclude-tests: Add new test.
3747
3748 2010-05-05  Eric Blake  <eblake@redhat.com>
3749
3750         verify: automate tests
3751         * modules/verify-tests: New module.
3752         * tests/test-verify.sh: New file.
3753         * tests/test-verify.c: Guard each negative test with a unique id.
3754         Also avoid warning about unused left hand of comma expressions.
3755
3756 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3757
3758         Further improvements to verify.h, suggested by Eric Blake.
3759         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3760         the GL_* versions, to avoid collision with OpenGL.
3761         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3762         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3763         than testing merely whether it's defined.
3764
3765         Modify verify.h to pacify gcc -Wredundant_decls.
3766         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3767         These use the prefix "GL_" since they're likely to be useful elsewhere.
3768         We may need to break them out into a different .h file.
3769         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3770         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3771         of verify_function__.
3772
3773 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3774
3775         Tests for module pwrite.
3776         * modules/pwrite-tests: New file.
3777         * tests/test-pwrite.sh: New file.
3778         * tests/test-pwrite.c: New file.
3779
3780         New module pwrite.
3781         * lib/unistd.in.h (pwrite): New declaration.
3782         * lib/pwrite.c: New file, from glibc with modifications.
3783         * m4/pwrite.m4: New file.
3784         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3785         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3786         REPLACE_PWRITE.
3787         * modules/pwrite: New file.
3788         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3789         REPLACE_PWRITE.
3790         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3791         * doc/posix-functions/pwrite.texi: Mention the new module.
3792
3793 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3794
3795         pread: Update documentation.
3796         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3797
3798 2010-05-04  Eric Blake  <eblake@redhat.com>
3799
3800         docs: update cygwin progress
3801         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3802         this bug.
3803         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3804         Added in cygwin 1.7.2.
3805         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3806         Likewise.
3807         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3808         Likewise.
3809         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3810         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3811         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3812         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3813         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3814         Mention nproc module.
3815         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3816         bug in cygwin 1.7.5 addition.
3817         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3818         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3819         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3820         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3821         1.7.5.
3822         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3823         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3824         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3825         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3826         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3827         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3828         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3829         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3830         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3831         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3832         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3833         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3834         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3835         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3836         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3837         Likewise.
3838         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3839         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3840         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3841         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3842         Likewise.
3843         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3844         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3845         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3846         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3847         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3848         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3849         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3850         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3851         Likewise.
3852         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3853         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3854         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3855         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3856         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3857         Likewise.
3858         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3859         Likewise.
3860         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3861         Likewise.
3862         * doc/glibc-functions/xdrrec_endofrecord.texi
3863         (xdrrec_endofrecord): Likewise.
3864         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3865         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3866         Likewise.
3867         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3868         Likewise.
3869
3870 2010-05-04  Jim Meyering  <meyering@redhat.com>
3871
3872         gendocs.sh: make its "-s FILE" option more useful
3873         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3874         $PACKAGE to reflect the probably-different basename of "FILE".
3875
3876 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3877
3878         bootstrap: don't ignore download_po_files failure
3879         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3880         failure.
3881
3882 2010-05-03  Jim Meyering  <meyering@redhat.com>
3883
3884         maint.mk: allow to pass options to gendocs.sh
3885         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3886         (gendocs_options_): New overridable variable.
3887
3888         gnu-web-doc-update: don't ignore configure or build failure
3889         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3890
3891         announce-gen: backslash-escape '@'s in --help output
3892         * build-aux/announce-gen: Fix syntax errors.
3893
3894         maint.mk, announce-gen: allow project-specific announcement mail headers
3895         * top/maint.mk (translation_project_): Define default.
3896         (announcement_Cc_, announcement_mail_headers_): Likewise.
3897         (announcement): Invoke announce-gen with new --mail-headers option.
3898         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3899
3900         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3901         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3902         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3903         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3904         line in the "err2" output file when running "make check" in verbose
3905         mode (i.e., with set -x enabled).
3906
3907 2010-05-03  Bruno Haible  <bruno@clisp.org>
3908
3909         wctob: Fix for weird platforms.
3910         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3911         argument value.
3912
3913 2010-05-03  Jim Meyering  <meyering@redhat.com>
3914
3915         maint.mk: prohibit unwarranted use of <strings.h>
3916         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3917         strings.h in a file that does not also use strcasecmp, strncasecmp,
3918         ffs or ffsll.
3919
3920         maint.mk: remove obsolete comments
3921         * top/maint.mk: Remove stale, commented-out rules.
3922
3923 2010-05-02  Bruno Haible  <bruno@clisp.org>
3924
3925         wcwidth: Declare also when it's aliased.
3926         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3927         macro.
3928
3929 2010-05-02  Bruno Haible  <bruno@clisp.org>
3930
3931         Fix regression from 2010-04-25.
3932         * gnulib-tool (func_modules_transitive_closure): Check the status of
3933         all modules, not only of the tests that are of the form foo-tests where
3934         foo is a module.
3935
3936 2010-05-02  Bruno Haible  <bruno@clisp.org>
3937
3938         wctob: Work around nasty Cygwin 1.7.2 bug.
3939         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3940         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3941
3942 2010-05-01  Bruno Haible  <bruno@clisp.org>
3943
3944         fpurge: Sharper test.
3945         * tests/test-fpurge.c (main): Add one more ftell check.
3946         * modules/fpurge-tests (Depends-on): Add ftell.
3947         Suggested by Eric Blake.
3948
3949 2010-05-01  Bruno Haible  <bruno@clisp.org>
3950
3951         ftello: Another test.
3952         * tests/test-ftello3.c: New file.
3953         * modules/ftello-tests (Files): Add it.
3954         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3955         MOSTLYCLEANFILES.
3956
3957         ftell: Another test.
3958         * tests/test-ftell3.c: New file.
3959         * modules/ftell-tests (Files): Add it.
3960         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3961         MOSTLYCLEANFILES.
3962
3963 2010-05-01  Bruno Haible  <bruno@clisp.org>
3964
3965         ftell, ftello: Work around Solaris bug.
3966         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3967         * lib/ftello.c: Include stdio-impl.h.
3968         (ftello): On Solaris, when _IOWRT is set, compute the result without
3969         looking at _IOREAD.
3970         * modules/ftello (Files): Add lib/stdio-impl.h.
3971         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3972         * doc/posix-functions/ftello.texi: Likewise.
3973         Reported by Eric Blake.
3974
3975 2010-05-01  Bruno Haible  <bruno@clisp.org>
3976
3977         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3978         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3979         the _IOWRT flag is also set.
3980
3981 2010-05-01  Bruno Haible  <bruno@clisp.org>
3982
3983         Fix doc about a HP-UX stdio bug.
3984         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3985         * doc/posix-functions/ftello.texi: Likewise.
3986
3987 2010-05-01  Bruno Haible  <bruno@clisp.org>
3988
3989         lseek test: Fix failure on Solaris.
3990         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3991         output.
3992
3993 2010-04-30  Jim Meyering  <meyering@redhat.com>
3994
3995         bootstrap: don't ignore failure to generate po*/Makevars
3996         * build-aux/bootstrap (with_gettext): Don't ignore failure
3997         to create po/Makevars or runtime-po/Makevars.
3998
3999 2010-04-29  Eric Blake  <eblake@redhat.com>
4000
4001         headers: relax license to LGPLv2+
4002         * modules/fcntl-h (License): Relax license.
4003         * modules/getopt-posix (License): Likewise.
4004         * modules/locale (License): Likewise.
4005         * modules/math (License): Likewise.
4006         * modules/pty (License): Likewise.
4007         * modules/sched (License): Likewise.
4008         * modules/search (License): Likewise.
4009         * modules/spawn (License): Likewise.
4010         * modules/stdarg (License): Likewise.
4011         * modules/sysexits (License): Likewise.
4012
4013 2010-04-29  Jim Meyering  <meyering@redhat.com>
4014
4015         inttypes: relax license to LGPLv2+
4016         * modules/inttypes (License): Relax license.
4017
4018 2010-04-29  Simon Josefsson  <simon@josefsson.org>
4019
4020         * top/maint.mk (indent): Run twice to produce idempotent results.
4021
4022 2010-04-28  Bruno Haible  <bruno@clisp.org>
4023
4024         getdate: Generate getdate.c in the source directory.
4025         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
4026         MOSTLYCLEANFILES.
4027         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
4028
4029 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
4030
4031         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
4032         is not declared as a const *; avoid warnings in that case.
4033
4034 2010-04-28  Eric Blake  <eblake@redhat.com>
4035
4036         canonicalize-lgpl: avoid compiler warning
4037         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
4038         declaration' / 'extraneous semicolon' warning with some compilers.
4039         Reported by Andreas Gruenbacher.
4040
4041 2010-04-28  Jim Meyering  <meyering@redhat.com>
4042
4043         init.sh: ensure a more reliable exit status when exiting via trap
4044         * tests/init.sh (setup_): Don't rely on $? in signal handler.
4045         Inspired by patches from Dmitry V. Levin.
4046         Also trap on signal 3 (SIGQUIT).
4047
4048 2010-04-27  Bruno Haible  <bruno@clisp.org>
4049
4050         Update doc about utimes().
4051         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
4052         'utimens' module.
4053         Reported by Andreas Gruenbacher <agruen@suse.de>.
4054
4055 2010-04-27  Eric Blake  <eblake@redhat.com>
4056
4057         full-read, full-write: relax license
4058         * modules/full-read (License): Drop to LGPLv2+.
4059         * modules/full-write (License): Likewise.
4060         * modules/safe-read (License): Likewise.
4061         * modules/safe-write (License): Likewise.
4062
4063         pthread: mention library for linking
4064         * modules/pthread (Link): Mention $(LIB_PTHREAD).
4065
4066 2010-04-27  Jim Meyering  <meyering@redhat.com>
4067
4068         maint.mk: fix a bug introduced in last change
4069         * top/maint.mk (gl_assured_headers_): Now that all names are on
4070         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
4071         is not anchored to end of word, it should be adequate.
4072
4073         maint.mk: avoid side-effect in latest syntax-check
4074         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
4075         to run commands via $(shell...), and hence to incur cost only when
4076         the new rule is actually run.
4077
4078         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
4079         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
4080         and use that to create a regexp used to detect all #if HAVE_..._H uses.
4081         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
4082         (gl_assured_headers_, az_, AZ_): Define.
4083         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
4084
4085 2010-04-26  Jim Meyering  <jim@meyering.net>
4086             Bruno Haible  <bruno@clisp.org>
4087
4088         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
4089         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
4090         Prompted by an exchange with Gilles Espinasse.
4091
4092 2010-04-26  Jim Meyering  <meyering@redhat.com>
4093
4094         git-version-gen: aesthetic tweak
4095         * build-aux/git-version-gen: Use "$nl" rather than a literal,
4096         so that the command remains on a single line.
4097
4098 2010-04-26  Eric Blake  <eblake@redhat.com>
4099
4100         git-version-gen: allow use on EBCDIC hosts
4101         * build-aux/git-version-gen (dirty): Use literal rather than tying
4102         ourselves to ascii.
4103         Reported by Steve Goetze.
4104
4105 2010-04-25  Bruno Haible  <bruno@clisp.org>
4106
4107         netdb: Add support for GNULIB_POSIXCHECK.
4108         * lib/netdb.in.h: Include warn-on-use.h.
4109         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
4110         functions are used when GNULIB_POSIXCHECK is defined and the
4111         getaddrinfo module is not in use.
4112         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
4113         freeaddrinfo, gai_strerror, getnameinfo are declared.
4114         * modules/netdb (Depends-on): Add warn-on-use.
4115         (Makefile.am): Include warn-on-use.h in netdb.h.
4116
4117 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
4118
4119         build: avoid "make check" failure without .git/ directory
4120         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
4121         there is no .git/ directory.
4122
4123 2010-04-25  Bruno Haible  <bruno@clisp.org>
4124
4125         ptsname: Fix misuse of ttyname_r.
4126         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
4127         of errno.
4128
4129 2010-04-25  Bruno Haible  <bruno@clisp.org>
4130
4131         ttyname_r: Make it work on Solaris 10.
4132         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
4133         if the system function has the POSIX declaration. Test whether the
4134         function fails if the buffer is less than 128 bytes large.
4135         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
4136         system's ttyname_r function. Provide a reasonably large buffer.
4137         * modules/ttyname_r (Depends-on): Add extensions.
4138         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
4139
4140 2010-04-25  Bruno Haible  <bruno@clisp.org>
4141
4142         Use the 'extensions' module for some more functions on Solaris.
4143         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
4144         module.
4145         * doc/posix-functions/ctime_r.texi: Likewise.
4146         * doc/posix-functions/getgrgid_r.texi: Likewise.
4147         * doc/posix-functions/getgrnam_r.texi: Likewise.
4148         * doc/posix-functions/getpwnam_r.texi: Likewise.
4149         * doc/posix-functions/getpwuid_r.texi: Likewise.
4150         * doc/posix-functions/readdir_r.texi: Likewise.
4151         * doc/posix-functions/sigwait.texi: Likewise.
4152         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
4153         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
4154
4155 2010-04-25  Bruno Haible  <bruno@clisp.org>
4156
4157         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4158         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4159         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4160         * lib/ttyname_r.c: Include <limits.h>.
4161         (ttyname_r): Define using the system's ttyname_r function, if it exists
4162         and not on Solaris.
4163         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4164         set.
4165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4166         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4167         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4168         Reported by Simon Josefsson.
4169
4170 2010-04-25  Bruno Haible  <bruno@clisp.org>
4171
4172         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4173         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4174         * doc/posix-functions/ctime_r.texi: Likewise.
4175         * doc/posix-functions/getgrgid_r.texi: Likewise.
4176         * doc/posix-functions/getgrnam_r.texi: Likewise.
4177         * doc/posix-functions/getlogin_r.texi: Likewise.
4178         * doc/posix-functions/getpwnam_r.texi: Likewise.
4179         * doc/posix-functions/getpwuid_r.texi: Likewise.
4180         * doc/posix-functions/readdir_r.texi: Likewise.
4181         * doc/posix-functions/sigwait.texi: Likewise.
4182         * doc/posix-functions/ttyname_r.texi: Likewise.
4183         Reported by Simon Josefsson.
4184
4185 2010-04-25  Bruno Haible  <bruno@clisp.org>
4186
4187         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4188         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4189         also to --create-testdir.
4190         (func_acceptable): Don't consider the status of *-tests modules here.
4191         (func_modules_transitive_closure): Consider it here, before including a
4192         test module.
4193         (func_import, func_create_testdir): Set inc_all_direct_tests,
4194         inc_all_indirect_tests.
4195         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4196         --create-testdir and --create-megatestdir.
4197
4198 2010-04-25  Bruno Haible  <bruno@clisp.org>
4199
4200         gnulib-tool: Add --without-*-tests options.
4201         * gnulib-tool (func_usage): Document the --without-*-tests options.
4202         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4203         excl_unportable_tests): New variables.
4204         Fail if they are specified with --import or --update.
4205         (func_acceptable): Respect the excl_*_tests variables.
4206         (func_import): Set the excl_*_tests variables to empty.
4207
4208 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4209             Bruno Haible  <bruno@clisp.org>
4210
4211         Work around a MacOS X 10.4 bug with openpty.
4212         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4213         * tests/test-openpty.c (main): Close the master side explicitly.
4214
4215 2010-04-25  Bruno Haible  <bruno@clisp.org>
4216
4217         strnlen: Fix a C++ test error on MacOS X and Solaris.
4218         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4219         the function is not declared.
4220         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4221         Simon Josefsson.
4222
4223 2010-04-24  Bruno Haible  <bruno@clisp.org>
4224
4225         Avoid a gcc warning.
4226         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4227         of correct type for %08lx directive.
4228         Reported by Eric Blake.
4229
4230 2010-04-24  Bruno Haible  <bruno@clisp.org>
4231
4232         vasnprintf: Correct errno value in case of out-of-memory.
4233         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4234         or sprintf. Use the errno value from SNPRINTF or sprintf.
4235         Reported by Ian Beckwith <ianb@erislabs.net>.
4236
4237 2010-04-24  Bruno Haible  <bruno@clisp.org>
4238
4239         ansi-c++-opt: Find correct compiler when cross-compiling.
4240         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4241         AC_CHECK_PROGS.
4242         Reported by Simon Josefsson.
4243
4244 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4245
4246         vc-list-files: Add support for subversion
4247         * build-aux/vc-list-files: Use "svn list" to generate the list of
4248         files controlled by subversion.
4249
4250 2010-04-23  Jim Meyering  <meyering@redhat.com>
4251
4252         vc-list-files tests: convert to use init.sh
4253         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4254         path_prepend_.
4255         Use Exit, not exit.
4256         Use skip_ rather than open coding it.
4257         Remove trap set-up and compare definitions.
4258         * tests/test-vc-list-files-git.sh: Likewise.
4259         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4260
4261 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4262
4263         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4264         backup files.
4265
4266 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4267
4268         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4269
4270 2010-04-20  Eric Blake  <eblake@redhat.com>
4271
4272         tests: be robust to ignored SIGPIPE
4273         * tests/test-select-in.sh: Consume all output.
4274         * tests/test-lseek.sh: Check correct exit status, while avoiding
4275         EPIPE.
4276
4277 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4278             Bruno Haible  <bruno@clisp.org>
4279
4280         visibility: Don't use -fvisibility if it leads to a warning.
4281         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4282         yes, don't pretend that visibility works if it leads to a warning.
4283         Reported by Mike Gran <spk121@yahoo.com>.
4284
4285 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4286
4287         * build-aux/bootstrap: Use "git -h" for testing for supported options
4288         instead of "git --help".  The short-form option only shows a summary,
4289         and doesn't layout the full man page.  Grep for the full option name
4290         in the summary, too.
4291
4292 2010-04-19  Bruno Haible  <bruno@clisp.org>
4293
4294         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4295         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4296         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4297         mention of RELOCATABLE_STRIP.
4298         Reported by Sylvain Beucler <beuc@beuc.net>.
4299
4300 2010-04-19  Bruno Haible  <bruno@clisp.org>
4301
4302         * lib/diffseq.h: Fix typo in comment.
4303         Reported by Eric Blake.
4304
4305 2010-04-19  Bruno Haible  <bruno@clisp.org>
4306
4307         ioctl: Move autoconf macro to a .m4 file.
4308         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4309         * modules/ioctl (Files): Add it.
4310         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4311         Reported by Ian Beckwith <ianb@erislabs.net>.
4312
4313 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4314             Bruno Haible  <bruno@clisp.org>
4315
4316         diffseq: Accommodate use-case with abstract arrays.
4317         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4318         is not defined.
4319         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4320         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4321
4322 2010-04-18  Bruno Haible  <bruno@clisp.org>
4323
4324         * doc/posix-headers/stdbool.texi: More precise wording.
4325
4326 2010-04-17  Jim Meyering  <meyering@redhat.com>
4327
4328         maint.mk: use gnu-style indentation in an embedded perl script
4329         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4330         Rename variable: s/two/last_two_bytes/
4331
4332 2010-04-16  Eric Blake  <eblake@redhat.com>
4333
4334         test-stdbool: skip test that fails with Solaris CC
4335         * tests/test-stdbool.c (f): Skip test that causes compilation
4336         error under buggy C++ compiler.
4337         * lib/stdbool.in.h: Document the limitation.
4338         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4339
4340         setenv: allow compilation with C++
4341         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4342         register keyword.
4343
4344         stdint: allow test to pass with C++
4345         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4346
4347         getopt: allow compilation with C++
4348         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4349         struct.
4350         * lib/getopt.c (_getopt_internal_r): Use correct type.
4351         Reported by Dagobert Michelson, via Joel E. Denny.
4352
4353 2010-04-16  Bruno Haible  <bruno@clisp.org>
4354
4355         Override netdb.h always.
4356         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4357         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4358         Reported by Ludovic Courtès <ludo@gnu.org>.
4359
4360 2010-04-15  Bruno Haible  <bruno@clisp.org>
4361
4362         openpty: Fix mistake from 2010-03-21.
4363         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4364         Reported by Simon Josefsson.
4365
4366 2010-04-15  Eric Blake  <eblake@redhat.com>
4367
4368         test-forkpty: fix expected signature
4369         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4370         Reported by Simon Josefsson.
4371
4372 2010-04-15  Jim Meyering  <meyering@redhat.com>
4373
4374         maint.mk: texinfo_suffix_re_: correct the default regexp
4375         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4376
4377         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4378         make it configurable via texinfo_suffix_re_.
4379
4380 2010-04-14  Eric Blake  <eblake@redhat.com>
4381
4382         strtok_r: relax license to LGPLv2+
4383         * modules/strtok_r (License): Relax license.
4384         Reported by Matthias Bolte.
4385
4386 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4387
4388         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4389         version 1.4.4 by default instead of requiring the libgcrypt
4390         version used during build.  This makes it possible to use the
4391         application with older but still binary compatible libgcrypt
4392         versions.
4393
4394 2010-04-13  Eric Blake  <eblake@redhat.com>
4395
4396         getopt-gnu: match recent glibc fixes and posix ruling
4397         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4398         '+' handling, when requesting extensions.
4399         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4400         'W;' handling.
4401         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4402         * doc/posix-functions/getopt.texi (getopt): Document this.
4403         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4404         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4405         Likewise.
4406
4407         getopt: merge bug fixes from glibc
4408         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4409         diagnostics.  Honor '+:' correctly.  Reject ';'.
4410
4411         getopt-posix: detect MacOS bug
4412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4413         optind when missing a required argument.
4414         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4415         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4416         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4417         Likewise.
4418
4419         getopt-posix: avoid spurious failure on Solaris
4420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4421         an indicator that setting optind=1 is sufficient for reset.
4422
4423         getopt-posix: avoid spurious failure on FreeBSD
4424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4425         in POSIX mode, since the m4 test uses it.
4426
4427         gnulib-tool: silence warning on BSD sh
4428         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4429
4430 2010-04-13  Jim Meyering  <meyering@redhat.com>
4431
4432         doc: users.txt: GNU patch now uses gnulib
4433         * users.txt: Add patch.
4434
4435 2010-04-12  Jim Meyering  <meyering@redhat.com>
4436
4437         maint.mk: generate more concise timing data for syntax-check rules
4438         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4439         " done" from each line that reports a syntax-check test duration.
4440
4441 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4442
4443         git-version-gen: use "git update-index..." rather than "git status"
4444         * build-aux/git-version-gen: Use git update-index --refresh, not
4445         "git status".  With some versions of git, "git status" would fail
4446         to update the index and result in an unwarranted "-dirty" suffix.
4447
4448 2010-04-11  Jim Meyering  <meyering@redhat.com>
4449
4450         openat: correct formatting (no semantic change)
4451         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4452         Suggested by Bruno Haible.
4453
4454 2010-04-11  Bruno Haible  <bruno@clisp.org>
4455
4456         Stricter declaration checking in testdirs.
4457         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4458         If for_tests is true, augment AM_CPPFLAGS to define
4459         GNULIB_STRICT_CHECKING.
4460         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4461         GNULIB_STRICT_CHECKING is defined, verify that the function is
4462         declared.
4463
4464 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4465             Bruno Haible  <bruno@clisp.org>
4466
4467         libunistring: Improve configure output.
4468         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4469         Don't say "consider installing GNU libunistring" when checking again
4470         with libiconv.
4471
4472 2010-04-11  Bruno Haible  <bruno@clisp.org>
4473
4474         libunistring: Correct value of $LTLIBUNISTRING.
4475         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4476         correct the value of $LTLIBUNISTRING.
4477
4478 2010-04-11  Bruno Haible  <bruno@clisp.org>
4479
4480         havelib: Add static libraries to LIBS in the right order.
4481         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4482         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4483
4484 2010-04-11  Bruno Haible  <bruno@clisp.org>
4485
4486         libunistring: Detect libunistring also when it depends on libiconv.
4487         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4488         the second AC_LIB_HAVE_LINKFLAGS invocation.
4489
4490 2010-04-11  James Youngman  <jay@gnu.org>
4491
4492         close-stream: declare local scalars to be "const"
4493         * lib/close-stream.c (close_stream): Make boolean variables const
4494         to document the fact that we set but do not change them.
4495
4496 2010-04-11  Bruno Haible  <bruno@clisp.org>
4497
4498         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4499
4500 2010-04-11  Jim Meyering  <meyering@redhat.com>
4501
4502         maint.mk: don't include dist-check.mk
4503         * top/maint.mk: Remove bogus include directive.
4504
4505         maint.mk: improve empty-line-at-EOF check
4506         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4507         solution, rather than tail+Perl-based one.  The latter would read
4508         a few kilobytes from the end of each file, and did not handle empty
4509         files properly.
4510
4511         maint.mk: print the elapsed time for each syntax-check rule
4512         * top/maint.mk (sc_m_rules_): Save start time in a file.
4513         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4514         (local-check): Interpose the .z rules
4515
4516 2010-04-11  Jim Meyering  <meyering@redhat.com>
4517
4518         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4519         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4520         empty file with one that ends in an empty line.
4521
4522 2010-04-10  Bruno Haible  <bruno@clisp.org>
4523
4524         mkdir: Make it work on mingw64.
4525         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4526         * lib/mkdir.c: Update comment.
4527         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4528
4529 2010-04-10  Bruno Haible  <bruno@clisp.org>
4530
4531         Don't override improved macro from newer autoconf.
4532         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4533         autoconf >= 2.62.
4534         Reported by Joel E. Denny <jdenny@clemson.edu>.
4535
4536 2010-04-10  Jim Meyering  <meyering@redhat.com>
4537
4538         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4539         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4540
4541         maint.mk: correct a diagnostic
4542         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4543         in diagnostic; now use $prohibit.
4544
4545 2010-04-10  Bruno Haible  <address@hidden>
4546
4547         fchownat: Fix a C++ test error on Solaris 8.
4548         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4549         the function does not exist.
4550
4551 2010-04-10  Bruno Haible  <bruno@clisp.org>
4552
4553         vasnprintf: Add more tests.
4554         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4555         (test_function): Test converting an invalid wide string.
4556
4557         vasnprintf: Correct handling of unconvertible wide string arguments.
4558         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4559         VASNPRINTF.
4560         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4561         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4562         smaller than the expected maximum need for the directive. Set errno to
4563         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4564         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4566         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4567         * modules/vasnprintf (Files): Add m4/printf.m4.
4568         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4569
4570 2010-04-10  Bruno Haible  <bruno@clisp.org>
4571
4572         vasnprintf: Fix crash in %ls directive.
4573         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4574         string is passed as argument to %ls, with no precision and no width.
4575         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4576
4577 2010-04-10  Bruno Haible  <bruno@clisp.org>
4578
4579         vasnprintf: Fix multiple test failures on mingw.
4580         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4581         _snprintf, or snwprintf, not _snwprintf.
4582
4583 2010-04-10  Bruno Haible  <bruno@clisp.org>
4584
4585         write: Fix a C++ test error on mingw.
4586         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4587
4588 2010-04-10  Bruno Haible  <bruno@clisp.org>
4589
4590         vasnprintf test: Reduce code duplication.
4591         * tests/test-vasnprintf.c (test_function): New function, extracted from
4592         test_vasnprintf.
4593         (test_vasnprintf, test_asnprintf): Invoke it.
4594
4595 2010-04-10  Bruno Haible  <bruno@clisp.org>
4596
4597         strnlen: Fix warning in C++ mode on MacOS X.
4598         * lib/string.in.h (strnlen): Use the modern idiom.
4599         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4600         defining strnlen as a macro already in <config.h>.
4601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4602         REPLACE_STRNLEN.
4603         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4604         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4605
4606 2010-04-08  James Youngman  <jay@gnu.org>
4607
4608         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4609         the example.
4610
4611 2010-04-09  Jim Meyering  <meyering@redhat.com>
4612
4613         maint.mk: print better diagnostic when there is no $(_hv_file)
4614         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4615         announce that when $(_hv_file) (aka help-version) does not exist.
4616
4617         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4618         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4619         not try to interpret its random input bytes.  Jarno Rajahalme reported
4620         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4621         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4622         (mktempd_): Likewise, just in case.
4623
4624         ftruncate: add two years to projected module removal date: 2012
4625         * m4/ftruncate.m4: Adjust comments.
4626
4627         ftruncate: mark module as obsolete; even MinGW provides it, now
4628         * modules/ftruncate (Status): Obsolete.
4629         (Notice): Say that.
4630         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4631         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4632
4633 2010-04-08  Bruno Haible  <bruno@clisp.org>
4634
4635         Fix side effects from tests-related modules.
4636         * modules/dprintf-posix (Comment): New section.
4637         * modules/fprintf-posix (Comment): Likewise.
4638         * modules/obstack-printf-posix (Comment): Likewise.
4639         * modules/printf-posix (Comment): Likewise.
4640         * modules/snprintf-posix (Comment): Likewise.
4641         * modules/sprintf-posix (Comment): Likewise.
4642         * modules/vasnprintf-posix (Comment): Likewise.
4643         * modules/vasprintf-posix (Comment): Likewise.
4644         * modules/vdprintf-posix (Comment): Likewise.
4645         * modules/vfprintf-posix (Comment): Likewise.
4646         * modules/vprintf-posix (Comment): Likewise.
4647         * modules/vsnprintf-posix (Comment): Likewise.
4648         * modules/vsprintf-posix (Comment): Likewise.
4649         * modules/xprintf-posix (Comment): Likewise.
4650         * modules/xvasprintf-posix (Comment): Likewise.
4651         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4652         * modules/floorf-tests (Depends-on): Likewise.
4653         * modules/round-tests (Depends-on): Likewise.
4654         * modules/roundf-tests (Depends-on): Likewise.
4655         * modules/trunc-tests (Depends-on): Likewise.
4656         * modules/truncf-tests (Depends-on): Likewise.
4657         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4658         'fprintf-posix' module is not present.
4659         * tests/test-floorf2.c (check): Likewise.
4660         * tests/test-trunc2.c (check): Likewise.
4661         * tests/test-truncf2.c (check): Likewise.
4662         * tests/test-round2.c (equal): Likewise.
4663         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4664
4665 2010-04-07  Karl Berry  <karl@gnu.org>
4666
4667         * config/srclist.txt,
4668         * config/srclistvars.sh,
4669         * config/srclist-update: doc fixes.
4670
4671 2010-04-07  Jim Meyering  <meyering@redhat.com>
4672
4673         maint.mk: add a PATH crosschecking syntax-check rule
4674         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4675         Useful if you use a test like the one in help-version (coreutils,
4676         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4677         printed by prog --version.
4678
4679 2010-04-06  Bruno Haible  <bruno@clisp.org>
4680
4681         Fix link error on mingw.
4682         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4683         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4684
4685 2010-04-06  Bruno Haible  <bruno@clisp.org>
4686
4687         Assume rmdir exists.
4688         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4689
4690 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4691
4692         doc: update users.txt
4693         * users.txt: Add gcal.
4694
4695 2010-04-06  Jim Meyering  <meyering@redhat.com>
4696
4697         init.sh: simply unset TMPDIR rather than risking env -i
4698         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4699         although it probably works fine on all Unix-based systems, some
4700         systems (Cygwin?) cannot tolerate a totally cleared environment.
4701         Suggestion from Eric Blake.
4702
4703 2010-04-06  Jim Meyering  <meyering@redhat.com>
4704
4705         init.sh: portability fix: use env's POSIX-specified -i option not -u
4706         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4707         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4708
4709 2010-04-05  Bruno Haible  <bruno@clisp.org>
4710
4711         btowc: Work around Cygwin 1.7.2 bug.
4712         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4713         does not map NUL to 0.
4714         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4715
4716 2010-04-05  Bruno Haible  <bruno@clisp.org>
4717
4718         Make the multithread modules work on Cygwin 1.7.2.
4719         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4720         imported symbols can be declared weak, so that it returns "no" on
4721         Cygwin 1.7.2.
4722
4723 2010-04-05  Bruno Haible  <bruno@clisp.org>
4724
4725         Use the module 'strncat'.
4726         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4727
4728         Tests for module 'strncat'.
4729         * modules/strncat-tests: New file.
4730         * tests/test-strncat.c: New file.
4731
4732         New module 'strncat'.
4733         * lib/string.in.h (strncat): New declaration.
4734         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4735         * m4/strncat.m4: New file, based on m4/memchr.m4.
4736         * modules/strncat: New file.
4737         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4738         is declared.
4739         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4740         REPLACE_STRNCAT.
4741         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4742         REPLACE_STRNCAT.
4743         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4744         module.
4745         * tests/test-string-c++.cc: Check signature of strncat.
4746
4747 2010-04-05  Jim Meyering  <meyering@redhat.com>
4748
4749         xstrtoumax-tests: convert to use init.sh
4750         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4751         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4752         Use Exit, not exit.
4753         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4754
4755         xstrtoimax-tests: convert to use init.sh
4756         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4757         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4758         Use Exit, not exit.
4759         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4760
4761 2010-04-05  Bruno Haible  <bruno@clisp.org>
4762
4763         sys_socket: Avoid #define replacements in C++ mode.
4764         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4765         warning to the function if possible, rather than #defining the symbol
4766         to a dysfunctional alias.
4767
4768 2010-04-05  Bruno Haible  <bruno@clisp.org>
4769
4770         fseeko: Fix C++ test error on mingw.
4771         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4772         gl_FUNC_FSEEKO.
4773         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4774         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4775         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4776         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4777
4778 2010-04-05  Bruno Haible  <bruno@clisp.org>
4779
4780         duplocale: Improve test output.
4781         * tests/test-duplocale.c (main): Print reason for skipped test.
4782
4783 2010-04-05  Bruno Haible  <bruno@clisp.org>
4784
4785         Assume rmdir exists.
4786         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4787         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4788
4789 2010-04-05  Bruno Haible  <bruno@clisp.org>
4790
4791         Fix link error on Solaris 8 with cc.
4792         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4793
4794 2010-04-05  Bruno Haible  <bruno@clisp.org>
4795
4796         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4797         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4798
4799 2010-04-05  Bruno Haible  <bruno@clisp.org>
4800
4801         vasprintf: Update documentation.
4802         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4803
4804 2010-04-05  Bruno Haible  <bruno@clisp.org>
4805
4806         ptsname: Improve test.
4807         * tests/test-ptsname.c (main): Also try the various master names of BSD
4808         systems.
4809
4810 2010-04-05  Bruno Haible  <bruno@clisp.org>
4811
4812         memchr: Avoid a possible C++ test error.
4813         * lib/string.in.h (memchr): Provide declaration if function is missing.
4814         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4815         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4817         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4818
4819 2010-04-05  Bruno Haible  <bruno@clisp.org>
4820
4821         strtok_r: Improve idiom.
4822         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4823         AC_LIBOBJ is used.
4824
4825 2010-04-05  Bruno Haible  <bruno@clisp.org>
4826
4827         strdup: Improve idiom.
4828         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4829         AC_LIBOBJ is used.
4830         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4831         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4832         when AC_LIBOBJ is used.
4833
4834 2010-04-05  Bruno Haible  <bruno@clisp.org>
4835
4836         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4837         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4838         don't set REPLACE_MBSINIT to 1.
4839         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4840         don't set REPLACE_MBRTOWC to 1.
4841         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4842         exist, don't set REPLACE_MBSRTOWCS to 1.
4843         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4844         exist, don't set REPLACE_MBSNRTOWCS to 1.
4845         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4846         don't set REPLACE_WCRTOMB to 1.
4847         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4848         exist, don't set REPLACE_WCSRTOMBS to 1.
4849         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4850         exist, don't set REPLACE_WCSNRTOMBS to 1.
4851
4852 2010-04-05  Bruno Haible  <bruno@clisp.org>
4853
4854         ldexpl: Improve idiom.
4855         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4856         make sure to set HAVE_DECL_LDEXPL to 0.
4857
4858 2010-04-05  Jim Meyering  <meyering@redhat.com>
4859
4860         xstrtol-tests: convert to use init.sh
4861         * modules/xstrtol-tests (Files): Add tests/init.sh.
4862         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4863         Use Exit, not exit.
4864         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4865
4866         atexit-tests: convert to use init.sh
4867         * modules/atexit-tests (Files): Add tests/init.sh.
4868         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4869         Use Exit, not exit.
4870         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4871
4872         init.sh: fix typo
4873         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4874
4875         init.sh: make it easier for a test script to write to the tty, ...
4876         when using automake's parallel-tests mode.
4877         * tests/init.sh (stderr_fileno_): Define overridable variable.
4878         (warn_): New function, to use it.
4879         (fail_, skip_, framework_failure_): Use warn_.
4880
4881 2010-04-04  Bruno Haible  <bruno@clisp.org>
4882
4883         btowc: Avoid warning.
4884         * lib/btowc.c: Include <stdlib.h>.
4885         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4886
4887 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4888             Bruno Haible  <bruno@clisp.org>
4889
4890         wchar: Port to NetBSD 1.5.
4891         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4892         * lib/wctype.in.h (WEOF): Likewise.
4893
4894 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4895             Bruno Haible  <bruno@clisp.org>
4896
4897         Port extended stdio to NetBSD 1.5.
4898         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4899         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4900         older.
4901
4902 2010-04-04  Bruno Haible  <bruno@clisp.org>
4903
4904         string: Remove unused substitution.
4905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4906         HAVE_DECL_STRERROR.
4907         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4908
4909 2010-04-04  Bruno Haible  <bruno@clisp.org>
4910
4911         strtod: Avoid a possible C++ test error.
4912         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4913         set REPLACE_STRTOD.
4914
4915 2010-04-04  Bruno Haible  <bruno@clisp.org>
4916
4917         strerror: Update documentation.
4918         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4919
4920 2010-04-04  Bruno Haible  <bruno@clisp.org>
4921
4922         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4923         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4924         _GL_CXXALIAS_SYS_CAST.
4925
4926 2010-04-04  Bruno Haible  <bruno@clisp.org>
4927
4928         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4929         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4930         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4931         REPLACE_FREXPL to 1.
4932         * doc/posix-functions/frexpl.texi: Update documentation.
4933
4934 2010-04-04  Bruno Haible  <bruno@clisp.org>
4935
4936         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4937         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4938
4939 2010-04-04  Bruno Haible  <bruno@clisp.org>
4940
4941         Implement nanosleep for native Windows.
4942         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4943
4944 2010-04-04  Bruno Haible  <bruno@clisp.org>
4945
4946         math: Fix some C++ test errors on Solaris 8.
4947         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4948
4949 2010-04-04  Bruno Haible  <bruno@clisp.org>
4950
4951         math: Fix some C++ test errors on Cygwin.
4952         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4953         truncl): Provide declaration if the system does not have it.
4954         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4955         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4956         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4957         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4958         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4959         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4960         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4961         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4962         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4963         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4964         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4965         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4966         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4967         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4968         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4969         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4971         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4972         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4973         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4974         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4975         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4976
4977 2010-04-04  Bruno Haible  <bruno@clisp.org>
4978
4979         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4980         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4981         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4982         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4983         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4984         * m4/isinf.m4 (gl_ISINF): Likewise.
4985         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4986
4987 2010-04-04  Bruno Haible  <bruno@clisp.org>
4988
4989         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4990         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4991
4992 2010-04-04  Bruno Haible  <bruno@clisp.org>
4993
4994         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4995         * modules/tmpfile (configure.ac): Update.
4996
4997         tmpfile: Fix C++ test error on mingw.
4998         * lib/stdio.in.h (tmpfile): New declaration.
4999         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
5000         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
5001         * modules/tmpfile (Depends-on): Add stdio.
5002         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5003         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
5004         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
5005         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
5006         REPLACE_TMPFILE.
5007         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
5008
5009 2010-04-04  Bruno Haible  <bruno@clisp.org>
5010
5011         ioctl: Fix C++ test error on mingw.
5012         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
5013         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
5014         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
5015
5016 2010-04-03  Bruno Haible  <bruno@clisp.org>
5017
5018         wcwidth: Fix C++ test error on mingw.
5019         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
5020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
5021         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
5022
5023 2010-04-03  Bruno Haible  <bruno@clisp.org>
5024
5025         nanosleep: Fix C++ test error on mingw.
5026         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
5027         * lib/time.in.h (nanosleep): Use modern idiom.
5028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
5029         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
5030         REPLACE_NANOSLEEP to 1.
5031         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
5032         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
5033
5034 2010-04-03  Bruno Haible  <bruno@clisp.org>
5035
5036         strptime: Fix C++ test error on mingw.
5037         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
5038         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
5039         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
5040         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
5041         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
5042         not REPLACE_STRPTIME.
5043         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
5044         REPLACE_STRPTIME.
5045
5046 2010-04-03  Bruno Haible  <bruno@clisp.org>
5047
5048         timegm: Fix C++ test error on mingw.
5049         * lib/time.in.h (timegm): Use modern idiom.
5050         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
5051         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
5052         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
5053         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
5054
5055 2010-04-03  Bruno Haible  <bruno@clisp.org>
5056
5057         timegm: Assume declaration if function exists.
5058         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
5059         if it exists. Don't clobber ac_cv_func_timegm.
5060
5061 2010-04-03  Bruno Haible  <bruno@clisp.org>
5062
5063         time_r: Fix C++ test error on mingw.
5064         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
5065         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
5066         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
5067         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
5068         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
5069
5070 2010-04-03  Bruno Haible  <bruno@clisp.org>
5071
5072         time_r: Minor updates.
5073         * modules/time_r (Description): Mention the provided functions.
5074         * lib/time_r.c: Don't include <string.h>.
5075         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
5076         * doc/posix-functions/localtime_r.texi: Likewise.
5077
5078 2010-04-03  Bruno Haible  <bruno@clisp.org>
5079
5080         time: Fix regression introduced on 2010-03-08.
5081         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
5082         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
5083
5084 2010-04-03  Jim Meyering  <meyering@redhat.com>
5085
5086         maint.mk: don't silently disable project-specific syntax-check rules
5087         * top/maint.mk (_prohibit_regexp): Define, to help people realize
5088         that they need to convert their project-specific syntax-check rules
5089         to use the new _sc_search_regexp.
5090
5091 2010-04-03  Bruno Haible  <bruno@clisp.org>
5092
5093         fchdir: Fix regression introduced on 2010-03-08.
5094         * lib/unistd.in.h (fchdir): Fix declaration.
5095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
5096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
5097         REPLACE_FCHDIR.
5098         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
5099         REPLACE_FCHDIR.
5100
5101 2010-04-03  Bruno Haible  <bruno@clisp.org>
5102
5103         getpagesize: Fix C++ test error on mingw.
5104         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
5105         system does not declare the function.
5106         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
5107         declared.
5108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5109         HAVE_DECL_GETPAGESIZE.
5110         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
5111
5112 2010-04-03  Bruno Haible  <bruno@clisp.org>
5113
5114         stdio: Make C++ tests work on mingw.
5115         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
5116         does not declare the function.
5117
5118 2010-04-03  Bruno Haible  <bruno@clisp.org>
5119
5120         ftello: Fix C++ test error on mingw.
5121         * lib/stdio.in.h (ftello): Use modern idiom.
5122         * lib/ftello.c (ftello): Renamed from rpl_ftello.
5123         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
5124         is missing and that it needs to be replaced.
5125         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
5126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
5127         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
5128
5129 2010-04-03  Bruno Haible  <bruno@clisp.org>
5130
5131         fseeko: Fix C++ test error on mingw.
5132         * lib/stdio.in.h (fseeko): Use modern idiom.
5133         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
5134         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
5135         is missing and that it needs to be replaced.
5136         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
5137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
5138         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
5139
5140 2010-04-03  Bruno Haible  <bruno@clisp.org>
5141
5142         mkstemp: Fix C++ test error on mingw.
5143         * lib/stdlib.in.h (mkstemp): Use modern idiom.
5144         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
5145         function is missing and that it needs to be replaced.
5146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
5147         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
5148
5149 2010-04-03  Bruno Haible  <bruno@clisp.org>
5150
5151         stpncpy: Fix C++ test error on mingw.
5152         * lib/string.in.h (stpncpy): Use modern idiom.
5153         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
5154         function is missing and that it needs to be replaced.
5155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5156         REPLACE_STPNCPY.
5157         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5158
5159 2010-04-03  Bruno Haible  <bruno@clisp.org>
5160
5161         sys_stat: Fix C++ test error on mingw.
5162         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5163         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5164
5165 2010-04-03  Bruno Haible  <bruno@clisp.org>
5166
5167         pty: Update doc.
5168         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5169
5170 2010-04-03  Bruno Haible  <bruno@clisp.org>
5171
5172         unistd: Fix C++ test error on mingw.
5173         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5174
5175 2010-04-03  Bruno Haible  <bruno@clisp.org>
5176
5177         Update doc regarding mingw.
5178         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5179         * doc/glibc-functions/login_tty.texi: Likewise.
5180         * doc/glibc-functions/forkpty.texi: Likewise.
5181
5182 2010-04-03  Bruno Haible  <bruno@clisp.org>
5183
5184         stdlib: Avoid compilation failure of c-strtold on mingw.
5185         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5186
5187 2010-04-03  Bruno Haible  <bruno@clisp.org>
5188
5189         locale: Make C++ tests work on Cygwin and mingw.
5190         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5191         cannot provide the function.
5192         Reported by Simon Josefsson.
5193
5194 2010-04-03  Bruno Haible  <bruno@clisp.org>
5195
5196         localename: Port to MacOS X 10.6.
5197         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5198         memory layout of the locales in MacOS X 10.6 as well.
5199         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5200
5201 2010-04-02  Bruno Haible  <bruno@clisp.org>
5202
5203         gnulib-tool: Ensure that long-running tests are executed last.
5204         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5205         running tests after the one for the other tests.
5206
5207 2010-04-02  Bruno Haible  <bruno@clisp.org>
5208
5209         gnulib-tool: Ensure the tests in the main directory are executed first.
5210         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5211         start with the current directory.
5212
5213 2010-04-02  Bruno Haible  <bruno@clisp.org>
5214
5215         Tests for module 'havelib', moved here from GNU gettext.
5216         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5217         modifications.
5218         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5219         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5220         with modifications.
5221         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5222         modifications.
5223         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5224         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5225         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5226         with modifications.
5227         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5228         with modifications.
5229         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5230         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5231         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5232         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5233         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5234         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5235         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5236         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5237         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5238         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5239         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5240         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5241         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5242         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5243         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5244         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5245         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5246         with modifications.
5247         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5248         with modifications.
5249         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5250         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5251         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5252         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5253         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5254         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5255         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5256         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5257         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5258         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5259         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5260         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5261         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5262         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5263         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5264         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5265         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5266         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5267         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5268         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5269         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5270         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5271         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5272         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5273         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5274         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5275         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5276         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5277         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5278         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5279         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5280         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5281         * tests/havelib/rpathx/rpathx.c: New file, from
5282         gettext/autoconf-lib-link.
5283         * tests/havelib/rpathx/Makefile.am: New file, from
5284         gettext/autoconf-lib-link.
5285         * tests/havelib/rpathx/configure.ac: New file, from
5286         gettext/autoconf-lib-link with modifications.
5287         * tests/havelib/rpathy/rpathy.c: New file, from
5288         gettext/autoconf-lib-link.
5289         * tests/havelib/rpathy/Makefile.am: New file, from
5290         gettext/autoconf-lib-link.
5291         * tests/havelib/rpathy/configure.ac: New file, from
5292         gettext/autoconf-lib-link with modifications.
5293         * tests/havelib/rpathz/rpathz.c: New file, from
5294         gettext/autoconf-lib-link.
5295         * tests/havelib/rpathz/Makefile.am: New file, from
5296         gettext/autoconf-lib-link.
5297         * tests/havelib/rpathz/configure.ac: New file, from
5298         gettext/autoconf-lib-link with modifications.
5299         * tests/havelib/rpathlx/usex.c: New file, from
5300         gettext/autoconf-lib-link.
5301         * tests/havelib/rpathlx/Makefile.am: New file, from
5302         gettext/autoconf-lib-link.
5303         * tests/havelib/rpathlx/configure.ac: New file, from
5304         gettext/autoconf-lib-link with modifications.
5305         * tests/havelib/rpathly/usey.c: New file, from
5306         gettext/autoconf-lib-link.
5307         * tests/havelib/rpathly/Makefile.am: New file, from
5308         gettext/autoconf-lib-link.
5309         * tests/havelib/rpathly/configure.ac: New file, from
5310         gettext/autoconf-lib-link with modifications.
5311         * tests/havelib/rpathlz/usez.c: New file, from
5312         gettext/autoconf-lib-link.
5313         * tests/havelib/rpathlz/Makefile.am: New file, from
5314         gettext/autoconf-lib-link.
5315         * tests/havelib/rpathlz/configure.ac: New file, from
5316         gettext/autoconf-lib-link with modifications.
5317         * tests/havelib/rpathlyx/usey.c: New file, from
5318         gettext/autoconf-lib-link.
5319         * tests/havelib/rpathlyx/Makefile.am: New file, from
5320         gettext/autoconf-lib-link.
5321         * tests/havelib/rpathlyx/configure.ac: New file, from
5322         gettext/autoconf-lib-link with modifications.
5323         * tests/havelib/rpathlzyx/usez.c: New file, from
5324         gettext/autoconf-lib-link.
5325         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5326         gettext/autoconf-lib-link.
5327         * tests/havelib/rpathlzyx/configure.ac: New file, from
5328         gettext/autoconf-lib-link with modifications.
5329         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5330         with modifications.
5331
5332 2010-04-02  Bruno Haible  <bruno@clisp.org>
5333
5334         gnulib-tool: Create distributed built sources also for the tests.
5335         * gnulib-tool (func_create_testdir): Also generate distributed built
5336         sources in the tests directory.
5337
5338 2010-04-02  Bruno Haible  <bruno@clisp.org>
5339
5340         gnulib-tool: Obey user's environment variables.
5341         * gnulib-tool (func_create_testdir): When creating built sources,
5342         respect the environment variables for autoconf, automake, etc. given by
5343         the user.
5344
5345 2010-04-02  Bruno Haible  <bruno@clisp.org>
5346
5347         gnulib-tool: Provide the value of --m4-base to modules.
5348         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5349         of gl_m4_base.
5350
5351 2010-04-02  Eric Blake  <eblake@redhat.com>
5352
5353         maint.mk: fix some fallout
5354         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5355         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5356
5357 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5358
5359         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5360         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5361         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5362         (sc_cast_of_x_alloc_return_value): Likewise.
5363         (sc_cast_of_alloca_return_value): Likewise.
5364         (sc_space_tab): Likewise.
5365         (sc_prohibit_atoi_atof): Likewise.
5366         (sc_prohibit_magic_number_exit): Likewise.
5367         (sc_error_exit_success): Likewise.
5368         (sc_file_system): Likewise.
5369         (sc_prohibit_have_config_h): Likewise.
5370         (sc_require_config_h): Likewise.
5371         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5372         (sc_obsolete_symbols): Likewise.
5373         (sc_changelog): Likewise.
5374         (sc_program_name): Likewise.
5375         (sc_the_the): Likewise.
5376         (sc_trailing_blank): Likewise.
5377         (sc_two_space_separator_in_usage): Likewise.
5378         (sc_useless_cpp_parens): Likewise.
5379         (sc_GPL_version): Likewise.
5380         (sc_GFDL_version): Likewise.
5381         (sc_texinfo_acronym): Likewise.
5382         (sc_prohibit_cvs_keyword): Likewise.
5383         (sc_prohibit_stat_st_blocks): Likewise.
5384         (sc_prohibit_S_IS_definition): Likewise.
5385         (sc_redundant_const): Likewise.
5386         (sc_makefile_TAB_only_indentation): Likewise.
5387         (sc_m4_quote_check): Likewise.
5388         (sc_makefile_path_separator_check): Likewise.
5389         (sc_copyright_check): Likewise.
5390         (sc_Wundef_boolean): Likewise.
5391         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5392
5393         maint.mk: match 0 or more whitespace-before-function-call '('
5394         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5395         that have zero or two-and-more spaces between the function name
5396         and the open parenthesis.
5397         (sc_error_message_warn_fatal): Likewise.
5398         (sc_error_message_uppercase): Likewise.
5399         (sc_error_message_period): Likewise.
5400
5401 2010-03-31  Eric Blake  <eblake@redhat.com>
5402
5403         maint.mk: check for [ as well as test
5404         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5405         Based on a libvirt report by Matthias Bolte.
5406
5407         gnumakefile: don't squelch _version output
5408         * top/GNUmakefile (_version): Create one-shot dependency rather
5409         than using $(shell) when version must be regenerated.
5410         (_autoreconf): Run verbosely, by default.
5411
5412         sys_time: avoid compiler warnings
5413         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5414         unconditional, fixing regression from 2010-03-29.
5415         Reported by Simon Josefsson.
5416
5417 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5418
5419         maint.mk: s/_header_without_use/_sc_header_without_use/
5420         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5421         (sc_prohibit_assert_without_use): Use the new name.
5422         (sc_prohibit_close_stream_without_use): Likewise.
5423         (sc_prohibit_getopt_without_use): Likewise.
5424         (sc_prohibit_quotearg_without_use): Likewise.
5425         (sc_prohibit_quote_without_use): Likewise.
5426         (sc_prohibit_long_options_without_use): Likewise.
5427         (sc_prohibit_inttostr_without_use): Likewise.
5428         (sc_prohibit_ignore_value_without_use): Likewise.
5429         (sc_prohibit_error_without_use): Likewise.
5430         (sc_prohibit_xalloc_without_use): Likewise.
5431         (sc_prohibit_hash_without_use): Likewise.
5432         (sc_prohibit_hash_pjw_without_use): Likewise.
5433         (sc_prohibit_safe_read_without_use): Likewise.
5434         (sc_prohibit_argmatch_without_use): Likewise.
5435         (sc_prohibit_canonicalize_without_use): Likewise.
5436         (sc_prohibit_root_dev_ino_without_use): Likewise.
5437         (sc_prohibit_openat_without_use): Likewise.
5438         (sc_prohibit_c_ctype_without_use): Likewise.
5439         (sc_prohibit_signal_without_use): Likewise.
5440         (sc_prohibit_intprops_without_use): Likewise.
5441
5442 2010-03-30  Eric Blake  <eblake@redhat.com>
5443
5444         maint: improve module indicators
5445         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5446         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5447         columns, and avoid extra macro expansion.
5448
5449         fdopendir: work around FreeBSD bug
5450         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5451         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5452         * modules/dirent (Makefile.am): Substitute it.
5453         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5454         declaration.
5455         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5456         fix.
5457         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5458
5459 2010-03-29  Bruno Haible  <bruno@clisp.org>
5460
5461         Emit #pragma system_header after the inclusion guard, not before.
5462         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5463         guard that spans the entire file, not before. This enables an
5464         optimization in GCC's preprocessor.
5465         * lib/ctype.in.h: Likewise.
5466         * lib/dirent.in.h: Likewise.
5467         * lib/errno.in.h: Likewise.
5468         * lib/float.in.h: Likewise.
5469         * lib/getopt.in.h: Likewise.
5470         * lib/iconv.in.h: Likewise.
5471         * lib/langinfo.in.h: Likewise.
5472         * lib/locale.in.h: Likewise.
5473         * lib/math.in.h: Likewise.
5474         * lib/netdb.in.h: Likewise.
5475         * lib/netinet_in.in.h: Likewise.
5476         * lib/pty.in.h: Likewise.
5477         * lib/sched.in.h: Likewise.
5478         * lib/se-selinux.in.h: Likewise.
5479         * lib/search.in.h: Likewise.
5480         * lib/spawn.in.h: Likewise.
5481         * lib/stdarg.in.h: Likewise.
5482         * lib/stdint.in.h: Likewise.
5483         * lib/string.in.h: Likewise.
5484         * lib/strings.in.h: Likewise.
5485         * lib/sys_file.in.h: Likewise.
5486         * lib/sys_ioctl.in.h: Likewise.
5487         * lib/sys_time.in.h: Likewise.
5488         * lib/sys_times.in.h: Likewise.
5489         * lib/sys_utsname.in.h: Likewise.
5490         * lib/sys_wait.in.h: Likewise.
5491         * lib/sysexits.in.h: Likewise.
5492         * lib/wctype.in.h: Likewise.
5493
5494 2010-03-28  James Youngman  <jay@gnu.org>
5495
5496         save-cwd: don't leak a file descriptor when the caller execs.
5497         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5498         saved file descriptor.
5499         * modules/save-cwd (Depends-on): Depend on cloexec.
5500
5501 2010-03-29  Bruno Haible  <bruno@clisp.org>
5502
5503         Remove vestiges of fts-lgpl module.
5504         * lib/fts_.h: Assume GNULIB_FTS is 1.
5505         * lib/fts.c: Likewise.
5506         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5507
5508 2010-03-28  Bruno Haible  <bruno@clisp.org>
5509
5510         Fix definition of tests witness macro.
5511         * gnulib-tool (func_import): Fix definition of witness macro.
5512
5513 2010-03-28  Bruno Haible  <bruno@clisp.org>
5514
5515         Fix ioctl's protoype on glibc systems.
5516         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5517         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5518         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5519         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5520         signature. If not, arrange to replace the ioctl function.
5521         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5522         REPLACE_IOCTL.
5523         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5524         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5525         Reported by Ludovic Courtès <ludo@gnu.org>.
5526
5527 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5528
5529         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5530         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5531         made it so grep -r --include=GLOB* ... did not work.
5532
5533 2010-03-26  Jim Meyering  <meyering@redhat.com>
5534             Eric Blake  <eblake@redhat.com>
5535
5536         maint.mk: prohibit use of test's -o and -a operators
5537         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5538
5539 2010-03-28  Bruno Haible  <bruno@clisp.org>
5540
5541         Remove unused GNULIB_XYZ macro definitions.
5542         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5543         invocation.
5544
5545 2010-03-28  Bruno Haible  <bruno@clisp.org>
5546
5547         Mark privileged tests modules.
5548         * modules/idpriv-drop-tests (Status): New section.
5549         * modules/idpriv-droptemp-tests (Status): New section.
5550
5551 2010-03-28  Bruno Haible  <bruno@clisp.org>
5552
5553         Split C++ tests into separate tests modules.
5554         * modules/dirent-c++-tests: New file, extracted from
5555         modules/dirent-tests.
5556         * modules/dirent-tests: Depend on it.
5557         * modules/fcntl-h-c++-tests: New file, extracted from
5558         modules/fcntl-h-tests.
5559         * modules/fcntl-h-tests: Depend on it.
5560         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5561         * modules/glob-tests: Depend on it.
5562         * modules/iconv-h-c++-tests: New file, extracted from
5563         modules/iconv-h-tests.
5564         * modules/iconv-h-tests: Depend on it.
5565         * modules/langinfo-c++-tests: New file, extracted from
5566         modules/langinfo-tests.
5567         * modules/langinfo-tests: Depend on it.
5568         * modules/locale-c++-tests: New file, extracted from
5569         modules/locale-tests.
5570         * modules/locale-tests: Depend on it.
5571         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5572         * modules/math-tests: Depend on it.
5573         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5574         * modules/pty-tests: Depend on it.
5575         * modules/search-c++-tests: New file, extracted from
5576         modules/search-tests.
5577         * modules/search-tests: Depend on it.
5578         * modules/signal-c++-tests: New file, extracted from
5579         modules/signal-tests.
5580         * modules/signal-tests: Depend on it.
5581         * modules/spawn-c++-tests: New file, extracted from
5582         modules/spawn-tests.
5583         * modules/spawn-tests: Depend on it.
5584         * modules/stdio-c++-tests: New file, extracted from
5585         modules/stdio-tests.
5586         * modules/stdio-tests: Depend on it.
5587         * modules/stdlib-c++-tests: New file, extracted from
5588         modules/stdlib-tests.
5589         * modules/stdlib-tests: Depend on it.
5590         * modules/string-c++-tests: New file, extracted from
5591         modules/string-tests.
5592         * modules/string-tests: Depend on it.
5593         * modules/sys_ioctl-c++-tests: New file, extracted from
5594         modules/sys_ioctl-tests.
5595         * modules/sys_ioctl-tests: Depend on it.
5596         * modules/sys_select-c++-tests: New file, extracted from
5597         modules/sys_select-tests.
5598         * modules/sys_select-tests: Depend on it.
5599         * modules/sys_socket-c++-tests: New file, extracted from
5600         modules/sys_socket-tests.
5601         * modules/sys_socket-tests: Depend on it.
5602         * modules/sys_stat-c++-tests: New file, extracted from
5603         modules/sys_stat-tests.
5604         * modules/sys_stat-tests: Depend on it.
5605         * modules/sys_time-c++-tests: New file, extracted from
5606         modules/sys_time-tests.
5607         * modules/sys_time-tests: Depend on it.
5608         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5609         * modules/time-tests: Depend on it.
5610         * modules/unistd-c++-tests: New file, extracted from
5611         modules/unistd-tests.
5612         * modules/unistd-tests: Depend on it.
5613         * modules/wchar-c++-tests: New file, extracted from
5614         modules/wchar-tests.
5615         * modules/wchar-tests: Depend on it.
5616         * modules/wctype-c++-tests: New file, extracted from
5617         modules/wctype-tests.
5618         * modules/wctype-tests: Depend on it.
5619         Reported by Simon Josefsson.
5620
5621 2010-03-28  Bruno Haible  <bruno@clisp.org>
5622
5623         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5624         * gnulib-tool (func_exists_module): New function, extracted from
5625         func_verify_module.
5626         (func_verify_module): Use it.
5627         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5628         'foo' only if 'foo' exists.
5629         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5630         module.
5631
5632 2010-03-28  Bruno Haible  <bruno@clisp.org>
5633
5634         gnulib-tool: Add support for special categories of tests.
5635         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5636         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5637         (func_usage): Document them.
5638         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5639         inc_unportable_tests, inc_all_tests): New variables.
5640         (func_acceptable): Consider these variables.
5641         (func_modules_transitive_closure): Make it work when the 'Status' field
5642         consists of multiple words.
5643         (func_import): Store and restore the values of inc_cxx_tests,
5644         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5645         inc_all_tests in gnulib-comp.m4.
5646         (func_create_testdir): Set inc_all_tests to true.
5647         * doc/gnulib.texi (Extra tests modules): New section.
5648         Suggested by Jim Meyering.
5649
5650 2010-03-28  Bruno Haible  <bruno@clisp.org>
5651
5652         ansi-c++-opt: Allow turning off the C++ build by default.
5653         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5654         gl_CXX_CHOICE_DEFAULT_NO is defined.
5655         Requested by Eric Blake.
5656
5657 2010-03-28  Bruno Haible  <bruno@clisp.org>
5658
5659         unistd: Avoid #define replacements in C++ mode.
5660         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5661         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5662         setsockopt, shutdown, select): In C++, attach a warning to the function
5663         if possible, rather than #defining the symbol to a dysfunctional alias.
5664         Reported by John W. Eaton <jwe@gnu.org>.
5665
5666 2010-03-28  Bruno Haible  <bruno@clisp.org>
5667
5668         Fix link errors on mingw.
5669         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5670         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5671         $(LIBSOCKET).
5672         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5673         $(LIBSOCKET).
5674
5675 2010-03-28  Bruno Haible  <bruno@clisp.org>
5676             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5677
5678         lib-ignore: Determine different options for different compilers.
5679         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5680         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5681         Add comments.
5682         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5683         * NEWS: Mention the change.
5684
5685 2010-03-27  Bruno Haible  <bruno@clisp.org>
5686
5687         Remove unused GNULIB_XYZ macro definitions.
5688         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5689         * modules/fseek (configure.ac): Likewise.
5690         * modules/ioctl (configure.ac): Likewise.
5691         * modules/open (configure.ac): Likewise.
5692         * modules/stdlib-safer (configure.ac): Likewise.
5693
5694 2010-03-27  Bruno Haible  <bruno@clisp.org>
5695
5696         Add a remark about certain modules.
5697         * modules/malloc (Comment): New section.
5698         * modules/realloc (Comment): Likewise.
5699         * modules/sigpipe (Comment): Likewise.
5700
5701 2010-03-27  Bruno Haible  <bruno@clisp.org>
5702
5703         Resolve conflict between the two kinds of module indicators.
5704         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5705         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5706         * modules/canonicalize (configure.ac): Invoke
5707         gl_MODULE_INDICATOR_FOR_TESTS.
5708         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5709         GNULIB_XYZ.
5710         * tests/test-dirent-c++.cc: Likewise.
5711         * tests/test-dirent-safer.c: Likewise.
5712         * tests/test-dup2.c: Likewise.
5713         * tests/test-fchdir.c: Likewise.
5714         * tests/test-fcntl-h-c++.cc: Likewise.
5715         * tests/test-getopt.c: Likewise.
5716         * tests/test-getopt.h: Likewise.
5717         * tests/test-langinfo-c++.cc: Likewise.
5718         * tests/test-locale-c++.cc: Likewise.
5719         * tests/test-math-c++.cc: Likewise.
5720         * tests/test-pty-c++.cc: Likewise.
5721         * tests/test-search-c++.cc: Likewise.
5722         * tests/test-signal-c++.cc: Likewise.
5723         * tests/test-spawn-c++.cc: Likewise.
5724         * tests/test-stdio-c++.cc: Likewise.
5725         * tests/test-stdlib-c++.cc: Likewise.
5726         * tests/test-string-c++.cc: Likewise.
5727         * tests/test-sys_ioctl-c++.cc: Likewise.
5728         * tests/test-sys_select-c++.cc: Likewise.
5729         * tests/test-sys_socket-c++.cc: Likewise.
5730         * tests/test-sys_stat-c++.cc: Likewise.
5731         * tests/test-sys_time-c++.cc: Likewise.
5732         * tests/test-time-c++.cc: Likewise.
5733         * tests/test-unistd-c++.cc: Likewise.
5734         * tests/test-wchar-c++.cc: Likewise.
5735         * tests/uninorm/test-u8-nfc.c: Likewise.
5736         * tests/uninorm/test-u8-nfd.c: Likewise.
5737         * tests/uninorm/test-u8-nfkc.c: Likewise.
5738         * tests/uninorm/test-u8-nfkd.c: Likewise.
5739         * tests/uninorm/test-u16-nfc.c: Likewise.
5740         * tests/uninorm/test-u16-nfd.c: Likewise.
5741         * tests/uninorm/test-u16-nfkc.c: Likewise.
5742         * tests/uninorm/test-u16-nfkd.c: Likewise.
5743         * tests/uninorm/test-u32-nfc.c: Likewise.
5744         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5745         * tests/uninorm/test-u32-nfd.c: Likewise.
5746         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5747         * tests/uninorm/test-u32-nfkc.c: Likewise.
5748         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5749         * tests/uninorm/test-u32-nfkd.c: Likewise.
5750         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5751         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5752
5753 2010-03-27  Bruno Haible  <bruno@clisp.org>
5754
5755         Distinguish two kinds of module indicators.
5756         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5757         gl_MODULE_INDICATOR.
5758         (gl_MODULE_INDICATOR): New macro.
5759         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5760         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5761         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5762         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5763         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5764         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5765         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5766         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5767         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5768         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5769         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5770         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5772         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5773         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5774         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5775         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5776         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5777         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5778         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5779         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5780         * modules/cloexec (configure.ac): Likewise.
5781         * modules/getopt-gnu (configure.ac): Likewise.
5782         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5783         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5784         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5785         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5786
5787 2010-03-27  Bruno Haible  <bruno@clisp.org>
5788
5789         New module description field 'Comment'.
5790         * gnulib-tool: New option --extract-comment.
5791         (func_usage): Document it.
5792         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5793         (func_get_comment): New function.
5794         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5795
5796 2010-03-27  Bruno Haible  <bruno@clisp.org>
5797
5798         Addendum to 2010-02-07 commit.
5799         * gnulib-tool (func_usage): Document --extract-applicability option.
5800
5801 2010-03-27  Bruno Haible  <bruno@clisp.org>
5802
5803         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5804         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5805         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5806         rather than link errors.
5807
5808 2010-03-27  Bruno Haible  <bruno@clisp.org>
5809
5810         Avoid side effects from tests-related modules on the compilation of lib.
5811         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5812         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5813         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5814         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5815         macro.
5816         (func_import): Define a witness macro. Assign it a value that depends
5817         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5818         tests-related modules.
5819         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5820         Reported by Jim Meyering.
5821
5822 2010-03-27  Bruno Haible  <bruno@clisp.org>
5823
5824         Factorize common .m4 code.
5825         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5826         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5827         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5828         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5829         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5830         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5831         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5832         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5833         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5834         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5835         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5836         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5837         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5838         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5839         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5840         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5841         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5842         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5844         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5845         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5846         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5847         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5848         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5849         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5850         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5851         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5852         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5853         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5854         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5855         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5856         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5857
5858 2010-03-27  Bruno Haible  <bruno@clisp.org>
5859
5860         Fix a compilation error on Cygwin with g++ >= 4.3.
5861         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5862         if it is undefined or if we alias it to chmod.
5863         (lstat): Don't warn about the use of this function if it is undefined
5864         or if we alias it to stat.
5865         Reported by Simon Josefsson.
5866
5867 2010-03-27  Bruno Haible  <bruno@clisp.org>
5868
5869         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5870         * modules/getlogin (configure.ac): Update.
5871
5872         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5873         * modules/getlogin_r (configure.ac): Update.
5874
5875         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5876         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5877         * modules/inet_ntop (configure.ac): Update.
5878
5879         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5880         * modules/inet_pton (configure.ac): Update.
5881
5882         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5883         * modules/mbslen (configure.ac): Update.
5884
5885         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5886         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5887         * modules/forkpty (configure.ac): Update.
5888         * modules/openpty (configure.ac): Update.
5889
5890 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5891
5892         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5893         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5894
5895 2010-03-25  Eric Blake  <eblake@redhat.com>
5896
5897         maint: use pragma consistently across replacement headers
5898         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5899         * lib/dirent.in.h (system_header): Likewise.
5900         * lib/errno.in.h (system_header): Likewise.
5901         * lib/float.in.h (system_header): Likewise.
5902         * lib/getopt.in.h (system_header): Likewise.
5903         * lib/iconv.in.h (system_header): Likewise.
5904         * lib/inttypes.in.h (system_header): Likewise.
5905         * lib/langinfo.in.h (system_header): Likewise.
5906         * lib/locale.in.h (system_header): Likewise.
5907         * lib/math.in.h (system_header): Likewise.
5908         * lib/netdb.in.h (system_header): Likewise.
5909         * lib/netinet_in.in.h (system_header): Likewise.
5910         * lib/pty.in.h (system_header): Likewise.
5911         * lib/sched.in.h (system_header): Likewise.
5912         * lib/se-selinux.in.h (system_header): Likewise.
5913         * lib/search.in.h (system_header): Likewise.
5914         * lib/spawn.in.h (system_header): Likewise.
5915         * lib/stdarg.in.h (system_header): Likewise.
5916         * lib/stdint.in.h (system_header): Likewise.
5917         * lib/string.in.h (system_header): Likewise.
5918         * lib/strings.in.h (system_header): Likewise.
5919         * lib/sys_file.in.h (system_header): Likewise.
5920         * lib/sys_ioctl.in.h (system_header): Likewise.
5921         * lib/sys_socket.in.h (system_header): Likewise.
5922         * lib/sys_times.in.h (system_header): Likewise.
5923         * lib/sys_utsname.in.h (system_header): Likewise.
5924         * lib/sys_wait.in.h (system_header): Likewise.
5925         * lib/sysexits.in.h (system_header): Likewise.
5926         * lib/unistd.in.h (system_header): Likewise.
5927         * lib/wctype.in.h (system_header): Likewise.
5928
5929         arpa/inet: fix mingw compilation warning
5930         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5931         Reported by Matthew Bolte.
5932
5933 2010-03-25  Bruno Haible  <bruno@clisp.org>
5934
5935         Avoid collision between gnulib wrapper and libintl wrapper.
5936         * lib/printf.c (printf): Don't define if a printf wrapper is already
5937         defined in intl/printf.c.
5938         Reported by Michel Boaventura <michel@michelboaventura.com>.
5939
5940 2010-03-25  Bruno Haible  <bruno@clisp.org>
5941
5942         Use ANSI C.
5943         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5944
5945 2010-03-25  Bruno Haible  <bruno@clisp.org>
5946
5947         Minor formatting changes.
5948         * lib/acosl.c: Insert space before function argument list.
5949         * lib/argz.c: Likewise.
5950         * lib/asinl.c: Likewise.
5951         * lib/expl.c: Likewise.
5952         * lib/gen-uni-tables.c: Likewise.
5953         * lib/gettext.h: Likewise.
5954         * lib/glthread/lock.h: Likewise.
5955         * lib/tanl.c: Likewise.
5956         * lib/uniname/uniname.c: Likewise.
5957         * tests/test-idpriv-drop.c: Likewise.
5958         * tests/test-idpriv-droptemp.c: Likewise.
5959         * tests/test-lock.c: Likewise.
5960         * tests/test-tls.c: Likewise.
5961         * lib/argp-help.c: Insert space before function-like macro argument
5962         list.
5963         * lib/memcmp.c: Likewise.
5964         * tests/test-base64.c: Likewise.
5965         * lib/localename.c: Insert space before sizeof's argument list.
5966         * lib/safe-alloc.h: Likewise.
5967         * lib/file-set.h: Insert space before macro argument list.
5968         * tests/test-argp.c: Likewise.
5969         * lib/argp-namefrob.h: Insert space before function parameter list.
5970         * lib/getaddrinfo.c: Likewise.
5971         * lib/netdb.in.h: Likewise.
5972         * lib/parse-duration.h: Likewise.
5973         * lib/parse-duration.c: Likewise.
5974         * lib/poll.c: Likewise.
5975         * lib/select.c: Likewise.
5976         * lib/trim.h: Likewise.
5977         * tests/test-usleep.c: Likewise.
5978         * lib/ldexpl.c: Insert space before function parameter list and before
5979         function argument list.
5980         * lib/logl.c: Likewise.
5981         * lib/sqrtl.c: Likewise.
5982         * lib/trim.c: Likewise.
5983         * lib/cosl.c: Use GNU style indentation. Insert space before function
5984         argument list.
5985         * lib/sinl.c: Likewise.
5986         * lib/tsearch.c: Insert space after 'for'.
5987         Reported by Jim Meyering.
5988
5989 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5990
5991         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5992         config header before grepping, as it's not present before
5993         autoreconf/configure are run.  Reported by Simon Josefsson.
5994
5995 2010-03-23  Bruno Haible  <bruno@clisp.org>
5996
5997         pt_chown: Make it work with automake < 1.11.
5998         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
5999         Reported by Simon Josefsson.
6000
6001 2010-03-23  Bruno Haible  <bruno@clisp.org>
6002
6003         pt_chown: Don't depend on GPLed modules.
6004         * lib/pt_chown.c: Don't include idpriv.h.
6005         (main): Don't drop privileges.
6006         * modules/pt_chown (Depends-on): Remove idpriv-drop.
6007         Reported by Simon Josefsson.
6008
6009 2010-03-24  Simon Josefsson  <simon@josefsson.org>
6010
6011         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
6012         suggestions from karl@freefriends.org (Karl Berry).
6013
6014 2010-03-22  Eric Blake  <eblake@redhat.com>
6015
6016         gethostname: further tweaks
6017         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
6018         are overriding gethostname.
6019         Suggested by Bruno Haible.
6020
6021 2010-03-21  Bruno Haible  <bruno@clisp.org>
6022
6023         Fix comments.
6024         * lib/forkpty.c (rpl_forkpty): Fix comment.
6025         * lib/openpty.c (rpl_openpty): Likewise.
6026         Reported by Eric Blake.
6027
6028 2010-03-22  Eric Blake  <eblake@redhat.com>
6029
6030         gethostname: fix build on mingw
6031         * lib/unistd.in.h (includes): Work around fact that mingw
6032         <winsock2.h> re-includes <unistd.h>, by avoiding any
6033         redeclarations if we are being included by <winsock2.h>.
6034         Reported by Matthias Bolte.
6035
6036 2010-03-21  Bruno Haible  <bruno@clisp.org>
6037
6038         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6039         * lib/forkpty.c (forkpty): New replacement function, from glibc with
6040         modifications.
6041         * lib/pty.in.h (forkpty): Update declaration. Add comments.
6042         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
6043         provide the replacement.
6044         * modules/forkpty (Depends-on): Add openpty, login_tty.
6045         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
6046         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
6047         * doc/glibc-functions/forkpty.texi: More supported platforms.
6048         * config/srclist.txt: Add forkpty.c (commented).
6049
6050 2010-03-21  Bruno Haible  <bruno@clisp.org>
6051
6052         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
6053         (Makefile.am): Verify that PTY_LIB is defined.
6054
6055         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
6056
6057 2010-03-21  Bruno Haible  <bruno@clisp.org>
6058
6059         Tests for module 'login_tty'.
6060         * modules/login_tty-tests: New file.
6061         * tests/test-login_tty.c: New file.
6062
6063         New module 'login_tty'.
6064         * lib/login_tty.c: New file.
6065         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
6066         * modules/login_tty: New file.
6067         * doc/glibc-functions/login_tty.texi: Mention the new module.
6068
6069 2010-03-21  Bruno Haible  <bruno@clisp.org>
6070
6071         login_tty: Documentation.
6072         * doc/glibc-functions/login_tty.texi: New file.
6073         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
6074
6075 2010-03-21  Bruno Haible  <bruno@clisp.org>
6076
6077         pty: Consistent macro naming.
6078         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
6079         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
6080         * modules/pty (configure.ac): Update.
6081
6082 2010-03-21  Bruno Haible  <bruno@clisp.org>
6083
6084         Tests for openpty: Make stricter.
6085         * tests/test-openpty.c (main): Add test of canonical processing and
6086         erase.
6087         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
6088
6089         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6090         * lib/openpty.c (openpty): New replacement function.
6091         * lib/pty.in.h: Include <termios.h>.
6092         (openpty): Update declaration. Add comments.
6093         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
6094         is not declared, arrange to provide the replacement. Check for _getpty
6095         and posix_openpt.
6096         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
6097         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
6098         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
6099         * modules/pty-tests (test_pty_c___LDADD): New variable.
6100         * doc/glibc-functions/openpty.texi: More supported platforms.
6101
6102 2010-03-21  Bruno Haible  <bruno@clisp.org>
6103
6104         setenv: Tweaks.
6105         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
6106         the test program.
6107         * doc/posix-functions/setenv.texi: Update platforms list.
6108
6109 2010-03-21  Bruno Haible  <bruno@clisp.org>
6110
6111         New module 'unlockpt'.
6112         * lib/unlockpt.c: New file, from glibc with modifications.
6113         * m4/unlockpt.m4: New file.
6114         * modules/unlockpt: New file.
6115         * lib/stdlib.in.h (unlockpt): New declaration.
6116         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
6117         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
6118         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
6119         HAVE_UNLOCKPT.
6120         * doc/posix-functions/unlockpt.texi: Mention the new module.
6121         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
6122         * config/srclist.txt: Add unlockpt.c (commented).
6123
6124 2010-03-21  Jim Meyering  <meyering@redhat.com>
6125
6126         maint.mk: prohibit inclusion of "intprops.h" without use
6127         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
6128
6129 2010-03-21  Bruno Haible  <bruno@clisp.org>
6130
6131         New module 'grantpt'.
6132         * lib/grantpt.c: New file, from glibc with modifications.
6133         * m4/grantpt.m4: New file.
6134         * modules/grantpt: New file.
6135         * lib/stdlib.in.h (grantpt): New declaration.
6136         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
6137         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
6138         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
6139         HAVE_GRANTPT.
6140         * doc/posix-functions/grantpt.texi: Mention the new module.
6141         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
6142         * config/srclist.txt: Add grantpt.c (commented).
6143
6144 2010-03-21  Bruno Haible  <bruno@clisp.org>
6145
6146         New module 'pt_chown'.
6147         * lib/pt_chown.c: New file, from glibc with modifications.
6148         * lib/pty-private.h: New file, from glibc with modifications.
6149         * modules/pt_chown: New file.
6150         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
6151
6152 2010-03-21  Bruno Haible  <bruno@clisp.org>
6153
6154         Tests for module 'ptsname'.
6155         * modules/ptsname-tests: New file.
6156         * tests/test-ptsname.c: New file.
6157
6158         New module 'ptsname'.
6159         * lib/ptsname.c: New file, from glibc with modifications.
6160         * m4/ptsname.m4: New file.
6161         * modules/ptsname: New file.
6162         * lib/stdlib.in.h (ptsname): New declaration.
6163         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6164         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6165         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6166         HAVE_PTSNAME.
6167         * doc/posix-functions/ptsname.texi: Mention the new module.
6168         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6169         * config/srclist.txt: Add ptsname.c (commented).
6170
6171 2010-03-21  Bruno Haible  <bruno@clisp.org>
6172
6173         Tests for module 'ttyname_r'.
6174         * modules/ttyname_r-tests: New file.
6175         * tests/test-ttyname_r.c: New file.
6176
6177         New module 'ttyname_r'.
6178         * lib/ttyname_r.c: New file.
6179         * m4/ttyname_r.m4: New file.
6180         * modules/ttyname_r: New file.
6181         * lib/unistd.in.h (ttyname_r): New declaration.
6182         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6183         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6184         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6185         HAVE_TTYNAME_R.
6186         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6187         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6188
6189 2010-03-20  Bruno Haible  <bruno@clisp.org>
6190
6191         signal: Undefine macro definitions in C++ mode.
6192         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6193         sigfillset): Undefine macro definitions from the system header in C++
6194         mode.
6195         Reported by John W. Eaton <jwe@gnu.org>.
6196
6197 2010-03-20  Bruno Haible  <bruno@clisp.org>
6198
6199         Ensure no #include statements inside extern "C" { ... }.
6200         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6201         contain #include statements.
6202         * lib/time.in.h: Likewise.
6203
6204 2010-03-20  Bruno Haible  <bruno@clisp.org>
6205
6206         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6207         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6208         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6209         Reported by John W. Eaton <jwe@gnu.org>.
6210
6211 2010-03-20  Bruno Haible  <bruno@clisp.org>
6212
6213         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6214         Reported by Jim Meyering.
6215
6216 2010-03-20  Bruno Haible  <bruno@clisp.org>
6217
6218         pipe: Set errno upon failure.
6219         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6220         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6221         errno value in error message.
6222
6223 2010-03-20  Bruno Haible  <bruno@clisp.org>
6224             Jim Meyering  <meyering@redhat.com>
6225
6226         lchown: Avoid "unused variable" warning.
6227         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6228
6229 2010-03-20  Bruno Haible  <bruno@clisp.org>
6230
6231         Work around unlink() bug on MacOS X 10.5.6.
6232         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6233         attempting to unlink a parent directory.
6234         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6235         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6236         activate for the replacement function.
6237         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6238
6239 2010-03-20  Bruno Haible  <bruno@clisp.org>
6240
6241         Fix link errors on Solaris 8.
6242         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6243         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6244
6245 2010-03-19  Jim Meyering  <meyering@redhat.com>
6246
6247         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6248         The _LIBC implementation of build_range_exp correctly honors the
6249         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6250         However, the non-_LIBC implementation would ignore that syntax-bit
6251         flag and return REG_ERANGE unconditionally.
6252         This change makes it honor that flag.
6253         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6254         Make two pointer parameters "const".
6255         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6256         (parse_bracket_exp): Update caller.
6257
6258         regex.m4: correct the reversed range endpoint ([b-a]) test
6259         * m4/regex.m4: When requiring that [b-a] evoke failure,
6260         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6261         test pass once again for x86-based systems.
6262
6263 2010-03-19  Bruno Haible  <bruno@clisp.org>
6264
6265         scandir: Fix link error on Solaris 8.
6266         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6267         macros.
6268
6269 2010-03-19  Bruno Haible  <bruno@clisp.org>
6270
6271         getusershell: Fix documentation.
6272         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6273         module.
6274         * doc/glibc-functions/setusershell.texi: Likewise.
6275
6276         getusershell: Provide declaration, missing on Solaris 9.
6277         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6278         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6279         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6280         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6282         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6283         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6284         HAVE_GETUSERSHELL.
6285         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6286
6287 2010-03-19  Bruno Haible  <bruno@clisp.org>
6288
6289         wctype: Provide iswblank function.
6290         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6291         exists and is fine.
6292         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6293         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6294         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6295         * doc/posix-functions/iswblank.texi: Update.
6296
6297 2010-03-19  Bruno Haible  <bruno@clisp.org>
6298
6299         Tests of module 'pty' in C++ mode.
6300         * modules/pty-tests: New file.
6301         * tests/test-pty-c++.cc: New file.
6302         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6303
6304 2010-03-19  Eric Blake  <eblake@redhat.com>
6305
6306         logb: fix documentation
6307         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6308         1.5 declaration bug.
6309
6310         forkpty, openpty: prefer glibc's const-safe prototype
6311         * lib/forkpty.c (rpl_forkpty): New file.
6312         * lib/openpty.c (rpl_openpty): Likewise.
6313         * modules/forkpty (Files): Distribute it.
6314         * modules/openpty (Files): Likewise.
6315         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6316         check...
6317         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6318         replacement for for non-const BSD signature.
6319         * modules/pty (Makefile.am): Substitute witnesses.
6320         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6321         * tests/test-forkpty.c: Update signature check.
6322         * tests/test-openpty.c: Likewise.
6323         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6324         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6325
6326         forkpty, openpty: split functions into new modules
6327         * modules/pty (Makefile.am): Substitute new witnesses.
6328         (Libraries): Move library detection...
6329         * modules/forkpty: ...into new module.
6330         * modules/openpty: Another new module.
6331         * modules/pty-tests: Rename and split...
6332         * modules/forkpty-tests: ...to this...
6333         * modules/openpty-tests: ...and this.
6334         * tests/test-pty.c: Rename and split...
6335         * tests/test-forkpty.c: ...to this...
6336         * tests/test-openpty.c: ...and this.
6337         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6338         (gl_PTY): Split library searching...
6339         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6340         (gl_FORKPTY, gl_OPENPTY): New macros.
6341         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6342         * NEWS: Mention the split.
6343         * MODULES.html.sh (Misc): Document the modules.
6344         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6345         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6346
6347         pty: improve replacement header
6348         * lib/pty.in.h: New file.
6349         * modules/pty (Files): Ship it.
6350         (Makefile.am): Always build replacement.
6351         * m4/pty.m4: Rename...
6352         * m4/pty_h.m4: ...to this.
6353         (gl_PTY): Modernize setting of witness macros; update check of
6354         forkpty to take proper advantage of cache.
6355         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6356
6357         getopt: avoid compiler warning
6358         * lib/getopt.c (attribute_hidden): Remove unused macro.
6359
6360 2010-03-18  Bruno Haible  <bruno@clisp.org>
6361
6362         Fix link errors on Solaris 8.
6363         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6364         * modules/search-tests (test_search_c___LDADD): Likewise.
6365         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6366         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6367         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6368         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6369         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6370         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6371         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6372
6373 2010-03-18  Bruno Haible  <bruno@clisp.org>
6374
6375         Fix bug introduced on 2010-03-14.
6376         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6377         (gl_SPAWN_H): Require it.
6378         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6379         Reported by Simon Josefsson.
6380
6381 2010-03-18  Bruno Haible  <bruno@clisp.org>
6382
6383         Fix typo introduced on 2009-12-31.
6384         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6385         posix_spawn_file_actions_adddup2.
6386
6387 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6388         and Eric Blake  <eblake@redhat.com>
6389
6390         test-vc-list-files-git: make more robust
6391         * tests/test-vc-list-files-git.sh: Unset problematic environment
6392         variables.  Chain commands together.
6393
6394 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6395
6396         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6397         `AC_CHECK_DECL' invocation.
6398
6399 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6400
6401         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6402         appears before executable statements. Suggested by Petr Sumbera
6403         <Petr.Sumbera@Sun.COM>.
6404
6405 2010-03-14  Bruno Haible  <bruno@clisp.org>
6406
6407         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6408         portability problems. Instead use a simpler test.
6409         (main): Check that invalid arguments are rejected only on Linux.
6410
6411 2010-03-14  Bruno Haible  <bruno@clisp.org>
6412
6413         Fix bug introduced on 2009-12-31.
6414         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6415         gl_PREREQ_SYS_H_WINSOCK2 always.
6416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6417         SYS_SOCKET_H variable.
6418         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6419         Update comments.
6420         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6421         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6422         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6423         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6424         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6425
6426 2010-03-14  Bruno Haible  <bruno@clisp.org>
6427
6428         Fix values returned by sinl, cosl.
6429         * lib/trigl.h: Add specification comments.
6430         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6431         that combines the values from the precomputed table with the values of
6432         the Chebyshev polynomials.
6433
6434 2010-03-14  Bruno Haible  <bruno@clisp.org>
6435
6436         Fix compilation error when modules 'posix_spawn[p]' are not used.
6437         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6438         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6439
6440 2010-03-14  Bruno Haible  <bruno@clisp.org>
6441
6442         Fix compilation error on mingw when module 'time_r' is not used.
6443         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6444         is 1.
6445         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6446         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6447         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6448         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6449
6450 2010-03-14  Bruno Haible  <bruno@clisp.org>
6451
6452         Fix compilation error with Sun C.
6453         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6454         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6455         instead of GCC specific ULONG_LONG_MAX.
6456         * lib/xstrtoll.c: Likewise.
6457         * lib/xstrtoull.c: Likewise.
6458
6459 2010-03-13  Bruno Haible  <bruno@clisp.org>
6460
6461         Allow the user to disable C++ code and tests.
6462         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6463         (gl_PROG_ANSI_CXX): Require it.
6464
6465 2010-03-13  Bruno Haible  <bruno@clisp.org>
6466
6467         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6468         cases.
6469
6470 2010-03-13  Bruno Haible  <bruno@clisp.org>
6471
6472         Test that gnulib does not break the standard C++ headers.
6473         * tests/test-locale-c++2.cc: New file.
6474         * modules/locale-tests (Files): Add it.
6475         (Makefile.am): Compile it for test-locale-c++.
6476         * tests/test-math-c++2.cc: New file.
6477         * modules/math-tests (Files): Add it.
6478         (Makefile.am): Compile it for test-math-c++.
6479         * tests/test-signal-c++2.cc: New file.
6480         * modules/signal-tests (Files): Add it.
6481         (Makefile.am): Compile it for test-signal-c++.
6482         * tests/test-stdio-c++2.cc: New file.
6483         * modules/stdio-tests (Files): Add it.
6484         (Makefile.am): Compile it for test-stdio-c++.
6485         * tests/test-stdlib-c++2.cc: New file.
6486         * modules/stdlib-tests (Files): Add it.
6487         (Makefile.am): Compile it for test-stdlib-c++.
6488         * tests/test-string-c++2.cc: New file.
6489         * modules/string-tests (Files): Add it.
6490         (Makefile.am): Compile it for test-string-c++.
6491         * tests/test-time-c++2.cc: New file.
6492         * modules/time-tests (Files): Add it.
6493         (Makefile.am): Compile it for test-time-c++.
6494         Reported by John W. Eaton <jwe@gnu.org>.
6495
6496 2010-03-13  Bruno Haible  <bruno@clisp.org>
6497
6498         * gnulib-tool (func_usage): Clarify which options are available for
6499         --create-testdir and --create-megatestdir.
6500
6501 2010-03-13  Bruno Haible  <bruno@clisp.org>
6502
6503         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6504         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6505         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6506         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6507         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6508         when appropriate.
6509         Reported by Jim Meyering.
6510
6511 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6512
6513         * gnulib-tool (func_import): Explain origin of code.
6514
6515 2010-03-12  Bruno Haible  <bruno@clisp.org>
6516
6517         Fix problem with automake's definition of CXXLINK.
6518         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6519         Reported by Simon Josefsson and Ludovic Courtès.
6520
6521 2010-03-12  Bruno Haible  <bruno@clisp.org>
6522
6523         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6524         stable releases.
6525
6526 2010-03-11  Bruno Haible  <bruno@clisp.org>
6527
6528         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6529         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6530         whether the system provides one variant or multiple variants of the
6531         function.
6532         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6533         C++ compilers.
6534         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6535         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6536         Reported by Jim Meyering.
6537
6538 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6539
6540         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6541
6542 2010-03-08  Bruno Haible  <bruno@clisp.org>
6543
6544         gnulib-tool: Add support for --libtool in --create-testdir.
6545         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6546         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6547
6548 2010-03-08  Eric Blake  <eblake@redhat.com>
6549
6550         gnulib-tool.texi: mention possibility of git submodule
6551         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6552         submodules.
6553         * doc/.gitignore: Ignore another generated file.
6554
6555 2010-03-08  Karl Berry  <karl@gnu.org>
6556
6557         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6558         of committing gnulib files while skipping others.
6559
6560 2010-03-07  Bruno Haible  <bruno@clisp.org>
6561
6562         Tests of module 'wctype' in C++ mode.
6563         * tests/test-wctype-c++.cc: New file.
6564         * modules/wctype-tests (Files): Add it and tests/signature.h.
6565         (Depends-on): Add ansi-c++-opt.
6566         (Makefile.am): Arrange to compile and run test-wctype-c++.
6567
6568         Tests of module 'wchar' in C++ mode.
6569         * tests/test-wchar-c++.cc: New file.
6570         * modules/wchar-tests (Files): Add it and tests/signature.h.
6571         (Depends-on): Add ansi-c++-opt.
6572         (Makefile.am): Arrange to compile and run test-wchar-c++.
6573         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6574         gl_MODULE_INDICATOR.
6575
6576         Tests of module 'unistd' in C++ mode.
6577         * tests/test-unistd-c++.cc: New file.
6578         * modules/unistd-tests (Files): Add it and tests/signature.h.
6579         (Depends-on): Add ansi-c++-opt.
6580         (Makefile.am): Arrange to compile and run test-unistd-c++.
6581         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6582         gl_MODULE_INDICATOR.
6583
6584         Tests of module 'time' in C++ mode.
6585         * tests/test-time-c++.cc: New file.
6586         * modules/time-tests (Files): Add it and tests/signature.h.
6587         (Depends-on): Add ansi-c++-opt.
6588         (Makefile.am): Arrange to compile and run test-time-c++.
6589         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6590
6591         Tests of module 'sys_time' in C++ mode.
6592         * tests/test-sys_time-c++.cc: New file.
6593         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6594         (Depends-on): Add ansi-c++-opt.
6595         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6596         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6597         gl_MODULE_INDICATOR.
6598
6599         Tests of module 'sys_stat' in C++ mode.
6600         * tests/test-sys_stat-c++.cc: New file.
6601         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6602         (Depends-on): Add ansi-c++-opt.
6603         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6604         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6605         gl_MODULE_INDICATOR.
6606
6607         Tests of module 'sys_socket' in C++ mode.
6608         * tests/test-sys_socket-c++.cc: New file.
6609         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6610         (Depends-on): Add ansi-c++-opt.
6611         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6612         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6613         gl_MODULE_INDICATOR.
6614
6615         Tests of module 'sys_select' in C++ mode.
6616         * tests/test-sys_select-c++.cc: New file.
6617         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6618         (Depends-on): Add ansi-c++-opt.
6619         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6620         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6621         gl_MODULE_INDICATOR.
6622
6623         Tests of module 'sys_ioctl' in C++ mode.
6624         * tests/test-sys_ioctl-c++.cc: New file.
6625         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6626         (Depends-on): Add ansi-c++-opt.
6627         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6628         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6629         gl_MODULE_INDICATOR.
6630
6631         Tests of module 'string' in C++ mode.
6632         * tests/test-string-c++.cc: New file.
6633         * modules/string-tests (Files): Add it and tests/signature.h.
6634         (Depends-on): Add ansi-c++-opt.
6635         (Makefile.am): Arrange to compile and run test-string-c++.
6636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6637         gl_MODULE_INDICATOR.
6638
6639         Tests of module 'stdlib' in C++ mode.
6640         * tests/test-stdlib-c++.cc: New file.
6641         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6642         (Depends-on): Add ansi-c++-opt.
6643         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6644         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6645         gl_MODULE_INDICATOR.
6646
6647         Tests of module 'stdio' in C++ mode.
6648         * tests/test-stdio-c++.cc: New file.
6649         * modules/stdio-tests (Files): Add it and tests/signature.h.
6650         (Depends-on): Add ansi-c++-opt.
6651         (Makefile.am): Arrange to compile and run test-stdio-c++.
6652         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6653         gl_MODULE_INDICATOR.
6654
6655         Tests of module 'spawn' in C++ mode.
6656         * tests/test-spawn-c++.cc: New file.
6657         * modules/spawn-tests (Files): Add it and tests/signature.h.
6658         (Depends-on): Add ansi-c++-opt.
6659         (Makefile.am): Arrange to compile and run test-spawn-c++.
6660         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6661         gl_MODULE_INDICATOR.
6662
6663         Tests of module 'signal' in C++ mode.
6664         * tests/test-signal-c++.cc: New file.
6665         * modules/signal-tests (Files): Add it and tests/signature.h.
6666         (Depends-on): Add ansi-c++-opt.
6667         (Makefile.am): Arrange to compile and run test-signal-c++.
6668         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6669         gl_MODULE_INDICATOR.
6670
6671         Tests of module 'search' in C++ mode.
6672         * tests/test-search-c++.cc: New file.
6673         * modules/search-tests (Files): Add it and tests/signature.h.
6674         (Depends-on): Add ansi-c++-opt.
6675         (Makefile.am): Arrange to compile and run test-search-c++.
6676         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6677         gl_MODULE_INDICATOR.
6678
6679         Tests of module 'math' in C++ mode.
6680         * tests/test-math-c++.cc: New file.
6681         * modules/math-tests (Files): Add it and tests/signature.h.
6682         (Depends-on): Add ansi-c++-opt.
6683         (Makefile.am): Arrange to compile and run test-math-c++.
6684         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6685
6686         Tests of module 'locale' in C++ mode.
6687         * tests/test-locale-c++.cc: New file.
6688         * modules/locale-tests (Files): Add it and tests/signature.h.
6689         (Depends-on): Add ansi-c++-opt.
6690         (Makefile.am): Arrange to compile and run test-locale-c++.
6691         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6692         gl_MODULE_INDICATOR.
6693
6694         Tests of module 'langinfo' in C++ mode.
6695         * tests/test-langinfo-c++.cc: New file.
6696         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6697         (Depends-on): Add ansi-c++-opt.
6698         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6699         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6700         gl_MODULE_INDICATOR.
6701
6702         Tests of module 'iconv-h' in C++ mode.
6703         * tests/test-iconv-h-c++.cc: New file.
6704         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6705         (Depends-on): Add ansi-c++-opt.
6706         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6707
6708         Tests of module 'glob' in C++ mode.
6709         * tests/test-glob-c++.cc: New file.
6710         * modules/glob-tests (Files): Add it.
6711         (Depends-on): Add ansi-c++-opt.
6712         (Makefile.am): Arrange to compile and run test-glob-c++.
6713
6714         Tests of module 'fcntl-h' in C++ mode.
6715         * tests/test-fcntl-h-c++.cc: New file.
6716         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6717         (Depends-on): Add ansi-c++-opt.
6718         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6719         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6720         gl_MODULE_INDICATOR.
6721
6722         Tests of module 'dirent' in C++ mode.
6723         * tests/test-dirent-c++.cc: New file.
6724         * modules/dirent-tests (Files): Add it and tests/signature.h.
6725         (Depends-on): Add ansi-c++-opt.
6726         (Makefile.am): Arrange to compile and run test-dirent-c++.
6727         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6728         gl_MODULE_INDICATOR.
6729
6730         New module 'ansi-c++-opt'.
6731         * modules/ansi-c++-opt: New file.
6732         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6733
6734         Document C++ namespace mode.
6735         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6736
6737         wctype: Avoid #define replacements in C++ mode.
6738         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6739         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6740         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6741         In C++, define a namespaced alias symbol.
6742         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6743         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6744         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6745         rule.
6746
6747         wchar: Avoid #define replacements in C++ mode.
6748         * lib/wchar.in.h: Include c++defs.h.
6749         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6750         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6751         symbol.
6752         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6753         * modules/wchar (Depends-on): Add c++defs.
6754         (Makefile.am): Update wchar.h rule.
6755
6756         unistd: Avoid #define replacements in C++ mode.
6757         * lib/unistd.in.h: Include c++defs.h.
6758         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6759         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6760         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6761         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6762         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6763         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6764         symbol.
6765         (environ): Update.
6766         * modules/unistd (Depends-on): Add c++defs.
6767         (Makefile.am): Update unistd.h rule.
6768
6769         time: Avoid #define replacements in C++ mode.
6770         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6771         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6772         define a namespaced alias symbol.
6773         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6774         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6775         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6776         * modules/time (Depends-on): Add c++defs, warn-on-use.
6777         (Makefile.am): Update time.h rule.
6778         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6779         * modules/nanosleep (configure.ac): Likewise.
6780         * modules/strptime (configure.ac): Likewise.
6781         * modules/timegm (configure.ac): Likewise.
6782
6783         sys_time: Avoid #define replacements in C++ mode.
6784         * lib/sys_time.in.h: Include c++defs.h.
6785         (gettimeofday): In C++, define a namespaced alias symbol.
6786         * modules/sys_time (Depends-on): Add c++defs.
6787         (Makefile.am): Update sys/time.h rule.
6788
6789         sys_stat: Avoid #define replacements in C++ mode.
6790         * lib/sys_stat.in.h: Include c++defs.h.
6791         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6792         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6793         namespaced alias symbol.
6794         In C++, define a namespaced alias symbol.
6795         * modules/sys_stat (Depends-on): Add c++defs.
6796         (Makefile.am): Update sys/stat.h rule.
6797
6798         sys_socket: Avoid #define replacements in C++ mode.
6799         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6800         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6801         definitions also when the system has a <sys/socket.h>.
6802         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6803         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6804         In C++, define a namespaced alias symbol.
6805         * modules/sys_socket (Depends-on): Add c++defs.
6806         (Makefile.am): Update sys/socket.h rule.
6807
6808         sys_select: Avoid #define replacements in C++ mode.
6809         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6810         definitions also when the system has a <sys/select.h>.
6811         (select): In C++, define a namespaced alias symbol.
6812         * modules/sys_select (Depends-on): Add c++defs.
6813         (Makefile.am): Update sys/select.h rule.
6814
6815         sys_ioctl: Avoid #define replacements in C++ mode.
6816         * lib/sys_ioctl.in.h: Include c++defs.h.
6817         (ioctl): In C++, define a namespaced alias symbol.
6818         * modules/sys_ioctl (Depends-on): Add c++defs.
6819         (Makefile.am): Update sys/ioctl.h rule.
6820
6821         string: Avoid #define replacements in C++ mode.
6822         * lib/string.in.h: Include c++defs.h.
6823         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6824         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6825         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6826         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6827         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6828         * modules/string (Depends-on): Add c++defs.
6829         (Makefile.am): Update string.h rule.
6830
6831         stdlib: Avoid #define replacements in C++ mode.
6832         * lib/stdlib.in.h: Include c++defs.h.
6833         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6834         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6835         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6836         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6837         symbol.
6838         * modules/stdlib (Depends-on): Add c++defs.
6839         (Makefile.am): Update stdlib.h rule.
6840
6841         stdio: Avoid #define replacements in C++ mode.
6842         * lib/stdio.in.h: Include c++defs.h.
6843         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6844         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6845         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6846         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6847         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6848         namespaced alias symbol.
6849         * modules/stdio (Depends-on): Add c++defs.
6850         (Makefile.am): Update stdio.h rule.
6851
6852         spawn: Avoid #define replacements in C++ mode.
6853         * lib/spawn.in.h: Include c++defs.h.
6854         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6855         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6856         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6857         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6858         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6859         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6860         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6861         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6862         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6863         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6864         In C++, define a namespaced alias symbol.
6865         * modules/spawn (Depends-on): Add c++defs.
6866         (Makefile.am): Update spawn.h rule.
6867
6868         signal: Avoid #define replacements in C++ mode.
6869         * lib/signal.in.h: Include c++defs.h.
6870         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6871         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6872         namespaced alias symbol.
6873         * modules/signal (Depends-on): Add c++defs.
6874         (Makefile.am): Update signal.h rule.
6875
6876         search: Avoid #define replacements in C++ mode.
6877         * lib/search.in.h: Include c++defs.h.
6878         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6879         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6880         symbol.
6881         * modules/search (Depends-on): Add c++defs.
6882         (Makefile.am): Update search.h rule.
6883
6884         math: Avoid #define replacements in C++ mode.
6885         * lib/math.in.h: Include c++defs.h.
6886         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6887         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6888         trunc, truncl): In C++, define a namespaced alias symbol.
6889         * modules/math (Depends-on): Add c++defs.
6890         (Makefile.am): Update math.h rule.
6891
6892         locale: Avoid #define replacements in C++ mode.
6893         * lib/locale.in.h: Include c++defs.h.
6894         (duplocale): In C++, define a namespaced alias symbol.
6895         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6896         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6897         * modules/locale (Depends-on): Add c++defs.
6898         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6899
6900         langinfo: Avoid #define replacements in C++ mode.
6901         * lib/langinfo.in.h: Include c++defs.h.
6902         (nl_langinfo): In C++, define a namespaced alias symbol.
6903         * modules/langinfo (Depends-on): Add c++defs.
6904         (Makefile.am): Update langinfo.h rule.
6905
6906         iconv-h: Avoid #define replacements in C++ mode.
6907         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6908         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6909         symbol.
6910         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6911         whenever iconv is present.
6912         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6913         (Makefile.am): Update iconv.h rule.
6914
6915         glob: Avoid #define replacements in C++ mode.
6916         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6917         (_gl_glob_errfunc_fn): New type.
6918         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6919         symbol.
6920         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6921         (Makefile.am): Update glob.h rule.
6922
6923         fcntl-h: Avoid #define replacements in C++ mode.
6924         * lib/fcntl.in.h: Include c++defs.h.
6925         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6926         * modules/fcntl-h (Depends-on): Add c++defs.
6927         (Makefile.am): Update fcntl.h rule.
6928
6929         dirent: Avoid #define replacements in C++ mode.
6930         * lib/dirent.in.h: Include c++defs.h.
6931         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6932         namespaced alias symbol.
6933         (dirfd): Update declaration.
6934         * modules/dirent (Depends-on): Add c++defs.
6935         (Makefile.am): Update dirent.h rule.
6936
6937         ctype: Make it usable in C++ code.
6938         * lib/ctype.in.h: Include c++defs.h.
6939         (isblank): Declare as extern "C".
6940         * modules/ctype (Depends-on): Add c++defs.
6941         (Makefile.am): Update ctype.h rule.
6942
6943         New module 'c++defs'.
6944         * modules/c++defs: New file.
6945         * build-aux/c++defs.h: New file.
6946         Reported by John W. Eaton <jwe@gnu.org>.
6947
6948 2010-03-07  Bruno Haible  <bruno@clisp.org>
6949
6950         logb: Provide missing declaration for Cygwin.
6951         * lib/math.in.h (logb): New declaration.
6952         * m4/logb.m4: New file.
6953         * modules/logb (Files): Add m4/logb.m4.
6954         (Depends-on): Add math.
6955         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6956         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6958         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6959         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6960
6961 2010-03-07  Bruno Haible  <bruno@clisp.org>
6962
6963         Fix test-cond link error.
6964         * tests/test-cond.c: Include <stdio.h>.
6965
6966 2010-03-07  Bruno Haible  <bruno@clisp.org>
6967
6968         Fix test-dirent-safer link error.
6969         * modules/dirent-safer-tests (Makefile.am): Define
6970         test_dirent_safer_LDADD.
6971
6972 2010-03-07  Bruno Haible  <bruno@clisp.org>
6973
6974         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6975         among default module list.
6976
6977 2010-03-07  Bruno Haible  <bruno@clisp.org>
6978
6979         Fix link error on platforms with GNU libiconv.
6980         * modules/unistr/u8-strcoll-tests (Makefile): Define
6981         test_u8_strcoll_LDADD.
6982         * modules/unistr/u16-strcoll-tests (Makefile): Define
6983         test_u16_strcoll_LDADD.
6984         * modules/unistr/u32-strcoll-tests (Makefile): Define
6985         test_u32_strcoll_LDADD.
6986
6987 2010-03-07  Bruno Haible  <bruno@clisp.org>
6988
6989         Use POSIX declarations for socket functions.
6990         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6991         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6992         rpl_sendto): Change declaration to match POSIX.
6993         * lib/connect.c (rpl_connect): Likewise.
6994         * lib/accept.c (rpl_accept): Likewise.
6995         * lib/bind.c (rpl_bind): Likewise.
6996         * lib/getpeername.c (rpl_getpeername): Likewise.
6997         * lib/getsockname.c (rpl_getsockname): Likewise.
6998         * lib/recv.c (rpl_recv): Likewise.
6999         * lib/send.c (rpl_send): Likewise.
7000         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7001         * lib/sendto.c (rpl_sendto): Likewise.
7002
7003 2010-03-06  Bruno Haible  <bruno@clisp.org>
7004
7005         Clarify access, euidaccess, faccessat.
7006         * doc/posix-functions/faccessat.texi: Mention security problem under
7007         "Other problems", not "Portability problems".
7008         * doc/posix-functions/access.texi: Likewise. Mention a related security
7009         problem.
7010         * doc/glibc-functions/euidaccess.texi: Mention security problems.
7011         * lib/euidaccess.c: Add comments about platforms.
7012         * lib/unistd.in.h (access, euidaccess): Add warnings.
7013
7014 2010-03-07  Bruno Haible  <bruno@clisp.org>
7015
7016         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
7017         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
7018         (POSIX_SPAWN_SETSCHEDULER): Likewise.
7019         (POSIX_SPAWN_USEVFORK): Define in a way that works when
7020         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7021         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
7022         declare when POSIX_SPAWN_SETSCHEDULER is zero.
7023         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
7024         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
7025         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
7026         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
7027         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
7028         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
7029         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
7030         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
7031         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
7032         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
7033         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
7034         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
7035         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
7036         Likewise.
7037         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
7038         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
7039         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
7040         Likewise.
7041         * tests/test-spawn.c (main): Make it work when
7042         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7043
7044 2010-03-07  Bruno Haible  <bruno@clisp.org>
7045
7046         Fix incorrect Makefile.am generation in German locale.
7047         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7048         Execute sed command with character range in C locale.
7049
7050 2010-03-06  Bruno Haible  <bruno@clisp.org>
7051
7052         Tests for module 'iconv-h'.
7053         * modules/iconv-h-tests: New file.
7054         * tests/test-iconv-h.c: New file.
7055
7056         New module 'iconv-h'.
7057         * modules/iconv-h: New file.
7058         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
7059         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
7060         (configure.ac): Remove gl_ICONV_H.
7061         (Makefile.am): Remove rule for iconv.h.
7062
7063 2010-03-06  Bruno Haible  <bruno@clisp.org>
7064
7065         More consistent naming of *.m4 files.
7066         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
7067         * modules/wctype (Files): Update.
7068
7069         More consistent naming of *.m4 files.
7070         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
7071         * modules/wchar (Files): Update.
7072
7073 2010-03-06  Jim Meyering  <meyering@redhat.com>
7074
7075         euidaccess: relax license to LGPLv2+
7076         * modules/euidaccess (License): Relax to LGPLv2+.
7077
7078 2010-03-06  Bruno Haible  <bruno@clisp.org>
7079
7080         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
7081         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
7082         (Makefile.am): Augment lib_SOURCES instead.
7083
7084 2010-03-04  Jim Meyering  <meyering@redhat.com>
7085
7086         utime: remove obsolete module
7087         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
7088         unnecessary for years, and has been marked as obsolete for 10 months.
7089         * modules/utime: Remove file.
7090         * lib/utime.c: Remove file.
7091         * m4/utime.m4: Remove file.
7092         * m4/utimes-null.m4: Remove file.
7093         * doc/posix-functions/utime.texi (utime): Remove reference to
7094         the module.  Move the sole "fixed by gnulib" item into the
7095         "problems not fixed by Gnulib" list.
7096         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
7097
7098 2010-03-05  Simon Josefsson  <simon@josefsson.org>
7099
7100         * modules/exit (License): Relax license to LGPLv2+.
7101         (Status): Mark as obsolete.
7102         * NEWS: Mention deprecated 'exit' module.
7103         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
7104         of now obsolete 'exit'.
7105
7106 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7107
7108         fts-lgpl: remove unused module
7109         * modules/fts-lgpl: Remove.
7110         * MODULES.html.sh (func_all_modules): Adjust.
7111         * check-module (find_included_lib_files): Adjust.
7112         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
7113
7114 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
7115
7116         copy-acl: enhance Solaris ACL error handling
7117         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
7118         * lib/set-mode-acl.c (qset_acl): Likewise.
7119
7120 2010-03-02  Bruno Haible  <bruno@clisp.org>
7121
7122         spawn: Don't override the system defined values on FreeBSD 8.
7123         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
7124         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
7125         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
7126         if HAVE_POSIX_SPAWN is 1.
7127         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
7128
7129 2010-03-01  Bruno Haible  <bruno@clisp.org>
7130
7131         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
7132         regarding Automake.
7133
7134 2010-02-25  Bruno Haible  <bruno@clisp.org>
7135
7136         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
7137         * gnulib-tool: Define 'echo' as a function only before the ksh alias
7138         setting, not afterwards.
7139         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7140
7141 2010-02-24  Eric Blake  <eblake@redhat.com>
7142
7143         bootstrap, git-version-gen: use timestamp
7144         * build-aux/git-version-gen (scriptversion): Force UTC.
7145         * build-aux/bootstrap (scriptversion): New variable.
7146
7147         bootstrap: allow older git
7148         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
7149         older than 1.6.4.  Requested by the libvirt project.
7150
7151 2010-02-23  Eric Blake  <eblake@redhat.com>
7152
7153         warn-on-use: work with old autoconf
7154         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7155         AS_VAR semantics of autoconf 2.60.
7156         Reported by Bruno Haible.
7157
7158         bootstrap: improve some comments
7159         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7160         clarification comments.
7161
7162         gettimeofday: provide correct function
7163         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7164         when replacement is declared, otherwise provide gettimeofday.
7165         Reported by Michael Goffioul.
7166
7167 2010-02-23  Jim Meyering  <meyering@redhat.com>
7168
7169         lib-ignore: relax license to "unlimited", not LGPLv2+
7170         * modules/lib-ignore (License): Relax to "unlimited".
7171
7172 2010-02-23  Jim Meyering  <meyering@redhat.com>
7173
7174         lib-ignore: relax license to LGPLv2+
7175         * modules/lib-ignore (License): Relax to LGPLv2+.
7176
7177 2010-02-22  Eric Blake  <eblake@redhat.com>
7178
7179         lseek: avoid bash 3.2 broken pipe bug
7180         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7181         warning from bash 3.2.
7182         Reported by Ben Pfaff, with analysis from Bruno Haible.
7183
7184         bootstrap: support non-FSF copyright holder
7185         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7186         bootstrap.conf override of COPYRIGHT_HOLDER.
7187         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7188
7189         bootstrap: interoperate with gettext 0.14.1
7190         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7191
7192         bootstrap: allow for alternate submodule location
7193         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7194         hardcoding submodule location.
7195         (gnulib_mk): Allow direct use of Makefile.am.
7196
7197         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7198         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7199         rather than reconfiguring where the submodule points.
7200
7201         gettimeofday: restore support for platforms that lack function
7202         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7203         replacement if function is missing.
7204         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7205         * modules/sys_time (Makefile.am): Substitute it.
7206         * lib/sys_time.in.h (gettimeofday): Check it.
7207         Reported by Michael Goffioul.
7208
7209 2010-02-21  Bruno Haible  <bruno@clisp.org>
7210
7211         * lib/stdio.in.h (obstack_printf): Fix typo.
7212
7213 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7214
7215         vc-list-files: use bzr ls's -R option
7216         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7217         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7218
7219 2010-02-21  Jim Meyering  <meyering@redhat.com>
7220
7221         init.sh: fix EXEEXT shims to work also for names like test-prog
7222         * tests/init.sh: Re-exec a better shell, when needed.
7223         If the current shell lacks support for posix $(...), an init.sh-using
7224         test will now try to find a shell that supports that.  If EXEEXT is
7225         nonempty, we also require support for hyphen-in-alias-name and shell
7226         substitutions like ${var#glob}.  Failure to find such a shell results
7227         in a skipped test.
7228
7229 2010-02-21  Bruno Haible  <bruno@clisp.org>
7230
7231         Really work around around "broken pipe" error message from bash 3.2.
7232         * gnulib-tool (func_reset_sigpipe): Remove function.
7233         (echo): In bash 3.2, define to a function that uses printf.
7234         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7235
7236 2010-02-20  Bruno Haible  <bruno@clisp.org>
7237
7238         Restore support for automake 1.9.6 with autoconf 2.61.
7239         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7240         Reported by James Youngman <jay@gnu.org>.
7241
7242 2010-02-20  Bruno Haible  <bruno@clisp.org>
7243
7244         Improve *printf warning condition.
7245         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7246         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7247         and the function is overridden due to SIGPIPE emulation.
7248
7249 2010-02-20  Bruno Haible  <bruno@clisp.org>
7250
7251         * lib/stdio.in.h: Tweak comments.
7252
7253 2010-02-19  Bruno Haible  <bruno@clisp.org>
7254
7255         Make it easier to find modules. New gnulib-tool option '--find'.
7256         * gnulib-tool: New option --find.
7257         (func_usage): Document it.
7258         (func_sanitize_modulelist): New function, extracted from
7259         func_all_modules.
7260         (func_all_modules): Invoke it.
7261         * doc/gnulib-tool.texi (Which modules?): New node.
7262
7263 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7264
7265         * lib/sys_select.in.h: Provide select replacement even if
7266         sys/select.h exists on a system, for Interix.
7267
7268 2010-02-18  Jim Meyering  <meyering@redhat.com>
7269
7270         init.sh: don't use $(...) just yet
7271         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7272         to accommodate e.g., Solaris' /bin/sh.
7273
7274 2010-02-17  Bruno Haible  <bruno@clisp.org>
7275
7276         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7277         Reported by Ludovic Courtès <ludo@gnu.org>.
7278
7279 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7280
7281         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7282         linking with -lintl.
7283
7284 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7285
7286         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7287         if not provided by the system's netdb.h.  Reported by
7288         ludo@gnu.org (Ludovic Courtès).
7289
7290 2010-02-15  Jim Meyering  <meyering@redhat.com>
7291
7292         init.sh: improve portability and efficiency
7293         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7294         "dummy" in a for loop.
7295         Use '!', not '^' to select the complement of a character set used
7296         in a "case" statement.
7297         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7298         Suggestions from Eric Blake.
7299
7300         init.sh: automatically accommodate programs with the .exe suffix
7301         Automatically arrange for an invocation of "prog" to execute the
7302         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7303         may use the simpler "prog", yet still work when built on a system
7304         that requires specifying the added suffix.
7305         Do this by constructing a function named "prog" that invokes
7306         "prog.exe" for each .exe file in selected directories.
7307         * tests/init.sh (find_exe_basenames_): New function.
7308         (create_exe_shim_functions_): New function.
7309         (path_prepend_): Use it.
7310
7311         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7312         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7313         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7314
7315 2010-02-14  Jim Meyering  <meyering@redhat.com>
7316
7317         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7318         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7319         (sc_prohibit_hash_pjw_without_use): New rule.
7320
7321         maint.mk: allow the default upload destination dir to be overridden
7322         * top/maint.mk (upload_dest_dir_): Define with a default that
7323         preserves the status quo.
7324         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7325         Reported by Peter Simons.
7326
7327         maint.mk: prohibit inclusion of "hash.h" without_use
7328         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7329
7330 2010-02-10  Jim Meyering  <meyering@redhat.com>
7331
7332         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7333         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7334
7335 2010-02-09  Eric Blake  <ebb9@byu.net>
7336         and Bruno Haible  <bruno@clisp.org>
7337
7338         obstack-printf-posix: ensure declaration
7339         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7340         extracted from gl_FUNC_OBSTACK_PRINTF.
7341         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7342         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7343         Likewise.
7344         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7345         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7346         0.
7347
7348 2010-02-08  Bruno Haible  <bruno@clisp.org>
7349
7350         gnulib-tool: Fix typo in 2010-02-07 commit.
7351         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7352         Reported by Eric Blake.
7353
7354 2010-02-07  Bruno Haible  <bruno@clisp.org>
7355
7356         gnulib-tool: Fix up caching patches.
7357         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7358         option --no-cache. Use associative arrays when supported by the shell.
7359         (sed_comments): New variable.
7360         (modcache): Renamed from do_cache.
7361         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7362         abbreviate unnecessarily.
7363         (have_associative): New variable.
7364         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7365         way also for ksh and zsh.
7366         (func_init_sed_convert_to_cache_statements): New function, extracted
7367         from func_cache_lookup_module. Add support for associative arrays.
7368         Don't set the c_MODULE_cached variable here. Ignore all lines before
7369         the first field header. Remove only the final newline, not all trailing
7370         newlines. Support empty fields correctly. Limit the use of 'eval' to
7371         assignments.
7372         (func_get_description, func_get_status, func_get_notice,
7373         func_get_applicability, func_get_filelist, func_get_dependencies,
7374         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7375         func_get_automake_snippet, func_get_include_directive,
7376         func_get_link_directive, func_get_license, func_get_maintainer):
7377         Update documentation. List the unoptimized code first. Add support for
7378         associative arrays. Limit the use of 'eval' to assignments.
7379         (func_get_applicability): Undo stylistic pessimisations.
7380         (func_get_automake_snippet, func_get_include_directive): Reduce code
7381         duplication.
7382         (func_modules_transitive_closure, func_modules_add_dummy,
7383         func_modules_notice, func_modules_to_filelist, func_add_file,
7384         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7385         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7386         func_create_testdir, func_create_megatestdir): Update documentation.
7387
7388 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7389
7390         * gnulib-tool (func_cache_lookup_module): Store the module name
7391         belonging to the cache variable; error out if two different
7392         module names map to the same cache variable name.
7393
7394 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7395
7396         gnulib-tool: Make caching optional.
7397         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7398         Update matching short versions of --no-changelog.
7399         (func_usage): Update.
7400         (sed_extract_cache_prog): Renamed from ...
7401         (sed_extract_prog): ... this; revert to old extraction script.
7402         (func_get_description, func_get_status)
7403         (func_get_notice, func_get_applicability, func_get_filelist)
7404         (func_get_dependencies, func_get_autoconf_early_snippet)
7405         (func_get_autoconf_snippet, func_get_automake_snippet)
7406         (func_get_include_directive, func_get_link_directive)
7407         (func_get_license, func_get_maintainer): If $do_cache is false,
7408         use old, non-caching extraction scripts.
7409         Suggestion by Bruno Haible.
7410
7411 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7412
7413         gnulib-tool: cache module metainformation.
7414         * gnulib-tool (sed_extract_prog): Match newline before each
7415         header, and rewrite header to a shell variable suffix.
7416         (func_cache_var, func_cache_lookup_module): New functions,
7417         to turn a module name into a cache variable prefix, and to
7418         look up and cache module metainformation.
7419         (func_get_description, func_get_status)
7420         (func_get_notice, func_get_applicability, func_get_filelist)
7421         (func_get_dependencies, func_get_autoconf_early_snippet)
7422         (func_get_autoconf_snippet, func_get_automake_snippet)
7423         (func_get_include_directive, func_get_link_directive)
7424         (func_get_license, func_get_maintainer): Use
7425         func_cache_lookup_module.
7426
7427 2010-02-07  Bruno Haible  <bruno@clisp.org>
7428
7429         fnctl: Fix missing dependency.
7430         * modules/fcntl (Depends-on): Add getdtablesize.
7431         Reported by John W. Eaton <jwe@gnu.org>.
7432
7433 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7434
7435         Argp: fix recognition of short alias options.
7436
7437         * lib/argp-parse.c (convert_options): Fix improper use of
7438         `|' between character values.
7439         * tests/test-argp.c (group1_option): New alias option
7440         --read (-r).
7441         (group1_parser): Special handling for 'r'.
7442         (test15): New test case.
7443         (test_fun): Add test15.
7444         * tests/test-argp-2.sh: Update expected --help and --usage
7445         outputs.
7446
7447 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7448
7449         * tests/test-argp.c: Fix indentation.
7450
7451 2010-02-04  Eric Blake  <ebb9@byu.net>
7452
7453         gettimeofday: expose type of second argument
7454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7455         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7456         * tests/test-gettimeofday.c: Use it to silence warning.
7457         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7458         the issue.
7459
7460 2010-02-03  Jim Meyering  <meyering@redhat.com>
7461
7462         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7463         * lib/regcomp.c (TYPE_SIGNED): Define.
7464         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7465
7466         regcomp.c: avoid a new -Wshadow warning
7467         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7468
7469 2010-02-01  Jim Meyering  <meyering@redhat.com>
7470
7471         removing useless parentheses in cpp #define directives
7472         For motivation, see commit c0221df4, "define STREQ(a,b)
7473         consistently, removing useless parentheses"
7474         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7475         * lib/mountlist.c (MNT_IGNORE): Likewise.
7476         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7477
7478 2010-02-01  Eric Blake  <ebb9@byu.net>
7479
7480         sys_time: use link-warning
7481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7482         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7483         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7484         * modules/sys_time (Depends-on): Add warn-on-use.
7485         (Makefile.am): Always build replacement.
7486         (configure.ac): Update substitutions.
7487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7488         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7489         bother with SYS_TIME_H.
7490         * modules/gettimeofday (configure.ac): Declare indicator.
7491         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7492         in use.
7493
7494         closein-tests: silence compiler warning
7495         * tests/test-closein.c (main): Ignore fread result.
7496         * modules/closein-tests (Depends-on): Add ignore-value.
7497
7498         tests: silence warning about system return
7499         * tests/test-areadlink-with-size.c (main): Ignore system result.
7500         * tests/test-areadlink.c (main): Likewise.
7501         * tests/test-areadlinkat-with-size.c (main): Likewise.
7502         * tests/test-areadlinkat.c (main): Likewise.
7503         * tests/test-canonicalize-lgpl.c (main): Likewise.
7504         * tests/test-canonicalize.c (main): Likewise.
7505         * tests/test-chown.c (main): Likewise.
7506         * tests/test-fchownat.c (main): Likewise.
7507         * tests/test-fdutimensat.c (main): Likewise.
7508         * tests/test-fstatat.c (main): Likewise.
7509         * tests/test-futimens.c (main): Likewise.
7510         * tests/test-lchown.c (main): Likewise.
7511         * tests/test-link.c (main): Likewise.
7512         * tests/test-linkat.c (main): Likewise.
7513         * tests/test-lstat.c (main): Likewise.
7514         * tests/test-mkdir.c (main): Likewise.
7515         * tests/test-mkdirat.c (main): Likewise.
7516         * tests/test-mkfifo.c (main): Likewise.
7517         * tests/test-mkfifoat.c (main): Likewise.
7518         * tests/test-mknod.c (main): Likewise.
7519         * tests/test-readlink.c (main): Likewise.
7520         * tests/test-remove.c (main): Likewise.
7521         * tests/test-rename.c (main): Likewise.
7522         * tests/test-renameat.c (main): Likewise.
7523         * tests/test-rmdir.c (main): Likewise.
7524         * tests/test-symlink.c (main): Likewise.
7525         * tests/test-symlinkat.c (main): Likewise.
7526         * tests/test-unlink.c (main): Likewise.
7527         * tests/test-unlinkat.c (main): Likewise.
7528         * tests/test-utimens.c (main): Likewise.
7529         * tests/test-utimensat.c (main): Likewise.
7530         * modules/areadlink-tests (Depends-on): Add ignore-value.
7531         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7532         * modules/areadlinkat-tests (Depends-on): Likewise.
7533         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7534         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7535         * modules/canonicalize-tests (Depends-on): Likewise.
7536         * modules/chown-tests (Depends-on): Likewise.
7537         * modules/fdutimensat-tests (Depends-on): Likewise.
7538         * modules/futimens-tests (Depends-on): Likewise.
7539         * modules/lchown-tests (Depends-on): Likewise.
7540         * modules/link-tests (Depends-on): Likewise.
7541         * modules/linkat-tests (Depends-on): Likewise.
7542         * modules/lstat-tests (Depends-on): Likewise.
7543         * modules/mkdir-tests (Depends-on): Likewise.
7544         * modules/mkfifo-tests (Depends-on): Likewise.
7545         * modules/mkfifoat-tests (Depends-on): Likewise.
7546         * modules/mknod-tests (Depends-on): Likewise.
7547         * modules/openat-tests (Depends-on): Likewise.
7548         * modules/readlink-tests (Depends-on): Likewise.
7549         * modules/remove-tests (Depends-on): Likewise.
7550         * modules/rename-tests (Depends-on): Likewise.
7551         * modules/renameat-tests (Depends-on): Likewise.
7552         * modules/rmdir-tests (Depends-on): Likewise.
7553         * modules/symlink-tests (Depends-on): Likewise.
7554         * modules/symlinkat-tests (Depends-on): Likewise.
7555         * modules/unlink-tests (Depends-on): Likewise.
7556         * modules/utimens-tests (Depends-on): Likewise.
7557         * modules/utimensat-tests (Depends-on): Likewise.
7558
7559 2010-01-31  Bruno Haible  <bruno@clisp.org>
7560
7561         Perform the same test for many <math.h> functions.
7562         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7563         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7564         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7565         of gl_MATHFUNC.
7566         * modules/acos (configure.ac): Likewise.
7567         * modules/asin (configure.ac): Likewise.
7568         * modules/atan (configure.ac): Likewise.
7569         * modules/atan2 (configure.ac): Likewise.
7570         * modules/cbrt (configure.ac): Likewise.
7571         * modules/copysign (configure.ac): Likewise.
7572         * modules/cos (configure.ac): Likewise.
7573         * modules/cosh (configure.ac): Likewise.
7574         * modules/erf (configure.ac): Likewise.
7575         * modules/erfc (configure.ac): Likewise.
7576         * modules/exp (configure.ac): Likewise.
7577         * modules/fmod (configure.ac): Likewise.
7578         * modules/hypot (configure.ac): Likewise.
7579         * modules/j0 (configure.ac): Likewise.
7580         * modules/j1 (configure.ac): Likewise.
7581         * modules/jn (configure.ac): Likewise.
7582         * modules/lgamma (configure.ac): Likewise.
7583         * modules/log (configure.ac): Likewise.
7584         * modules/log10 (configure.ac): Likewise.
7585         * modules/log1p (configure.ac): Likewise.
7586         * modules/pow (configure.ac): Likewise.
7587         * modules/remainder (configure.ac): Likewise.
7588         * modules/sin (configure.ac): Likewise.
7589         * modules/sinh (configure.ac): Likewise.
7590         * modules/tan (configure.ac): Likewise.
7591         * modules/tanh (configure.ac): Likewise.
7592         * modules/y0 (configure.ac): Likewise.
7593         * modules/y1 (configure.ac): Likewise.
7594         * modules/yn (configure.ac): Likewise.
7595         Suggested by Paolo Bonzini.
7596
7597 2010-01-31  Bruno Haible  <bruno@clisp.org>
7598
7599         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7600
7601 2010-01-31  Bruno Haible  <bruno@clisp.org>
7602
7603         Work around getdelim() bug on FreeBSD 8.0.
7604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7605         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7606         not work.
7607         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7608         is 1.
7609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7610         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7611         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7612         a non-zero size.
7613         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7614
7615 2010-01-31  Bruno Haible  <bruno@clisp.org>
7616
7617         Work around getline() bug on FreeBSD 8.0.
7618         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7619         and a non-zero size.
7620         * tests/test-getline.c (main): Likewise.
7621         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7622         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7623
7624 2010-01-28  Eric Blake  <ebb9@byu.net>
7625
7626         regex: fix build failure
7627         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7628         platforms.
7629
7630 2010-01-28  Jim Meyering  <meyering@redhat.com>
7631
7632         regex: do not ignore memory allocation failure
7633         * lib/regex_internal.c (create_cd_newstate): Detect
7634         re_node_set_init_copy failure.   Extracted from glibc commit
7635         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7636
7637         regex: sync more white-space changes from libc
7638         * lib/regex_internal.c: White-space only changes.
7639         * lib/regexec.c: Likewise.
7640
7641         regex: add many uses of __attribute_warn_unused_result__
7642         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7643         * lib/regexec.c: Likewise.
7644         Extracted from a messy glibc commit.
7645
7646         regcomp.c: spelling and merge-artifact from glibc
7647         * lib/regcomp.c: Merge remainder of glibc's
7648         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7649
7650         regcomp.c: sync white-space changes from glibc
7651         * lib/regcomp.c: Merge to accommodate white space
7652         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7653
7654         regcomp.c: do not ignore internal return values
7655         * lib/regcomp.c: Do not ignore internal return values.
7656         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7657         but without its white-space changes and spelling fixes.
7658
7659         regex_internal.h: define __attribute_warn_unused_result__
7660         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7661
7662         maint: add a syntax-check rule to check for vulnerable Makefile.in
7663         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7664
7665 2010-01-27  Jim Meyering  <meyering@redhat.com>
7666
7667         ncftpput-ftp: clean up spaces
7668         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7669         Remove trailing blanks.
7670
7671 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7672
7673         * build-aux/git-version-gen: Fix copyright statement.
7674         * build-aux/gnupload: Likewise.
7675         * tests/test-arcfour.c: Likewise.
7676         * tests/test-arctwo.c: Likewise.
7677         * tests/test-count-one-bits.c: Likewise.
7678         * tests/test-crc.c: Likewise.
7679         * tests/test-des.c: Likewise.
7680         * tests/test-gc-arcfour.c: Likewise.
7681         * tests/test-gc-arctwo.c: Likewise.
7682         * tests/test-gc-des.c: Likewise.
7683         * tests/test-gc-hmac-md5.c: Likewise.
7684         * tests/test-gc-hmac-sha1.c: Likewise.
7685         * tests/test-gc-md2.c: Likewise.
7686         * tests/test-gc-md4.c: Likewise.
7687         * tests/test-gc-md5.c: Likewise.
7688         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7689         * tests/test-gc-rijndael.c: Likewise.
7690         * tests/test-gc-sha1.c: Likewise.
7691         * tests/test-gc.c: Likewise.
7692         * tests/test-gethostname.c: Likewise.
7693         * tests/test-gettimeofday.c: Likewise.
7694         * tests/test-hash.c: Likewise.
7695         * tests/test-hmac-md5.c: Likewise.
7696         * tests/test-hmac-sha1.c: Likewise.
7697         * tests/test-md2.c: Likewise.
7698         * tests/test-md4.c: Likewise.
7699         * tests/test-md5.c: Likewise.
7700         * tests/test-memchr.c: Likewise.
7701         * tests/test-memchr2.c: Likewise.
7702         * tests/test-memcmp.c: Likewise.
7703         * tests/test-memmem.c: Likewise.
7704         * tests/test-memrchr.c: Likewise.
7705         * tests/test-rawmemchr.c: Likewise.
7706         * tests/test-read-file.c: Likewise.
7707         * tests/test-rijndael.c: Likewise.
7708         * tests/test-sockets.c: Likewise.
7709         * tests/test-strchrnul.c: Likewise.
7710         * tests/test-strstr.c: Likewise.
7711         * tests/test-strtod.c: Likewise.
7712         * build-aux/ncftpput-ftp: Likewise.
7713
7714 2010-01-26  Eric Blake  <ebb9@byu.net>
7715
7716         ignore-value: update recommended header name
7717         * modules/ignore-value (Include): Only use <> for headers that
7718         exist in glibc.
7719
7720 2010-01-26  Jim Meyering  <meyering@redhat.com>
7721
7722         test-userspec.c: avoid compiler warnings
7723         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7724         and "initialization discards qualifiers..." warnings.
7725         Put the first "uid" in its own scope, and make char* members "const".
7726
7727 2010-01-25  Bruno Haible  <bruno@clisp.org>
7728
7729         gnulib-tool: Make warning diagnostics consistent.
7730         * gnulib-tool (func_warning): New function.
7731         Use it everywhere where gnulib-tool produces output to stderr and it is
7732         not a fatal error.
7733
7734 2010-01-25  Bruno Haible  <bruno@clisp.org>
7735
7736         Fix test dependencies.
7737         * modules/xstrtol-tests (Depends-on): Add inttypes.
7738         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7739
7740 2010-01-25 Pádraig Brady <P@draigBrady.com>
7741
7742         syntax-check: detect incorrect boolean macro values in config.h
7743         * modules/maintainer-makefile (configure.ac): Parameterize the location
7744         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7745         The logic is from Eric Blake and the location indicated by Jim Meyering.
7746         Note the more natural CONFIG_HEADER name is prohibited by automake
7747         for backwards compatibility reasons.
7748         * top/maint.mk (sc_Wundef_boolean): New rule.
7749
7750 2010-01-25  Jim Meyering  <meyering@redhat.com>
7751
7752         bootstrap: detect MacOS 10.6's shasum, too
7753         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7754         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7755
7756 2010-01-23  Jim Meyering  <meyering@redhat.com>
7757
7758         xstrtoll: new module
7759         * modules/xstrtoll: New file.
7760         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7761         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7762         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7763         ./configure fails if you use this module and lack "long long".
7764         * modules/xstrtoll-tests: New module.
7765         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7766         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7767         new init.sh-based test framework.
7768
7769 2010-01-24  Bruno Haible  <bruno@clisp.org>
7770
7771         Tests for module 'yn'.
7772         * modules/yn-tests: New file.
7773         * tests/test-yn.c: New file.
7774
7775         Tests for module 'y1'.
7776         * modules/y1-tests: New file.
7777         * tests/test-y1.c: New file.
7778
7779         Tests for module 'y0'.
7780         * modules/y0-tests: New file.
7781         * tests/test-y0.c: New file.
7782
7783         Tests for module 'tanh'.
7784         * modules/tanh-tests: New file.
7785         * tests/test-tanh.c: New file.
7786
7787         Tests for module 'tan'.
7788         * modules/tan-tests: New file.
7789         * tests/test-tan.c: New file.
7790
7791         Tests for module 'sqrt'.
7792         * modules/sqrt-tests: New file.
7793         * tests/test-sqrt.c: New file.
7794
7795         Tests for module 'sinh'.
7796         * modules/sinh-tests: New file.
7797         * tests/test-sinh.c: New file.
7798
7799         Tests for module 'sin'.
7800         * modules/sin-tests: New file.
7801         * tests/test-sin.c: New file.
7802
7803         Tests for module 'rint'.
7804         * modules/rint-tests: New file.
7805         * tests/test-rint.c: New file.
7806
7807         Tests for module 'remainder'.
7808         * modules/remainder-tests: New file.
7809         * tests/test-remainder.c: New file.
7810
7811         Tests for module 'pow'.
7812         * modules/pow-tests: New file.
7813         * tests/test-pow.c: New file.
7814
7815         Tests for module 'nextafter'.
7816         * modules/nextafter-tests: New file.
7817         * tests/test-nextafter.c: New file.
7818
7819         Tests for module 'modf'.
7820         * modules/modf-tests: New file.
7821         * tests/test-modf.c: New file.
7822
7823         Tests for module 'logb'.
7824         * modules/logb-tests: New file.
7825         * tests/test-logb.c: New file.
7826
7827         Tests for module 'log1p'.
7828         * modules/log1p-tests: New file.
7829         * tests/test-log1p.c: New file.
7830
7831         Tests for module 'log10'.
7832         * modules/log10-tests: New file.
7833         * tests/test-log10.c: New file.
7834
7835         Tests for module 'log'.
7836         * modules/log-tests: New file.
7837         * tests/test-log.c: New file.
7838
7839         Tests for module 'lgamma'.
7840         * modules/lgamma-tests: New file.
7841         * tests/test-lgamma.c: New file.
7842
7843         Tests for module 'ldexp'.
7844         * modules/ldexp-tests: New file.
7845         * tests/test-ldexp.c: New file.
7846
7847         Tests for module 'jn'.
7848         * modules/jn-tests: New file.
7849         * tests/test-jn.c: New file.
7850
7851         Tests for module 'j1'.
7852         * modules/j1-tests: New file.
7853         * tests/test-j1.c: New file.
7854
7855         Tests for module 'j0'.
7856         * modules/j0-tests: New file.
7857         * tests/test-j0.c: New file.
7858
7859         Tests for module 'hypot'.
7860         * modules/hypot-tests: New file.
7861         * tests/test-hypot.c: New file.
7862
7863         Tests for module 'fmod'.
7864         * modules/fmod-tests: New file.
7865         * tests/test-fmod.c: New file.
7866
7867         Tests for module 'fabs'.
7868         * modules/fabs-tests: New file.
7869         * tests/test-fabs.c: New file.
7870
7871         Tests for module 'exp'.
7872         * modules/exp-tests: New file.
7873         * tests/test-exp.c: New file.
7874
7875         Tests for module 'erfc'.
7876         * modules/erfc-tests: New file.
7877         * tests/test-erfc.c: New file.
7878
7879         Tests for module 'erf'.
7880         * modules/erf-tests: New file.
7881         * tests/test-erf.c: New file.
7882
7883         Tests for module 'cosh'.
7884         * modules/cosh-tests: New file.
7885         * tests/test-cosh.c: New file.
7886
7887         Tests for module 'cos'.
7888         * modules/cos-tests: New file.
7889         * tests/test-cos.c: New file.
7890
7891         Tests for module 'copysign'.
7892         * modules/copysign-tests: New file.
7893         * tests/test-copysign.c: New file.
7894
7895         Tests for module 'cbrt'.
7896         * modules/cbrt-tests: New file.
7897         * tests/test-cbrt.c: New file.
7898
7899         Tests for module 'atan2'.
7900         * modules/atan2-tests: New file.
7901         * tests/test-atan2.c: New file.
7902
7903         Tests for module 'atan'.
7904         * modules/atan-tests: New file.
7905         * tests/test-atan.c: New file.
7906
7907         Tests for module 'asin'.
7908         * modules/asin-tests: New file.
7909         * tests/test-asin.c: New file.
7910
7911         Tests for module 'acos'.
7912         * modules/acos-tests: New file.
7913         * tests/test-acos.c: New file.
7914
7915 2010-01-24  Bruno Haible  <bruno@clisp.org>
7916
7917         Fix tests for common <math.h> functions.
7918         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7919         code snippet that references the function pointer, rather than merely
7920         calling the function. Substitute the FUNC_LIBM variable.
7921         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7922         * modules/acos (configure.ac): Likewise.
7923         * modules/asin (configure.ac): Likewise.
7924         * modules/atan (configure.ac): Likewise.
7925         * modules/atan2 (configure.ac): Likewise.
7926         * modules/cbrt (configure.ac): Likewise.
7927         * modules/copysign (configure.ac): Likewise.
7928         * modules/cos (configure.ac): Likewise.
7929         * modules/cosh (configure.ac): Likewise.
7930         * modules/erf (configure.ac): Likewise.
7931         * modules/erfc (configure.ac): Likewise.
7932         * modules/exp (configure.ac): Likewise.
7933         * modules/fabs (configure.ac): Likewise.
7934         * modules/fmod (configure.ac): Likewise.
7935         * modules/hypot (configure.ac): Likewise.
7936         * modules/j0 (configure.ac): Likewise.
7937         * modules/j1 (configure.ac): Likewise.
7938         * modules/jn (configure.ac): Likewise.
7939         * modules/ldexp (configure.ac): Likewise.
7940         * modules/lgamma (configure.ac): Likewise.
7941         * modules/log (configure.ac): Likewise.
7942         * modules/log10 (configure.ac): Likewise.
7943         * modules/log1p (configure.ac): Likewise.
7944         * modules/logb (configure.ac): Likewise.
7945         * modules/modf (configure.ac): Likewise.
7946         * modules/nextafter (configure.ac): Likewise.
7947         * modules/pow (configure.ac): Likewise.
7948         * modules/remainder (configure.ac): Likewise.
7949         * modules/rint (configure.ac): Likewise.
7950         * modules/sin (configure.ac): Likewise.
7951         * modules/sinh (configure.ac): Likewise.
7952         * modules/tan (configure.ac): Likewise.
7953         * modules/tanh (configure.ac): Likewise.
7954         * modules/y0 (configure.ac): Likewise.
7955         * modules/y1 (configure.ac): Likewise.
7956         * modules/yn (configure.ac): Likewise.
7957
7958 2010-01-24  Bruno Haible  <bruno@clisp.org>
7959
7960         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7961         * tests/test-acosl.c (x): New variable.
7962         (main): Store argument in x and fetch it from x.
7963         * tests/test-asinl.c (x): New variable.
7964         (main): Store argument in x and fetch it from x.
7965         * tests/test-atanl.c (x): New variable.
7966         (main): Store argument in x and fetch it from x.
7967         * tests/test-cosl.c (x): New variable.
7968         (main): Store argument in x and fetch it from x.
7969         * tests/test-expl.c (x): New variable.
7970         (main): Store argument in x and fetch it from x.
7971         * tests/test-logl.c (x): New variable.
7972         (main): Store argument in x and fetch it from x.
7973         * tests/test-sinl.c (x): New variable.
7974         (main): Store argument in x and fetch it from x.
7975         * tests/test-sqrtl.c (x): New variable.
7976         (main): Store argument in x and fetch it from x.
7977         * tests/test-tanl.c (x): New variable.
7978         (main): Store argument in x and fetch it from x.
7979
7980 2010-01-24  Bruno Haible  <bruno@clisp.org>
7981
7982         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7983         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7984         assignments to the initial TESTS_ENVIRONMENT.
7985         * doc/gnulib.texi (Unit test modules): Document it.
7986         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7987         TESTS_ENVIRONMENT.
7988         * modules/btowc-tests (Makefile.am): Likewise.
7989         * modules/c-stack-tests (Makefile.am): Likewise.
7990         * modules/c-strcase-tests (Makefile.am): Likewise.
7991         * modules/copy-file-tests (Makefile.am): Likewise.
7992         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7993         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7994         * modules/mbrtowc-tests (Makefile.am): Likewise.
7995         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7996         * modules/mbscasestr-tests (Makefile.am): Likewise.
7997         * modules/mbschr-tests (Makefile.am): Likewise.
7998         * modules/mbscspn-tests (Makefile.am): Likewise.
7999         * modules/mbsinit-tests (Makefile.am): Likewise.
8000         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8001         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8002         * modules/mbspbrk-tests (Makefile.am): Likewise.
8003         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8004         * modules/mbsrchr-tests (Makefile.am): Likewise.
8005         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8006         * modules/mbsspn-tests (Makefile.am): Likewise.
8007         * modules/mbsstr-tests (Makefile.am): Likewise.
8008         * modules/nl_langinfo-tests (Makefile.am): Likewise.
8009         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
8010         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
8011         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
8012         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
8013         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8014         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
8015         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
8016         * modules/wcrtomb-tests (Makefile.am): Likewise.
8017         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
8018         * modules/wcsrtombs-tests (Makefile.am): Likewise.
8019         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
8020         assignments from TESTS_ENVIRONMENT.
8021         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
8022         augmentation.
8023         * modules/argp-version-etc-tests (Makefile.am): Likewise.
8024         * modules/atexit-tests (Makefile.am): Likewise.
8025         * modules/binary-io-tests (Makefile.am): Likewise.
8026         * modules/closein-tests (Makefile.am): Likewise.
8027         * modules/dprintf-posix-tests (Makefile.am): Likewise.
8028         * modules/exclude-tests (Makefile.am): Likewise.
8029         * modules/fflush-tests (Makefile.am): Likewise.
8030         * modules/fpending-tests (Makefile.am): Likewise.
8031         * modules/fprintf-posix-tests (Makefile.am): Likewise.
8032         * modules/freadahead-tests (Makefile.am): Likewise.
8033         * modules/freadptr-tests (Makefile.am): Likewise.
8034         * modules/freadseek-tests (Makefile.am): Likewise.
8035         * modules/fseek-tests (Makefile.am): Likewise.
8036         * modules/fseeko-tests (Makefile.am): Likewise.
8037         * modules/ftell-tests (Makefile.am): Likewise.
8038         * modules/ftello-tests (Makefile.am): Likewise.
8039         * modules/idpriv-drop-tests (Makefile.am): Likewise.
8040         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
8041         * modules/lseek-tests (Makefile.am): Likewise.
8042         * modules/parse-duration-tests (Makefile.am): Likewise.
8043         * modules/perror-tests (Makefile.am): Likewise.
8044         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
8045         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
8046         * modules/pipe-tests (Makefile.am): Likewise.
8047         * modules/pread-tests (Makefile.am): Likewise.
8048         * modules/printf-posix-tests (Makefile.am): Likewise.
8049         * modules/select-tests (Makefile.am): Likewise.
8050         * modules/sigpipe-tests (Makefile.am): Likewise.
8051         * modules/tsearch-tests (Makefile.am): Likewise.
8052         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
8053         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
8054         * modules/uniname/uniname-tests (Makefile.am): Likewise.
8055         * modules/uniwidth/width-tests (Makefile.am): Likewise.
8056         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
8057         * modules/version-etc-tests (Makefile.am): Likewise.
8058         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
8059         * modules/vprintf-posix-tests (Makefile.am): Likewise.
8060         * modules/xalloc-die-tests (Makefile.am): Likewise.
8061         * modules/xprintf-posix-tests (Makefile.am): Likewise.
8062         * modules/xstrtoimax-tests (Makefile.am): Likewise.
8063         * modules/xstrtol-tests (Makefile.am): Likewise.
8064         * modules/xstrtoumax-tests (Makefile.am): Likewise.
8065         * modules/yesno-tests (Makefile.am): Likewise.
8066         Suggested by Jim Meyering.
8067
8068 2010-01-24  Bruno Haible  <bruno@clisp.org>
8069
8070         More documentation.
8071         * doc/gnulib.texi (Writing modules): New chapter.
8072         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
8073         the new chapter.
8074
8075 2010-01-24  Jim Meyering  <meyering@redhat.com>
8076
8077         maint.mk: do not prepend "./" after filtering
8078         * top/maint.mk (_prepend_srcdir_prefix): New variable
8079         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
8080         "./" when $(srcdir) is ".".
8081
8082         define STREQ(a,b) consistently, removing useless parentheses
8083         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
8084         since the only risk is that "a" or "b" contains an unparenthesized
8085         comma, but if either did that, STREQ would have 3 or more arguments.
8086         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
8087         * lib/fts.c (STREQ): Remove unnecessary parentheses.
8088         * lib/hash-triple.c (STREQ): Likewise.
8089         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
8090         * lib/getugroups.c (STREQ): Likewise.
8091
8092 2010-01-23  Jim Meyering  <meyering@redhat.com>
8093
8094         maint.mk: fix syntax-check in a non-srcdir build directory
8095         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
8096         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
8097
8098 2010-01-22  Jim Meyering  <meyering@redhat.com>
8099
8100         userspec: add unit tests
8101         * tests/test-userspec.c: New file.
8102         * modules/userspec-tests: Likewise.
8103
8104 2010-01-21  Jim Meyering  <meyering@redhat.com>
8105
8106         maint.mk: handle source file names containing "." robustly
8107         * top/maint.mk (_dot_escaped_srcdir): Define.
8108         (VC_LIST): Use it in LHS of sed substitution.
8109
8110 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
8111
8112         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
8113         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
8114         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
8115         from a non-srcdir build.
8116
8117 2010-01-20  Eric Blake  <ebb9@byu.net>
8118
8119         warn-on-use: use instead of link-warning
8120         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
8121         * modules/unistd (Depends-on, Makefile.am): Likewise.
8122         * modules/arpa_inet (Depends-on): Replace link-warning with
8123         warn-on-use.
8124         (Makefile.am): Update rules accordingly.
8125         * modules/ctype (Depends-on, Makefile.am): Likewise.
8126         * modules/dirent (Depends-on, Makefile.am): Likewise.
8127         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
8128         * modules/inttypes (Depends-on, Makefile.am): Likewise.
8129         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8130         * modules/locale (Depends-on, Makefile.am): Likewise.
8131         * modules/math (Depends-on, Makefile.am): Likewise.
8132         * modules/search (Depends-on, Makefile.am): Likewise.
8133         * modules/signal (Depends-on, Makefile.am): Likewise.
8134         * modules/spawn (Depends-on, Makefile.am): Likewise.
8135         * modules/stdlib (Depends-on, Makefile.am): Likewise.
8136         * modules/string (Depends-on, Makefile.am): Likewise.
8137         * modules/strings (Depends-on, Makefile.am): Likewise.
8138         * modules/sys_file (Depends-on, Makefile.am): Likewise.
8139         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
8140         * modules/sys_select (Depends-on, Makefile.am): Likewise.
8141         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
8142         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
8143         * modules/sys_times (Depends-on, Makefile.am): Likewise.
8144         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8145         * modules/wchar (Depends-on, Makefile.am): Likewise.
8146         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
8147         should be poisoned.
8148         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
8149         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
8150         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
8151         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8152         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8153         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8154         * m4/math_h.m4 (gl_MATH_H): Likewise.
8155         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8156         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8157         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8158         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8159         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8160         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8161         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8162         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8163         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8164         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8165         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8166         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8167         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8168         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8169         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8170         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8171         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8172         GL_LINK_WARNING.
8173         * lib/ctype.in.h: Likewise.
8174         * lib/dirent.in.h: Likewise.
8175         * lib/fcntl.in.h: Likewise.
8176         * lib/inttypes.in.h: Likewise.
8177         * lib/langinfo.in.h: Likewise.
8178         * lib/locale.in.h: Likewise.
8179         * lib/math.in.h: Likewise.
8180         * lib/search.in.h: Likewise.
8181         * lib/signal.in.h: Likewise.
8182         * lib/spawn.in.h: Likewise.
8183         * lib/stdio.in.h: Likewise.
8184         * lib/stdlib.in.h: Likewise.
8185         * lib/string.in.h: Likewise.
8186         * lib/strings.in.h: Likewise.
8187         * lib/sys_file.in.h: Likewise.
8188         * lib/sys_ioctl.in.h: Likewise.
8189         * lib/sys_select.in.h: Likewise.
8190         * lib/sys_socket.in.h: Likewise.
8191         * lib/sys_stat.in.h: Likewise.
8192         * lib/sys_times.in.h: Likewise.
8193         * lib/sys_utsname.in.h: Likewise.
8194         * lib/unistd.in.h: Likewise.
8195         * lib/wchar.in.h: Likewise.
8196
8197 2010-01-20  Bruno Haible  <bruno@clisp.org>
8198
8199         Avoid duplicate -lm.
8200         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8201         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8202         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8203         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8204         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8205         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8206         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8207         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8208         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8209         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8210         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8211         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8212         Reported by Paolo Bonzini.
8213
8214 2010-01-19  Bruno Haible  <bruno@clisp.org>
8215
8216         langinfo, nl_langinfo: Relicense under LGPLv2+.
8217         * modules/langinfo (License): Change to LGPLv2+.
8218         * modules/nl_langinfo (License): Likewise.
8219         Patch by David Lutterkort <lutter@redhat.com>.
8220
8221 2010-01-19  Bruno Haible  <bruno@clisp.org>
8222
8223         Avoid compilation error with cc on OSF/1 5.1.
8224         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8225         statement, not before.
8226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8227
8228 2010-01-18  Bruno Haible  <bruno@clisp.org>
8229
8230         Avoid a link error due to the __printf__ symbol.
8231         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8232         and 2.6.x.
8233         (__format__, __printf__): Remove definitions.
8234         * lib/argp-fmtstream.h: Likewise.
8235         * lib/argp.h: Likewise.
8236         * lib/error.h: Likewise.
8237         * lib/vasnprintf.h: Likewise.
8238         * lib/xprintf.h: Likewise.
8239         * lib/xvasprintf.h: Likewise.
8240         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8241
8242 2010-01-18  Bruno Haible  <bruno@clisp.org>
8243
8244         Tests for module 'tanl'.
8245         * modules/tanl-tests: New file.
8246         * tests/test-tanl.c: New file.
8247
8248         Tests for module 'sqrtl'.
8249         * modules/sqrtl-tests: New file.
8250         * tests/test-sqrtl.c: New file.
8251
8252         Tests for module 'sinl'.
8253         * modules/sinl-tests: New file.
8254         * tests/test-sinl.c: New file.
8255
8256         Tests for module 'logl'.
8257         * modules/logl-tests: New file.
8258         * tests/test-logl.c: New file.
8259
8260         Tests for module 'expl'.
8261         * modules/expl-tests: New file.
8262         * tests/test-expl.c: New file.
8263
8264         Tests for module 'cosl'.
8265         * modules/cosl-tests: New file.
8266         * tests/test-cosl.c: New file.
8267
8268         Tests for module 'atanl'.
8269         * modules/atanl-tests: New file.
8270         * tests/test-atanl.c: New file.
8271
8272         Tests for module 'asinl'.
8273         * modules/asinl-tests: New file.
8274         * tests/test-asinl.c: New file.
8275
8276         Tests for module 'acosl'.
8277         * modules/acosl-tests: New file.
8278         * tests/test-acosl.c: New file.
8279
8280         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8281         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8282         tanl): Use the standard gnulib idiom.
8283         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8284         * lib/sinl.c: Likewise.
8285         * lib/tanl.c: Don't include trigl.c.
8286         (kernel_tanl): Make static.
8287         * lib/sincosl.c: Include trigl.h first.
8288         * lib/trigl.c: Likewise.
8289         * m4/acosl.m4: New file.
8290         * m4/asinl.m4: New file.
8291         * m4/atanl.m4: New file.
8292         * m4/cosl.m4: New file.
8293         * m4/expl.m4: New file.
8294         * m4/logl.m4: New file.
8295         * m4/sinl.m4: New file.
8296         * m4/sqrtl.m4: New file.
8297         * m4/tanl.m4: New file.
8298         * m4/mathl.m4: Remove file.
8299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8300         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8301         Don't initialize GNULIB_MATHL.
8302         * modules/acosl: New file.
8303         * modules/asinl: New file.
8304         * modules/atanl: New file.
8305         * modules/cosl: New file.
8306         * modules/expl: New file.
8307         * modules/logl: New file.
8308         * modules/sinl: New file.
8309         * modules/sqrtl: New file.
8310         * modules/tanl: New file.
8311         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8312         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8313         substitute GNULIB_MATHL.
8314         * modules/mathl: Rewritten.
8315         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8316         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8317         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8318         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8319         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8320         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8321         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8322         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8323         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8324
8325 2010-01-18  Bruno Haible  <bruno@clisp.org>
8326
8327         sqrt: Make gl_FUNC_SQRT requirable.
8328         * m4/sqrt.m4: New file.
8329         * modules/sqrt (Files): Add it.
8330         (configure.ac): Invoke gl_FUNC_SQRT.
8331
8332 2010-01-18  Bruno Haible  <bruno@clisp.org>
8333
8334         New modules for common <math.h> functions.
8335         * m4/mathfunc.m4: New file.
8336         * modules/acos: New file.
8337         * modules/asin: New file.
8338         * modules/atan: New file.
8339         * modules/atan2: New file.
8340         * modules/cbrt: New file.
8341         * modules/copysign: New file.
8342         * modules/cos: New file.
8343         * modules/cosh: New file.
8344         * modules/erf: New file.
8345         * modules/erfc: New file.
8346         * modules/exp: New file.
8347         * modules/fabs: New file.
8348         * modules/fmod: New file.
8349         * modules/hypot: New file.
8350         * modules/j0: New file.
8351         * modules/j1: New file.
8352         * modules/jn: New file.
8353         * modules/ldexp: New file.
8354         * modules/lgamma: New file.
8355         * modules/log: New file.
8356         * modules/log10: New file.
8357         * modules/log1p: New file.
8358         * modules/logb: New file.
8359         * modules/modf: New file.
8360         * modules/nextafter: New file.
8361         * modules/pow: New file.
8362         * modules/remainder: New file.
8363         * modules/rint: New file.
8364         * modules/sin: New file.
8365         * modules/sinh: New file.
8366         * modules/sqrt: New file.
8367         * modules/tan: New file.
8368         * modules/tanh: New file.
8369         * modules/y0: New file.
8370         * modules/y1: New file.
8371         * modules/yn: New file.
8372         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8373         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8374         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8375         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8376         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8377         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8378         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8379         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8380         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8381         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8382         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8383         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8384         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8385         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8386         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8387         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8388         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8389         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8390         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8391         * doc/posix-functions/log.texi: Mention the 'log' module.
8392         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8393         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8394         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8395         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8396         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8397         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8398         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8399         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8400         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8401         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8402         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8403         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8404         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8405         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8406         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8407         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8408
8409 2010-01-18  Jim Meyering  <meyering@redhat.com>
8410
8411         ignore-value: relax license to LGPLv2+
8412         * modules/ignore-value (License): Relax to LGPLv2+.
8413
8414         getdate: don't leak when TZ contains two or more '"'s
8415         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8416         double quote in TZ after the first one.
8417
8418         readtokens: do not leak internal token_lengths buffer
8419         * lib/readtokens.c (readtokens): Free the local, lengths,
8420         when the supplied "token_lengths" parameter is NULL.
8421
8422 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8423
8424         Fix a couple of missing LIBTHREAD link failures on AIX.
8425         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8426         $(LIBTHREAD).
8427         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8428
8429         Link test-poll against INET_PTON_LIB.
8430         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8431         for inet_pton on Solaris 10.
8432
8433 2010-01-17  Bruno Haible  <bruno@clisp.org>
8434
8435         unistdio/*-sprintf: Fix typo in module description.
8436         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8437         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8438         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8439         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8440         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8441         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8442         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8444
8445 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8446
8447         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8448         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8449         variables in shell case patterns, for AIX and HP-UX ksh.
8450
8451         Split large sed scripts, for HP-UX sed.
8452         * modules/stdio: Split sed scripts around 50 sed commands,
8453         to avoid HP-UX limit of 99 commands, in the near future.
8454         * modules/string: Likewise.
8455         * modules/unistd: Likewise.
8456
8457         gnulib-tool: avoid writing in the current directory.
8458         * gnulib-tool (func_emit_lib_Makefile_am)
8459         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8460         not in the current directory, so concurrent gnulib-tool
8461         instances do not interfere.
8462
8463 2010-01-16  Jim Meyering  <meyering@redhat.com>
8464
8465         doc: update users.txt
8466         * users.txt: Add grep.
8467         (diffutils, gzip): Update URLs.
8468
8469 2010-01-12  Bruno Haible  <bruno@clisp.org>
8470
8471         posix_spawn: Avoid test failure on Cygwin.
8472         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8473         characters.
8474         Reported by Simon Josefsson.
8475
8476 2010-01-12  Bruno Haible  <bruno@clisp.org>
8477
8478         * tests/test-cond.c (main): When skipping the test, show the reason.
8479
8480 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8481
8482         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8483
8484 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8485
8486         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8487         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8488
8489 2010-01-12  Eric Blake  <ebb9@byu.net>
8490
8491         build: guarantee AS_VAR_IF
8492         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8493         (gl_AS_VAR_IF): Move...
8494         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8495         Reported by Simon Josefsson.
8496
8497 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8498
8499         * lib/stdio.in.h: Fix typo.
8500
8501 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8502
8503         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8504         libgpg-error.
8505
8506 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8507
8508         * tests/test-xalloc-die.sh: Use $EXEEXT.
8509
8510 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8511             Bruno Haible  <bruno@clisp.org>
8512
8513         getlogin, getlogin_r: Avoid test failure.
8514         * tests/test-getlogin.c: Include <stdio.h>.
8515         (main): Skip the test when the function fails because stdin is not a
8516         tty.
8517         * tests/test-getlogin_r.c: Include <stdio.h>.
8518         (main): Skip the test when the function fails because stdin is not a
8519         tty.
8520
8521 2010-01-11  Eric Blake  <ebb9@byu.net>
8522
8523         tests: avoid more large file warnings
8524         * tests/test-fflush.c: Avoid warning about ftell use.
8525         * tests/test-fseek.c: Avoid warning about fseek use.
8526
8527 2010-01-10  Bruno Haible  <bruno@clisp.org>
8528
8529         nproc: Work better on Linux when /proc and /sys are not mounted.
8530         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8531         as lower bound when, on glibc/Linux systems,
8532         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8533         Suggested by Pádraig Brady <P@draigbrady.com>.
8534         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8535
8536         nproc: Refactor.
8537         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8538         extracted from num_processors.
8539         (num_processors): Call it.
8540
8541 2010-01-11  Jim Meyering  <meyering@redhat.com>
8542
8543         utimecmp: avoid new warning from upcoming gcc-4.5.0
8544         * lib/utimecmp.c (BILLION): Define using #define rather than an
8545         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8546
8547 2010-01-11  Eric Blake  <ebb9@byu.net>
8548
8549         math: add portability warnings for classification macros
8550         * modules/math (Depends-on): Add warn-on-use.
8551         (Makefile.am): Provide new substitutions.
8552         * m4/math_h.m4 (gl_MATH_H): Require inline.
8553         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8554         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8555         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8556         implement warnings.
8557
8558         unistd: warn on use of environ without module
8559         * modules/unistd (Depends-on): Add warn-on-use.
8560         (Makefile.am): Provide new substitutions.
8561         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8562         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8563
8564         stdio: warn on suspicious uses
8565         * modules/stdio (Depends-on): Add warn-on-use.
8566         (Makefile.am): Provide new substitutions.
8567         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8568         fseeko.
8569         * lib/stdio.in.h (gets): Always warn on use.
8570         (fseek, ftell): Adjust when warnings are issued, and honor
8571         _GL_NO_LARGE_FILES as a way to silence the warning.
8572         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8573         any warning about large file offsets.
8574         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8575         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8576         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8577         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8578         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8579         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8580         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8581         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8582
8583         warn-on-use: new module
8584         * modules/warn-on-use: New file.
8585         * build-aux/warn-on-use.h: Likewise.
8586         * m4/warn-on-use.m4: Likewise.
8587         * MODULES.html.sh (Support for building): Mention it.
8588
8589 2010-01-10  Bruno Haible  <bruno@clisp.org>
8590
8591         Tests for module 'unistr/u32-strdup'.
8592         * modules/unistr/u32-strdup-tests: New file.
8593         * tests/unistr/test-u32-strdup.c: New file.
8594
8595         Tests for module 'unistr/u16-strdup'.
8596         * modules/unistr/u16-strdup-tests: New file.
8597         * tests/unistr/test-u16-strdup.c: New file.
8598
8599         Tests for module 'unistr/u8-strdup'.
8600         * modules/unistr/u8-strdup-tests: New file.
8601         * tests/unistr/test-u8-strdup.c: New file.
8602         * tests/unistr/test-strdup.h: New file.
8603
8604         Tests for module 'unistr/u32-strncmp'.
8605         * modules/unistr/u32-strncmp-tests: New file.
8606         * tests/unistr/test-u32-strncmp.c: New file.
8607
8608         Tests for module 'unistr/u16-strncmp'.
8609         * modules/unistr/u16-strncmp-tests: New file.
8610         * tests/unistr/test-u16-strncmp.c: New file.
8611
8612         Tests for module 'unistr/u8-strncmp'.
8613         * modules/unistr/u8-strncmp-tests: New file.
8614         * tests/unistr/test-u8-strncmp.c: New file.
8615         * tests/unistr/test-strncmp.h: New file.
8616
8617         Tests for module 'unistr/u32-strcoll'.
8618         * modules/unistr/u32-strcoll-tests: New file.
8619         * tests/unistr/test-u32-strcoll.c: New file.
8620
8621         Tests for module 'unistr/u16-strcoll'.
8622         * modules/unistr/u16-strcoll-tests: New file.
8623         * tests/unistr/test-u16-strcoll.c: New file.
8624
8625         Tests for module 'unistr/u8-strcoll'.
8626         * modules/unistr/u8-strcoll-tests: New file.
8627         * tests/unistr/test-u8-strcoll.c: New file.
8628
8629         Tests for module 'unistr/u32-strcmp'.
8630         * modules/unistr/u32-strcmp-tests: New file.
8631         * tests/unistr/test-u32-strcmp.c: New file.
8632         * tests/unistr/test-u32-strcmp.h: New file.
8633
8634         Tests for module 'unistr/u16-strcmp'.
8635         * modules/unistr/u16-strcmp-tests: New file.
8636         * tests/unistr/test-u16-strcmp.c: New file.
8637         * tests/unistr/test-u16-strcmp.h: New file.
8638
8639         Tests for module 'unistr/u8-strcmp'.
8640         * modules/unistr/u8-strcmp-tests: New file.
8641         * tests/unistr/test-u8-strcmp.c: New file.
8642         * tests/unistr/test-u8-strcmp.h: New file.
8643         * tests/unistr/test-strcmp.h: New file.
8644
8645         Tests for module 'unistr/u32-strncat'.
8646         * modules/unistr/u32-strncat-tests: New file.
8647         * tests/unistr/test-u32-strncat.c: New file.
8648
8649         Tests for module 'unistr/u16-strncat'.
8650         * modules/unistr/u16-strncat-tests: New file.
8651         * tests/unistr/test-u16-strncat.c: New file.
8652
8653         Tests for module 'unistr/u8-strncat'.
8654         * modules/unistr/u8-strncat-tests: New file.
8655         * tests/unistr/test-u8-strncat.c: New file.
8656         * tests/unistr/test-strncat.h: New file.
8657
8658         Tests for module 'unistr/u32-strcat'.
8659         * modules/unistr/u32-strcat-tests: New file.
8660         * tests/unistr/test-u32-strcat.c: New file.
8661
8662         Tests for module 'unistr/u16-strcat'.
8663         * modules/unistr/u16-strcat-tests: New file.
8664         * tests/unistr/test-u16-strcat.c: New file.
8665
8666         Tests for module 'unistr/u8-strcat'.
8667         * modules/unistr/u8-strcat-tests: New file.
8668         * tests/unistr/test-u8-strcat.c: New file.
8669         * tests/unistr/test-strcat.h: New file.
8670
8671         Tests for module 'unistr/u32-stpncpy'.
8672         * modules/unistr/u32-stpncpy-tests: New file.
8673         * tests/unistr/test-u32-stpncpy.c: New file.
8674
8675         Tests for module 'unistr/u16-stpncpy'.
8676         * modules/unistr/u16-stpncpy-tests: New file.
8677         * tests/unistr/test-u16-stpncpy.c: New file.
8678
8679         Tests for module 'unistr/u8-stpncpy'.
8680         * modules/unistr/u8-stpncpy-tests: New file.
8681         * tests/unistr/test-u8-stpncpy.c: New file.
8682         * tests/unistr/test-stpncpy.h: New file.
8683
8684         Tests for module 'unistr/u32-strncpy'.
8685         * modules/unistr/u32-strncpy-tests: New file.
8686         * tests/unistr/test-u32-strncpy.c: New file.
8687
8688         Tests for module 'unistr/u16-strncpy'.
8689         * modules/unistr/u16-strncpy-tests: New file.
8690         * tests/unistr/test-u16-strncpy.c: New file.
8691
8692         Tests for module 'unistr/u8-strncpy'.
8693         * modules/unistr/u8-strncpy-tests: New file.
8694         * tests/unistr/test-u8-strncpy.c: New file.
8695         * tests/unistr/test-strncpy.h: New file.
8696
8697         Tests for module 'unistr/u32-stpcpy'.
8698         * modules/unistr/u32-stpcpy-tests: New file.
8699         * tests/unistr/test-u32-stpcpy.c: New file.
8700
8701         Tests for module 'unistr/u16-stpcpy'.
8702         * modules/unistr/u16-stpcpy-tests: New file.
8703         * tests/unistr/test-u16-stpcpy.c: New file.
8704
8705         Tests for module 'unistr/u8-stpcpy'.
8706         * modules/unistr/u8-stpcpy-tests: New file.
8707         * tests/unistr/test-u8-stpcpy.c: New file.
8708         * tests/unistr/test-stpcpy.h: New file.
8709
8710         Tests for module 'unistr/u32-strcpy'.
8711         * modules/unistr/u32-strcpy-tests: New file.
8712         * tests/unistr/test-u32-strcpy.c: New file.
8713
8714         Tests for module 'unistr/u16-strcpy'.
8715         * modules/unistr/u16-strcpy-tests: New file.
8716         * tests/unistr/test-u16-strcpy.c: New file.
8717
8718         Tests for module 'unistr/u8-strcpy'.
8719         * modules/unistr/u8-strcpy-tests: New file.
8720         * tests/unistr/test-u8-strcpy.c: New file.
8721         * tests/unistr/test-strcpy.h: New file.
8722
8723         Tests for module 'unistr/u32-strnlen'.
8724         * modules/unistr/u32-strnlen-tests: New file.
8725         * tests/unistr/test-u32-strnlen.c: New file.
8726
8727         Tests for module 'unistr/u16-strnlen'.
8728         * modules/unistr/u16-strnlen-tests: New file.
8729         * tests/unistr/test-u16-strnlen.c: New file.
8730
8731         Tests for module 'unistr/u8-strnlen'.
8732         * modules/unistr/u8-strnlen-tests: New file.
8733         * tests/unistr/test-u8-strnlen.c: New file.
8734         * tests/unistr/test-strnlen.h: New file.
8735
8736         Tests for module 'unistr/u32-strlen'.
8737         * modules/unistr/u32-strlen-tests: New file.
8738         * tests/unistr/test-u32-strlen.c: New file.
8739
8740         Tests for module 'unistr/u16-strlen'.
8741         * modules/unistr/u16-strlen-tests: New file.
8742         * tests/unistr/test-u16-strlen.c: New file.
8743
8744         Tests for module 'unistr/u8-strlen'.
8745         * modules/unistr/u8-strlen-tests: New file.
8746         * tests/unistr/test-u8-strlen.c: New file.
8747
8748         Tests for module 'unistr/u32-prev'.
8749         * modules/unistr/u32-prev-tests: New file.
8750         * tests/unistr/test-u32-prev.c: New file.
8751
8752         Tests for module 'unistr/u16-prev'.
8753         * modules/unistr/u16-prev-tests: New file.
8754         * tests/unistr/test-u16-prev.c: New file.
8755
8756         Tests for module 'unistr/u8-prev'.
8757         * modules/unistr/u8-prev-tests: New file.
8758         * tests/unistr/test-u8-prev.c: New file.
8759
8760         Tests for module 'unistr/u32-next'.
8761         * modules/unistr/u32-next-tests: New file.
8762         * tests/unistr/test-u32-next.c: New file.
8763
8764         Tests for module 'unistr/u16-next'.
8765         * modules/unistr/u16-next-tests: New file.
8766         * tests/unistr/test-u16-next.c: New file.
8767
8768         Tests for module 'unistr/u8-next'.
8769         * modules/unistr/u8-next-tests: New file.
8770         * tests/unistr/test-u8-next.c: New file.
8771
8772         Tests for module 'unistr/u32-strmbtouc'.
8773         * modules/unistr/u32-strmbtouc-tests: New file.
8774         * tests/unistr/test-u32-strmbtouc.c: New file.
8775
8776         Tests for module 'unistr/u16-strmbtouc'.
8777         * modules/unistr/u16-strmbtouc-tests: New file.
8778         * tests/unistr/test-u16-strmbtouc.c: New file.
8779
8780         Tests for module 'unistr/u8-strmbtouc'.
8781         * modules/unistr/u8-strmbtouc-tests: New file.
8782         * tests/unistr/test-u8-strmbtouc.c: New file.
8783
8784         Tests for module 'unistr/u32-strmblen'.
8785         * modules/unistr/u32-strmblen-tests: New file.
8786         * tests/unistr/test-u32-strmblen.c: New file.
8787
8788         Tests for module 'unistr/u16-strmblen'.
8789         * modules/unistr/u16-strmblen-tests: New file.
8790         * tests/unistr/test-u16-strmblen.c: New file.
8791
8792         Tests for module 'unistr/u8-strmblen'.
8793         * modules/unistr/u8-strmblen-tests: New file.
8794         * tests/unistr/test-u8-strmblen.c: New file.
8795
8796         Tests for module 'unistr/u32-cpy-alloc'.
8797         * modules/unistr/u32-cpy-alloc-tests: New file.
8798         * tests/unistr/test-u32-cpy-alloc.c: New file.
8799
8800         Tests for module 'unistr/u16-cpy-alloc'.
8801         * modules/unistr/u16-cpy-alloc-tests: New file.
8802         * tests/unistr/test-u16-cpy-alloc.c: New file.
8803
8804         Tests for module 'unistr/u8-cpy-alloc'.
8805         * modules/unistr/u8-cpy-alloc-tests: New file.
8806         * tests/unistr/test-u8-cpy-alloc.c: New file.
8807         * tests/unistr/test-cpy-alloc.h: New file.
8808
8809         Tests for module 'unistr/u32-mbsnlen'.
8810         * modules/unistr/u32-mbsnlen-tests: New file.
8811         * tests/unistr/test-u32-mbsnlen.c: New file.
8812
8813         Tests for module 'unistr/u16-mbsnlen'.
8814         * modules/unistr/u16-mbsnlen-tests: New file.
8815         * tests/unistr/test-u16-mbsnlen.c: New file.
8816
8817         Tests for module 'unistr/u8-mbsnlen'.
8818         * modules/unistr/u8-mbsnlen-tests: New file.
8819         * tests/unistr/test-u8-mbsnlen.c: New file.
8820
8821         Tests for module 'unistr/u32-chr'.
8822         * modules/unistr/u32-chr-tests: New file.
8823         * tests/unistr/test-u32-chr.c: New file.
8824
8825         Tests for module 'unistr/u16-chr'.
8826         * modules/unistr/u16-chr-tests: New file.
8827         * tests/unistr/test-u16-chr.c: New file.
8828
8829         Tests for module 'unistr/u8-chr'.
8830         * modules/unistr/u8-chr-tests: New file.
8831         * tests/unistr/test-u8-chr.c: New file.
8832         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8833
8834         Tests for module 'unistr/u32-cmp2'.
8835         * modules/unistr/u32-cmp2-tests: New file.
8836         * tests/unistr/test-u32-cmp2.c: New file.
8837
8838         Tests for module 'unistr/u16-cmp2'.
8839         * modules/unistr/u16-cmp2-tests: New file.
8840         * tests/unistr/test-u16-cmp2.c: New file.
8841
8842         Tests for module 'unistr/u8-cmp2'.
8843         * modules/unistr/u8-cmp2-tests: New file.
8844         * tests/unistr/test-u8-cmp2.c: New file.
8845         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8846
8847         Tests for module 'unistr/u32-cmp'.
8848         * modules/unistr/u32-cmp-tests: New file.
8849         * tests/unistr/test-u32-cmp.c: New file.
8850
8851         Tests for module 'unistr/u16-cmp'.
8852         * modules/unistr/u16-cmp-tests: New file.
8853         * tests/unistr/test-u16-cmp.c: New file.
8854
8855         Tests for module 'unistr/u8-cmp'.
8856         * modules/unistr/u8-cmp-tests: New file.
8857         * tests/unistr/test-u8-cmp.c: New file.
8858         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8859
8860         Tests for module 'unistr/u32-set'.
8861         * modules/unistr/u32-set-tests: New file.
8862         * tests/unistr/test-u32-set.c: New file.
8863
8864         Tests for module 'unistr/u16-set'.
8865         * modules/unistr/u16-set-tests: New file.
8866         * tests/unistr/test-u16-set.c: New file.
8867
8868         Tests for module 'unistr/u8-set'.
8869         * modules/unistr/u8-set-tests: New file.
8870         * tests/unistr/test-u8-set.c: New file.
8871         * tests/unistr/test-set.h: New file.
8872
8873         Tests for module 'unistr/u32-move'.
8874         * modules/unistr/u32-move-tests: New file.
8875         * tests/unistr/test-u32-move.c: New file.
8876
8877         Tests for module 'unistr/u16-move'.
8878         * modules/unistr/u16-move-tests: New file.
8879         * tests/unistr/test-u16-move.c: New file.
8880
8881         Tests for module 'unistr/u8-move'.
8882         * modules/unistr/u8-move-tests: New file.
8883         * tests/unistr/test-u8-move.c: New file.
8884         * tests/unistr/test-move.h: New file.
8885
8886         Tests for module 'unistr/u32-cpy'.
8887         * modules/unistr/u32-cpy-tests: New file.
8888         * tests/unistr/test-u32-cpy.c: New file.
8889
8890         Tests for module 'unistr/u16-cpy'.
8891         * modules/unistr/u16-cpy-tests: New file.
8892         * tests/unistr/test-u16-cpy.c: New file.
8893
8894         Tests for module 'unistr/u8-cpy'.
8895         * modules/unistr/u8-cpy-tests: New file.
8896         * tests/unistr/test-u8-cpy.c: New file.
8897         * tests/unistr/test-cpy.h: New file.
8898
8899 2010-01-09  Bruno Haible  <bruno@clisp.org>
8900
8901         Tests for module 'unistr/u32-uctomb'.
8902         * modules/unistr/u32-uctomb-tests: New file.
8903         * tests/unistr/test-u32-uctomb.c: New file.
8904
8905         Tests for module 'unistr/u16-uctomb'.
8906         * modules/unistr/u16-uctomb-tests: New file.
8907         * tests/unistr/test-u16-uctomb.c: New file.
8908
8909         Tests for module 'unistr/u8-uctomb'.
8910         * modules/unistr/u8-uctomb-tests: New file.
8911         * tests/unistr/test-u8-uctomb.c: New file.
8912
8913         Tests for module 'unistr/u32-mbtoucr'.
8914         * modules/unistr/u32-mbtoucr-tests: New file.
8915         * tests/unistr/test-u32-mbtoucr.c: New file.
8916
8917         Tests for module 'unistr/u16-mbtoucr'.
8918         * modules/unistr/u16-mbtoucr-tests: New file.
8919         * tests/unistr/test-u16-mbtoucr.c: New file.
8920
8921         Tests for module 'unistr/u8-mbtoucr'.
8922         * modules/unistr/u8-mbtoucr-tests: New file.
8923         * tests/unistr/test-u8-mbtoucr.c: New file.
8924
8925         Tests for module 'unistr/u32-mbtouc'.
8926         * modules/unistr/u32-mbtouc-tests: New file.
8927         * tests/unistr/test-u32-mbtouc.c: New file.
8928
8929         Tests for module 'unistr/u16-mbtouc'.
8930         * modules/unistr/u16-mbtouc-tests: New file.
8931         * tests/unistr/test-u16-mbtouc.c: New file.
8932
8933         Tests for module 'unistr/u8-mbtouc'.
8934         * modules/unistr/u8-mbtouc-tests: New file.
8935         * tests/unistr/test-u8-mbtouc.c: New file.
8936
8937         Tests for module 'unistr/u32-mbtouc-unsafe'.
8938         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8939         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8940         * tests/unistr/test-u32-mbtouc.h: New file.
8941
8942         Tests for module 'unistr/u16-mbtouc-unsafe'.
8943         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8944         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8945         * tests/unistr/test-u16-mbtouc.h: New file.
8946
8947         Tests for module 'unistr/u8-mbtouc-unsafe'.
8948         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8949         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8950         * tests/unistr/test-u8-mbtouc.h: New file.
8951
8952         Tests for module 'unistr/u32-mblen'.
8953         * modules/unistr/u32-mblen-tests: New file.
8954         * tests/unistr/test-u32-mblen.c: New file.
8955
8956         Tests for module 'unistr/u16-mblen'.
8957         * modules/unistr/u16-mblen-tests: New file.
8958         * tests/unistr/test-u16-mblen.c: New file.
8959
8960         Tests for module 'unistr/u8-mblen'.
8961         * modules/unistr/u8-mblen-tests: New file.
8962         * tests/unistr/test-u8-mblen.c: New file.
8963
8964         Tests for module 'unistr/u32-to-u16'.
8965         * modules/unistr/u32-to-u16-tests: New file.
8966         * tests/unistr/test-u32-to-u16.c: New file.
8967
8968         Tests for module 'unistr/u32-to-u8'.
8969         * modules/unistr/u32-to-u8-tests: New file.
8970         * tests/unistr/test-u32-to-u8.c: New file.
8971
8972         Tests for module 'unistr/u16-to-u32'.
8973         * modules/unistr/u16-to-u32-tests: New file.
8974         * tests/unistr/test-u16-to-u32.c: New file.
8975
8976         Tests for module 'unistr/u16-to-u8'.
8977         * modules/unistr/u16-to-u8-tests: New file.
8978         * tests/unistr/test-u16-to-u8.c: New file.
8979
8980         Tests for module 'unistr/u8-to-u32'.
8981         * modules/unistr/u8-to-u32-tests: New file.
8982         * tests/unistr/test-u8-to-u32.c: New file.
8983
8984         Tests for module 'unistr/u8-to-u16'.
8985         * modules/unistr/u8-to-u16-tests: New file.
8986         * tests/unistr/test-u8-to-u16.c: New file.
8987
8988         Tests for module 'unistr/u32-check'.
8989         * modules/unistr/u32-check-tests: New file.
8990         * tests/unistr/test-u32-check.c: New file.
8991
8992         Tests for module 'unistr/u16-check'.
8993         * modules/unistr/u16-check-tests: New file.
8994         * tests/unistr/test-u16-check.c: New file.
8995
8996         Tests for module 'unistr/u8-check'.
8997         * modules/unistr/u8-check-tests: New file.
8998         * tests/unistr/test-u8-check.c: New file.
8999
9000         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
9001         (category_equals): New function.
9002         (main): Add more tests.
9003         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
9004
9005         * tests/unictype/test-bidi_byname.c (main): Add more tests.
9006
9007 2010-01-10  Bruno Haible  <bruno@clisp.org>
9008
9009         unistr/u*-strcoll: Try harder to distinguish different strings.
9010         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
9011         compare s1 and s2 to see if they are different.
9012
9013 2010-01-10  Bruno Haible  <bruno@clisp.org>
9014
9015         unistr/u*-stpncpy: Fix the return value.
9016         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
9017         description of the return value consistent with stpncpy in glibc.
9018         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
9019         written non-NUL unit.
9020
9021 2010-01-10  Bruno Haible  <bruno@clisp.org>
9022
9023         unistr/u*-next: Add missing dependencies.
9024         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
9025         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
9026         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
9027
9028 2010-01-10  Bruno Haible  <bruno@clisp.org>
9029
9030         unistr/u8-mbsnlen: Fix return value for incomplete character.
9031         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
9032         u8_mblen.
9033         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
9034         Remove unistr/u8-mblen.
9035         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
9036         u16_mblen.
9037         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
9038         Remove unistr/u16-mblen.
9039
9040 2010-01-10  Bruno Haible  <bruno@clisp.org>
9041
9042         wchar: Fix compilation error when <wchar.h> is used from coreutils.
9043         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
9044         Reported by Brian Gough <bjg@gnu.org> and
9045         Chris Clayton <chris2553@googlemail.com> via
9046         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
9047
9048 2010-01-09  Bruno Haible  <bruno@clisp.org>
9049
9050         unistr/u16-to-u32: Reject invalid input.
9051         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
9052         u16_mbtouc.
9053         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
9054         Remove unistr/u16-mbtouc.
9055
9056         unistr/u16-to-u8: Reject invalid input.
9057         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
9058         u16_mbtouc.
9059         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
9060         Remove unistr/u16-mbtouc.
9061
9062         unistr/u8-to-u32: Reject invalid input.
9063         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
9064         u8_mbtouc.
9065         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
9066         Remove unistr/u8-mbtouc.
9067
9068         unistr/u8-to-u16: Reject invalid input.
9069         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
9070         u8_mbtouc.
9071         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
9072         Remove unistr/u8-mbtouc.
9073
9074 2010-01-09  Bruno Haible  <bruno@clisp.org>
9075
9076         Tests for module 'getlogin'.
9077         * modules/getlogin-tests: New file.
9078         * tests/test-getlogin.c: New file.
9079
9080         New module 'getlogin'.
9081         * lib/unistd.in.h (getlogin): New declaration.
9082         * lib/getlogin.c: New file.
9083         * m4/getlogin.m4: New file.
9084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
9085         HAVE_GETLOGIN.
9086         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
9087         HAVE_GETLOGIN.
9088         * modules/getlogin: New file.
9089         * doc/posix-functions/getlogin.texi: Mention the new module.
9090         Reported by John W. Eaton <jwe@gnu.org>.
9091
9092 2010-01-09  Bruno Haible  <bruno@clisp.org>
9093
9094         getlogin_r: Support for native Windows.
9095         * lib/getlogin_r.c: Include <windows.h>
9096         (getlogin_r): Implement for native Windows.
9097         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
9098         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
9099         via John W. Eaton <jwe@gnu.org>.
9100
9101 2010-01-09  Bruno Haible  <bruno@clisp.org>
9102
9103         getlogin_r: Small fixes.
9104         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
9105         succeeds.
9106         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
9107         before testing whether getlogin_r is declared. No need to set
9108         HAVE_DECL_GETLOGIN_R to 1.
9109         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
9110
9111 2010-01-09  Bruno Haible  <bruno@clisp.org>
9112
9113         * lib/unistd.in.h (getlogin_r): Add comment.
9114
9115 2010-01-09  Bruno Haible  <bruno@clisp.org>
9116
9117         Tests for module 'getlogin_r'.
9118         * modules/getlogin_r-tests: New file.
9119         * tests/test-getlogin_r.c: New file.
9120
9121 2010-01-09  Jim Meyering  <meyering@redhat.com>
9122
9123         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
9124         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
9125         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
9126
9127 2010-01-08  Simon Josefsson  <simon@josefsson.org>
9128
9129         * lib/dup2.c (rpl_dup2): Improve comment.
9130
9131 2010-01-08  Eric Blake  <ebb9@byu.net>
9132
9133         maint.mk: allow packages to add makefile @@ exceptions
9134         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
9135         (sc_makefile_check): Rename...
9136         (sc_makefile_at_at_check): ...to this, and use hook.
9137
9138         dup2: work around mingw bug
9139         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
9140         Reported by Simon Josefsson.
9141
9142 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
9143
9144         glob: Fix C++ compilation.
9145         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
9146         C++.
9147
9148 2010-01-07  Bruno Haible  <bruno@clisp.org>
9149
9150         Fix indentation of wctype.in.h, broken since 2007-01-06.
9151         * lib/wctype.in.h: Fix indentation of preprocessor directives.
9152
9153 2010-01-07  Bruno Haible  <bruno@clisp.org>
9154
9155         mbslen: Avoid collision with system function.
9156         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9157         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9158         * m4/mbslen.m4: New file.
9159         * modules/mbslen (Files): Add it.
9160         (configure.ac): Invoke gl_MBSLEN.
9161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9162         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9163         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9164         via Ian Beckwith <ianb@erislabs.net>.
9165
9166 2010-01-07  Bruno Haible  <bruno@clisp.org>
9167
9168         dirent: Document the last fix.
9169         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9170
9171 2010-01-07  Bruno Haible  <bruno@clisp.org>
9172
9173         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9174         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9175         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9176         va_list are defined.
9177         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9178         Reported by Eric Blake.
9179
9180 2010-01-07  Bruno Haible  <bruno@clisp.org>
9181
9182         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9183         * modules/xlist (Depends-on): Add 'list',
9184         * modules/xoset (Depends-on): Add 'oset'.
9185         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9186
9187 2010-01-07  Bruno Haible  <bruno@clisp.org>
9188
9189         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9190         * doc/posix-functions/strncasecmp.texi: Likewise.
9191
9192 2010-01-07  Bruno Haible  <bruno@clisp.org>
9193
9194         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9195
9196 2010-01-07  John W. Eaton  <jwe@octave.org>
9197
9198         wctype: allow C++ use
9199         * lib/wctype.in.h: Add extern "C" block for C++.
9200
9201 2010-01-06  Eric Blake  <ebb9@byu.net>
9202
9203         maint.mk: detect incorrect GFDL usage
9204         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9205
9206 2010-01-06  Jim Meyering  <meyering@redhat.com>
9207         and Eric Blake  <ebb9@byu.net>
9208
9209         maint.mk: ignore multi-line copyright in NEWS
9210         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9211
9212 2010-01-06  Eric Blake  <ebb9@byu.net>
9213
9214         select: add missing dependency
9215         * modules/select-tests (Depends-on): Move sockets dependency...
9216         * modules/select (Depends-on): ...here.
9217         Reported by Ian Beckwith.
9218
9219         doc: regenerate INSTALL
9220         * doc/INSTALL: Reflect recent autoconf update.
9221         * doc/INSTALL.ISO: Likewise.
9222         * doc/INSTALL.UTF-8: Likewise.
9223
9224         pread: fix compilation on glibc
9225         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9226         Reported by Ralf Wildenhues.
9227
9228         dirent: fix test failure
9229         * lib/dirent.in.h (includes): Guarantee ino_t.
9230         Reported by Ralf Wildenhues.
9231
9232 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9233
9234         linkat, renameat: avoid bad free
9235         * lib/at-func2.c (at_func2): Fix typo.
9236         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9237
9238 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9239
9240         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9241         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9242         to avoid failure of symlink test later.
9243
9244 2010-01-06  Eric Blake  <ebb9@byu.net>
9245
9246         stdio, unistd: guarantee ssize_t
9247         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9248         2008 are exposed when needed.
9249         * lib/stdio.in.h (includes): Likewise.
9250         Reported by Ralf Wildenhues.
9251
9252 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9253
9254         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9255         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9256         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9257
9258 2010-01-06  Jim Meyering  <meyering@redhat.com>
9259
9260         readtokens: this module *does* require xalloc.h
9261         It uses only functions that were omitted by the old syntax-check rule.
9262         * lib/readtokens.c: Include "xalloc.h" once again.
9263         * modules/readtokens (Depends-on): Add xalloc.
9264         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9265
9266 2010-01-05  Eric Blake  <ebb9@byu.net>
9267
9268         maint: support 'make announcement' from a VPATH build
9269         * top/maint.mk (announcement): Look for correct NEWS file.
9270
9271 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9272
9273         utimens (fdutimens): ignore a negative FD, per contract
9274         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9275         when we have a valid file descriptor.  Otherwise, using a brand
9276         new glibc (with just-patched futimens that now fails with EBADF)
9277         would cause this function to fail with ENOSYS.
9278         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9279         See also http://bugzilla.redhat.com/552320.
9280
9281 2010-01-05  Eric Blake  <ebb9@byu.net>
9282
9283         strcase: document what it provides
9284         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9285         gnulib module.
9286         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9287         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9288
9289 2010-01-05  Jim Meyering  <meyering@redhat.com>
9290
9291         maint: remove useless inclusions of "xalloc.h"
9292         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9293         * lib/readtokens.c: Likewise.
9294         * lib/same.c: Likewise.
9295         * modules/getloadavg (Depends-on): Remove xalloc.
9296         * modules/readtokens: Likewise.
9297         * modules/same: Likewise.
9298
9299         maint.mk: include 4 more function names in alloca.h-checking regexp
9300         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9301         regexp.  Before, we would give a false-positive (saying alloca.h
9302         is included unnecessarily) when the only uses involved omitted symbols.
9303
9304         xalloc.h: use consistent formatting
9305         * lib/xalloc.h: Move declarations to start in the first column.
9306
9307 2010-01-05  Eric Blake  <ebb9@byu.net>
9308
9309         mkdir: avoid xalloc
9310         * lib/mkdir.c (includes): Drop unused header.
9311         Reported by John W. Eaton.
9312
9313 2010-01-04  Jim Meyering  <meyering@redhat.com>
9314
9315         nl_langinfo: avoid configure-time syntax error
9316         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9317         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9318         the empty string.  Don't let that provoke a shell syntax error.
9319
9320         regcomp, regexec, fnmatch: avoid array bounds read error
9321         * lib/regcomp.c (build_equiv_class): From glibc:
9322         Use only the low 24 bits of a findidx return value as an index
9323         into the weights array.  Patch by Ulrich Drepper:
9324         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9325         * lib/regexec.c (check_node_accept_bytes): Likewise.
9326         * lib/fnmatch_loop.c (FCT): Likewise.
9327
9328         regcomp: skip collseq lookup when there are no rules
9329         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9330         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9331
9332         regcomp: recognize ill-formed { } expressions
9333         * lib/regcomp.c (parse_dup_op): From glibc:
9334         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9335
9336         regcomp: fix typo in comment
9337         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9338         s/satisfy/satisfies/.
9339
9340         regcomp: sync from glibc: remove dead store
9341         * lib/regcomp.c (duplicate_node_closure): Remove useless
9342         search_duplicated_node call and dead store.
9343
9344         regcomp: sync from glibc; always use nl_langinfo
9345         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9346         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9347         * modules/regex (Depends-on): Add nl_langinfo.
9348
9349 2010-01-04  Eric Blake  <ebb9@byu.net>
9350
9351         fdopendir: fix configure test
9352         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9353
9354 2010-01-01  Bruno Haible  <bruno@clisp.org>
9355
9356         wchar: Remove unused configure check.
9357         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9358
9359 2010-01-01  Eric Blake  <ebb9@byu.net>
9360
9361         headers: make check of system header explicit
9362         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9363         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9364         ourselves.
9365         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9366         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9367         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9368         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9369         internals.
9370         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9371         missing.
9372         Suggested by Bruno Haible.
9373
9374 2010-01-01  Jim Meyering  <meyering@redhat.com>
9375
9376         ChangeLog: tweak to eliminate unnecessary copyright line
9377         * ChangeLog: Remove a copyright line that was mistakenly updated
9378         by today's update-copyright run.  Reported by Eric Blake.
9379
9380         test-update-copyright: don't let envvar setting cause test failure
9381         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9382
9383 2010-01-01  Bruno Haible  <bruno@clisp.org>
9384
9385         localename: Avoid gcc warning.
9386         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9387         function if it is not used.
9388
9389 2010-01-01  Jim Meyering  <meyering@redhat.com>
9390
9391         update nearly all FSF copyright year lists to include 2010
9392         Use the same procedure as for 2009, outlined in
9393         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9394
9395         version-etc: set COPYRIGHT_YEAR to 2010
9396         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9397
9398 2009-12-31  Eric Blake  <ebb9@byu.net>
9399
9400         doc: correct availability of cygwin 1.5.x getopt
9401         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9402         variables.
9403         * doc/posix-functions/opterr.texi (opterr): Likewise.
9404         * doc/posix-functions/optind.texi (optind): Likewise.
9405         * doc/posix-functions/optopt.texi (optopt): Likewise.
9406         * doc/posix-functions/tzname.texi (tzname): Likewise.
9407
9408         openat: update maintainer
9409         * modules/openat (Maintainer): Add myself.
9410
9411         utimens: avoid shadowing warning
9412         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9413         buffers into one, to avoid shadowing, as well as avoiding a
9414         redundant stat.
9415         Reported by Jim Meyering.
9416
9417         test-dup2: avoid compiler warning
9418         * tests/test-dup2.c (is_inheritable): Only define if used.
9419
9420 2010-01-01  Bruno Haible  <bruno@clisp.org>
9421
9422         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9423         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9424         defined, use wctomb instead of wcrtomb.
9425
9426 2010-01-01  Bruno Haible  <bruno@clisp.org>
9427
9428         iconv: Reject native Solaris iconv.
9429         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9430         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9431
9432 2009-12-31  Bruno Haible  <bruno@clisp.org>
9433
9434         * tests/test-signal.c (main): Remove test of 'SIG'.
9435
9436 2009-12-31  Bruno Haible  <bruno@clisp.org>
9437
9438         spawn: Fix incomplete fix.
9439         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9440         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9441         warnings for GNULIB_POSIXCHECK again.
9442         Reported by Eric Blake.
9443
9444 2009-12-31  Bruno Haible  <bruno@clisp.org>
9445
9446         Avoid namespace pollution on glibc systems.
9447         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9448         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9449         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9450         glibc systems.
9451
9452 2009-12-31  Bruno Haible  <bruno@clisp.org>
9453
9454         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9455         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9456         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9457         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9458         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9459         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9460         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9461
9462 2009-12-31  Bruno Haible  <bruno@clisp.org>
9463
9464         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9465         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9466         afterwards.
9467
9468 2009-12-31  Bruno Haible  <bruno@clisp.org>
9469
9470         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9471         SYS_UTSNAME_H.
9472
9473 2009-12-31  Bruno Haible  <bruno@clisp.org>
9474
9475         spawn: Fix misapplied patch.
9476         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9477         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9478         warnings for GNULIB_POSIXCHECK.
9479
9480 2009-12-31  Bruno Haible  <bruno@clisp.org>
9481
9482         times: Update after sys_times changed.
9483         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9484         * modules/times (Files): Add it.
9485         (configure.ac): Invoke gl_FUNC_TIMES.
9486
9487 2009-12-31  Bruno Haible  <bruno@clisp.org>
9488
9489         Use AC_C_INLINE where necessary.
9490         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9491         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9493         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9494         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9495         * m4/mbiter.m4 (gl_MBITER): Likewise.
9496         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9497         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9498         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9499         * modules/u64 (configure.ac): Likewise.
9500
9501 2009-12-31  Bruno Haible  <bruno@clisp.org>
9502
9503         Use AC_C_INLINE instead of module 'inline' where possible.
9504         * modules/inline (Description): Clarify purpose.
9505         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9506         * modules/count-one-bits (Depends-on): Remove inline.
9507         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9508         * modules/openat (Depends-on): Remove inline.
9509         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9510         instead of depending on module 'inline'.
9511         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9512         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9513         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9514         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9515         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9516         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9517         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9518         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9519         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9520         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9521         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9522         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9523         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9524         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9525         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9526         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9527         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9528         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9529         Likewise.
9530         * modules/unictype/property-ascii-hex-digit (Depends-on,
9531         configure.ac): Likewise.
9532         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9533         configure.ac): Likewise.
9534         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9535         configure.ac): Likewise.
9536         * modules/unictype/property-bidi-block-separator (Depends-on,
9537         configure.ac): Likewise.
9538         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9539         configure.ac): Likewise.
9540         * modules/unictype/property-bidi-common-separator (Depends-on,
9541         configure.ac): Likewise.
9542         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9543         Likewise.
9544         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9545         configure.ac): Likewise.
9546         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9547         configure.ac): Likewise.
9548         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9549         configure.ac): Likewise.
9550         * modules/unictype/property-bidi-european-digit (Depends-on,
9551         configure.ac): Likewise.
9552         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9553         configure.ac): Likewise.
9554         * modules/unictype/property-bidi-left-to-right (Depends-on,
9555         configure.ac): Likewise.
9556         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9557         configure.ac): Likewise.
9558         * modules/unictype/property-bidi-other-neutral (Depends-on,
9559         configure.ac): Likewise.
9560         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9561         Likewise.
9562         * modules/unictype/property-bidi-segment-separator (Depends-on,
9563         configure.ac): Likewise.
9564         * modules/unictype/property-bidi-whitespace (Depends-on,
9565         configure.ac): Likewise.
9566         * modules/unictype/property-combining (Depends-on, configure.ac):
9567         Likewise.
9568         * modules/unictype/property-composite (Depends-on, configure.ac):
9569         Likewise.
9570         * modules/unictype/property-currency-symbol (Depends-on,
9571         configure.ac): Likewise.
9572         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9573         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9574         Likewise.
9575         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9576         configure.ac): Likewise.
9577         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9578         Likewise.
9579         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9580         Likewise.
9581         * modules/unictype/property-extender (Depends-on, configure.ac):
9582         Likewise.
9583         * modules/unictype/property-format-control (Depends-on, configure.ac):
9584         Likewise.
9585         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9586         Likewise.
9587         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9588         Likewise.
9589         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9590         Likewise.
9591         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9592         Likewise.
9593         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9594         Likewise.
9595         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9596         Likewise.
9597         * modules/unictype/property-id-start (Depends-on, configure.ac):
9598         Likewise.
9599         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9600         Likewise.
9601         * modules/unictype/property-ids-binary-operator (Depends-on,
9602         configure.ac): Likewise.
9603         * modules/unictype/property-ids-trinary-operator (Depends-on,
9604         configure.ac): Likewise.
9605         * modules/unictype/property-ignorable-control (Depends-on,
9606         configure.ac): Likewise.
9607         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9608         Likewise.
9609         * modules/unictype/property-join-control (Depends-on, configure.ac):
9610         Likewise.
9611         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9612         Likewise.
9613         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9614         Likewise.
9615         * modules/unictype/property-logical-order-exception (Depends-on,
9616         configure.ac): Likewise.
9617         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9618         Likewise.
9619         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9620         * modules/unictype/property-non-break (Depends-on, configure.ac):
9621         Likewise.
9622         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9623         Likewise.
9624         * modules/unictype/property-numeric (Depends-on, configure.ac):
9625         Likewise.
9626         * modules/unictype/property-other-alphabetic (Depends-on,
9627         configure.ac): Likewise.
9628         * modules/unictype/property-other-default-ignorable-code-point
9629         (Depends-on, configure.ac): Likewise.
9630         * modules/unictype/property-other-grapheme-extend (Depends-on,
9631         configure.ac): Likewise.
9632         * modules/unictype/property-other-id-continue (Depends-on,
9633         configure.ac): Likewise.
9634         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9635         Likewise.
9636         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9637         Likewise.
9638         * modules/unictype/property-other-math (Depends-on, configure.ac):
9639         Likewise.
9640         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9641         Likewise.
9642         * modules/unictype/property-paired-punctuation (Depends-on,
9643         configure.ac): Likewise.
9644         * modules/unictype/property-paragraph-separator (Depends-on,
9645         configure.ac): Likewise.
9646         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9647         Likewise.
9648         * modules/unictype/property-pattern-white-space (Depends-on,
9649         configure.ac): Likewise.
9650         * modules/unictype/property-private-use (Depends-on, configure.ac):
9651         Likewise.
9652         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9653         Likewise.
9654         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9655         Likewise.
9656         * modules/unictype/property-radical (Depends-on, configure.ac):
9657         Likewise.
9658         * modules/unictype/property-sentence-terminal (Depends-on,
9659         configure.ac): Likewise.
9660         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9661         Likewise.
9662         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9663         * modules/unictype/property-terminal-punctuation (Depends-on,
9664         configure.ac): Likewise.
9665         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9666         Likewise.
9667         * modules/unictype/property-unassigned-code-value (Depends-on,
9668         configure.ac): Likewise.
9669         * modules/unictype/property-unified-ideograph (Depends-on,
9670         configure.ac): Likewise.
9671         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9672         Likewise.
9673         * modules/unictype/property-variation-selector (Depends-on,
9674         configure.ac): Likewise.
9675         * modules/unictype/property-white-space (Depends-on, configure.ac):
9676         Likewise.
9677         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9678         Likewise.
9679         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9680         Likewise.
9681         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9682         Likewise.
9683         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9684         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9685         Likewise.
9686
9687 2009-12-31  Bruno Haible  <bruno@clisp.org>
9688
9689         Remove unnecessary AC_C_INLINE invocation.
9690         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9691         since 2009-08-21.
9692
9693 2009-12-31  Jim Meyering  <meyering@redhat.com>
9694
9695         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9696         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9697         With this change, we can all remove the gpg_key_ID = ... definition
9698         from our respective cfg.mk files.
9699
9700         maint.mk: create announcement template in ~/, not in /tmp
9701         * top/maint.mk (emit_upload_commands): Adjust.
9702         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9703         Remove temporary file, .ci-msg.
9704
9705 2009-12-31  Eric Blake  <ebb9@byu.net>
9706
9707         link-warning: always build headers with link warnings
9708         * modules/arpa_inet (Makefile.am): Always build replacement
9709         header.
9710         * modules/ctype (Makefile.am): Likewise.
9711         * modules/dirent (Makefile.am): Likewise.
9712         * modules/inttypes (Makefile.am): Likewise.
9713         * modules/langinfo (Makefile.am): Likewise.
9714         * modules/locale (Makefile.am): Likewise.
9715         * modules/spawn (Makefile.am): Likewise.
9716         * modules/sys_file (Makefile.am): Likewise.
9717         * modules/sys_ioctl (Makefile.am): Likewise.
9718         * modules/sys_select (Makefile.am): Likewise.
9719         * modules/sys_socket (Makefile.am): Likewise.
9720         * modules/sys_times (Makefile.am): Likewise.
9721         * modules/sys_utsname (Makefile.am): Likewise.
9722         * modules/sys_wait (Makefile.am): Likewise.
9723         * modules/wchar (Makefile.am): Likewise.
9724         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9725         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9726         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9727         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9728         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9729         Likewise.
9730         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9731         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9732         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9733         Likewise.
9734         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9735         Likewise.
9736         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9737         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9738         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9739         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9740         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9741         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9742         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9743         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9744         (gl_WCHAR_H_DEFAULTS): Likewise.
9745
9746 2009-12-31  Eric Blake  <ebb9@byu.net>
9747
9748         signal, spawn: use link warnings
9749         * lib/signal.in.h (sigset_t): Make unconditional.
9750         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9751         (sigpending, sigprocmask, sigaction): Add link warnings.
9752         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9753         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9754         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9755         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9756         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9757         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9758         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9759         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9760         (posix_spawn_file_actions_destroy)
9761         (posix_spawn_file_actions_addopen)
9762         (posix_spawn_file_actions_addclose)
9763         (posix_spawn_file_actions_adddup2): Likewise.
9764         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9765         * tests/test-signal.c (main): Enhance test.
9766
9767         spawn: improve wrapper support
9768         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9769         (gl_SPAWN_H_DEFAULTS): New defaults.
9770         * modules/spawn (Makefile.am): Substitute them.
9771         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9772         Only declare if missing or broken.
9773
9774         sys_times, sys_utsname: use include_next
9775         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9776         header.
9777         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9778         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9779         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9780         * modules/sys_times (Depends-on): Add include_next.
9781         (Makefile.am): Substitute additional values.
9782         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9783         * lib/sys_times.in.h (includes): Include native header, if
9784         available.
9785         * lib/sys_utsname.in.h (includes): Likewise.
9786         * tests/test-sys_times.c (main): Enhance test.
9787
9788         fdutimensat: revert prior patch
9789         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9790         utimens.h.
9791         Reported by Bruno Haible.
9792
9793 2009-12-30  Eric Blake  <ebb9@byu.net>
9794
9795         sys_wait: drop link-warning dependency
9796         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9797         link-warning efforts.
9798         * lib/sys_wait.in.h: Likewise.
9799
9800         fdutimensat: remove bogus dependency
9801         * modules/fdutimensat (Depends-on): Drop inline.
9802
9803         unistd: fix typo
9804         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9805
9806 2009-12-30  Bruno Haible  <bruno@clisp.org>
9807
9808         Fix compilation error with Solaris cc.
9809         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9810         * lib/unicase/u16-is-invariant.c: Likewise.
9811         * lib/unicase/u32-is-invariant.c: Likewise.
9812         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9813
9814 2009-12-30  Bruno Haible  <bruno@clisp.org>
9815
9816         Fix test crash.
9817         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9818         locales.
9819         Reported by Simon Josefsson <simon@josefsson.org>.
9820
9821 2009-12-30  Bruno Haible  <bruno@clisp.org>
9822
9823         Fix compilation error on most platforms.
9824         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9825         Reported by Simon Josefsson <simon@josefsson.org>
9826         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9827
9828 2009-12-30  Eric Blake  <ebb9@byu.net>
9829
9830         futimens, utimensat: work around ntfs-3g bug
9831         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9832         a ctime bug is present, and expand workaround to cover ntfs-3g.
9833         * lib/utimens.c (fdutimens, lutimens): Likewise.
9834         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9835         (validate_timespec): Adjust return value.
9836         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9837         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9838         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9839
9840 2009-12-29  Eric Blake  <ebb9@byu.net>
9841
9842         link-warning: make usage consistent
9843         * modules/ctype (Depends-on): Add link-warning.
9844         (Makefile.am): Update rules accordingly.
9845         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9846         * modules/locale (Depends-on, Makefile.am): Likewise.
9847         * modules/sys_file (Makefile.am): Likewise.
9848         * modules/getopt-posix (Makefile.am): Delete unused link warning
9849         efforts.
9850         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9851         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9852         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9853         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9854
9855         stdio: remove unused variables
9856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9857         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9858         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9859
9860         tests: test more substitute headers
9861         * modules/ctype-tests: New file.
9862         * modules/dirent-tests: Likewise.
9863         * modules/spawn-tests: Likewise.
9864         * modules/sys_file-tests: Likewise.
9865         * modules/sys_ioctl-tests: Likewise.
9866         * modules/sys_wait-tests: Likewise.
9867         * tests/test-ctype.c: Likewise.
9868         * tests/test-dirent.c: Likewise.
9869         * tests/test-spawn.c: Likewise.
9870         * tests/test-sys_file.c: Likewise.
9871         * tests/test-sys_ioctl.c: Likewise.
9872         * tests/test-sys_wait.c: Likewise.
9873         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9874         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9875         whether or not flock is in use.
9876
9877         tests: remove License section from module
9878         * modules/arpa_inet-tests: Remove unneeded section.
9879         * modules/byteswap-tests: Likewise.
9880         * modules/ceilf-tests: Likewise.
9881         * modules/ceill-tests: Likewise.
9882         * modules/crypto/des-tests: Likewise.
9883         * modules/crypto/gc-arcfour-tests: Likewise.
9884         * modules/crypto/gc-arctwo-tests: Likewise.
9885         * modules/crypto/gc-des-tests: Likewise.
9886         * modules/crypto/gc-hmac-md5-tests: Likewise.
9887         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9888         * modules/crypto/gc-md2-tests: Likewise.
9889         * modules/crypto/gc-md4-tests: Likewise.
9890         * modules/crypto/gc-md5-tests: Likewise.
9891         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9892         * modules/crypto/gc-rijndael-tests: Likewise.
9893         * modules/crypto/gc-sha1-tests: Likewise.
9894         * modules/crypto/gc-tests: Likewise.
9895         * modules/crypto/md2-tests: Likewise.
9896         * modules/crypto/md4-tests: Likewise.
9897         * modules/fcntl-h-tests: Likewise.
9898         * modules/floorf-tests: Likewise.
9899         * modules/floorl-tests: Likewise.
9900         * modules/frexp-nolibm-tests: Likewise.
9901         * modules/frexp-tests: Likewise.
9902         * modules/frexpl-nolibm-tests: Likewise.
9903         * modules/frexpl-tests: Likewise.
9904         * modules/getaddrinfo-tests: Likewise.
9905         * modules/inttypes-tests: Likewise.
9906         * modules/isfinite-tests: Likewise.
9907         * modules/isinf-tests: Likewise.
9908         * modules/ldexpl-tests: Likewise.
9909         * modules/locale-tests: Likewise.
9910         * modules/math-tests: Likewise.
9911         * modules/netdb-tests: Likewise.
9912         * modules/netinet_in-tests: Likewise.
9913         * modules/printf-frexp-tests: Likewise.
9914         * modules/printf-frexpl-tests: Likewise.
9915         * modules/priv-set-tests: Likewise.
9916         * modules/random_r-tests: Likewise.
9917         * modules/round-tests: Likewise.
9918         * modules/roundf-tests: Likewise.
9919         * modules/roundl-tests: Likewise.
9920         * modules/search-tests: Likewise.
9921         * modules/select-tests: Likewise.
9922         * modules/signal-tests: Likewise.
9923         * modules/stdbool-tests: Likewise.
9924         * modules/stddef-tests: Likewise.
9925         * modules/stdint-tests: Likewise.
9926         * modules/stdio-tests: Likewise.
9927         * modules/stdlib-tests: Likewise.
9928         * modules/string-tests: Likewise.
9929         * modules/strings-tests: Likewise.
9930         * modules/sys_select-tests: Likewise.
9931         * modules/sys_socket-tests: Likewise.
9932         * modules/sys_stat-tests: Likewise.
9933         * modules/sys_time-tests: Likewise.
9934         * modules/sys_utsname-tests: Likewise.
9935         * modules/sysexits-tests: Likewise.
9936         * modules/time-tests: Likewise.
9937         * modules/trunc-tests: Likewise.
9938         * modules/truncf-tests: Likewise.
9939         * modules/truncl-tests: Likewise.
9940         * modules/tsearch-tests: Likewise.
9941         * modules/unistd-tests: Likewise.
9942         * modules/wchar-tests: Likewise.
9943         * modules/wctype-tests: Likewise.
9944
9945         tests: fix license on several tests
9946         * tests/test-des.c: Update to GPLv3+.
9947         * tests/test-flock.c: Likewise.
9948         * tests/test-fsync.c: Likewise.
9949         * tests/test-futimens.h: Likewise.
9950         * tests/test-gc-arcfour.c: Likewise.
9951         * tests/test-gc-arctwo.c: Likewise.
9952         * tests/test-gc-des.c: Likewise.
9953         * tests/test-gc-hmac-md5.c: Likewise.
9954         * tests/test-gc-hmac-sha1.c: Likewise.
9955         * tests/test-gc-md2.c: Likewise.
9956         * tests/test-gc-md4.c: Likewise.
9957         * tests/test-gc-md5.c: Likewise.
9958         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9959         * tests/test-gc-rijndael.c: Likewise.
9960         * tests/test-gc-sha1.c: Likewise.
9961         * tests/test-gc.c: Likewise.
9962         * tests/test-getcwd.c: Likewise.
9963         * tests/test-link.c: Likewise.
9964         * tests/test-link.h: Likewise.
9965         * tests/test-lutimens.h: Likewise.
9966         * tests/test-md2.c: Likewise.
9967         * tests/test-md4.c: Likewise.
9968         * tests/test-mkdir.h: Likewise.
9969         * tests/test-rename.c: Likewise.
9970         * tests/test-rename.h: Likewise.
9971         * tests/test-safe-alloc.c: Likewise.
9972         * tests/test-utimens-common.h: Likewise.
9973         * tests/test-utimens.h: Likewise.
9974
9975         maint: sync license texts
9976         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9977         * doc/gpl-3.0.texi: Revert copyright year update.
9978         * doc/lgpl-3.0.texi: Likewise.
9979
9980 2009-12-29  Jim Meyering  <meyering@redhat.com>
9981
9982         update nearly all FSF copyright year lists to include 2009
9983         The files named by the following are exempted:
9984             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9985               test -f "$dst" && { echo "$dst"; continue; }
9986               test -d "$dst" || continue
9987               echo "$dst"/$(basename "$src")
9988             done > exempt
9989             git ls-files tests/unictype >> exempt
9990         In the remaining files, convert to all-interval notation if
9991         - there is already at least one year interval like 2000-2003
9992         - the file is maintained by me
9993         - the file is in lib/uni*/, where that style already prevails
9994         Otherwise, use update-copyright's default.
9995
9996 2009-12-29  Simon Josefsson  <simon@josefsson.org>
9997         and Eric Blake  <ebb9@byu.net>
9998
9999         tests: don't require debug system() to pass
10000         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
10001         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10002         * tests/test-unlink.h (test_unlink_func): Likewise.
10003         * tests/test-fstatat.c (main): ...into callers.
10004         * tests/test-lstat.c (main): Likewise.
10005         * tests/test-rmdir.c (main): Likewise.
10006         * tests/test-unlink.c (main): Likewise.
10007         * tests/test-unlinkat.c (main): Likewise.
10008         * tests/test-areadlink-with-size.c (main): Don't require a
10009         debug-only system call to pass, aiding cross-testing to mingw.
10010         * tests/test-areadlink.c (main): Likewise.
10011         * tests/test-areadlinkat-with-size.c (main): Likewise.
10012         * tests/test-areadlinkat.c (main): Likewise.
10013         * tests/test-canonicalize-lgpl.c (main): Likewise.
10014         * tests/test-canonicalize.c (main): Likewise.
10015         * tests/test-chown.c (main): Likewise.
10016         * tests/test-fchownat.c (main): Likewise.
10017         * tests/test-lchown.c (main): Likewise.
10018         * tests/test-fdutimensat.c (main): Likewise.
10019         * tests/test-futimens.c (main): Likewise.
10020         * tests/test-link.c (main): Likewise.
10021         * tests/test-linkat.c (main): Likewise.
10022         * tests/test-mkdir.c (main): Likewise.
10023         * tests/test-mkdirat.c (main): Likewise.
10024         * tests/test-mkfifo.c (main): Likewise.
10025         * tests/test-mkfifoat.c (main): Likewise.
10026         * tests/test-mknod.c (main): Likewise.
10027         * tests/test-readlink.c (main): Likewise.
10028         * tests/test-remove.c (main): Likewise.
10029         * tests/test-rename.c (main): Likewise.
10030         * tests/test-renameat.c (main): Likewise.
10031         * tests/test-symlink.c (main): Likewise.
10032         * tests/test-symlinkat.c (main): Likewise.
10033         * tests/test-utimens.c (main): Likewise.
10034         * tests/test-utimensat.c (main): Likewise.
10035
10036 2009-12-29  Simon Josefsson  <simon@josefsson.org>
10037
10038         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
10039         on $(UNUSED_PARAMETER_H) to avoid build failure.
10040
10041 2009-12-28  Jim Meyering  <meyering@redhat.com>
10042
10043         update-copyright: you may specify a max. line length other than 72
10044         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10045
10046         maint: use consistent FSF copyright line syntax
10047         * lib/posixtm.c: Add missing comma in FSF copyright line.
10048         * lib/posixtm.h: Likewise.
10049         * lib/getugroups.c: Add missing ", Inc.".
10050
10051         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
10052         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
10053         FSF copyright line.  Remove trailing blanks.
10054
10055 2009-12-28  Eric Blake  <ebb9@byu.net>
10056
10057         test-dup2: reduce dependencies
10058         * modules/cloexec (Configure.ac): Set witness.
10059         * modules/dup2-tests (Depends-on): Drop cloexec.
10060         * tests/test-dup2.c (main): Skip portion of test if cloexec module
10061         not present.
10062         Suggested by Bruno Haible.
10063
10064 2009-12-26  Bruno Haible  <bruno@clisp.org>
10065
10066         Remove an unneeded dependency.
10067         * modules/fseterr (Depends-on): Remove dup2.
10068
10069 2009-12-26  Eric Blake  <ebb9@byu.net>
10070
10071         tests: use macros.h in more places
10072         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
10073         (ASSERT_STREAM): Provide default of stderr.
10074         * tests/test-dirent-safer.c: Include macros.h, using alternate
10075         stream for assertions.
10076         * tests/test-dup-safer.c: Likewise.
10077         * tests/test-freopen-safer.c: Likewise.
10078         * tests/test-getopt.c: Likewise.
10079         * tests/test-openat-safer.c: Likewise.
10080         * tests/test-pipe.c: Likewise.
10081         * tests/test-popen-safer.c: Likewise.
10082         * modules/dirent-safer-tests (Files): Include macros.h.
10083         * modules/unistd-safer-tests (Files): Likewise.
10084         * modules/freopen-safer-tests (Files): Likewise.
10085         * modules/getopt-posix-tests (Files): Likewise.
10086         * modules/openat-safer-tests (Files): Likewise.
10087         * modules/pipe-tests (Files): Likewise.
10088
10089 2009-12-26  Bruno Haible  <bruno@clisp.org>
10090
10091         javacomp: Portability fix.
10092         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
10093         that it also works on Solaris.
10094
10095 2009-12-26  Bruno Haible  <bruno@clisp.org>
10096
10097         localename: Fix storage allocation of gl_locale_name_thread's result.
10098         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
10099         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
10100         all platforms that have 'uselocale'.
10101         (gl_locale_name_thread_unsafe): New function, extracted from
10102         gl_locale_name_thread.
10103         (gl_locale_name_thread): Call struniq on all platforms that have
10104         'uselocale'.
10105         * tests/test-localename.c (test_locale_name_thread): Check that the
10106         resulting strings are permanently allocated.
10107         * modules/localename-tests (Depends-on): Add strdup.
10108
10109 2009-12-26  Bruno Haible  <bruno@clisp.org>
10110
10111         * tests/test-localename.c (categories): Fill in the strings.
10112
10113 2009-12-26  Jim Meyering  <meyering@redhat.com>
10114
10115         isdir: complete the removal of m4/isdir.m4
10116         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
10117
10118         isdir: clean up, since at least grep still uses it
10119         * lib/isdir.c: Include "isdir.h".
10120         (S_ISDIR): Remove now-unneeded definition.
10121         * modules/isdir (Files): Add lib/isdir.h.
10122         * lib/isdir.h: New file, with declaration.
10123         * m4/isdir.m4: Remove file -- unneeded.
10124
10125 2009-12-25  Bruno Haible  <bruno@clisp.org>
10126
10127         selinux-h: Make generated .h files standalone.
10128         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
10129         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
10130         * lib/se-selinux.in.h: Likewise.
10131         * modules/selinux-h (Depends-on): Add unused-parameter.
10132         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
10133         selinux/selinux.h and selinux/context.h.
10134         Suggested by Eric Blake.
10135
10136 2009-12-25  Bruno Haible  <bruno@clisp.org>
10137
10138         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
10139         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
10140         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
10141         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
10142         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
10143
10144 2009-12-24  Bruno Haible  <bruno@clisp.org>
10145
10146         openat: Fix warning.
10147         * lib/openat-proc.c: Include <unistd.h>.
10148
10149 2009-12-24  Bruno Haible  <bruno@clisp.org>
10150
10151         New module 'unused-parameter'.
10152         * build-aux/unused-parameter.h: New file, extracted from earlier
10153         gnulib-common.m4.
10154         * modules/unused-parameter: New file.
10155         * lib/unistr.h: Include unused-parameter.h.
10156         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10157         _GL_UNUSED.
10158         * modules/unistr/base (Depends-on): Add unused-parameter.
10159
10160 2009-12-24  Bruno Haible  <bruno@clisp.org>
10161
10162         Add missing dependencies to 'extensions' module.
10163         * m4/extensions.m4: Add comment.
10164         * modules/accept4 (Depends-on): Add extensions.
10165         * modules/dup3 (Depends-on): Likewise.
10166         * modules/fcntl (Depends-on): Likewise.
10167         * modules/futimens (Depends-on): Likewise.
10168         * modules/mknod (Depends-on): Likewise.
10169         * modules/pipe2 (Depends-on): Likewise.
10170         * modules/stat-time (Depends-on): Likewise.
10171         * modules/strcasestr-simple (Depends-on): Likewise.
10172         * modules/strsignal (Depends-on): Likewise.
10173         * modules/utimensat (Depends-on): Likewise.
10174         * modules/localcharset (Depends-on): Likewise. Needed because of
10175         gl_FCNTL_O_FLAGS.
10176         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10177         AC_TYPE_MBSTATE_T.
10178         * modules/wcsnrtombs (Depends-on): Likewise.
10179         * modules/wcsrtombs (Depends-on): Likewise.
10180
10181 2009-12-24  Bruno Haible  <bruno@clisp.org>
10182
10183         binary-io: Avoid gcc warning due to SET_BINARY.
10184         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10185         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10186
10187 2009-12-24  Bruno Haible  <bruno@clisp.org>
10188
10189         Avoid future namespace pollution on glibc systems.
10190         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10191         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10192         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10193         glibc systems.
10194
10195 2009-12-24  Bruno Haible  <bruno@clisp.org>
10196
10197         Refactor common macros used in tests.
10198         * tests/macros.h: New file.
10199         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10200         and/or <stdlib.h>, if appropriate.
10201         (ASSERT, SIZEOF): Remove macros.
10202         * tests/test-areadlink-with-size.c: Likewise.
10203         * tests/test-areadlinkat.c: Likewise.
10204         * tests/test-areadlinkat-with-size.c: Likewise.
10205         * tests/test-argmatch.c: Likewise.
10206         * tests/test-argv-iter.c: Likewise.
10207         * tests/test-array-mergesort.c: Likewise.
10208         * tests/test-array_list.c: Likewise.
10209         * tests/test-array_oset.c: Likewise.
10210         * tests/test-avltree_list.c: Likewise.
10211         * tests/test-avltree_oset.c: Likewise.
10212         * tests/test-avltreehash_list.c: Likewise.
10213         * tests/test-base64.c: Likewise.
10214         * tests/test-binary-io.c: Likewise.
10215         * tests/test-bitrotate.c: Likewise.
10216         * tests/test-btowc.c: Likewise.
10217         * tests/test-byteswap.c: Likewise.
10218         * tests/test-c-ctype.c: Likewise.
10219         * tests/test-c-stack.c: Likewise.
10220         * tests/test-c-strcasecmp.c: Likewise.
10221         * tests/test-c-strcasestr.c: Likewise.
10222         * tests/test-c-strncasecmp.c: Likewise.
10223         * tests/test-c-strstr.c: Likewise.
10224         * tests/test-canonicalize-lgpl.c: Likewise.
10225         * tests/test-canonicalize.c: Likewise.
10226         * tests/test-carray_list.c: Likewise.
10227         * tests/test-ceilf1.c: Likewise.
10228         * tests/test-ceilf2.c: Likewise.
10229         * tests/test-ceill.c: Likewise.
10230         * tests/test-chown.c: Likewise.
10231         * tests/test-cloexec.c: Likewise.
10232         * tests/test-copy-acl.c: Likewise.
10233         * tests/test-copy-file.c: Likewise.
10234         * tests/test-count-one-bits.c: Likewise.
10235         * tests/test-dprintf-posix.c: Likewise.
10236         * tests/test-dup2.c: Likewise.
10237         * tests/test-dup3.c: Likewise.
10238         * tests/test-duplocale.c: Likewise.
10239         * tests/test-fbufmode.c: Likewise.
10240         * tests/test-fchdir.c: Likewise.
10241         * tests/test-fchownat.c: Likewise.
10242         * tests/test-fcntl-safer.c: Likewise.
10243         * tests/test-fcntl.c: Likewise.
10244         * tests/test-fdopendir.c: Likewise.
10245         * tests/test-fdutimensat.c: Likewise.
10246         * tests/test-fflush2.c: Likewise.
10247         * tests/test-file-has-acl.c: Likewise.
10248         * tests/test-filevercmp.c: Likewise.
10249         * tests/test-flock.c: Likewise.
10250         * tests/test-floorf1.c: Likewise.
10251         * tests/test-floorf2.c: Likewise.
10252         * tests/test-floorl.c: Likewise.
10253         * tests/test-fnmatch.c: Likewise.
10254         * tests/test-fopen.h: Likewise.
10255         * tests/test-fpending.c: Likewise.
10256         * tests/test-fprintf-posix.c: Likewise.
10257         * tests/test-fpurge.c: Likewise.
10258         * tests/test-freadable.c: Likewise.
10259         * tests/test-freadahead.c: Likewise.
10260         * tests/test-freading.c: Likewise.
10261         * tests/test-freadptr.c: Likewise.
10262         * tests/test-freadptr2.c: Likewise.
10263         * tests/test-freadseek.c: Likewise.
10264         * tests/test-freopen.c: Likewise.
10265         * tests/test-frexp.c: Likewise.
10266         * tests/test-frexpl.c: Likewise.
10267         * tests/test-fseek.c: Likewise.
10268         * tests/test-fseeko.c: Likewise.
10269         * tests/test-fstatat.c: Likewise.
10270         * tests/test-fstrcmp.c: Likewise.
10271         * tests/test-fsync.c: Likewise.
10272         * tests/test-ftell.c: Likewise.
10273         * tests/test-ftello.c: Likewise.
10274         * tests/test-func.c: Likewise.
10275         * tests/test-futimens.c: Likewise.
10276         * tests/test-fwritable.c: Likewise.
10277         * tests/test-fwriting.c: Likewise.
10278         * tests/test-getcwd.c: Likewise.
10279         * tests/test-getdate.c: Likewise.
10280         * tests/test-getdelim.c: Likewise.
10281         * tests/test-getdtablesize.c: Likewise.
10282         * tests/test-getgroups.c: Likewise.
10283         * tests/test-getline.c: Likewise.
10284         * tests/test-getndelim2.c: Likewise.
10285         * tests/test-glob.c: Likewise.
10286         * tests/test-hash.c: Likewise.
10287         * tests/test-i-ring.c: Likewise.
10288         * tests/test-iconv-utf.c: Likewise.
10289         * tests/test-iconv.c: Likewise.
10290         * tests/test-idpriv-drop.c: Likewise.
10291         * tests/test-idpriv-droptemp.c: Likewise.
10292         * tests/test-inet_ntop.c: Likewise.
10293         * tests/test-inet_pton.c: Likewise.
10294         * tests/test-isblank.c: Likewise.
10295         * tests/test-isfinite.c: Likewise.
10296         * tests/test-isinf.c: Likewise.
10297         * tests/test-isnan.c: Likewise.
10298         * tests/test-isnand.h: Likewise.
10299         * tests/test-isnanf.h: Likewise.
10300         * tests/test-isnanl.h: Likewise.
10301         * tests/test-lchown.c: Likewise.
10302         * tests/test-ldexpl.c: Likewise.
10303         * tests/test-link.c: Likewise.
10304         * tests/test-linkat.c: Likewise.
10305         * tests/test-linked_list.c: Likewise.
10306         * tests/test-linkedhash_list.c: Likewise.
10307         * tests/test-localename.c: Likewise.
10308         * tests/test-lseek.c: Likewise.
10309         * tests/test-lstat.c: Likewise.
10310         * tests/test-mbmemcasecmp.c: Likewise.
10311         * tests/test-mbmemcasecoll.c: Likewise.
10312         * tests/test-mbrtowc.c: Likewise.
10313         * tests/test-mbscasecmp.c: Likewise.
10314         * tests/test-mbscasestr1.c: Likewise.
10315         * tests/test-mbscasestr2.c: Likewise.
10316         * tests/test-mbscasestr3.c: Likewise.
10317         * tests/test-mbscasestr4.c: Likewise.
10318         * tests/test-mbschr.c: Likewise.
10319         * tests/test-mbscspn.c: Likewise.
10320         * tests/test-mbsinit.c: Likewise.
10321         * tests/test-mbsncasecmp.c: Likewise.
10322         * tests/test-mbsnrtowcs.c: Likewise.
10323         * tests/test-mbspbrk.c: Likewise.
10324         * tests/test-mbspcasecmp.c: Likewise.
10325         * tests/test-mbsrchr.c: Likewise.
10326         * tests/test-mbsrtowcs.c: Likewise.
10327         * tests/test-mbsspn.c: Likewise.
10328         * tests/test-mbsstr1.c: Likewise.
10329         * tests/test-mbsstr2.c: Likewise.
10330         * tests/test-mbsstr3.c: Likewise.
10331         * tests/test-memchr.c: Likewise.
10332         * tests/test-memchr2.c: Likewise.
10333         * tests/test-memcmp.c: Likewise.
10334         * tests/test-memmem.c: Likewise.
10335         * tests/test-memrchr.c: Likewise.
10336         * tests/test-mkdir.c: Likewise.
10337         * tests/test-mkdirat.c: Likewise.
10338         * tests/test-mkfifo.c: Likewise.
10339         * tests/test-mkfifoat.c: Likewise.
10340         * tests/test-mknod.c: Likewise.
10341         * tests/test-nanosleep.c: Likewise.
10342         * tests/test-nl_langinfo.c: Likewise.
10343         * tests/test-obstack-printf.c: Likewise.
10344         * tests/test-open.c: Likewise.
10345         * tests/test-openat.c: Likewise.
10346         * tests/test-pipe-filter-gi1.c: Likewise.
10347         * tests/test-pipe-filter-gi2-main.c: Likewise.
10348         * tests/test-pipe-filter-ii1.c: Likewise.
10349         * tests/test-pipe-filter-ii2-main.c: Likewise.
10350         * tests/test-pipe2.c: Likewise.
10351         * tests/test-popen.h: Likewise.
10352         * tests/test-posixtm.c: Likewise.
10353         * tests/test-pread.c: Likewise.
10354         * tests/test-printf-frexp.c: Likewise.
10355         * tests/test-printf-frexpl.c: Likewise.
10356         * tests/test-printf-posix.c: Likewise.
10357         * tests/test-priv-set.c: Likewise.
10358         * tests/test-quotearg.c: Likewise.
10359         * tests/test-random_r.c: Likewise.
10360         * tests/test-rawmemchr.c: Likewise.
10361         * tests/test-rbtree_list.c: Likewise.
10362         * tests/test-rbtree_oset.c: Likewise.
10363         * tests/test-rbtreehash_list.c: Likewise.
10364         * tests/test-readlink.c: Likewise.
10365         * tests/test-remove.c: Likewise.
10366         * tests/test-rename.c: Likewise.
10367         * tests/test-renameat.c: Likewise.
10368         * tests/test-rmdir.c: Likewise.
10369         * tests/test-round1.c: Likewise.
10370         * tests/test-roundf1.c: Likewise.
10371         * tests/test-roundl.c: Likewise.
10372         * tests/test-safe-alloc.c: Likewise.
10373         * tests/test-sameacls.c: Likewise.
10374         * tests/test-set-mode-acl.c: Likewise.
10375         * tests/test-setenv.c: Likewise.
10376         * tests/test-sigaction.c: Likewise.
10377         * tests/test-signbit.c: Likewise.
10378         * tests/test-sleep.c: Likewise.
10379         * tests/test-snprintf-posix.c: Likewise.
10380         * tests/test-snprintf.c: Likewise.
10381         * tests/test-sprintf-posix.c: Likewise.
10382         * tests/test-stat-time.c: Likewise.
10383         * tests/test-stat.c: Likewise.
10384         * tests/test-strcasestr.c: Likewise.
10385         * tests/test-strchrnul.c: Likewise.
10386         * tests/test-strerror.c: Likewise.
10387         * tests/test-striconv.c: Likewise.
10388         * tests/test-striconveh.c: Likewise.
10389         * tests/test-striconveha.c: Likewise.
10390         * tests/test-strsignal.c: Likewise.
10391         * tests/test-strstr.c: Likewise.
10392         * tests/test-strtod.c: Likewise.
10393         * tests/test-strverscmp.c: Likewise.
10394         * tests/test-symlink.c: Likewise.
10395         * tests/test-symlinkat.c: Likewise.
10396         * tests/test-trunc1.c: Likewise.
10397         * tests/test-trunc2.c: Likewise.
10398         * tests/test-truncf1.c: Likewise.
10399         * tests/test-truncf2.c: Likewise.
10400         * tests/test-truncl.c: Likewise.
10401         * tests/test-uname.c: Likewise.
10402         * tests/test-unlink.c: Likewise.
10403         * tests/test-unlinkat.c: Likewise.
10404         * tests/test-unsetenv.c: Likewise.
10405         * tests/test-usleep.c: Likewise.
10406         * tests/test-utimens.c: Likewise.
10407         * tests/test-utimensat.c: Likewise.
10408         * tests/test-vasnprintf-posix.c: Likewise.
10409         * tests/test-vasnprintf-posix2.c: Likewise.
10410         * tests/test-vasnprintf.c: Likewise.
10411         * tests/test-vasprintf-posix.c: Likewise.
10412         * tests/test-vasprintf.c: Likewise.
10413         * tests/test-vdprintf-posix.c: Likewise.
10414         * tests/test-vfprintf-posix.c: Likewise.
10415         * tests/test-vprintf-posix.c: Likewise.
10416         * tests/test-vsnprintf-posix.c: Likewise.
10417         * tests/test-vsnprintf.c: Likewise.
10418         * tests/test-vsprintf-posix.c: Likewise.
10419         * tests/test-wcrtomb.c: Likewise.
10420         * tests/test-wcsnrtombs.c: Likewise.
10421         * tests/test-wcsrtombs.c: Likewise.
10422         * tests/test-wctype.c: Likewise.
10423         * tests/test-wcwidth.c: Likewise.
10424         * tests/test-xfprintf-posix.c: Likewise.
10425         * tests/test-xmemdup0.c: Likewise.
10426         * tests/test-xprintf-posix.c: Likewise.
10427         * tests/test-xvasprintf.c: Likewise.
10428         * tests/unicase/test-locale-language.c: Likewise.
10429         * tests/unicase/test-mapping-part1.h: Likewise.
10430         * tests/unicase/test-predicate-part1.h: Likewise.
10431         * tests/unicase/test-u8-casecmp.c: Likewise.
10432         * tests/unicase/test-u8-casecoll.c: Likewise.
10433         * tests/unicase/test-u8-casefold.c: Likewise.
10434         * tests/unicase/test-u8-is-cased.c: Likewise.
10435         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10436         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10437         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10438         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10439         * tests/unicase/test-u8-tolower.c: Likewise.
10440         * tests/unicase/test-u8-totitle.c: Likewise.
10441         * tests/unicase/test-u8-toupper.c: Likewise.
10442         * tests/unicase/test-u16-casecmp.c: Likewise.
10443         * tests/unicase/test-u16-casecoll.c: Likewise.
10444         * tests/unicase/test-u16-casefold.c: Likewise.
10445         * tests/unicase/test-u16-is-cased.c: Likewise.
10446         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10447         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10448         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10449         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10450         * tests/unicase/test-u16-tolower.c: Likewise.
10451         * tests/unicase/test-u16-totitle.c: Likewise.
10452         * tests/unicase/test-u16-toupper.c: Likewise.
10453         * tests/unicase/test-u32-casecmp.c: Likewise.
10454         * tests/unicase/test-u32-casecoll.c: Likewise.
10455         * tests/unicase/test-u32-casefold.c: Likewise.
10456         * tests/unicase/test-u32-is-cased.c: Likewise.
10457         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10458         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10459         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10460         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10461         * tests/unicase/test-u32-tolower.c: Likewise.
10462         * tests/unicase/test-u32-totitle.c: Likewise.
10463         * tests/unicase/test-u32-toupper.c: Likewise.
10464         * tests/unicase/test-ulc-casecmp.c: Likewise.
10465         * tests/unicase/test-ulc-casecoll.c: Likewise.
10466         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10467         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10468         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10469         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10470         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10471         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10472         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10473         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10474         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10475         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10476         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10477         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10478         * tests/unictype/test-bidi_byname.c: Likewise.
10479         * tests/unictype/test-bidi_name.c: Likewise.
10480         * tests/unictype/test-bidi_of.c: Likewise.
10481         * tests/unictype/test-bidi_test.c: Likewise.
10482         * tests/unictype/test-block_list.c: Likewise.
10483         * tests/unictype/test-block_of.c: Likewise.
10484         * tests/unictype/test-block_test.c: Likewise.
10485         * tests/unictype/test-categ_and.c: Likewise.
10486         * tests/unictype/test-categ_and_not.c: Likewise.
10487         * tests/unictype/test-categ_byname.c: Likewise.
10488         * tests/unictype/test-categ_name.c: Likewise.
10489         * tests/unictype/test-categ_none.c: Likewise.
10490         * tests/unictype/test-categ_of.c: Likewise.
10491         * tests/unictype/test-categ_or.c: Likewise.
10492         * tests/unictype/test-categ_test_withtable.c: Likewise.
10493         * tests/unictype/test-combining.c: Likewise.
10494         * tests/unictype/test-decdigit.c: Likewise.
10495         * tests/unictype/test-digit.c: Likewise.
10496         * tests/unictype/test-mirror.c: Likewise.
10497         * tests/unictype/test-numeric.c: Likewise.
10498         * tests/unictype/test-pr_byname.c: Likewise.
10499         * tests/unictype/test-pr_test.c: Likewise.
10500         * tests/unictype/test-predicate-part1.h: Likewise.
10501         * tests/unictype/test-scripts.c: Likewise.
10502         * tests/unictype/test-sy_c_ident.c: Likewise.
10503         * tests/unictype/test-sy_java_ident.c: Likewise.
10504         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10505         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10506         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10507         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10508         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10509         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10510         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10511         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10512         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10513         * tests/uninorm/test-compat-decomposition.c: Likewise.
10514         * tests/uninorm/test-composition.c: Likewise.
10515         * tests/uninorm/test-decomposing-form.c: Likewise.
10516         * tests/uninorm/test-decomposition.c: Likewise.
10517         * tests/uninorm/test-u8-nfc.c: Likewise.
10518         * tests/uninorm/test-u8-nfd.c: Likewise.
10519         * tests/uninorm/test-u8-nfkc.c: Likewise.
10520         * tests/uninorm/test-u8-nfkd.c: Likewise.
10521         * tests/uninorm/test-u8-normcmp.c: Likewise.
10522         * tests/uninorm/test-u8-normcoll.c: Likewise.
10523         * tests/uninorm/test-u16-nfc.c: Likewise.
10524         * tests/uninorm/test-u16-nfd.c: Likewise.
10525         * tests/uninorm/test-u16-nfkc.c: Likewise.
10526         * tests/uninorm/test-u16-nfkd.c: Likewise.
10527         * tests/uninorm/test-u16-normcmp.c: Likewise.
10528         * tests/uninorm/test-u16-normcoll.c: Likewise.
10529         * tests/uninorm/test-u32-nfc.c: Likewise.
10530         * tests/uninorm/test-u32-nfd.c: Likewise.
10531         * tests/uninorm/test-u32-nfkc.c: Likewise.
10532         * tests/uninorm/test-u32-nfkd.c: Likewise.
10533         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10534         * tests/uninorm/test-u32-normcmp.c: Likewise.
10535         * tests/uninorm/test-u32-normcoll.c: Likewise.
10536         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10537         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10538         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10539         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10540         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10541         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10542         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10543         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10544         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10545         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10546         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10547         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10548         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10549         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10550         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10551         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10552         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10553         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10554         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10555         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10556         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10557         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10558         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10559         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10560         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10561         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10562         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10563         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10564         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10565         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10566         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10567         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10568         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10569         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10570         * tests/uniwidth/test-u8-width.c: Likewise.
10571         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10572         * tests/uniwidth/test-u16-width.c: Likewise.
10573         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10574         * tests/uniwidth/test-u32-width.c: Likewise.
10575         * tests/uniwidth/test-uc_width.c: Likewise.
10576         * tests/uniwidth/test-uc_width2.c: Likewise.
10577         * modules/acl-tests (Files): Add tests/macros.h.
10578         * modules/areadlink-tests (Files): Likewise.
10579         * modules/areadlink-with-size-tests (Files): Likewise.
10580         * modules/areadlinkat-tests (Files): Likewise.
10581         * modules/areadlinkat-with-size-tests (Files): Likewise.
10582         * modules/argmatch-tests (Files): Likewise.
10583         * modules/argv-iter-tests (Files): Likewise.
10584         * modules/array-list-tests (Files): Likewise.
10585         * modules/array-mergesort-tests (Files): Likewise.
10586         * modules/array-oset-tests (Files): Likewise.
10587         * modules/avltree-list-tests (Files): Likewise.
10588         * modules/avltree-oset-tests (Files): Likewise.
10589         * modules/avltreehash-list-tests (Files): Likewise.
10590         * modules/base64-tests (Files): Likewise.
10591         * modules/binary-io-tests (Files): Likewise.
10592         * modules/bitrotate-tests (Files): Likewise.
10593         * modules/btowc-tests (Files): Likewise.
10594         * modules/byteswap-tests (Files): Likewise.
10595         * modules/c-ctype-tests (Files): Likewise.
10596         * modules/c-stack-tests (Files): Likewise.
10597         * modules/c-strcase-tests (Files): Likewise.
10598         * modules/c-strcasestr-tests (Files): Likewise.
10599         * modules/c-strstr-tests (Files): Likewise.
10600         * modules/canonicalize-lgpl-tests (Files): Likewise.
10601         * modules/canonicalize-tests (Files): Likewise.
10602         * modules/carray-list-tests (Files): Likewise.
10603         * modules/ceilf-tests (Files): Likewise.
10604         * modules/ceill-tests (Files): Likewise.
10605         * modules/chown-tests (Files): Likewise.
10606         * modules/cloexec-tests (Files): Likewise.
10607         * modules/copy-file-tests (Files): Likewise.
10608         * modules/count-one-bits-tests (Files): Likewise.
10609         * modules/dprintf-posix-tests (Files): Likewise.
10610         * modules/dup2-tests (Files): Likewise.
10611         * modules/dup3-tests (Files): Likewise.
10612         * modules/duplocale-tests (Files): Likewise.
10613         * modules/fbufmode-tests (Files): Likewise.
10614         * modules/fchdir-tests (Files): Likewise.
10615         * modules/fcntl-safer-tests (Files): Likewise.
10616         * modules/fcntl-tests (Files): Likewise.
10617         * modules/fdopendir-tests (Files): Likewise.
10618         * modules/fdutimensat-tests (Files): Likewise.
10619         * modules/fflush-tests (Files): Likewise.
10620         * modules/filevercmp-tests (Files): Likewise.
10621         * modules/flock-tests (Files): Likewise.
10622         * modules/floorf-tests (Files): Likewise.
10623         * modules/floorl-tests (Files): Likewise.
10624         * modules/fnmatch-tests (Files): Likewise.
10625         * modules/fopen-safer-tests (Files): Likewise.
10626         * modules/fopen-tests (Files): Likewise.
10627         * modules/fpending-tests (Files): Likewise.
10628         * modules/fprintf-posix-tests (Files): Likewise.
10629         * modules/fpurge-tests (Files): Likewise.
10630         * modules/freadable-tests (Files): Likewise.
10631         * modules/freadahead-tests (Files): Likewise.
10632         * modules/freading-tests (Files): Likewise.
10633         * modules/freadptr-tests (Files): Likewise.
10634         * modules/freadseek-tests (Files): Likewise.
10635         * modules/freopen-tests (Files): Likewise.
10636         * modules/frexp-nolibm-tests (Files): Likewise.
10637         * modules/frexp-tests (Files): Likewise.
10638         * modules/frexpl-nolibm-tests (Files): Likewise.
10639         * modules/frexpl-tests (Files): Likewise.
10640         * modules/fseek-tests (Files): Likewise.
10641         * modules/fseeko-tests (Files): Likewise.
10642         * modules/fstrcmp-tests (Files): Likewise.
10643         * modules/fsync-tests (Files): Likewise.
10644         * modules/ftell-tests (Files): Likewise.
10645         * modules/ftello-tests (Files): Likewise.
10646         * modules/func-tests (Files): Likewise.
10647         * modules/futimens-tests (Files): Likewise.
10648         * modules/fwritable-tests (Files): Likewise.
10649         * modules/fwriting-tests (Files): Likewise.
10650         * modules/getcwd-tests (Files): Likewise.
10651         * modules/getdate-tests (Files): Likewise.
10652         * modules/getdelim-tests (Files): Likewise.
10653         * modules/getdtablesize-tests (Files): Likewise.
10654         * modules/getgroups-tests (Files): Likewise.
10655         * modules/getline-tests (Files): Likewise.
10656         * modules/getndelim2-tests (Files): Likewise.
10657         * modules/glob-tests (Files): Likewise.
10658         * modules/hash-tests (Files): Likewise.
10659         * modules/i-ring-tests (Files): Likewise.
10660         * modules/iconv-tests (Files): Likewise.
10661         * modules/iconv_open-utf-tests (Files): Likewise.
10662         * modules/idpriv-drop-tests (Files): Likewise.
10663         * modules/idpriv-droptemp-tests (Files): Likewise.
10664         * modules/inet_ntop-tests (Files): Likewise.
10665         * modules/inet_pton-tests (Files): Likewise.
10666         * modules/isblank-tests (Files): Likewise.
10667         * modules/isfinite-tests (Files): Likewise.
10668         * modules/isinf-tests (Files): Likewise.
10669         * modules/isnan-tests (Files): Likewise.
10670         * modules/isnand-nolibm-tests (Files): Likewise.
10671         * modules/isnand-tests (Files): Likewise.
10672         * modules/isnanf-nolibm-tests (Files): Likewise.
10673         * modules/isnanf-tests (Files): Likewise.
10674         * modules/isnanl-nolibm-tests (Files): Likewise.
10675         * modules/isnanl-tests (Files): Likewise.
10676         * modules/lchown-tests (Files): Likewise.
10677         * modules/ldexpl-tests (Files): Likewise.
10678         * modules/link-tests (Files): Likewise.
10679         * modules/linkat-tests (Files): Likewise.
10680         * modules/linked-list-tests (Files): Likewise.
10681         * modules/linkedhash-list-tests (Files): Likewise.
10682         * modules/localename-tests (Files): Likewise.
10683         * modules/lseek-tests (Files): Likewise.
10684         * modules/lstat-tests (Files): Likewise.
10685         * modules/mbmemcasecmp-tests (Files): Likewise.
10686         * modules/mbmemcasecoll-tests (Files): Likewise.
10687         * modules/mbrtowc-tests (Files): Likewise.
10688         * modules/mbscasecmp-tests (Files): Likewise.
10689         * modules/mbscasestr-tests (Files): Likewise.
10690         * modules/mbschr-tests (Files): Likewise.
10691         * modules/mbscspn-tests (Files): Likewise.
10692         * modules/mbsinit-tests (Files): Likewise.
10693         * modules/mbsncasecmp-tests (Files): Likewise.
10694         * modules/mbsnrtowcs-tests (Files): Likewise.
10695         * modules/mbspbrk-tests (Files): Likewise.
10696         * modules/mbspcasecmp-tests (Files): Likewise.
10697         * modules/mbsrchr-tests (Files): Likewise.
10698         * modules/mbsrtowcs-tests (Files): Likewise.
10699         * modules/mbsspn-tests (Files): Likewise.
10700         * modules/mbsstr-tests (Files): Likewise.
10701         * modules/memchr-tests (Files): Likewise.
10702         * modules/memchr2-tests (Files): Likewise.
10703         * modules/memcmp-tests (Files): Likewise.
10704         * modules/memmem-tests (Files): Likewise.
10705         * modules/memrchr-tests (Files): Likewise.
10706         * modules/mkdir-tests (Files): Likewise.
10707         * modules/mkfifo-tests (Files): Likewise.
10708         * modules/mkfifoat-tests (Files): Likewise.
10709         * modules/mknod-tests (Files): Likewise.
10710         * modules/nanosleep-tests (Files): Likewise.
10711         * modules/nl_langinfo-tests (Files): Likewise.
10712         * modules/obstack-printf-tests (Files): Likewise.
10713         * modules/open-tests (Files): Likewise.
10714         * modules/openat-tests (Files): Likewise.
10715         * modules/pipe-filter-gi-tests (Files): Likewise.
10716         * modules/pipe-filter-ii-tests (Files): Likewise.
10717         * modules/pipe2-tests (Files): Likewise.
10718         * modules/popen-safer-tests (Files): Likewise.
10719         * modules/popen-tests (Files): Likewise.
10720         * modules/posixtm-tests (Files): Likewise.
10721         * modules/pread-tests (Files): Likewise.
10722         * modules/printf-frexp-tests (Files): Likewise.
10723         * modules/printf-frexpl-tests (Files): Likewise.
10724         * modules/printf-posix-tests (Files): Likewise.
10725         * modules/priv-set-tests (Files): Likewise.
10726         * modules/quotearg-tests (Files): Likewise.
10727         * modules/random_r-tests (Files): Likewise.
10728         * modules/rawmemchr-tests (Files): Likewise.
10729         * modules/rbtree-list-tests (Files): Likewise.
10730         * modules/rbtree-oset-tests (Files): Likewise.
10731         * modules/rbtreehash-list-tests (Files): Likewise.
10732         * modules/readlink-tests (Files): Likewise.
10733         * modules/remove-tests (Files): Likewise.
10734         * modules/rename-tests (Files): Likewise.
10735         * modules/renameat-tests (Files): Likewise.
10736         * modules/rmdir-tests (Files): Likewise.
10737         * modules/round-tests (Files): Likewise.
10738         * modules/roundf-tests (Files): Likewise.
10739         * modules/roundl-tests (Files): Likewise.
10740         * modules/safe-alloc-tests (Files): Likewise.
10741         * modules/setenv-tests (Files): Likewise.
10742         * modules/sigaction-tests (Files): Likewise.
10743         * modules/signbit-tests (Files): Likewise.
10744         * modules/sleep-tests (Files): Likewise.
10745         * modules/snprintf-posix-tests (Files): Likewise.
10746         * modules/snprintf-tests (Files): Likewise.
10747         * modules/sprintf-posix-tests (Files): Likewise.
10748         * modules/stat-tests (Files): Likewise.
10749         * modules/stat-time-tests (Files): Likewise.
10750         * modules/strcasestr-tests (Files): Likewise.
10751         * modules/strchrnul-tests (Files): Likewise.
10752         * modules/strerror-tests (Files): Likewise.
10753         * modules/striconv-tests (Files): Likewise.
10754         * modules/striconveh-tests (Files): Likewise.
10755         * modules/striconveha-tests (Files): Likewise.
10756         * modules/strsignal-tests (Files): Likewise.
10757         * modules/strstr-tests (Files): Likewise.
10758         * modules/strtod-tests (Files): Likewise.
10759         * modules/strverscmp-tests (Files): Likewise.
10760         * modules/symlink-tests (Files): Likewise.
10761         * modules/symlinkat-tests (Files): Likewise.
10762         * modules/trunc-tests (Files): Likewise.
10763         * modules/truncf-tests (Files): Likewise.
10764         * modules/truncl-tests (Files): Likewise.
10765         * modules/uname-tests (Files): Likewise.
10766         * modules/unicase/cased-tests (Files): Likewise.
10767         * modules/unicase/ignorable-tests (Files): Likewise.
10768         * modules/unicase/locale-language-tests (Files): Likewise.
10769         * modules/unicase/tolower-tests (Files): Likewise.
10770         * modules/unicase/totitle-tests (Files): Likewise.
10771         * modules/unicase/toupper-tests (Files): Likewise.
10772         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10773         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10774         * modules/unicase/u8-casefold-tests (Files): Likewise.
10775         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10776         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10777         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10778         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10779         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10780         * modules/unicase/u8-tolower-tests (Files): Likewise.
10781         * modules/unicase/u8-totitle-tests (Files): Likewise.
10782         * modules/unicase/u8-toupper-tests (Files): Likewise.
10783         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10784         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10785         * modules/unicase/u16-casefold-tests (Files): Likewise.
10786         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10787         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10788         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10789         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10790         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10791         * modules/unicase/u16-tolower-tests (Files): Likewise.
10792         * modules/unicase/u16-totitle-tests (Files): Likewise.
10793         * modules/unicase/u16-toupper-tests (Files): Likewise.
10794         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10795         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10796         * modules/unicase/u32-casefold-tests (Files): Likewise.
10797         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10798         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10799         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10800         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10801         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10802         * modules/unicase/u32-tolower-tests (Files): Likewise.
10803         * modules/unicase/u32-totitle-tests (Files): Likewise.
10804         * modules/unicase/u32-toupper-tests (Files): Likewise.
10805         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10806         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10807         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10808         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10809         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10810         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10811         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10812         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10813         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10814         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10815         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10816         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10817         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10818         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10819         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10820         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10821         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10822         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10823         * modules/unictype/block-list-tests (Files): Likewise.
10824         * modules/unictype/block-of-tests (Files): Likewise.
10825         * modules/unictype/block-test-tests (Files): Likewise.
10826         * modules/unictype/category-C-tests (Files): Likewise.
10827         * modules/unictype/category-Cc-tests (Files): Likewise.
10828         * modules/unictype/category-Cf-tests (Files): Likewise.
10829         * modules/unictype/category-Cn-tests (Files): Likewise.
10830         * modules/unictype/category-Co-tests (Files): Likewise.
10831         * modules/unictype/category-Cs-tests (Files): Likewise.
10832         * modules/unictype/category-L-tests (Files): Likewise.
10833         * modules/unictype/category-Ll-tests (Files): Likewise.
10834         * modules/unictype/category-Lm-tests (Files): Likewise.
10835         * modules/unictype/category-Lo-tests (Files): Likewise.
10836         * modules/unictype/category-Lt-tests (Files): Likewise.
10837         * modules/unictype/category-Lu-tests (Files): Likewise.
10838         * modules/unictype/category-M-tests (Files): Likewise.
10839         * modules/unictype/category-Mc-tests (Files): Likewise.
10840         * modules/unictype/category-Me-tests (Files): Likewise.
10841         * modules/unictype/category-Mn-tests (Files): Likewise.
10842         * modules/unictype/category-N-tests (Files): Likewise.
10843         * modules/unictype/category-Nd-tests (Files): Likewise.
10844         * modules/unictype/category-Nl-tests (Files): Likewise.
10845         * modules/unictype/category-No-tests (Files): Likewise.
10846         * modules/unictype/category-P-tests (Files): Likewise.
10847         * modules/unictype/category-Pc-tests (Files): Likewise.
10848         * modules/unictype/category-Pd-tests (Files): Likewise.
10849         * modules/unictype/category-Pe-tests (Files): Likewise.
10850         * modules/unictype/category-Pf-tests (Files): Likewise.
10851         * modules/unictype/category-Pi-tests (Files): Likewise.
10852         * modules/unictype/category-Po-tests (Files): Likewise.
10853         * modules/unictype/category-Ps-tests (Files): Likewise.
10854         * modules/unictype/category-S-tests (Files): Likewise.
10855         * modules/unictype/category-Sc-tests (Files): Likewise.
10856         * modules/unictype/category-Sk-tests (Files): Likewise.
10857         * modules/unictype/category-Sm-tests (Files): Likewise.
10858         * modules/unictype/category-So-tests (Files): Likewise.
10859         * modules/unictype/category-Z-tests (Files): Likewise.
10860         * modules/unictype/category-Zl-tests (Files): Likewise.
10861         * modules/unictype/category-Zp-tests (Files): Likewise.
10862         * modules/unictype/category-Zs-tests (Files): Likewise.
10863         * modules/unictype/category-and-not-tests (Files): Likewise.
10864         * modules/unictype/category-and-tests (Files): Likewise.
10865         * modules/unictype/category-byname-tests (Files): Likewise.
10866         * modules/unictype/category-name-tests (Files): Likewise.
10867         * modules/unictype/category-none-tests (Files): Likewise.
10868         * modules/unictype/category-of-tests (Files): Likewise.
10869         * modules/unictype/category-or-tests (Files): Likewise.
10870         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10871         * modules/unictype/combining-class-tests (Files): Likewise.
10872         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10873         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10874         * modules/unictype/ctype-blank-tests (Files): Likewise.
10875         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10876         * modules/unictype/ctype-digit-tests (Files): Likewise.
10877         * modules/unictype/ctype-graph-tests (Files): Likewise.
10878         * modules/unictype/ctype-lower-tests (Files): Likewise.
10879         * modules/unictype/ctype-print-tests (Files): Likewise.
10880         * modules/unictype/ctype-punct-tests (Files): Likewise.
10881         * modules/unictype/ctype-space-tests (Files): Likewise.
10882         * modules/unictype/ctype-upper-tests (Files): Likewise.
10883         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10884         * modules/unictype/decimal-digit-tests (Files): Likewise.
10885         * modules/unictype/digit-tests (Files): Likewise.
10886         * modules/unictype/mirror-tests (Files): Likewise.
10887         * modules/unictype/numeric-tests (Files): Likewise.
10888         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10889         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10890         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10891         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10892         Likewise.
10893         * modules/unictype/property-bidi-block-separator-tests (Files):
10894         Likewise.
10895         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10896         Likewise.
10897         * modules/unictype/property-bidi-common-separator-tests (Files):
10898         Likewise.
10899         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10900         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10901         Likewise.
10902         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10903         Likewise.
10904         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10905         Likewise.
10906         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10907         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10908         Likewise.
10909         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10910         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10911         Likewise.
10912         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10913         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10914         * modules/unictype/property-bidi-segment-separator-tests (Files):
10915         Likewise.
10916         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10917         * modules/unictype/property-byname-tests (Files): Likewise.
10918         * modules/unictype/property-combining-tests (Files): Likewise.
10919         * modules/unictype/property-composite-tests (Files): Likewise.
10920         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10921         * modules/unictype/property-dash-tests (Files): Likewise.
10922         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10923         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10924         Likewise.
10925         * modules/unictype/property-deprecated-tests (Files): Likewise.
10926         * modules/unictype/property-diacritic-tests (Files): Likewise.
10927         * modules/unictype/property-extender-tests (Files): Likewise.
10928         * modules/unictype/property-format-control-tests (Files): Likewise.
10929         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10930         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10931         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10932         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10933         * modules/unictype/property-hyphen-tests (Files): Likewise.
10934         * modules/unictype/property-id-continue-tests (Files): Likewise.
10935         * modules/unictype/property-id-start-tests (Files): Likewise.
10936         * modules/unictype/property-ideographic-tests (Files): Likewise.
10937         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10938         * modules/unictype/property-ids-trinary-operator-tests (Files):
10939         Likewise.
10940         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10941         * modules/unictype/property-iso-control-tests (Files): Likewise.
10942         * modules/unictype/property-join-control-tests (Files): Likewise.
10943         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10944         * modules/unictype/property-line-separator-tests (Files): Likewise.
10945         * modules/unictype/property-logical-order-exception-tests (Files):
10946         Likewise.
10947         * modules/unictype/property-lowercase-tests (Files): Likewise.
10948         * modules/unictype/property-math-tests (Files): Likewise.
10949         * modules/unictype/property-non-break-tests (Files): Likewise.
10950         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10951         * modules/unictype/property-numeric-tests (Files): Likewise.
10952         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10953         * modules/unictype/property-other-default-ignorable-code-point-tests
10954         (Files): Likewise.
10955         * modules/unictype/property-other-grapheme-extend-tests (Files):
10956         Likewise.
10957         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10958         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10959         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10960         * modules/unictype/property-other-math-tests (Files): Likewise.
10961         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10962         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10963         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10964         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10965         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10966         * modules/unictype/property-private-use-tests (Files): Likewise.
10967         * modules/unictype/property-punctuation-tests (Files): Likewise.
10968         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10969         * modules/unictype/property-radical-tests (Files): Likewise.
10970         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10971         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10972         * modules/unictype/property-space-tests (Files): Likewise.
10973         * modules/unictype/property-terminal-punctuation-tests (Files):
10974         Likewise.
10975         * modules/unictype/property-test-tests (Files): Likewise.
10976         * modules/unictype/property-titlecase-tests (Files): Likewise.
10977         * modules/unictype/property-unassigned-code-value-tests (Files):
10978         Likewise.
10979         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10980         * modules/unictype/property-uppercase-tests (Files): Likewise.
10981         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10982         * modules/unictype/property-white-space-tests (Files): Likewise.
10983         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10984         * modules/unictype/property-xid-start-tests (Files): Likewise.
10985         * modules/unictype/property-zero-width-tests (Files): Likewise.
10986         * modules/unictype/scripts-tests (Files): Likewise.
10987         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10988         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10989         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10990         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10991         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10992         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10993         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10994         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10995         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
10996         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
10997         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
10998         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
10999         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
11000         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
11001         * modules/uninorm/composition-tests (Files): Likewise.
11002         * modules/uninorm/decomposing-form-tests (Files): Likewise.
11003         * modules/uninorm/decomposition-tests (Files): Likewise.
11004         * modules/uninorm/filter-tests (Files): Likewise.
11005         * modules/uninorm/nfc-tests (Files): Likewise.
11006         * modules/uninorm/nfd-tests (Files): Likewise.
11007         * modules/uninorm/nfkc-tests (Files): Likewise.
11008         * modules/uninorm/nfkd-tests (Files): Likewise.
11009         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
11010         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
11011         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
11012         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
11013         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
11014         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
11015         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
11016         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
11017         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
11018         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
11019         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
11020         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
11021         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
11022         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
11023         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
11024         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
11025         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
11026         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
11027         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
11028         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
11029         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
11030         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
11031         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
11032         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
11033         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
11034         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
11035         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
11036         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
11037         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
11038         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
11039         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
11040         * modules/uniwidth/u8-width-tests (Files): Likewise.
11041         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
11042         * modules/uniwidth/u16-width-tests (Files): Likewise.
11043         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
11044         * modules/uniwidth/u32-width-tests (Files): Likewise.
11045         * modules/uniwidth/width-tests (Files): Likewise.
11046         * modules/unlink-tests (Files): Likewise.
11047         * modules/unsetenv-tests (Files): Likewise.
11048         * modules/usleep-tests (Files): Likewise.
11049         * modules/utimens-tests (Files): Likewise.
11050         * modules/utimensat-tests (Files): Likewise.
11051         * modules/vasnprintf-posix-tests (Files): Likewise.
11052         * modules/vasnprintf-tests (Files): Likewise.
11053         * modules/vasprintf-posix-tests (Files): Likewise.
11054         * modules/vasprintf-tests (Files): Likewise.
11055         * modules/vdprintf-posix-tests (Files): Likewise.
11056         * modules/vfprintf-posix-tests (Files): Likewise.
11057         * modules/vprintf-posix-tests (Files): Likewise.
11058         * modules/vsnprintf-posix-tests (Files): Likewise.
11059         * modules/vsnprintf-tests (Files): Likewise.
11060         * modules/vsprintf-posix-tests (Files): Likewise.
11061         * modules/wcrtomb-tests (Files): Likewise.
11062         * modules/wcsnrtombs-tests (Files): Likewise.
11063         * modules/wcsrtombs-tests (Files): Likewise.
11064         * modules/wctype-tests (Files): Likewise.
11065         * modules/wcwidth-tests (Files): Likewise.
11066         * modules/xmemdup0-tests (Files): Likewise.
11067         * modules/xprintf-posix-tests (Files): Likewise.
11068         * modules/xvasprintf-tests (Files): Likewise.
11069
11070 2009-12-24  Eric Blake  <ebb9@byu.net>
11071
11072         test-nanosleep: fix typo
11073         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
11074         patch.
11075         Reported by Bruno Haible.
11076
11077 2009-12-24  Bruno Haible  <bruno@clisp.org>
11078
11079         Reduce namespace pollution on glibc systems.
11080         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
11081         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
11082         systems.
11083         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
11084         <getopt.h> on glibc systems.
11085         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
11086         systems.
11087         * lib/fcntl.c: Include <unistd.h> here instead.
11088
11089 2009-12-24  Bruno Haible  <bruno@clisp.org>
11090
11091         * lib/stdlib.in.h (includes): Fix typo in today's commit.
11092
11093 2009-12-24  Eric Blake  <ebb9@byu.net>
11094
11095         tests: add signature checks
11096         * tests/signature.h (SIGNATURE_CHECK): New file.
11097         * modules/atexit-tests (Files): Use it.
11098         * modules/btowc-tests (Files): Likewise.
11099         * modules/canonicalize-lgpl-tests (Files): Likewise.
11100         * modules/ceilf-tests (Files): Likewise.
11101         * modules/ceill-tests (Files): Likewise.
11102         * modules/chown-tests (Files): Likewise.
11103         * modules/dprintf-posix-tests (Files): Likewise.
11104         * modules/dup2-tests (Files): Likewise.
11105         * modules/dup3-tests (Files): Likewise.
11106         * modules/duplocale-tests (Files): Likewise.
11107         * modules/fchdir-tests (Files): Likewise.
11108         * modules/fcntl-tests (Files): Likewise.
11109         * modules/fdopendir-tests (Files): Likewise.
11110         * modules/fflush-tests (Files): Likewise.
11111         * modules/flock-tests (Files): Likewise.
11112         * modules/floorf-tests (Files): Likewise.
11113         * modules/floorl-tests (Files): Likewise.
11114         * modules/fnmatch-tests (Files): Likewise.
11115         * modules/fopen-tests (Files): Likewise.
11116         * modules/fprintf-posix-tests (Files): Likewise.
11117         * modules/freopen-tests (Files): Likewise.
11118         * modules/frexp-nolibm-tests (Files): Likewise.
11119         * modules/frexp-tests (Files): Likewise.
11120         * modules/frexpl-nolibm-tests (Files): Likewise.
11121         * modules/frexpl-tests (Files): Likewise.
11122         * modules/fseek-tests (Files): Likewise.
11123         * modules/fseeko-tests (Files): Likewise.
11124         * modules/fsync-tests (Files): Likewise.
11125         * modules/ftell-tests (Files): Likewise.
11126         * modules/ftello-tests (Files): Likewise.
11127         * modules/futimens-tests (Files): Likewise.
11128         * modules/getaddrinfo-tests (Files): Likewise.
11129         * modules/getcwd-tests (Files): Likewise.
11130         * modules/getdelim-tests (Files): Likewise.
11131         * modules/getdtablesize-tests (Files): Likewise.
11132         * modules/getgroups-tests (Files): Likewise.
11133         * modules/gethostname-tests (Files): Likewise.
11134         * modules/getline-tests (Files): Likewise.
11135         * modules/getopt-posix-tests (Files): Likewise.
11136         * modules/gettimeofday-tests (Files): Likewise.
11137         * modules/glob-tests (Files): Likewise.
11138         * modules/iconv-tests (Files): Likewise.
11139         * modules/inet_ntop-tests (Files): Likewise.
11140         * modules/inet_pton-tests (Files): Likewise.
11141         * modules/isblank-tests (Files): Likewise.
11142         * modules/lchown-tests (Files): Likewise.
11143         * modules/ldexpl-tests (Files): Likewise.
11144         * modules/link-tests (Files): Likewise.
11145         * modules/linkat-tests (Files): Likewise.
11146         * modules/lseek-tests (Files): Likewise.
11147         * modules/lstat-tests (Files): Likewise.
11148         * modules/mbrtowc-tests (Files): Likewise.
11149         * modules/mbsinit-tests (Files): Likewise.
11150         * modules/mbsnrtowcs-tests (Files): Likewise.
11151         * modules/mbsrtowcs-tests (Files): Likewise.
11152         * modules/memchr-tests (Files): Likewise.
11153         * modules/memcmp-tests (Files): Likewise.
11154         * modules/memmem-tests (Files): Likewise.
11155         * modules/memrchr-tests (Files): Likewise.
11156         * modules/mkdir-tests (Files): Likewise.
11157         * modules/mkfifo-tests (Files): Likewise.
11158         * modules/mkfifoat-tests (Files): Likewise.
11159         * modules/mknod-tests (Files): Likewise.
11160         * modules/nanosleep-tests (Files): Likewise.
11161         * modules/nl_langinfo-tests (Files): Likewise.
11162         * modules/obstack-printf-tests (Files): Likewise.
11163         * modules/open-tests (Files): Likewise.
11164         * modules/openat-tests (Files): Likewise.
11165         * modules/perror-tests (Files): Likewise.
11166         * modules/pipe2-tests (Files): Likewise.
11167         * modules/poll-tests (Files): Likewise.
11168         * modules/popen-tests (Files): Likewise.
11169         * modules/posix_spawn-tests (Files): Likewise.
11170         * modules/posix_spawnp-tests (Files): Likewise.
11171         * modules/pread-tests (Files): Likewise.
11172         * modules/printf-posix-tests (Files): Likewise.
11173         * modules/pty-tests (Files): Likewise.
11174         * modules/random_r-tests (Files): Likewise.
11175         * modules/rawmemchr-tests (Files): Likewise.
11176         * modules/readlink-tests (Files): Likewise.
11177         * modules/remove-tests (Files): Likewise.
11178         * modules/rename-tests (Files): Likewise.
11179         * modules/renameat-tests (Files): Likewise.
11180         * modules/rmdir-tests (Files): Likewise.
11181         * modules/round-tests (Files): Likewise.
11182         * modules/roundf-tests (Files): Likewise.
11183         * modules/roundl-tests (Files): Likewise.
11184         * modules/select-tests (Files): Likewise.
11185         * modules/setenv-tests (Files): Likewise.
11186         * modules/sigaction-tests (Files): Likewise.
11187         * modules/sleep-tests (Files): Likewise.
11188         * modules/snprintf-posix-tests (Files): Likewise.
11189         * modules/snprintf-tests (Files): Likewise.
11190         * modules/sprintf-posix-tests (Files): Likewise.
11191         * modules/stat-tests (Files): Likewise.
11192         * modules/strcasestr-tests (Files): Likewise.
11193         * modules/strchrnul-tests (Files): Likewise.
11194         * modules/strerror-tests (Files): Likewise.
11195         * modules/strsignal-tests (Files): Likewise.
11196         * modules/strstr-tests (Files): Likewise.
11197         * modules/strtod-tests (Files): Likewise.
11198         * modules/strverscmp-tests (Files): Likewise.
11199         * modules/symlink-tests (Files): Likewise.
11200         * modules/symlinkat-tests (Files): Likewise.
11201         * modules/times-tests (Files): Likewise.
11202         * modules/trunc-tests (Files): Likewise.
11203         * modules/truncf-tests (Files): Likewise.
11204         * modules/truncl-tests (Files): Likewise.
11205         * modules/tsearch-tests (Files): Likewise.
11206         * modules/uname-tests (Files): Likewise.
11207         * modules/unlink-tests (Files): Likewise.
11208         * modules/unsetenv-tests (Files): Likewise.
11209         * modules/usleep-tests (Files): Likewise.
11210         * modules/utimensat-tests (Files): Likewise.
11211         * modules/vasprintf-tests (Files): Likewise.
11212         * modules/vdprintf-posix-tests (Files): Likewise.
11213         * modules/vfprintf-posix-tests (Files): Likewise.
11214         * modules/vprintf-posix-tests (Files): Likewise.
11215         * modules/vsnprintf-posix-tests (Files): Likewise.
11216         * modules/vsnprintf-tests (Files): Likewise.
11217         * modules/vsprintf-posix-tests (Files): Likewise.
11218         * modules/wcrtomb-tests (Files): Likewise.
11219         * modules/wcsnrtombs-tests (Files): Likewise.
11220         * modules/wcsrtombs-tests (Files): Likewise.
11221         * modules/wcwidth-tests (Files): Likewise.
11222         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11223         * tests/test-isinf.c (isinf): Likewise.
11224         * tests/test-isnan.c (isnan): Likewise.
11225         * tests/test-signbit.c (signbit): Likewise.
11226         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11227         declaration, either as macro or with correct signature.
11228         (select): Ensure function under test is declared with correct
11229         signature in correct header.
11230         * tests/test-atexit.c (atexit): Likewise.
11231         * tests/test-btowc.c (btowc): Likewise.
11232         * tests/test-canonicalize-lgpl.c (realpath)
11233         (canonicalize_file_name): Likewise.
11234         * tests/test-ceilf1.c (ceilf): Likewise.
11235         * tests/test-ceill.c (ceill): Likewise.
11236         * tests/test-chown.c (chown): Likewise.
11237         * tests/test-dprintf-posix.c (dprintf): Likewise.
11238         * tests/test-dup2.c (dup2): Likewise.
11239         * tests/test-dup3.c (dup3): Likewise.
11240         * tests/test-duplocale.c (duplocale): Likewise.
11241         * tests/test-fchdir.c (fchdir): Likewise.
11242         * tests/test-fchownat.c (fchownat): Likewise.
11243         * tests/test-fcntl.c (fcntl): Likewise.
11244         * tests/test-fdopendir.c (fdopendir): Likewise.
11245         * tests/test-fflush.c (fflush): Likewise.
11246         * tests/test-flock.c (flock): Likewise.
11247         * tests/test-floorf1.c (floorf): Likewise.
11248         * tests/test-floorl.c (floorl): Likewise.
11249         * tests/test-fnmatch.c (fnmatch): Likewise.
11250         * tests/test-fopen.c (fopen): Likewise.
11251         * tests/test-fprintf-posix.c (fprintf): Likewise.
11252         * tests/test-freopen.c (freopen): Likewise.
11253         * tests/test-frexp.c (frexp): Likewise.
11254         * tests/test-frexpl.c (frexpl): Likewise.
11255         * tests/test-fseek.c (fseek): Likewise.
11256         * tests/test-fseeko.c (fseeko): Likewise.
11257         * tests/test-fstatat.c (fstatat): Likewise.
11258         * tests/test-fsync.c (fsync): Likewise.
11259         * tests/test-ftell.c (ftell): Likewise.
11260         * tests/test-ftello.c (ftello): Likewise.
11261         * tests/test-futimens.c (futimens): Likewise.
11262         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11263         (gai_strerror): Likewise.
11264         * tests/test-getcwd.c (getcwd): Likewise.
11265         * tests/test-getdelim.c (getdelim): Likewise.
11266         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11267         * tests/test-getgroups.c (getgroups): Likewise.
11268         * tests/test-gethostname.c (gethostname): Likewise.
11269         * tests/test-getline.c (getline): Likewise.
11270         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11271         Likewise.
11272         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11273         * tests/test-glob.c (glob, globfree): Likewise.
11274         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11275         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11276         * tests/test-inet_pton.c (inet_pton): Likewise.
11277         * tests/test-isblank.c (isblank): Likewise.
11278         * tests/test-lchown.c (lchown): Likewise.
11279         * tests/test-ldexpl.c (ldexpl): Likewise.
11280         * tests/test-link.c (link): Likewise.
11281         * tests/test-linkat.c (linkat): Likewise.
11282         * tests/test-lseek.c (lseek): Likewise.
11283         * tests/test-lstat.c (lstat): Likewise.
11284         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11285         * tests/test-mbsinit.c (mbsinit): Likewise.
11286         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11287         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11288         * tests/test-memchr.c (memchr): Likewise.
11289         * tests/test-memcmp.c (memcmp): Likewise.
11290         * tests/test-memmem.c (memmem): Likewise.
11291         * tests/test-memrchr.c (memrchr): Likewise.
11292         * tests/test-mkdir.c (mkdir): Likewise.
11293         * tests/test-mkdirat.c (mkdirat): Likewise.
11294         * tests/test-mkfifo.c (mkfifo): Likewise.
11295         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11296         * tests/test-mknod.c (mknod): Likewise.
11297         * tests/test-nanosleep.c (nanosleep): Likewise.
11298         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11299         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11300         Likewise.
11301         * tests/test-open.c (open): Likewise.
11302         * tests/test-openat.c (openat): Likewise.
11303         * tests/test-perror.c (perror): Likewise.
11304         * tests/test-pipe2.c (pipe2): Likewise.
11305         * tests/test-poll.c (poll): Likewise.
11306         * tests/test-popen.c (popen, pclose): Likewise.
11307         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11308         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11309         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11310         (posix_spawn_file_actions_destroy)
11311         (posix_spawn_file_actions_addclose)
11312         (posix_spawn_file_actions_addopen)
11313         (posix_spawn_file_actions_adddup2): Likewise.
11314         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11315         * tests/test-pread.c (pread): Likewise.
11316         * tests/test-printf-posix.c (printf): Likewise.
11317         * tests/test-pty.c (openpty, forkpty): Likewise.
11318         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11319         (random_r): Likewise.
11320         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11321         * tests/test-readlink.c (readlink): Likewise.
11322         * tests/test-remove.c (remove): Likewise.
11323         * tests/test-rename.c (rename): Likewise.
11324         * tests/test-renameat.c (renameat): Likewise.
11325         * tests/test-rmdir.c (rmdir): Likewise.
11326         * tests/test-round1.c (round): Likewise.
11327         * tests/test-roundf1.c (roundf): Likewise.
11328         * tests/test-roundl.c (roundl): Likewise.
11329         * tests/test-setenv.c (setenv): Likewise.
11330         * tests/test-sigaction.c (sigaction): Likewise.
11331         * tests/test-sleep.c (sleep): Likewise.
11332         * tests/test-snprintf.c (snprintf): Likewise.
11333         * tests/test-sprintf-posix.c (sprintf): Likewise.
11334         * tests/test-stat.c (stat): Likewise.
11335         * tests/test-stpncpy.c (stpncpy): Likewise.
11336         * tests/test-strcasestr.c (strcasestr): Likewise.
11337         * tests/test-strchrnul.c (strchrnul): Likewise.
11338         * tests/test-strerror.c (strerror): Likewise.
11339         * tests/test-strsignal.c (strsignal): Likewise.
11340         * tests/test-strstr.c (strstr): Likewise.
11341         * tests/test-strtod.c (strtod): Likewise.
11342         * tests/test-strverscmp.c (strverscmp): Likewise.
11343         * tests/test-symlink.c (symlink): Likewise.
11344         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11345         * tests/test-times.c (times): Likewise.
11346         * tests/test-trunc1.c (trunc): Likewise.
11347         * tests/test-truncf1.c (truncf): Likewise.
11348         * tests/test-truncl.c (truncl): Likewise.
11349         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11350         Likewise.
11351         * tests/test-uname.c (uname): Likewise.
11352         * tests/test-unlink.c (unlink): Likewise.
11353         * tests/test-unlinkat.c (unlinkat): Likewise.
11354         * tests/test-unsetenv.c (unsetenv): Likewise.
11355         * tests/test-usleep.c (usleep): Likewise.
11356         * tests/test-utimensat.c (utimensat): Likewise.
11357         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11358         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11359         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11360         * tests/test-vprintf-posix.c (vprintf): Likewise.
11361         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11362         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11363         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11364         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11365         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11366         * tests/test-wcwidth.c (wcwidth): Likewise.
11367
11368         build: pull in conditional headers during GNULIB_POSIXCHECK
11369         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11370         definitions from any conditionally-included headers.
11371         * lib/stdlib.in.h (includes): Likewise.
11372         * lib/unistd.in.h (includes): Likewise.
11373
11374 2009-12-24  Bruno Haible  <bruno@clisp.org>
11375
11376         * tests/test-argv-iter.c: Include header file being tested immediately
11377         after config.h.
11378         * tests/test-base64.c: Likewise.
11379         * tests/test-flock.c: Likewise.
11380         * tests/test-fsync.c: Likewise.
11381         * tests/test-getdate.c: Likewise.
11382         * tests/test-getndelim2.c: Likewise.
11383         * tests/test-isfinite.c: Likewise.
11384         * tests/test-isinf.c: Likewise.
11385         * tests/test-strerror.c: Likewise.
11386         * tests/test-strsignal.c: Likewise.
11387
11388 2009-12-23  Eric Blake  <ebb9@byu.net>
11389
11390         unistd: work around cygwin bug
11391         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11392         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11393         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11394
11395 2009-12-23  Bruno Haible  <bruno@clisp.org>
11396
11397         localename: More tests.
11398         * tests/test-localename.c (SIZEOF): New macro.
11399         (categories): New variable.
11400         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11401         test_locale_name_default): Add test w.r.t. thread locale.
11402         (test_locale_name_thread): New function.
11403         (main): Invoke it.
11404
11405         localename: Make aware of thread locale.
11406         * lib/localename.h (gl_locale_name_thread): New declaration.
11407         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11408         behaviour with respect to thread locale.
11409         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11410         <langinfo.h>, glthread/lock.h.
11411         (SIZE_BITS): New macro.
11412         (string_hash): New function.
11413         (struct hash_node): New type.
11414         (HASH_TABLE_SIZE): New macro.
11415         (struniq_hash_table, struniq_lock): New variables.
11416         (struniq): New function.
11417         (gl_locale_name_thread): New function.
11418         (gl_locale_name): Invoke it.
11419         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11420         * modules/localename (Depends-on): Add lock.
11421         Reported by Mike Gran <spk121@yahoo.com>.
11422
11423 2009-12-23  Eric Blake  <ebb9@byu.net>
11424
11425         va-args: new module
11426         * modules/va-args: New file.
11427         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11428         * MODULES.html.sh (Core language properties): Mention it.
11429
11430         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11431         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11432         named alias for __attribute__((__unused__)).
11433         * lib/chown.c: Update client.
11434         * lib/fchmodat.c: Likewise.
11435         * lib/fts.c: Likewise.
11436         * lib/getdate.y: Likewise.
11437         * lib/getgroups.c: Likewise.
11438         * lib/getopt.c: Likewise.
11439         * lib/getugroups.c: Likewise.
11440         * lib/mkdir.c: Likewise.
11441         * lib/mkfifo.c: Likewise.
11442         * lib/mkfifoat.c: Likewise.
11443         * lib/mknod.c: Likewise.
11444         * lib/mknodat.c: Likewise.
11445         * lib/readlink.c: Likewise.
11446         * lib/se-context.in.h: Likewise.
11447         * lib/se-selinux.in.h: Likewise.
11448         * lib/sockets.c: Likewise.
11449         * lib/symlink.c: Likewise.
11450         * lib/symlinkat.c: Likewise.
11451         * lib/unicodeio.c: Likewise.
11452         * lib/unistr.h: Likewise.
11453         * tests/test-areadlink.c: Likewise.
11454         * tests/test-areadlinkat.c: Likewise.
11455         * tests/test-filenamecat.c: Likewise.
11456         * tests/test-fseeko.c: Likewise.
11457         * tests/test-ftello.c: Likewise.
11458         * tests/test-getdate.c: Likewise.
11459         * tests/test-getgroups.c: Likewise.
11460         * tests/test-gethostname.c: Likewise.
11461         * tests/test-quotearg.c: Likewise.
11462         * tests/test-version-etc.c: Likewise.
11463         * tests/test-xalloc-die.c: Likewise.
11464         * tests/test-xfprintf-posix.c: Likewise.
11465         * tests/test-xprintf-posix.c: Likewise.
11466         * tests/test-xvasprintf.c: Likewise.
11467
11468         tests: avoid compiler warnings
11469         * tests/test-fcntl.c (main): Delete unused parameters.
11470         * tests/test-freopen-safer.c (main): Likewise.
11471         * tests/test-xalloc-die.c (main): Mark unused parameters.
11472         * tests/test-fseeko.c (main): Likewise.
11473         * tests/test-ftello.c (main): Likewise.
11474         * tests/test-nanosleep.c (main): Avoid declaration warning.
11475         * tests/test-sleep.c (main): Likewise.
11476         * tests/test-unsetenv.c (main): Silence warning about string
11477         literal.
11478         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11479
11480 2009-12-23  Bruno Haible  <bruno@clisp.org>
11481
11482         * tests/test-localename.c (test_locale_name): New function, extracted
11483         from main. Also test mixed situations.
11484         (test_locale_name_posix, test_locale_name_environ,
11485         test_locale_name_default): New functions.
11486         (main): Invoke them all.
11487         * modules/localename-tests (configure.ac): Test for newlocale.
11488
11489 2009-12-23  Bruno Haible  <bruno@clisp.org>
11490
11491         unistd: Ensure getcwd gets declared before being overridden.
11492         * lib/unistd.in.h: Conditionally include <io.h>.
11493
11494 2009-12-22  Bruno Haible  <bruno@clisp.org>
11495
11496         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11497         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11498         (gl_WCHAR_H): Invoke it.
11499         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11500         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11501         Reported by Karl Berry <karl@freefriends.org>.
11502
11503 2009-12-22  Eric Blake  <ebb9@byu.net>
11504
11505         math, unistd: avoid redundant includes
11506         * lib/math.in.h (isnan): No need to re-include <math.h>.
11507         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11508
11509         getsubopt: work around cygwin bug
11510         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11511         avoid conflicting with system getsubopt.
11512         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11513         bug.
11514
11515         getopt: synchronize from glibc
11516         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11517         parameter order.  Adjust all callers.
11518         (_getopt_internal_r, main): Adjust quoting in error messages.
11519         Drop considerations for outdated POSIX 1003.2 error message.
11520         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11521         callers.
11522         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11523
11524         test-getopt: test stderr behavior
11525         * modules/getopt-posix-tests (Depends-on): Add dup2.
11526         * tests/test-getopt.c (ASSERT): Avoid stderr.
11527         (main): Move stderr to a temporary file.
11528         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11529         Instead, add parameter to inform caller if output occurred.
11530         (test_getopt): Adjust all existing tests to expect silence, and
11531         add new tests of leading ":".
11532         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11533         glibc shortcomings with leading "-:" or "+:" in optstring.
11534         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11535         Likewise.
11536         * doc/posix-functions/getopt.texi (getopt): Likewise.
11537
11538         test-getopt: enhance test
11539         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11540         supports optind=0.
11541         * tests/test-getopt.c (OPTIND_MIN): Move...
11542         * tests/test-getopt.h (OPTIND_MIN): ...here.
11543         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11544         Require that optind=0 works, since modern BSD supports it in
11545         addition to optreset, and since coreutils expects it.
11546         (test_getopt_long_only): New test.
11547         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11548         glibc shortcomings with 'W;', and enforcement of optind=0.
11549         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11550         Likewise.
11551
11552 2009-12-21  Bruno Haible  <bruno@clisp.org>
11553
11554         localename: Improvements for MacOS X and Cygwin.
11555         * lib/localename.h (gl_locale_name_environ): New declaration.
11556         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11557         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11558         (gl_locale_name_posix): Invoke it.
11559         (gl_locale_name_default): Add comments. Use Windows native API also on
11560         Cygwin.
11561
11562 2009-12-21  Bruno Haible  <bruno@clisp.org>
11563
11564         Update list of Win32 locale ids.
11565         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11566         (LANG_SAMI): Renamed from LANG_SAAMI.
11567         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11568         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11569         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11570         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11571         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11572         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11573         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11574         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11575         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11576         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11577         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11578         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11579         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11580         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11581         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11582         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11583         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11584         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11585         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11586         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11587         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11588         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11589         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11590         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11591         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11592         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11593         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11594         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11595         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11596         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11597         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11598         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11599         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11600         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11601         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11602         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11603         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11604         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11605         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11606         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11607         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11608         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11609         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11610         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11611         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11612         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11613         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11614         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11615         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11616         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11617         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11618         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11619         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11620         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11621         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11622         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11623         Add more languages and countries for Sami, Sorbian. Add more countries
11624         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11625         for Pashto. Change country for Syriac, Tswana.
11626
11627 2009-12-21  Eric Blake  <ebb9@byu.net>
11628
11629         test-utimens: avoid spurious failure
11630         * tests/test-chown.h (nap): Factor...
11631         * tests/nap.h: ...into new file.
11632         * tests/test-lchown.h (nap): Avoid duplication.
11633         * tests/test-utimens-common.h (nap): Use shared implementation,
11634         necessary on file systems with 1-second resolution.
11635         * modules/chown-tests (Files): Include new file.
11636         * modules/fdutimensat-tests (Files): Likewise.
11637         * modules/futimens-tests (Files): Likewise.
11638         * modules/lchown-tests (Files): Likewise.
11639         * modules/openat-tests (Files): Likewise.
11640         * modules/utimens-tests (Files): Likewise.
11641         * modules/utimensat-tests (Files): Likewise.
11642
11643 2009-12-19  Eric Blake  <ebb9@byu.net>
11644
11645         futimens, utimensat: work around Linux bug
11646         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11647         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11648         * lib/utimensat.c (rpl_utimensat): Work around it.
11649         * lib/futimens.c (rpl_futimens): Adjust comment.
11650
11651         utimens: work around Linux ctime bug
11652         * lib/utimens.c (detect_ctime_bug): New helper function.
11653         (update_timespec): Differentiate between workaround needed for
11654         this bug vs. what is needed for systems that lack utimensat.
11655         (fdutimens, lutimens): Work around bug.
11656
11657         utimens: check for ctime update
11658         * tests/test-utimens-common.h (check_ctime): Define.
11659         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11660         * tests/test-futimens.h (test_futimens): Likewise.
11661         * tests/test-lutimens.h (test_lutimens): Likewise.
11662         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11663         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11664
11665 2009-12-19  Bruno Haible  <bruno@clisp.org>
11666
11667         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11668         * tests/test-dprintf-posix2.sh: New file.
11669         * tests/test-dprintf-posix2.c: New file.
11670         * modules/dprintf-posix-tests (Files): Add them.
11671         (configure.ac): Check for getrlimit and setrlimit.
11672         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11673
11674 2009-12-19  Bruno Haible  <bruno@clisp.org>
11675
11676         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11677         * tests/test-fprintf-posix3.sh: New file.
11678         * tests/test-fprintf-posix3.c: New file.
11679         * modules/fprintf-posix-tests (Files): Add them.
11680         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11681
11682 2009-12-19  Eric Blake  <ebb9@byu.net>
11683
11684         dirfd: fix prototype
11685         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11686         * lib/dirfd.c (dirfd): Likewise.
11687
11688         canonicalize: reduce memory usage
11689         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11690         allocation to size.
11691         Reported by Solar Designer <solar@openwall.com>.
11692
11693 2009-12-19  Bruno Haible  <bruno@clisp.org>
11694
11695         New module attribute 'Applicability'.
11696         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11697         * gnulib-tool: New option --extract-applicability.
11698         (func_usage): Document it.
11699         (sed_extract_prog): Recognize it.
11700         (func_get_applicability): New function.
11701         (func_import): Generalize handling of 'link-warning' module.
11702         * modules/link-warning (Applicability): New section.
11703         * modules/arg-nonnull (Applicability): New section.
11704         Repoted by Simon Josefsson <simon@josefsson.org>.
11705
11706 2009-12-19  Bruno Haible  <bruno@clisp.org>
11707
11708         fflush: tweak
11709         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11710         * lib/fseeko.c (rpl_fseeko): Likewise.
11711
11712 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11713
11714         * lib/gl_list.h: Fix typo in comment.
11715
11716 2009-12-16  Eric Blake  <ebb9@byu.net>
11717
11718         fcntl: use to simplify other modules
11719         * modules/cloexec (Depends-on): Add fcntl.
11720         * modules/fchdir (Depends-on): Likewise.
11721         * modules/fd-safer-flag (Depends-on): Likewise.
11722         * modules/unistd-safer (Depends-on): Likewise.
11723         * modules/dup3 (configure.ac): Set module indicator.
11724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11725         missing.
11726         * lib/fchdir.c (_gl_register_dup): Fix comment.
11727         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11728         * lib/dup-safer.c (dup_safer): Likewise.
11729         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11730         * lib/dup3.c (dup3): Likewise.
11731         * tests/test-fchdir.c (main): Enhance test.
11732         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11733
11734         fcntl: port portions of fcntl to mingw
11735         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11736         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11737         replacement for mingw.
11738         * modules/fcntl (Description): Update.
11739         (Depends-on): Add dup2.
11740         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11741         * modules/fcntl-h (Makefile.am): Substitute it.
11742         * lib/fcntl.in.h (fcntl): Update declaration.
11743         (F_DUPFD, F_GETFD): New macros, when needed.
11744         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11745         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11746         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11747         we now guarantee.
11748
11749         fcntl: work around cygwin bug in F_DUPFD
11750         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11751         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11752         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11753         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11754         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11755
11756         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11757         * modules/fcntl (Files): List new files.
11758         (configure.ac): Run a test.
11759         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11760         * lib/fcntl.c (rpl_fcntl): Likewise.
11761         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11762         (gl_FCNTL_H): Always replace fcntl.h.
11763         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11764         * lib/fcntl.in.h (fcntl): Declare replacement.
11765         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11766         needed, plus a witness.
11767         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11768         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11769         * tests/test-fcntl.c: New file.
11770         * modules/fcntl-tests: Likewise.
11771
11772         binary-io: avoid potential compilation warning
11773         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11774         directives.
11775
11776         fflush: avoid compilation error on NetBSD
11777         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11778         between off_t and fpos_t, since the latter is sometimes a struct.
11779         * lib/fseeko.c (rpl_fseeko): Likewise.
11780         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11781
11782 2009-12-15  Eric Blake  <ebb9@byu.net>
11783
11784         fcntl-h, stdio, sys_ioctl: fix declarations
11785         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11786         function must not take arguments.
11787         * lib/sys_ioctl.in.h (ioctl): Likewise.
11788         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11789         (open): Add a link warning.
11790
11791 2009-12-15  Jim Meyering  <meyering@redhat.com>
11792
11793         areadlink, areadlink-with-size: relax license to LGPLv2+
11794         * modules/areadlink (License): Relax to LGPLv2+.
11795         * modules/areadlink-with-size (License): Likewise.
11796
11797 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11798             Bruno Haible  <bruno@clisp.org>
11799
11800         *printf: Fix memory leak.
11801         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11802         * lib/vfprintf.c (vfprintf): Likewise.
11803         * lib/dprintf.c (dprintf): Likewise.
11804         * lib/vdprintf.c (vdprintf): Likewise.
11805
11806 2009-12-14  Eric Blake  <ebb9@byu.net>
11807
11808         accept4: adjust module dependencies
11809         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11810
11811         utimens: one more try at avoiding compiler warning
11812         * lib/utimens.c (lutimens): Lower scope of result.
11813
11814 2009-12-13  Bruno Haible  <bruno@clisp.org>
11815
11816         Move the malloc checking from module 'list' to new module 'xlist'.
11817         * modules/xlist: New file.
11818         * lib/gl_xlist.h: New file.
11819         * lib/gl_xlist.c: New file.
11820         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11821         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11822         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11823         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11824         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11825         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11826         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11827         gl_sortedlist_nx_add): New declarations.
11828         (struct gl_list_implementation): Rename and change methods accordingly.
11829         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11830         (gl_list_nx_create): Renamed from gl_list_create.
11831         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11832         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11833         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11834         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11835         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11836         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11837         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11838         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11839         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11840         gl_list_create_empty.
11841         (gl_list_nx_create): Renamed from gl_list_create.
11842         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11843         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11844         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11845         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11846         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11847         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11848         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11849         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11850         * lib/gl_array_list.c: Don't include xalloc.h.
11851         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11852         NULL upon out-of-memory.
11853         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11854         out-of-memory.
11855         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11856         Change return type to 'int'.
11857         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11858         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11859         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11860         upon out-of-memory.
11861         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11862         upon out-of-memory.
11863         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11864         upon out-of-memory.
11865         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11866         upon out-of-memory.
11867         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11868         out-of-memory.
11869         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11870         Update.
11871         (gl_array_list_implementation): Update.
11872         * lib/gl_carray_list.c: Don't include xalloc.h.
11873         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11874         Return NULL upon out-of-memory.
11875         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11876         out-of-memory.
11877         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11878         Change return type to 'int'.
11879         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11880         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11881         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11882         upon out-of-memory.
11883         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11884         upon out-of-memory.
11885         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11886         out-of-memory.
11887         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11888         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11889         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11890         Update.
11891         (gl_carray_list_implementation): Update.
11892         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11893         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11894         gl_linked_create_empty. Return NULL upon out-of-memory.
11895         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11896         out-of-memory.
11897         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11898         Change return type to 'int'. Return -1 upon out-of-memory.
11899         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11900         out-of-memory.
11901         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11902         upon out-of-memory.
11903         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11904         upon out-of-memory.
11905         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11906         NULL upon out-of-memory.
11907         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11908         upon out-of-memory.
11909         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11910         out-of-memory.
11911         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11912         Update.
11913         * lib/gl_linked_list.c: Don't include xalloc.h.
11914         (gl_linked_list_implementation): Update.
11915         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11916         (add_to_bucket): Change return type to 'int'.
11917         (gl_linkedhash_list_implementation): Update.
11918         * lib/gl_anytree_list1.h (free_subtree): New function.
11919         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11920         gl_tree_create_empty. Return NULL upon out-of-memory.
11921         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11922         Change return type to 'int'. Return -1 upon out-of-memory.
11923         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11924         out-of-memory.
11925         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11926         (gl_tree_remove_node): New function, moved here from
11927         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11928         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11929         Update.
11930         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11931         malloc, not xmalloc. Return NULL upon out-of-memory.
11932         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11933         out-of-memory.
11934         (gl_tree_remove_node_from_tree): New function, extracted from
11935         gl_tree_remove_node.
11936         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11937         upon out-of-memory.
11938         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11939         out-of-memory.
11940         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11941         upon out-of-memory.
11942         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11943         upon out-of-memory.
11944         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11945         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11946         not xmalloc. Return NULL upon out-of-memory.
11947         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11948         out-of-memory.
11949         (gl_tree_remove_node_from_tree): New function, extracted from
11950         gl_tree_remove_node.
11951         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11952         upon out-of-memory.
11953         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11954         out-of-memory.
11955         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11956         upon out-of-memory.
11957         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11958         upon out-of-memory.
11959         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11960         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11961         gl_anytree_list1.h before gl_anyavltree_list2.h.
11962         (gl_avltree_list_implementation): Update.
11963         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11964         gl_anytree_list1.h before gl_anyavltree_list2.h.
11965         (gl_rbtree_list_implementation): Update.
11966         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11967         Change return type to 'int'. Return -1 upon out-of-memory. Use
11968         __builtin_expect.
11969         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11970         (gl_avltreehash_list_implementation): Update.
11971         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11972         (gl_rbtreehash_list_implementation): Update.
11973         * modules/array-list (Depends-on): Remove xalloc.
11974         * modules/carray-list (Depends-on): Likewise.
11975         * modules/linked-list (Depends-on): Likewise.
11976         * modules/linkedhash-list (Depends-on): Likewise.
11977         * modules/avltree-list (Depends-on): Likewise.
11978         * modules/rbtree-list (Depends-on): Likewise.
11979         * modules/avltreehash-list (Depends-on): Likewise.
11980         * modules/rbtreehash-list (Depends-on): Likewise.
11981
11982         * modules/xsublist: New file.
11983         * lib/gl_xsublist.h: New file.
11984         * lib/gl_xsublist.c: New file.
11985         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11986         (gl_sublist_nx_create): New declaration.
11987         * lib/gl_sublist.c: Don't include xalloc.h.
11988         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11989         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11990         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11991         Change return type to 'int'. Return -1 upon out-of-memory.
11992         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11993         upon out-of-memory.
11994         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11995         NULL upon out-of-memory.
11996         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
11997         upon out-of-memory.
11998         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
11999         NULL upon out-of-memory.
12000         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
12001         NULL upon out-of-memory.
12002         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
12003         upon out-of-memory.
12004         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
12005         (gl_sublist_list_implementation): Update.
12006         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
12007         upon out-of-memory.
12008         * modules/sublist (Depends-on): Remove xalloc.
12009
12010         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
12011         * tests/test-carray_list.c: Likewise.
12012         * tests/test-linked_list.c: Likewise.
12013         * tests/test-linkedhash_list.c: Likewise.
12014         * tests/test-avltree_list.c: Likewise.
12015         * tests/test-rbtree_list.c: Likewise.
12016         * tests/test-avltreehash_list.c: Likewise.
12017         * tests/test-rbtreehash_list.c: Likewise.
12018         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
12019         * modules/carray-list-tests (Makefile.am): Likewise.
12020         * modules/linked-list-tests (Makefile.am): Likewise.
12021         * modules/linkedhash-list-tests (Makefile.am): Likewise.
12022         * modules/avltree-list-tests (Makefile.am): Likewise.
12023         * modules/rbtree-list-tests (Makefile.am): Likewise.
12024         * modules/avltreehash-list-tests (Makefile.am): Likewise.
12025         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
12026
12027         * NEWS: Mention the changes.
12028
12029         * lib/clean-temp.c: Include gl_xlist.h.
12030         * modules/clean-temp (Depends-on): Add xlist.
12031
12032         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
12033         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
12034
12035         * tests/test-array_oset.c: Include gl_xlist.h.
12036         * modules/array-oset-tests (Depends-on): Add xlist.
12037
12038         Reported by José E. Marchesi <jemarch@gnu.org>.
12039
12040 2009-12-13  Bruno Haible  <bruno@clisp.org>
12041
12042         Move the malloc checking from module 'oset' to new module 'xoset'.
12043         * modules/xoset: New file.
12044         * lib/gl_xoset.h: New file.
12045         * lib/gl_xoset.c: New file.
12046         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
12047         declarations.
12048         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
12049         (struct gl_oset_implementation): Rename and change methods accordingly.
12050         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
12051         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12052         'int'. Mark as __warn_unused_result__.
12053         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
12054         gl_oset_create_empty.
12055         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12056         'int'.
12057         * lib/gl_array_oset.c: Don't include xalloc.h.
12058         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
12059         malloc, not xmalloc.
12060         (grow): Change return type to 'int'. Don't call xalloc_die.
12061         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
12062         to 'int'.
12063         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
12064         'int'.
12065         (gl_array_oset_implementation): Update.
12066         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
12067         gl_tree_create_empty.
12068         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
12069         'int'.
12070         * lib/gl_avltree_oset.c: Don't include xalloc.h.
12071         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12072         xmalloc.
12073         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12074         not xmalloc.
12075         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12076         xmalloc.
12077         (gl_avltree_oset_implementation): Update.
12078         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
12079         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12080         xmalloc.
12081         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12082         not xmalloc.
12083         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12084         xmalloc.
12085         (gl_rbtree_oset_implementation): Update.
12086         * modules/array-oset (Depends-on): Remove xalloc.
12087         * modules/avltree-oset (Depends-on): Likewise.
12088         * modules/rbtree-oset (Depends-on): Likewise.
12089         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
12090         * tests/test-avltree_oset.c: Likewise.
12091         * tests/test-rbtree_oset.c: Likewise.
12092         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
12093         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
12094         * modules/rbtree-oset-tests (Makefile.am): Likewise.
12095         * NEWS: Mention the change.
12096
12097 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
12098
12099         maint.mk: allow a project to override release-prep commands
12100         * top/maint.mk (alpha, beta, stable): Move release-preparatory
12101         commands into a new rule.
12102         (release-prep): New rule.
12103         (release-prep-hook): New overridable variable.
12104
12105 2009-12-13  Bruno Haible  <bruno@clisp.org>
12106
12107         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
12108
12109 2009-12-13  Jim Meyering  <meyering@redhat.com>
12110
12111         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
12112         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
12113
12114 2009-12-12  Bruno Haible  <bruno@clisp.org>
12115
12116         duplocale: Tweak.
12117         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
12118
12119 2009-12-12  Karl Berry  <karl@gnu.org>
12120
12121         * config/srclist.txt (strtoll.c): tab changes, no more sync.
12122
12123 2009-12-12  Bruno Haible  <bruno@clisp.org>
12124
12125         * m4/po.m4: Undo incorrect untabification.
12126
12127 2009-12-12  Bruno Haible  <bruno@clisp.org>
12128
12129         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
12130         * modules/c-strtod (Depends-on): Add locale.
12131         * modules/c-strtold (Depends-on): Likewise.
12132
12133 2009-12-12  Bruno Haible  <bruno@clisp.org>
12134
12135         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
12136
12137 2009-12-11  Eric Blake  <ebb9@byu.net>
12138
12139         setenv: relax requirement in light of POSIX ruling
12140         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
12141         not NULL.
12142         * tests/test-setenv.c (main): Relax test.
12143         * tests/test-unsetenv.c (main): Likewise.
12144         * doc/posix-functions/setenv.texi (setenv): Document this.
12145         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12146
12147 2009-12-11  Bruno Haible  <bruno@clisp.org>
12148
12149         New module 'fd-safer-flag'.
12150         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
12151         * lib/dup-safer.c (dup_safer_flag): Remove function.
12152         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
12153         * lib/fd-safer.c (fd_safer_flag): Remove function.
12154         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12155         * modules/cloexec (configure.ac): Drop indicator macro.
12156         * modules/fd-safer-flag: New file.
12157         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12158         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12159         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12160
12161 2009-12-11  Bruno Haible  <bruno@clisp.org>
12162
12163         Tests for module 'nl_langinfo'.
12164         * modules/nl_langinfo-tests: New file.
12165         * tests/test-nl_langinfo.sh: New file.
12166         * tests/test-nl_langinfo.c: New file.
12167
12168         New module 'nl_langinfo'.
12169         * lib/nl_langinfo.c: New file.
12170         * m4/nl_langinfo.m4: New file.
12171         * modules/nl_langinfo: New file.
12172         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12173
12174 2009-12-11  Bruno Haible  <bruno@clisp.org>
12175
12176         Tests for module 'langinfo'.
12177         * modules/langinfo-tests: New file.
12178         * tests/test-langinfo.c: New file.
12179
12180         New module 'langinfo'.
12181         * lib/langinfo.in.h: New file.
12182         * m4/langinfo_h.m4: New file.
12183         * modules/langinfo: New file.
12184         * doc/posix-headers/langinfo.texi: Mention the new module.
12185
12186 2009-12-11  Bruno Haible  <bruno@clisp.org>
12187
12188         * lib/config.charset: Untabify.
12189
12190 2009-12-11  Bruno Haible  <bruno@clisp.org>
12191
12192         * modules/unistd-safer (configure.ac): Drop indicator macro.
12193
12194 2009-12-11  Bruno Haible  <bruno@clisp.org>
12195
12196         Move pipe2-safer code to its own file.
12197         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12198         * lib/pipe-safer.c (pipe2_safer): Remove function.
12199         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12200         (Makefile.am): Add it to lib_SOURCES.
12201
12202 2009-12-10  Bruno Haible  <bruno@clisp.org>
12203
12204         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12205
12206 2009-12-10  Bruno Haible  <bruno@clisp.org>
12207
12208         Declare which arguments expect non-NULL values, for GCC and clang.
12209         * build-aux/arg-nonnull.h: New file.
12210         * modules/arg-nonnull: New file.
12211         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12212         (inet_ntop, inet_pton): Use it.
12213         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12214         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12215         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12216         (open, openat): Use it.
12217         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12218         (fnmatch): Use it.
12219         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12220         (getopt, getopt_long, getopt_long_only): Use it.
12221         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12222         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12223         Use it.
12224         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12225         (iconv_open): Use it.
12226         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12227         (strtoimax, strtoumax): Use it.
12228         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12229         (duplocale): Use it.
12230         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12231         (frexp, frexpl): Use it.
12232         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12233         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12234         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12235         (tsearch, tfind, tdelete, twalk): Use it.
12236         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12237         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12238         sigpending): Use it.
12239         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12240         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12241         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12242         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12243         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12244         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12245         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12246         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12247         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12248         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12249         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12250         Use it.
12251         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12252         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12253         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12254         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12255         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12256         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12257         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12258         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12259         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12260         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12261         strtoull, unsetenv): Use it.
12262         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12263         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12264         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12265         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12266         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12267         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12268         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12269         (strcasecmp, strncasecmp): Use it.
12270         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12271         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12272         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12273         rpl_setsockopt): Use it.
12274         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12275         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12276         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12277         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12278         (gettimeofday): Use it.
12279         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12280         (times): Use it.
12281         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12282         (uname): Use it.
12283         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12284         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12285         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12286         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12287         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12288         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12289         unlinkat, write): Use it.
12290         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12291         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12292         * lib/argv-iter.h: Include arg-nonnull.h.
12293         (_ATTRIBUTE_NONNULL_): Remove macro.
12294         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12295         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12296         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12297         optimization.
12298         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12299         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12300         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12301         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12302         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12303         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12304         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12305         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12306         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12307         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12308         * modules/dirent (Depends-on): Add arg-nonnull.
12309         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12310         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12311         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12312         * modules/fnmatch (Depends-on): Add arg-nonnull.
12313         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12314         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12315         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12316         * modules/glob (Depends-on): Add arg-nonnull.
12317         (Makefile.am): Insert arg-nonnull.h into glob.h.
12318         * modules/iconv_open (Depends-on): Add arg-nonnull.
12319         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12320         * modules/inttypes (Depends-on): Add arg-nonnull.
12321         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12322         * modules/locale (Depends-on): Add arg-nonnull.
12323         (Makefile.am): Insert arg-nonnull.h into locale.h.
12324         * modules/math (Depends-on): Add arg-nonnull.
12325         (Makefile.am): Insert arg-nonnull.h into math.h.
12326         * modules/netdb (Depends-on): Add arg-nonnull.
12327         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12328         * modules/search (Depends-on): Add arg-nonnull.
12329         (Makefile.am): Insert arg-nonnull.h into search.h.
12330         * modules/signal (Depends-on): Add arg-nonnull.
12331         (Makefile.am): Insert arg-nonnull.h into signal.h.
12332         * modules/spawn (Depends-on): Add arg-nonnull.
12333         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12334         * modules/stdio (Depends-on): Add arg-nonnull.
12335         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12336         * modules/stdlib (Depends-on): Add arg-nonnull.
12337         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12338         * modules/string (Depends-on): Add arg-nonnull.
12339         (Makefile.am): Insert arg-nonnull.h into string.h.
12340         * modules/strings (Depends-on): Add arg-nonnull.
12341         (Makefile.am): Insert arg-nonnull.h into strings.h.
12342         * modules/sys_socket (Depends-on): Add arg-nonnull.
12343         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12344         * modules/sys_stat (Depends-on): Add arg-nonnull.
12345         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12346         * modules/sys_time (Depends-on): Add arg-nonnull.
12347         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12348         * modules/sys_times (Depends-on): Add arg-nonnull.
12349         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12350         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12351         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12352         * modules/time (Depends-on): Add arg-nonnull.
12353         (Makefile.am): Insert arg-nonnull.h into time.h.
12354         * modules/unistd (Depends-on): Add arg-nonnull.
12355         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12356         * modules/wchar (Depends-on): Add arg-nonnull.
12357         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12358         * modules/argv-iter (Depends-on): Add arg-nonnull.
12359         * tests/test-canonicalize.c (null_ptr): New function.
12360         (main): Use it.
12361         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12362         (main): Use it.
12363         * tests/test-memmem.c (null_ptr): New function.
12364         (main): Use it.
12365         Reported by Jim Meyering.
12366
12367 2009-12-10  Bruno Haible  <bruno@clisp.org>
12368
12369         Use spaces for indentation, not tabs.
12370         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12371         * m4/*.m4: Untabify.
12372         * build-aux/*.h: Untabify.
12373         * tests/**/*.[hc]: Untabify.
12374         * README: New section "Indent with spaces, not TABs", based on
12375         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12376         * NEWS: Mention the change.
12377
12378 2009-12-10  Bruno Haible  <bruno@clisp.org>
12379
12380         pty test: Fix link error.
12381         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12382         test_pty_LDADD.
12383
12384 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12385
12386         * modules/pty: New file.
12387         * modules/pty-tests: New file.
12388         * m4/pty.m4: New file.
12389         * tests/test-pty.c: New file.
12390         * doc/glibc-headers/pty.texi: Modified.
12391         * doc/glibc-functions/forkpty.texi: Modified.
12392         * doc/glibc-functions/openpty.texi: Modified.
12393
12394 2009-12-10  Bruno Haible  <bruno@clisp.org>
12395
12396         Avoid syntax error in C++ mode.
12397         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12398
12399 2009-12-10  Bruno Haible  <bruno@clisp.org>
12400
12401         Use sed with option -e.
12402         * gnulib-tool (func_version, func_emit_copyright_notice,
12403         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12404         option -e to sed.
12405         * modules/link-warning (Makefile.am): Likewise.
12406
12407 2009-12-10  Jim Meyering  <meyering@redhat.com>
12408
12409         mgetgroups: do not write bytes beyond end of malloc'd buffer
12410         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12411         username, we call getgroups with a one-element-shorter buffer,
12412         but still told it the length was original, max_n_groups.
12413
12414 2009-12-09  Eric Blake  <ebb9@byu.net>
12415
12416         cloexec: relax license
12417         * modules/cloexec (Maintainer): Add myself.
12418         (License): Use LGPL, not GPL.
12419
12420         link-warning: optimize generation
12421         * modules/link-warning (Makefile.am): Reduce process usage.
12422
12423 2009-12-09  Bruno Haible  <bruno@clisp.org>
12424
12425         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12426         workaround was added on 2009-11-17.
12427
12428 2009-12-09  Jim Meyering  <meyering@redhat.com>
12429             Bruno Haible  <bruno@clisp.org>
12430
12431         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12432         * modules/link-warning (Makefile.am): Make the comment-removing sed
12433         command more robust in the face of bootstrap-prepended comment lines.
12434
12435 2009-12-09  Bruno Haible  <bruno@clisp.org>
12436
12437         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12438         most one group.
12439
12440 2009-12-09  Simon Josefsson <simon@josefsson.org>
12441             Bruno Haible  <bruno@clisp.org>
12442
12443         * build-aux/link-warning.h: Add copyright notice.
12444         * modules/link-warning (Makefile.am): Generate link-warning.h from
12445         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12446         * NEWS: Mention change in link-warning module.
12447         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12448         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12449         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12450         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12451         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12452         * modules/math (Makefile.am): Add dependency to math.h.
12453         * modules/search (Makefile.am): Add dependency to search.h.
12454         * modules/signal (Makefile.am): Add dependency to signal.h.
12455         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12456         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12457         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12458         * modules/string (Makefile.am): Add dependency to string.h.
12459         * modules/strings (Makefile.am): Add dependency to strings.h.
12460         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12461         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12462         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12463         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12464         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12465         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12466         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12467         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12468         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12469
12470 2009-12-09  Bruno Haible  <bruno@clisp.org>
12471
12472         fchdir: Optimize away rpl_fstat when possible.
12473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12474         REPLACE_OPEN_DIRECTORY.
12475         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12476
12477 2009-12-09  Bruno Haible  <bruno@clisp.org>
12478
12479         * lib/fchdir.c: Update comment.
12480
12481 2009-12-09  Bruno Haible  <bruno@clisp.org>
12482
12483         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12484
12485 2009-12-08  Eric Blake  <ebb9@byu.net>
12486
12487         fchdir: avoid memory leak on re-registration.
12488         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12489
12490 2009-12-08  Jim Meyering  <meyering@redhat.com>
12491
12492         init.sh: avoid Solaris 10 /bin/sh portability problem
12493         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12494         sourced script:
12495           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12496           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12497           bar
12498         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12499         and two tests used that idiom.
12500         * tests/init.sh: Update suggested usage comments.
12501         (path_prepend_): New function, to be used in place
12502         of the --src-path=DIR option.
12503         (setup_): Move PATH-prepending code into path_prepend_.
12504         * tests/test-pread.sh: Adapt to new usage.
12505         * tests/test-xalloc-die.sh: Likewise.
12506
12507 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12508
12509         * doc/gnulib.texi (Glibc pty.h): Add.
12510         * doc/glibc-functions/forkpty.texi: Add.
12511         * doc/glibc-functions/openpty.texi: Add.
12512         Suggested by Bruno Haible.
12513
12514 2009-12-08  Eric Blake  <ebb9@byu.net>
12515
12516         fchdir: fix logic bugs
12517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12518         * tests/test-fchdir.c (main): Enhance test.
12519         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12520         is in use.
12521
12522         dup2: fix logic bugs
12523         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12524         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12525         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12526         exists.
12527         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12528
12529 2009-12-07  Eric Blake  <ebb9@byu.net>
12530
12531         unlink: fix m4 detection
12532         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12533
12534         unistd-safer: add unit test
12535         * modules/unistd-safer-tests: New file.
12536         * tests/test-dup-safer.c: Likewise.
12537         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12538         * tests/test-dup2.c (setmode): Likewise.
12539         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12540
12541         cloexec: preserve text vs. binary across dup_cloexec
12542         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12543         mode.
12544         * modules/dup2-tests (Depends-on): Add binary-io.
12545         * modules/cloexec-tests (Depends-on): Likewise.
12546         * tests/test-dup2.c (setmode, is_mode): New helpers.
12547         (main): Add tests that translation mode is preserved.
12548         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12549         Reported by Bruno Haible.
12550
12551         mgetgroups: reduce duplicate listings
12552         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12553         resulting array.
12554         * tests/test-chown.h (test_chown): Simplify client.
12555         * tests/test-lchown.h (test_lchown): Likewise.
12556
12557 2009-12-06  Bruno Haible  <bruno@clisp.org>
12558
12559         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12560         value.
12561
12562 2009-12-06  Bruno Haible  <bruno@clisp.org>
12563
12564         * lib/progname.c: Include stdio.h, stdlib.h.
12565         (set_program_name): Reject a NULL argument.
12566
12567 2009-12-05  Eric Blake  <ebb9@byu.net>
12568
12569         pipe2-safer: new module
12570         * modules/pipe2-safer: New file.
12571         * lib/unistd-safer.h (pipe2_safer): New prototype.
12572         * lib/unistd--.h (pipe2): New wrapper.
12573         * lib/pipe-safer.c (pipe2_safer): New function.
12574         * modules/pipe (Depends-on): Add pipe2-safer.
12575         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12576
12577         stdlib-safer: preserve cloexec flag for mkostemp[s]
12578         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12579         fd_safer_flag.
12580
12581         unistd-safer: allow preservation of cloexec status via flag
12582         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12583         prototypes.
12584         * lib/dup-safer.c (dup_safer_flag): New function.
12585         * lib/fd-safer.c (fd_safer_flag): Likewise.
12586         * modules/cloexec (configure.ac): Set witness.
12587
12588         test-dup2: enhance test
12589         * modules/dup2-tests (Depends-on): Add cloexec.
12590         * tests/test-dup2.c (main): Enhance test.
12591
12592         cloexec: add dup_cloexec
12593         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12594         header and comments.
12595         * lib/cloexec.c (set_cloexec_flag): Add comments.
12596         (dup_cloexec): New function, with mingw implementation borrowed
12597         from...
12598         * lib/w32spawn.h (dup_noinherit): ...here.
12599         * modules/execute (Depends-on): Add cloexec.
12600         * modules/pipe (Depends-on): Likewise.
12601         * modules/cloexec (Depends-on): Add dup2.
12602         * modules/cloexec-tests (Files): New file.
12603         * tests/test-cloexec.c: Likewise.
12604
12605         test-xalloc-die: fix test for mingw
12606         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12607         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12608         directory and .exe suffix off argv[0] output.
12609
12610         test-fseeko: fix test for mingw
12611         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12612         than undefining fseek, so test will pass on mingw.
12613
12614 2009-12-05  Bruno Haible  <bruno@clisp.org>
12615
12616         * lib/progname.h (set_program_name): Clarify specification.
12617         * lib/progname.c (set_program_name): Likewise.
12618         Reported by Jim Meyering.
12619
12620 2009-12-05  Jim Meyering  <meyering@redhat.com>
12621
12622         maint.mk: backslash-escape parens in default regexp
12623         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12624         backslash-escape the literal parentheses.
12625
12626         maint.mk: news-date-check: use grep -E
12627         * top/maint.mk (today): Define a Make variable, not a...
12628         (news-date-check): ...shell variable.
12629         (news-date-regexp): Use the Make variable.
12630         Use grep's -E option.  Change the failing diagnostic to mention
12631         the variable, $(news-date-regexp).
12632
12633 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12634
12635         maintainer-makefile: allow customization of NEWS entry format
12636         * top/maint.mk (news-date-regexp): New overridable variable.
12637         (news-date-check): Use it.
12638
12639 2009-12-04  Eric Blake  <ebb9@byu.net>
12640
12641         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12642         * lib/mgetgroups.h (xgetgroups): New prototype.
12643         * lib/mgetgroups.c (xgetgroups): New wrapper.
12644         (mgetgroups): Handle ENOSYS.
12645         * modules/mgetgroups (Depends-on): Add realloc.
12646         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12647
12648         mgetgroups: avoid argument promotion issues with -1
12649         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12650         for invalid gid_t.
12651         * tests/test-chown.h (getegid, test_chown): Likewise.
12652         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12653
12654 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12655
12656         exclude: Fix header file problems.
12657         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12658
12659 2009-12-01  Jim Meyering  <meyering@redhat.com>
12660
12661         fts: fts_open: do not let an empty string cause immediate failure
12662         This is required in support of GNU rm, for which the command
12663         "rm A '' B" must process and remove both A and B, in spite of
12664         the empty string argument.
12665         * lib/fts.c (fts_open): Do not let the presence of an empty string
12666         cause fts_open to fail immediately.  Most fts-using tools must be
12667         able to process all arguments, in order, and can be expected to
12668         diagnose such arguments themselves.
12669
12670 2009-11-30  Eric Blake  <ebb9@byu.net>
12671
12672         utimens: fix compilation error
12673         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12674         Declare variable at right scope.
12675
12676 2009-11-29  Jim Meyering  <meyering@redhat.com>
12677
12678         bootstrap: handle perl-5.11's changed --version output
12679         * build-aux/bootstrap (get_version): Handle perl separately,
12680         since perl-5.11's --version output is different.
12681
12682 2009-11-28  Jim Meyering  <meyering@redhat.com>
12683
12684         userspec: depend on the inttostr module, too
12685         * modules/userspec (Depends-on): Add inttostr.
12686
12687         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12688         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12689         number of MAXUID when it evaluates to (uid_t) -1.
12690         Likewise for group ID.  Reported by Matt McCutchen in
12691         <http://savannah.gnu.org/bugs/?28113>
12692
12693         userspec: reformat to use spaces, not TABs
12694         * lib/userspec.c: Expand TABs to spaces.
12695         Add Emacs' "indent-tabs-mode: nil" hint.
12696
12697 2009-11-27  Eric Blake  <ebb9@byu.net>
12698
12699         getopt-gnu: flush out another BSD bug
12700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12701         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12702         flush out BSD bug.
12703         * tests/test-getopt.h (test_getopt): End lists with NULL.
12704         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12705         (test_getopt_long_posix): Enhance test.
12706         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12707         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12708         getopt-gnu.
12709         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12710         Likewise.
12711
12712 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12713
12714         * modules/idpriv-droptemp-tests (Notice): Fix text.
12715
12716 2009-11-27  Jim Meyering  <meyering@redhat.com>
12717
12718         test-xalloc-die: avoid spurious failure due to libtool argv difference
12719         In a libtool-enabled project, this test would fail due to a difference
12720         in the emitted program name, e.g.,
12721         -test-xalloc-die: memory exhausted
12722         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12723         Use program to avoid that.
12724         * modules/xalloc-die-tests (Depends-on): Add progname.
12725         * tests/test-xalloc-die.c: Include progname.h".
12726         (program_name): Remove decl.
12727         (main): Call set_program_name.
12728         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12729
12730 2009-11-26  Richard Jones  <rjones@redhat.com>
12731
12732         w32sock: leave win32 error in place.
12733         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12734
12735 2009-11-26  Eric Blake  <ebb9@byu.net>
12736
12737         init.sh: suggest to use skip_ and fail_ functions in comments
12738         * tests/init.sh: Add a sentence.
12739
12740 2009-11-25  Bruno Haible  <bruno@clisp.org>
12741
12742         init.sh: add documentation in comments
12743         * tests/init.sh: Add some developer and user documentation.
12744
12745 2009-11-26  Jim Meyering  <meyering@redhat.com>
12746
12747         init.sh: accommodate even those who specify bogus srcdir manually
12748         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12749         configure-time tests to be sanitized, so that there is no need to
12750         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12751         (with no double quotes) suffices.  However, since tests may be
12752         invoked manually, and since you may explicitly set srcdir to the
12753         name of a directory containing spaces, do quote its uses here.
12754         * tests/test-pread.sh: Likewise.
12755         Suggested by Bruno Haible.
12756
12757         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12758         * tests/test-pread.sh: Write no data into the pipe, because
12759         test-pread actually reads none.  This avoids a diagnostic,
12760         "bash: echo: write error: Broken pipe", that arises in the unusual
12761         event something is ignoring SIGPIPE, and might be interpreted
12762         as some sort of failure.  Reported by Bruno Haible.
12763
12764 2009-11-25  Jim Meyering  <meyering@redhat.com>
12765
12766         test-pread: cover failure with ESPIPE and EINVAL
12767         * tests/test-pread.c (main): Test for failure, too.
12768         * tests/test-pread.sh: Invoke with stdin on a pipe.
12769         Suggested by Eric Blake.
12770
12771         pread: improvement and fix
12772         * modules/pread (Depends-on): Depend on lseek, for portability to
12773         e.g., mingw.  Suggested by Eric Blake.
12774         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12775
12776         unistd.in.h: correct declaration of pread
12777         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12778         Reported by Richard W.M. Jones.
12779
12780         test-pread.sh: distribute the test script
12781         * modules/pread-tests (Files): Include test-pread.sh.
12782
12783         test-pread.sh: clean up
12784         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12785         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12786         That is unnecessary, since it's always ".".
12787         Suggestion from Eric Blake.
12788
12789         test-pread.sh: make executable
12790         * tests/test-pread.sh: Set executable bit.
12791         Reported by Eric Blake.
12792
12793         correct typo in test-pread.sh
12794         * tests/test-pread.sh: Add #! line.
12795
12796         test pread
12797         * tests/test-pread.c: New file.
12798         * tests/test-pread.sh: Likewise.
12799         * modules/pread-tests: Likewise.
12800
12801         pread: new module
12802         * modules/pread: New file.
12803         * lib/unistd.in.h (pread): Define/declare.
12804         * lib/pread.c (pread): New file.
12805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12806         * modules/unistd (Makefile.am): Substitute witnesses.
12807         * doc/posix-functions/pread.texi (pread): Update.
12808         * MODULES.html.sh: Add pread.
12809
12810 2009-11-25  Jim Meyering  <meyering@redhat.com>
12811
12812         tests/init.sh: new file to be used via most *.sh tests
12813         * tests/init.sh: New file.
12814
12815 2009-11-25  Eric Blake  <ebb9@byu.net>
12816
12817         utimens: work around older Linux failure with symlinks
12818         * lib/utimens.c (lutimensat_works_really): New variable.
12819         (fdutimens, lutimens): Use it to manage kernels that support
12820         nanosecond times on files, but not on symlinks.
12821         Reported by Ondřej Vašík.
12822
12823         utimes: fix configure grammar
12824         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12825
12826 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12827
12828         regex: Fix fastmap for multibyte character ranges.
12829         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12830         characters when a multibyte character range is included.
12831
12832 2009-11-22  Andy Wingo  <wingo@pobox.com>
12833
12834         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12835         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12836
12837 2009-11-24  Bruno Haible  <bruno@clisp.org>
12838
12839         doc: Most *_l functions exist in MacOS X 10.5.
12840         * doc/posix-functions/duplocale.texi: Update platforms list.
12841         * doc/posix-functions/freelocale.texi: Likewise.
12842         * doc/posix-functions/newlocale.texi: Likewise.
12843         * doc/posix-functions/uselocale.texi: Likewise.
12844         * doc/posix-functions/isalnum_l.texi: Likewise.
12845         * doc/posix-functions/isalpha_l.texi: Likewise.
12846         * doc/posix-functions/isblank_l.texi: Likewise.
12847         * doc/posix-functions/iscntrl_l.texi: Likewise.
12848         * doc/posix-functions/isdigit_l.texi: Likewise.
12849         * doc/posix-functions/isgraph_l.texi: Likewise.
12850         * doc/posix-functions/islower_l.texi: Likewise.
12851         * doc/posix-functions/isprint_l.texi: Likewise.
12852         * doc/posix-functions/ispunct_l.texi: Likewise.
12853         * doc/posix-functions/isspace_l.texi: Likewise.
12854         * doc/posix-functions/isupper_l.texi: Likewise.
12855         * doc/posix-functions/iswalnum_l.texi: Likewise.
12856         * doc/posix-functions/iswalpha_l.texi: Likewise.
12857         * doc/posix-functions/iswblank_l.texi: Likewise.
12858         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12859         * doc/posix-functions/iswctype_l.texi: Likewise.
12860         * doc/posix-functions/iswdigit_l.texi: Likewise.
12861         * doc/posix-functions/iswgraph_l.texi: Likewise.
12862         * doc/posix-functions/iswlower_l.texi: Likewise.
12863         * doc/posix-functions/iswprint_l.texi: Likewise.
12864         * doc/posix-functions/iswpunct_l.texi: Likewise.
12865         * doc/posix-functions/iswspace_l.texi: Likewise.
12866         * doc/posix-functions/iswupper_l.texi: Likewise.
12867         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12868         * doc/posix-functions/isxdigit_l.texi: Likewise.
12869         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12870         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12871         * doc/posix-functions/strcoll_l.texi: Likewise.
12872         * doc/posix-functions/strfmon_l.texi: Likewise.
12873         * doc/posix-functions/strftime_l.texi: Likewise.
12874         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12875         * doc/posix-functions/strxfrm_l.texi: Likewise.
12876         * doc/posix-functions/tolower_l.texi: Likewise.
12877         * doc/posix-functions/toupper_l.texi: Likewise.
12878         * doc/posix-functions/towctrans_l.texi: Likewise.
12879         * doc/posix-functions/towlower_l.texi: Likewise.
12880         * doc/posix-functions/towupper_l.texi: Likewise.
12881         * doc/posix-functions/wcscoll_l.texi: Likewise.
12882         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12883         * doc/posix-functions/wctrans_l.texi: Likewise.
12884         * doc/posix-functions/wctype_l.texi: Likewise.
12885         * doc/glibc-functions/strptime_l.texi: Likewise.
12886         * doc/glibc-functions/strtod_l.texi: Likewise.
12887         * doc/glibc-functions/strtof_l.texi: Likewise.
12888         * doc/glibc-functions/strtol_l.texi: Likewise.
12889         * doc/glibc-functions/strtold_l.texi: Likewise.
12890         * doc/glibc-functions/strtoll_l.texi: Likewise.
12891         * doc/glibc-functions/strtoul_l.texi: Likewise.
12892         * doc/glibc-functions/strtoull_l.texi: Likewise.
12893         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12894         * doc/glibc-functions/wcstod_l.texi: Likewise.
12895         * doc/glibc-functions/wcstof_l.texi: Likewise.
12896         * doc/glibc-functions/wcstol_l.texi: Likewise.
12897         * doc/glibc-functions/wcstold_l.texi: Likewise.
12898         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12899         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12900         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12901
12902 2009-11-24  Bruno Haible  <bruno@clisp.org>
12903
12904         duplocale: Fix logic bug.
12905         * lib/duplocale.c: Don't include <langinfo.h>.
12906         (_NL_LOCALE_NAME): Remove macro.
12907         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12908         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12909
12910 2009-11-23  Jim Meyering  <meyering@redhat.com>
12911
12912         test-update-copyright: don't hard-code /usr/bin/perl
12913         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12914         perl to print the current year.  Gilles Espinasse reported that
12915         the replaced use of perl was hard-coded as /usr/bin/perl.
12916
12917 2009-11-23  Bruno Haible  <bruno@clisp.org>
12918
12919         duplocale: Add support for glibc 2.3.x.
12920         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12921
12922 2009-11-22  Bruno Haible  <bruno@clisp.org>
12923
12924         vasnprintf: Tiny optimization.
12925         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12926         MacOS X.
12927
12928 2009-11-22  Bruno Haible  <bruno@clisp.org>
12929
12930         Tests for module 'duplocale'.
12931         * modules/duplocale-tests: New file.
12932         * tests/test-duplocale.c: New file.
12933
12934         New module 'duplocale'.
12935         * m4/duplocale.m4: New file.
12936         * lib/locale.in.h (duplocale): New declaration.
12937         * lib/duplocale.c: New file.
12938         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12939         gl_LOCALE_H_DEFAULTS): New macros.
12940         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12941         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12942         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12943         REPLACE_DUPLOCALE.
12944         * modules/duplocale: New file.
12945         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12946
12947 2009-11-22  Bruno Haible  <bruno@clisp.org>
12948
12949         * modules/locale-tests (configure.ac): Test for newlocale function.
12950         * tests/test-locale.c: When the system has extended locale functions,
12951         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12952
12953         locale: Make locale_t available when possible.
12954         * lib/locale.in.h: Include <xlocale.h> when it exists.
12955         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12956         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12957         * modules/locale (Depends-on): Add extensions.
12958         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12959         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12960
12961 2009-11-22  Bruno Haible  <bruno@clisp.org>
12962
12963         Add comments.
12964         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12965         invocation.
12966         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12967         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12968         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12969
12970 2009-11-22  Bruno Haible  <bruno@clisp.org>
12971
12972         error: account for the possibility of freopen (stdout).
12973         * lib/error.c: Include <unistd.h>.
12974         (flush_stdout): New function, extracted from error and error_at_line.
12975         Determine stdout's fd dynamically.
12976         (error, error_at_line): Invoke flush_stdout.
12977         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12978         * modules/error (Depends-on): Add unistd.
12979
12980 2009-11-22  Bruno Haible  <bruno@clisp.org>
12981
12982         diffseq: Add comment.
12983         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12984
12985 2009-11-22  Jim Meyering  <meyering@redhat.com>
12986
12987         c-stack: avoid defining an unused static function
12988         * lib/c-stack.c (find_stack_direction): Do not define this function
12989         when it will not be used.
12990
12991         diffseq: avoid spurious gcc warnings
12992         * lib/diffseq.h (IF_LINT2): Define.
12993         (compareseq): Use it to initialize two members of "part".
12994         This avoids two used-uninitialized warnings.
12995
12996 2009-11-21  Jim Meyering  <meyering@redhat.com>
12997
12998         c-stack: avoid "ignoring return value of `write'" warning
12999         * lib/c-stack.c: Include "ignore-value.h".
13000         (die): Explicitly ignore each write return value.
13001         * modules/c-stack (Depends-on): Add ignore-value.
13002
13003 2009-11-21  Bruno Haible  <bruno@clisp.org>
13004
13005         diffseq: reduce scope of variable 'best'.
13006         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
13007         variable, earlier used for two different purposes.
13008
13009 2009-11-21  Jim Meyering  <meyering@redhat.com>
13010
13011         diffseq: remove useless assignment to "best"
13012         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
13013         assignment.  At that point "best" is already guaranteed to be zero.
13014
13015 2009-11-20  Eric Blake  <ebb9@byu.net>
13016
13017         build: mention ftp redirector in release announcements
13018         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
13019         values that used to come from cfg.mk; mention FTP redirect URL.
13020         * build-aux/announce-gen: Mention the mirror list.
13021         Suggested by Karl Berry.
13022
13023         nanosleep: improve port to mingw
13024         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
13025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
13026         LIB_NANOSLEEP, but only when needed.
13027         * modules/select (Link): Document LIBSOCKET.
13028         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
13029         enough.
13030
13031         nanosleep: work around cygwin bug
13032         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
13033         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
13034         bug.
13035         (getnow): Delete, not needed.
13036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
13037         LIB_CLOCK_GETTIME.
13038         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
13039         clock-time, gettime.
13040         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
13041         bug.
13042         * modules/nanosleep-tests: New test.
13043         * tests/test-nanosleep.c: New file.
13044
13045         sleep: work around cygwin bug
13046         * lib/sleep.c (rpl_sleep): Work around the bug.
13047         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
13048         (gl_PREREQ_SLEEP): Delete unused macro.
13049         * modules/sleep (Depends-on): Add verify.
13050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13051         * modules/unistd (Makefile.am): Substitute witness.
13052         * lib/unistd.in.h (sleep): Update prototype.
13053         * doc/posix-functions/sleep.texi (sleep): Document the bug.
13054         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
13055         * modules/sleep-tests (Depends-on): Check for alarm.
13056
13057 2009-11-20  Jim Meyering  <meyering@redhat.com>
13058
13059         maint.mk: improve sc_prohibit_magic_number_exit
13060         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
13061         so it does not match uses like System.exit(1).
13062         Add comments showing how to correct all offenders.
13063
13064 2009-11-19  Eric Blake  <ebb9@byu.net>
13065
13066         xalloc-die-tests: add missing library
13067         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
13068
13069         test-xvasprintf: silence compiler warnings
13070         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
13071         empty string from gcc.
13072
13073 2009-11-19  Jim Meyering  <meyering@redhat.com>
13074
13075         xfreopen: new module, from coreutils
13076         * modules/xfreopen: New module.
13077         * lib/xfreopen.c: New file.
13078         * lib/xfreopen.h: New file.
13079         * MODULES.html.sh (File stream based Input/Output"): Add it.
13080
13081 2009-11-19  Eric Blake  <ebb9@byu.net>
13082
13083         manywarnings: depend on warnings
13084         * modules/manywarnings (Depends-on): Add warnings.
13085
13086         build: avoid compiler warnings
13087         * lib/select.c (rpl_select): Delete unused variable.
13088         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
13089
13090 2009-11-18  Eric Blake  <ebb9@byu.net>
13091
13092         tests: avoid false negative with --with-packager
13093         * tests/test-version-etc.sh: Discard packager information.
13094         * tests/test-argp-version-etc-1.sh: Likewise.
13095         Reported by Mike Frysinger.
13096
13097         utimens: fix regression on Solaris
13098         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
13099         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
13100         can only change fd timestamps via futimesat.  Instead, use an
13101         additional witness macro to avoid BSD bug.
13102         Reported by Jim Meyering.
13103
13104 2009-11-17  Eric Blake  <ebb9@byu.net>
13105
13106         usleep: use it to simplify tests
13107         * modules/stat-time-tests (Depends-on): Add usleep.
13108         (configure.ac): Drop usleep check.
13109         * modules/chown-tests (Depends-on, configure.ac): Likewise.
13110         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
13111         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
13112         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
13113         * modules/openat-tests (Depends-on, configure.ac): Likewise.
13114         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
13115         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
13116         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
13117         Likewise.
13118         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
13119         * tests/test-lchown.h (nap): Likewise.
13120         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
13121         * tests/test-stat-time.c (nap): Likewise.
13122         * tests/test-utimens-common.h (nap): Update comments.
13123
13124         usleep: new module
13125         * modules/usleep: New file.
13126         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13127         * lib/usleep.c (usleep): Likewise.
13128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13129         * modules/unistd (Makefile.am): Substitute witnesses.
13130         * lib/unistd.in.h (usleep): Add declaration.
13131         * doc/pastposix-functions/usleep.texi (usleep): Document this.
13132         * MODULES.html.sh (Date and time): Likewise.
13133         * modules/usleep-tests (Depends-on): New test.
13134         * tests/test-usleep.c: New file.
13135
13136         chown: work around OpenBSD bug
13137         * lib/chown.c (rpl_chown): Work around the bug.
13138         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
13139         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
13140         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
13141         * modules/chown (Depends-on): Add stdbool.
13142         * modules/lchown (Depends-on): Likewise.
13143         * doc/posix-functions/chown.texi (chown): Document the bug.
13144         * doc/posix-functions/lchown.texi (lchown): Likewise.
13145         * tests/test-lchown.h (test_chown): Relax test.
13146
13147         mkstemp: avoid conflict with C++ keyword template
13148         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
13149         * lib/mkostemp.c (mkostemp): Likewise.
13150         * lib/mkostemps.c (mkostemps): Likewise.
13151         * lib/mkstemp.c (mkstemp): Likewise.
13152         * lib/mkstemps.c (mkstemps): Likewise.
13153
13154         xalloc-die-tests: optimize
13155         * tests/test-xalloc-die.sh: Reduce number of processes.
13156
13157 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13158
13159         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13160         patch from ludo@gnu.org (Ludovic Courtès).
13161
13162 2009-11-17  Jim Meyering  <meyering@redhat.com>
13163
13164         version-etc: use proper license string
13165         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13166         * modules/version-etc-fsf: Likewise.
13167
13168 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13169
13170         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13171         printed to stdout.  Deal with EOL differences.
13172
13173 2009-11-17  Eric Blake  <ebb9@byu.net>
13174
13175         unsetenv: work around Solaris bug
13176         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13177         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13178         Reported by Jim Meyering.
13179
13180         vasnprintf: avoid compiler warnings
13181         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13182         variables.
13183         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13184
13185 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13186
13187         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13188         settings since xalloc-die is no longer the self test,
13189         xalloc-die.sh is.
13190
13191 2009-11-17  Jim Meyering  <meyering@redhat.com>
13192
13193         test-xalloc-die.sh: make the code agree with the commit log
13194         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13195         at the end, just in case you happen to have a test-xalloc-die
13196         program in some other PATH directory.
13197
13198         test-xalloc-die.sh: fix a portability bug
13199         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13200         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13201         Otherwise, argv[0] (as often seen in diagnostics) would be too
13202         system-dependent, sometimes with, and sometimes without the leading "./".
13203
13204         version-etc-fsf: relax license to LGPLv3+
13205         * modules/version-etc-fsf (License): Relax license.
13206
13207 2009-11-16  Eric Blake  <ebb9@byu.net>
13208
13209         xalloc-die-tests: avoid printing null pointer
13210         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13211         shell script.
13212         * tests/test-xalloc-die.c (program_name): Declare.
13213         * tests/test-xalloc-die.sh (tmpfiles): New file.
13214
13215         setenv, unsetenv: work around various bugs
13216         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13217         (setenv) [HAVE_SETENV]: Work around bugs.
13218         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13219         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13220         for bugs.
13221         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13222         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13224         * modules/stdlib (Makefile.am): Update substitutions.
13225         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13226         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13227         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13228         * modules/setenv-tests: New test.
13229         * modules/unsetenv-tests: Likewise.
13230         * tests/test-setenv.c: New file.
13231         * tests/test-unsetenv.c: Likewise.
13232
13233 2009-11-16  Jim Meyering  <meyering@redhat.com>
13234
13235         version-etc: relax license to LGPLv3+
13236         * modules/version-etc (License): Relax license.
13237
13238         better AC_REQUIRE expanded-before-required-warning avoidance
13239         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13240         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13241         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13242         which is no longer needed.
13243
13244 2009-11-16  Eric Blake  <ebb9@byu.net>
13245
13246         test-freading: clean up temporary file
13247         * tests/test-freading.c (main): Remove file on success, and use
13248         ASSERT more liberally.
13249         Reported by Jim Meyering.
13250
13251 2009-11-16  Jim Meyering  <meyering@redhat.com>
13252
13253         avoid new AC_REQUIRE expanded-before-required warnings
13254         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13255         merely using it.
13256         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13257         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13258
13259 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13260
13261         * tests/test-xalloc-die.c: New file.
13262         * modules/xalloc-die-tests: New file.
13263         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13264         XFAIL_TESTS so it can be appended by modules.
13265
13266 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13267
13268         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13269         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13270
13271 2009-11-14  Eric Blake  <ebb9@byu.net>
13272
13273         fnmatch: avoid compiler warning
13274         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13275         to silence compiler warning about mismatch signedness in ?:.
13276         Reported by Robert Millan.
13277
13278         intprops: add double-inclusion guard
13279         * lib/intprops.h: Allow idempotent includes.
13280         Suggested by Bruce Korb.
13281
13282         openat: detect Solaris fchownat bug
13283         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13284         penalizing glibc chownat when only lchownat is broken.
13285         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13286         trailing slash bugs.
13287         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13288         * modules/openat-tests (Files): Include more files.
13289         (Depends-on): Add mgetgroups, sleep, stat-time.
13290         (configure.ac): Add additional checks.
13291         (Makefile.am): Build new test.
13292         * tests/test-fchownat.c: New file.
13293
13294         lchown: detect Solaris and FreeBSD bug
13295         * lib/lchown.c (rpl_lchown): Work around bug.
13296         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13298         * modules/unistd (Makefile.am): Populate it.
13299         * lib/unistd.in.h (lchown): Update declaration.
13300         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13301         * modules/lchown-tests: New file.
13302         * tests/test-lchown.h (test_lchown): Likewise.
13303         * tests/test-lchown.c (main): Likewise.
13304
13305         chown: detect Solaris and FreeBSD bug
13306         * lib/chown.c (rpl_chown): Work around bug.
13307         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13308         (gl_PREREQ_CHOWN): Delete.
13309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13310         * modules/unistd (Makefile.am): Populate it.
13311         * lib/unistd.in.h (chown): Update declaration.
13312         * lib/lchown.c (chown): Update client.
13313         * modules/lchown (Depends-on): Add lstat.
13314         * doc/posix-functions/chown.texi (chown): Document the bug.
13315         * doc/posix-functions/getgroups.texi (getgroups): Document
13316         getgroups pitfall.
13317         * modules/chown-tests: New file.
13318         * tests/test-chown.h (test_chown): Likewise.
13319         * tests/test-chown.c (main): Likewise.
13320
13321 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13322
13323         gnulib-tool: correctly detect absence of m4 directories
13324         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13325
13326 2009-11-14  Jim Meyering  <meyering@redhat.com>
13327
13328         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13329         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13330
13331 2009-11-14  John W. Eaton  <jwe@gnu.org>
13332
13333         strftime.h: wrap funtion declaration in extern "C" block
13334         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13335
13336 2009-11-13  Eric Blake  <ebb9@byu.net>
13337
13338         getgroups: avoid compiler warning
13339         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13340
13341         getgroups: work around FreeBSD bug
13342         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13343         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13344         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13345         * tests/test-getgroups.c (main): Fix buffer overrun.
13346
13347         getgroups: avoid compilation failure
13348         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13349         * modules/getgroups (Depends-on): Add stdint.
13350
13351 2009-11-13  Jim Meyering  <meyering@redhat.com>
13352
13353         test-getgroups: avoid compilation failure
13354         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13355
13356 2009-11-13  Eric Blake  <ebb9@byu.net>
13357
13358         mgetgroups: new module, taken from coreutils
13359         * modules/mgetgroups: New file.
13360         * lib/mgetgroups.h: Likewise.
13361         * lib/mgetgroups.c (mgetgroups): Likewise.
13362         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13363         * MODULES.html.sh (Users and groups): Mention it.
13364
13365         getgroups: don't expose GETGROUPS_T to user
13366         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13367         an element at a time if GETGROUPS_T is wrong size.
13368         * lib/getugroups.h (getugroups): Change signature.
13369         * lib/unistd.in.h (getgroups): Likewise.
13370         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13371         signature needs fixing.
13372         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13373         AC_TYPE_GETGROUPS.
13374         * modules/group-member (Depends-on): Add getgroups.
13375         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13376         (group_member): Rely on getgroups replacement.
13377         * lib/getugroups.c (getugroups): Use gid_t.
13378         * tests/test-getgroups.c (main): Likewise.
13379         * NEWS: Mention the signature change.
13380         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13381         problem with signature.
13382         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13383         GETGROUPS_T is still useful for setgroups.
13384
13385         getgroups, getugroups: provide stubs for mingw
13386         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13387         * lib/getugroups.c (getugroups): Likewise.
13388         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13389         function.  Modernize replacement scheme.
13390         (gl_PREREQ_GETGROUPS): Delete.
13391         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13392         * modules/getgroups (configure.ac): Declare witness.
13393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13394         * modules/unistd (Depends-on): Substitute witness.
13395         * lib/unistd.in.h (getgroups): Declare replacement.
13396
13397         getgroups: avoid calling exit
13398         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13399         drop xalloc.
13400         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13401         dependencies.
13402         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13403         exiting, in the rare case of malloc failure.
13404
13405         getgroups: fix logic error
13406         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13407         has more than 20 groups.
13408         * modules/getgroups-tests: New test.
13409         * tests/test-getgroups.c: New file.
13410
13411 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13412
13413         * tests/test-base64.c: Improve.
13414
13415 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13416
13417         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13418         Blake <ebb9@byu.net>.
13419
13420 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13421
13422         * tests/test-xvasprintf.c: Add %s%s related checks.
13423
13424 2009-11-12  Eric Blake  <ebb9@byu.net>
13425
13426         version-etc: match standards.texi style
13427         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13428         and use <> only for URLs.
13429
13430 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13431
13432         fts: do not fail on a submount during traversal
13433         * lib/fts.c (fts_build): Read the stat info again after opening
13434         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13435         Original report at http://bugzilla.redhat.com/501848.
13436
13437 2009-11-12  Jim Meyering  <meyering@redhat.com>
13438
13439         bootstrap: sync from coreutils
13440         * build-aux/bootstrap (bootstrap_epilogue): New function.
13441         Use git_modules_config in one more place.  This make bootstrap's
13442         --gnulib-srcdir option more useful for testing.
13443
13444         bootstrap: generalize autoheader check
13445         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13446         AC_CONFIG_HEADERS.
13447
13448 2009-11-11  Eric Blake  <ebb9@byu.net>
13449
13450         mkfifoat: use new modules for Solaris and BSD bugs
13451         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13452         * lib/mkfifoat.c (mknodat): Split...
13453         * lib/mknodat.c (mknodat): ...into new file.
13454         * modules/mkfifoat (Files): Ship new file.
13455         (Depends-on): Add mkfifo, mknod.
13456         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13457         (Depends-on): Add symlink.
13458         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13459         redundant with test_mkfifo.h.
13460         (do_mkfifoat, do_mknodat): New helpers.
13461
13462         mknod: new module
13463         * modules/mknod: New file.
13464         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13465         * lib/mknod.c (mknod): Likewise.
13466         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13467         defaults.
13468         * modules/sys_stat (Makefile.am): Substitute them.
13469         * lib/sys_stat.in.h (mknod): Declare replacement.
13470         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13471         Document it.
13472         * doc/posix-functions/mknod.texi (mknod): Likewise.
13473         * modules/mknod-tests: New test.
13474         * tests/test-mknod.c: Likewise.
13475
13476         mkfifo: new module
13477         * modules/mkfifo: New file.
13478         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13479         * lib/mkfifo.c (mkfifo): Likewise.
13480         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13481         defaults.
13482         * modules/sys_stat (Makefile.am): Substitute them.
13483         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13484         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13485         Document it.
13486         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13487         * modules/mkfifo-tests: New test.
13488         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13489         from test-mkfifoat.c.
13490         * tests/test-mkfifo.c: New file.
13491
13492         readlink: detect FreeBSD bug
13493         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13494         slash on symlink.
13495         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13496         * tests/test-readlink.h (test_readlink): Enhance test.
13497
13498         symlink: detect FreeBSD bug
13499         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13500         slash on symlink.
13501         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13502         * tests/test-symlink.h (test_symlink): Enhance test.
13503
13504 2009-11-10  Eric Blake  <ebb9@byu.net>
13505
13506         link: detect FreeBSD bug
13507         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13508         symlink.
13509         * doc/posix-functions/link.texi (link): Document the bug.
13510         * tests/test-link.h (test_link): Enhance test.
13511         * tests/test-linkat.c (main): Update caller.
13512
13513         unlink, remove: detect FreeBSD bug
13514         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13515         slash on symlink.
13516         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13517         * doc/posix-functions/remove.texi (remove): Likewise.
13518         * tests/test-unlink.h (test_unlink): Enhance test.
13519         * tests/test-remove.c (main): Likewise.
13520
13521 2009-11-09  Eric Blake  <ebb9@byu.net>
13522
13523         rename: detect FreeBSD bug
13524         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13525         slash on symlink.
13526         * modules/renameat-tests (Depends-on): Add filenamecat.
13527         * tests/test-rename.h (test_rename): Allow one more errno.
13528         * tests/test-renameat.c (main): Likewise.
13529         * doc/posix-functions/rename.texi (rename): Document the bug.
13530
13531         open: detect FreeBSD bug
13532         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13533         symlink.
13534         * doc/posix-functions/open.texi (open): Document the bug.
13535         * doc/posix-functions/utimes.texi (utimes): Likewise.
13536         * tests/test-open.h (test_open): Add parameters, and test symlink
13537         handling.
13538         * tests/test-open.c (main): Adjust caller.
13539         * tests/test-fcntl-safer.c (main): Likewise.
13540         * modules/open-tests (Depends-on): Add stdbool, symlink.
13541         * modules/fcntl-safer-tests (Depends-on): Likewise.
13542         * tests/test-openat.c (main): Add test-open tests.
13543
13544         stat: detect FreeBSD bug
13545         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13546         symlink.
13547         * doc/posix-functions/stat.texi (stat): Document the bug.
13548         * tests/test-stat.h (test_stat_func): Add argument.
13549         * tests/test-stat.c (main): Adjust caller.
13550         * tests/test-fstatat.c (main): Likewise.
13551         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13552         Reported by Jim Meyering.
13553
13554 2009-11-09  James Youngman  <jay@gnu.org>
13555
13556         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13557         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13558
13559 2009-11-08  Jim Meyering  <meyering@redhat.com>
13560
13561         utimens: remove invalid futimesat call
13562         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13563         It used the file descriptor of the target file as the DIR_FD
13564         parameter and NULL as the file name.  That caused failure with
13565         errno == EFAULT on FreeBSD-8.0-rc2
13566
13567 2009-11-07  Eric Blake  <ebb9@byu.net>
13568
13569         fflush, freadseek: use fseeko, not fseek
13570         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13571         (clear_ungetc_buffer): Avoid potential problems on large files.
13572         * lib/freadseek.c (freadseek): Likewise.
13573         * modules/freadseek (Depends-on): Add fseeko.
13574         * modules/fseek (configure.ac): Set a witness.
13575         * tests/test-fflush.c (main): Use fseeko.
13576         * tests/test-fpurge.c (fseek): Disable link warning.
13577         * tests/test-freadable.c (fseek): Likewise.
13578         * tests/test-freading.c (fseek): Likewise.
13579         * tests/test-fseeko.c (fseek): Likewise.
13580         * tests/test-ftell.c (fseek): Likewise.
13581         * tests/test-ftello.c (fseek): Likewise.
13582         * tests/test-fwritable.c (fseek): Likewise.
13583         * tests/test-fwriting.c (fseek): Likewise.
13584
13585 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13586
13587         * modules/memchr (Depends-on): Drop getpagesize dependency.
13588
13589 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13590
13591         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13592         Reported by Ludovic Courtès.
13593         * build-aux/pmccabe2html: Improve example usage.
13594         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13595
13596 2009-11-06  Jim Meyering  <meyering@redhat.com>
13597
13598         do-release-commit-and-tag: New module.
13599         Automate the release-commit and tag process.
13600         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13601         * modules/do-release-commit-and-tag: New file.
13602         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13603
13604 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13605
13606         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13607         because test-select.c uses inet_pton.
13608
13609 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13610
13611         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13612         GETADDRINFO_LIB.  Bump serial number.
13613         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13614         Suggested by Eric Blake <ebb9@byu.net>.
13615
13616 2009-11-05  Eric Blake  <ebb9@byu.net>
13617
13618         strtod: detect darwin bug
13619         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13620         Reported by Leo Davis.
13621
13622         freopen-safer: new module
13623         * modules/freopen-safer: New module.
13624         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13625         * lib/freopen-safer.c (freopen_safer): New file.
13626         * lib/stdio-safer.h (freopen_safer): New declaration.
13627         * lib/stdio--.h (freopen): New override.
13628         * MODULES.html.sh (File stream based Input/Output): Mention it.
13629         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13630         freopen-safer module.
13631         * doc/posix-functions/stderr.texi (stderr): Likewise.
13632         * doc/posix-functions/stdin.texi (stdin): Likewise.
13633         * doc/posix-functions/stdout.texi (stdout): Likewise.
13634         * modules/freopen-safer-tests: New test.
13635         * tests/test-reopen-safer.c: New file.
13636
13637 2009-11-05  Jim Meyering  <meyering@redhat.com>
13638
13639         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13640         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13641
13642 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13643
13644         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13645
13646 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13647
13648         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13649
13650 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13651
13652         Fix link error.
13653         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13654         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13655
13656 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13657
13658         * tests/test-func.c: Also test value of __func__.
13659
13660 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13661
13662         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13663         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13664
13665 2009-11-05  Bruno Haible  <bruno@clisp.org>
13666
13667         Fix link error.
13668         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13669         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13670         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13671
13672 2009-11-05  Bruno Haible  <bruno@clisp.org>
13673
13674         Tests for module 'inet_pton'.
13675         * modules/inet_pton-tests: New file.
13676         * tests/test-inet_pton.c: New file.
13677
13678 2009-11-05  Bruno Haible  <bruno@clisp.org>
13679
13680         Tests for module 'inet_ntop'.
13681         * modules/inet_ntop-tests: New file.
13682         * tests/test-inet_ntop.c: New file.
13683
13684 2009-11-04  Eric Blake  <ebb9@byu.net>
13685
13686         stdlib-safer: wrap all mkstemp variants
13687         * modules/mkostemp (configure.ac): Set witness.
13688         * modules/mkostemps (configure.ac): Likewise.
13689         * modules/mkstemps (configure.ac): Likewise.
13690         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13691         (mkstemps_safer): Wrap more functions.
13692         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13693         wrapping.
13694         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13695         (mkstemps_safer): Implement the wrappers.
13696
13697         mkstemps, mkostemps: new modules
13698         * modules/mkostemps: New module.
13699         * modules/mkstemps: Likewise.
13700         * lib/mkostemps.c (mkostemps): New file.
13701         * lib/mkstemps.c (mkstemps): Likewise.
13702         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13703         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13705         * modules/stdlib (Makefile.am): Substitute them.
13706         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13707         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13708         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13709         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13710         * MODULES.html.sh (File system functions): Mention them.
13711
13712         tempname: resync from glibc
13713         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13714         same values for __GT_FILE as glibc.  Abort even when assertions
13715         are disabled.
13716         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13717         match its value otherwise.  Allow idempotent inclusion.
13718         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13719         * lib/mkostemp.c (mkostemp): Likewise.
13720         * lib/mkstemp.c (mkstemp): Likewise.
13721         * lib/tmpfile.c (tmpfile): Likewise.
13722         * NEWS: Document this.
13723
13724         utimens: fix use of futimens on older Linux
13725         * lib/utimens.c (fdutimens): Use updated, rather than original,
13726         timespec to avoid bug in older Linux kernel.
13727         Reported by Simon Josefsson.
13728
13729 2009-11-04  Bruno Haible  <bruno@clisp.org>
13730
13731         Make num_processors more flexible and consistent.
13732         * lib/nproc.h (enum nproc_query): New type.
13733         (num_processors): Add a 'query' argument.
13734         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13735         (num_processors): Add a 'query' argument. Test the value of the
13736         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13737         mingw, count the number of CPUs available for the current process.
13738         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13739         Check for sched_getaffinity and sched_getaffinity_np.
13740         * modules/nproc (Depends-on): Add c-ctype, extensions.
13741         * NEWS: Mention the change.
13742
13743 2009-11-03  Bruno Haible  <bruno@clisp.org>
13744
13745         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13746
13747 2009-11-03  Jim Meyering  <meyering@redhat.com>
13748
13749         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13750         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13751         if it is defined.
13752
13753 2009-11-02  Eric Blake  <ebb9@byu.net>
13754
13755         mktime, timegm: share common declaration
13756         * lib/mktime-internal.h: New file.
13757         * lib/mktime.c: Use it rather than open-coding a declaration.
13758         * lib/timegm.c: Likewise.
13759         * modules/mktime (Files): Ship it.
13760         * modules/timegm (Files): Likewise.
13761         Suggested by Bruno Haible.
13762
13763         test-update-copyright: update test to match script changes
13764         * tests/test-update-copyright.sh: Avoid hard-coding perl
13765         location.  Don't update *.bak created by earlier runs.
13766
13767 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13768             Simon Josefsson  <simon@josefsson.org>
13769             Bruno Haible  <bruno@clisp.org>
13770
13771         Fix link error on Solaris 8.
13772         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13773         also in libnsl. Define also INET_PTON_LIB.
13774         * modules/inet_pton (Link): New section.
13775
13776 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13777             Bruno Haible  <bruno@clisp.org>
13778
13779         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13780         * modules/inet_ntop (Link): New section.
13781         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13782
13783 2009-11-02  Eric Blake  <ebb9@byu.net>
13784
13785         maint: avoid compiler warnings in m4 macros
13786         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13787         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13788
13789 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13790
13791         * m4/pmccabe2html.m4: Remove file.
13792         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13793         function.  Change maintainer.
13794         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13795         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13796         Courtès).
13797
13798 2009-10-31  Eric Blake  <ebb9@byu.net>
13799
13800         fseeko: fix m4 regression
13801         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13802         regression from 2009-10-27.
13803         Reported by Ralf Wildenhues.
13804
13805 2009-10-31  Jim Meyering  <meyering@redhat.com>
13806
13807         inttostr: aesthetics and improved (compile-time) safety
13808         Define inttype_is_signed rather than inttype_is_unsigned,
13809         since the sole use is via "#if inttype_is_signed".
13810         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13811         inttype_is_unsigned.
13812         * lib/offtostr.c (inttype_is_signed): Likewise.
13813         * lib/uinttostr.c (inttype_is_signed): Likewise.
13814         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13815         * lib/inttostr.c (inttostr): Use verify to cross-check the
13816         inttype_is_signed value and the signedness of the actual type.
13817         * modules/inttostr (Depends-on): Add verify.
13818
13819 2009-10-30  Eric Blake  <ebb9@byu.net>
13820
13821         build: avoid compiler warnings
13822         * lib/fchmodat.c (lchmod): Mark unused variables.
13823         * lib/getopt.c (_getopt_initialize): Likewise.
13824         * lib/mktime.c (__mktime_internal): Provide prototype.
13825         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13826         older gcc that do not understand #pragma GCC diagnostic.
13827         * lib/uinttostr.c (inttype_is_unsigned): Define.
13828         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13829
13830 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13831
13832         stat: fix compilation on AIX
13833         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13834         only see struct stat64.
13835
13836 2009-10-30  Eric Blake  <ebb9@byu.net>
13837
13838         exclude: make more robust
13839         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13840         rather than masking a coding bug.
13841         Suggested by Bruno Haible.
13842
13843 2009-10-30  Jim Meyering  <meyering@redhat.com>
13844
13845         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13846         Rather than putting #!/usr/bin/perl on the first line,
13847         start with a variant of what's recommended by "man perlrun" that
13848         invokes the first "perl" program from your shell's search path.
13849         * build-aux/gitlog-to-changelog: Replace #!... as above.
13850         Add a "Local Variables" perl mode setting.
13851         Prompted by a patch from Ludovic Courtès.
13852         Improved by Eric Blake.
13853         * build-aux/useless-if-before-free: Likewise.
13854         * build-aux/announce-gen: Likewise.
13855         * build-aux/update-copyright: Likewise.
13856
13857 2009-10-29  Eric Blake  <ebb9@byu.net>
13858
13859         filenamecat-lgpl: adjust clients
13860         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13861         filenamecat.
13862         * modules/renameat (Depends-on): Likewise.
13863
13864         filenamecat: split into filenamecat-lgpl
13865         * modules/filenamecat-lgpl: New module.
13866         * modules/filenamecat (Files): Move library-safe files into
13867         filenamecat-lgpl.
13868         (Depends-on): Add filenamecat-lgpl.
13869         (configure.ac): Declare witness.
13870         * lib/filenamecat.h (file_name_concat): Only declare when using
13871         GPL module.
13872         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13873         Move...
13874         * lib/filenamecat-lgpl.c: ...into new file.
13875         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13876         (gl_FILE_NAME_CONCAT): Use it.
13877         * MODULES.html.sh (File system functions): Mention new module.
13878
13879         argp: avoid memory leak
13880         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13881         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13882         base_name, since the latter malloc()s and can call exit().
13883         Leak introduced 2006-07-03.
13884
13885         dirname-lgpl: adjust clients that don't need full dirname
13886         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13887         * modules/filenamecat (Depends-on): Likewise.
13888         * modules/linkat (Depends-on): Likewise.
13889         * modules/mkancesdirs (Depends-on): Likewise.
13890         * modules/mkdir (Depends-on): Likewise.
13891         * modules/openat (Depends-on): Likewise.
13892         * modules/savewd (Depends-on): Likewise.
13893         * modules/rename (Depends-on): Likewise.
13894         (License): Relax license.
13895         * modules/mkdir-tests (Depends-on): Drop progname.
13896         (Makefile.am): Delete unneeded LDADD.
13897         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13898
13899         dirname: split into dirname-lgpl
13900         * modules/dirname-lgpl: New module.
13901         * modules/dirname (Files): Move library-safe files into
13902         dirname-lgpl.
13903         (Depends-on): Add dirname-lgpl.
13904         (configure.ac): Declare witness.
13905         * modules/double-slash-root (License): Relax license.
13906         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13907         module.
13908         * lib/dirname.c (dir_len, mdir_name): Move...
13909         * lib/dirname-lgpl.c: ...into new file.
13910         * lib/basename.c (last_component, base_len): Move...
13911         * lib/basename-lgpl.c: ...into new file.
13912         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13913         (gl_DIRNAME): Use it.
13914         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13915         Mention new module.
13916         * modules/dirname-tests (Depends-on): Add progname.
13917         * tests/test-dirname.c (program_name): Delete.
13918
13919         mkdir: make safe for libraries
13920         * modules/mkdir (Depends-on): Drop xalloc.
13921         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13922         exit.
13923
13924         tests: avoid some compiler warnings
13925         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13926         literals.
13927         * tests/test-memchr.c (main): Avoid type mismatch.
13928         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13929         * tests/test-base64.c (main): Likewise.
13930         * tests/test-getdelim.c (main): Likewise.
13931         * tests/test-gethostname.c (main): Likewise.
13932         * tests/test-getline.c (main): Likewise.
13933         * tests/test-netinet_in.c (main): Likewise.
13934         * tests/test-select.c (open_server_socket, main): Likewise.
13935         * tests/test-select-stdin.c (main): Likewise.
13936         * tests/test-sockets.c (main): Likewise.
13937         * tests/test-strsignal.c (main): Likewise.
13938         * tests/test-sys_select.c (main): Likewise.
13939         * tests/test-sys_socket.c (main): Likewise.
13940         * tests/test-u64.c (main): Likewise.
13941         * tests/test-xfprintf-posix.c (main): Likewise.
13942         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13943
13944         sockets: avoid compiler warning
13945         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13946
13947         maint: detect usage(1) and other suspicious exits
13948         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13949
13950 2009-10-29  Jim Meyering  <meyering@redhat.com>
13951
13952         timespec: long-to-int truncation could make timespec_cmp malfunction
13953         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13954         a multiple of 2^32 nanoseconds as no difference.
13955
13956 2009-10-28  Jim Meyering  <meyering@redhat.com>
13957
13958         fprintftime: wrap macro code argument in "do {...} while(0)"
13959         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13960         cpy macro must be a statement that can be followed by a semicolon.
13961         Now that the else clause contains a comment and is hence longer
13962         than one line, I require curly braces.  That in turn requires
13963         that we wrap this code block in the standard do...while(0).
13964
13965         fprintftime: remove stray semicolon from previous change
13966         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13967
13968         fprintftime: avoid a warning about ignored fwrite return value
13969         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13970         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13971         that is unsafe.
13972         * modules/fprintftime (Depends-on): Add ignore-value.
13973
13974         exclude: avoid an unwarranted warning
13975         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13976
13977 2009-10-27  Eric Blake  <ebb9@byu.net>
13978
13979         fseek: avoid compilation failure when fflush is replaced
13980         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13981         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13982         module is in use.
13983         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13984         module is not in use; since REPLACE_FSEEK worked otherwise.
13985         (GNULIB_FTELLO): Likewise for ftell.
13986         Reported by Ian Beckwith and others.
13987
13988 2009-10-27  Bruno Haible  <bruno@clisp.org>
13989
13990         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13991         Reported by Jim Meyering.
13992
13993 2009-10-27  Jim Meyering  <jim@meyering.net>
13994             Bruno Haible  <bruno@clisp.org>
13995
13996         Avoid warning despite dropping the return value of fwrite.
13997         * lib/unicodeio.c: Include ignore-value.h.
13998         (fwrite_success_callback): Explicitly ignore fwrite's return value.
13999         * modules/unicodeio (Depends-on): Add ignore-value.
14000
14001 2009-10-26  Eric Blake  <ebb9@byu.net>
14002
14003         areadlinkat: fix fallback path
14004         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
14005         pointer and zero.
14006
14007 2009-10-22  Pádraig Brady  <P@draigBrady.com>
14008
14009         Use a better IO block size for modern systems
14010         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
14011         * lib/md2.c: Likewise.
14012         * lib/md4.c: Likewise.
14013         * lib/md5.c: Likewise.
14014         * lib/sha1.c: Likewise.
14015         * lib/sha256.c: Likewise.
14016         * lib/sha512.c: Likewise.
14017
14018 2009-10-22  Eric Blake  <ebb9@byu.net>
14019
14020         tests: avoid several compiler warnings
14021         * tests/test-getcwd.c (main): Avoid buffer underflow.
14022         * tests/test-getdate.c (main): String literals are not safe with
14023         putenv, so use setenv.  Declare unused argument.
14024         * modules/getdate-tests (Depends-on): Add setenv.
14025         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
14026         problems with string literals in char *.
14027         * tests/test-hash.c (main): Avoid shadowing declaration.
14028         (insert_new): Treat string literals as char const *.
14029         * tests/test-getopt.h (test_getopt): Likewise.
14030         (getopt_loop): Alter types to minimize casting elsewhere.
14031         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
14032         (test_getopt_long_posix): Likewise.
14033         (do_getopt_long): Add wrapper to minimize casting.
14034         * tests/test-atexit.c (clear_temp_file): Use void.
14035         * tests/test-areadlink-with-size.c (main): Declare unused
14036         arguments.
14037         * tests/test-areadlink.c (main): Likewise.
14038         * tests/test-areadlinkat-with-size.c (main): Likewise.
14039         * tests/test-areadlinkat.c (main): Likewise.
14040         * tests/test-canonicalize-lgpl.c (main): Likewise.
14041         * tests/test-canonicalize.c (main): Likewise.
14042         * tests/test-dirent-safer.c (main): Likewise.
14043         * tests/test-dirname.c (main): Likewise.
14044         * tests/test-dup2.c (main): Likewise.
14045         * tests/test-fchdir.c (main): Likewise.
14046         * tests/test-fcntl-h.c (main): Likewise.
14047         * tests/test-fcntl-safer.c (main): Likewise.
14048         * tests/test-fdopendir.c (main): Likewise.
14049         * tests/test-fdutimensat.c (main): Likewise.
14050         * tests/test-fflush.c (main): Likewise.
14051         * tests/test-filenamecat.c (main): Likewise.
14052         * tests/test-filevercmp.c (main): Likewise.
14053         * tests/test-fopen-safer.c (main): Likewise.
14054         * tests/test-fopen.c (main): Likewise.
14055         * tests/test-fpending.c (main): Likewise.
14056         * tests/test-fpurge.c (main): Likewise.
14057         * tests/test-freading.c (main): Likewise.
14058         * tests/test-fstatat.c (main): Likewise.
14059         * tests/test-fsync.c (main): Likewise.
14060         * tests/test-futimens.c (main): Likewise.
14061         * tests/test-getndelim2.c (main): Likewise.
14062         * tests/test-gettimeofday.c (main): Likewise.
14063         * tests/test-getopt.c (main): Likewise.
14064         * tests/test-i-ring.c (main): Likewise.
14065         * tests/test-inttypes.c (main): Likewise.
14066         * tests/test-link.c (main): Likewise.
14067         * tests/test-lstat.c (main): Likewise.
14068         * tests/test-math.c (main): Likewise.
14069         * tests/test-md5.c (main): Likewise.
14070         * tests/test-memchr2.c (main): Likewise.
14071         * tests/test-memrchr.c (main): Likewise.
14072         * tests/test-mkdir.c (main): Likewise.
14073         * tests/test-mkdirat.c (main): Likewise.
14074         * tests/test-mkfifoat.c (main): Likewise.
14075         * tests/test-open.c (main): Likewise.
14076         * tests/test-openat-safer.c (main): Likewise.
14077         * tests/test-openat.c (main): Likewise.
14078         * tests/test-quotearg.c (main): Likewise.
14079         * tests/test-rawmemchr.c (main): Likewise.
14080         * tests/test-readlink.c (main): Likewise.
14081         * tests/test-remove.c (main): Likewise.
14082         * tests/test-rename.c (main): Likewise.
14083         * tests/test-renameat.c (main): Likewise.
14084         * tests/test-rmdir.c (main): Likewise.
14085         * tests/test-sha1.c (main): Likewise.
14086         * tests/test-signal.c (main): Likewise.
14087         * tests/test-sigaction.c (main): Likewise.
14088         * tests/test-stat.c (main): Likewise.
14089         * tests/test-stat-time.c (main): Likewise.
14090         * tests/test-stddef.c (main): Likewise.
14091         * tests/test-stdint.c (main): Likewise.
14092         * tests/test-stdio.c (main): Likewise.
14093         * tests/test-stdlib.c (main): Likewise.
14094         * tests/test-strchrnul.c (main): Likewise.
14095         * tests/test-strerror.c (main): Likewise.
14096         * tests/test-string.c (main): Likewise.
14097         * tests/test-strtod.c (main): Likewise.
14098         * tests/test-strverscmp.c (main): Likewise.
14099         * tests/test-symlink.c (main): Likewise.
14100         * tests/test-symlinkat.c (main): Likewise.
14101         * tests/test-sys_stat.c (main): Likewise.
14102         * tests/test-sys_time.c (main): Likewise.
14103         * tests/test-time.c (main): Likewise.
14104         * tests/test-unistd.c (main): Likewise.
14105         * tests/test-unlink.c (main): Likewise.
14106         * tests/test-unlinkat.c (main): Likewise.
14107         * tests/test-utimens.c (main): Likewise.
14108         * tests/test-utimensat.c (main): Likewise.
14109         * tests/test-version-etc.c (main): Likewise.
14110         * tests/test-wchar.c (main): Likewise.
14111         * tests/test-wctype.c (main): Likewise.
14112         * tests/test-xprintf-posix.c (main): Likewise.
14113         * tests/test-posixtm.c (main): Likewise.
14114         (STREQ): Delete unused macro.
14115         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
14116         shadowed variables.
14117         * tests/test-memchr.c (main): Likewise.
14118
14119 2009-10-21  Eric Blake  <ebb9@byu.net>
14120
14121         areadlinkat: avoid failure on older glibc
14122         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
14123         rather than mis-comparing 0 against FUNC_RESULT of char*.
14124
14125 2009-10-21  Bruno Haible  <bruno@clisp.org>
14126
14127         * modules/stpncpy (License): Relicense under LGPLv2+.
14128         Reported by David Lutterkort <lutter@redhat.com>.
14129
14130 2009-10-20  Eric Blake  <ebb9@byu.net>
14131
14132         utimensat: work around Solaris 9 bug
14133         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
14134         has trailing slash bugs.
14135         * tests/test-lutimens.h (test_lutimens): Enhance test.
14136         * tests/test-utimens.h (test_utimens): Likewise.
14137         * doc/posix-functions/utime.texi (utime): Enhance documentation.
14138         * doc/posix-functions/utimes.texi (utimes): Likewise.
14139         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14140         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
14141         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
14142         * doc/posix-functions/futimens.texi (futimens): Likewise.
14143
14144         fdutimensat: new module
14145         * modules/fdutimensat: New file.
14146         * lib/fdutimensat.c (fdutimensat): Likewise.
14147         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
14148         * MODULES.html.sh (File system functions): Mention module.
14149         * modules/fdutimensat-tests: New test.
14150         * tests/test-fdutimensat.c: Likewise.
14151
14152         doc: regenerate INSTALL
14153         * doc/INSTALL: Reflect recent autoconf update.
14154         * doc/INSTALL.ISO: Likewise.
14155         * doc/INSTALL.UTF-8: Likewise.
14156
14157 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14158
14159         acl: warn if ACL support is not detected
14160         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14161
14162 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14163
14164         * lib/nproc.h: Add extern "C" block for C++.
14165
14166 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14167             Bruno Haible  <bruno@clisp.org>
14168
14169         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14170         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14171         * doc/posix-functions/isalpha.texi: Likewise.
14172         * doc/posix-functions/isblank.texi: Likewise.
14173         * doc/posix-functions/iscntrl.texi: Likewise.
14174         * doc/posix-functions/isdigit.texi: Likewise.
14175         * doc/posix-functions/isgraph.texi: Likewise.
14176         * doc/posix-functions/islower.texi: Likewise.
14177         * doc/posix-functions/isprint.texi: Likewise.
14178         * doc/posix-functions/ispunct.texi: Likewise.
14179         * doc/posix-functions/isspace.texi: Likewise.
14180         * doc/posix-functions/isupper.texi: Likewise.
14181         * doc/posix-functions/isxdigit.texi: Likewise.
14182
14183 2009-10-18  Bruno Haible  <bruno@clisp.org>
14184
14185         Tests for module 'isblank'.
14186         * modules/isblank-tests: New file.
14187         * tests/test-isblank.c: New file.
14188
14189         New module 'isblank'.
14190         * lib/isblank.c: New file.
14191         * m4/isblank.m4: New file.
14192         * modules/isblank: New file.
14193         * doc/posix-functions/isblank.texi: Mention the new module.
14194
14195 2009-10-18  Bruno Haible  <bruno@clisp.org>
14196
14197         New module 'ctype'.
14198         * lib/ctype.in.h: New file.
14199         * m4/ctype.m4: New file.
14200         * modules/ctype: New file.
14201         * doc/posix-headers/ctype.texi: Mention the new module.
14202
14203 2009-10-18  Jim Meyering  <meyering@redhat.com>
14204
14205         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14206         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14207         right after its initialization, rather than farther down.
14208         Keeping these in close proximity makes it easier to ensure
14209         that each such variable is initialized.  E.g.,
14210
14211             LIB_CLOCK_GETTIME=
14212             AC_SUBST([LIB_CLOCK_GETTIME])
14213
14214         This change also increments these serial numbers.
14215         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14216         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14218
14219 2009-10-18  Bruno Haible  <bruno@clisp.org>
14220
14221         Don't let environment variables perturb build.
14222         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14223         (gl_PREREQ_GETHRXTIME): ... not here.
14224
14225 2009-10-18  Bruno Haible  <bruno@clisp.org>
14226
14227         Avoid symlink attack in localcharset module.
14228         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14229         (O_NOFOLLOW): Define fallback.
14230         (get_charset_aliases): Don't open the file if it is a symbolic link.
14231         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14232         gl_FCNTL_H.
14233         (gl_FCNTL_H): Require it.
14234         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14235         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14236         Reported by Fergal Glynn <fglynn@veracode.com>.
14237
14238 2009-10-18  Bruno Haible  <bruno@clisp.org>
14239
14240         Implement nproc for mingw.
14241         * lib/nproc.c: Include <windows.h>
14242         (num_processors): On native Windows platforms, try GetSystemInfo.
14243
14244 2009-10-18  Bruno Haible  <bruno@clisp.org>
14245
14246         Implement nproc for IRIX.
14247         * lib/nproc.c: Include <sys/sysmp.h>.
14248         (num_processors): On IRIX systems, try sysmp.
14249         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14250
14251 2009-10-18  Bruno Haible  <bruno@clisp.org>
14252
14253         Implement nproc for HP-UX.
14254         * lib/nproc.c: Include <sys/pstat.h>
14255         (num_processors): On HP-UX systems, try pstat_getdynamic.
14256         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14257         pstat_getdynamic.
14258
14259 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14260             Bruno Haible  <bruno@clisp.org>
14261
14262         Implement nproc for NetBSD, OpenBSD.
14263         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14264         (ARRAY_SIZE): New macro.
14265         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14266         * m4/nproc.m4: New file.
14267         * modules/nproc (Files): Add m4/nproc.m4.
14268         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14269         (Makefile.am): Instead, augment lib_SOURCES.
14270
14271 2009-10-18  Bruno Haible  <bruno@clisp.org>
14272
14273         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14274         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14275         sys/param.h.
14276
14277 2009-10-16  Eric Blake  <ebb9@byu.net>
14278
14279         utimensat: new module
14280         * modules/utimensat: New file.
14281         * lib/utimensat.c (utimensat): Likewise.
14282         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14283         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14284         so we can work around Linux bugs.
14285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14286         * modules/sys_stat (Makefile.am): Substitute them.
14287         * lib/sys_stat.in.h (utimensat): Declare it.
14288         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14289         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14290         * modules/utimensat-tests: New test.
14291         * tests/test-utimensat.c: Likewise.
14292
14293         utimens: let lutimens work on non-symlinks
14294         * lib/utimens.c (lutimens): Fall back to utimens rather than
14295         failing with ENOSYS, when file is not a symlink.
14296         (utimens): Reduce redirection.
14297         * tests/test-lutimens.h (test_lutimens): Update test to cover
14298         non-symlinks.
14299         * tests/test-utimens.h (test_utimens): Update test to cover
14300         symlinks.
14301         * tests/test-utimens.c (main): Update caller.
14302
14303         utimens: cache whether utimensat syscall works
14304         * lib/utimens.c (utimensat_works_really): New cache variable.
14305         (fdutimens, lutimens): Use it to avoid failing syscall.
14306
14307         test-stat-time, test-utimens: improve portability
14308         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14309         ext4 on alpha, and for cygwin.
14310         * tests/test-utimens-common.h: New file.
14311         (nap): Factor delays into single function.
14312         * tests/test-lutimens.h (test_lutimens): Use new header.
14313         * tests/test-futimens.h (test_futimens): Likewise.
14314         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14315         timestamps to occur from same machine, as was done previously for
14316         test_utimens.
14317         * modules/utimens-tests (Files): Ship new file.
14318         * modules/futimens-tests (Files): Likewise.
14319         Reported in part by Jim Meyering.
14320
14321         sys_stat: sort replacement declarations
14322         * lib/sys_stat.in.h: Sort declarations.
14323         * lib/futimens.c (futimens): Fix typo.
14324
14325 2009-10-15  Jim Meyering  <meyering@redhat.com>
14326
14327         don't let environment settings perturb build
14328         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14329         could cause a configure-time and/or build-time malfunction.
14330         Typically, a configure-time function-in-library test is performed
14331         via code like this:
14332
14333           LIB_VAR=
14334           AC_SUBST([LIB_VAR])
14335           prefix_saved_LIBS=$LIBS
14336             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14337                        [test "$ac_cv_search_FUNC" = "none required" ||
14338                         LIB_VAR=$ac_cv_search_FUNC])
14339           LIBS=$prefix_saved_LIBS
14340
14341         However, in each of the files affected by this change, the LIB_VAR=
14342         initialization was omitted.  Thus, when set in the environment, its
14343         value would propagate into generated Makefiles when FUNC is not found
14344         in LIB_NAME.
14345         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14346         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14347         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14348
14349 2009-10-14  Eric Blake  <ebb9@byu.net>
14350
14351         fchdir: avoid infinite recursion in mingw
14352         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14353         recursing.
14354
14355         test-stat-time: port to mingw
14356         * tests/test-stat-time.c (force_unlink): Return a value.
14357         (test_ctime) [W32]: Fix compilation error.
14358         (nap): Don't call usleep with too large an argument.  Use
14359         force_unlink.
14360         * doc/pastposix-functions/usleep.texi (usleep): Document the
14361         portability issue.
14362
14363 2009-10-13  Jim Meyering  <meyering@redhat.com>
14364
14365         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14366         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14367         * modules/pipe-filter-ii: Likewise.
14368         * modules/sys_socket-tests: Likewise.
14369         * modules/tsearch-tests: Likewise.
14370         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14371         (check): Depend on it.
14372
14373 2009-10-12  Eric Blake  <ebb9@byu.net>
14374
14375         utimens-tests: port to NFS file systems
14376         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14377         comparisons to avoid spurious failures from timestamp drift
14378         between NFS machines.
14379
14380 2009-10-12  Eric Blake  <ebb9@byu.net>
14381
14382         stat-time-tests: minor cleanups
14383         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14384         * tests/test-stat-time.c (nap): Separate assignment from call.
14385         Suggested by Paolo Bonzini and Bruno Haible.
14386
14387         sys_stat: guarantee struct timespec
14388         * lib/sys_stat.in.h (includes): Always include <time.h>
14389         * modules/sys_stat (Depends-on): Add time.
14390         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14391         mode_t permission values.
14392         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14393         get at subsecond timestamps.
14394
14395 2009-10-10  Eric Blake  <ebb9@byu.net>
14396
14397         futimens: new module
14398         * modules/futimens: New file.
14399         * lib/futimens.c (futimens): Likewise.
14400         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14401         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14402         we can work around Linux bugs.
14403         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14404         * modules/sys_stat (Makefile.am): Substitute them.
14405         * lib/sys_stat.in.h (futimens): Declare it.
14406         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14407         * doc/posix-functions/futimens.texi (futimens): Likewise.
14408         * modules/futimens-tests: New test.
14409         * tests/test-futimens.c: Likewise.
14410
14411         utimens: introduce fdutimens
14412         * lib/utimens.h (fdutimens): New prototype.
14413         * lib/utimens.c (gl_futimens): Move guts...
14414         (fdutimens): ...to new interface.
14415         * tests/test-utimens.c (do_fdutimens): Use it.
14416
14417         utimens: add UTIME_NOW and UTIME_OMIT support
14418         * lib/utimens.c (validate_timespec, update_timespec): New helper
14419         functions.
14420         (gl_futimens, lutimens): Use them.
14421         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14422         stdbool, sys_stat.
14423         (Link): Mention resulting library dependency.
14424         * modules/utimecmp (Link): Likewise.
14425         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14426         (Makefile.am): Pick up library dependency.
14427         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14428         definition.
14429         * tests/test-sys_stat.c: Test the definitions.
14430         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14431         * NEWS: Document library dependency.
14432
14433         utimecmp: support symlink timestamps
14434         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14435         hashing when possible.  Use pathconf when available.
14436         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14437         * modules/utimecmp (Depends-on): Add lstat.
14438
14439         utimens: add lutimens interface
14440         * lib/utimens.c (lutimens): New function.
14441         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14442         * lib/utimens.h (lutimens): Declare new interface.
14443         * tests/test-utimens.c (main): Enhance test.
14444         * tests/test-lutimens.h (test_lutimens): New file.
14445         * modules/utimens-tests (Files): Distribute it.
14446         (Depends-on): Add symlink.
14447         (configure.ac): Check for usleep.
14448
14449         utimens: validate futimens usage
14450         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14451         fewer syscalls on failure later on.  Avoid compiler warning on
14452         mingw.
14453         * modules/utimens (Depends-on): Add dup2.
14454
14455         utimens: add test
14456         * modules/utimens-tests: New test.
14457         * tests/test-utimens.h: New file.
14458         * tests/test-futimens.h: Likewise.
14459         * tests/test-utimens.c: Likewise.
14460
14461         doc: mention timestamp portability issues
14462         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14463         instead.
14464         * doc/posix-functions/utime.texi (utime): Likewise.
14465         * doc/posix-functions/utimes.texi (utimes): Likewise.
14466         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14467         instead.
14468         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14469         module.
14470         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14471         Mention weakness with symlink timestamps.
14472         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14473         to utimensat/futimens instead.
14474         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14475
14476         test-dup2: enhance test
14477         * tests/test-dup2.c (main): Also check AT_FDCWD.
14478
14479         test-stat-time: avoid more spurious failures
14480         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14481         xfs; and avoid race if the two timestamps cross quantization edge.
14482
14483         relocatable: prefer 'file system' over 'filesystem'
14484         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14485         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14486         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14487         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14488         * lib/relocatable.c (compute_curr_prefix): Likewise.
14489
14490 2009-10-10  Jim Meyering  <meyering@redhat.com>
14491
14492         stat-time-tests: check for the usleep function
14493         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14494
14495 2009-10-10  Bruno Haible  <bruno@clisp.org>
14496
14497         * modules/xnanosleep: Put the Link section after the Include section.
14498
14499 2009-10-09  Eric Blake  <ebb9@byu.net>
14500
14501         dup2: work around FreeBSD 6.1 bug
14502         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14503         * doc/posix-functions/dup2.texi (dup2): Document it.
14504         Reported by Nelson H. F. Beebe and Jim Meyering.
14505
14506         test-stat-time: port to buggy NFS clients
14507         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14508         (test_ctime): Also skip test if mtime and ctime are skewed.
14509
14510         maint: prefer 'file system' over 'filesystem'
14511         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14512         * doc/posix-functions/lstat.texi (lstat): Likewise.
14513         * lib/file-has-acl.c (file_has_acl): Likewise.
14514         * lib/fwriteerror.c [TEST]: Likewise.
14515         * tests/test-areadlink.h (test_areadlink): Likewise.
14516         * tests/test-areadlinkat-with-size.c (main): Likewise.
14517         * tests/test-areadlinkat.c (main): Likewise.
14518         * tests/test-canonicalize-lgpl.c (main): Likewise.
14519         * tests/test-canonicalize.c (main): Likewise.
14520         * tests/test-fstatat.c (main): Likewise.
14521         * tests/test-linkat.c (main): Likewise.
14522         * tests/test-lstat.h (test_lstat_func): Likewise.
14523         * tests/test-mkdir.h (test_mkdir): Likewise.
14524         * tests/test-readlink.h (test_readlink): Likewise.
14525         * tests/test-remove.c (main): Likewise.
14526         * tests/test-rename.h (test_rename): Likewise.
14527         * tests/test-renameat.c (main): Likewise.
14528         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14529         * tests/test-symlink.h (test_symlink): Likewise.
14530         * tests/test-symlinkat.c (main): Likewise.
14531         * tests/test-unlink.h (test_unlink_func): Likewise.
14532         * tests/test-unlinkat.c (main): Likewise.
14533
14534         maint: make realtime library usage explicit
14535         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14536         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14537         * modules/settime (Link): Likewise.
14538         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14539
14540         test-stat-time: speed up execution
14541         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14542         warning on mingw.
14543         (nap): New helper function.
14544         (prepare_test): Use it to reduce sleep time.
14545         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14546         execution.
14547         * modules/stat-time-tests (configure.ac): Check for usleep.
14548
14549 2009-10-09  Jim Meyering  <meyering@redhat.com>
14550
14551         selinux-h: always use getfilecon wrappers
14552         * lib/getfilecon.c: New file.
14553         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14554         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14555         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14556         (fgetfilecon): Provide a stub.
14557         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14558         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14559         file unconditionally.
14560         When <selinux/selinux.h> is found, arrange to use wrappers.
14561         * modules/selinux-h (Files): Add getfilecon.c.
14562         (Makefile.am): Substitute include-next-related bits
14563         into the now-always-generated selinux/selinux.h file.
14564         * doc/glibc-functions/lgetfilecon.texi: New file.
14565         * doc/glibc-functions/fgetfilecon.texi: New file.
14566         * doc/glibc-functions/getfilecon.texi: New file.
14567         * doc/glibc-functions/getfilecon-desc.texi: New file.
14568         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14569         which to pull in the new files.
14570         * MODULES.html.sh (Misc): Add selinux-h.
14571
14572 2009-10-08  Jim Meyering  <meyering@redhat.com>
14573
14574         unistd: fix comment typo
14575         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14576
14577 2009-10-08  Eric Blake  <ebb9@byu.net>
14578
14579         areadlink: use SIZE_MAX consistently
14580         * modules/areadlink (Depends-on): Add stdint.
14581         * modules/areadlink-with-size (Depends-on): Likewise.
14582         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14583         gives NULL; drop sys/types, since unistd gives size_t; and add
14584         stdint for SIZE_MAX.
14585         (SIZE_MAX): Rely on headers.
14586         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14587         and add stdint.
14588         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14589         (SIZE_MAX): Likewise.
14590         (INITIAL_BUF_SIZE): Turn into enum.
14591         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14592
14593 2009-10-08  Jim Meyering  <meyering@redhat.com>
14594
14595         areadlinkat: avoid compilation failure
14596         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14597         Fix typo in comment.
14598
14599 2009-10-07  Eric Blake  <ebb9@byu.net>
14600
14601         areadlinkat-with-size: new module
14602         * modules/areadlinkat-with-size: New module.
14603         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14604         * lib/areadlink.h (areadlinkat): Declare it.
14605         * MODULES.html.sh (File system functions): Mention it.
14606         * modules/areadlinkat-with-size-tests: New test.
14607         * tests/test-areadlinkat-with-size.c: New file.
14608
14609         xreadlinkat: new module
14610         * modules/xreadlinkat: New module.
14611         * lib/xreadlinkat.c (xreadlinkat): New file.
14612         * lib/xreadlink.h (xreadlinkat): Declare it.
14613         * MODULES.html.sh (File system functions): Mention it.
14614
14615         areadlinkat: new module
14616         * lib/at-func.c (FUNC_FAIL): New define.
14617         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14618         * modules/areadlinkat: New module.
14619         * lib/linkat.c (areadlinkat): Move...
14620         * lib/areadlinkat.c (areadlinkat): ...to new file.
14621         * lib/areadlink.h (areadlinkat): Declare it.
14622         * modules/linkat (Depends-on): Add areadlinkat.
14623         * MODULES.html.sh (File system functions): Mention it.
14624         * modules/areadlinkat-tests: New test.
14625         * tests/test-areadlinkat.c: New file.
14626
14627         areadlink, areadlink-with-size: add tests
14628         * modules/areadlink-tests: New test.
14629         * modules/areadlink-with-size-tests: Likewise.
14630         * tests/test-areadlink.h: New file.
14631         * tests/test-areadlink.c: Likewise.
14632         * tests/test-areadlink-with-size.c: Likewise.
14633
14634         maint: minor cleanups
14635         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14636         _UNUSED_PARAMETER_ instead.
14637         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14638         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14639         * modules/linkat-tests (Files): Distribute test-link.h.
14640
14641         openat, utimens: whitespace cleanup
14642         * lib/openat.c: Prefer space throughout, rather than mix of 8
14643         spaces vs. tabs.
14644         * lib/at-func.c: Likewise.
14645         * lib/utimens.c: Likewise.
14646
14647         openat: avoid using wrong fd
14648         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14649         working directory chooses same fd.
14650         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14651
14652         mkdir, mkdirat: fix cygwin 1.5.x bug
14653         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14654         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14655         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14656         bug.
14657         (gl_PREREQ_MKDIR): Delete unused macro.
14658         * modules/mkdir (Files): Track file rename.
14659         (configure.ac): Update macro name.
14660         * modules/openat (Depends-on): Add mkdir.
14661         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14662
14663         mkdir, mkdirat: add tests
14664         * modules/mkdir-tests: New test.
14665         * tests/test-mkdir.h: New file.
14666         * tests/test-mkdir.c: Likewise.
14667         * tests/test-mkdirat.c: Likewise.
14668         * modules/openat-tests (Files): Add new files.
14669         (Makefile.am): Run new test.
14670
14671 2009-10-06  Eric Blake  <ebb9@byu.net>
14672
14673         doc: tweak *at function documentation
14674         * doc/posix-functions/faccessat.texi (faccessat): Mention
14675         known issue with replacement.
14676         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14677         * doc/posix-functions/linkat.texi (linkat): Likewise.
14678         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14679         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14680         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14681         * doc/posix-functions/renameat.texi (renameat): Likewise.
14682         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14683
14684         openat: fix GNU/Hurd bug in unlinkat
14685         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14686         broken.
14687         * doc/posix-functions/unlink.texi (unlink): Document this.
14688         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14689
14690         fdopendir: fix GNU/Hurd bug
14691         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14692         allowing non-directory fds.
14693         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14694         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14695         * modules/dirent (Makefile.am): Substitute it.
14696         * lib/dirent.in.h (fdopendir): Declare replacement.
14697         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14698         * tests/test-fdopendir.c (main): Test something other than
14699         /dev/null, since on Hurd that behaves like a directory.
14700
14701         test-symlink: port to GNU/Hurd
14702         * tests/test-symlink.h (test_symlink): Relax expected errno.
14703
14704         doc: tweak more cygwin information
14705         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14706         now compatible with glibc.
14707         * doc/posix-functions/getopt.texi (getopt): Likewise.
14708
14709         getopt-gnu: add another test
14710         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14711         guarantee behavior relied on by m4.
14712         * tests/test-getopt.c (main): Use it.
14713         * modules/getopt-posix-tests (Depends-on): Add setenv.
14714         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14715
14716         getopt: fix compilation on darwin
14717         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14718         include.
14719         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14720         Reported by Ludovic Courtès.
14721
14722 2009-10-06  Bruno Haible  <bruno@clisp.org>
14723
14724         * modules/size_max (Description): Discourage its use.
14725         Reported by Simon Josefsson.
14726
14727 2009-10-06  Jim Meyering  <meyering@redhat.com>
14728
14729         linkat: avoid compilation failure
14730         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14731
14732 2009-10-05  Eric Blake  <ebb9@byu.net>
14733
14734         linkat: support Linux 2.6.17
14735         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14736         linkat on Linux, but allow cache variable override.
14737         * lib/linkat.c (rpl_linkat): Define override.
14738         * modules/linkat (Depends-on): Add symlinkat.
14739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14740         * modules/unistd (Makefile.am): Substitute it.
14741         * lib/unistd.in.h (linkat): Declare replacement.
14742         Reported by Pádraig Brady.
14743
14744         quotearg: port test to systems with C.UTF-8 locale
14745         * tests/test-quotearg.c (struct result_strings): Add another
14746         member, differentiating between C.ASCII and C.UTF-8 handling.
14747         (compare_strings): Add parameter.
14748         (main): Adjust all callers.
14749
14750         getopt: avoid clash with FreeBSD _getopt_internal
14751         * lib/getopt.in.h (_getopt_internal): Override the name.
14752         * lib/getopt_int.h (includes): Pick up any overrides.
14753         Reported by Reuben Thomas.
14754
14755         hash: allow C89 compilation
14756         * lib/hash.c (check_tuning): Move declaration before statement.
14757         Reported by Reuben Thomas.
14758
14759 2009-10-05  Karl Berry  <karl@gnu.org>
14760
14761         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14762
14763 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14764             Bruno Haible  <bruno@clisp.org>
14765
14766         * lib/uname.c (uname): Use a table-driven algorithm to compute
14767         Windows NT versions.
14768
14769 2009-10-04  Bruno Haible  <bruno@clisp.org>
14770
14771         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14772         program_invocation_short_name.
14773         * modules/progname (configure.ac): Test for presence of
14774         program_invocation_short_name.
14775         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14776
14777 2009-10-04  Bruno Haible  <bruno@clisp.org>
14778
14779         * lib/progname.c (set_program_name): Fix comment.
14780         Reported by Jim Meyering.
14781
14782 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14783             Bruno Haible  <bruno@clisp.org>
14784
14785         * lib/uname.c: Include <string.h>.
14786         (uname): Do only one call to GetVersionEx in the common case.
14787
14788 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14789             Bruno Haible  <bruno@clisp.org>
14790
14791         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14792         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14793         (uname): Add support for Windows CE and various non-x86 CPU types.
14794
14795 2009-10-03  Bruno Haible  <bruno@clisp.org>
14796
14797         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14798         invocation to tests/configure.ac.
14799         Reported by Ian Beckwith <ianb@erislabs.net>.
14800
14801 2009-10-02  Eric Blake  <ebb9@byu.net>
14802
14803         fchdir: avoid compiler warning
14804         * lib/fchdir.c (canonicalize_file_name)
14805         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14806
14807         test-open: support mingw errno values
14808         * tests/test-open.h (test_open): Relax test.
14809         * tests/test-fopen.h (test_fopen): Likewise.
14810         * tests/test-openat-safer.c (main): Likewise.
14811
14812         open: fix opening directory on mingw
14813         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14814
14815         test-open: on GNU/Hurd, /dev/null is a directory
14816         * tests/test-fopen.h (main): Rename...
14817         (test_fopen): ...to this.  Use a guaranteed non-directory when
14818         confirming open behavior on trailing slash.
14819         * tests/test-openat-safer.c (main): Likewise.
14820         * tests/test-open.h (main): Likewise....
14821         (test_open): ...to this.
14822         * tests/test-fopen.c (main): Adjust caller.
14823         * tests/test-fopen-safer.c (main): Likewise.
14824         * tests/test-open.c (main): Likewise.
14825         * tests/test-fcntl-safer.c (main): Likewise.
14826         Reported by Samuel Thibault.
14827
14828         rename, fchdir: don't ignore chdir failure
14829         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14830         * lib/rename.c (rpl_rename) [W32]: Likewise.
14831         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14832         an empty destination directory if source cannot be renamed,
14833         although there is still possibility for failure.
14834         * doc/posix-functions/rename.texi (rename): Document the race.
14835         Reported by Jim Meyering.
14836
14837         maint: cleanup whitespace in recent commits
14838         * lib/rename.c (rpl_rename): Remove tabs.
14839         * tests/test-link.h (test_link): Likewise.
14840         * lib/fchdir.c (get_name): Likewise.
14841         Reported by Jim Meyering.
14842
14843 2009-10-02  Ben Pfaff  <blp@gnu.org>
14844
14845         relocatable-prog-wrapper: Add missing dependency on
14846         double-slash-root.
14847         * modules/relocatable-prog-wrapper: Add dependency.
14848         Reported by Ian Beckwith <ianb@erislabs.net>.
14849
14850 2009-10-02  Eric Blake  <ebb9@byu.net>
14851
14852         renameat: fix Solaris bugs
14853         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14854         needed fixing.
14855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14856         * modules/stdio (Makefile.am): Substitute it.
14857         * lib/stdio.in.h (renameat): Declare replacement.
14858         * lib/renameat.c (rpl_renameat): Implement fix.
14859
14860         renameat: new module
14861         * modules/renameat: New file.
14862         * lib/renameat.c (renameat): Likewise.
14863         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14865         * modules/stdio (Makefile.am): Substitute them.
14866         * lib/stdio.in.h (renameat): Declare it.
14867         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14868         * doc/posix-functions/renameat.texi (renameat): Likewise.
14869         * modules/renameat-tests: New test.
14870         * tests/test-renameat.c: Likewise.
14871
14872         rename: fix mingw bugs
14873         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14874         directory overwrite bugs.
14875
14876         rename: fix another cygwin 1.5 bug
14877         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14878         checks.
14879         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14880         unnecessary cygwin workarounds.  Also work around bug with moving
14881         full directory onto an empty one.
14882         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14883
14884         rename-dest-slash: merge into rename module
14885         * modules/rename-dest-slash (Status): Mark obsolete.
14886         (Depends-on): Add rename.
14887         (Files): Let rename do it all.
14888         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14889         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14890         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14891         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14892         * lib/rename.c (rpl_rename): Update comments.
14893
14894         rename: fix cygwin 1.5.x bugs
14895         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14896         * lib/rename.c (rpl_rename): Work around them.
14897         * modules/rename (Depends-on): Add same-inode.
14898
14899         rename: fix Solaris 10 bug
14900         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14901         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14902         was the only bug.
14903
14904         rename: fix Solaris 9 bug
14905         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14906         on non-directory.  Avoid calling exit.
14907         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14908         strdup.
14909         * modules/rename-tests (Depends-on): Drop lstat.
14910         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14911         (gl_PREREQ_RENAME): Delete unused macro.
14912
14913         rename-dest-slash: fix NetBSD bug
14914         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14915         links.
14916         * modules/rename-dest-slash (Depends-on): Add same-inode.
14917
14918         rename-tests: new test, exposes several platform bugs
14919         * modules/rename-tests: New file.
14920         * tests/test-rename.h: Likewise.
14921         * tests/test-rename.c: Likewise.
14922         * doc/posix-functions/rename.texi (rename): Improve documentation,
14923         including bugs that will eventually be fixed in gnulib.
14924
14925 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14926
14927         * lib/uname.c: Include <stdlib.h>
14928         (uname): Assume version info is available.
14929
14930 2009-10-02  Jim Meyering  <meyering@redhat.com>
14931
14932         gnu-web-doc-update: correct --help output
14933         * build-aux/gnu-web-doc-update: Make --help output relevant.
14934
14935         gnu-web-doc-update: add standard options
14936         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14937
14938         gnu-web-doc-update: New module.
14939         Use this script to automatically update the on-line web documentation
14940         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14941         * modules/gnu-web-doc-update: New file, from coreutils.
14942         * build-aux/gnu-web-doc-update: New script.
14943
14944 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14945
14946         link: LoadLibrary is not needed.
14947         * lib/link.c: Use GetModuleHandle.
14948
14949 2009-10-01  Eric Blake  <ebb9@byu.net>
14950
14951         getopt: bump serial number
14952         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14953         change.
14954
14955         tests: tighten link, rmdir, and remove tests
14956         * tests/test-link.h (includes): No need to use <config.h> here.
14957         Clean up if directory hard link was created, otherwise test for
14958         trailing '.'.
14959         * tests/test-linkat.c (main): Simplify.
14960         * tests/test-remove.c (main): Enhance test for trailing '.'.
14961         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14962
14963 2009-10-01  Jim Meyering  <meyering@redhat.com>
14964
14965         maint.mk: requiring "make major" was annoying, for a "minor" release.
14966         What is intended is "stable", to contrast with alpha and beta,
14967         so require "make stable", not "make major".
14968         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14969         (get_tool_versions): Likewise.
14970         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14971
14972 2009-09-30  Ben Pfaff  <blp@gnu.org>
14973
14974         Fix broken build of replacement for Windows tmpfile().
14975         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14976         flags argument added along with the 'mkostemp' module.
14977
14978 2009-09-28  Bruno Haible  <bruno@clisp.org>
14979
14980         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14981         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14982         to 'remove_elt'.
14983         (gl_list_remove): Update.
14984         * lib/gl_list.c (gl_list_remove): Update.
14985         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14986         to 'remove_elt'.
14987         (gl_oset_remove): Update.
14988         * lib/gl_list.c (gl_oset_remove): Update.
14989         Reported by Eric Blake.
14990
14991 2009-09-28  Eric Blake  <ebb9@byu.net>
14992
14993         doc: mention yet more cygwin 1.7 status
14994         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14995         cygwin.
14996         * doc/glibc-functions/execvpe.texi (execvpe): New file.
14997         * doc/gnulib.texi (Glibc unistd.h): Mention it.
14998
14999         argp: fix test failure
15000         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
15001         that are not upper-case.  Pass correct range to tolower.
15002
15003 2009-09-27  Jim Meyering  <meyering@redhat.com>
15004
15005         test-yesno: work around sparc-dash here-document infelicity
15006         Without this change, the literal \177 byte in a here document
15007         would make dash 0.5.5.1-3 access uninitialized memory.
15008         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
15009         Instead, use a marker, "@", and filter through tr to create the desired
15010         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
15011
15012 2009-09-27  Bruno Haible  <bruno@clisp.org>
15013
15014         Disable untested support for new flavours of ACLs on AIX.
15015         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
15016         progress.
15017         * lib/set-mode-acl.c (qset_acl): Likewise.
15018
15019 2008-12-07  Bruno Haible  <bruno@clisp.org>
15020
15021         Add support for new flavours of ACLs on AIX. (Untested.)
15022         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
15023         (file_has_acl): Add support for newer AIX.
15024         * lib/set-mode-acl.c (qset_acl): Likewise.
15025         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
15026         Rainer Tammer <tammer@tammer.net>.
15027
15028 2009-09-26  Eric Blake  <ebb9@byu.net>
15029
15030         argp: fix compilation of getopt
15031         * lib/getopt.in.h (includes): Use different guard than glibc.
15032         Reported by Sergey Poznyakoff.
15033
15034         doc: mention more cygwin 1.7 status
15035         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
15036         bug.
15037         * doc/posix-functions/execl.texi (execl): Likewise.
15038         * doc/posix-functions/execle.texi (execle): Likewise.
15039         * doc/posix-functions/execlp.texi (execlp): Likewise.
15040         * doc/posix-functions/execv.texi (execv): Likewise.
15041         * doc/posix-functions/execve.texi (execve): Likewise.
15042         * doc/posix-functions/execvp.texi (execvp): Likewise.
15043         * doc/glibc-functions/canonicalize_file_name.texi
15044         (canonicalize_file_name): Cygwin 1.7 now provides this.
15045         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
15046         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
15047         on AT_SYMLINK_NOFOLLOW.
15048
15049 2009-09-24  Eric Blake  <ebb9@byu.net>
15050
15051         test-linkat: make test more robust
15052         * tests/test-linkat.c (main): Avoid collision with EEXIST.
15053
15054         getopt: fix inclusion guards for cygwin
15055         * modules/getopt-posix (Depends-on): Add include-next.
15056         (Makefile.am): Substitute more items in replacement header.
15057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
15058         <getopt.h>.
15059         * lib/getopt.in.h (includes): Use split inclusion guard, and
15060         prefer <getopt.h> over include <unistd.h> when one is present.
15061         (option): Also override name of 'struct option'.
15062
15063         same-inode: revert prior change; it is not yet ready
15064         * NEWS: Undo mention of this change.
15065         * lib/same-inode.h (same-inode.h): Undo tri-state change.
15066         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15067         * lib/cycle-check.c (cycle_check): Likewise.
15068         * lib/same.c (same_name): Likewise.
15069         * lib/at-func2.c (at_func2): Likewise.
15070
15071 2009-09-23  Eric Blake  <ebb9@byu.net>
15072
15073         linkat: new module
15074         * modules/linkat: New file.
15075         * lib/at-func2.c (at_func2): Likewise.
15076         * lib/linkat.c (linkat): Likewise.
15077         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15078         * lib/openat-priv.h (at_func2): Add declaration.
15079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15080         * modules/unistd (Makefile.am): Substitute them.
15081         * lib/unistd.in.h (linkat): Declare it.
15082         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15083         * doc/posix-functions/linkat.texi (linkat): Likewise.
15084         * doc/posix-functions/link.texi (link): Tweak wording.
15085         * tests/test-link.c (main): Move guts...
15086         * tests/test-link.h (test_link): ...into new file.
15087         * modules/linkat-tests: New test.
15088         * tests/test-linkat.c: Likewise.
15089         * modules/link-tests (Files): Ship new file.
15090         (Depends-on): Add stdbool.
15091
15092         dirname: add library-safe mdir_name
15093         * lib/dirname.h (mdir_name): New prototype.
15094         * lib/dirname.c (dir_name): Move guts...
15095         (mdir_name): ...to new function that avoids xalloc_die.
15096
15097         fchdir: another mingw fix
15098         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
15099         * lib/fchdir.c (get_name): New helper method; skips canonicalize
15100         on mingw (where it has not yet been ported), and make it optional
15101         elsewhere.
15102         (_gl_register_fd): Use it.
15103
15104         same-inode: make SAME_INODE tri-state, to port to mingw
15105         * NEWS: Mention this change.
15106         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
15107         st_ino always being 0.
15108         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15109         * lib/cycle-check.c (cycle_check): Likewise.
15110         * lib/same.c (same_name): Likewise.
15111
15112         lstat: avoid mingw compilation error
15113         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
15114         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
15115         lstat ourselves.
15116         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
15117         was adequate.
15118         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
15119         the checks for lstat.
15120         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
15121
15122         link: fix test failure on Solaris 9
15123         * lib/link.c (rpl_link): Don't assume link will catch bogus
15124         trailing slash on source.
15125
15126         test-symlinkat: enhance test
15127         * tests/test-readlink.c (main): Move guts...
15128         * tests/test-readlink.h (test_readlink): ...into new file.
15129         * tests/test-symlink.c (main): Move guts...
15130         * tests/test-symlink.h (test_symlink): ...into new file.
15131         * tests/test-symlinkat.c (main): Use new files for further
15132         coverage.
15133         (do_symlink, do_readlink): New helper functions.
15134         * modules/symlink-tests (Files): Ship new file.
15135         (Depends-on): Add stdbool.
15136         * modules/readlink-tests (Files): Ship new file.
15137         (Depends-on): Add stdbool.
15138         * modules/symlinkat-tests (Files): Use new files.
15139
15140 2009-09-23  Eric Blake  <ebb9@byu.net>
15141
15142         readlink: document portability issue with symlink length
15143         * doc/posix-functions/lstat.texi (lstat): Mention that some file
15144         systems have bogus st_size on symlinks, and mention the
15145         areadlink-with-size module.
15146         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15147         * doc/posix-functions/readlink.texi (readlink): Mention the
15148         areadlink module, and ERANGE failure.
15149         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15150         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
15151
15152         readlink: fix Solaris 9 bug with trailing slash
15153         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
15154         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15155         * doc/posix-functions/readlink.texi (readlink): Document this.
15156         * modules/readlink-tests: New test.
15157         * tests/test-readlink.c: Likewise.
15158
15159         readlink: fix cygwin 1.5.x bug with return type
15160         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15161         * lib/unistd.in.h (readlink): Use ssize_t.
15162         * lib/readlink.c (readlink): Likewise.
15163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15164         * modules/unistd (Makefile.am): Substitute it.
15165         * lib/unistd.in.h (readlink): Declare replacement.
15166         * doc/posix-functions/readlink.texi (readlink): Document this.
15167
15168         symlink: use throughout gnulib
15169         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15170         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15171         symlink is not used.
15172         * modules/symlinkat (Depends-on): Add symlink.
15173         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15174         * modules/canonicalize-tests (Depends-on): Likewise.
15175         * modules/lstat-tests (Depends-on): Likewise.
15176         * modules/openat-tests (Depends-on): Likewise.
15177         * modules/remove-tests (Depends-on): Likewise.
15178         * modules/rmdir-tests (Depends-on): Likewise.
15179         * modules/unlink-tests (Depends-on): Likewise.
15180         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15181         * tests/test-canonicalize.c (symlink): Likewise.
15182         * tests/test-fstatat.c (symlink): Likewise.
15183         * tests/test-lstat.c (symlink): Likewise.
15184         * tests/test-remove.c (symlink): Likewise.
15185         * tests/test-rmdir.c (symlink): Likewise.
15186         * tests/test-unlink.c (symlink): Likewise.
15187         * tests/test-unlinkat.c (symlink): Likewise.
15188
15189         symlink: new module, for Solaris 9 bug
15190         * modules/symlink: New file.
15191         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15192         * lib/symlink.c: Likewise.
15193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15194         * modules/unistd (Makefile.am): Substitute them.
15195         * lib/unistd.in.h (symlink): Declare replacement.
15196         * MODULES.html.sh (File system functions): Mention it.
15197         * doc/posix-functions/symlink.texi (symlink): Likewise.
15198         * modules/symlink-tests: New test.
15199         * tests/test-symlink.c: Likewise.
15200
15201 2009-09-23  Bruno Haible  <bruno@clisp.org>
15202
15203         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15204         when needed.
15205         Test case: gnulib-tool --import --with-tests atexit inttypes.
15206         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15207
15208 2009-09-23  Bruno Haible  <bruno@clisp.org>
15209
15210         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15211         subcommand, not in a subshell.
15212
15213 2009-09-22  Eric Blake  <ebb9@byu.net>
15214
15215         unistd: sort replacement declarations
15216         * lib/unistd.in.h: Sort declarations.
15217
15218         open, openat: minor optimization
15219         * lib/open.c (open): If open succeeded, len is non-zero.
15220         * lib/openat.c (rpl_openat): Likewise.
15221
15222         link-follow: ensure correct result
15223         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15224         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15225         distinguish between possible failures.
15226
15227 2009-09-21  Eric Blake  <ebb9@byu.net>
15228
15229         fts: avoid compiler warning
15230         * lib/fts.c (dirent_inode_sort_may_be_useful)
15231         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15232
15233 2009-09-19  Bruno Haible  <bruno@clisp.org>
15234
15235         * lib/progreloc.c (canonicalize_file_name): New declaration.
15236
15237 2009-09-19  Eric Blake  <ebb9@byu.net>
15238
15239         link: fix quoting
15240         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15241
15242         openat: fix openat bugs on Solaris 9
15243         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15244         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15245         * modules/openat (Depends-on): Add open.
15246         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15247         * modules/fcntl-h (Makefile.am): Substitute it.
15248         * lib/fcntl.in.h (openat): Declare replacement.
15249         * doc/posix-functions/openat.texi (openat): Document this.
15250
15251         openat: move fstatat and unlinkat into correct files
15252         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15253         compiled.
15254         * lib/openat.c (fstatat, unlinkat): Move...
15255         * lib/fstatat.c (fstatat): ...into correct files.
15256         * lib/unlinkat.c (unlinkat): Likewise.
15257
15258         openat: fix unlinkat bugs on Solaris 9
15259         * lib/unlinkat.c (unlinkat): New file.
15260         * modules/openat (Depends-on): Add unlink.
15261         (Files): Distribute it.
15262         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15263         trailing slash behavior is broken.
15264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15265         * modules/unistd (Makefile.am): Substitute it.
15266         * lib/unistd.in.h (unlinkat): Declare replacement.
15267         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15268
15269         openat: fix fstatat bugs on Solaris 9
15270         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15271         stat.
15272         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15273
15274         test-unlinkat: enhance test, to expose Solaris 9 bug
15275         * tests/test-unlink.c (main): Factor guts...
15276         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15277         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15278         * tests/test-rmdir.c (main): Adjust caller.
15279         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15280         (unlinker): New helper function.
15281         (rmdirat): Enhance check.
15282         * modules/rmdir-tests (Depends-on): Add stdbool.
15283         * modules/unlink-tests (Depends-on): Likewise.
15284         (Files): Add test-unlink.h.
15285         * modules/openat-tests (Files): Likewise.
15286         (Depends-on): Add unlinkdir.
15287
15288         test-fstatat: new test, to expose Solaris 9 bugs
15289         * tests/test-stat.c (main): Factor guts...
15290         * tests/test-stat.h (test_stat_func): ...into new file.
15291         * tests/test-lstat.c (main): Factor guts...
15292         * tests/test-lstat.h (test_lstat_func): ...into new file.
15293         * tests/test-fstatat.c: New file.
15294         * modules/stat-tests (Files): Add test-stat.h.
15295         * modules/lstat-tests (Files): Add test-lstat.h.
15296         (Depends-on): Add stdbool.
15297         * modules/openat-tests (Depends-on): Add pathmax.
15298         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15299         (Makefile.am): Run new test.
15300
15301         remove: new module, for mingw and Solaris 9 bugs
15302         * modules/remove: New file.
15303         * lib/remove.c: Likewise.
15304         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15306         * modules/stdio (Makefile.am): Use them.
15307         * lib/stdio.in.h (remove): Declare replacement.
15308         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15309         * doc/posix-functions/remove.texi (remove): Likewise.
15310         * modules/remove-tests: New test.
15311         * tests/test-remove.c: Likewise.
15312
15313         unlink: new module, for Solaris 9 bug
15314         * modules/unlink: New file.
15315         * lib/unlink.c: Likewise.
15316         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15318         * modules/unistd (Makefile.am): Use them.
15319         * lib/unistd.in.h (stat): Declare replacement.
15320         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15321         * doc/posix-functions/unlink.texi (unlink): Likewise.
15322         * modules/unlink-tests: New test.
15323         * tests/test-unlink.c: Likewise.
15324
15325         lstat: fix Solaris 9 bug
15326         * lib/lstat.c (lstat): Also check for trailing slash on
15327         non-symlink, non-directories.  Use stat module to simplify logic.
15328         * doc/posix-functions/lstat.texi (lstat): Document it.
15329         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15330         (configure.ac): Check for symlink.
15331         * tests/test-lstat.c (main): Add more tests.
15332
15333         stat: add as dependency to other modules
15334         * modules/chown (Depends-on): Add stat.
15335         * modules/euidaccess (Depends-on): Likewise.
15336         * modules/fchdir (Depends-on): Likewise.
15337         * modules/isdir (Depends-on): Likewise.
15338         * modules/link (Depends-on): Likewise.
15339         * modules/lstat (Depends-on): Likewise.
15340         * modules/mkdir-p (Depends-on): Likewise.
15341         * modules/modechange (Depends-on): Likewise.
15342         * modules/open (Depends-on): Likewise.
15343         * modules/readlink (Depends-on): Likewise.
15344         * modules/same (Depends-on): Likewise.
15345
15346         stat: fix Solaris 9 bug
15347         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15348         slash.
15349         * lib/stat.c (rpl_stat): Work around it.
15350         * doc/posix-functions/stat.texi (stat): Update documentation.
15351
15352         stat: new module, for mingw bug
15353         * modules/stat: New file.
15354         * lib/stat.c: Likewise.
15355         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15356         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15357         * modules/sys_stat (Makefile.am): Use them.
15358         * lib/sys_stat.in.h (stat): Declare replacement.
15359         * lib/openat.c (fstatat): Deal with lstat and stat being function
15360         macros.
15361         * modules/openat (Depends-on): Add inline.
15362         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15363         * doc/posix-functions/stat.texi (stat): Likewise.
15364         * modules/stat-tests: New test.
15365         * tests/test-stat.c: Likewise.
15366
15367 2009-09-19  Jim Meyering  <meyering@redhat.com>
15368
15369         syntax-check: detect unnecessary inclusion of canonicalize.h
15370         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15371
15372 2009-09-19  Eric Blake  <ebb9@byu.net>
15373
15374         canonicalize-lgpl: adjust clients to use correct header
15375         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15376         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15377         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15378         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15379         * lib/progreloc.c (includes): Likewise.
15380
15381 2009-09-19  Jim Meyering  <meyering@redhat.com>
15382
15383         test-posixtm.c: correct a comment
15384         * tests/test-posixtm.c: Correct first-line comment.
15385         Spotted by Eric Blake.
15386
15387 2009-09-16  Jim Meyering  <meyering@redhat.com>
15388
15389         posixtm-tests: make T const-correct; add a test case
15390         * tests/test-posixtm.c (T): Declare const.
15391         Add a test for -(2^31+1).
15392         Remove useless can-succeed-only-in-2002 test.
15393
15394         posixtm-tests: adjust the sole failing test
15395         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15396         expected output matches what mktime now produces.  Cross-checked via
15397         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15398
15399         posixtm: move #ifdef'd tests into a new module
15400         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15401         * tests/test-posixtm.c: ... this new file.
15402         * modules/posixtm-tests: New module.
15403
15404 2009-09-19  Eric Blake  <ebb9@byu.net>
15405
15406         openat: simplify use of at-func.c
15407         * lib/at-func.c (includes): Include prerequisites here, to
15408         simplify requirements on client files.
15409         * lib/openat-priv.h: Add double-inclusion guard.
15410         * lib/faccessat.c (includes): Simplify.
15411         * lib/fchmodat.c (includes): Likewise.
15412         * lib/fchownat.c (includes): Likewise.
15413         * lib/mkdirat.c (includes): Likewise.
15414         * lib/mkfifoat.c (includes): Likewise.
15415         * lib/symlinkat.c (includes): Likewise.
15416
15417         openat: allow return of fd 0
15418         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15419         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15420         unistd-safer.
15421         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15422         <fcntl.h>; this module does not leak fds.
15423         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15424         must be allowed to return 0, leaving openat_safer to add the
15425         safety.
15426         (openat_permissive): Avoid writing to just-opened fd 2 if
15427         restoring the current directory fails.
15428         * lib/openat-die.c (openat_restore_fail): Add comment.
15429         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15430         (save_cwd): Guarantee safe fd, but without use of open_safer.
15431         * tests/test-openat.c: New test.
15432         * modules/openat-tests (Files, Makefile.am): Distribute and build
15433         new file.
15434
15435         relocatable-prog-wrapper: fix build
15436         * modules/relocatable-prog-wrapper (Files): Update name of
15437         canonicalize m4 file, broken on 2009-09-17.
15438         Reported by emad hajjar <aleppos@hotmail.com>.
15439
15440 2009-09-19  Bruno Haible  <bruno@clisp.org>
15441
15442         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15443         * lib/safe-alloc.c: Likewise.
15444         Reported by Ian Beckwith <ianb@erislabs.net>.
15445
15446 2009-09-18  Bruno Haible  <bruno@clisp.org>
15447
15448         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15449         Reported by <erobles@sensacd.com.mx>.
15450
15451 2009-09-17  Eric Blake  <ebb9@byu.net>
15452
15453         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15454         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15455         slashes when checking if last component is missing.
15456         * tests/test-canonicalize.c (main): Test this.
15457
15458         canonicalize, canonicalize-lgpl: honor // if distinct from /
15459         * modules/canonicalize (Files): Add double-slash-root.m4.
15460         * modules/canonicalize-lgpl (Files): Likewise.
15461         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15462         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15463         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15464         fallback definition.
15465         (canonicalize_filename_mode): Use it to protect //.
15466         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15467         (__realpath): Likewise.
15468         * tests/test-canonicalize.c (main): Test this.
15469         * tests/test-canonicalize-lgpl.c (main): Likewise.
15470         * modules/canonicalize-tests (Depends-on): Add same-inode.
15471         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15472
15473         canonicalize-lgpl: fix glibc bug with trailing slash
15474         * m4/canonicalize-lgpl.m4: Move contents...
15475         * m4/canonicalize.m4: ...here.
15476         (gl_CANONICALIZE_LGPL): Factor realpath check...
15477         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15478         glibc 2.3.5 bug, fixed 2005-04-27.
15479         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15480         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15481         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15482         * modules/canonicalize-lgpl (Files): Manage file rename.
15483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15484         * modules/stdlib (Makefile.am): Substitute witness.
15485         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15486         is needed.
15487         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15488         replacement is required.
15489         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15490         * doc/glibc-functions/canonicalize_file_name.texi
15491         (canonicalize_file_name): Document this.
15492         * doc/posix-functions/realpath.texi (realpath): Likewise.
15493
15494         canonicalize-lgpl: reject non-directory with trailing slash
15495         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15496         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15497         catches failures in glibc 2.3.5.
15498         * tests/test-canonicalize.c (main): Likewise.
15499
15500         canonicalize-lgpl: use native realpath if it works
15501         * lib/canonicalize-lgpl.c (realpath): Guard with
15502         FUNC_REALPATH_WORKS.
15503         * lib/stdlib.in.h (realpath): Make declaration optional based on
15504         HAVE_REALPATH.
15505         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15506         native realpath works.
15507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15508         * modules/stdlib (Makefile.am): Substitute witness.
15509
15510         canonicalize, canonicalize-lgpl: use <stdlib.h>
15511         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15512         (Include): Mention <stdlib.h>.
15513         (configure.ac): Mention functions we provide.
15514         * modules/canonicalize (configure.ac): Likewise.
15515         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15516         realpath if canonicalize_file_name is missing.
15517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15518         * modules/stdlib (Makefile.am): Substitute witnesses.
15519         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15520         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15521         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15522         * NEWS: Document this.
15523         * doc/glibc-functions/canonicalize_file_name.texi
15524         (canonicalize_file_name): Likewise.
15525         * doc/posix-functions/realpath.texi (realpath): Likewise.
15526         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15527
15528         test-canonicalize: consolidate into single C program
15529         * tests/test-canonicalize.sh: Delete; move setup into...
15530         * tests/test-canonicalize.c (main): ...the program, making it
15531         easier to run in debugger.  Add some tests.
15532         * modules/canonicalize-tests (Files): Remove unused file.
15533         (Depends-on): Add progname.
15534         (configure.ac, Makefile.am): Simplify.
15535
15536         test-canonicalize-lgpl: consolidate into single C program
15537         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15538         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15539         easier to run in debugger.  Add some tests.
15540         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15541         (configure.ac, Makefile.am): Simplify.
15542
15543         canonicalize: avoid resolvepath
15544         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15545         unnecessary checks.
15546         * lib/canonicalize.c (includes): Simplify.
15547         (canonicalize_file_name): Drop resolvepath implementation.
15548         * modules/canonicalize (Depends-on): Drop filenamecat.
15549
15550         canonicalize: don't lose errno
15551         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15552         over calls to free.
15553
15554         canonicalize: simplify errno handling
15555         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15556         assignment.
15557
15558         canonicalize, canonicalize-lgpl: update module dependencies
15559         * modules/canonicalize (Depends-on): Add extensions, lstat,
15560         pathmax, stdlib.
15561         (Files): Drop pathmax.h.
15562         (configure.ac): Adjust macro name.
15563         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15564         lstat, stdlib, sys_stat.
15565         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15566         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15567         extensions.
15568         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15569         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15570         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15571         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15572         declaration, if available.
15573         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15574         we can rely on the readlink module.
15575         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15576         (includes): Use <unistd.h> unconditionally.
15577
15578 2009-09-17  Eric Blake  <ebb9@byu.net>
15579
15580         maint: make Include sections of modules consistent
15581         * modules/alloca: Use only header name; no need to list #include.
15582         * modules/alloca-opt: Likewise.
15583         * modules/arpa_inet: Likewise.
15584         * modules/canon-host: Likewise.
15585         * modules/configmake: Likewise.
15586         * modules/dirent: Likewise.
15587         * modules/eealloc: Likewise.
15588         * modules/environ: Likewise.
15589         * modules/fchdir: Likewise.
15590         * modules/fcntl: Likewise.
15591         * modules/fcntl-h: Likewise.
15592         * modules/gethrxtime: Likewise.
15593         * modules/gettime: Likewise.
15594         * modules/ignore-value: Likewise.
15595         * modules/inet_ntop: Likewise.
15596         * modules/inet_pton: Likewise.
15597         * modules/inttypes: Likewise.
15598         * modules/isnand-nolibm: Likewise.
15599         * modules/isnanf-nolibm: Likewise.
15600         * modules/mbchar: Likewise.
15601         * modules/mbfile: Likewise.
15602         * modules/mbiter: Likewise.
15603         * modules/mbuiter: Likewise.
15604         * modules/netdb: Likewise.
15605         * modules/netinet_in: Likewise.
15606         * modules/nproc: Likewise.
15607         * modules/pagealign_alloc: Likewise.
15608         * modules/poll: Likewise.
15609         * modules/printf-frexp: Likewise.
15610         * modules/pthread: Likewise.
15611         * modules/putenv: Likewise.
15612         * modules/random_r: Likewise.
15613         * modules/relocatable-prog: Likewise.
15614         * modules/search: Likewise.
15615         * modules/select: Likewise.
15616         * modules/selinux-h: Likewise.
15617         * modules/settime: Likewise.
15618         * modules/signal: Likewise.
15619         * modules/size_max: Likewise.
15620         * modules/socklen: Likewise.
15621         * modules/ssize_t: Likewise.
15622         * modules/stdarg: Likewise.
15623         * modules/stdbool: Likewise.
15624         * modules/stddef: Likewise.
15625         * modules/stdint: Likewise.
15626         * modules/stdio: Likewise.
15627         * modules/stdlib: Likewise.
15628         * modules/string: Likewise.
15629         * modules/strings: Likewise.
15630         * modules/sys_file: Likewise.
15631         * modules/sys_ioctl: Likewise.
15632         * modules/sys_select: Likewise.
15633         * modules/sys_socket: Likewise.
15634         * modules/sys_stat: Likewise.
15635         * modules/sys_time: Likewise.
15636         * modules/sys_times: Likewise.
15637         * modules/sys_utsname: Likewise.
15638         * modules/sys_wait: Likewise.
15639         * modules/sysexits: Likewise.
15640         * modules/time: Likewise.
15641         * modules/times: Likewise.
15642         * modules/tmpfile: Likewise.
15643         * modules/trim: Likewise.
15644         * modules/unistd: Likewise.
15645         * modules/wchar: Likewise.
15646         * modules/wctype: Likewise.
15647
15648 2009-09-17  Bruno Haible  <bruno@clisp.org>
15649
15650         Make getdate.y compile on QNX and NetBSD 5 / i386.
15651         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15652         TIME_T_FITS_IN_LONG_INT.
15653         * lib/getdate.y (long_time_t): New type.
15654         (relative_time): Change type of 'seconds' field to long_time_t.
15655         (get_date): Update types of local variables. Check against overflow
15656         during conversion from long_time_t to time_t.
15657         Reported by Matt Kraai <kraai@ftbfs.org>
15658         and Hasso Tepper <hasso@netbsd.org>.
15659
15660 2009-09-17  Bruno Haible  <bruno@clisp.org>
15661
15662         * modules/COPYING: Update copyright years.
15663         * modules/README: Likeiwse.
15664         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15665         Reported by Ian Beckwith <ianb@erislabs.net>.
15666
15667 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15668
15669         * users.txt: Update references for gnuit package.
15670
15671 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15672
15673         * m4/getdelim.m4: Fix typo in copyright line.
15674
15675 2009-09-17  Bruno Haible  <bruno@clisp.org>
15676
15677         * lib/atoll.c: Use the standard header with GPL copyright.
15678         * lib/argz.in.h: Likewise.
15679         * lib/glob.c: Likewise.
15680         * lib/glob-libc.h: Likewise.
15681         * lib/random_r.c: Likewise.
15682         * lib/siglist.h: Likewise.
15683         * lib/strsignal.c: Likewise.
15684         Reported by Ian Beckwith <ianb@erislabs.net>.
15685
15686 2009-09-17  Eric Blake  <ebb9@byu.net>
15687
15688         rmdir: ensure correct dependency order
15689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15690
15691 2009-09-17  Bruno Haible  <bruno@clisp.org>
15692
15693         Disable assertion that fails on NetBSD 5 / i386.
15694         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15695         Reported by Sam Steingold <sds@gnu.org>
15696         and Hasso Tepper <hasso@netbsd.org>.
15697
15698 2009-09-16  Eric Blake  <ebb9@byu.net>
15699
15700         unlinkdir: port to mingw
15701         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15702         on which no one can unlink a directory.
15703
15704         stdlib: sort witness names
15705         * modules/stdlib (Makefile.am): Sort replacements.
15706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15707         * lib/stdlib.in.h: Likewise.
15708
15709         parse-duration-tests: avoid link failure
15710         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15711         LIBINTL.
15712         Reported by Tom G. Christensen.
15713
15714         openat-tests: ensure unlinkat behaves like rmdir
15715         * tests/test-rmdir.c (main): Factor guts...
15716         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15717         * modules/rmdir-tests (Files): Ship new file.
15718         * modules/openat-tests: New test.
15719         * tests/test-unlinkat.c: Likewise.
15720
15721         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15722         * modules/rmdir-errno (Status, Notice): Now obsolete.
15723
15724         rmdir: work around cygwin 1.5.x and mingw bugs
15725         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15726         * lib/rmdir.c (rmdir): Work around it.
15727         * modules/rmdir (Status, Notice): No longer obsolete.
15728         (Files): Add dos.m4.
15729         (Depends-on): Add unistd.
15730         (configure.ac): Set witnesses.
15731         (License): Relax to LGPLv2+.
15732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15733         * modules/unistd (Makefile.am): Substitute witnesses.
15734         * lib/unistd.in.h (rmdir): Declare replacement.
15735         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15736         * modules/rmdir-tests: New tests.
15737         * tests/test-rmdir.c: Likewise.
15738
15739 2009-09-15  Eric Blake  <ebb9@byu.net>
15740
15741         fchdir: improve use of replacement functions
15742         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15743         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15744         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15745         REPLACE_CLOSEDIR.
15746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15747         * modules/sys_stat (Makefile.am): Substitute correct witness.
15748         * modules/dirent (Makefile.am): Likewise.
15749         * modules/unistd (Makefile.am): Likewise.
15750         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15751         * lib/unistd.in.h (dup): Likewise.
15752         * lib/sys_stat.in.h (fstat): Likewise.
15753
15754         maint: ignore gnulib-tool temp files
15755         * .gitignore: Ignore files created during gnulib-tool --test.
15756
15757 2009-09-13  Jim Meyering  <meyering@redhat.com>
15758
15759         posixtm: don't reject a time that specify "60" as the number of seconds
15760         * lib/posixtm.c (posixtime): The code to reject invalid dates
15761         would also reject a time specified with the .60 suffix.
15762         But POSIX allows that, in order to accommodate leap seconds.
15763         So don't reject it.
15764         (main): Adjust tests accordingly.
15765         * modules/posixtm (Depends-on): Add stpcpy.
15766
15767 2009-09-11  Jim Meyering  <meyering@redhat.com>
15768
15769         announce-gen: include [$release_type] in emitted Subject:
15770         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15771         e.g., [stable] in the emitted Subject: line.
15772
15773 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15774
15775         Remove obsolete macros from several modules.
15776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15777         obsolete Autoconf macros with their modern counterparts.
15778         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15779         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15780         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15781         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15782         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15783         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15785         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15786         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15787         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15788         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15789         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15790         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15791         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15792         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15793         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15794         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15795         * m4/time_r.m4 (gl_TIME_R): Likewise.
15796         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15797         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15798         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15799
15800         Fix copyright header in build-aux scripts.
15801         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15802         recommendation.
15803         * build-aux/ncftpput-ftp: Likewise.
15804         * build-aux/update-copyright: Likewise.
15805
15806 2009-09-09  Eric Blake  <ebb9@byu.net>
15807
15808         test-link: allow Linux choice of errno
15809         * tests/test-link.c (main): Relax test for alternate error.
15810
15811         strndup: fix improper m4 caching
15812         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15813         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15814         (gl_PREREQ_STRNDUP): Delete.
15815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15816         * modules/string (Makefile.am): Substitute it.
15817         * lib/string.in.h (strndup): Modernize prototype.
15818
15819         getcwd: port to mingw
15820         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15821         different from the POSIX assumptions made throughout the getcwd
15822         module; fortunately, the mingw getcwd does not need replacement.
15823         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15824         * modules/getcwd-tests: New test.
15825         * tests/test-getcwd.c: Likewise.
15826
15827         link: fix platform bugs
15828         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15829         * lib/link.c (link): Work around them.  Fix related mingw bug.
15830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15831         * modules/unistd (Makefile.am): Substitute it.
15832         * lib/unistd.in.h (link): Declare replacement.
15833         * doc/posix-functions/link.texi (link): Document this.
15834         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15835
15836         test-link: consolidate into single C program, test more cases
15837         * tests/test-link.sh: Delete.
15838         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15839         at least Cygwin and Solaris.
15840         * modules/link-tests (Files): Remove unused file.
15841         (Depends-on): Add errno, sys_stat.
15842         (Makefile.am): Simplify.
15843
15844 2009-09-08  Bruno Haible  <bruno@clisp.org>
15845
15846         Work around towlower, towupper bug on mingw.
15847         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15848         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15849         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15850         * doc/posix-functions/towupper.texi: Likewise.
15851         Reported by Eric Blake.
15852
15853 2009-09-08  Jim Meyering  <meyering@redhat.com>
15854
15855         build: don't try to run autoheader if we don't use it
15856         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15857         is not used in configure.ac.
15858
15859 2009-09-08  Eric Blake  <ebb9@byu.net>
15860
15861         euidaccess: fix compilation error
15862         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15863
15864         rawmemchr: relax license
15865         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15866         okay.
15867         Reported by Jim Meyering.
15868
15869         mkfifoat: new module
15870         * modules/mkfifoat: New file.
15871         * lib/mkfifoat.c: Likewise.
15872         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15873         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15874         * modules/sys_stat (Makefile.am): Use them.
15875         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15876         * MODULES.html.sh (File system functions): Mention module.
15877         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15878         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15879         * modules/mkfifoat-tests: New test.
15880         * tests/test-mkfifoat.c: Likewise.
15881
15882         strchrnul: relax license
15883         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15884         okay.
15885         Reported by Jim Meyering.
15886
15887 2009-09-08  Eric Blake  <ebb9@byu.net>
15888
15889         fstatat: fix compilation on Solaris
15890         * lib/fstatat.c (includes): Add fcntl.h.
15891         Reported by Pádraig Brady.
15892
15893 2009-09-07  Eric Blake  <ebb9@byu.net>
15894
15895         rename: modernize replacement
15896         * modules/rename (Depends-on): Add stdio.
15897         (configure.ac): Declare witness.
15898         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15899         stdio take care of replacement.
15900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15901         * modules/stdio (Makefile.am): Substitute them.
15902         * lib/stdio.in.h (rename): Declare replacement.
15903         * lib/rename.c (includes): Allow cross-compilation to non-windows
15904         machines.
15905         * doc/posix-functions/rename.texi (rename): Improve
15906         documentation.
15907
15908         stdio: sort witness names
15909         * modules/stdio (Makefile.am): Sort replacements.
15910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15911         * lib/stdio.in.h: Likewise.
15912
15913         getcwd: minor cleanups
15914         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15915         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15916
15917         openat: provide more convenience names
15918         * modules/faccessat (configure.ac): Add C witness.
15919         * lib/unistd.in.h (readlinkat): Fix typo.
15920         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15921         convenience wrappers.
15922         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15923         wrappers in syntax checks.
15924
15925 2009-09-06  Eric Blake  <ebb9@byu.net>
15926
15927         doc: fix comments in recent patches
15928         * lib/faccessat.c: Mention correct function.
15929         * lib/fchmodat.c: Likewise.
15930         * lib/fchownat.c: Likewise.
15931         * lib/symlinkat.c: Likewise.
15932         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15933         constants.
15934
15935         faccessat, symlinkat: continue cleanup of previous patch
15936         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15937         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15938         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15940         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15941         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15942         set.
15943
15944 2009-09-06  Bruno Haible  <bruno@clisp.org>
15945
15946         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15947         (fstatat): Declare if GNULIB_FSTATAT is set.
15948         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15949         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15950         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15951         * modules/fcntl-h (Files): Remove m4/openat.m4.
15952         * modules/sys_stat (Files): Remove m4/openat.m4.
15953         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15954         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15955         * modules/unistd (Files): Remove m4/openat.m4.
15956         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15957         GNULIB_OPENAT.
15958         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15959         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15960         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15961         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15962         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15963         gl_OPENAT_DEFAULTS.
15964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15965         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15966         Don't require gl_OPENAT_DEFAULTS.
15967         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15968         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15969         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15970         (gl_OPENAT_DEFAULTS): Remove macro.
15971
15972 2009-09-06  Bruno Haible  <bruno@clisp.org>
15973
15974         * modules/openat (configure.ac): Remove unneeded witness.
15975
15976 2009-09-06  Bruno Haible  <bruno@clisp.org>
15977
15978         Set errno to ENOSYS when a function is entirely unsupported.
15979         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15980         EOPNOTSUPP.
15981         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15982         * modules/chown (Depends-on): Remove errno.
15983
15984 2009-09-06  Bruno Haible  <bruno@clisp.org>
15985
15986         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15987
15988 2009-09-06  Bruno Haible  <bruno@clisp.org>
15989
15990         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15991
15992 2009-09-06  Ben Pfaff  <blp@gnu.org>
15993             Bruno Haible  <bruno@clisp.org>
15994
15995         Work around a glibc bug in strtok_r.
15996         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
15997         Undefine if UNDEFINE_STRTOK_R is set.
15998         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
15999         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16000         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
16001         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
16002         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
16003         UNDEFINE_STRTOK_R.
16004         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
16005
16006 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16007
16008         exclude: minor fix
16009         * lib/exclude.c: Include wctype.h
16010
16011 2009-09-06  Akim Demaille  <demaille@gostai.com>
16012
16013         bootstrap: improve error message
16014         * build-aux/bootstrap (find_tool): Upon failure, report the list
16015         of candidates.
16016         Honor the initial value of the envvar.
16017
16018 2009-09-05  Eric Blake  <ebb9@byu.net>
16019
16020         symlinkat: new module
16021         * modules/symlinkat: New file.
16022         * lib/symlinkat.c: Likewise.
16023         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16025         * modules/unistd (Makefile.am): Use them.
16026         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
16027         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
16028         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
16029         * MODULES.html.sh (File system functions): Mention module.
16030         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16031         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16032         * modules/symlinkat-tests: New test.
16033         * tests/test-symlinkat.c: Likewise.
16034
16035         test-openat-safer: add more checks
16036         * tests/test-openat-safer.c (main): Check more code paths.
16037
16038 2009-09-05  Jim Meyering  <meyering@redhat.com>
16039
16040         syntax-check: detect unnecessary inclusion of openat.h
16041         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
16042
16043 2009-09-05  Bruno Haible  <bruno@clisp.org>
16044
16045         Support towlower, towupper.
16046         * doc/posix-functions/towlower.texi: Mention module wctype.
16047         * doc/posix-functions/towupper.texi: Likewise.
16048         * lib/wctype.in.h (towlower, towupper): New functions.
16049         * tests/test-wctype.c: Include stdio.h, stdlib.h.
16050         (ASSERT): New macro.
16051         (e): New variable.
16052         (main): Test also towlower, towupper. Test WEOF argument.
16053         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16054
16055 2009-09-05  Bruno Haible  <bruno@clisp.org>
16056
16057         Fix conversion behaviour when the input is invalid.
16058         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
16059         mark occurring in first pass of indirect conversion.
16060         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
16061         input.
16062         Found by clang's static analyzer.
16063
16064 2009-09-05  Bruno Haible  <bruno@clisp.org>
16065
16066         * tests/test-striconveh.c (main): Test indirect conversion on platforms
16067         where direct conversion is possible.
16068
16069 2009-09-04  Eric Blake  <ebb9@byu.net>
16070
16071         openat: fail with ENOENT on empty name
16072         * lib/openat-proc.c (openat_proc_name): Special-case the empty
16073         buffer.
16074
16075         link-follow: fix logic bug in prior patch
16076         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
16077         reversed sense of yes and no in prior patch.  Avoid confusing
16078         compilation failure with desired semantics.
16079
16080         link-follow: accomodate mingw and cross-compilation
16081         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
16082         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
16083         cross-compilation results to -1, to make linkat easier to
16084         implement when cross-compiling.  Trivially support mingw.
16085         * modules/link-follow (configure.ac): Call new name.
16086         * NEWS: Mention this.
16087
16088 2009-09-03  Eric Blake  <ebb9@byu.net>
16089
16090         faccessat: compile replacement
16091         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
16092         needed.
16093
16094         fts: fix compilation error
16095         * lib/fts.c (includes): Re-add "openat.h", for
16096         openat_needs_fchdir.
16097
16098         faccessat: new module
16099         * modules/faccessat: New file.
16100         * lib/faccessat.c: Likewise.
16101         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16103         * modules/unistd (Makefile.am): Use it.
16104         * lib/unistd.in.h (faccessat): Declare it.
16105         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
16106         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
16107         * MODULES.html.sh (File system functions): Mention it.
16108         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
16109         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16110
16111         euidaccess: prefer POSIX over non-standard implementation
16112         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
16113         * lib/euidaccess.c (euidaccess): Use it if available.
16114
16115         openat: make template easier to use
16116         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
16117         AT_FUNC_F2 to be undefined.
16118         (VALIDATE_FLAG): New macro; use it to reject bad flags.
16119         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
16120         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
16121         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
16122         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
16123         Likewise.
16124         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
16125         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
16126         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
16127         Likewise.
16128
16129         openat: declare in POSIX headers
16130         * NEWS: Mention this.
16131         * modules/openat (configure.ac): Declare witnesses.
16132         (Depends-on): Add fcntl-h, sys_stat, unistd.
16133         (Include): Mention correct headers.
16134         * modules/fcntl-h (Depends-on): Add link-warning.
16135         (Files): Add openat.m4.
16136         (Makefile.am): Substitute witnesses.
16137         * modules/sys_stat (Files, Makefile.am): Likewise.
16138         * modules/unistd (Files, Makefile.am): Likewise.
16139         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
16140         (gl_OPENAT_DEFAULTS): New macro.
16141         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
16142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
16143         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
16144         (SYS_STAT_H): Remove unused variable.
16145         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
16146         * lib/fcntl--.h (includes): Remove unneeded header.
16147         * lib/openat-safer.c (includes): Likewise.
16148         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
16149         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
16150         appropriate headers.
16151         (__OPENAT_PREFIX): Delete.
16152         * lib/fcntl.in.h (openat): Provide declaration.
16153         (AT_FDCWD): Fix Solaris bug.
16154         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16155         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16156         * lib/fchmodat.c (includes):  Adjust to find declaration.
16157         * lib/fchownat.c (includes): Likewise.
16158         * lib/mkdirat.c (includes): Likewise.
16159         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16160         still visible.
16161
16162 2009-09-02  Eric Blake  <ebb9@byu.net>
16163
16164         errno: use consistently
16165         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16166         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16167         * lib/canonicalize.c (ELOOP): Likewise.
16168         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16169         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16170         * lib/lchown.c (EOPNOTSUPP): Likewise.
16171         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16172         * lib/savewd.c (ESTALE): Likewise.
16173         * lib/settime.c (ENOSYS): Likewise.
16174         * lib/utimens.c (ENOSYS): Likewise.
16175         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16176         * lib/chdir-safer.c (ELOOP): Likewise.
16177         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16178         * modules/c-stack (Depends-on): Add errno.
16179         * modules/canonicalize (Depends-on): Likewise.
16180         * modules/chdir-safer (Depends-on): Likewise.
16181         * modules/fdopendir (Depends-on): Likewise.
16182         * modules/inet_ntop (Depends-on): Likewise.
16183         * modules/inet_pton (Depends-on): Likewise.
16184         * modules/lchown (Depends-on): Likewise.
16185         * modules/openat (Depends-on): Likewise.
16186         * modules/savewd (Depends-on): Likewise.
16187         * modules/settime (Depends-on): Likewise.
16188         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16189
16190         fts: avoid leaking fds
16191         * modules/fts (Depends-on): Add cloexec.
16192         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16193         flag.
16194
16195         fts: make directory fds more robust
16196         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16197         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16198
16199         backupfile, chdir-long, fts, savedir: make safer
16200         * lib/backupfile.c (includes): Use "dirent--.h", since
16201         numbered_backup can write to stderr during readdir.
16202         * lib/savedir.c (includes): Likewise.
16203         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16204         emulation can write to stderr on failure.
16205         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16206         * lib/getcwd.c: Document why opendir_safer is unused.
16207         * lib/glob.c: Likewise.
16208         * lib/scandir.c: Likewise.
16209         * lib/openat-proc.c: Likewise, for open_safer.
16210         * modules/backupfile (Depends-on): Add dirent-safer.
16211         * modules/savedir (Depends-on): Likewise.
16212         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16213         * modules/chdir-long (Depends-on): Add openat-safer.
16214
16215         openat-safer: new module
16216         * modules/openat-safer: New file.
16217         * lib/openat-safer.c: Likewise.
16218         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16219         * lib/fcntl-safer.h (openat_safer): Declare.
16220         * lib/fcntl--.h (openat): Override.
16221         * MODULES.html.sh (File descriptor based I/O): Mention it.
16222         * lib/openat.h: Add double-inclusion guards.
16223         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16224         "fcntl--.h", so we can implement openat.
16225         * modules/openat-safer-tests: New test.
16226         * tests/test-openat-safer.c: New file.
16227
16228         dirent-safer: new module
16229         * modules/dirent-safer: New file.
16230         * lib/dirent--.h: Likewise.
16231         * lib/dirent-safer.h: Likewise.
16232         * lib/opendir-safer.c: Likewise.
16233         * m4/dirent-safer.m4: Likewise.
16234         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16235         * modules/dirent-safer-tests: New test.
16236         * tests/test-dirent-safer.c: New file.
16237         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16238
16239         fdopendir: optimize on mingw
16240         * lib/unistd.in.h (_gl_directory_name): New prototype.
16241         * lib/fchdir.c (_gl_directory_name): Implement it.
16242         (fchdir): Use it to simplify implementation.
16243         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16244         fchdir, when available, to avoid calling [f]chdir().
16245
16246         fdopendir: split into its own module
16247         * lib/openat.c (fdopendir): Move...
16248         * lib/fdopendir.c: ...into new file.
16249         * modules/fdopendir: New module.
16250         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16251         * modules/openat (Depends-on): Add fdopendir.
16252         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16253         fdopendir here.
16254         * modules/savedir (Depends-on): Only need fdopendir, not full
16255         openat.
16256         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16257         * lib/openat.h (fdopendir): Drop prototype.
16258         * lib/dirent.in.h (fdopendir): Provide prototype.
16259         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16260         * modules/dirent (Makefile.am): Substitute them.
16261         * MODULES.html.sh (File system functions): Mention it.
16262         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16263         * modules/fdopendir-tests: New file.
16264         * tests/test-fdopendir.c: Likewise.
16265
16266         fchdir: use more consistent macro convention
16267         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16268         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16269         REPLACE_FCHDIR, rather than relying on config.h macros.
16270         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16271         inside a single make-time REPLACE_FCHDIR block, rather than using
16272         the config.h FCHDIR_REPLACEMENT.
16273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16274         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16275         Manage fstat replacement.
16276         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16277         REPLACE_FCHDIR.
16278         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16279         (Makefile.am): Substitute REPLACE_FCHDIR.
16280         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16281         FCHDIR_REPLACEMENT.
16282         * lib/dup-safer.c (dup_safer): Likewise.
16283         * lib/dup2.c (rpl_dup2): Likewise.
16284         * lib/dup3.c (rpl_dup3): Likewise.
16285         * lib/open.c (rpl_open): Likewise.
16286
16287         fchdir: simplify error handling, and support dup3
16288         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16289         stdbool, malloc-posix, realloc-posix.
16290         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16291         (ensure_dirs_slot): Return false on allocation failure.
16292         (rpl_dup2): Delete.
16293         (_gl_register_dup): New function.
16294         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16295         (_gl_register_fd): Close fd on allocation failure.
16296         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16297         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16298         prototype.
16299         (rpl_dup2_fchdir): Delete prototype.
16300         * lib/open.c (open): Update caller.
16301         * lib/dup2.c (dup2): Track fchdir metadata.
16302         * lib/dup3.c (dup3): Likewise.
16303         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16305
16306 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16307
16308         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16309         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16310         don't pass arguments to AC_OUTPUT.
16311
16312 2009-09-02  Bruno Haible  <bruno@clisp.org>
16313
16314         * modules/mkdtemp (License): Relicense under LGPLv2+.
16315         Reported by Paolo Bonzini.
16316
16317 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16318
16319         Replace uses of obsolete autoconf macros in Jim's modules.
16320         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16321         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16322         can evoke a warning from autoconf when run with -Wobsolete
16323         enabled.  They were declared obsolete for good reasons (see
16324         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16325         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16326         should not continue using the deprecated macros.
16327         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16328         obsolete Autoconf macros with modern counterparts.
16329         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16330         * m4/dos.m4 (gl_AC_DOS): Likewise.
16331         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16332         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16333         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16334         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16335         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16336         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16337         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16338         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16339         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16340         Likewise.
16341         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16342         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16343         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16344         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16345         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16346         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16347
16348 2009-09-01  Eric Blake  <ebb9@byu.net>
16349
16350         fchdir: fix off-by-one bug in previous patch
16351         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16352         (_gl_unregister_fd): Delete useless if.
16353
16354 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16355
16356         maint.mk: sort the list of syntax-check rules
16357         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16358         easier to get a sense of progress when the rules are run sequentially
16359         and take a long time.
16360
16361 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16362
16363         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16364         * modules/netinet_in: Likewise.
16365         * modules/sys_file: Likewise.
16366         * modules/sys_ioctl: Likewise.
16367         * modules/sys_select: Likewise.
16368         * modules/sys_socket: Likewise.
16369         * modules/sys_stat: Likewise.
16370         * modules/sys_time: Likewise.
16371         * modules/sys_times: Likewise.
16372         * modules/sys_utsname: Likewise.
16373         * modules/sys_wait: Likewise.
16374
16375 2009-09-01  Jim Meyering  <meyering@redhat.com>
16376
16377         fts: help ensure that return values are not ignored
16378         * lib/fts_.h (__GNUC_PREREQ): Define.
16379         (__attribute_warn_unused_result__): Define.
16380         (fts_children, fts_close, fts_open, fts_read): Declare with
16381         __attribute_warn_unused_result__.
16382
16383         fts: fts_close now fails also when closing a dir file descriptor fails
16384         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16385         and propagate to caller, along with errno.
16386
16387         announce-gen: correct formatting in --help output
16388         * build-aux/announce-gen (usage): Move the one-line description in
16389         --help output "up", to where it belongs, just after Usage:.
16390
16391 2009-08-31  Eric Blake  <ebb9@byu.net>
16392
16393         fchdir: port to mingw
16394         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16395         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16396         opened, then use a substitute.
16397         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16398         replacement.
16399         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16400         (_gl_register_fd): No need to check stat if open already filters
16401         all directories.
16402         (fchdir): Fix error condition to match POSIX.
16403         * modules/fchdir (Depends-on): Add sys_stat.
16404         * doc/posix-functions/open.texi (open): Document the limitation.
16405         * modules/fchdir-tests: New file.
16406         * tests/test-fchdir.c: Likewise.
16407
16408         canonicalize: allow cross-testing from cygwin to mingw
16409         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16410         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16411         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16412         Likewise.
16413         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16414         target does not support symlinks.
16415         * tests/test-canonicalize-lgpl.sh: Likewise.
16416
16417         chown: avoid compilation warning on mingw
16418         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16419         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16420         mingw.
16421         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16422         * modules/chown (Depends-on): Add errno.
16423
16424 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16425
16426         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16427         command.
16428
16429 2009-08-31  Jim Meyering  <meyering@redhat.com>
16430
16431         canonicalize: remove useless initialization
16432         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16433         initialization of local, "end".
16434
16435 2009-08-30  Bruno Haible  <bruno@clisp.org>
16436
16437         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16438         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16439         ENOSYS.
16440
16441 2009-08-30  Bruno Haible  <bruno@clisp.org>
16442
16443         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16444         /usr/xpg4/bin/tr when it exists.
16445         * tests/test-pipe-filter-gi1.sh: Likewise.
16446
16447 2009-08-30  Bruno Haible  <bruno@clisp.org>
16448
16449         Work around deficient /usr/bin/id program on Solaris.
16450         * tests/test-file-has-acl.sh (ID): New variable.
16451         * tests/test-set-mode-acl.sh (ID): Likewise.
16452         * tests/test-copy-acl.sh (ID): Likewise.
16453         * tests/test-copy-file.sh (ID): Likewise.
16454
16455 2009-08-30  Bruno Haible  <bruno@clisp.org>
16456
16457         New module 'xstriconveh'.
16458         * lib/xstriconveh.h: New file.
16459         * lib/xstriconveh.c: New file.
16460         * modules/xstriconveh: New file.
16461
16462 2009-08-30  Bruno Haible  <bruno@clisp.org>
16463
16464         Make it easier to use mem_cd_iconveh.
16465         * lib/striconveh.h (iconveh_t): New type.
16466         (iconveh_open, iconveh_close): New declarations.
16467         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16468         with a single 'const iconveh_t *' argument.
16469         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16470         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16471         with a single 'const iconveh_t *' argument.
16472         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16473         * tests/test-striconveh.c (main): Update.
16474         * NEWS: Mention the change.
16475
16476 2009-08-30  Bruno Haible  <bruno@clisp.org>
16477
16478         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16479         problem.
16480
16481 2009-08-30  Bruno Haible  <bruno@clisp.org>
16482
16483         Work around iconv_open problem on Solaris.
16484         * lib/iconv_open-solaris.gperf: New file.
16485         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16486         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16487         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16488         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16489         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16490         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16491
16492 2009-08-29  Jim Meyering  <meyering@redhat.com>
16493
16494         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16495         * top/maint.mk (cvs-check): Remove target; it was just an alias
16496         to the better-named vc-diff-check.
16497         (maintainer-distcheck): Remove rule.  It was used only from
16498         the (alpha/beta/major) target, and all of its commands but one
16499         were coreutils-specific.
16500         (vc-dist): Remove rule.
16501         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16502         Run vc-diff-check, not vc-dist.
16503         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16504
16505 2009-08-27  Bruno Haible  <bruno@clisp.org>
16506
16507         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16508         of 0.
16509
16510 2009-08-27  Bruno Haible  <bruno@clisp.org>
16511
16512         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16513         compilers.
16514         * doc/func.texi: Document the SunPRO C bug.
16515
16516 2009-08-27  Bruno Haible  <bruno@clisp.org>
16517
16518         Fix link error on Solaris.
16519         * tests/test-parse-duration.c (xstrdup): Remove function.
16520
16521 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16522
16523         ignore-value: handle pointer types, too
16524         * lib/ignore-value.h (__attribute__): Remove definition.
16525         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16526         of a more concise and more-often effective "(void) i" statement.
16527         (ignore_ptr): New function to suppress warnings from functions that
16528         return pointers, and to make it explicit that one function doesn't
16529         handle all cases.
16530
16531 2009-08-25  Bruno Haible  <bruno@clisp.org>
16532
16533         dup2: work around a Linux bug.
16534         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16535         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16536         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16537         Reported by Simon Josefsson.
16538
16539 2009-08-25  Jim Meyering  <meyering@redhat.com>
16540
16541         libguestfs uses gnulib
16542         * users.txt: Add libguestfs.
16543
16544 2009-08-24  Eric Blake  <ebb9@byu.net>
16545
16546         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16547         * lib/pipe2.c (includes): Add binary-io.h.
16548         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16549
16550 2009-08-24  Bruno Haible  <bruno@clisp.org>
16551
16552         Tolerate declared but missing accept4 syscall.
16553         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16554         available.
16555         * lib/sys_socket.in.h (accept4): If the function is already present,
16556         override it.
16557         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16558         * modules/accept4 (Makefile.am): Compile accept4.c always.
16559         Reported by Paolo Bonzini and Eric Blake.
16560
16561 2009-08-23  Bruno Haible  <bruno@clisp.org>
16562
16563         New module 'accept4'.
16564         * lib/sys_socket.in.h (accept4): New declaration.
16565         * lib/accept4.c: New file.
16566         * m4/accept4.m4: New file.
16567         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16568         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16569         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16570         HAVE_ACCEPT4.
16571         * modules/accept4: New file.
16572         * doc/glibc-functions/accept4.texi: Mention the new module.
16573
16574 2009-08-24  Jim Meyering  <meyering@redhat.com>
16575
16576         progname: also set global program_invocation_name, when possible
16577         Before this change, a libtool-enabled program that calls glibc's
16578         error function would report the program name as
16579         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16580         * modules/progname (configure.ac): Check for a declaration of
16581         program_invocation_name.
16582         * lib/progname.c:  Include <errno.h>.
16583         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16584         Set program_invocation_name.
16585
16586 2009-08-23  Bruno Haible  <bruno@clisp.org>
16587
16588         * lib/dup3.c: Include <string.h>.
16589
16590 2009-08-23  Bruno Haible  <bruno@clisp.org>
16591
16592         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16593         * lib/pipe2.c (pipe2): Likewise.
16594         Suggested by Eric Blake.
16595
16596 2009-08-23  Bruno Haible  <bruno@clisp.org>
16597
16598         Tolerate declared but missing dup3 syscall.
16599         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16600         * lib/unistd.in.h (dup3): If the function is already present,
16601         override it.
16602         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16603         * modules/dup3 (Makefile.am): Compile dup3.c always.
16604         Reported by Paolo Bonzini.
16605
16606 2009-08-23  Bruno Haible  <bruno@clisp.org>
16607
16608         Tolerate declared but missing pipe2 syscall.
16609         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16610         available.
16611         * lib/unistd.in.h (pipe2): If the function is already present,
16612         override it.
16613         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16614         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16615         Reported by Paolo Bonzini.
16616
16617 2009-08-23  Bruno Haible  <bruno@clisp.org>
16618
16619         * lib/pipe2.c (pipe2): Move #ifs inside function.
16620
16621 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16622
16623         quotearg: document limitations of quote_these_too
16624         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16625         those limitations are created.
16626         * lib/quotearg.h (set_char_quoting): Document that digits and
16627         letters that are special after backslash are not permitted.
16628         (quotearg_char): Cross-reference set_char_quoting documentation.
16629
16630 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16631
16632         quotearg: implement custom_quoting_style
16633         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16634         right_quote fields.
16635         (set_custom_quoting): New public function.
16636         (quotearg_buffer_restyled): Add left_quote and right_quote
16637         arguments, handle them very much like locale quoting, and update
16638         all uses.
16639         (quotearg_n_custom): New public function.
16640         (quotearg_n_custom_mem): New public function.
16641         (quotearg_custom): New public function.
16642         (quotearg_custom_mem): New public function.
16643         * lib/quotearg.h: Prototype and document new public functions.
16644         (enum quoting_style): For escape_quoting_style and
16645         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16646         ignored even though they're otherwise like c_quoting_style.
16647         Add custom_quoting_style member and document with comparison to
16648         clocale_quoting_style.
16649         * tests/test-quotearg.c (custom_quotes): New array.
16650         (custom_results): New array.
16651         (main): Extend to test custom quoting.
16652
16653 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16654
16655         quotearg: fix right quote escaping when it's in quote_these_too
16656         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16657         quote, be sure to prepend only one backslash.
16658         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16659         (main): Test it.
16660
16661 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16662
16663         quotearg-tests: test escaping of embedded locale quotes
16664         * tests/test-quotearg.c (struct result_strings): Add member for
16665         new input.
16666         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16667         (inputs): Add new input.
16668         (results_g): Add expected results.
16669         (flag_results): Likewise.
16670         (locale_results): Likewise.
16671         (compare_strings): Check those.
16672
16673 2009-08-23  Bruno Haible  <bruno@clisp.org>
16674
16675         Tests for module 'dup3'.
16676         * modules/dup3-tests: New file.
16677         * tests/test-dup3.c: New file.
16678
16679         New module 'dup3'.
16680         * lib/unistd.in.h (dup3): New declaration.
16681         * lib/dup3.c: New file.
16682         * m4/dup3.m4: New file.
16683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16684         HAVE_DUP3.
16685         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16686         * modules/dup3: New file.
16687         * doc/glibc-functions/dup3.texi: Mention the new module.
16688
16689 2009-08-23  Bruno Haible  <bruno@clisp.org>
16690
16691         Tweak the dup2 test.
16692         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16693         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16694         the test file is still empty. Fix argument order of lseek.
16695
16696 2009-08-23  Bruno Haible  <bruno@clisp.org>
16697
16698         Avoid test link errors when the modules getopt-gnu, gettext are used.
16699         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16700         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16701
16702 2009-08-23  Bruno Haible  <bruno@clisp.org>
16703
16704         Fix getdtablesize() on mingw.
16705         * lib/getdtablesize.c (getdtablesize): Implement differently.
16706         * lib/unistd.in.h (getdtablesize): Improve comment.
16707
16708 2009-08-23  Bruno Haible  <bruno@clisp.org>
16709
16710         New module 'mkostemp'.
16711         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16712         * lib/stdlib.in.h (mksotemp): New declaration.
16713         * lib/mkostemp.c: New file, from glibc with modifications.
16714         * lib/tempname.h (GT_FILE): Remove outdated comment.
16715         (gen_tempname): Add flags argument.
16716         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16717         (__GT_FILE): Map to 1.
16718         (small_open, large_open): Remove macros.
16719         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16720         * lib/mkstemp.c (mkstemp): Update.
16721         * lib/mkdtemp.c (mkdtemp): Likewise.
16722         * m4/mkostemp.m4: New file.
16723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16724         HAVE_MKOSTEMP.
16725         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16726         HAVE_MKOSTEMP.
16727         * modules/mkostemp: New file, based on modules/mkstemp.
16728         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16729         * NEWS: Mention the change.
16730
16731 2009-08-23  Bruno Haible  <bruno@clisp.org>
16732
16733         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16734         Reported by Eric Blake.
16735
16736 2009-08-23  Bruno Haible  <bruno@clisp.org>
16737
16738         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16739         Reported by Eric Blake.
16740
16741 2009-08-23  Bruno Haible  <bruno@clisp.org>
16742
16743         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16744         * modules/pipe2 (Depends-on): Likewise.
16745
16746 2009-08-23  Eric Blake  <ebb9@byu.net>
16747
16748         fcntl-h: add O_TTY_INIT support
16749         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16750         * tests/test-fcntl-h.c (o): Test it.
16751         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16752
16753         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16754         * modules/fcntl: Move <fcntl.h> header replacement...
16755         * modules/fcntl-h: ...to new name, so as not to collide with
16756         like-named function.
16757         * tests/test-fcntl.c: Rename...
16758         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16759         * modules/fcntl-tests: Rename...
16760         * modules/fcntl-h-tests: ...to this.  Update test file name.
16761         * modules/chdir-long (Depends-on): Update clients.
16762         * modules/chdir-safer (Depends-on): Likewise.
16763         * modules/fcntl-safer (Depends-on): Likewise.
16764         * modules/fts (Depends-on): Likewise.
16765         * modules/mkancesdirs (Depends-on): Likewise.
16766         * modules/mkdir-p (Depends-on): Likewise.
16767         * modules/open (Depends-on): Likewise.
16768         * modules/savewd (Depends-on): Likewise.
16769         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16770         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16771
16772 2009-08-22  Bruno Haible  <bruno@clisp.org>
16773
16774         * modules/binary-io (License): Relicense under LGPL.
16775         * modules/pipe2 (License): Likewise.
16776
16777 2009-08-22  Bruno Haible  <bruno@clisp.org>
16778
16779         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16780         return value.
16781         * lib/pipe-filter-gi.c (filter_init): Likewise.
16782         Reported by Eric Blake.
16783
16784 2009-08-22  Bruno Haible  <bruno@clisp.org>
16785
16786         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16787         * modules/pipe (Depends-on): Add pipe2.
16788
16789 2009-08-22  Bruno Haible  <bruno@clisp.org>
16790
16791         Tests for module 'pipe2'.
16792         * modules/pipe2-tests: New file.
16793         * tests/test-pipe2.c: New file.
16794
16795         New module 'pipe2'.
16796         * lib/unistd.in.h (pipe2): New declaration.
16797         * lib/pipe2.c: New file.
16798         * m4/pipe2.m4: New file.
16799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16800         HAVE_PIPE2.
16801         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16802         * modules/pipe2: New file.
16803         * doc/glibc-functions/pipe2.texi: Mention the new module.
16804
16805 2009-08-22  Bruno Haible  <bruno@clisp.org>
16806
16807         Reference some new glibc functions.
16808         * doc/glibc-functions/accept4.texi: New file.
16809         * doc/glibc-functions/dup3.texi: New file.
16810         * doc/glibc-functions/mkostemp.texi: New file.
16811         * doc/glibc-functions/pipe2.texi: New file.
16812         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16813         (Glibc sys/socket.h): Refer to accept4.
16814         (Glibc unistd.h): Refer to dup3, pipe2.
16815         Reported by Eric Blake.
16816
16817 2009-08-22  Jim Meyering  <meyering@redhat.com>
16818             Bruno Haible  <bruno@clisp.org>
16819
16820         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16821         This makes it so packages using automake-1.11's silent-rules option
16822         can print e.g., a single "GEN    configmake.h" line, rather than
16823         the 30+ statements that perform the job.  If you want to see the
16824         actual commands, you can still run "make V=1".
16825         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16826         so that make output is abbreviated when those variables are defined
16827         appropriately.
16828         * modules/argz: Likewise.
16829         * modules/arpa_inet: Likewise.
16830         * modules/byteswap: Likewise.
16831         * modules/configmake: Likewise.
16832         * modules/dirent: Likewise.
16833         * modules/errno: Likewise.
16834         * modules/fcntl: Likewise.
16835         * modules/float: Likewise.
16836         * modules/fnmatch: Likewise.
16837         * modules/getopt-posix: Likewise.
16838         * modules/glob: Likewise.
16839         * modules/iconv_open: Likewise.
16840         * modules/inttypes: Likewise.
16841         * modules/localcharset: Likewise.
16842         * modules/locale: Likewise.
16843         * modules/math: Likewise.
16844         * modules/netdb: Likewise.
16845         * modules/netinet_in: Likewise.
16846         * modules/poll: Likewise.
16847         * modules/posix_spawnp-tests: Likewise.
16848         * modules/sched: Likewise.
16849         * modules/search: Likewise.
16850         * modules/selinux-h: Likewise.
16851         * modules/signal: Likewise.
16852         * modules/spawn: Likewise.
16853         * modules/stdarg: Likewise.
16854         * modules/stdbool: Likewise.
16855         * modules/stddef: Likewise.
16856         * modules/stdint: Likewise.
16857         * modules/stdio: Likewise.
16858         * modules/stdlib: Likewise.
16859         * modules/string: Likewise.
16860         * modules/strings: Likewise.
16861         * modules/sys_file: Likewise.
16862         * modules/sys_ioctl: Likewise.
16863         * modules/sys_select: Likewise.
16864         * modules/sys_socket: Likewise.
16865         * modules/sys_stat: Likewise.
16866         * modules/sys_time: Likewise.
16867         * modules/sys_times: Likewise.
16868         * modules/sys_utsname: Likewise.
16869         * modules/sys_wait: Likewise.
16870         * modules/sysexits: Likewise.
16871         * modules/time: Likewise.
16872         * modules/unistd: Likewise.
16873         * modules/wchar: Likewise.
16874         * modules/wctype: Likewise.
16875
16876 2009-08-22  Jim Meyering  <meyering@redhat.com>
16877
16878         announce-gen: detect write failure
16879         * build-aux/announce-gen: Add Coda at end.
16880         Remove equivalent-but-more-verbose block at top.
16881
16882 2009-08-19  Akim Demaille  <demaille@gostai.com>
16883
16884         bootstrap: --help to stdout.
16885         * bootstrap (usage): Don't send --help to stderr.
16886         Use a here doc instead of a long string.
16887
16888 2009-08-21  Eric Blake  <ebb9@byu.net>
16889
16890         test-popen-safer: split from test-popen
16891         * tests/test-popen.c (main): Move...
16892         * tests/test-popen.h: ...into new file.
16893         * tests/test-popen-safer2.c: New file.
16894         * modules/popen-tests (Files): Add test-popen.h.
16895         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16896         Suggested by Bruno Haible.
16897
16898         test-fcntl-safer: split from test-open
16899         * tests/test-open.c (main): Move...
16900         * tests/test-open.h: ...into new file.
16901         * tests/test-fcntl-safer.c: New file.
16902         * modules/open-tests (Files): Add test-open.h.
16903         * modules/fcntl-safer-tests: New file.
16904         Suggested by Bruno Haible.
16905
16906         test-fopen-safer: split from test-fopen
16907         * tests/test-fopen.c (main): Move...
16908         * tests/test-fopen.h: ...into new file.
16909         * tests/test-fopen-safer.c: New file.
16910         * modules/fopen-tests (Files): Add test-fopen.h.
16911         * modules/fopen-safer-tests: New file.
16912         Suggested by Bruno Haible.
16913
16914 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16915
16916         popen-safer: test O_CLOEXEC at run-time.
16917         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16918
16919 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16920
16921         fcntl: move more flags to the header
16922         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16923         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16924         * lib/fcntl.in.h: Do both things here.
16925
16926 2009-08-21  Jim Meyering  <meyering@redhat.com>
16927
16928         consistently remove $@-t before redirecting to it
16929         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16930         * modules/alloca-opt: Likewise.
16931         * modules/byteswap: Likewise.
16932         * modules/fnmatch: Likewise.
16933         * modules/getopt-posix: Likewise.
16934         * modules/glob: Likewise.
16935         * modules/poll: Likewise.
16936         * modules/posix_spawnp-tests: Likewise.
16937         * modules/sys_socket: Likewise.
16938         * modules/sysexits: Likewise.
16939
16940 2009-08-21  Eric Blake  <ebb9@byu.net>
16941
16942         popen: simplify access to original popen
16943         * lib/popen.c (rpl_popen): No need to worry about popen being a
16944         macro.
16945         Reported by Bruno Haible.
16946
16947 2009-08-20  Eric Blake  <ebb9@byu.net>
16948
16949         build: avoid some compiler warnings
16950         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16951         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16952         type.
16953         (new_exclude_segment, excluded_file_pattern_p)
16954         (excluded_file_name_p): Reduce scope.
16955         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16956         old-style declaration.
16957
16958 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16959
16960         * tests/test-exclude1.sh: Handle Windows EOL.
16961         * tests/test-exclude2.sh: Likewise.
16962         * tests/test-exclude3.sh: Likewise.
16963         * tests/test-exclude4.sh: Likewise.
16964         * tests/test-exclude5.sh: Likewise.
16965         * tests/test-exclude6.sh: Likewise.
16966         * tests/test-exclude7.sh: Likewise.
16967
16968 2009-08-19  Akim Demaille  <demaille@gostai.com>
16969
16970         bootstrap: find sha1sum when named gsha1sum.
16971         * bootstrap (find_tool): New.
16972         ($SHA1SUM): New.
16973         Use it.
16974
16975 2009-08-20  Jim Meyering  <meyering@redhat.com>
16976
16977         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16978         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16979         expression that converts "." in a file name to "\." in the resulting
16980         regexp.  Start with a dummy statement, so that prior shell variable
16981         definitions are expanded portably.  Reported by Simon Josefsson.
16982
16983 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16984
16985         Fix polling for writeability of a screen buffer.
16986         * lib/poll.c: Distinguish input and screen buffers for the
16987         Win32 implementation.
16988         * lib/select.c: Likewise.
16989
16990 2009-08-19  Eric Blake  <ebb9@byu.net>
16991
16992         popen-safer: prevent popen from clobbering std descriptors
16993         * modules/popen-safer: New file.
16994         * lib/popen-safer.c: Likewise.
16995         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
16996         * lib/stdio--.h (popen): Provide override.
16997         * lib/stdio-safer.h (popen_safer): Provide declaration.
16998         * tests/test-popen.c (includes): Partially test this.
16999         * modules/popen-safer-tests: New file, for more tests.
17000         * tests/test-popen-safer.c: Likewise.
17001         * MODULES.html.sh (file stream based Input/Output): Mention it.
17002
17003         tests: test some of the *-safer modules
17004         * modules/fopen-safer (Depends-on): Add fopen.
17005         * modules/fcntl-safer (Depends-on): Add fcntl.
17006         * modules/stdlib-safer (Depends-on): Add stdlib.
17007         (configure.ac): Set indicator.
17008         * modules/unistd-safer (configure.ac): Likewise.
17009         * modules/tmpfile-safer (configure.ac): Likewise.
17010         (Depends-on): Add tmpfile.
17011         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
17012         active.
17013         * tests/test-fopen.c (includes): Test safer versions when they are
17014         in use.
17015         * tests/test-open.c (includes): Likewise.
17016
17017         popen: fix cygwin 1.5 bug when stdin closed
17018         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
17019         * modules/popen: New file.
17020         * modules/popen-tests: Likewise.
17021         * tests/test-popen.c: Likewise.
17022         * m4/popen.m4: Likewise.
17023         * lib/popen.c: Likewise.
17024         * lib/stdio.in.h (popen): New declaration.
17025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
17026         * modules/stdio (Makefile.am): Likewise.
17027         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
17028
17029 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
17030
17031         maint.mk: give full control over update-copyright exclusions
17032         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
17033         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
17034         (update-copyright): Don't force inclusion of top-level
17035         ChangeLog.  Don't force exclusion of all COPYING files, but make
17036         them the default exclusion instead.
17037
17038 2009-08-16  Bruno Haible  <bruno@clisp.org>
17039
17040         Fix test failures on Solaris 10.
17041         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
17042         tests when Solaris iconv() is used.
17043         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17044         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17045         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17046         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17047         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17048
17049 2009-08-16  Bruno Haible  <bruno@clisp.org>
17050
17051         Fix test failures on Solaris 10.
17052         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
17053         'tr' program and pass it as first argument.
17054         * tests/test-pipe-filter-gi1.sh: Likewise.
17055         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
17056         program as first argument.
17057         * tests/test-pipe-filter-gi1.c (main): Likewise.
17058
17059 2009-08-16  Eric Blake  <ebb9@byu.net>
17060
17061         fpurge: fix previous commits
17062         * modules/fpurge (Makefile.am): Make replacement conditional,
17063         partially reverting 2007-04-29 change; missed in previous
17064         attempt.
17065         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
17066         is missing.
17067
17068 2009-08-16  Bruno Haible  <bruno@clisp.org>
17069
17070         Clarify fpurge's effect on the file position.
17071         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
17072         * tests/test-fpurge.c (main): Make a second pass for checking the file
17073         position.
17074
17075 2009-08-16  Bruno Haible  <bruno@clisp.org>
17076
17077         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
17078         declaration of fpurge is missing.
17079         * tests/test-fpurge.c (main): Check that the file has not more contents
17080         than expected. Close the file before removing it.
17081
17082 2009-08-15  Eric Blake  <ebb9@byu.net>
17083
17084         fpurge: don't wrap working cygwin implementation
17085         * lib/fpurge.c (fpurge): Fix comment typo.
17086         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
17087         1.7 to avoid replacement.
17088         * tests/test-fpurge.c (main): Enhance test.
17089
17090 2009-08-15  Eric Blake  <ebb9@byu.net>
17091         and Jim Meyering  <meyering@redhat.com>
17092
17093         test-update-copyright: skip if perl is insufficient
17094         * tests/test-update-copyright.sh: Failure to run maintainer tool
17095         should not cause testsuite failure on cygwin 1.5.
17096
17097 2009-08-14  Eric Blake  <ebb9@byu.net>
17098
17099         doc: mention more functions added in cygwin 1.7.0
17100         * doc/posix-headers/limits.texi (limits.h): Update for recent
17101         cygwin additions.
17102         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
17103         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17104         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
17105         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
17106         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
17107
17108 2009-08-14  Eric Blake  <ebb9@byu.net>
17109
17110         maint.mk: simplify update-copyright rule
17111         * top/maint.mk (update-copyright-local): Delete, and document how
17112         to do it in cfg.mk instead.
17113         (update-copyright-exclude-regexp): Delete, and document how to do
17114         it in .x-update-copyright instead.
17115         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
17116         exclude ChangeLog.
17117
17118 2009-08-14  Bruno Haible  <bruno@clisp.org>
17119
17120         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
17121
17122 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17123
17124         maint.mk: support update-copyright-env
17125         * top/maint.mk (update-copyright-env): Define place-holder.
17126         (update-copyright): Expand $(update-copyright-env) before
17127         invoking update-copyright.
17128
17129 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17130
17131         update-copyright: implement forced reformatting
17132         * build-aux/update-copyright: Implement and document
17133         UPDATE_COPYRIGHT_FORCE.
17134         * tests/test-update-copyright.sh: Test it.
17135
17136 2009-08-14  Eric Blake  <ebb9@byu.net>
17137         and Bruno Haible  <bruno@clisp.org>
17138
17139         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
17140         * tests/test-locale.c: Revert previous patch related to NULL.
17141         * tests/test-stdio.c: Likewise.
17142         * tests/test-stdlib.c: Likewise.
17143         * tests/test-string.c: Likewise.
17144         * tests/test-unistd.c: Likewise.
17145         * modules/time-tests (Depends-on): Add verify.
17146         * modules/wchar-tests (Depends-on): Likewise.
17147         * tests/test-time.c: Test for NULL compliance.
17148         * tests/test-wchar.c: Likewise.
17149         * modules/locale (Depends-on): Add stddef.
17150         * modules/stdio (Depends-on): Likewise.
17151         * modules/stdlib (Depends-on): Likewise.
17152         * modules/string (Depends-on): Likewise.
17153         * modules/time (Depends-on): Likewise.
17154         * modules/unistd (Depends-on): Likewise.
17155         * modules/wchar (Depends-on): Likewise.
17156         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17157         * lib/stdlib.in.h (includes): Likewise.
17158         * lib/string.in.h (includes): Likewise.
17159         * lib/time.in.h (includes): Likewise.
17160         * lib/unistd.in.h (includes): Likewise.
17161         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17162         replaced.
17163         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17164         * m4/stddef_h.m4: New file.
17165         * modules/stddef: Likewise.
17166         * lib/stddef.in.h: Likewise.
17167         * modules/stddef-tests: Likewise.
17168         * tests/test-stddef.c: Likewise.
17169         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17170         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17171         * doc/posix-headers/locale.texi (locale.h): Likewise.
17172         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17173         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17174         * doc/posix-headers/string.texi (string.h): Likewise.
17175         * doc/posix-headers/time.texi (time.h): Likewise.
17176         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17177         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17178
17179 2009-08-14  Eric Blake  <ebb9@byu.net>
17180
17181         doc: improve git diff of texinfo files
17182         * .gitattributes: Add rule for *.texi files, with hint on how to
17183         use it.
17184         Copied from m4, and based on a report by Bruno Haible.
17185
17186 2009-08-14  Bruno Haible  <bruno@clisp.org>
17187
17188         Disable multithread support by default on Cygwin 1.5.x for real.
17189         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17190
17191 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17192
17193         update-copyright: much ado about intervals
17194         * build-aux/update-copyright: Implement and document
17195         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17196         of copyright year intervals.
17197         Also, document UPDATE_COPYRIGHT_YEAR.
17198         * tests/test-update-copyright.sh: Test it.
17199
17200         update-copyright: convert 2-digit to 4-digit years
17201         * build-aux/update-copyright: Implement and document.
17202         * tests/test-update-copyright.sh: Update.
17203
17204 2009-08-14  Jim Meyering  <meyering@redhat.com>
17205
17206         test-exclude: avoid coreutils "make check" failure
17207         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17208         just as in test-argmatch.c.
17209
17210 2009-08-13  Eric Blake  <ebb9@byu.net>
17211
17212         test-dup2: fix bad assumption
17213         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17214         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17215
17216         test-version-etc: fix CRLF portability issue
17217         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17218         recognize \r.
17219         * tests/test-argp-version-etc-1.sh: Likewise.
17220
17221         getopt: update client modules
17222         * modules/argp (Depends-on): Use getopt-gnu.
17223         * modules/git-merge-changelog (Depends-on): Likewise.
17224         * modules/long-options (Depends-on): Likewise.
17225         * modules/xstrtol (Depends-on): Likewise.
17226
17227 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17228
17229         * tests/test-version-etc.sh: Don't fail on different
17230         project/version.  Don't fail on CRLF differences.  Rewrite to use
17231         multiple -e instead of multiple sed forks, suggested by Eric Blake
17232         <ebb9@byu.net>.
17233         * tests/test-argp-version-etc-1.sh: Likewise.
17234
17235 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17236
17237         * tests/test-version-etc.sh: Don't fail on different
17238         project/version.
17239
17240 2009-08-12  Bruno Haible  <bruno@clisp.org>
17241
17242         Tests for modules 'getopt-posix', 'getopt-gnu'.
17243         * modules/getopt-posix-tests: New file.
17244         * tests/test-getopt.c: New file.
17245         * tests/test-getopt.h: New file.
17246         * tests/test-getopt_long.h: New file.
17247
17248         New modules 'getopt-posix', 'getopt-gnu'.
17249         * modules/getopt-gnu: New file, renamed from modules/getopt.
17250         * modules/getopt-posix: New file.
17251         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17252         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17253         (gl_GETOPT): Remove macro.
17254         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17255         Disable the test against BSD systems that declare optreset. Test
17256         against mingw bug. Test against lack of support of optional arguments
17257         on many platforms.
17258         * doc/glibc-headers/getopt.texi: Update module name and list of
17259         relevant platforms.
17260         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17261         'getopt-gnu' and more portability problems.
17262         * NEWS: Mention the changes.
17263
17264 2009-08-12  Bruno Haible  <bruno@clisp.org>
17265
17266         Ensure that optarg etc. get declared by <unistd.h>.
17267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17268         AC_USE_SYSTEM_EXTENSIONS.
17269         * modules/getopt (Depends-on): Add 'extensions'.
17270
17271 2009-08-12  Bruno Haible  <bruno@clisp.org>
17272
17273         Avoid test link errors.
17274         * modules/pipe-filter-ii-tests (Makefile.am): Define
17275         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17276         * modules/pipe-filter-gi-tests (Makefile.am): Define
17277         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17279
17280 2009-08-12  Bruno Haible  <bruno@clisp.org>
17281
17282         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17283         gl_GETOPT_SUBSTITUTE before.
17284         (gl_GETOPT): Use it.
17285         * m4/argp.m4 (gl_ARGP): Update.
17286         Reported by Sergey Poznyakoff.
17287
17288         * m4/getopt.m4: Reorder macros.
17289         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17290         (gl_GETOPT_SUBSTITUTE): Remove macro.
17291
17292 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17293
17294         Minor improvement in gitlog-to-changelog
17295
17296         * build-aux/gitlog-to-changelog: New option `--format' makes
17297         output format string configurable.
17298
17299 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17300
17301         Optimize exclude: use hash tables for non-wildcard patterns.
17302
17303         * lib/exclude.c: Include hash.h and mbuiter.h
17304         (struct exclude_pattern, exclude_segment): New data types.
17305         (struct exclude): Rewrite.
17306         (fnmatch_pattern_has_wildcards): New function.
17307         (new_exclude_segment, free_exclude_segment): New functions.
17308         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17309         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17310         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17311         * modules/exclude: Depend on hash and mbuiter.
17312
17313         * modules/exclude-tests: New file.
17314         * tests/test-exclude.c: New file.
17315         * tests/test-exclude1.sh: New file.
17316         * tests/test-exclude2.sh: New file.
17317         * tests/test-exclude3.sh: New file.
17318         * tests/test-exclude4.sh: New file.
17319         * tests/test-exclude5.sh: New file.
17320         * tests/test-exclude6.sh: New file.
17321         * tests/test-exclude7.sh: New file.
17322
17323 2009-08-12  Bruno Haible  <bruno@clisp.org>
17324
17325         Ensure that getopt() gets declared by <unistd.h>.
17326         * lib/unistd.in.h: Conditionally include getopt.h.
17327         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17328         Set GNULIB_UNISTD_H_GETOPT.
17329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17330         GNULIB_UNISTD_H_GETOPT.
17331         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17332
17333 2009-08-12  Bruno Haible  <bruno@clisp.org>
17334
17335         Clarify logic.
17336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17337         gl_replace_getopt instead of GETOPT_H.
17338
17339 2009-08-12  Bruno Haible  <bruno@clisp.org>
17340
17341         * m4/getopt.m4: Add comments.
17342
17343 2009-08-12  Bruno Haible  <bruno@clisp.org>
17344
17345         Disable multithread support by default on Cygwin 1.5.x.
17346         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17347         set gl_use_threads=no if not specified otherwise.
17348
17349 2009-08-11  Bruno Haible  <bruno@clisp.org>
17350
17351         Avoid compilation error on NetBSD 5.0.
17352         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17353         * tests/test-stdio.c: Likewise.
17354         * tests/test-stdlib.c: Likewise.
17355         * tests/test-string.c: Likewise.
17356         * tests/test-unistd.c: Likewise.
17357         Reported by Greg Troxel <gdt@ir.bbn.com>
17358         at <https://savannah.gnu.org/support/?106973>.
17359
17360 2009-08-11  Bruno Haible  <bruno@clisp.org>
17361
17362         * modules/dup2-tests (Depends-on): Remove close.
17363
17364         Undo 2009-07-19 commit.
17365         * modules/acl-tests (Depends-on): Remove close.
17366         * modules/binary-io-tests (Depends-on): Likewise.
17367         * modules/closein-tests (Depends-on): Likewise.
17368         * modules/flock-tests (Depends-on): Likewise.
17369         * modules/fsync-tests (Depends-on): Likewise.
17370         * modules/lseek-tests (Depends-on): Likewise.
17371         * modules/pipe-tests (Depends-on): Likewise.
17372         * modules/posix_spawn-tests (Depends-on): Likewise.
17373         * modules/posix_spawnp-tests (Depends-on): Likewise.
17374         * modules/stat-time-tests (Depends-on): Likewise.
17375         * modules/yesno-tests (Depends-on): Likewise.
17376
17377 2009-08-10  Bruno Haible  <bruno@clisp.org>
17378
17379         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17380
17381 2009-08-10  Bruno Haible  <bruno@clisp.org>
17382
17383         Fix a gcc warning.
17384         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17385
17386 2009-08-10  Bruno Haible  <bruno@clisp.org>
17387
17388         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17389         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17390         not only the first time.
17391         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17392         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17393         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17394         is 1, not only the the first time.
17395
17396 2009-08-10  Bruno Haible  <bruno@clisp.org>
17397
17398         Make it possible to use module 'gethostname' without module 'close'.
17399         * lib/unistd.in.h (close): Evoke a link error only if
17400         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17402         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17403         * modules/unistd (Makefile.am): Substitute
17404         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17405         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17406         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17407         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17408         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17409         * modules/sys_ioctl (Makefile.am): Substitute
17410         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17411         * modules/socket (configure.ac): On native Windows, set
17412         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17413         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17414         Reported by Sam Steingold <sds@gnu.org>.
17415
17416 2009-08-10  Bruno Haible  <bruno@clisp.org>
17417
17418         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17419         * modules/ioctl (configure.ac): Likewise.
17420
17421 2009-08-10  Bruno Haible  <bruno@clisp.org>
17422
17423         Avoid collision between gnulib wrapper and libintl wrapper.
17424         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17425         already defined in intl/printf.c.
17426         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17427         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17428
17429 2009-08-09  Bruno Haible  <bruno@clisp.org>
17430
17431         Make <sys/select.h> really self-contained, also on Solaris 10.
17432         * lib/sys_select.in.h: Include <string.h>.
17433         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17434         Solaris 10 problem.
17435         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17436         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17437         Reported by Jim Meyering.
17438
17439 2009-08-09  Bruno Haible  <bruno@clisp.org>
17440
17441         Avoid warnings from 'aclocal' that are due to a use of macro name
17442         AM_XGETTEXT_OPTION that is not defined in automake.
17443         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17444         automake.
17445         * modules/error (configure.ac): Likewise.
17446         * modules/propername (configure.ac): Likewise.
17447         * modules/vasprintf (configure.ac): Likewise.
17448         * modules/verror (configure.ac): Likewise.
17449         * modules/xprintf (configure.ac): Likewise.
17450         * modules/xvasprintf (configure.ac): Likewise.
17451
17452 2009-08-08  Bruno Haible  <bruno@clisp.org>
17453
17454         Avoid compilation error in C++ mode.
17455         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17456         Reported by Sam Steingold <sds@gnu.org>.
17457
17458 2009-08-08  Bruno Haible  <bruno@clisp.org>
17459
17460         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17461         for the various Unix platforms.
17462         * doc/posix-headers/limits.texi: Update platforms list regarding
17463         HOST_NAME_MAX.
17464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17465
17466 2009-08-07  Jim Meyering  <meyering@redhat.com>
17467
17468         selinux-at: fix typo in a comment
17469         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17470         Spotted by Paolo Bonzini.
17471
17472         selinux-at: remove redundant m4 code, add documentation
17473         * modules/selinux-at (configure.ac): Remove redundant code.
17474         LIB_SELINUX is already set via the dependent module, selinux-h.
17475         (Include): Add quotes around selinux-at.h.
17476         * lib/selinux-at.h: Add documentation.
17477         Reported by Bruno Haible in
17478         http://marc.info/?l=gnulib-bug&m=124958988300749
17479
17480 2009-08-07  Bruno Haible  <bruno@clisp.org>
17481
17482         Avoid link error on MacOS X 10.3 and 10.4.
17483         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17484         on non-ELF systems.
17485         * lib/argp-pv.c (argp_program_version): Likewise.
17486         Reported by Simon Josefsson.
17487
17488 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17489
17490         * tests/test-version-etc.sh: Use $EXEEXT.
17491
17492 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17493
17494         update-copyright: update documentation to point to maint.mk
17495         * build-aux/update-copyright: Here.
17496
17497 2009-08-06  Jim Meyering  <meyering@redhat.com>
17498
17499         maint.mk: support update-copyright-local
17500         * top/maint.mk (update-copyright-local): Define place-holder.
17501         (update-copyright): Depend on $(update-copyright-local).
17502
17503 2009-08-06  Jim Meyering  <meyering@redhat.com>
17504
17505         selinux-at: new module
17506         Initially written for coreutils, this module will soon be
17507         used by findutils, too.
17508         * MODULES.html.sh [Misc]: Add selinux-at.
17509         * lib/selinux-at.h: New file, from coreutils.
17510         * lib/selinux-at.c: Likewise.
17511         * modules/selinux-at: Likewise.
17512         (License): Change from LGPL to GPL, since it depends
17513         on the GPL'd openat module.
17514
17515         doc: update README
17516         * README: Remove references to cogito.
17517         Remove cvs-repo-updating instructions from 2007.
17518         Don't imply that CVS is better if you have limited disk space.
17519
17520 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17521
17522         update-copyright: support C-style comments
17523         * build-aux/update-copyright: Implement and document.
17524         * tests/test-update-copyright.sh: Test.
17525
17526 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17527
17528         update-copyright: support omitted "(C)"
17529         * build-aux/update-copyright: Implement and document.  Also,
17530         allow variable whitespace before "(C)".
17531         * tests/test-update-copyright.sh: Test.
17532
17533 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17534
17535         update-copyright: don't trip on non-FSF copyright statements
17536         * build-aux/update-copyright: Fix so that the first correctly
17537         formatted FSF copyright statement is recognized no matter what
17538         appears before it.  Update documentation.
17539         * tests/test-update-copyright.sh: Test that.
17540
17541 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17542
17543         update-copyright: clean up code a little
17544         * build-aux/update-copyright: Append "_re" to the name of any
17545         variable holding a regular expression.
17546         Replace "old" and "new" with "stmt" in variable names.
17547         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17548         handled correctly.
17549         Format code more consistently.
17550
17551 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17552
17553         update-copyright-tests: improve portability
17554         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17555         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17556
17557 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17558
17559         update-copyright: support @copyright{} and &copy;
17560         * build-aux/update-copyright: Implement and document.
17561         * tests/test-update-copyright.sh: Test.
17562
17563 2009-08-04  Jim Meyering  <meyering@redhat.com>
17564
17565         update-copyright-tests: correctly test EOL=\r\n handling
17566         * tests/test-update-copyright.sh: Put \r at the end of some lines
17567         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17568
17569         maint.mk: make update-copyright exclusion list more configurable
17570         * top/maint.mk (update-copyright): Default to excluding COPYING,
17571         but allow an override, in case someone does want to update that file.
17572
17573         maint.mk: don't update copyright date in COPYING
17574         * top/maint.mk (update-copyright): Exclude COPYING.
17575
17576         maint.mk: add a copyright-updating rule
17577         * top/maint.mk (update-copyright): New rule.
17578         Derived from coreutils/Makefile.am.
17579
17580         update-copyright: rename some variables
17581         * build-aux/update-copyright: Rename a few variables for clarity.
17582         Tweak syntax.  List Joel E. Denny as coauthor.
17583
17584 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17585
17586         update-copyright: fix bug for 2-digit last year and add tests
17587         * build-aux/update-copyright: Fix bug.
17588         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17589         specified.
17590         * modules/update-copyright-tests: New
17591         * tests/test-update-copyright.sh: New.
17592
17593 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17594
17595         update-copyright: handle leading tabs in line prefix
17596         * build-aux/update-copyright: Count leading tabs as 8 spaces
17597         when computing margin.  This helps with the formatting of
17598         ChangeLogs, for example.
17599         Fix documentation a little.
17600
17601 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17602
17603         update-copyright: support EOL=\r\n
17604         * build-aux/update-copyright: Implement that.
17605
17606 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17607
17608         update-copyright: automatically format copyright statements
17609         * build-aux/update-copyright: Implement that.
17610         Also, be a little more predictable and safer by always failing
17611         when the full copyright format is not perfectly recognized as an
17612         unbroken whole.  Discussed at
17613         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17614         Rewrite documentation.
17615
17616 2009-08-03  Bruno Haible  <bruno@clisp.org>
17617
17618         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17619
17620 2009-08-02  Bruno Haible  <bruno@clisp.org>
17621
17622         Tests for module 'uname'.
17623         * modules/uname-tests: New file.
17624         * tests/test-uname.c: New file.
17625
17626         New module 'uname'.
17627         * lib/uname.c: New file.
17628         * m4/uname.m4: New file.
17629         * modules/uname: New file.
17630         * doc/posix-functions/uname.texi: Mention the new module.
17631
17632 2009-08-02  Bruno Haible  <bruno@clisp.org>
17633
17634         Tests for module 'sys_utsname'.
17635         * modules/sys_utsname-tests: New file.
17636         * tests/test-sys_utsname.c: New file.
17637
17638         New module 'sys_utsname'.
17639         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17640         * m4/sys_utsname_h.m4: New file.
17641         * modules/sys_utsname: New file.
17642         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17643
17644 2009-08-02  Bruno Haible  <bruno@clisp.org>
17645
17646         Implicitly initialize the sockets library.
17647         * lib/gethostname.c: Include sockets.h.
17648         (rpl_gethostname): Invoke gl_sockets_startup.
17649         * lib/socket.c: Include sockets.h.
17650         (rpl_socket): Invoke gl_sockets_startup.
17651         * modules/gethostname (Depends-on): Add sockets.
17652         * modules/socket (Depends-on): Likewise.
17653         * tests/test-poll.c: Don't include sockets.h.
17654         (main): Don't invoke gl_sockets_startup.
17655         * tests/test-select.c: Don't include sockets.h.
17656         (main): Don't invoke gl_sockets_startup.
17657
17658 2009-08-02  Bruno Haible  <bruno@clisp.org>
17659
17660         Allow multiple calls to gl_sockets_startup.
17661         * lib/sockets.c (initialized_sockets_version): New variable.
17662         (gl_sockets_startup): Do nothing if already called for this or a higher
17663         version.
17664         (gl_sockets_cleanup): Reset initialized_sockets_version.
17665
17666 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17667
17668         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17669         different project/version.
17670
17671 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17672             Bruno Haible  <bruno@clisp.org>
17673
17674         Tests for module 'pipe-filter-gi'.
17675         * modules/pipe-filter-gi-tests: New file.
17676         * tests/test-pipe-filter-gi1.sh: New file.
17677         * tests/test-pipe-filter-gi1.c: New file.
17678         * tests/test-pipe-filter-gi2.sh: New file.
17679         * tests/test-pipe-filter-gi2-main.c: New file.
17680         * tests/test-pipe-filter-gi2-child.c: New file.
17681
17682         New module 'pipe-filter-gi'.
17683         * lib/pipe-filter-gi.c: New file.
17684         * modules/pipe-filter-gi: New file.
17685
17686 2009-08-02  Bruno Haible  <bruno@clisp.org>
17687             Paolo Bonzini  <bonzini@gnu.org>
17688
17689         Tests for module 'pipe-filter-ii'.
17690         * modules/pipe-filter-ii-tests: New file.
17691         * tests/test-pipe-filter-ii1.sh: New file.
17692         * tests/test-pipe-filter-ii1.c: New file.
17693         * tests/test-pipe-filter-ii2.sh: New file.
17694         * tests/test-pipe-filter-ii2-main.c: New file.
17695         * tests/test-pipe-filter-ii2-child.c: New file.
17696
17697         New module 'pipe-filter-ii'.
17698         * lib/pipe-filter.h: New file.
17699         * lib/pipe-filter-ii.c: New file.
17700         * lib/pipe-filter-aux.h: New file.
17701         * modules/pipe-filter-ii: New file.
17702
17703 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17704
17705         * lib/gc-libgcrypt.c: Change copyright to FSF.
17706         * lib/gc-gnulib.c: Likewise.
17707
17708 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17709
17710         * lib/gethostname.c: Include limits.h.
17711
17712 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17713             Bruno Haible  <bruno@clisp.org>
17714
17715         Ensure HOST_NAME_MAX as part of the gethostname module.
17716         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17717         define also HOST_NAME_MAX.
17718         * tests/test-gethostname.c: Include <limits.h>.
17719         (main): Check also HOST_NAME_MAX.
17720         * doc/posix-headers/limits.texi: Document the mingw problem.
17721
17722 2009-08-02  Bruno Haible  <bruno@clisp.org>
17723
17724         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17725         Add comments.
17726
17727 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17728
17729         * lib/gethostname.c: Add Windows wrapper.
17730         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17731         * modules/gethostname: Depend on sys_socket & errno, for also
17732         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17733         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17734
17735 2009-07-31  Jim Meyering  <meyering@redhat.com>
17736
17737         getloadavg: fix symbol name in comment
17738         * lib/getloadavg.c: Correct a typo I introduced when adding
17739         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17740         Matt Kraai spotted the problem.
17741
17742 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17743
17744         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17745         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17746         code also if ! defined N_NAME_POINTER.
17747         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17748         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17749         but the n_name member is a 12-byte array.
17750
17751 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17752
17753         update-copyright: generalize comment handling
17754         * build-aux/update-copyright: Handle copyright statements
17755         within more comment styles.
17756         Document usage.
17757         Report any file with an external copyright holder or parse failure.
17758
17759 2009-07-29  Jim Meyering  <meyering@redhat.com>
17760
17761         mktime: correct setting of REPLACE_MKTIME
17762         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17763
17764         update-copyright: new module
17765         * modules/update-copyright: New file.
17766         * build-aux/update-copyright: New file.
17767         * MODULES.html.sh (maint+release support): Add update-copyright.
17768
17769 2009-07-27  Bruno Haible  <bruno@clisp.org>
17770
17771         Fix compilation error when <ctime> is used and mktime is replaced.
17772         * lib/time.in.h (mktime): New declaration.
17773         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17774         REPLACE_MKTIME instead of defining mktime in config.h.
17775         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17776         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17777         Reported by Ross McFarland <rwmcfa1@neces.com>.
17778
17779 2009-07-27  Bruno Haible  <bruno@clisp.org>
17780
17781         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17782         Reported by Matt Kraai <mkraai@beckman.com>.
17783
17784 2009-07-25  Jim Meyering  <meyering@redhat.com>
17785
17786         maint.mk: avoid warnings about missing files
17787         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17788         diagnostic when .prev-version does not exist.
17789         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17790         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17791         nonexistent cfg.mk.
17792         Suggestions from Simon Josefsson.
17793
17794 2009-07-25  Bruno Haible  <bruno@clisp.org>
17795
17796         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17797         defined as macros. Needed on QNX 6.4.1.
17798         Reported by Matt Kraai <mkraai@beckman.com>.
17799
17800 2009-07-23  Jim Meyering  <meyering@redhat.com>
17801
17802         maint.mk: invoke "make dist" with a working value of XZ_OPT
17803         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17804
17805 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17806
17807         Make fseeko.c compile on QNX.
17808         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17809
17810 2009-07-22  Peter Simons  <simons@cryp.to>
17811
17812         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17813         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17814         * lib/md4.h: Likewise.
17815         * lib/md5.h: Likewise.
17816         * lib/sha1.h: Likewise.
17817         * lib/sha256.h: Likewise.
17818         * lib/sha512.h: Likewise.
17819
17820         tests-sha1: don't assign literal string to 'char *' variable
17821         * tests/test-sha1.c (main): Declare locals with "const" to match
17822         attributes of the right hand side.
17823
17824 2009-07-21  Eric Blake  <ebb9@byu.net>
17825
17826         dup2: fix more mingw problems
17827         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17828         fd to itself.
17829         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17830         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17831         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17832         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17833         care of mingw bugs.
17834
17835 2009-07-21  Jim Meyering  <meyering@redhat.com>
17836
17837         vc-list-files: avoid failure when /bin/sh is dash
17838         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17839         On some Debian based systems, /bin/sh is a symlink to dash, and running
17840         this command would omit the "/" following each 'tests' prefix:
17841           dash -x build-aux/vc-list-files -C . tests
17842         That is because bash and dash work differently:
17843           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17844           bash ok
17845           dash odd
17846
17847 2009-07-21  Eric Blake  <ebb9@byu.net>
17848
17849         dup2-tests: test previous patch
17850         * modules/dup2-tests: New file.
17851         * tests/test-dup2.c: Likewise.
17852         * tests/test-open.c (main): Avoid unspecified behavior.
17853         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17854         test.
17855
17856         dup2: work around mingw and cygwin 1.5 bug
17857         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17859         * modules/unistd (Makefile.am): Substitute it.
17860         * lib/unistd.in.h (dup2): Declare the replacement.
17861         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17862         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17863         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17864         * modules/execute (Depends-on): Add dup2.
17865         * modules/fseterr (Depends-on): Likewise.
17866         * modules/pipe (Depends-on): Likewise.
17867         * modules/posix_spawn-internal (Depends-on): Likewise.
17868
17869 2009-07-21  Bruno Haible  <bruno@clisp.org>
17870
17871         * modules/.gitattributes: New file.
17872
17873 2009-07-20  Bruno Haible  <bruno@clisp.org>
17874
17875         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17876         (main): Use it.
17877
17878 2009-07-20  Eric Blake  <ebb9@byu.net>
17879
17880         test-pipe: make a bit more robust.
17881         * tests/test-pipe.c (myerr): Allow error messages regardless of
17882         what we do to stderr.
17883         (test_pipe): Rearrange to avoid deadlock.
17884         (child_main): Try a larger read, to ensure we avoided deadlock.
17885         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17886         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17887         if misused.
17888
17889 2009-07-19  Jim Meyering  <meyering@redhat.com>
17890
17891         fts: avoid false-positive cycle-detection
17892         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17893         for each new command line argument.
17894
17895 2009-07-19  Bruno Haible  <bruno@clisp.org>
17896
17897         Fix build error on mingw with the modules sys_select and unistd.
17898         * modules/acl-tests (Depends-on): Add close.
17899         * modules/binary-io-tests (Depends-on): Likewise.
17900         * modules/closein-tests (Depends-on): Likewise.
17901         * modules/flock-tests (Depends-on): Likewise.
17902         * modules/fsync-tests (Depends-on): Likewise.
17903         * modules/lseek-tests (Depends-on): Likewise.
17904         * modules/pipe-tests (Depends-on): Likewise.
17905         * modules/posix_spawn-tests (Depends-on): Likewise.
17906         * modules/posix_spawnp-tests (Depends-on): Likewise.
17907         * modules/stat-time-tests (Depends-on): Likewise.
17908         * modules/yesno-tests (Depends-on): Likewise.
17909
17910 2009-07-19  Bruno Haible  <bruno@clisp.org>
17911
17912         Unify conditionals.
17913         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17914         macros, not at the compiler macros.
17915         * lib/pipe.c: Likewise.
17916         * lib/execute.c: Likewise.
17917         * lib/spawni.c: Likewise.
17918
17919 2009-07-19  Bruno Haible  <bruno@clisp.org>
17920
17921         Fix handling of closed stdin/stdout/stderr on mingw.
17922         * lib/w32spawn.h: Include unistd.h.
17923         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17924         file descriptor with O_NOINHERIT flag.
17925         (fd_safer_noinherit): New function, based on fd-safer.c.
17926         (dup_safer_noinherit): New function, based on dup-safer.c.
17927         (undup_safer_noinherit): New function.
17928         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17929         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17930         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17931         instead of fd_safer.
17932         * tests/test-pipe.c: Include <windows.h>.
17933         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17934
17935         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17936         from main.
17937         (test_pipe): Pass an extra argument for disambiguation.
17938         (main): Invoke parent_main or child_main.
17939
17940         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17941         consistently.
17942
17943 2009-07-18  Eric Blake  <ebb9@byu.net>
17944
17945         test-pipe: fix mingw build
17946         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17947
17948 2009-07-18  Bruno Haible  <bruno@clisp.org>
17949
17950         * modules/pipe-tests (Makefile.am): Fix typo.
17951
17952 2009-07-18  Eric Blake  <ebb9@byu.net>
17953
17954         error: fix mingw build
17955         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17956         Reported by Bruno Haible.
17957
17958         error: avoid undefined use of stdout
17959         * lib/error.c (error, error_at_line): Check that fd 1 is open
17960         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17961         is handling faults and the close_stdout module wants to report the
17962         detection of closed stdout as an error.
17963
17964 2009-07-17  Eric Blake  <ebb9@byu.net>
17965
17966         pipe: be robust in face of closed fds
17967         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17968         should cause child to misbehave.
17969         * modules/pipe-tests: New module.
17970         * tests/test-pipe.c: New file.
17971         * tests/test-pipe.sh: New file.
17972         Reported by Akim Demaille.
17973
17974 2009-07-14  Bruno Haible  <bruno@clisp.org>
17975
17976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17977         Reported by anonymous kc.
17978
17979 2009-07-07  Jim Meyering  <meyering@redhat.com>
17980
17981         maint.mk: don't look for translatable strings in *.m4 or *.mk
17982         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17983         when searching for translatable strings.
17984
17985 2009-07-05  Jim Meyering  <meyering@redhat.com>
17986
17987         remove superfluous parentheses in STREQ definition
17988         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17989         * lib/getugroups.c (STREQ): Likewise.
17990         * lib/fnmatch.c (STREQ): Likewise.
17991         Spotted by Bruno Haible.
17992
17993 2009-07-04  Jim Meyering  <meyering@redhat.com>
17994
17995         argv-iter: new module
17996         * MODULES.html.sh: Add argv-iter.
17997         * lib/argv-iter.c, lib/argv-iter.h: New files.
17998         * modules/argv-iter: New file.
17999         * modules/argv-iter-tests: New file.
18000         * tests/test-argv-iter.c: Test it.
18001
18002 2009-07-04  Bruno Haible  <bruno@clisp.org>
18003
18004         Fix assertion.
18005         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
18006         contains more exact copies of a given entry than file2, leave the extra
18007         copies unpaired rather than aborting.
18008         Reported by Eric Blake.
18009
18010 2009-07-02  Bruno Haible  <bruno@clisp.org>
18011
18012         Speedup git-merge-changelog for git cherry-pick.
18013         * lib/git-merge-changelog.c (struct entries_mapping): New type.
18014         (entries_mapping_get): New function, extracted from compute_mapping.
18015         (entries_mapping_reverse_get): New function.
18016         (compute_mapping): Add a 'full' argument. Return the result in a
18017         'struct entries_mapping'.
18018         (main): Update. Access the mappings through entries_mapping_get.
18019         Reported by Eric Blake.
18020
18021 2009-07-02  Bruno Haible  <bruno@clisp.org>
18022
18023         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
18024         best_i.
18025
18026 2009-07-02  Bruno Haible  <bruno@clisp.org>
18027
18028         Speed up approximate search for matching ChangeLog entries.
18029         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
18030         argument. Call fstrcmp_bounded instead of fstrcmp.
18031         (compute_mapping, try_split_merged_entry, main): Update callers.
18032
18033 2009-07-02  Bruno Haible  <bruno@clisp.org>
18034
18035         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
18036
18037 2009-06-30  Bruno Haible  <bruno@clisp.org>
18038
18039         Reduce the number of uc_is_cased calls.
18040         * lib/unicase.h (casing_suffix_context_t): Add
18041         'first_char_except_ignorable' field.
18042         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
18043         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
18044         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
18045         Update initializer.
18046         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
18047         case-ignorable characters.
18048         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
18049         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
18050         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
18051         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
18052         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
18053
18054 2009-06-30  Bruno Haible  <bruno@clisp.org>
18055
18056         Tests for module 'unicase/ignorable'.
18057         * modules/unicase/ignorable-tests: New file.
18058         * tests/unicase/test-ignorable.c: New file, generated by
18059         gen-uni-tables.
18060
18061         Tests for module 'unicase/cased'.
18062         * modules/unicase/cased-tests: New file.
18063         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
18064         * tests/unicase/test-predicate-part1.h: New file, derived from
18065         tests/unictype/test-predicate-part1.h.
18066         * tests/unicase/test-predicate-part2.h: New file, same as
18067         tests/unictype/test-predicate-part2.h.
18068
18069         Fix evaluation of "Before C" condition of FINAL_SIGMA.
18070         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
18071         (output_casing_properties): New function.
18072         (main): Call it.
18073         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
18074         * lib/unicase/cased.c: Include unictype/bitmap.h.
18075         (uc_is_cased): Define through a bitmap lookup.
18076         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
18077         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
18078         (uc_is_case_ignorable): Define through a bitmap lookup.
18079         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
18080         lib/unictype/bitmap.h.
18081         (Depends-on): Add inline. Clean up.
18082         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
18083         lib/unictype/bitmap.h.
18084         (Depends-on): Add inline. Clean up.
18085         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
18086         recognition.
18087         * tests/unicase/test-u16-tolower.c (main): Likewise.
18088         * tests/unicase/test-u32-tolower.c (main): Likewise.
18089
18090 2009-06-30  Bruno Haible  <bruno@clisp.org>
18091
18092         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
18093         * lib/unicase/u16-casemap.c: Likewise.
18094         * lib/unicase/u32-casemap.c: Likewise.
18095
18096 2009-06-29  Bruno Haible  <bruno@clisp.org>
18097
18098         Define u32_casefold as a wrapper around u32_ct_casefold.
18099         * lib/unicase/u32-casefold.c: Update.
18100         * modules/unicase/u32-casefold (Depends-on): Add
18101         unicase/u32-ct-casefold, unicase/empty-prefix-context,
18102         unicase/empty-suffix-context. Clean up.
18103
18104         Define u16_casefold as a wrapper around u16_ct_casefold.
18105         * lib/unicase/u16-casefold.c: Update.
18106         * modules/unicase/u16-casefold (Depends-on): Add
18107         unicase/u16-ct-casefold, unicase/empty-prefix-context,
18108         unicase/empty-suffix-context. Clean up.
18109
18110         Define u8_casefold as a wrapper around u8_ct_casefold.
18111         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
18112         * lib/unicase/u8-casefold.c: Update.
18113         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
18114         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18115
18116         Define u32_totitle as a wrapper around u32_ct_totitle.
18117         * lib/unicase/u32-totitle.c: Update.
18118         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
18119         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18120
18121         Define u16_totitle as a wrapper around u16_ct_totitle.
18122         * lib/unicase/u16-totitle.c: Update.
18123         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
18124         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18125
18126         Define u8_totitle as a wrapper around u8_ct_totitle.
18127         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
18128         functions.
18129         (FUNC): Delegate to U_CT_TOTITLE.
18130         * lib/unicase/u8-totitle.c: Update.
18131         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
18132         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18133
18134         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
18135         invocation.
18136         * modules/unicase/u32-tolower (Depends-on): Add
18137         unicase/empty-prefix-context, unicase/empty-suffix-context.
18138
18139         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
18140         invocation.
18141         * modules/unicase/u16-tolower (Depends-on): Add
18142         unicase/empty-prefix-context, unicase/empty-suffix-context.
18143
18144         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
18145         * modules/unicase/u8-tolower (Depends-on): Add
18146         unicase/empty-prefix-context, unicase/empty-suffix-context.
18147
18148         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
18149         invocation.
18150         * modules/unicase/u32-toupper (Depends-on): Add
18151         unicase/empty-prefix-context, unicase/empty-suffix-context.
18152
18153         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
18154         invocation.
18155         * modules/unicase/u16-toupper (Depends-on): Add
18156         unicase/empty-prefix-context, unicase/empty-suffix-context.
18157
18158         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18159         * modules/unicase/u8-toupper (Depends-on): Add
18160         unicase/empty-prefix-context, unicase/empty-suffix-context.
18161
18162         New module 'unicase/u32-ct-casefold'.
18163         * lib/unicase/u32-ct-casefold.c: New file.
18164         * modules/unicase/u32-ct-casefold: New file.
18165
18166         New module 'unicase/u16-ct-casefold'.
18167         * lib/unicase/u16-ct-casefold.c: New file.
18168         * modules/unicase/u16-ct-casefold: New file.
18169
18170         New module 'unicase/u8-ct-casefold'.
18171         * lib/unicase/u8-ct-casefold.c: New file.
18172         * lib/unicase/u-ct-casefold.h: New file, derived from
18173         lib/unicase/u-casefold.h.
18174         * modules/unicase/u8-ct-casefold: New file.
18175
18176         New module 'unicase/u32-ct-totitle'.
18177         * lib/unicase/u32-ct-totitle.c: New file.
18178         * modules/unicase/u32-ct-totitle: New file.
18179
18180         New module 'unicase/u16-ct-totitle'.
18181         * lib/unicase/u16-ct-totitle.c: New file.
18182         * modules/unicase/u16-ct-totitle: New file.
18183
18184         New module 'unicase/u8-ct-totitle'.
18185         * lib/unicase/u8-ct-totitle.c: New file.
18186         * lib/unicase/u-ct-totitle.h: New file, derived from
18187         lib/unicase/u-totitle.h.
18188         * modules/unicase/u8-ct-totitle: New file.
18189
18190         New module 'unicase/u32-ct-tolower'.
18191         * lib/unicase/u32-ct-tolower.c: New file.
18192         * modules/unicase/u32-ct-tolower: New file.
18193
18194         New module 'unicase/u16-ct-tolower'.
18195         * lib/unicase/u16-ct-tolower.c: New file.
18196         * modules/unicase/u16-ct-tolower: New file.
18197
18198         New module 'unicase/u8-ct-tolower'.
18199         * lib/unicase/u8-ct-tolower.c: New file.
18200         * modules/unicase/u8-ct-tolower: New file.
18201
18202         New module 'unicase/u32-ct-toupper'.
18203         * lib/unicase/u32-ct-toupper.c: New file.
18204         * modules/unicase/u32-ct-toupper: New file.
18205
18206         New module 'unicase/u16-ct-toupper'.
18207         * lib/unicase/u16-ct-toupper.c: New file.
18208         * modules/unicase/u16-ct-toupper: New file.
18209
18210         New module 'unicase/u8-ct-toupper'.
18211         * lib/unicase/u8-ct-toupper.c: New file.
18212         * modules/unicase/u8-ct-toupper: New file.
18213
18214         Add context arguments to u*_casemap functions.
18215         * lib/unicase/unicasemap.h: Include unicase.h.
18216         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18217         suffix_context arguments.
18218         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18219         functions.
18220         (FUNC): Add prefix_context and suffix_context arguments. Use
18221         uc_is_cased and uc_is_case_ignorable.
18222         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18223         * lib/unicase/u16-casemap.c: Likewise.
18224         * lib/unicase/u32-casemap.c: Likewise.
18225         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18226         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18227         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18228         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18229         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18230         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18231
18232         New module 'unicase/u32-suffix-context'.
18233         * lib/unicase/u32-suffix-context.c: New file.
18234         * modules/unicase/u32-suffix-context: New file.
18235
18236         New module 'unicase/u16-suffix-context'.
18237         * lib/unicase/u16-suffix-context.c: New file.
18238         * modules/unicase/u16-suffix-context: New file.
18239
18240         New module 'unicase/u8-suffix-context'.
18241         * lib/unicase/u8-suffix-context.c: New file.
18242         * lib/unicase/u-suffix-context.h: New file.
18243         * modules/unicase/u8-suffix-context: New file.
18244
18245         New module 'unicase/empty-suffix-context'.
18246         * lib/unicase/empty-suffix-context.c: New file.
18247         * modules/unicase/empty-suffix-context: New file.
18248
18249         New module 'unicase/u32-prefix-context'.
18250         * lib/unicase/u32-prefix-context.c: New file.
18251         * modules/unicase/u32-prefix-context: New file.
18252
18253         New module 'unicase/u16-prefix-context'.
18254         * lib/unicase/u16-prefix-context.c: New file.
18255         * modules/unicase/u16-prefix-context: New file.
18256
18257         New module 'unicase/u8-prefix-context'.
18258         * lib/unicase/u8-prefix-context.c: New file.
18259         * lib/unicase/u-prefix-context.h: New file.
18260         * lib/unicase/context.h: New file.
18261         * modules/unicase/u8-prefix-context: New file.
18262
18263         New module 'unicase/empty-prefix-context'.
18264         * lib/unicase/empty-prefix-context.c: New file.
18265         * modules/unicase/empty-prefix-context: New file.
18266
18267         New module 'unicase/ignorable'.
18268         * lib/unicase/ignorable.c: New file.
18269         * modules/unicase/ignorable: New file.
18270
18271         New module 'unicase/cased'.
18272         * lib/unicase/caseprop.h: New file.
18273         * lib/unicase/cased.c: New file.
18274         * modules/unicase/cased: New file.
18275
18276         New functions for case mapping of substrings.
18277         * lib/unicase.h (casing_prefix_context_t): New type.
18278         (unicase_empty_prefix_context): New variable.
18279         (u8_casing_prefix_context, u16_casing_prefix_context,
18280         u32_casing_prefix_context, u8_casing_prefixes_context,
18281         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18282         declarations.
18283         (casing_suffix_context_t): New type.
18284         (unicase_empty_suffix_context): New variable.
18285         (u8_casing_suffix_context, u16_casing_suffix_context,
18286         u32_casing_suffix_context, u8_casing_suffixes_context,
18287         u16_casing_suffixes_context, u32_casing_suffixes_context,
18288         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18289         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18290         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18291         declarations.
18292
18293 2009-06-28  Jim Meyering  <meyering@redhat.com>
18294
18295         boostrap: indent only with spaces
18296         * build-aux/bootstrap: Indent only with spaces, never TABs.
18297
18298         bootstrap: split long lines
18299         * build-aux/bootstrap: Keep line length < 80.
18300
18301         bootstrap: sync from coreutils
18302         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18303         just as autoreconf does.  Verify a list of prerequisite
18304         package-name,version-number pairs if defined in bootstrap.conf.
18305         Refer to README-prereq, if prerequisites are not satisfied.
18306
18307 2009-06-27  Eric Blake  <ebb9@byu.net>
18308
18309         tests: add test for bogus NULL definition
18310         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18311         * tests/test-stdlib.c: Likewise.
18312         * tests/test-string.c: Likewise.
18313         * tests/test-locale.c: Likewise.
18314         * tests/test-unistd.c: Likewise.
18315         * modules/stdio-tests (Depends-on): Add verify.
18316         * modules/stdlib-tests (Depends-on): Likewise.
18317         * modules/string-tests (Depends-on): Likewise.
18318         * modules/locale-tests (Depends-on): Likewise.
18319         * modules/unistd-tests (Depends-on): Likewise.
18320
18321 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18322
18323         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18324         self-explaining comment.
18325         * m4/selinux-selinux-h: Update serial.
18326         (gl_LIBSELINUX): New macro, adding a warning for missing development
18327         packages to code extracted from...
18328         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18329         Add warning for missing development packages here, too.
18330
18331 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18332
18333         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18334
18335 2009-06-25  Eric Blake  <ebb9@byu.net>
18336
18337         version-etc: fix regression
18338         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18339         gcc.
18340         (version_etc): Use it, to catch bugs with trailing NULL.
18341         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18342         (version_etc_va): Fix logic bug.
18343         * modules/version-etc-tests: Add test.
18344         * tests/test-version-etc.c: New file.
18345         * tests/test-version-etc.sh: Likewise.
18346
18347 2009-06-25  Sam Steingold  <sds@gnu.org>
18348
18349         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18350         mbtowc declaration.
18351
18352 2009-06-25  Eric Blake  <ebb9@byu.net>
18353
18354         fpurge: migrate into <stdio.h>
18355         * lib/fpurge.h: Delete...
18356         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18357         * lib/fpurge.c (fpurge): Change declaring header.
18358         * modules/fpurge (Files): Drop deleted file.
18359         (Depends-on): Add stdio.
18360         (configure.ac): Set witness.
18361         * modules/stdio (Makefile.am): Support fpurge macros.
18362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18363         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18364         * lib/fflush.c: Update client.
18365         * tests/test-fpurge.c: Likewise.
18366         * NEWS: Mention the change.
18367
18368 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18369
18370         * lib/argp-version-etc.c (program_authors): Add const
18371         qualifier.
18372         * lib/version-etc.c: Fix typos in the comments.
18373         * modules/argp-version-etc: Depends on version-etc.
18374
18375 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18376
18377         argp-version-etc: new module.
18378
18379         * lib/argp-version-etc.c: New file.
18380         * lib/argp-version-etc.h: New file.
18381         * modules/argp-version-etc: New file.
18382         * modules/argp-version-etc-tests: New file.
18383         * tests/test-argp-version-etc.c: New test.
18384         * tests/test-argp-version-etc-1.sh: New test.
18385
18386 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18387
18388         Provide additional interfaces and documentation for version-etc
18389         module.
18390
18391         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18392         interfaces.
18393         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18394         prototypes.
18395
18396 2009-06-24  Bruno Haible  <bruno@clisp.org>
18397
18398         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18399         HAVE_LIB${NAME} macro.
18400         Reported by Sam Steingold <sds@gnu.org>.
18401
18402 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18403
18404         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18405         needed.
18406
18407 2009-06-21  Bruno Haible  <bruno@clisp.org>
18408
18409         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18410         work.
18411         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18412         together with LIB${NAME}, LTLIB${NAME}.
18413         Reported by Sam Steingold <sds@gnu.org>.
18414
18415 2009-06-20  Jim Meyering  <meyering@redhat.com>
18416
18417         tests: make sc_require_test_exit_idiom more generic
18418         * top/maint.mk (Exit_witness_file): New overridable variable.
18419         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18420         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18421
18422 2009-06-19  Jim Meyering  <meyering@redhat.com>
18423
18424         hash: reverse order of src/dst parameters in an internal interface
18425         * lib/hash.c (transfer_entries): Reverse order of parameters to
18426         put DST before SRC.  Adjust callers.
18427
18428         tests: test-hash: avoid wholesale duplication
18429         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18430         Instead, use a loop and add a single conditional.
18431
18432         tests: test-hash: allow seed selection via a command line argument
18433         * tests/test-hash.c (get_seed): New function.
18434         (main): Use it.
18435
18436 2009-06-19  Eric Blake  <ebb9@byu.net>
18437
18438         hash: avoid memory leak on allocation failure
18439         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18440         failure.  Factor repeated algorithm...
18441         (transfer_entries): ...into new helper routine.
18442         (hash_delete): React to hash_rehash return value.
18443
18444         hash: reduce memory pressure in hash_rehash no-op case
18445         * lib/hash.c (next_prime): Avoid overflow.
18446         (hash_initialize): Factor bucket size computation...
18447         (compute_bucket_size): ...into new helper function.
18448         (hash_rehash): Use new function and open coding to reduce memory
18449         pressure, and avoid a memory leak in USE_OBSTACK code.
18450         Reported by Jim Meyering.
18451
18452 2009-06-18  Eric Blake  <ebb9@byu.net>
18453
18454         hash: make rotation more obvious
18455         * modules/hash (Depends-on): Add bitrotate and stdint.
18456         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18457         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18458         (SIZE_MAX): Rely on headers for definition.
18459         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18460         (raw_hasher): Use rotr_sz.
18461         Suggested by Jim Meyering.
18462
18463         hash: fix memory leak in last patch
18464         * lib/hash.c (hash_rehash): Avoid memory leak.
18465
18466         hash: avoid no-op rehashing
18467         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18468
18469         hash: provide default callback functions
18470         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18471         (hash_initialize): Use them as defaults.
18472         * tests/test-hash.c (main): Test this.
18473
18474         hash: minor optimization
18475         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18476         when possible.
18477         (hash_initialize): Document this promise.
18478         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18479         * tests/test-hash.c (hash_compare_strings): Test this.
18480
18481 2009-06-18  Bruno Haible  <bruno@clisp.org>
18482
18483         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18484         going to be replaced anyway.
18485
18486 2009-06-18  Bruno Haible  <bruno@clisp.org>
18487
18488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18489         in one place.
18490         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18491         be replaced anyway.
18492
18493 2009-06-18  Eric Blake  <ebb9@byu.net>
18494
18495         hash: check for resize before insertion
18496         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18497         threshold before insertion, so that a pathological hash_rehash
18498         that fills every bucket can still trigger another rehash.
18499
18500 2009-06-18  Jim Meyering  <meyering@redhat.com>
18501
18502         hash-tests: add a loop around the small tests
18503         * tests/test-hash.c (main): Repeat small tests with selected
18504         small initial table sizes.
18505
18506 2009-06-17  Eric Blake  <ebb9@byu.net>
18507
18508         hash: minor cleanups
18509         * lib/hash.h (hash_entry): Make opaque, by moving...
18510         * lib/hash.c (hash_entry): ...here.
18511         (hash_insert): Clarify restrictions on what can be inserted.
18512         (hash_get_next): Clarify when it is safe to remove an element
18513         during traversal.
18514         (check_tuning): Skip verification when tuning is known safe.
18515         (hash_initialize): Clarify restrictions on tuning.
18516
18517 2009-06-17  Jim Meyering  <jim@meyering.net>
18518         and Eric Blake  <ebb9@byu.net>
18519
18520         hash-tests: new module
18521         * modules/hash-tests: New file.
18522         * tests/test-hash.c: New file.
18523
18524 2009-06-17  Eric Blake  <ebb9@byu.net>
18525
18526         strstr-simple: document new module
18527         * MODULES.html.sh: Document new module.
18528
18529         strstr, strcasestr: replace on platforms with broken memchr
18530         * modules/strstr: Split into...
18531         * modules/strstr-simple: ...new module that does not care about
18532         performance, but does care about glibc bug.
18533         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18534         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18535         if platform memchr is broken, per Debian bug 521737.
18536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18537         memchr.
18538         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18539         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18540         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18541         * modules/mountlist (Depends-on): Add strstr-simple.
18542         * modules/gen-uni-tables (Depends-on): Likewise.
18543         * modules/argz (Depends-on): Add strstr.
18544
18545 2009-06-17  Bruno Haible  <bruno@clisp.org>
18546
18547         * modules/posix_spawn-internal (Depends-on): Add errno.
18548
18549 2009-06-17  Bruno Haible  <bruno@clisp.org>
18550
18551         Define missing ESTALE on Interix 3.5.
18552         * lib/errno.in.h (ESTALE): Assign a value if missing.
18553         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18554         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18555         missing.
18556         * doc/posix-headers/errno.texi: Mention the Interix bug.
18557         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18558
18559 2009-06-15  Eric Blake  <ebb9@byu.net>
18560
18561         memchr, memchr2: add valgrind exception
18562         * lib/memchr.valgrind: New file.
18563         * lib/memchr2.valgrind: New file.
18564         * modules/memchr (Files): Distribute valgrind file.
18565         * modules/memchr2 (Files): Likewise.
18566
18567         docs: memchr is no longer obsolete
18568         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18569         * lib/string.in.h (memchr): Simplify logic.
18570
18571 2009-06-14  Jim Meyering  <meyering@redhat.com>
18572
18573         link-follow: fix the "checking..." message to not mention trailing slash
18574         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18575         never considered trailing slashes.
18576
18577 2009-06-14  Bruno Haible  <bruno@clisp.org>
18578
18579         * m4/memchr.m4: Mention also the bug on IA-64.
18580         * doc/posix-functions/memchr.texi: Likewise.
18581
18582 2009-06-12  Eric Blake  <ebb9@byu.net>
18583
18584         memchr: detect broken x86_64 and alpha implementations
18585         * modules/memchr-tests (Depends-on): Move mmap detection...
18586         * modules/memchr (Depends-on): ...here.
18587         (configure.ac): Set indicator.
18588         * lib/string.in.h (memchr): Declare replacement.
18589         * modules/string (Makefile.am): Trigger replacement.
18590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18591         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18592         bugs.
18593         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18594         * modules/getpagesize (License): Relax license.
18595
18596 2009-06-11  Bruno Haible  <bruno@clisp.org>
18597
18598         * lib/idpriv.h: Add more references.
18599
18600 2009-06-08  Bruno Haible  <bruno@clisp.org>
18601
18602         Tests for module 'idpriv-droptemp'.
18603         * modules/idpriv-droptemp-tests: New file.
18604         * tests/test-idpriv-droptemp.sh: New file.
18605         * tests/test-idpriv-droptemp.su.sh: New file.
18606         * tests/test-idpriv-droptemp.c: New file.
18607
18608         New module 'idpriv-droptemp'.
18609         * lib/idpriv-droptemp.c: New file.
18610         * modules/idpriv-droptemp: New file.
18611
18612 2009-06-08  Bruno Haible  <bruno@clisp.org>
18613
18614         Tests for module 'idpriv-drop'.
18615         * modules/idpriv-drop-tests: New file.
18616         * tests/test-idpriv-drop.sh: New file.
18617         * tests/test-idpriv-drop.su.sh: New file.
18618         * tests/test-idpriv-drop.c: New file.
18619
18620         New module 'idpriv-drop'.
18621         * lib/idpriv.h: New file.
18622         * lib-idpriv-drop.c: New file.
18623         * m4/idpriv.m4: New file.
18624         * modules/idpriv-drop: New file.
18625
18626 2009-06-08  Bruno Haible  <bruno@clisp.org>
18627
18628         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18629         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18630         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18631         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18632         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18633         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18634         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18635
18636 2009-06-08  Eric Blake  <ebb9@byu.net>
18637
18638         test-strstr: use memory fence, when possible
18639         * tests/test-strstr.c (main): Use memory fence, in order to be
18640         more likely to trigger Debian bug 521737.
18641         * modules/strstr-tests (Files): Pull in additional files.
18642
18643         memchr: no longer obsolete, for wider field testing
18644         * modules/memchr (Status, Notice): Delete, this module is no
18645         longer obsolete.
18646         * modules/vasnprintf (Depends-on): Add memchr.
18647
18648 2009-06-07  Jim Meyering  <meyering@redhat.com>
18649
18650         hash: declare some functions with the warn_unused_result attribute
18651         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18652
18653 2009-06-07  Bruno Haible  <bruno@clisp.org>
18654
18655         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18656         Reported by Eric Blake.
18657
18658 2009-06-06  Eric Blake  <ebb9@byu.net>
18659
18660         test-alignof: fix typo with long double
18661         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18662         compiler error.
18663
18664 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18665
18666         Escape non-texinfo { and }s.
18667         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18668         markup error.
18669
18670 2009-06-04  Jim Meyering  <meyering@redhat.com>
18671
18672         gitlog-to-changelog: don't infloop on an empty commit log
18673         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18674         Reported by Boris Petersen <transacid@centerim.org>.
18675
18676 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18677
18678         version-etc: extend for packagers
18679         Add three new configure options, intended for packagers:
18680           --with-packager="packager name"
18681           --with-packager-version="packager-specific version"
18682           --with-packager-bug-reports="packager bug reporting"
18683         An example with coreutils:
18684           $ ./configure \
18685             --with-packager=Gentoo \
18686             --with-packager-bug-report=http://bugs.gentoo.org/ \
18687             --with-packager-version="patchset 1.6"
18688           $ ./src/ls --version | head -n2
18689           ls (GNU coreutils) 7.1-dirty
18690           Packaged by Gentoo (patchset 1.6)
18691         Note that the bug reporting info via --help doesn't show up because
18692         coreutils uses its own custom emit_bug_reporting_address() implementation
18693         in src/system.h.  If it didn't, it'd look like:
18694           $ ./src/ls --help | tail -n4
18695           Report bugs to <bug-coreutils@gnu.org>.
18696           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18697           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18698           General help using GNU software: <http://www.gnu.org/gethelp/>.
18699         * lib/version-etc.c: Print new information, if provided.
18700         * m4/version-etc.m4: New file.
18701         * modules/version-etc (Files): Add m4/version-etc.m4.
18702         (configure.ac): Add gl_VERSION_ETC.
18703
18704 2009-05-31  Bruno Haible  <bruno@clisp.org>
18705
18706         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18707         and 'int64_t'.
18708         * modules/alignof-tests (Dependencies): Add stdint.
18709         Reported by Eric Blake.
18710
18711 2009-05-31  Bruno Haible  <bruno@clisp.org>
18712
18713         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18714         restriction due to compiler bugs.
18715         Reported by Eric Blake.
18716
18717 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18718             Bruno Haible  <bruno@clisp.org>
18719
18720         Fix test-alignof failure.
18721         * lib/alignof.h (alignof_slot): New macro.
18722         (alignof_type): New macro, with the same semantics as the previous
18723         'alignof'.
18724         (alignof): Alias to alignof_slot.
18725         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18726         check that the results are usable as constant expressions.
18727
18728 2009-05-31  Bruno Haible  <bruno@clisp.org>
18729
18730         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18731         * tests/test-memchr.c (main): Check that memchr does not read past the
18732         first occurrence of the byte.
18733         * tests/test-strstr.c (main): Update comment.
18734         Suggested by Eric Blake.
18735
18736 2009-05-30  Bruno Haible  <bruno@clisp.org>
18737
18738         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18739         detail how to use dumpbin.
18740         Reported by David Byron <dbyron@dbyron.com>.
18741
18742 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18743
18744         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18745
18746 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18747
18748         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18749
18750 2009-05-28  Bruno Haible  <bruno@clisp.org>
18751
18752         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18753         build-aux/ files.
18754
18755 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18756
18757         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18758
18759 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18760
18761         * gnulib-tool (sed_transform_main_lib_file)
18762         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18763         regexps.
18764
18765 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18766
18767         * tests/test-strstr.c: Add another self-test.
18768         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18769         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18770
18771 2009-05-23  Bruno Haible  <bruno@clisp.org>
18772
18773         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18774         change.
18775
18776 2009-05-21  Bruno Haible  <bruno@clisp.org>
18777
18778         Simplify use of mode_t varargs.
18779         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18780         uses 'mode_t' or 'int'.
18781         * lib/openat.c (openat): Likewise.
18782         * lib/open-safer.c (open_safer): Likewise.
18783         * m4/mode_t.m4: New file.
18784         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18785         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18786         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18787         * modules/open (Files): Add m4/mode_t.m4.
18788         * modules/openat (Files): Likewise.
18789         * modules/fcntl-safer (Files): Likewise.
18790         Suggested by Eric Blake.
18791
18792 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18793
18794         * doc/glibc-functions/fallocate.texi: New file.
18795         * doc/gnulib.texi: Include it.
18796
18797 2009-05-21  Eric Blake  <ebb9@byu.net>
18798             Bruno Haible  <bruno@clisp.org>
18799
18800         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18801         invocations.
18802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18803
18804 2009-05-21  Eric Blake  <ebb9@byu.net>
18805             Bruno Haible  <bruno@clisp.org>
18806
18807         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18808         include_next. Fix of 2008-11-20 commit.
18809         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18810         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18811         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18812         NEXT_MATH_H.
18813         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18814         instead of NEXT_MATH_H.
18815
18816 2009-05-21  Bruno Haible  <bruno@clisp.org>
18817
18818         Avoid redefinition warnings for SIZE_MAX.
18819         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18820         Reported by Simon Josefsson.
18821
18822 2009-05-21  Bruno Haible  <bruno@clisp.org>
18823
18824         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18825         AC_CACHE_VAL.
18826
18827 2009-05-20  Bruno Haible  <bruno@clisp.org>
18828
18829         Make zeroptr.h work on mingw.
18830         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18831         mprotect.
18832         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18833         * modules/memchr2-tests (configure.ac): Likewise.
18834         * modules/memcmp-tests (configure.ac): Likewise.
18835         * modules/memmem-tests (configure.ac): Likewise.
18836         * modules/memrchr-tests (configure.ac): Likewise.
18837         Reported by Simon Josefsson.
18838
18839 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18840
18841         * tests/test-glob.c: Include string.h for strcmp prototype.
18842
18843 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18844
18845         * modules/getdelim (Depends-on): Add explicit stdint, although it
18846         was implicitly already pulled in via realloc-posix.
18847         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18848
18849 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18850
18851         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18852         G. Christensen" <tgc@jupiterrise.com>.
18853         * m4/sys_socket_h.m4: Check for sa_family_t.
18854         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18855         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18856         * tests/test-sys_socket.c: Check that sa_family_t works.
18857
18858 2009-05-18  Eric Blake  <ebb9@byu.net>
18859
18860         maint.mk: allow gnulib_dir in VPATH build
18861         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18862
18863 2009-05-15  Jim Meyering  <meyering@redhat.com>
18864
18865         maint.mk: Give gnulib_dir a default definition.
18866         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18867         Thus, most packages no longer need to specify this variable in cfg.mk
18868
18869 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18870
18871         rename.m4: fix typos that would make non-mingw cross-configure fail
18872         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18873
18874 2009-05-13  Eric Blake  <ebb9@byu.net>
18875
18876         mmap-anon: avoid out-of-order autoconf expansion
18877         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18878         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18879         * modules/memchr-tests (Depends-on): Add extensions.
18880         * modules/memchr2-tests (Depends-on): Add extensions.
18881         * modules/memcmp-tests (Depends-on): Add extensions.
18882         * modules/memmem-tests (Depends-on): Add extensions.
18883         * modules/memrchr-tests (Depends-on): Add extensions.
18884
18885 2009-05-13  Bruno Haible  <bruno@clisp.org>
18886
18887         Make some tests ISO C 99 compliant.
18888         * tests/zerosize-ptr.h: New file.
18889         * tests/test-memchr.c: Include zerosize-ptr.h.
18890         (main): Use a zero-size object pointer instead of NULL.
18891         * tests/test-memchr2.c: Include zerosize-ptr.h.
18892         (main): Use a zero-size object pointer instead of NULL.
18893         * tests/test-memcmp.c: Include zerosize-ptr.h.
18894         (main): Use a zero-size object pointer instead of NULL.
18895         * tests/test-memmem.c: Include zerosize-ptr.h.
18896         (main): Use a zero-size object pointer instead of NULL.
18897         * tests/test-memrchr.c: Include zerosize-ptr.h.
18898         (main): Use a zero-size object pointer instead of NULL.
18899         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
18900         m4/mmap-anon.m4.
18901         (Depends-on): Add getpagesize.
18902         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18903         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
18904         m4/mmap-anon.m4.
18905         (Depends-on): Add getpagesize.
18906         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18907         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
18908         m4/mmap-anon.m4.
18909         (Depends-on): Add getpagesize.
18910         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18911         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
18912         m4/mmap-anon.m4.
18913         (Depends-on): Add getpagesize.
18914         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18915         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18916         m4/mmap-anon.m4.
18917         (Depends-on): Add getpagesize.
18918         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18919
18920 2009-05-12  Bruno Haible  <bruno@clisp.org>
18921
18922         Tests for module 'alignof'.
18923         * modules/alignof-tests: New file.
18924         * tests/test-alignof.c: New file.
18925
18926 2009-05-12  Bruno Haible  <bruno@clisp.org>
18927
18928         Fix alignof macro.
18929         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18930         vendor compilers that are always correct.
18931
18932 2009-05-12  Bruno Haible  <bruno@clisp.org>
18933
18934         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18935         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18936         not whether its fully works.
18937
18938 2009-05-12  Bruno Haible  <bruno@clisp.org>
18939
18940         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18941
18942 2009-05-12  Jim Meyering  <meyering@redhat.com>
18943
18944         * top/maint.mk: Adjust backslash alignment.
18945
18946 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18947
18948         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18949
18950 2009-05-11  Eric Blake  <ebb9@byu.net>
18951
18952         argp: avoid undefined behavior
18953         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18954         macros.
18955
18956 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18957
18958         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18959         user.name to prevent git commit from complaining.
18960
18961 2009-05-10  Bruno Haible  <bruno@clisp.org>
18962
18963         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18964         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18965         it rewrites every file name only once.
18966         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18967
18968 2009-05-08  Bruno Haible  <bruno@clisp.org>
18969
18970         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18971         instead of 'max'.
18972
18973 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18974
18975         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18976         sockaddr_storage test.
18977
18978 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18979
18980         * modules/sys_socket (Makefile.am): Substitute
18981         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18982         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18983         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18984         * tests/test-sys_socket.c: Check sockaddr_storage.
18985
18986 2009-05-08  Bruno Haible  <bruno@clisp.org>
18987
18988         New module 'alignof'.
18989         * lib/alignof.h: New file.
18990         * modules/alignof: New file.
18991
18992 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18993             Bruno Haible  <bruno@clisp.org>
18994
18995         Fix test-file-has-acl on FreeBSD.
18996         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
18997         mask is implicitly added.
18998         * tests/test-file-has-acl.c: Include <signal.h>.
18999         (main): Terminate the test after 5 seconds.
19000         * modules/acl-tests (configure.ac): Check for alarm function.
19001
19002 2009-05-04  Bruno Haible  <bruno@clisp.org>
19003
19004         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
19005         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
19006         * modules/errno (configure.ac): Drop AC_REQUIRE.
19007         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
19008         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
19009
19010 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19011
19012         * modules/glob-tests: New module.
19013         * tests/test-glob.c: Add.
19014
19015 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19016
19017         * modules/fnmatch-tests: New module.
19018         * tests/test-fnmatch.c: Add.
19019
19020 2009-05-04  Eric Blake  <ebb9@byu.net>
19021
19022         maint: make the new no-submodule-changes rule VPATH-safe
19023         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
19024
19025 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19026             Bruno Haible  <bruno@clisp.org>
19027
19028         acl: Fix infinite loop on FreeBSD.
19029         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
19030         of return value from acl_get_entry.
19031         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
19032         Likewise.
19033
19034 2009-05-03  Bruno Haible  <bruno@clisp.org>
19035
19036         * lib/acl-internal.h (acl_entries): Clarify return value.
19037         * lib/acl_entries.c (acl_entries): Likewise.
19038
19039 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19040
19041         Bug fix in acl module.
19042         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
19043
19044 2009-05-03  Bruno Haible  <bruno@clisp.org>
19045
19046         Create gperf-generated file in the source dir, not in the build dir.
19047         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
19048         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
19049         * modules/unicase/locale-language (unicase/locale-languages.h):
19050         Likewise.
19051         * modules/unicase/special-casing (unicase/special-casing-table.h):
19052         Likewise.
19053         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
19054         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
19055         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
19056         Reported by Ralf Wildenhues.
19057
19058 2009-05-03  Bruno Haible  <bruno@clisp.org>
19059
19060         * modules/fnmatch (Description, configure.ac): Taken from
19061         fnmatch-posix.
19062         * modules/fnmatch-posix: Turn into a symbolic reference to the
19063         'fnmatch' module, and deprecate.
19064         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
19065
19066 2009-05-03  Bruno Haible  <bruno@clisp.org>
19067
19068         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
19069         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
19070         Reported by Ralf Wildenhues.
19071
19072 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19073
19074         * m4/fnmatch.m4: Fix fnmatch re-define.
19075
19076 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19077
19078         priv-set: new module and tests; adapt write-any-file
19079         * lib/priv-set.c: New file.
19080         * lib/priv-set.h: New file.
19081         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
19082         * lib/write-any-file.c: Simplify by using priv-set module.
19083         * m4/priv-set.m4: New file.
19084         * modules/priv-set: New file.
19085         * modules/unlinkdir: Add dependency on priv-set module.
19086         * modules/write-any-file: Likewise.
19087
19088         Tests for module 'priv-set'.
19089         * modules/priv-set-tests: New file.
19090         * tests/test-priv-set.c: New file.
19091
19092 2009-05-03  Jim Meyering  <meyering@redhat.com>
19093             Bruno Haible  <bruno@clisp.org>
19094
19095         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
19096         use the converted UTF-8 variant of the name instead.
19097
19098 2009-05-03  Jim Meyering  <meyering@redhat.com>
19099
19100         tests: tighten some getdate tests
19101         * tests/test-getdate.c (main): Tighten tests: require equality,
19102         not just greater than.  Set TZ envvar to UTC0.
19103
19104 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19105
19106         getdate: correctly interpret "next monday" when run on a Monday
19107         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
19108         that e.g., "next tues" (when run on a tuesday) results in a date
19109         that is one week in the future, and not today's date.
19110         I.e., add a week when the wday is the same as the current one.
19111         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
19112         and earlier by Martin Bernreuther and Jan Minář.
19113         * tests/test-getdate.c (main): Check that "next DAY" is always in
19114         the future and that "last DAY" is always in the past.
19115
19116 2009-05-02  Jim Meyering  <meyering@redhat.com>
19117
19118         build: ensure that a release build fails when a submodule is unclean
19119         * top/maint.mk (no-submodule-changes): New rule.
19120         (alpha beta major): Depend on it.
19121
19122 2009-05-02  Bruno Haible  <bruno@clisp.org>
19123
19124         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
19125         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
19126         shell variable gl_fnmatch_required to detect which variant is
19127         requested.
19128         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
19129         gl_FUNC_FNMATCH_POSIX.
19130         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
19131         exclude fnmatch-posix.
19132
19133 2009-05-02  Bruno Haible  <bruno@clisp.org>
19134
19135         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
19136         * modules/mbsrtowcs (License): Change to LGPLv2+.
19137         * modules/strnlen1 (License): Likewise.
19138         Reported by Simon Josefsson.
19139
19140 2009-05-02  Bruno Haible  <bruno@clisp.org>
19141
19142         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
19143         "cross".
19144         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
19145         gnulib-tool was called with option --source-base=lib.
19146
19147 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19148
19149         Use automake *-local hooks without commands, for extensibility.
19150         * modules/localcharset (Makefile.am): Rename install-exec-local
19151         rule to install-exec-localcharset, and make it a prerequisite of
19152         install-exec-local.  Likewise, rename the uninstall-local rule to
19153         uninstall-localcharset, and make it a prerequisite of the former.
19154
19155 2009-05-01  Bruno Haible  <bruno@clisp.org>
19156
19157         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19158         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19159         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19160         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19161         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19162         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19163         m4/locale-zh.m4, m4/codeset.m4.
19164
19165         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19166         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19167         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19168         m4/locale-zh.m4.
19169
19170         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19171         REPLACE_WCRTOMB if mbstate_t must be replaced.
19172         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19173         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19174
19175 2009-05-01  Bruno Haible  <bruno@clisp.org>
19176
19177         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19178         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19179         dngettext, dcngettext, textdomain, bindtextdomain,
19180         bind_textdomain_codeset): Undefine before redefining.
19181
19182 2009-04-30  Bruno Haible  <bruno@clisp.org>
19183
19184         Fix bug introduced on 2009-04-25.
19185         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19186         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19187         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19188         is defined.
19189         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19190         is defined.
19191         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19192         is defined.
19193         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19194
19195 2009-04-28  Bruno Haible  <bruno@clisp.org>
19196
19197         Comment tweaks.
19198         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19199         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19200         * lib/unicase.h (u*_casexfrm): Likewise.
19201         Reported by Paolo Bonzini.
19202
19203 2009-04-28  Bruno Haible  <bruno@clisp.org>
19204
19205         Fix a compilation error.
19206         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19207         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19208         Reported by Jim Meyering.
19209
19210 2009-04-27  Bruno Haible  <bruno@clisp.org>
19211
19212         New module 'libunistring'.
19213         * modules/libunistring: New file.
19214         * m4/libunistring.m4: New file.
19215         * MODULES.html.sh (Unicode string functions): Add it.
19216
19217 2009-04-27  Eric Blake  <ebb9@byu.net>
19218
19219         maint.mk: allow package-specific header to provide <config.h>
19220         * top/maint.mk (sc_require_config_h): New variable.
19221         (sc_require_config_h, sc_require_config_h_first): Use it.
19222
19223 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19224
19225         * top/maint.mk (sc_avoid_if_before_free): Except
19226         useless-if-before-free script.
19227
19228 2009-04-27  Eric Blake  <ebb9@byu.net>
19229
19230         maintainer-makefile: depend on all required helper scripts
19231         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19232         useless-if-before-free.
19233         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19234         version, rather than assuming gnulib checkout is available.
19235         Reported by Simen Josefsson.
19236
19237 2009-04-26  Bruno Haible  <bruno@clisp.org>
19238
19239         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19240         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19241         "../" or "..".
19242
19243 2009-04-26  Bruno Haible  <bruno@clisp.org>
19244
19245         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19246         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19247         AC_LIB_HAVE_LINKFLAGS.
19248
19249 2009-04-26  Bruno Haible  <bruno@clisp.org>
19250
19251         Simplify calling convention of u*_conv_from_encoding.
19252         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19253         u32_conv_from_encoding): Expect a resultbuf argument and return the
19254         result directly as a pointer.
19255         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19256         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19257         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19258         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19259         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19260         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19261         Update.
19262         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19263         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19264         * lib/vasnprintf.c (VASNPRINTF): Update.
19265         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19266         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19267         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19268         * NEWS: Mention the change.
19269
19270 2009-04-26  Bruno Haible  <bruno@clisp.org>
19271
19272         Simplify calling convention of u*_conv_to_encoding.
19273         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19274         u32_conv_to_encoding): Expect a resultbuf argument and return the
19275         result directly as a pointer.
19276         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19277         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19278         freeing scaled_offsets if mem_iconveha failed.
19279         * lib/unicase/u-casexfrm.h (FUNC): Update.
19280         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19281         * lib/vasnprintf.c (VASNPRINTF): Update.
19282         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19283         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19284         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19285         * NEWS: Mention the change.
19286
19287 2009-04-26  Bruno Haible  <bruno@clisp.org>
19288
19289         Avoid test failures on AIX and OSF/1.
19290         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19291         malloc(0).
19292         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19293         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19294         Likewise.
19295         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19296         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19297         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19298         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19299         * doc/posix-functions/malloc.texi: Document the portability problem
19300         related to malloc(0).
19301
19302 2009-04-26  Bruno Haible  <bruno@clisp.org>
19303
19304         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19305         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19306         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19307
19308 2009-04-25  Bruno Haible  <bruno@clisp.org>
19309
19310         Avoid link error when creating a namespace clean library.
19311         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19312         as macro with arguments if already defined as an alias.
19313         * lib/signbitf.c (gl_signbitf): Don't undefine.
19314         * lib/signbitd.c (gl_signbitd): Don't undefine.
19315         * lib/signbitl.c (gl_signbitl): Don't undefine.
19316
19317 2009-04-25  Jim Meyering  <meyering@redhat.com>
19318
19319         vc-list-files: fix another quoting bug
19320         * build-aux/vc-list-files: Avoid sed backslash expansion
19321         of pathological directory names.
19322
19323 2009-04-25  Eric Blake  <ebb9@byu.net>
19324
19325         vc-list-files: fix shell quoting error
19326         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19327         timestamp.
19328
19329 2009-04-25  Jim Meyering  <meyering@redhat.com>
19330
19331         vc-list-files: restore lost functionality with subdir argument
19332         * build-aux/vc-list-files: When given a non-"." sub-directory
19333         argument, substitute the $dir/ prefix back onto each resulting name.
19334         Otherwise, coreutils' root_tests check would fail.
19335
19336 2009-04-24  Eric Blake  <ebb9@byu.net>
19337
19338         vc-list-files: ignore git symlinks
19339         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19340         than ls-files, to ignore git symlinks.
19341
19342         maint.mk: import improvements from m4
19343         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19344         (move_if_change): Delete unused macro.
19345         (news-date-check, vc-diff-check): Support VPATH builds.
19346         (announcement): Likewise.  Split --bootstrap-tools list...
19347         (boostrap-tools): ...into separate list, which can be overridden
19348         in cfg.mk.
19349         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19350         requiring dependency on useless-if-before-free module.
19351         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19352         Support VPATH builds.
19353
19354 2009-04-24  Jim Meyering  <meyering@redhat.com>
19355
19356         maint.mk: remove coreutils-specific rules and variables
19357         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19358         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19359         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19360
19361         maint.mk: remove obsolete rule
19362         * top/maint.mk (rel-check): Remove rule.
19363         (WGET, WGETFLAGS): Remove now-unused variables.
19364
19365 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19366
19367         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19368         consistency.
19369
19370         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19371         '$(PATH_SEPARATOR)' instead of ':'.
19372
19373 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19374
19375         * lib/getopt1.c (main): Use 'const' for static array.
19376
19377 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19378
19379         * top/maint.mk: Sync with coreutils.
19380         * NEWS: Explain incompatibilities.
19381
19382 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19383             Bruno Haible  <bruno@clisp.org>
19384
19385         Fix cross-compilation results.
19386         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19387         statement, as third argument of AC_TRY_RUN.
19388         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19389         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19390         Likewise.
19391         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19392         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19393         Likewise.
19394         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19395         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19396         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19397
19398 2009-04-20  Bruno Haible  <bruno@clisp.org>
19399
19400         Avoid test failure on mingw.
19401         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19402
19403 2009-04-20  Bruno Haible  <bruno@clisp.org>
19404
19405         Avoid compilation error on mingw.
19406         * modules/localename-tests (Depends-on): Add locale.
19407
19408 2009-04-19  Bruno Haible  <bruno@clisp.org>
19409
19410         Support for building a shared library on Windows platforms.
19411         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19412         (main): Test the presence of UNINORM_NFC here.
19413         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19414         (main): Test the presence of UNINORM_NFD here.
19415         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19416         (main): Test the presence of UNINORM_NFKC here.
19417         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19418         (main): Test the presence of UNINORM_NFKD here.
19419
19420 2009-04-19  Bruno Haible  <bruno@clisp.org>
19421
19422         Avoid a compiler warning.
19423         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19424         Change type of variable 'sequence'.
19425
19426 2009-04-19  Bruno Haible  <bruno@clisp.org>
19427
19428         * modules/configmake (Makefile.am): When the contents of configmake.h
19429         does not change, arrange to preserve its modification time.
19430
19431 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19432
19433         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19434         gettext domain.
19435
19436 2009-04-16  Jim Meyering  <meyering@redhat.com>
19437
19438         useless-if-before-free: improve conversion code
19439         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19440         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19441
19442 2009-04-14  Bruno Haible  <bruno@clisp.org>
19443
19444         * modules/fcntl (Depends-on): Add extensions.
19445         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19446
19447 2009-04-12  Ben Pfaff  <blp@gnu.org>
19448
19449         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19450         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19451
19452 2009-03-20  Ben Pfaff  <blp@gnu.org>
19453
19454         Make rename replace existing destinations on Windows.
19455         * m4/rename.m4: Add test for Mingw.
19456         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19457         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19458         * doc/posix-functions/rename.texi: Document.
19459
19460 2009-04-10  Bruno Haible  <bruno@clisp.org>
19461
19462         New include file "iconveh.h".
19463         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19464         * lib/striconveh.h: Include it.
19465         (enum iconv_ilseq_handler): Remove definition.
19466         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19467         striconveh.h.
19468         * lib/striconveha.c: Include striconveh.h.
19469         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19470         * modules/striconveh (Files): Add lib/iconveh.h.
19471         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19472         lib/striconveh.h.
19473
19474 2009-04-10  Bruno Haible  <bruno@clisp.org>
19475
19476         * lib/uniconv.h: Update comment.
19477
19478 2009-04-10  Bruno Haible  <bruno@clisp.org>
19479
19480         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19481         always.
19482         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19483         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19484         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19485         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19486         "unistring-notinline.h", so that the function gets defined always.
19487         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19488         * lib/unistr/u8-uctomb.c: Likewise.
19489         * lib/unistr/u16-mbtouc.c: Likewise.
19490         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19491         * lib/unistr/u16-uctomb.c: Likewise.
19492         * lib/unistr/u32-mbtouc.c: Likewise.
19493         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19494         * lib/unistr/u32-uctomb.c: Likewise.
19495
19496 2009-04-10  Bruno Haible  <bruno@clisp.org>
19497
19498         Mark 'utime' obsolete.
19499         * modules/utime (Status, Notice): New sections.
19500         Suggested by Jim Meyering.
19501
19502         Fix cross-compile guess for utime test.
19503         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19504         autoconf.
19505         * doc/posix-functions/utime.texi: Give more precisions.
19506         Reported by Jan <ipif@ymail.com>.
19507
19508 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19509
19510         filevercmp: correct today's change
19511         * lib/filevercmp.c: Also handle coreutils' test inputs.
19512         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19513
19514         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19515         for reporting it.
19516         * lib/filevercmp.c: Special handle for "", "." and "..".
19517         * tests/test-filevercmp.c: Enlarge the set suite.
19518
19519 2009-04-07  Jim Meyering  <meyering@redhat.com>
19520
19521         useless-if-before-free: show how to remove braced useless free, too
19522         * build-aux/useless-if-before-free: still only in a comment, though.
19523
19524 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19525
19526         maint.mk: import changes to syntax-check macros from coreutils
19527         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19528         Use them in the relevant macros.
19529
19530 2009-04-06  Bruno Haible  <bruno@clisp.org>
19531
19532         Fix unportable use of bit-fields.
19533         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19534         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19535         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19536
19537 2009-04-06  Bruno Haible  <bruno@clisp.org>
19538
19539         Avoid test failures on AIX and OSF/1.
19540         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19541         that malloc(0) = NULL.
19542         * tests/unicase/test-u8-tolower.c (check): Likewise.
19543         * tests/unicase/test-u8-totitle.c (check): Likewise.
19544         * tests/unicase/test-u8-toupper.c (check): Likewise.
19545         * tests/unicase/test-u16-casefold.c (check): Likewise.
19546         * tests/unicase/test-u16-tolower.c (check): Likewise.
19547         * tests/unicase/test-u16-totitle.c (check): Likewise.
19548         * tests/unicase/test-u16-toupper.c (check): Likewise.
19549         * tests/unicase/test-u32-casefold.c (check): Likewise.
19550         * tests/unicase/test-u32-tolower.c (check): Likewise.
19551         * tests/unicase/test-u32-totitle.c (check): Likewise.
19552         * tests/unicase/test-u32-toupper.c (check): Likewise.
19553         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19554         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19555         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19556         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19557         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19558         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19559         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19560         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19561         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19562         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19563         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19564         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19565
19566 2009-04-05  Bruno Haible  <bruno@clisp.org>
19567
19568         Work around an autoconf limitation.
19569         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19570         comment line if it would be longer than 3 KB.
19571
19572 2009-04-05  Bruno Haible  <bruno@clisp.org>
19573
19574         Avoid test failure with libiconv-1.13.
19575         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19576         of the expected test results.
19577
19578 2009-04-05  Bruno Haible  <bruno@clisp.org>
19579
19580         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19581         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19582         that it should be installed.
19583
19584 2009-04-05  Bruno Haible  <bruno@clisp.org>
19585
19586         * gnulib-tool: New option --copy-file.
19587         (func_usage): Document it.
19588         (func_dest_tmpfilename): Moved out of func_import.
19589         (func_add_file, func_update_file): New functions, extracted from
19590         func_import.
19591         (func_import): Update.
19592
19593 2009-04-05  Karl Berry  <karl@gnu.org>
19594
19595         * README: prominently mention gnulib-tool.
19596         Rearrange sections so getting the code is near the top.
19597
19598 2009-04-05  Bruno Haible  <bruno@clisp.org>
19599
19600         * lib/unicase.h: Mention u*_cmp2.
19601         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19602         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19603         * lib/unicase/ulc-casecmp.c: Likewise.
19604         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19605         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19606         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19607         unistr/u8-cmp.
19608         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19609         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19610         unistr/u16-cmp.
19611         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19612         unistr/u32-cmp.
19613
19614         * lib/uninorm.h: Mention u*_cmp2.
19615         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19616         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19617         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19618         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19619         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19620         unistr/u8-cmp.
19621         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19622         unistr/u16-cmp.
19623         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19624         unistr/u32-cmp.
19625
19626         New module 'unistr/u32-cmp2'.
19627         * lib/unistr/u32-cmp2.c: New file.
19628         * modules/unistr/u32-cmp2: New file.
19629
19630         New module 'unistr/u16-cmp2'.
19631         * lib/unistr/u16-cmp2.c: New file.
19632         * modules/unistr/u16-cmp2: New file.
19633
19634         New module 'unistr/u8-cmp2'.
19635         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19636         * lib/unistr/u8-cmp2.c: New file.
19637         * lib/unistr/u-cmp2.h: New file.
19638         * modules/unistr/u8-cmp2: New file.
19639
19640 2009-04-05  Bruno Haible  <bruno@clisp.org>
19641
19642         * lib/unictype.h (uc_property_is_valid): New macro.
19643         * tests/unictype/test-pr_byname.c (main): Use it.
19644
19645         * lib/unistr.h: Doc fixes.
19646         * lib/uniconv.h: Doc fixes.
19647         * lib/unictype.h: Doc fixes.
19648
19649 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19650
19651         Port coreutils 7.2 to Solaris 8.
19652
19653         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19654         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19655         for Solaris 8.  This is a bit of a hack, as it means it's the
19656         caller's responsibility to add -lnsl if needed, but most likely it
19657         won't be needed since only getaddrinfo uses this and getaddrinfo
19658         isn't needed on Solaris 8.
19659
19660         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19661         problem to Solaris 8 encountered with coreutils 7.2, which
19662         resulted in a message "fnmatch.c:292: warning: passing argument 4
19663         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19664         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19665
19666 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19667
19668         * m4/ld-version-script.m4: Add FIXME comment.
19669
19670 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19671
19672         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19673         SOVERSION variable.
19674
19675 2009-04-02  Bruno Haible  <bruno@clisp.org>
19676
19677         * Makefile (info, html, dvi, pdf): Combine the rules.
19678         Suggested by Jim Meyering.
19679
19680 2009-04-01  Bruno Haible  <bruno@clisp.org>
19681
19682         * Makefile (info, html, dvi, pdf): New targets.
19683         Reported by Reuben Thomas <rrt@sc3d.org>.
19684
19685 2009-04-01  Bruno Haible  <bruno@clisp.org>
19686
19687         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19688         can be put into PATH.
19689         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19690
19691 2009-04-01  Bruno Haible  <bruno@clisp.org>
19692
19693         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19694
19695 2009-04-01  Bruno Haible  <bruno@clisp.org>
19696
19697         Rename module 'visibility'.
19698         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19699         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19700         * doc/gnulib.texi: Update.
19701         * MODULES.html.sh (Misc): Update.
19702         * NEWS: Mention the change.
19703
19704 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19705
19706         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19707         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19708         Eric Blake <ebb9@byu.net> for review.
19709         * MODULES.html.sh: Add lib-msvc-compat.
19710         * doc/gnulib.texi: Link to new section.
19711         * m4/ld-output-def.m4: New file.
19712         * doc/ld-output-def.texi: New file.
19713
19714 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19715
19716         Rename ld-version-script to lib-symbol-versions.  Suggested by
19717         Bruno Haible <bruno@clisp.org>.
19718         * modules/ld-version-script: Renamed to lib-symbol-versions.
19719         * doc/ld-version-script.texi: Fix module name.
19720         * MODULES.html.sh: Add lib-symbol-versions.
19721
19722 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19723
19724         * modules/u64-tests: New file.
19725         * tests/test-u64.c: New file.
19726
19727 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19728
19729         * MODULES.html.sh: Mention u64.
19730         * modules/u64: New module.
19731         * modules/crypto/sha512: Depend on u64 module instead of providing
19732         u64.h.
19733
19734 2009-03-27  Eric Blake  <ebb9@byu.net>
19735
19736         test-strerror: make debugging EAI_SYSTEM easier
19737         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19738         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19739         failure was EAI_SYSTEM.
19740
19741 2009-03-25  Bruno Haible  <bruno@clisp.org>
19742
19743         Fix a problem with --enable-relocatable on Solaris 7.
19744         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19745         since 2008-02-24.
19746
19747 2009-03-25  Eric Blake  <ebb9@byu.net>
19748
19749         test-sockets: avoid gcc warning
19750         * tests/test-sockets.c (main): Silence compiler warning.
19751
19752 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19753
19754         New modules nproc, pthread, contributed by Glen Lenker.
19755
19756         * MODULES.html.sh: Add pthread, nproc.
19757         * lib/nproc.c: New file.
19758         * lib/nproc.h: New file.
19759         * lib/pthread.in.h: New file.
19760         * m4/pthread.m4: New file.
19761         * modules/nproc: New file.
19762         * modules/pthread: New file.
19763
19764 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19765
19766         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19767         New variable.
19768
19769 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19770
19771         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19772         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19773         * tests/test-filevercmp.c: Add tests for backup suffixes.
19774
19775 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19776
19777         * modules/stdlib (Depends-on): Add stdint, needed when defining
19778         struct random_data on, for example, HP-UX 10.20.  Reported by
19779         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19780
19781 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19782
19783         * lib/readline.c (readline): Call fflush on stdout after printing
19784         prompt.
19785
19786 2009-03-20  Bruno Haible  <bruno@clisp.org>
19787
19788         Remove dependency from 'close' module to -lws2_32 on native Windows.
19789         * lib/close-hook.h: New file.
19790         * lib/close-hook.c: New file.
19791         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19792         w32sock.h.
19793         (_gl_close_fd_maybe_socket): Remove function.
19794         (rpl_close): Invoke execute_all_close_hooks instead of
19795         _gl_close_fd_maybe_socket.
19796         * lib/sockets.c: Include close-hook.h, w32sock.h.
19797         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19798         (close_sockets_hook): New variable.
19799         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19800         (gl_sockets_cleanup): Unregister it.
19801         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19802         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19803         * modules/close-hook: New file.
19804         * modules/close (Files): Remove lib/w32sock.h.
19805         (Depends-on): Add close-hook.
19806         (Link): Remove section.
19807         * modules/sockets (Files): Add lib/w32sock.h.
19808         (Depends-on): Add close-hook.
19809         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19810         invocation.
19811         * NEWS: Mention that LIB_CLOSE is gone.
19812
19813 2009-03-23  Eric Blake  <ebb9@byu.net>
19814
19815         signal-tests: test previous patch
19816         * tests/test-signal.c: New file.
19817         * modules/signal-tests: Likewise.
19818
19819         signal.h: always support 'volatile sig_atomic_t'
19820         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19821         (gl_SIGNAL_H_DEFAULTS): Add a default.
19822         * modules/signal (Makefile.am): Substitute if needed.
19823         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19824         users can blindly add volatile.
19825         * doc/posix-headers/signal.texi (signal.h): Document it.
19826         Reported by Matthew Woehlke.
19827
19828 2009-03-23  Jim Meyering  <meyering@redhat.com>
19829
19830         pathmax: PATH_MAX: use pathconf only when available
19831         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19832         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19833         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19834         This avoids a link failure in a PSP cross-compilation environment
19835         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19836
19837         * lib/vasnprintf.c (divide): Fix typo in comment.
19838
19839 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19840
19841         * gnulib-tool (func_filter_filelist): Fix comment.
19842
19843 2009-03-20  Bruno Haible  <bruno@clisp.org>
19844
19845         Make sockets.h self-contained.
19846         * lib/sockets.c: Include sockets.h first.
19847         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19848
19849 2009-03-19  Eric Blake  <ebb9@byu.net>
19850
19851         doc: mention more functions added in cygwin 1.7.0
19852         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19853         addition.
19854         * doc/posix-functions/log2f.texi: Likewise.
19855
19856 2009-03-19  Jim Meyering  <meyering@redhat.com>
19857
19858         fsusage: avoid syntax error due to statement-before-declaration
19859         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19860         after all declarations.  Reported by Matthew Woehlke in
19861         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19862
19863 2009-03-18  Eric Blake  <ebb9@byu.net>
19864
19865         build-aux/compile: sync from automake
19866         * build-aux/compile: New file, from automake.
19867         * config/srclist.txt: Mention build-aux/compile.
19868
19869 2009-03-17  Bruno Haible  <bruno@clisp.org>
19870
19871         * lib/git-merge-changelog.c: Fix typo in comment.
19872         Reported by Reuben Thomas <rrt@sc3d.org>.
19873
19874 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19875
19876         * m4/regex.m4: update and improve help for
19877         --without-included-regex.
19878
19879 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19880
19881         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19882         failure on missing include files.
19883
19884 2009-03-17  Eric Blake  <ebb9@byu.net>
19885
19886         doc: mention more functions added in cygwin 1.7.0
19887         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19888         addition.
19889         * doc/posix-functions/fwscanf.texi: Likewise.
19890         * doc/posix-functions/swprintf.texi: Likewise.
19891         * doc/posix-functions/swscanf.texi: Likewise.
19892         * doc/posix-functions/vfwprintf.texi: Likewise.
19893         * doc/posix-functions/vfwscanf.texi: Likewise.
19894         * doc/posix-functions/vswprintf.texi: Likewise.
19895         * doc/posix-functions/vswscanf.texi: Likewise.
19896         * doc/posix-functions/vwprintf.texi: Likewise.
19897         * doc/posix-functions/vwscanf.texi: Likewise.
19898         * doc/posix-functions/wcscasecmp.texi: Likewise.
19899         * doc/posix-functions/wcsdup.texi: Likewise.
19900         * doc/posix-functions/wcsftime.texi: Likewise.
19901         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19902         * doc/posix-functions/wprintf.texi: Likewise.
19903         * doc/posix-functions/wscanf.texi: Likewise.
19904         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19905
19906 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19907
19908         maint.mk: really add $(AM_MAKEFLAGS)
19909         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19910         was inadvertently omitted in the last commit.
19911         Spotted by Bruno Haible.
19912
19913         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19914         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19915         $(AM_MAKEFLAGS)' rather than plain `make'.
19916
19917         gnulib-tool: execute $MAKE not make
19918         * gnulib-tool: Default $MAKE to 'make'.
19919         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19920         than make.  Initialize $MAKE in the do-autobuild script.
19921
19922         gnulib-tool: use $MAKE not make in generated files
19923         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19924         make, in generated files.  Initialize $MAKE in the do-autobuild
19925         script.
19926
19927         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19928
19929         GNUmakefile: disable parallelism only for multiple, recursive targets
19930         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19931         additions in the Makefile.
19932         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19933         by Automake.
19934         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19935         are listed on the command line and at least one of them is
19936         listed in $(ALL_RECURSIVE_TARGETS).
19937
19938 2009-03-14  Bruno Haible  <bruno@clisp.org>
19939
19940         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19941         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19942         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19943         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19944         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19945         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19946         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19947         unistr/u8-uctomb.
19948         * modules/unistr/u8-strchr (Depends-on): Likewise.
19949         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19950         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19951         unistr/u16-uctomb.
19952         * modules/unistr/u16-strchr (Depends-on): Likewise.
19953         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19954
19955 2009-03-12  Bruno Haible  <bruno@clisp.org>
19956
19957         Work around select() bug on Interix 3.5.
19958         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19959         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19960         * m4/select.m4: New file.
19961         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19962         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19963         * modules/select (Files): Add m4/select.m4.
19964         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19965         * modules/nanosleep (Depends-on): Add select.
19966         * modules/poll (Depends-on): Likewise.
19967         * doc/posix-functions/select.texi: Mention the Interix bug.
19968         Reported by Markus Duft <mduft@gentoo.org>.
19969
19970         * lib/select.c: Renamed from lib/winsock-select.c.
19971         * modules/select (Files): Add lib/select.c, remove
19972         lib/winsock-select.c.
19973         (configure.ac): Update.
19974
19975 2009-03-12  Jim Meyering  <meyering@redhat.com>
19976
19977         avoid gcc warnings about unused macro definitions
19978         * lib/readtokens.c (STREQ): Remove unused definition.
19979         * lib/xmalloc.c (SIZE_MAX): Likewise.
19980         * lib/openat-die.c (N_): Likewise.
19981         * lib/mountlist.c (SIZE_MAX): Remove definition.
19982         Instead, include <stdint.h>.
19983         * lib/readutmp.c: Likewise.
19984         * modules/readutmp (Depends-on): Add stdint.
19985         * modules/mountlist (Depends-on): Add stdint.
19986         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19987
19988 2009-03-10  Bruno Haible  <bruno@clisp.org>
19989
19990         Tests for module 'mbmemcasecoll'.
19991         * modules/mbmemcasecoll-tests: New file.
19992         * tests/test-mbmemcasecoll1.sh: New file.
19993         * tests/test-mbmemcasecoll2.sh: New file.
19994         * tests/test-mbmemcasecoll3.sh: New file.
19995         * tests/test-mbmemcasecoll.c: New file.
19996
19997         New module 'mbmemcasecoll'.
19998         * lib/mbmemcasecoll.h: New file.
19999         * lib/mbmemcasecoll.c: New file.
20000         * modules/mbmemcasecoll: New file.
20001
20002         * tests/test-mbmemcasecmp.h: New file, extracted from
20003         tests/test-mbmemcasecmp.c.
20004         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
20005         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
20006         (main): Update.
20007         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
20008
20009 2009-03-09  Bruno Haible  <bruno@clisp.org>
20010
20011         Tests for module 'mbmemcasecmp'.
20012         * modules/mbmemcasecmp-tests: New file.
20013         * tests/test-mbmemcasecmp1.sh: New file.
20014         * tests/test-mbmemcasecmp2.sh: New file.
20015         * tests/test-mbmemcasecmp3.sh: New file.
20016         * tests/test-mbmemcasecmp.c: New file.
20017
20018         New module 'mbmemcasecmp'.
20019         * lib/mbmemcasecmp.h: New file.
20020         * lib/mbmemcasecmp.c: New file.
20021         * modules/mbmemcasecmp: New file.
20022
20023 2009-03-09  Bruno Haible  <bruno@clisp.org>
20024
20025         Tests for module 'unicase/ulc-casecoll'.
20026         * modules/unicase/ulc-casecoll-tests: New file.
20027         * tests/unicase/test-ulc-casecoll1.sh: New file.
20028         * tests/unicase/test-ulc-casecoll2.sh: New file.
20029         * tests/unicase/test-ulc-casecoll.c: New file.
20030
20031         New module 'unicase/ulc-casecoll'.
20032         * lib/unicase.h (ulc_casecoll): New declaration.
20033         * lib/unicase/ulc-casecoll.c: New file.
20034         * modules/unicase/ulc-casecoll: New file.
20035
20036         New module 'unicase/ulc-casexfrm'.
20037         * lib/unicase.h (ulc_casexfrm): New declaration.
20038         * lib/unicase/ulc-casexfrm.c: New file.
20039         * modules/unicase/ulc-casexfrm: New file.
20040
20041 2009-03-09  Bruno Haible  <bruno@clisp.org>
20042
20043         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
20044         invocations.
20045
20046         * m4/mbscasecmp.m4: Remove file.
20047         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
20048         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
20049
20050         * m4/mbscasestr.m4: Remove file.
20051         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
20052         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
20053
20054         * m4/mbschr.m4: Remove file.
20055         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
20056         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
20057
20058         * m4/mbscspn.m4: Remove file.
20059         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
20060         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
20061
20062         * m4/mbslen.m4: Remove file.
20063         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
20064         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
20065
20066         * m4/mbsncasecmp.m4: Remove file.
20067         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
20068         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
20069
20070         * m4/mbsnlen.m4: Remove file.
20071         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
20072         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
20073
20074         * m4/mbspbrk.m4: Remove file.
20075         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
20076         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
20077
20078         * m4/mbspcasecmp.m4: Remove file.
20079         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
20080         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
20081
20082         * m4/mbsrchr.m4: Remove file.
20083         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
20084         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
20085
20086         * m4/mbssep.m4: Remove file.
20087         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
20088         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
20089
20090         * m4/mbsspn.m4: Remove file.
20091         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
20092         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
20093
20094         * m4/mbsstr.m4: Remove file.
20095         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
20096         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
20097
20098         * m4/mbstok_r.m4: Remove file.
20099         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
20100         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
20101
20102         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
20103
20104         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
20105         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
20106
20107         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
20108
20109 2009-03-08  Bruno Haible  <bruno@clisp.org>
20110
20111         Tests for module 'unicase/ulc-casecmp'.
20112         * modules/unicase/ulc-casecmp-tests: New file.
20113         * tests/unicase/test-ulc-casecmp1.sh: New file.
20114         * tests/unicase/test-ulc-casecmp2.sh: New file.
20115         * tests/unicase/test-ulc-casecmp.c: New file.
20116
20117         New module 'unicase/ulc-casecmp'.
20118         * lib/unicase.h (ulc_casecmp): New declaration.
20119         * lib/unicase/ulc-casecmp.c: New file.
20120         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
20121         'const SRC_UNIT *'.
20122         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
20123         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
20124         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
20125         * modules/unicase/ulc-casecmp: New file.
20126
20127         Tests for module 'unicase/u32-is-cased'.
20128         * modules/unicase/u32-is-cased-tests: New file.
20129         * tests/unicase/test-u32-is-cased.c: New file.
20130
20131         Tests for module 'unicase/u16-is-cased'.
20132         * modules/unicase/u16-is-cased-tests: New file.
20133         * tests/unicase/test-u16-is-cased.c: New file.
20134
20135         Tests for module 'unicase/u8-is-cased'.
20136         * modules/unicase/u8-is-cased-tests: New file.
20137         * tests/unicase/test-u8-is-cased.c: New file.
20138         * tests/unicase/test-is-cased.h: New file.
20139
20140         New module 'unicase/u32-is-cased'.
20141         * lib/unicase/u32-is-cased.c: New file.
20142         * modules/unicase/u32-is-cased: New file.
20143
20144         New module 'unicase/u16-is-cased'.
20145         * lib/unicase/u16-is-cased.c: New file.
20146         * modules/unicase/u16-is-cased: New file.
20147
20148         New module 'unicase/u8-is-cased'.
20149         * lib/unicase/u8-is-cased.c: New file.
20150         * lib/unicase/u-is-cased.h: New file.
20151         * modules/unicase/u8-is-cased: New file.
20152
20153         Tests for module 'unicase/u32-is-casefolded'.
20154         * modules/unicase/u32-is-casefolded-tests: New file.
20155         * tests/unicase/test-u32-is-casefolded.c: New file.
20156
20157         Tests for module 'unicase/u16-is-casefolded'.
20158         * modules/unicase/u16-is-casefolded-tests: New file.
20159         * tests/unicase/test-u16-is-casefolded.c: New file.
20160
20161         Tests for module 'unicase/u8-is-casefolded'.
20162         * modules/unicase/u8-is-casefolded-tests: New file.
20163         * tests/unicase/test-u8-is-casefolded.c: New file.
20164         * tests/unicase/test-is-casefolded.h: New file.
20165
20166         New module 'unicase/u32-is-casefolded'.
20167         * lib/unicase/u32-is-casefolded.c: New file.
20168         * modules/unicase/u32-is-casefolded: New file.
20169
20170         New module 'unicase/u16-is-casefolded'.
20171         * lib/unicase/u16-is-casefolded.c: New file.
20172         * modules/unicase/u16-is-casefolded: New file.
20173
20174         New module 'unicase/u8-is-casefolded'.
20175         * lib/unicase/u8-is-casefolded.c: New file.
20176         * modules/unicase/u8-is-casefolded: New file.
20177
20178         Tests for module 'unicase/u32-is-titlecase'.
20179         * modules/unicase/u32-is-titlecase-tests: New file.
20180         * tests/unicase/test-u32-is-titlecase.c: New file.
20181
20182         Tests for module 'unicase/u16-is-titlecase'.
20183         * modules/unicase/u16-is-titlecase-tests: New file.
20184         * tests/unicase/test-u16-is-titlecase.c: New file.
20185
20186         Tests for module 'unicase/u8-is-titlecase'.
20187         * modules/unicase/u8-is-titlecase-tests: New file.
20188         * tests/unicase/test-u8-is-titlecase.c: New file.
20189         * tests/unicase/test-is-titlecase.h: New file.
20190
20191         New module 'unicase/u32-is-titlecase'.
20192         * lib/unicase/u32-is-titlecase.c: New file.
20193         * modules/unicase/u32-is-titlecase: New file.
20194
20195         New module 'unicase/u16-is-titlecase'.
20196         * lib/unicase/u16-is-titlecase.c: New file.
20197         * modules/unicase/u16-is-titlecase: New file.
20198
20199         New module 'unicase/u8-is-titlecase'.
20200         * lib/unicase/u8-is-titlecase.c: New file.
20201         * modules/unicase/u8-is-titlecase: New file.
20202
20203         Tests for module 'unicase/u32-is-lowercase'.
20204         * modules/unicase/u32-is-lowercase-tests: New file.
20205         * tests/unicase/test-u32-is-lowercase.c: New file.
20206
20207         Tests for module 'unicase/u16-is-lowercase'.
20208         * modules/unicase/u16-is-lowercase-tests: New file.
20209         * tests/unicase/test-u16-is-lowercase.c: New file.
20210
20211         Tests for module 'unicase/u8-is-lowercase'.
20212         * modules/unicase/u8-is-lowercase-tests: New file.
20213         * tests/unicase/test-u8-is-lowercase.c: New file.
20214         * tests/unicase/test-is-lowercase.h: New file.
20215
20216         New module 'unicase/u32-is-lowercase'.
20217         * lib/unicase/u32-is-lowercase.c: New file.
20218         * modules/unicase/u32-is-lowercase: New file.
20219
20220         New module 'unicase/u16-is-lowercase'.
20221         * lib/unicase/u16-is-lowercase.c: New file.
20222         * modules/unicase/u16-is-lowercase: New file.
20223
20224         New module 'unicase/u8-is-lowercase'.
20225         * lib/unicase/u8-is-lowercase.c: New file.
20226         * modules/unicase/u8-is-lowercase: New file.
20227
20228         Tests for module 'unicase/u32-is-uppercase'.
20229         * modules/unicase/u32-is-uppercase-tests: New file.
20230         * tests/unicase/test-u32-is-uppercase.c: New file.
20231
20232         Tests for module 'unicase/u16-is-uppercase'.
20233         * modules/unicase/u16-is-uppercase-tests: New file.
20234         * tests/unicase/test-u16-is-uppercase.c: New file.
20235
20236         Tests for module 'unicase/u8-is-uppercase'.
20237         * modules/unicase/u8-is-uppercase-tests: New file.
20238         * tests/unicase/test-u8-is-uppercase.c: New file.
20239         * tests/unicase/test-is-uppercase.h: New file.
20240
20241         New module 'unicase/u32-is-uppercase'.
20242         * lib/unicase/u32-is-uppercase.c: New file.
20243         * modules/unicase/u32-is-uppercase: New file.
20244
20245         New module 'unicase/u16-is-uppercase'.
20246         * lib/unicase/u16-is-uppercase.c: New file.
20247         * modules/unicase/u16-is-uppercase: New file.
20248
20249         New module 'unicase/u8-is-uppercase'.
20250         * lib/unicase/u8-is-uppercase.c: New file.
20251         * modules/unicase/u8-is-uppercase: New file.
20252
20253         New module 'unicase/u32-is-invariant'.
20254         * lib/unicase/u32-is-invariant.c: New file.
20255         * modules/unicase/u32-is-invariant: New file.
20256
20257         New module 'unicase/u16-is-invariant'.
20258         * lib/unicase/u16-is-invariant.c: New file.
20259         * modules/unicase/u16-is-invariant: New file.
20260
20261         New module 'unicase/u8-is-invariant'.
20262         * lib/unicase/u8-is-invariant.c: New file.
20263         * lib/unicase/invariant.h: New file.
20264         * lib/unicase/u-is-invariant.h: New file.
20265         * modules/unicase/u8-is-invariant: New file.
20266
20267         Tests for module 'unicase/u32-casecoll'.
20268         * modules/unicase/u32-casecoll-tests: New file.
20269         * tests/unicase/test-u32-casecoll.c: New file.
20270
20271         Tests for module 'unicase/u16-casecoll'.
20272         * modules/unicase/u16-casecoll-tests: New file.
20273         * tests/unicase/test-u16-casecoll.c: New file.
20274
20275         Tests for module 'unicase/u8-casecoll'.
20276         * modules/unicase/u8-casecoll-tests: New file.
20277         * tests/unicase/test-u8-casecoll.c: New file.
20278
20279         New module 'unicase/u32-casecoll'.
20280         * lib/unicase/u32-casecoll.c: New file.
20281         * modules/unicase/u32-casecoll: New file.
20282
20283         New module 'unicase/u16-casecoll'.
20284         * lib/unicase/u16-casecoll.c: New file.
20285         * modules/unicase/u16-casecoll: New file.
20286
20287         New module 'unicase/u8-casecoll'.
20288         * lib/unicase/u8-casecoll.c: New file.
20289         * lib/unicase/u-casecoll.h: New file.
20290         * modules/unicase/u8-casecoll: New file.
20291
20292         New module 'unicase/u32-casexfrm'.
20293         * lib/unicase/u32-casexfrm.c: New file.
20294         * modules/unicase/u32-casexfrm: New file.
20295
20296         New module 'unicase/u16-casexfrm'.
20297         * lib/unicase/u16-casexfrm.c: New file.
20298         * modules/unicase/u16-casexfrm: New file.
20299
20300         New module 'unicase/u8-casexfrm'.
20301         * lib/unicase/u8-casexfrm.c: New file.
20302         * lib/unicase/u-casexfrm.h: New file.
20303         * modules/unicase/u8-casexfrm: New file.
20304
20305         Tests for module 'unicase/u32-casecmp'.
20306         * modules/unicase/u32-casecmp-tests: New file.
20307         * tests/unicase/test-u32-casecmp.c: New file.
20308
20309         Tests for module 'unicase/u16-casecmp'.
20310         * modules/unicase/u16-casecmp-tests: New file.
20311         * tests/unicase/test-u16-casecmp.c: New file.
20312
20313         Tests for module 'unicase/u8-casecmp'.
20314         * modules/unicase/u8-casecmp-tests: New file.
20315         * tests/unicase/test-u8-casecmp.c: New file.
20316         * tests/unicase/test-casecmp.h: New file.
20317
20318         New module 'unicase/u32-casecmp'.
20319         * lib/unicase/u32-casecmp.c: New file.
20320         * modules/unicase/u32-casecmp: New file.
20321
20322         New module 'unicase/u16-casecmp'.
20323         * lib/unicase/u16-casecmp.c: New file.
20324         * modules/unicase/u16-casecmp: New file.
20325
20326         New module 'unicase/u8-casecmp'.
20327         * lib/unicase/u8-casecmp.c: New file.
20328         * lib/unicase/u-casecmp.h: New file.
20329         * modules/unicase/u8-casecmp: New file.
20330
20331         Tests for module 'unicase/u32-casefold'.
20332         * modules/unicase/u32-casefold-tests: New file.
20333         * tests/unicase/test-u32-casefold.c: New file.
20334
20335         Tests for module 'unicase/u16-casefold'.
20336         * modules/unicase/u16-casefold-tests: New file.
20337         * tests/unicase/test-u16-casefold.c: New file.
20338
20339         Tests for module 'unicase/u8-casefold'.
20340         * modules/unicase/u8-casefold-tests: New file.
20341         * tests/unicase/test-u8-casefold.c: New file.
20342
20343         New module 'unicase/u32-casefold'.
20344         * lib/unicase/u32-casefold.c: New file.
20345         * modules/unicase/u32-casefold: New file.
20346
20347         New module 'unicase/u16-casefold'.
20348         * lib/unicase/u16-casefold.c: New file.
20349         * modules/unicase/u16-casefold: New file.
20350
20351         New module 'unicase/u8-casefold'.
20352         * lib/unicase/u8-casefold.c: New file.
20353         * lib/unicase/u-casefold.h: New file.
20354         * modules/unicase/u8-casefold: New file.
20355
20356         New module 'unicase/tocasefold'.
20357         * lib/unicase/casefold.h: New file.
20358         * lib/unicase/tocasefold.c: New file.
20359         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20360         * modules/unicase/tocasefold: New file.
20361
20362         Tests for module 'unicase/u32-totitle'.
20363         * modules/unicase/u32-totitle-tests: New file.
20364         * tests/unicase/test-u32-totitle.c: New file.
20365
20366         Tests for module 'unicase/u16-totitle'.
20367         * modules/unicase/u16-totitle-tests: New file.
20368         * tests/unicase/test-u16-totitle.c: New file.
20369
20370         Tests for module 'unicase/u8-totitle'.
20371         * modules/unicase/u8-totitle-tests: New file.
20372         * tests/unicase/test-u8-totitle.c: New file.
20373
20374         New module 'unicase/u32-totitle'.
20375         * lib/unicase/u32-totitle.c: New file.
20376         * modules/unicase/u32-totitle: New file.
20377
20378         New module 'unicase/u16-totitle'.
20379         * lib/unicase/u16-totitle.c: New file.
20380         * modules/unicase/u16-totitle: New file.
20381
20382         New module 'unicase/u8-totitle'.
20383         * lib/unicase/u8-totitle.c: New file.
20384         * lib/unicase/u-totitle.h: New file.
20385         * modules/unicase/u8-totitle: New file.
20386
20387         Tests for module 'unicase/u32-tolower'.
20388         * modules/unicase/u32-tolower-tests: New file.
20389         * tests/unicase/test-u32-tolower.c: New file.
20390
20391         Tests for module 'unicase/u16-tolower'.
20392         * modules/unicase/u16-tolower-tests: New file.
20393         * tests/unicase/test-u16-tolower.c: New file.
20394
20395         Tests for module 'unicase/u8-tolower'.
20396         * modules/unicase/u8-tolower-tests: New file.
20397         * tests/unicase/test-u8-tolower.c: New file.
20398
20399         New module 'unicase/u32-tolower'.
20400         * lib/unicase/u32-tolower.c: New file.
20401         * modules/unicase/u32-tolower: New file.
20402
20403         New module 'unicase/u16-tolower'.
20404         * lib/unicase/u16-tolower.c: New file.
20405         * modules/unicase/u16-tolower: New file.
20406
20407         New module 'unicase/u8-tolower'.
20408         * lib/unicase/u8-tolower.c: New file.
20409         * modules/unicase/u8-tolower: New file.
20410
20411         Tests for module 'unicase/u32-toupper'.
20412         * modules/unicase/u32-toupper-tests: New file.
20413         * tests/unicase/test-u32-toupper.c: New file.
20414
20415         Tests for module 'unicase/u16-toupper'.
20416         * modules/unicase/u16-toupper-tests: New file.
20417         * tests/unicase/test-u16-toupper.c: New file.
20418
20419         Tests for module 'unicase/u8-toupper'.
20420         * modules/unicase/u8-toupper-tests: New file.
20421         * tests/unicase/test-u8-toupper.c: New file.
20422
20423         New module 'unicase/u32-toupper'.
20424         * lib/unicase/u32-toupper.c: New file.
20425         * modules/unicase/u32-toupper: New file.
20426
20427         New module 'unicase/u16-toupper'.
20428         * lib/unicase/u16-toupper.c: New file.
20429         * modules/unicase/u16-toupper: New file.
20430
20431         New module 'unicase/u8-toupper'.
20432         * lib/unicase/u8-toupper.c: New file.
20433         * modules/unicase/u8-toupper: New file.
20434
20435         New module 'unicase/u32-casemap'.
20436         * lib/unicase/u32-casemap.c: New file.
20437         * modules/unicase/u32-casemap: New file.
20438
20439         New module 'unicase/u16-casemap'.
20440         * lib/unicase/u16-casemap.c: New file.
20441         * modules/unicase/u16-casemap: New file.
20442
20443         New module 'unicase/u8-casemap'.
20444         * lib/unicase/unicasemap.h: New file.
20445         * lib/unicase/u8-casemap.c: New file.
20446         * lib/unicase/u-casemap.h: New file.
20447         * modules/unicase/u8-casemap: New file.
20448
20449         New module 'unicase/special-casing'.
20450         * lib/unicase/special-casing.h: New file.
20451         * lib/unicase/special-casing.c: New file.
20452         * lib/unicase/special-casing-table.gperf: New file, generated by
20453         gen-uni-tables.c.
20454         * modules/unicase/special-casing: New file.
20455
20456         Tests for module 'unicase/locale-language'.
20457         * modules/unicase/locale-language-tests: New file.
20458         * tests/unicase/test-locale-language.sh: New file.
20459         * tests/unicase/test-locale-language.c: New file.
20460
20461         New module 'unicase/locale-language'.
20462         * lib/unicase/locale-language.c: New file.
20463         * lib/unicase/locale-languages.gperf: New file.
20464         * modules/unicase/locale-language: New file.
20465
20466         Generate more tables for case conversion and case folding.
20467         * lib/gen-uni-tables.c (SCC_*): New enum items.
20468         (struct special_casing_rule): New type.
20469         (casing_rules, num_casing_rules, allocated_casing_rules): New
20470         variables.
20471         (add_casing_rule, fill_casing_rules): New functions.
20472         (struct casefold_rule): New type.
20473         (casefolding_rules, num_casefolding_rules,
20474         allocated_casefolding_rules): New variables.
20475         (fill_casefolding_rules): New function.
20476         (unicode_casefold): New variable.
20477         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20478         sort_casing_rules, output_casing_rules): New functions.
20479         (main): Accept to more arguments: SpecialCasing.txt and
20480         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20481         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20482         Output mapping for casefolding.
20483
20484         * lib/unicase.h: Include stdbool.h, uninorm.h.
20485         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20486         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20487         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20488         arguments.
20489         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20490         resultp arguments.
20491         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20492         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20493         resultp arguments.
20494         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20495         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20496         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20497         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20498         declarations.
20499         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20500
20501 2009-03-08  Bruno Haible  <bruno@clisp.org>
20502
20503         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20504         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20505         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20506         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20507
20508 2009-03-07  Bruno Haible  <bruno@clisp.org>
20509
20510         Adjust u*_normcmp, u*_normcoll API.
20511         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20512         u16_normcoll, u32_normcoll): Change failure conventions.
20513         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20514         errno and return -1.
20515         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20516
20517 2009-03-07  Bruno Haible  <bruno@clisp.org>
20518
20519         Tests for module 'uninorm/u32-normcoll'.
20520         * modules/uninorm/u32-normcoll-tests: New file.
20521         * tests/uninorm/test-u32-normcoll.c: New file.
20522
20523         Tests for module 'uninorm/u16-normcoll'.
20524         * modules/uninorm/u16-normcoll-tests: New file.
20525         * tests/uninorm/test-u16-normcoll.c: New file.
20526
20527         Tests for module 'uninorm/u8-normcoll'.
20528         * modules/uninorm/u8-normcoll-tests: New file.
20529         * tests/uninorm/test-u8-normcoll.c: New file.
20530
20531 2009-03-07  Bruno Haible  <bruno@clisp.org>
20532
20533         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20534         tests/uninorm/test-u32-normcmp.c.
20535         * tests/uninorm/test-u32-normcmp.c: Include it.
20536         (test_nonascii): New function, extracted from main. Add some more
20537         tests.
20538         (main): Invoke test_ascii and test_nonascii.
20539         * modules/uninorm/u32-normcmp-tests (Files): Add
20540         tests/uninorm/test-u32-normcmp.h.
20541         (Depends-on): Remove uninorm/u32-normcmp.
20542
20543         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20544         tests/uninorm/test-u16-normcmp.c.
20545         * tests/uninorm/test-u16-normcmp.c: Include it.
20546         (test_nonascii): New function, extracted from main. Add some more
20547         tests.
20548         (main): Invoke test_ascii and test_nonascii.
20549         * modules/uninorm/u16-normcmp-tests (Files): Add
20550         tests/uninorm/test-u16-normcmp.h.
20551         (Depends-on): Remove uninorm/u16-normcmp.
20552
20553         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20554         tests/uninorm/test-u8-normcmp.c.
20555         * tests/uninorm/test-u8-normcmp.c: Include it.
20556         (test_nonascii): New function, extracted from main. Add some more
20557         tests.
20558         (main): Invoke test_ascii and test_nonascii.
20559         * modules/uninorm/u8-normcmp-tests (Files): Add
20560         tests/uninorm/test-u8-normcmp.h.
20561         (Depends-on): Remove uninorm/u8-normcmp.
20562
20563 2009-03-07  Bruno Haible  <bruno@clisp.org>
20564
20565         New module 'uninorm/u32-normcoll'.
20566         * lib/uninorm/u32-normcoll.c: New file.
20567         * modules/uninorm/u32-normcoll: New file.
20568
20569         New module 'uninorm/u16-normcoll'.
20570         * lib/uninorm/u16-normcoll.c: New file.
20571         * modules/uninorm/u16-normcoll: New file.
20572
20573         New module 'uninorm/u8-normcoll'.
20574         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20575         declarations.
20576         * lib/uninorm/u8-normcoll.c: New file.
20577         * lib/uninorm/u-normcoll.h: New file.
20578         * modules/uninorm/u8-normcoll: New file.
20579
20580         New module 'uninorm/u32-normxfrm'.
20581         * lib/uninorm/u32-normxfrm.c: New file.
20582         * modules/uninorm/u32-normxfrm: New file.
20583
20584         New module 'uninorm/u16-normxfrm'.
20585         * lib/uninorm/u16-normxfrm.c: New file.
20586         * modules/uninorm/u16-normxfrm: New file.
20587
20588         New module 'uninorm/u8-normxfrm'.
20589         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20590         declarations.
20591         * lib/uninorm/u8-normxfrm.c: New file.
20592         * lib/uninorm/u-normxfrm.h: New file.
20593         * modules/uninorm/u8-normxfrm: New file.
20594
20595 2009-03-07  Bruno Haible  <bruno@clisp.org>
20596
20597         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20598         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20599         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20600
20601 2009-03-07  Bruno Haible  <bruno@clisp.org>
20602
20603         New module 'memxfrm'.
20604         * lib/memxfrm.h: New file.
20605         * lib/memxfrm.c: New file.
20606         * modules/memxfrm: New file.
20607
20608 2009-03-07  Bruno Haible  <bruno@clisp.org>
20609
20610         New module 'memcmp2'.
20611         * lib/memcmp2.h: New file.
20612         * lib/memcmp2.c: New file.
20613         * modules/memcmp2: New file.
20614
20615 2009-03-07  Bruno Haible  <bruno@clisp.org>
20616
20617         Tests for module 'uninorm/decomposing-form'.
20618         * modules/uninorm/decomposing-form-tests: New file.
20619         * tests/uninorm/test-decomposing-form.c: New file.
20620
20621         New module 'uninorm/decomposing-form'.
20622         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20623         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20624         Add 'decomposing_variant' field.
20625         * lib/uninorm/decomposing-form.c: New file.
20626         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20627         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20628         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20629         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20630         * modules/uninorm/decomposing-form: New file.
20631         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20632         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20633
20634 2009-03-07  Bruno Haible  <bruno@clisp.org>
20635
20636         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20637         strings.
20638
20639 2009-03-06  Bruno Haible  <bruno@clisp.org>
20640
20641         Tests for module 'uninorm/u32-normcmp'.
20642         * tests/uninorm/test-u32-normcmp.c: New file.
20643         * modules/uninorm/u32-normcmp-tests: New file.
20644
20645         Tests for module 'uninorm/u16-normcmp'.
20646         * tests/uninorm/test-u16-normcmp.c: New file.
20647         * modules/uninorm/u16-normcmp-tests: New file.
20648
20649         Tests for module 'uninorm/u8-normcmp'.
20650         * tests/uninorm/test-u8-normcmp.c: New file.
20651         * modules/uninorm/u8-normcmp-tests: New file.
20652
20653         New module 'uninorm/u32-normcmp'.
20654         * lib/uninorm/u32-normcmp.c: New file.
20655         * modules/uninorm/u32-normcmp: New file.
20656
20657         New module 'uninorm/u16-normcmp'.
20658         * lib/uninorm/u16-normcmp.c: New file.
20659         * modules/uninorm/u16-normcmp: New file.
20660
20661         New module 'uninorm/u8-normcmp'.
20662         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20663         declarations.
20664         * lib/uninorm/u8-normcmp.c: New file.
20665         * lib/uninorm/u-normcmp.h: New file.
20666         * modules/uninorm/u8-normcmp: New file.
20667
20668 2009-03-06  Bruno Haible  <bruno@clisp.org>
20669
20670         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20671         Reported by Eric Blake.
20672
20673 2009-03-06  Eric Blake  <ebb9@byu.net>
20674             Bruno Haible  <bruno@clisp.org>
20675
20676         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20677         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20678         condition.
20679         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20680         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20681         condition.
20682         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20683
20684 2009-03-06  Eric Blake  <ebb9@byu.net>
20685
20686         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20687         to avoid compiler warnings.
20688         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20689
20690 2009-03-05  Bruno Haible  <bruno@clisp.org>
20691
20692         * tests/test-ftell.c (main): Disable test beyond end of file on
20693         FreeMiNT.
20694         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20695
20696 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20697
20698         * lib/filevercmp.c: Move hidden files up in ordering.
20699         * tests/test-filevercmp.c: Add tests for hidden files.
20700
20701 2009-03-04  Bruno Haible  <bruno@clisp.org>
20702
20703         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20704         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20705         AM_CFLAGS.
20706         Reported by Simon Josefsson.
20707
20708 2009-03-03  Bruno Haible  <bruno@clisp.org>
20709
20710         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20711         Reported by Simon Josefsson.
20712
20713         * doc/ld-version-script.texi: Update node reference.
20714
20715 2009-03-03  Bruno Haible  <bruno@clisp.org>
20716
20717         * modules/visibility (License): Change to 'unlimited'.
20718         Suggested by Simon Josefsson.
20719
20720 2009-03-03  Jim Meyering  <meyering@redhat.com>
20721
20722         unlinkdir: cannot_unlink_dir may modify process state
20723         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20724         it's neither thread-safe nor appropriate for use in a library.
20725
20726 2009-03-03  Eric Blake  <ebb9@byu.net>
20727
20728         test-closein: silence test under Darwin
20729         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20730         care if it dies from EPIPE or EBADF.
20731
20732 2009-03-03  Bruno Haible  <bruno@clisp.org>
20733
20734         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20735         earlier.
20736         * doc/visibility.texi: Fix @node and @section.
20737
20738 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20739
20740         * doc/gnulib.texi: Link to sections for ld version script and
20741         visibility.
20742         * doc/visibility.texi: Add @node and @section.
20743         * modules/ld-version-script: New module.
20744         * m4/ld-version-script.m4: New file.
20745         * doc/ld-version-script.texi: New file.
20746
20747 2009-03-02  David Lutterkort  <lutter@redhat.com>
20748
20749         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20751
20752 2009-03-02  Bruno Haible  <bruno@clisp.org>
20753
20754         * doc/visibility.texi: Mention libtool's -export-symbols option.
20755
20756 2009-03-02  Jim Meyering  <meyering@redhat.com>
20757
20758         announce-gen: new option: --no-print-checksums
20759         * build-aux/announce-gen (usage): Describe it.
20760         (print_checksums): Print a newline here, not in the [*] footnote.
20761         (main): Honor it.
20762
20763 2009-03-01  Bruno Haible  <bruno@clisp.org>
20764
20765         Use socklen_t in the native Windows replacements prototypes.
20766         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20767         instead of 'int'.
20768         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20769         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20770         * modules/getsockopt (Depends-on): Add socklen.
20771         * modules/setsockopt (Depends-on): Add socklen.
20772
20773 2009-03-01  Bruno Haible  <bruno@clisp.org>
20774
20775         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20776         least 4.2.
20777
20778 2009-03-01  Eric Blake  <ebb9@byu.net>
20779             Bruno Haible  <bruno@clisp.org>
20780
20781         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20782         error messages.
20783         * lib/wait-process.c (wait_subprocess): Omit error message about
20784         deadly signal sent to the child of termsigp != NULL.
20785
20786 2009-03-01  Eric Blake  <ebb9@byu.net>
20787
20788         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20789
20790 2009-03-01  Bruno Haible  <bruno@clisp.org>
20791
20792         Avoid a gcc warning.
20793         * tests/test-sched.c (b): Make global.
20794         Reported by Eric Blake.
20795
20796 2009-01-19  Martin Lambers  <marlam@marlam.de>
20797
20798         Provide POSIX semantics for socket timeout options on W32.
20799         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20800         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20801         * modules/setsockopt: Depend on sys_time module for struct timeval.
20802         * modules/getsockopt: Depend on sys_time module for struct timeval.
20803
20804 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20805
20806         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20807         __USE_GNU, for consistency with netdb.in.h.
20808         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20809
20810 2009-03-01  Bruno Haible  <bruno@clisp.org>
20811
20812         More support for FreeMiNT.
20813         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20814         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20815
20816 2009-03-01  Bruno Haible  <bruno@clisp.org>
20817
20818         More support for FreeMiNT.
20819         * lib/fpurge.c (fpurge): Correct last commit.
20820         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20821
20822 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20823
20824         Fix unportable awk script in vc-list-files.
20825         * build-aux/vc-list-files: In the replacement awk script, use
20826         substr with a second argument of 1, not zero.
20827         Report by Simon Josefsson.
20828
20829 2009-02-28  Bruno Haible  <bruno@clisp.org>
20830
20831         More support for FreeMiNT.
20832         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20833         to FreeMiNT today.
20834         * lib/fwriting.c (fwriting): Likewise.
20835         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20836
20837 2009-02-28  Bruno Haible  <bruno@clisp.org>
20838
20839         * tests/test-freadseek.c (main): Disable test beyond end of file on
20840         FreeMiNT.
20841         * tests/test-ftello.c (main): Likewise.
20842         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20843
20844 2009-02-28  Bruno Haible  <bruno@clisp.org>
20845
20846         Add tentative support for FreeMiNT.
20847         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20848         * lib/fpurge.c (fpurge): Likewise.
20849         * lib/freadable.c (freadable): Likewise.
20850         * lib/freading.c (freading): Likewise.
20851         * lib/freadptr.c (freadptr): Likewise.
20852         * lib/freadseek.c (freadptrinc): Likewise.
20853         * lib/fseeko.c (rpl_fseeko): Likewise.
20854         * lib/fseterr.c (fseterr): Likewise.
20855         * lib/fwritable.c (fwritable): Likewise.
20856         * lib/fwriting.c (fwriting): Likewise.
20857         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20858         Hourihane.
20859         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20860
20861 2009-02-28  Bruno Haible  <bruno@clisp.org>
20862
20863         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20864         SIGCHLD.
20865         Reported by Jim Meyering.
20866
20867 2009-02-28  Bruno Haible  <bruno@clisp.org>
20868
20869         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20870         Mention the results of these tests on various platforms.
20871         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20872         order.
20873         * doc/posix-functions/printf.texi: Likewise.
20874         * doc/posix-functions/snprintf.texi: Likewise.
20875         * doc/posix-functions/sprintf.texi: Likewise.
20876         * doc/posix-functions/vfprintf.texi: Likewise.
20877         * doc/posix-functions/vprintf.texi: Likewise.
20878         * doc/posix-functions/vsnprintf.texi: Likewise.
20879         * doc/posix-functions/vsprintf.texi: Likewise.
20880         * doc/glibc-functions/obstack_printf.texi: Likewise.
20881         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20882
20883 2009-02-28  Bruno Haible  <bruno@clisp.org>
20884
20885         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20886         Reported by Loïc Minier <lool@dooz.org>.
20887
20888 2009-02-27  Bruno Haible  <bruno@clisp.org>
20889
20890         * gnulib-tool (func_import): Make the sed expression used to create the
20891         sed script for updating the .gitignore file POSIX compliant.
20892         Reported by Eric Blake.
20893
20894 2009-02-27  Bruno Haible  <bruno@clisp.org>
20895
20896         * gnulib-tool (sed): Don't alias as "sed --posix".
20897         Reported by Eric Blake.
20898
20899 2009-02-27  Bruno Haible  <bruno@clisp.org>
20900
20901         Avoid test link errors.
20902         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20903         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20904         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20905         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20907
20908 2009-02-27  Bruno Haible  <bruno@clisp.org>
20909
20910         Avoid spurious "(cached)" in configure output.
20911         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20912         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20913         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20914         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20915         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20916         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20917         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20918         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20919         Reported by Eric Blake.
20920
20921 2009-02-27  Eric Blake  <ebb9@byu.net>
20922
20923         printf: fix regression in previous patch
20924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20925
20926 2009-02-27  Bruno Haible  <bruno@clisp.org>
20927
20928         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20929         value.
20930         * lib/stdint.in.h: Likewise.
20931         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20932
20933 2009-02-27  Eric Blake  <ebb9@byu.net>
20934
20935         doc: mention more functions added in cygwin 1.7.0
20936         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20937         addition.
20938         * doc/posix-functions/open_wmemstream.texi: Likewise.
20939         * doc/posix-functions/wcsnlen.texi: Likewise.
20940         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20941         * doc/posix-functions/wcstod.texi: Likewise.
20942         * doc/posix-functions/wcstof.texi: Likewise.
20943         * doc/posix-functions/wcstoimax.texi: Likewise.
20944         * doc/posix-functions/wcstok.texi: Likewise.
20945         * doc/posix-functions/wcstoumax.texi: Likewise.
20946
20947         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20949         * doc/posix-functions/fprintf.texi: Update.
20950         * doc/posix-functions/printf.texi: Update.
20951         * doc/posix-functions/snprintf.texi: Update.
20952         * doc/posix-functions/sprintf.texi: Update.
20953         * doc/posix-functions/vfprintf.texi: Update.
20954         * doc/posix-functions/vprintf.texi: Update.
20955         * doc/posix-functions/vsnprintf.texi: Update.
20956         * doc/posix-functions/vsprintf.texi: Update.
20957         * doc/glibc-functions/obstack_printf.texi: Update.
20958         * doc/glibc-functions/obstack_vprintf.texi: Update.
20959
20960 2009-02-26  Eric Blake  <ebb9@byu.net>
20961
20962         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20963         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20964         compilation bug by using runtime conversion.
20965         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20966         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20967         * modules/ceill-tests (Files): Use nan.h.
20968         * modules/floorl-tests (Files): Likewise.
20969         * modules/frexpl-tests (Files): Likewise.
20970         * modules/isnanl-tests (Files): Likewise.
20971         * modules/ldexpl-tests (Files): Likewise.
20972         * modules/roundl-tests (Files): Likewise.
20973         * modules/truncl-tests (Files): Likewise.
20974         * tests/test-ceill.c (main): Use a working NaN.
20975         * tests/test-floorl.c (main): Likewise.
20976         * tests/test-frexpl.c (main): Likewise.
20977         * tests/test-isnan.c (test_long_double): Likewise.
20978         * tests/test-isnanl.h (main): Likewise.
20979         * tests/test-ldexpl.h (main): Likewise.
20980         * tests/test-roundl.h (main): Likewise.
20981         * tests/test-truncl.h (main): Likewise.
20982         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20983
20984 2009-02-26  Eric Blake  <ebb9@byu.net>
20985             Bruno Haible  <bruno@clisp.org>
20986
20987         Work around a *printf bug with %ls on Solaris.
20988         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20989         precision is specified, sprintf stops converting the wide string
20990         argument when the number of bytes that have been produced by this
20991         conversion equals or exceeds the precision.
20992         * doc/posix-functions/fprintf.texi: Update.
20993         * doc/posix-functions/printf.texi: Update.
20994         * doc/posix-functions/snprintf.texi: Update.
20995         * doc/posix-functions/sprintf.texi: Update.
20996         * doc/posix-functions/vfprintf.texi: Update.
20997         * doc/posix-functions/vprintf.texi: Update.
20998         * doc/posix-functions/vsnprintf.texi: Update.
20999         * doc/posix-functions/vsprintf.texi: Update.
21000         * doc/glibc-functions/obstack_printf.texi: Update.
21001         * doc/glibc-functions/obstack_vprintf.texi: Update.
21002
21003 2009-02-26  Eric Blake  <ebb9@byu.net>
21004
21005         stdlib: favor compiler check of random.h
21006         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
21007         to avoid an ObjC random.h installed by Swarm.
21008
21009 2009-02-26  Bruno Haible  <bruno@clisp.org>
21010
21011         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
21012         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
21013         Reported by Gary V. Vaughan <gary@gnu.org>.
21014
21015 2009-02-26  Bruno Haible  <bruno@clisp.org>
21016
21017         Fix *printf behaviour regarding the %ls directive.
21018         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
21019         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
21020         NEED_PRINTF_DIRECTIVE_LS.
21021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
21022         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
21023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21024         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
21025         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
21026         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
21027         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21029         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21031         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21032         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
21033         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21034         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21035         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21036         * doc/posix-functions/fprintf.texi: Update.
21037         * doc/posix-functions/printf.texi: Update.
21038         * doc/posix-functions/snprintf.texi: Update.
21039         * doc/posix-functions/sprintf.texi: Update.
21040         * doc/posix-functions/vfprintf.texi: Update.
21041         * doc/posix-functions/vprintf.texi: Update.
21042         * doc/posix-functions/vsnprintf.texi: Update.
21043         * doc/posix-functions/vsprintf.texi: Update.
21044         * doc/glibc-functions/obstack_printf.texi: Update.
21045         * doc/glibc-functions/obstack_vprintf.texi: Update.
21046         Reported by Eric Blake.
21047
21048 2009-02-25  Bruno Haible  <bruno@clisp.org>
21049
21050         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
21051         with known value.
21052         Reported by Gary V. Vaughan <gary@gnu.org>.
21053
21054 2009-02-25  Bruno Haible  <bruno@clisp.org>
21055
21056         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
21057         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
21058         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
21059         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
21060         Reported by Gary V. Vaughan <gary@gnu.org>.
21061
21062 2009-02-25  Bruno Haible  <bruno@clisp.org>
21063
21064         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
21065         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
21066         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
21067         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
21068         Reported by Gary V. Vaughan <gary@gnu.org>.
21069
21070 2009-02-25  Eric Blake  <ebb9@byu.net>
21071
21072         tests: skip fseek/ftell tests if ungetc is broken
21073         * m4/ungetc.m4: New file.
21074         * modules/fseek-tests: Split test, so ungetc dependency is
21075         separate from rest of test.
21076         * modules/fseeko-tests: Likewise.
21077         * modules/ftell-tests: Likewise.
21078         * modules/ftello-tests: Likewise.
21079         * tests/test-fseek.c (main): Isolate ungetc dependency.
21080         * tests/test-fseeko.c (main): Likewise.
21081         * tests/test-ftell.c (main): Likewise.
21082         * tests/test-ftello.c (main): Likewise.
21083         * tests/test-fseek2.sh: New file.
21084         * tests/test-fseeko2.sh: Likewise.
21085         * tests/test-ftell2.sh: Likewise.
21086         * tests/test-ftello2.sh: Likewise.
21087
21088 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
21089
21090         test-getaddrinfo: fix usage of skip return code 77
21091         * tests/test-gettaddrinfo.c: Return skip code 77 only
21092         for first occurance of skip (4x77 is not 77)
21093
21094 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
21095
21096         strtod: avoid C99 decl-after-statement
21097         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
21098
21099 2009-02-24  Eric Blake  <ebb9@byu.net>
21100
21101         strtod: detect HP-UX 11.31 bug
21102         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
21103         Reported by Gary V. Vaughan.
21104
21105 2009-02-23  Bruno Haible  <bruno@clisp.org>
21106
21107         Fix invalid read past end of memory block.
21108         * lib/vasnprintf.c (DCHAR_SET): Define.
21109         (local_wcslen): Define only when needed.
21110         (local_strnlen, local_wcsnlen): New functions.
21111         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
21112         directives that involve a conversion ourselves.
21113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
21114         wcsnlen, mbrtowc, wcrtomb.
21115         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
21116         * tests/test-vasprintf-posix.c (test_function): Likewise.
21117         * tests/test-snprintf-posix.h (test_function): Likewise.
21118         * tests/test-sprintf-posix.h (test_function): Likewise.
21119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21120
21121 2009-02-22  Bruno Haible  <bruno@clisp.org>
21122
21123         Implement new clarified decomposition of Hangul syllables.
21124         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
21125         of type LTV, return only a pairwise decomposition.
21126         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
21127         Likewise.
21128         * tests/uninorm/test-decomposition.c (main): Updated expected result.
21129         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
21130         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
21131
21132 2009-02-22  Bruno Haible  <bruno@clisp.org>
21133
21134         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
21135         zero-length results and shrink excess allocated memory.
21136         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
21137         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
21138         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
21139         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
21140         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
21141         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
21142         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
21143         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
21144         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
21145         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
21146         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
21147         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
21148
21149 2009-02-21  Bruno Haible  <bruno@clisp.org>
21150
21151         * doc/gnulib.texi: Include safe-alloc.texi earlier.
21152         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
21153         spaces after a period. Put a space between a macro name and its
21154         argument list. Trivial rewordings.
21155         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21156         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21157         (main): Return 0 explicitly.
21158
21159 2009-02-21  Bruno Haible  <bruno@clisp.org>
21160
21161         Tests for module 'uninorm/filter'.
21162         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21163         * modules/uninorm/filter-tests: New file.
21164
21165         New module 'uninorm/filter'.
21166         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21167         uninorm_filter_flush, uninorm_filter_free): New declarations.
21168         * lib/uninorm/uninorm-filter.c: New file.
21169         * modules/uninorm/filter: New file.
21170
21171 2009-02-21  Bruno Haible  <bruno@clisp.org>
21172
21173         Tests for module 'uninorm/nfkc'.
21174         * tests/uninorm/test-nfkc.c: New file.
21175         * tests/uninorm/test-u8-nfkc.c: New file.
21176         * tests/uninorm/test-u16-nfkc.c: New file.
21177         * tests/uninorm/test-u32-nfkc.c: New file.
21178         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21179         * tests/uninorm/test-u32-nfkc-big.c: New file.
21180         * modules/uninorm/nfkc-tests: New file.
21181
21182         New module 'uninorm/nfkc'.
21183         * lib/uninorm/nfkc.c: New file.
21184         * modules/uninorm/nfkc: New file.
21185
21186         Tests for module 'uninorm/nfkd'.
21187         * tests/uninorm/test-nfkd.c: New file.
21188         * tests/uninorm/test-u8-nfkd.c: New file.
21189         * tests/uninorm/test-u16-nfkd.c: New file.
21190         * tests/uninorm/test-u32-nfkd.c: New file.
21191         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21192         * tests/uninorm/test-u32-nfkd-big.c: New file.
21193         * modules/uninorm/nfkd-tests: New file.
21194
21195         New module 'uninorm/nfkd'.
21196         * lib/uninorm/nfkd.c: New file.
21197         * modules/uninorm/nfkd: New file.
21198
21199         Tests for module 'uninorm/nfc'.
21200         * tests/uninorm/test-nfc.c: New file.
21201         * tests/uninorm/test-u8-nfc.c: New file.
21202         * tests/uninorm/test-u16-nfc.c: New file.
21203         * tests/uninorm/test-u32-nfc.c: New file.
21204         * tests/uninorm/test-u32-nfc-big.sh: New file.
21205         * tests/uninorm/test-u32-nfc-big.c: New file.
21206         * modules/uninorm/nfc-tests: New file.
21207
21208         New module 'uninorm/nfc'.
21209         * lib/uninorm/nfc.c: New file.
21210         * modules/uninorm/nfc: New file.
21211
21212         Tests for module 'uninorm/nfd'.
21213         * tests/uninorm/test-nfd.c: New file.
21214         * tests/uninorm/test-u8-nfd.c: New file.
21215         * tests/uninorm/test-u16-nfd.c: New file.
21216         * tests/uninorm/test-u32-nfd.c: New file.
21217         * tests/uninorm/test-u32-nfd-big.sh: New file.
21218         * tests/uninorm/test-u32-nfd-big.c: New file.
21219         * tests/uninorm/test-u32-normalize-big.h: New file.
21220         * tests/uninorm/test-u32-normalize-big.c: New file.
21221         * tests/uninorm/NormalizationTest.txt: New file, created from
21222         Unicode 5.1.0 NormalizationTest.txt.
21223         * modules/uninorm/nfd-tests: New file.
21224
21225         New module 'uninorm/nfd'.
21226         * lib/uninorm/nfd.c: New file.
21227         * modules/uninorm/nfd: New file.
21228
21229         New module 'uninorm/u32-normalize'.
21230         * lib/uninorm/u32-normalize.c: New file.
21231         * modules/uninorm/u32-normalize: New file.
21232
21233         New module 'uninorm/u16-normalize'.
21234         * lib/uninorm/u16-normalize.c: New file.
21235         * modules/uninorm/u16-normalize: New file.
21236
21237         New module 'uninorm/u8-normalize'.
21238         * lib/uninorm/u8-normalize.c: New file.
21239         * lib/uninorm/normalize-internal.h: New file.
21240         * lib/uninorm/u-normalize-internal.h: New file.
21241         * modules/uninorm/u8-normalize: New file.
21242
21243         New module 'uninorm/decompose-internal'.
21244         * lib/uninorm/decompose-internal.c: New file.
21245         * modules/uninorm/decompose-internal: New file.
21246
21247         Tests for module 'uninorm/composition'.
21248         * tests/uninorm/test-composition.c: New file.
21249         * modules/uninorm/composition-tests: New file.
21250
21251         New module 'uninorm/composition'.
21252         * lib/uninorm/composition.c: New file.
21253         * lib/uninorm/composition-table.gperf: New file, generated by
21254         gen-uni-tables.
21255         * modules/uninorm/composition: New file.
21256
21257         Tests for module 'uninorm/compat-decomposition'.
21258         * tests/uninorm/test-compat-decomposition.c: New file.
21259         * modules/uninorm/compat-decomposition-tests: New file.
21260
21261         New module 'uninorm/compat-decomposition'.
21262         * lib/uninorm/decompose-internal.h: New file.
21263         * lib/uninorm/compat-decomposition.c: New file.
21264         * modules/uninorm/compat-decomposition: New file.
21265
21266         Tests for module 'uninorm/canonical-decomposition'.
21267         * tests/uninorm/test-canonical-decomposition.c: New file.
21268         * modules/uninorm/canonical-decomposition-tests: New file.
21269
21270         New module 'uninorm/canonical-decomposition'.
21271         * lib/uninorm/canonical-decomposition.c: New file.
21272         * modules/uninorm/canonical-decomposition: New file.
21273
21274         Tests for module 'uninorm/decomposition'.
21275         * tests/uninorm/test-decomposition.c: New file.
21276         * modules/uninorm/decomposition-tests: New file.
21277
21278         New module 'uninorm/decomposition'.
21279         * lib/uninorm/decomposition.c: New file.
21280         * modules/uninorm/decomposition: New file.
21281
21282         New module 'uninorm/decomposition-table'.
21283         * lib/uninorm/decomposition-table.h: New file.
21284         * lib/uninorm/decomposition-table.c: New file.
21285         * lib/uninorm/decomposition-table1.h: New file, generated by
21286         gen-uni-tables.
21287         * lib/uninorm/decomposition-table2.h: New file, generated by
21288         gen-uni-tables.
21289         * modules/uninorm/decomposition-table: New file.
21290
21291         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21292         (UC_DECOMP_*): New enumeration items.
21293         (get_decomposition): New function.
21294         (struct decomp_table): New type.
21295         (output_decomposition, output_decomposition_tables): New functions.
21296         (unicode_composition_exclusions): New variable.
21297         (fill_composition_exclusions, debug_output_composition_tables): New
21298         functions.
21299         (main): Accept one more argument. Invoke fill_composition_exclusions.
21300         Output decomposition and composition tables.
21301
21302         New module 'uninorm/base'.
21303         * lib/uninorm.h: New file.
21304         * lib/unictype.h: Update comment.
21305         * modules/uninorm/base: New file.
21306
21307 2009-02-21  David Lutterkort  <lutter@redhat.com>
21308
21309         Tests for module 'safe-alloc'.
21310         * tests/test-safe-alloc.c: New file.
21311         * modules/safe-alloc-tests: New file.
21312
21313         New module 'safe-alloc'.
21314         * lib/safe-alloc.h: New file.
21315         * lib/safe-alloc.c: New file.
21316         * m4/safe-alloc.m4: New file.
21317         * modules/safe-alloc: New file.
21318         * doc/safe-alloc.texi: New file.
21319         * doc/gnulib.texi: Include it.
21320         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21321         safe-alloc.
21322
21323 2009-02-18  Bruno Haible  <bruno@clisp.org>
21324
21325         Fix link error on non-glibc systems.
21326         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21327         variable.
21328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21329
21330 2009-02-18  Jim Meyering  <meyering@redhat.com>
21331
21332         fts: avoid used-uninitialized error due to recent change
21333         * lib/fts.c (fts_read): Guard uses of the new member,
21334         parent->fts_n_dirs_remaining, since it's not relevant for
21335         the parent of a directory specified on the command-line.
21336
21337 2009-02-17  James Youngman  <jay@gnu.org>
21338             Bruno Haible  <bruno@clisp.org>
21339
21340         * m4/include_next.m4: Reformulate comment.
21341
21342 2009-02-16  Jim Meyering  <meyering@redhat.com>
21343
21344         fts: add #if guards so that the fts_lgpl module still builds
21345         * lib/fts.c: Guard just-added hash-table-using parts with
21346         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21347         Reported by Simon Josefsson.
21348
21349 2009-02-15  Bruno Haible  <bruno@clisp.org>
21350
21351         * modules/array-mergesort-tests: New file.
21352         * tests/test-array-mergesort.c: New file.
21353
21354         New module 'array-mergesort'.
21355         * modules/array-mergesort: New file.
21356         * lib/array-mergesort.h: New file.
21357
21358 2009-02-15  Bruno Haible  <bruno@clisp.org>
21359
21360         Fix 2009-02-07 commit.
21361         * lib/gen-uni-tables.c (output_predicate, output_category,
21362         output_combclass, output_bidi_category, output_decimal_digit,
21363         output_digit, output_numeric, output_mirror, output_scripts,
21364         output_ident_category, output_simple_mapping): Fix format directives.
21365         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21366
21367 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21368
21369         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21370         fixes are available from IBM.
21371
21372 2009-02-13  Jim Meyering  <meyering@redhat.com>
21373
21374         fts: arrange not to stat non-directories in more cases
21375         This makes GNU find (when it doesn't need to stat each file)
21376         *much* more efficient at traversing reiserfs file systems.
21377         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21378         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21379         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21380         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21381         (leaf_optimization_applies): New function.
21382         (LCO_hash, LCO_compare): New helper functions.
21383         (link_count_optimize_ok): New function.
21384         (fts_stat): Initialize new member (if dir).
21385         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21386         we've just stat'ed a directory.  Skip the stat call when possible.
21387         ---
21388         Note this AFS-related exchange:
21389         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21390         and note find's pioctl call in find/fstype.c.
21391         But that is necessary only if you want to enable the
21392         optimization for AFS, and for now, I don't.
21393
21394         fts: move a function definition "up" (no semantic change)
21395         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21396         "up" to precede upcoming use of a related function.
21397
21398 2009-02-11  Jim Meyering  <meyering@redhat.com>
21399
21400         fts: correct internal computation of nlinks (optimization-related)
21401         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21402         whether the current entry is a directory, so don't test it.
21403
21404 2009-02-10  Bruno Haible  <bruno@clisp.org>
21405
21406         Tests for module 'uniwbrk/ulc-wordbreaks'.
21407         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21408         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21409         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21410
21411         Tests for module 'uniwbrk/u32-wordbreaks'.
21412         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21413         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21414
21415         Tests for module 'uniwbrk/u16-wordbreaks'.
21416         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21417         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21418
21419         Tests for module 'uniwbrk/u8-wordbreaks'.
21420         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21421         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21422
21423 2009-02-10  Bruno Haible  <bruno@clisp.org>
21424
21425         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21426         property.
21427         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21428         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21429         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21430
21431 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21432
21433         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21434         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21435
21436 2009-02-10  Bruno Haible  <bruno@clisp.org>
21437
21438         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21439         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21440         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21441         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21442         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21443         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21444
21445 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21446
21447         * lib/sockets.h (gl_fd_to_handle): New function.
21448
21449         * tests/test-sockets.c: Call gl_fd_to_handle.
21450
21451 2009-02-09  Bruno Haible  <bruno@clisp.org>
21452
21453         * doc/havelib.texi: Document the conventions on bi-arch systems.
21454
21455 2009-02-08  Bruno Haible  <bruno@clisp.org>
21456
21457         Document the AC_LIB_LINKFLAGS macro.
21458         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21459         * doc/gnulib.texi: Include it.
21460
21461 2009-02-08  Bruno Haible  <bruno@clisp.org>
21462
21463         Fix wrong order of sections, compared to TOC.
21464         * doc/gnulib.texi: Include relocatable-maint.texi after the
21465         "Regular expressions" node, not before.
21466
21467 2009-02-08  Bruno Haible  <bruno@clisp.org>
21468
21469         Tests for module 'unicase/totitle'.
21470         * modules/unicase/totitle-tests: New file.
21471
21472         Tests for module 'unicase/tolower'.
21473         * modules/unicase/tolower-tests: New file.
21474
21475         Tests for module 'unicase/toupper'.
21476         * modules/unicase/toupper-tests: New file.
21477         * tests/unicase/test-mapping-part1.h: New file.
21478         * tests/unicase/test-mapping-part2.h: New file.
21479
21480         New module 'unicase/totitle'.
21481         * modules/unicase/totitle: New file.
21482         * lib/unicase/totitle.c: New file.
21483
21484         New module 'unicase/tolower'.
21485         * modules/unicase/tolower: New file.
21486         * lib/unicase/tolower.c: New file.
21487
21488         New module 'unicase/toupper'.
21489         * modules/unicase/toupper: New file.
21490         * lib/unicase/toupper.c: New file.
21491         * lib/unicase/simple-mapping.h: New file.
21492
21493         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21494         (mapping_table): New structure.
21495         (output_simple_mapping): New function.
21496         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21497         * modules/gen-uni-tables (Description): Update.
21498         * lib/unicase/toupper.h: New file, automatically generated by
21499         gen-uni-tables.
21500         * lib/unicase/tolower.h: New file, automatically generated by
21501         gen-uni-tables.
21502         * lib/unicase/totitle.h: New file, automatically generated by
21503         gen-uni-tables.
21504         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21505         gen-uni-tables.
21506         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21507         gen-uni-tables.
21508         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21509         gen-uni-tables.
21510
21511         New module 'unicase/base'.
21512         * modules/unicase/base: New file.
21513         * lib/unicase.h: New file.
21514
21515 2009-02-08  Bruno Haible  <bruno@clisp.org>
21516
21517         New module 'uniwbrk/ulc-wordbreaks'.
21518         * modules/uniwbrk/ulc-wordbreaks: New file.
21519         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21520
21521         New module 'uniwbrk/u32-wordbreaks'.
21522         * modules/uniwbrk/u32-wordbreaks: New file.
21523         * lib/uniwbrk/u32-wordbreaks.c: New file.
21524
21525         New module 'uniwbrk/u16-wordbreaks'.
21526         * modules/uniwbrk/u16-wordbreaks: New file.
21527         * lib/uniwbrk/u16-wordbreaks.c: New file.
21528
21529         New module 'uniwbrk/u8-wordbreaks'.
21530         * modules/uniwbrk/u8-wordbreaks: New file.
21531         * lib/uniwbrk/u8-wordbreaks.c: New file.
21532         * lib/uniwbrk/u-wordbreaks.h: New file.
21533
21534         New module 'uniwbrk/table'.
21535         * modules/uniwbrk/table: New file.
21536         * lib/uniwbrk/wbrktable.h: New file.
21537         * lib/uniwbrk/wbrktable.c: New file.
21538
21539         New module 'uniwbrk/wordbreak-property'.
21540         * modules/uniwbrk/wordbreak-property: New file.
21541         * lib/uniwbrk/wordbreak-property.c: New file.
21542
21543         * lib/gen-uni-tables.c (WBP_*): New enum items.
21544         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21545         (unicode_org_wbp): New variable.
21546         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21547         New functions.
21548         (wbp_table): New structure.
21549         (output_wbp, output_wbrk_tables): New functions.
21550         (main): Accept additional argument. Invoke fill_org_wbp,
21551         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21552         output_wbrk_tables.
21553         * modules/gen-uni-tables (Description): Update.
21554         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21555         gen-uni-tables.
21556
21557         New module 'uniwbrk/base'.
21558         * modules/uniwbrk/base: New file.
21559         * lib/uniwbrk.h: New file.
21560
21561 2009-02-08  Bruno Haible  <bruno@clisp.org>
21562
21563         Update to Unicode 5.1.0.
21564         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21565         U+2185..U+2188.
21566         (is_property_default_ignorable_code_point): Don't include characters
21567         of category Cc or Cs and not-a-characters.
21568         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21569         U+0D79, U+109E, U+109F, U+A60C.
21570         * lib/unictype/bidi_of.h: Regenerated.
21571         * lib/unictype/blocks.h: Regenerated.
21572         * lib/unictype/categ_C.h: Regenerated.
21573         * lib/unictype/categ_Cf.h: Regenerated.
21574         * lib/unictype/categ_Cn.h: Regenerated.
21575         * lib/unictype/categ_L.h: Regenerated.
21576         * lib/unictype/categ_Ll.h: Regenerated.
21577         * lib/unictype/categ_Lm.h: Regenerated.
21578         * lib/unictype/categ_Lo.h: Regenerated.
21579         * lib/unictype/categ_Lu.h: Regenerated.
21580         * lib/unictype/categ_M.h: Regenerated.
21581         * lib/unictype/categ_Mc.h: Regenerated.
21582         * lib/unictype/categ_Me.h: Regenerated.
21583         * lib/unictype/categ_Mn.h: Regenerated.
21584         * lib/unictype/categ_N.h: Regenerated.
21585         * lib/unictype/categ_Nd.h: Regenerated.
21586         * lib/unictype/categ_Nl.h: Regenerated.
21587         * lib/unictype/categ_No.h: Regenerated.
21588         * lib/unictype/categ_P.h: Regenerated.
21589         * lib/unictype/categ_Pd.h: Regenerated.
21590         * lib/unictype/categ_Pe.h: Regenerated.
21591         * lib/unictype/categ_Pf.h: Regenerated.
21592         * lib/unictype/categ_Pi.h: Regenerated.
21593         * lib/unictype/categ_Po.h: Regenerated.
21594         * lib/unictype/categ_Ps.h: Regenerated.
21595         * lib/unictype/categ_S.h: Regenerated.
21596         * lib/unictype/categ_Sk.h: Regenerated.
21597         * lib/unictype/categ_Sm.h: Regenerated.
21598         * lib/unictype/categ_So.h: Regenerated.
21599         * lib/unictype/categ_of.h: Regenerated.
21600         * lib/unictype/combining.h: Regenerated.
21601         * lib/unictype/ctype_alnum.h: Regenerated.
21602         * lib/unictype/ctype_alpha.h: Regenerated.
21603         * lib/unictype/ctype_graph.h: Regenerated.
21604         * lib/unictype/ctype_lower.h: Regenerated.
21605         * lib/unictype/ctype_print.h: Regenerated.
21606         * lib/unictype/ctype_punct.h: Regenerated.
21607         * lib/unictype/ctype_upper.h: Regenerated.
21608         * lib/unictype/decdigit.h: Regenerated.
21609         * lib/unictype/digit.h: Regenerated.
21610         * lib/unictype/mirror.h: Regenerated.
21611         * lib/unictype/numeric.h: Regenerated.
21612         * lib/unictype/pr_alphabetic.h: Regenerated.
21613         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21614         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21615         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21616         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21617         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21618         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21619         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21620         * lib/unictype/pr_combining.h: Regenerated.
21621         * lib/unictype/pr_dash.h: Regenerated.
21622         * lib/unictype/pr_decimal_digit.h: Regenerated.
21623         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21624         * lib/unictype/pr_deprecated.h: Regenerated.
21625         * lib/unictype/pr_diacritic.h: Regenerated.
21626         * lib/unictype/pr_extender.h: Regenerated.
21627         * lib/unictype/pr_format_control.h: Regenerated.
21628         * lib/unictype/pr_grapheme_base.h: Regenerated.
21629         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21630         * lib/unictype/pr_grapheme_link.h: Regenerated.
21631         * lib/unictype/pr_id_continue.h: Regenerated.
21632         * lib/unictype/pr_id_start.h: Regenerated.
21633         * lib/unictype/pr_ideographic.h: Regenerated.
21634         * lib/unictype/pr_ignorable_control.h: Regenerated.
21635         * lib/unictype/pr_lowercase.h: Regenerated.
21636         * lib/unictype/pr_math.h: Regenerated.
21637         * lib/unictype/pr_numeric.h: Regenerated.
21638         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21639         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21640         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21641         * lib/unictype/pr_other_id_continue.h: Regenerated.
21642         * lib/unictype/pr_other_lowercase.h: Regenerated.
21643         * lib/unictype/pr_other_math.h: Regenerated.
21644         * lib/unictype/pr_punctuation.h: Regenerated.
21645         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21646         * lib/unictype/pr_soft_dotted.h: Regenerated.
21647         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21648         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21649         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21650         * lib/unictype/pr_uppercase.h: Regenerated.
21651         * lib/unictype/pr_xid_continue.h: Regenerated.
21652         * lib/unictype/pr_xid_start.h: Regenerated.
21653         * lib/unictype/pr_zero_width.h: Regenerated.
21654         * lib/unictype/scripts.h: Regenerated.
21655         * lib/unictype/scripts_byname.gperf: Regenerated.
21656         * lib/unictype/sy_java_ident.h: Regenerated.
21657         * lib/unilbrk/lbrkprop1.h: Regenerated.
21658         * lib/unilbrk/lbrkprop2.h: Regenerated.
21659         * tests/unictype/test-categ_C.c: Regenerated.
21660         * tests/unictype/test-categ_Cf.c: Regenerated.
21661         * tests/unictype/test-categ_Cn.c: Regenerated.
21662         * tests/unictype/test-categ_L.c: Regenerated.
21663         * tests/unictype/test-categ_Ll.c: Regenerated.
21664         * tests/unictype/test-categ_Lm.c: Regenerated.
21665         * tests/unictype/test-categ_Lo.c: Regenerated.
21666         * tests/unictype/test-categ_Lu.c: Regenerated.
21667         * tests/unictype/test-categ_M.c: Regenerated.
21668         * tests/unictype/test-categ_Mc.c: Regenerated.
21669         * tests/unictype/test-categ_Me.c: Regenerated.
21670         * tests/unictype/test-categ_Mn.c: Regenerated.
21671         * tests/unictype/test-categ_N.c: Regenerated.
21672         * tests/unictype/test-categ_Nd.c: Regenerated.
21673         * tests/unictype/test-categ_Nl.c: Regenerated.
21674         * tests/unictype/test-categ_No.c: Regenerated.
21675         * tests/unictype/test-categ_P.c: Regenerated.
21676         * tests/unictype/test-categ_Pd.c: Regenerated.
21677         * tests/unictype/test-categ_Pe.c: Regenerated.
21678         * tests/unictype/test-categ_Pf.c: Regenerated.
21679         * tests/unictype/test-categ_Pi.c: Regenerated.
21680         * tests/unictype/test-categ_Po.c: Regenerated.
21681         * tests/unictype/test-categ_Ps.c: Regenerated.
21682         * tests/unictype/test-categ_S.c: Regenerated.
21683         * tests/unictype/test-categ_Sk.c: Regenerated.
21684         * tests/unictype/test-categ_Sm.c: Regenerated.
21685         * tests/unictype/test-categ_So.c: Regenerated.
21686         * tests/unictype/test-ctype_alnum.c: Regenerated.
21687         * tests/unictype/test-ctype_alpha.c: Regenerated.
21688         * tests/unictype/test-ctype_graph.c: Regenerated.
21689         * tests/unictype/test-ctype_lower.c: Regenerated.
21690         * tests/unictype/test-ctype_print.c: Regenerated.
21691         * tests/unictype/test-ctype_punct.c: Regenerated.
21692         * tests/unictype/test-ctype_upper.c: Regenerated.
21693         * tests/unictype/test-decdigit.h: Regenerated.
21694         * tests/unictype/test-digit.h: Regenerated.
21695         * tests/unictype/test-numeric.h: Regenerated.
21696         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21697         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21698         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21699         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21700         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21701         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21702         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21703         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21704         * tests/unictype/test-pr_combining.c: Regenerated.
21705         * tests/unictype/test-pr_dash.c: Regenerated.
21706         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21707         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21708         * tests/unictype/test-pr_deprecated.c: Regenerated.
21709         * tests/unictype/test-pr_diacritic.c: Regenerated.
21710         * tests/unictype/test-pr_extender.c: Regenerated.
21711         * tests/unictype/test-pr_format_control.c: Regenerated.
21712         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21713         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21714         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21715         * tests/unictype/test-pr_id_continue.c: Regenerated.
21716         * tests/unictype/test-pr_id_start.c: Regenerated.
21717         * tests/unictype/test-pr_ideographic.c: Regenerated.
21718         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21719         * tests/unictype/test-pr_lowercase.c: Regenerated.
21720         * tests/unictype/test-pr_math.c: Regenerated.
21721         * tests/unictype/test-pr_numeric.c: Regenerated.
21722         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21723         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21724         Regenerated.
21725         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21726         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21727         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21728         * tests/unictype/test-pr_other_math.c: Regenerated.
21729         * tests/unictype/test-pr_punctuation.c: Regenerated.
21730         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21731         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21732         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21733         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21734         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21735         * tests/unictype/test-pr_uppercase.c: Regenerated.
21736         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21737         * tests/unictype/test-pr_xid_start.c: Regenerated.
21738         * tests/unictype/test-pr_zero_width.c: Regenerated.
21739
21740         Update to Unicode 5.1.0.
21741         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21742         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21743         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21744         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21745         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21746         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21747         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21748         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21749         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21750         (nonspacing_table_ind): Update.
21751         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21752
21753         Update to Unicode 5.1.0.
21754         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21755         code transform.
21756         * lib/uniname/uniname.c (unicode_character_name,
21757         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21758         * lib/uniname/uninames.h: Regenerated.
21759         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21760
21761 2009-02-07  Bruno Haible  <bruno@clisp.org>
21762
21763         Merge gen-ctype and gen-lbrk into a single program.
21764         * lib/gen-uni-tables.c: New file, incorporating
21765         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21766         Add directory prefixes to the names of the generated files.
21767         * lib/unictype/gen-ctype.c: Remove file.
21768         * lib/unilbrk/gen-lbrk.c: Remove file.
21769         * modules/gen-uni-tables: New file.
21770         * modules/unictype/gen-ctype: Remove file.
21771         * modules/unilbrk/gen-lbrk: Remove file.
21772
21773 2009-02-07  Bruno Haible  <bruno@clisp.org>
21774
21775         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21776
21777         New module 'unistr/u32-strcoll'.
21778         * modules/unistr/u32-strcoll: New file.
21779         * lib/unistr/u32-strcoll.c: New file.
21780
21781         New module 'unistr/u16-strcoll'.
21782         * modules/unistr/u16-strcoll: New file.
21783         * lib/unistr/u16-strcoll.c: New file.
21784
21785         New module 'unistr/u8-strcoll'.
21786         * modules/unistr/u8-strcoll: New file.
21787         * lib/unistr/u8-strcoll.c: New file.
21788         * lib/unistr/u-strcoll.h: New file.
21789
21790 2009-02-07  Bruno Haible  <bruno@clisp.org>
21791
21792         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21793         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21794         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21795         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21796         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21797         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21798
21799 2009-02-07  Bruno Haible  <bruno@clisp.org>
21800
21801         Make 64-bit clean.
21802         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21803         output_combclass, output_bidi_category, output_decimal_digit,
21804         output_digit, output_numeric, output_mirror, output_scripts,
21805         output_ident_category): Use proper width specifier in format strings.
21806
21807 2009-02-07  Bruno Haible  <bruno@clisp.org>
21808
21809         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21810         failure behaviour.
21811
21812 2009-02-07  Jim Meyering  <meyering@redhat.com>
21813
21814         regex: avoid compilation failure with upcoming gcc-4.4
21815         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21816         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21817         "... error: integer overflow in preprocessor expression".
21818
21819 2009-02-05  Ben Pfaff  <blp@gnu.org>
21820
21821         Fix link errors on Windows when close module is used.
21822         * modules/close: Add $(LIB_CLOSE) to Link section.
21823         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21824         $(LIB_CLOSE) on Windows.
21825
21826 2009-02-05  Jim Meyering  <meyering@redhat.com>
21827
21828         still avoid unused-parameter warnings, but do it cleanly
21829         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21830         (get_fs_usage): Cast to void instead.
21831         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21832         (dev_from_mount_options, read_file_system_list): Cast to void.
21833         Prompted by Bruno Haible.
21834
21835 2009-02-04  Jim Meyering  <meyering@redhat.com>
21836
21837         fsusage.c: correct copyright year
21838         * lib/fsusage.c: Reflect year in which the change is pushed into
21839
21840         avoid misc. warnings
21841         * lib/fsusage.c (UNUSED_PARAM): Define.
21842         (get_fs_usage): Mark parameter "disk" as unused.
21843         * lib/getugroups.c (getgrent): Use "void" in prototype.
21844         * lib/mountlist.c: Mark unused parameters.
21845         (read_file_system_list): Declare a local with "const".
21846         * lib/nanosleep.c (getnow): Declare static.
21847         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21848
21849         dirfd: set errno upon failure
21850         * lib/dirfd.c: Include <errno.h>.
21851         Set errno to ENOTSUP when returning -1.
21852         * modules/dirfd (Depends-on): Add errno.
21853         Suggested by John Kodis <kodis@comcast.net>.
21854
21855 2009-02-01  Bruno Haible  <bruno@clisp.org>
21856
21857         Don't assume sizeof (long) >= sizeof (void *).
21858         * lib/memcmp.c: Include stdint.h.
21859         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21860         srcp2 to 'const byte *'.
21861         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21862         types to uintptr_t.
21863         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21864         * modules/memcmp (Depends-on): Add stdint.
21865         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21866
21867 2009-01-30  Eric Blake  <ebb9@byu.net>
21868
21869         fix more require-before-expand issues
21870         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21871         expand, AC_PROG_AWK.
21872         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21873
21874 2009-01-28  Eric Blake  <ebb9@byu.net>
21875
21876         version-etc: use consistent URL formatting
21877         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21878         Improve formatting.  Use fputs for string without %.
21879
21880 2009-01-28  Jim Meyering  <meyering@redhat.com>
21881
21882         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21883         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21884         "underquoted definition of NAME" from autoconf-2.59.
21885
21886 2009-01-28  Bruno Haible  <bruno@clisp.org>
21887
21888         * doc/gnulib.texi: Add "Obsolete modules" to index.
21889
21890 2009-01-28  Jim Meyering  <meyering@redhat.com>
21891
21892         useless-if-before-free: recognize more variants
21893         * build-aux/useless-if-before-free: Also recognize e.g.,
21894         if (NULL != p) free (p);
21895
21896 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21897
21898         test-getaddrinfo: skip (don't fail) this test when there's no network
21899         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21900         on the presumption that it means you lack network access.
21901
21902 2009-01-26  Jim Meyering  <meyering@redhat.com>
21903
21904         fflush: avoid warnings on modern systems
21905         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21906         pos and result, into scopes where they're used.
21907
21908 2009-01-26  Eric Blake  <ebb9@byu.net>
21909
21910         Silence warning reintroduced by recent extensions patch.
21911         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21912         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21913         autoconf.
21914
21915         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21916         * m4/00gnulib.m4: New file.
21917         * gnulib-tool (func_get_filelist): Always use it.
21918         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21919         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21920
21921 2009-01-25  Bruno Haible  <bruno@clisp.org>
21922
21923         Make test-quotearg work on MacOS X and AIX.
21924         * tests/test-quotearg.sh: New file.
21925         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21926         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21927         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21928         include <libintl.h>.
21929         (fake_locale): Remove variable.
21930         (gettext, dgettext, dcgettext): Remove functions.
21931         (main): Instead of setting a fake locale, set a real locale. Call
21932         textdomain and bindtextdomain.
21933         * modules/quotearg-tests (Files): Add the new files.
21934         (Depends-on): Add gettext, setenv, unsetenv.
21935         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21936         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21937         Augment TESTS_ENVIRONMENT.
21938
21939 2009-01-25  Bruno Haible  <bruno@clisp.org>
21940
21941         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21942         fr_FR.ISO8859-1 locale on MacOS X.
21943         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21944         ja_JP.eucJP locale on MacOS X.
21945         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21946         zh_CN.GB18030 locale on MacOS X.
21947
21948 2009-01-25  Bruno Haible  <bruno@clisp.org>
21949
21950         Avoid link errors on MacOS X 10.3.
21951         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21952         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21953
21954 2009-01-25  Bruno Haible  <bruno@clisp.org>
21955
21956         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21957         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21958         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21959         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21960         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21961         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21962         posix_spawnattr_init, posix_spawnattr_setsigmask,
21963         posix_spawnattr_setflags, posix_spawnattr_destroy.
21964
21965         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21966         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21967         * modules/execute (Files): Remove m4/posix_spawn.m4.
21968         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21969         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21970         posix_spawnattr_init, posix_spawnattr_setsigmask,
21971         posix_spawnattr_setflags, posix_spawnattr_destroy.
21972
21973 2009-01-25  Bruno Haible  <bruno@clisp.org>
21974
21975         * lib/glthread/threadlib.c: Include <stdlib.h>.
21976
21977 2009-01-25  Bruno Haible  <bruno@clisp.org>
21978
21979         * lib/glthread/threadlib.c (dummy): New declaration.
21980
21981 2009-01-25  Bruno Haible  <bruno@clisp.org>
21982
21983         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21984         multibyte characters also for the GB18030 encoding. Don't crash when
21985         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21986
21987 2009-01-25  Bruno Haible  <bruno@clisp.org>
21988
21989         Avoid redefining 'struct random_data' on OSF/1 5.1.
21990         * lib/stdlib.in.h: Include <random.h> if it exists.
21991         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21992         HAVE_RANDOM_H. Include <random.h> when testing whether
21993         'struct random_data' exists.
21994         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21995
21996 2009-01-25  Bruno Haible  <bruno@clisp.org>
21997
21998         Don't install charset.alias on MacOS X >= 10.3.
21999         * lib/localcharset.c (DARWIN7): New macro.
22000         (get_charset_aliases): Hardcode the result for Darwin7.
22001         * modules/localcharset (install-exec-local): Don't install
22002         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
22003
22004 2009-01-25  Bruno Haible  <bruno@clisp.org>
22005
22006         Don't install charset.alias on mingw and Cygwin.
22007         * modules/localcharset (install-exec-local): Don't install
22008         charset.alias on mingw and Cygwin, if the file does not yet exist.
22009         The result for these platforms is hardcoded in localcharset.c.
22010
22011 2009-01-25  Bruno Haible  <bruno@clisp.org>
22012
22013         Make it possible again to use AC_GNU_SOURCE together with gnulib.
22014         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
22015         before requiring AC_USE_SYSTEM_EXTENSIONS.
22016
22017 2009-01-25  Jim Meyering  <meyering@redhat.com>
22018
22019         c-strtod: avoid warnings
22020         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
22021         "assignment discards qualifiers from pointer target type" warnings.
22022
22023 2009-01-24  Bruno Haible  <bruno@clisp.org>
22024
22025         Add support for non-UTF-8 locales on MacOS X.
22026         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
22027         canonical encodings. For Darwin 7 and newer, don't map traditional
22028         encodings to UTF-8.
22029         Reported by Vincent Lefevre <vincent@vinc17.org>
22030         at <http://savannah.gnu.org/bugs/?25235>.
22031
22032 2009-01-24  Bruno Haible  <bruno@clisp.org>
22033
22034         * doc/gnulib.texi (Obsolete modules): New section.
22035         Reported by Mike Frysinger <vapier@gentoo.org>.
22036
22037 2009-01-24  Bruno Haible  <bruno@clisp.org>
22038
22039         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
22040         (%.dvi): New rule.
22041
22042 2009-01-24  Bruno Haible  <bruno@clisp.org>
22043
22044         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
22045         Reported by Eric Blake.
22046
22047 2009-01-24  Bruno Haible  <bruno@clisp.org>
22048
22049         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
22050         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
22051         Reported by Gary V. Vaughan <gary@gnu.org>.
22052
22053 2009-01-24  Bruno Haible  <bruno@clisp.org>
22054
22055         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
22056
22057 2009-01-23  Bruno Haible  <bruno@clisp.org>
22058
22059         Make c-strtod, c-strtold usable in libraries.
22060         * lib/c-strtod.c: Include string.h instead of xalloc.h.
22061         (C_STRTOD): Call strdup instead of xstrdup.
22062         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
22063         * modules/c-strtold (Depends-on): Likewise.
22064         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
22065         * NEWS: Mention the change.
22066         Reported by Michael Gold <mgold@ncf.ca>.
22067
22068 2009-01-23  Jim Meyering  <meyering@redhat.com>
22069
22070         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
22071         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
22072         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
22073
22074 2009-01-23  Simon Josefsson  <simon@josefsson.org>
22075
22076         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
22077         GNU CoreUtils.
22078         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
22079         * modules/version-etc (Description): Update.
22080
22081 2009-01-22  Bruno Haible  <bruno@clisp.org>
22082
22083         Cache the C locale object.
22084         * lib/c-strtod.c (c_locale_cache): New variable.
22085         (c_locale): New function.
22086         (C_STRTOD): Use it, and don't call freelocale.
22087         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
22088         Suggested by Paolo Bonzini.
22089
22090 2009-01-21  Bruno Haible  <bruno@clisp.org>
22091
22092         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
22093         conditions other than overflow.
22094
22095 2009-01-21  Bruno Haible  <bruno@clisp.org>
22096
22097         * lib/c-strtod.c: Include errno.h.
22098         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
22099         value from STRTOD_L and STRTOD.
22100
22101 2009-01-21  Bruno Haible  <bruno@clisp.org>
22102         and Jim Meyering  <meyering@redhat.com>
22103
22104         nanosleep: skip configure test (fail it) for apple universal builds
22105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
22106         universal builds, assume that nanosleep does not work.
22107         * modules/nanosleep (Depends-on): Add multiarch.
22108
22109         mktime: skip configure test (fail it) for apple universal builds
22110         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
22111         universal builds, assume that mktime does not work.
22112         * modules/mktime (Depends-on): Add multiarch.
22113
22114 2009-01-21  Eric Blake  <ebb9@byu.net>
22115
22116         multiarch: avoid expand-before-require warning
22117         * modules/multiarch (configure.ac): Require, rather than expand,
22118         gl_MULTIARCH.
22119         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
22120         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
22121         enforce that all clients require it.  Partial reversion of
22122         2008-12-29 patch.
22123
22124         error: avoid expand-before-require warning
22125         * modules/errno (configure.ac): Require, rather than expand,
22126         gl_HEADER_ERRNO_H.
22127         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
22128         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
22129         enforce that all clients require it.
22130
22131         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
22132         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
22133         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
22134         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
22135
22136 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
22137
22138         Revert:
22139         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22140
22141         regex: do not depend on obsolete modules.
22142         * modules/regex: Remove memcmp and memmove.
22143
22144 2009-01-20  Bruno Haible  <bruno@clisp.org>
22145
22146         Make the 'link' module link on Windows NT 4.
22147         * lib/link.c (_WIN32_WINNT): Don't define.
22148         (CreateHardLinkFuncType): New type.
22149         (CreateHardLinkFunc, initialized): New variables.
22150         (initialize): New function.
22151         (link): Invoke CreateHardLink indirectly through the function pointer.
22152
22153 2009-01-20  Bruno Haible  <bruno@clisp.org>
22154
22155         Fix compilation failure on mingw.
22156         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22157
22158 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22159
22160         * doc/c-strtod.texi: Mention a couple of restrictions.
22161
22162 2009-01-20  Jim Meyering  <meyering@redhat.com>
22163
22164         gettimeofday: move more declarations out of functions
22165         * lib/gettimeofday.c: Move extern declarations of tzset and
22166         gmtime out of containing functions.  Prompted by Bruno Haible.
22167
22168 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22169
22170         regex: do not depend on obsolete modules.
22171         * modules/regex: Remove memcmp and memmove.
22172
22173 2009-01-19  Bruno Haible  <bruno@clisp.org>
22174
22175         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22176         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22177         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22178         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22179         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22180
22181 2009-01-19  Bruno Haible  <bruno@clisp.org>
22182
22183         * tests/test-link.c: Include <errno.h>.
22184         (main): Exit with code 77 when a hard link cannot be created due to
22185         the file system.
22186         * tests/test-link.sh: Skip test when a hard link cannot be created due
22187         to the file system.
22188         Suggested by Eric Blake.
22189
22190 2009-01-19  Martin Lambers  <marlam@marlam.de>
22191
22192         * modules/link-tests: New file.
22193         * tests/test-link.sh: New file.
22194         * tests/test-link.c: New file.
22195
22196 2009-01-19  Eric Blake  <ebb9@byu.net>
22197
22198         doc: mention another function added in cygwin 1.7.0
22199         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22200         Another new function in cygwin 1.7.
22201
22202 2009-01-19  Bruno Haible  <bruno@clisp.org>
22203
22204         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22205         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22206         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22207         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22208         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22209         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22210         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22211         * m4/md4.m4 (gl_MD4): Likewise.
22212         * m4/md5.m4 (gl_MD5): Likewise.
22213         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22214         * m4/sha1.m4 (gl_SHA1): Likewise.
22215         * m4/sha256.m4 (gl_SHA256): Likewise.
22216         * m4/sha512.m4 (gl_SHA512): Likewise.
22217
22218 2009-01-19  Bruno Haible  <bruno@clisp.org>
22219
22220         * modules/uniname/uniname-tests (Depends-on): Add progname.
22221         * tests/uniname/test-uninames.c: Include progname.h.
22222         (main): Call set_program_name.
22223
22224         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22225         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22226         (main): Call set_program_name.
22227
22228         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22229         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22230         (main): Call set_program_name.
22231
22232         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22233         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22234         (main): Call set_program_name.
22235
22236         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22237         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22238         (main): Call set_program_name.
22239
22240         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22241         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22242         (main): Call set_program_name.
22243
22244         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22245         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22246         (main): Call set_program_name.
22247
22248         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22249         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22250         (main): Call set_program_name.
22251
22252         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22253         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22254         (main): Call set_program_name.
22255
22256 2009-01-19  Eric Blake  <ebb9@byu.net>
22257
22258         test-unistd: test previous patch
22259         * tests/test-unistd.c: Test *_FILENO macros.
22260
22261         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22262         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22263         Guarantee a definition.
22264         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22265         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22266         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22267         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22268         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22269         Likewise.
22270         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22271         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22272         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22273         Likewise.
22274         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22275         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22276         (STDERR_FILENO): Likewise.
22277         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22278         (STDERR_FILENO): Likewise.
22279         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22280         (STDERR_FILENO): Likewise.
22281         Reported by Elbert Pol.
22282
22283 2009-01-19  Eric Blake  <ebb9@byu.net>
22284
22285         doc: mention more functions added in cygwin 1.7.0
22286         * doc/posix-functions/abort.texi (abort): Update wording related
22287         to cygwin.
22288         * doc/posix-functions/daylight.texi (daylight): Likewise.
22289         * doc/posix-functions/optarg.texi (optarg): Likewise.
22290         * doc/posix-functions/optarg.texi (opterr): Likewise.
22291         * doc/posix-functions/optarg.texi (optind): Likewise.
22292         * doc/posix-functions/optarg.texi (optopt): Likewise.
22293         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22294         worked in 1.5.x, and was withdrawn in 1.7.
22295         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22296         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22297         cygwin versions.
22298         * doc/posix-functions/perror.texi (perror): Likewise.
22299         * doc/posix-functions/printf.texi (printf): Likewise.
22300         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22301         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22302         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22303         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22304         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22305         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22306         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22307         Likewise.
22308         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22309         Likewise.
22310         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22311         this function.
22312         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22313         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22314         Likewise.
22315         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22316         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22317         * doc/posix-functions/confstr.texi (confstr): Likewise.
22318         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22319         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22320         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22321         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22322         * doc/posix-functions/fputws.texi (fputws): Likewise.
22323         * doc/posix-functions/fwide.texi (fwide): Likewise.
22324         * doc/posix-functions/getwc.texi (getwc): Likewise.
22325         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22326         * doc/posix-functions/putwc.texi (putwc): Likewise.
22327         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22328         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22329         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22330         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22331         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22332         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22333         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22334         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22335         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22336         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22337         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22338
22339 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22340
22341         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22342         * lib/ioctl.c: Include <sys/ioctl.h>.
22343
22344 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22345
22346         * modules/getdate-tests (Depends-on): Add progname.
22347         * tests/test-getdate.c: Use progname module, to avoid link errors
22348         on non-glibc systems.
22349
22350 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22351
22352         * modules/filenamecat-tests (Depends-on): Add progname.
22353         * modules/fstrcmp-tests (Depends-on): Likewise.
22354
22355         * tests/test-filenamecat.c: Use progname module, to avoid link
22356         errors on non-glibc systems.
22357         * tests/test-fstrcmp.c: Likewise.
22358
22359 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22360
22361         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22362         * lib/gettimeofday.c: Move extern declaration out of function.
22363
22364 2009-01-18  Bruno Haible  <bruno@clisp.org>
22365
22366         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22367         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22368         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22369
22370 2009-01-18  Bruno Haible  <bruno@clisp.org>
22371
22372         * lib/strftime.c (MEMPCPY): Remove unused macro.
22373         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22374
22375 2009-01-18  Martin Lambers  <marlam@marlam.de>
22376
22377         New module 'link'.
22378         * lib/unistd.in.h (link): New declaration.
22379         * lib/link.c: New file.
22380         * m4/link.m4: New file.
22381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22382         HAVE_LINK.
22383         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22384         * modules/link: New file.
22385         * doc/posix-functions/link.texi: Mention the new module.
22386
22387 2009-01-18  Bruno Haible  <bruno@clisp.org>
22388
22389         * tests/test-avltree_list.c (main): Call set_program_name.
22390         * tests/test-avltree_oset.c (main): Likewise.
22391         * tests/test-obstack-printf.c: Include progname.h.
22392         (main): Call set_program_name.
22393         * tests/test-quotearg.c: Include progname.h.
22394         (main): Call set_program_name.
22395         * tests/test-xmemdup0.c: Include progname.h.
22396         (main): Call set_program_name.
22397
22398 2009-01-18  Bruno Haible  <bruno@clisp.org>
22399
22400         New module 'alphasort'.
22401         * lib/dirent.in.h (alphasort): New declaration.
22402         * lib/alphasort.c: New file, from glibc with modifications.
22403         * m4/alphasort.m4: New file.
22404         * modules/alphasort: New file.
22405         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22406         HAVE_ALPHASORT.
22407         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22408         HAVE_ALPHASORT.
22409         * doc/posix-functions/alphasort.texi: Mention the new module and the
22410         portability problems.
22411
22412 2009-01-18  Bruno Haible  <bruno@clisp.org>
22413
22414         New module 'scandir'.
22415         * lib/dirent.in.h (scandir): New declaration.
22416         * lib/scandir.c: New file, from glibc with modifications.
22417         * m4/scandir.m4: New file.
22418         * modules/scandir: New file.
22419         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22420         HAVE_SCANDIR.
22421         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22422         HAVE_SCANDIR.
22423         * doc/posix-functions/scandir.texi: Mention the new module and the
22424         portability problems.
22425
22426 2009-01-17  Bruno Haible  <bruno@clisp.org>
22427
22428         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22429         Update documentation.
22430         (func_remove_suffix): Escape all dots in the suffix. Update
22431         documentation.
22432         (func_filter_filelist): Update documentation.
22433         Reported by Ralf Wildenhues.
22434
22435 2009-01-17  Bruno Haible  <bruno@clisp.org>
22436
22437         * modules/dprintf-posix-tests: New file.
22438         * tests/test-dprintf-posix.sh: New file.
22439         * tests/test-dprintf-posix.c: New file.
22440
22441         New modules 'dprintf', 'dprintf-posix'.
22442         * lib/stdio.in.h (dprintf): New declaration.
22443         * lib/dprintf.c: New file.
22444         * m4/dprintf.m4: New file.
22445         * m4/dprintf-posix.m4: New file.
22446         * modules/dprintf: New file.
22447         * modules/dprintf-posix: New file.
22448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22449         HAVE_DPRINTF, REPLACE_DPRINTF.
22450         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22451         HAVE_DPRINTF, REPLACE_DPRINTF.
22452         * doc/posix-functions/dprintf.texi: Mention the new modules.
22453
22454 2009-01-17  Bruno Haible  <bruno@clisp.org>
22455
22456         * modules/vdprintf-posix-tests: New file.
22457         * tests/test-vdprintf-posix.sh: New file.
22458         * tests/test-vdprintf-posix.c: New file.
22459
22460         New modules 'vdprintf', 'vdprintf-posix'.
22461         * lib/stdio.in.h (vdprintf): New declaration.
22462         * lib/vdprintf.c: New file.
22463         * m4/vdprintf.m4: New file.
22464         * m4/vdprintf-posix.m4: New file.
22465         * modules/vdprintf: New file.
22466         * modules/vdprintf-posix: New file.
22467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22468         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22469         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22470         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22471         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22472
22473 2009-01-17  Bruno Haible  <bruno@clisp.org>
22474
22475         Fix replacement of fopen on mingw.
22476         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22477         mingw.
22478
22479 2009-01-17  Bruno Haible  <bruno@clisp.org>
22480
22481         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22482         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22483
22484 2009-01-17  Bruno Haible  <bruno@clisp.org>
22485
22486         Avoid test-fflush2.sh failure on mingw.
22487         * tests/test-fflush2.c: Include binary-io.h.
22488         (main): Put standard input into binary mode.
22489         * modules/fflush-tests (Depends-on): Add binary-io.
22490
22491 2009-01-17  Bruno Haible  <bruno@clisp.org>
22492
22493         * lib/wchar.in.h: In another particular situation, include only the
22494         system's <wchar.h> file.
22495         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22496         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22497         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22498
22499 2009-01-17  Bruno Haible  <bruno@clisp.org>
22500
22501         Support for stripping executables in --enable-relocatable.
22502         * build-aux/install-reloc: Expect one more argument, or an environment
22503         variable RELOC_STRIP_PROG. If set, strip the destination program and
22504         its wrapper.
22505         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22506         RELOC_STRIP_PROG.
22507         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22508         to set RELOCATABLE_STRIP.
22509         * NEWS: Mention the new Makefile requirement.
22510
22511 2009-01-17  Bruno Haible  <bruno@clisp.org>
22512
22513         * build-aux/install-reloc: Remove debugging information left over by
22514         C compiler on MacOS X.
22515
22516 2009-01-17  Bruno Haible  <bruno@clisp.org>
22517
22518         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22519         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22520         _NSGetExecutablePath.
22521
22522 2009-01-16  Jim Meyering  <meyering@redhat.com>
22523
22524         strerror: avoid warnings about discarding "const"
22525         * lib/strerror.c (rpl_strerror): Instead of returning a const
22526         string from each and every "case", use a variable, and add a single
22527         cast after the switch.
22528
22529 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22530
22531         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22532
22533 2009-01-16  Bruno Haible  <bruno@clisp.org>
22534
22535         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22536         array initializer syntax that also works in C++ mode.
22537         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22538
22539 2009-01-16  Jim Meyering  <meyering@redhat.com>
22540
22541         poll: suppress a warning
22542         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22543         to ignore "...unsigned expression < 0 is always false" warnings.
22544
22545 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22546
22547         poll: remove declarations of unused variables
22548         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22549         sockbuf and optlen.
22550
22551 2009-01-15  Bruno Haible  <bruno@clisp.org>
22552
22553         Make fflush-after-ungetc POSIX compliant on BSD systems.
22554         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22555         (clear_ungetc_buffer): Implement also for other systems.
22556         (rpl_fflush): On glibc systems, invoke
22557         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22558         clear_ungetc_buffer after fetching the stream's position, not before.
22559
22560 2009-01-15  Bruno Haible  <bruno@clisp.org>
22561
22562         Make fflush-after-ungetc POSIX compliant on glibc systems.
22563         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22564         after ungetc.
22565         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22566         (rpl_fflush): On glibc systems, simply call the system's fflush
22567         function after clearing the ungetc buffer.
22568         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22569         Instead, lseek only to the end of file, then use the system's fseeko
22570         for the rest. On glibc systems, reset the EOF indicator bit.
22571
22572 2009-01-15  Jim Meyering  <meyering@redhat.com>
22573
22574         openmp.m4: revert quote-adding change, for portability to older autoconf
22575         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22576         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22577         Simon Josefsson noticed the problem when using autoconf-2.61.
22578
22579 2009-01-15  Bruno Haible  <bruno@clisp.org>
22580
22581         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22582         * tests/test-fflush2.c (ASSERT): Always fail.
22583         (main): Add two tests for fflush() after ungetc(), taking into account
22584         the Austin Group's clarification.
22585         Suggested by Eric Blake.
22586
22587 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22588
22589         mktime.m4: remove K&R-style function prototypes
22590         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22591         for the Sun C++ compiler.
22592
22593 2009-01-14  Bruno Haible  <bruno@clisp.org>
22594
22595         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22596         while including <wchar.h>.
22597         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22598         the system's <wchar.h> file.
22599         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22600
22601 2009-01-14  Bruno Haible  <bruno@clisp.org>
22602
22603         * m4/csharp.m4: Don't mention gettext on the serial number line.
22604         * m4/csharpexec.m4: Likewise.
22605         * m4/eaccess.m4: Likewise.
22606         * m4/javaexec.m4: Likewise.
22607         * m4/sig_atomic_t.m4: Likewise.
22608         * m4/tmpdir.m4: Likewise.
22609         * m4/intldir.m4: Bump gettext version.
22610         * m4/lib-ld.m4: Likewise.
22611
22612 2009-01-14  Bruno Haible  <bruno@clisp.org>
22613
22614         * lib/progname.c (set_program_name): Add more comments.
22615         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22616
22617 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22618
22619         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22620         were sys/stat.h does not define it.
22621
22622 2009-01-14  Jim Meyering  <meyering@redhat.com>
22623
22624         many *.m4 files: improve m4 quoting
22625         99% of this change was performed by running the following commands:
22626         git ls-files | grep '\.m4$' | xargs perl -pi \
22627           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22628           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22629           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22630           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22631         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22632         The remainder were to add Copyright dates, increment serial numbers,
22633         undo some changes in comments, exclude m4/intl.m4, and add quotes
22634         around the "1" in ",1" where the unusual spacing prohibited the
22635         above regexps from doing the job.  For more details, see
22636         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22637         * m4/acl.m4: Modified.
22638         * m4/afs.m4: Likewise.
22639         * m4/alloca.m4: Likewise.
22640         * m4/argp.m4: Likewise.
22641         * m4/argz.m4: Likewise.
22642         * m4/atexit.m4: Likewise.
22643         * m4/bison-i18n.m4: Likewise.
22644         * m4/bison.m4: Likewise.
22645         * m4/byteswap.m4: Likewise.
22646         * m4/c-stack.m4: Likewise.
22647         * m4/c-strtod.m4: Likewise.
22648         * m4/calloc.m4: Likewise.
22649         * m4/canonicalize-lgpl.m4: Likewise.
22650         * m4/chown.m4: Likewise.
22651         * m4/clock_time.m4: Likewise.
22652         * m4/codeset.m4: Likewise.
22653         * m4/copy-file.m4: Likewise.
22654         * m4/csharp.m4: Likewise.
22655         * m4/csharpcomp.m4: Likewise.
22656         * m4/csharpexec.m4: Likewise.
22657         * m4/d-ino.m4: Likewise.
22658         * m4/d-type.m4: Likewise.
22659         * m4/dirfd.m4: Likewise.
22660         * m4/double-slash-root.m4: Likewise.
22661         * m4/eaccess.m4: Likewise.
22662         * m4/eealloc.m4: Likewise.
22663         * m4/environ.m4: Likewise.
22664         * m4/errno_h.m4: Likewise.
22665         * m4/euidaccess.m4: Likewise.
22666         * m4/execute.m4: Likewise.
22667         * m4/fatal-signal.m4: Likewise.
22668         * m4/fchdir.m4: Likewise.
22669         * m4/fcntl_h.m4: Likewise.
22670         * m4/fileblocks.m4: Likewise.
22671         * m4/filenamecat.m4: Likewise.
22672         * m4/findprog.m4: Likewise.
22673         * m4/flexmember.m4: Likewise.
22674         * m4/fnmatch.m4: Likewise.
22675         * m4/fopen.m4: Likewise.
22676         * m4/fpending.m4: Likewise.
22677         * m4/fprintf-posix.m4: Likewise.
22678         * m4/free.m4: Likewise.
22679         * m4/frexp.m4: Likewise.
22680         * m4/frexpl.m4: Likewise.
22681         * m4/fsusage.m4: Likewise.
22682         * m4/ftruncate.m4: Likewise.
22683         * m4/gc-camellia.m4: Likewise.
22684         * m4/gc-random.m4: Likewise.
22685         * m4/gc.m4: Likewise.
22686         * m4/getaddrinfo.m4: Likewise.
22687         * m4/getcwd-abort-bug.m4: Likewise.
22688         * m4/getcwd-path-max.m4: Likewise.
22689         * m4/getdate.m4: Likewise.
22690         * m4/getdomainname.m4: Likewise.
22691         * m4/getgroups.m4: Likewise.
22692         * m4/gethostname.m4: Likewise.
22693         * m4/gethrxtime.m4: Likewise.
22694         * m4/getline.m4: Likewise.
22695         * m4/getloadavg.m4: Likewise.
22696         * m4/getndelim2.m4: Likewise.
22697         * m4/getpass.m4: Likewise.
22698         * m4/gettext.m4: Likewise.
22699         * m4/gettime.m4: Likewise.
22700         * m4/gettimeofday.m4: Likewise.
22701         * m4/gnulib-common.m4: Likewise.
22702         * m4/group-member.m4: Likewise.
22703         * m4/host-os.m4: Likewise.
22704         * m4/iconv.m4: Likewise.
22705         * m4/iconv_open.m4: Likewise.
22706         * m4/inet_ntop.m4: Likewise.
22707         * m4/inet_pton.m4: Likewise.
22708         * m4/inline.m4: Likewise.
22709         * m4/intldir.m4: Likewise.
22710         * m4/intlmacosx.m4: Likewise.
22711         * m4/intmax.m4: Likewise.
22712         * m4/intmax_t.m4: Likewise.
22713         * m4/inttypes.m4: Likewise.
22714         * m4/inttypes_h.m4: Likewise.
22715         * m4/inttypes-pri.m4: Likewise.
22716         * m4/isapipe.m4: Likewise.
22717         * m4/isnand.m4: Likewise.
22718         * m4/isnanf.m4: Likewise.
22719         * m4/isnanl.m4: Likewise.
22720         * m4/javacomp.m4: Likewise.
22721         * m4/javaexec.m4: Likewise.
22722         * m4/jm-winsz1.m4: Likewise.
22723         * m4/jm-winsz2.m4: Likewise.
22724         * m4/lchown.m4: Likewise.
22725         * m4/lcmessage.m4: Likewise.
22726         * m4/ldexpl.m4: Likewise.
22727         * m4/lib-ld.m4: Likewise.
22728         * m4/lib-link.m4: Likewise.
22729         * m4/libsigsegv.m4: Likewise.
22730         * m4/link-follow.m4: Likewise.
22731         * m4/localcharset.m4: Likewise.
22732         * m4/locale-fr.m4: Likewise.
22733         * m4/locale-ja.m4: Likewise.
22734         * m4/locale-tr.m4: Likewise.
22735         * m4/locale-zh.m4: Likewise.
22736         * m4/lock.m4: Likewise.
22737         * m4/longlong.m4: Likewise.
22738         * m4/ls-mntd-fs.m4: Likewise.
22739         * m4/lstat.m4: Likewise.
22740         * m4/malloc.m4: Likewise.
22741         * m4/mathl.m4: Likewise.
22742         * m4/mbrtowc.m4: Likewise.
22743         * m4/mbstate_t.m4: Likewise.
22744         * m4/mbswidth.m4: Likewise.
22745         * m4/memchr.m4: Likewise.
22746         * m4/memcmp.m4: Likewise.
22747         * m4/memcpy.m4: Likewise.
22748         * m4/memmem.m4: Likewise.
22749         * m4/memmove.m4: Likewise.
22750         * m4/mempcpy.m4: Likewise.
22751         * m4/memrchr.m4: Likewise.
22752         * m4/memset.m4: Likewise.
22753         * m4/minmax.m4: Likewise.
22754         * m4/mkdir-slash.m4: Likewise.
22755         * m4/mkdtemp.m4: Likewise.
22756         * m4/mktime.m4: Likewise.
22757         * m4/mmap-anon.m4: Likewise.
22758         * m4/mountlist.m4: Likewise.
22759         * m4/nanosleep.m4: Likewise.
22760         * m4/nls.m4: Likewise.
22761         * m4/nocrash.m4: Likewise.
22762         * m4/open.m4: Likewise.
22763         * m4/openat.m4: Likewise.
22764         * m4/openmp.m4: Likewise.
22765         * m4/pathmax.m4: Likewise.
22766         * m4/perl.m4: Likewise.
22767         * m4/physmem.m4: Likewise.
22768         * m4/pipe.m4: Likewise.
22769         * m4/po.m4: Likewise.
22770         * m4/poll.m4: Likewise.
22771         * m4/posixtm.m4: Likewise.
22772         * m4/posixver.m4: Likewise.
22773         * m4/printf-frexp.m4: Likewise.
22774         * m4/printf-frexpl.m4: Likewise.
22775         * m4/printf-posix.m4: Likewise.
22776         * m4/printf-posix-rpl.m4: Likewise.
22777         * m4/printf.m4: Likewise.
22778         * m4/progtest.m4: Likewise.
22779         * m4/putenv.m4: Likewise.
22780         * m4/readline.m4: Likewise.
22781         * m4/readlink.m4: Likewise.
22782         * m4/readutmp.m4: Likewise.
22783         * m4/realloc.m4: Likewise.
22784         * m4/regex.m4: Likewise.
22785         * m4/relocatable.m4: Likewise.
22786         * m4/relocatable-lib.m4: Likewise.
22787         * m4/rename-dest-slash.m4: Likewise.
22788         * m4/rename.m4: Likewise.
22789         * m4/rmdir-errno.m4: Likewise.
22790         * m4/rmdir.m4: Likewise.
22791         * m4/roundf.m4: Likewise.
22792         * m4/roundl.m4: Likewise.
22793         * m4/rpmatch.m4: Likewise.
22794         * m4/save-cwd.m4: Likewise.
22795         * m4/selinux-selinux-h.m4: Likewise.
22796         * m4/setenv.m4: Likewise.
22797         * m4/settime.m4: Likewise.
22798         * m4/sig2str.m4: Likewise.
22799         * m4/sig_atomic_t.m4: Likewise.
22800         * m4/signalblocking.m4: Likewise.
22801         * m4/signbit.m4: Likewise.
22802         * m4/sigpipe.m4: Likewise.
22803         * m4/sockets.m4: Likewise.
22804         * m4/sockpfaf.m4: Likewise.
22805         * m4/st_dm_mode.m4: Likewise.
22806         * m4/stat-time.m4: Likewise.
22807         * m4/stdbool.m4: Likewise.
22808         * m4/stdint.m4: Likewise.
22809         * m4/stdint_h.m4: Likewise.
22810         * m4/stpcpy.m4: Likewise.
22811         * m4/stpncpy.m4: Likewise.
22812         * m4/strcase.m4: Likewise.
22813         * m4/strchrnul.m4: Likewise.
22814         * m4/strcspn.m4: Likewise.
22815         * m4/strdup.m4: Likewise.
22816         * m4/strftime.m4: Likewise.
22817         * m4/strndup.m4: Likewise.
22818         * m4/strnlen.m4: Likewise.
22819         * m4/strpbrk.m4: Likewise.
22820         * m4/strptime.m4: Likewise.
22821         * m4/strsep.m4: Likewise.
22822         * m4/strtod.m4: Likewise.
22823         * m4/strtoimax.m4: Likewise.
22824         * m4/strtok_r.m4: Likewise.
22825         * m4/strtol.m4: Likewise.
22826         * m4/strtoll.m4: Likewise.
22827         * m4/strtoul.m4: Likewise.
22828         * m4/strtoull.m4: Likewise.
22829         * m4/strtoumax.m4: Likewise.
22830         * m4/strverscmp.m4: Likewise.
22831         * m4/threadlib.m4: Likewise.
22832         * m4/timegm.m4: Likewise.
22833         * m4/tm_gmtoff.m4: Likewise.
22834         * m4/tmpdir.m4: Likewise.
22835         * m4/tmpfile.m4: Likewise.
22836         * m4/tzset.m4: Likewise.
22837         * m4/uintmax_t.m4: Likewise.
22838         * m4/unlinkdir.m4: Likewise.
22839         * m4/unlocked-io.m4: Likewise.
22840         * m4/uptime.m4: Likewise.
22841         * m4/userspec.m4: Likewise.
22842         * m4/utimbuf.m4: Likewise.
22843         * m4/utime.m4: Likewise.
22844         * m4/utimes-null.m4: Likewise.
22845         * m4/utimes.m4: Likewise.
22846         * m4/vararrays.m4: Likewise.
22847         * m4/vasnprintf.m4: Likewise.
22848         * m4/vfprintf-posix.m4: Likewise.
22849         * m4/vprintf-posix.m4: Likewise.
22850         * m4/wait-process.m4: Likewise.
22851         * m4/wchar_t.m4: Likewise.
22852         * m4/wint_t.m4: Likewise.
22853         * m4/write-any-file.m4: Likewise.
22854         * m4/yield.m4: Likewise.
22855
22856 2009-01-13  Bruno Haible  <bruno@clisp.org>
22857
22858         Avoid test-copy-file.sh failures when ACL support insufficient.
22859         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22860         TESTS_ENVIRONMENT.
22861         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22862         Reported by Jim Meyering.
22863
22864 2009-01-13  Bruno Haible  <bruno@clisp.org>
22865
22866         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22867         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22868         * modules/unistdio/u8-printf-parse (Files): Likewise.
22869         * modules/unistdio/u32-printf-parse (Files): Likewise.
22870         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22871
22872 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22873
22874         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22875         and m4/inttypes_h.m4 too.
22876
22877 2009-01-12  Eric Blake  <ebb9@byu.net>
22878
22879         tests: IRIX 6.2 cc can't compile -0.0 into .data
22880         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22881         rather than at compile-time.
22882         * tests/test-floorl.c (minus_zero): Likewise.
22883         * tests/test-frexpl.c (minus_zero): Likewise.
22884         * tests/test-isnan.c (minus_zerol): Likewise.
22885         * tests/test-isnanl.h (minus_zero): Likewise.
22886         * tests/test-ldexpl.c (minus_zero): Likewise.
22887         * tests/test-roundl.c (minus_zero): Likewise.
22888         * tests/test-signbit.c (minus_zerol): Likewise.
22889         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22890         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22891         * tests/test-truncl.c (minus_zero): Likewise.
22892         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22893         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22894         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22895
22896 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22897
22898         regex: fix glibc bug 9697
22899         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22900         handling.
22901
22902 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22903
22904         regex: fix glibc bug 697
22905         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22906         being NULL also if there are no backreferences.
22907
22908 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22909
22910         regex: merge glibc changes
22911         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22912         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22913         re_string_skip_chars, re_string_reconstruct): Likewise.
22914         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22915
22916 2009-01-07  Jim Meyering  <meyering@redhat.com>
22917
22918         poll: filter through cppi
22919         * lib/poll.c: Indent cpp directives to reflect nesting.
22920
22921 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22922
22923         poll: don't return uninitialized
22924         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22925
22926 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22927
22928         avoid compile failure on AIX 6.1
22929         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22930         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22931
22932 2009-01-04  Jim Meyering  <meyering@redhat.com>
22933
22934         remove duplicate inclusion of <stdio.h>
22935         * tests/test-fprintf-posix.c: Likewise.
22936         * tests/test-printf-posix.c: Likewise.
22937         * tests/test-snprintf-posix.c: Likewise.
22938         * tests/test-sprintf-posix.c: Likewise.
22939         * tests/test-vasprintf-posix.c: Likewise.
22940         * tests/test-vfprintf-posix.c: Likewise.
22941         * tests/test-vprintf-posix.c: Likewise.
22942         * tests/test-vsnprintf-posix.c: Likewise.
22943         * tests/test-vsprintf-posix.c: Likewise.
22944
22945 2009-01-03  Jim Meyering  <meyering@redhat.com>
22946
22947         gnulib-tool: fix sed-based filtering
22948         * gnulib-tool (func_filter_filelist): Remove extra backslash
22949         in sed_fff_filter definition.
22950
22951 2009-01-02  Jim Meyering  <meyering@redhat.com>
22952
22953         strftime: avoid compilation failure on Solaris 2.6
22954         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22955         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22956         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22957         be available.  Reported by Tom G. Christensen.  Details in
22958         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22959
22960 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22961             Bruno Haible  <bruno@clisp.org>
22962
22963         Speed up gnulib-tool by doing more string processing through shell
22964         built-ins.
22965         * gnulib-tool (fast_func_append): New variable.
22966         (func_remove_prefix, func_remove_suffix): New functions.
22967         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22968         (func_filter_filelist): New function.
22969         (func_get_dependencies): Use func_remove_suffix instead of sed.
22970         (func_get_automake_snippet): Use func_filter_filelist instead of a
22971         subshell and sed invocation.
22972
22973 2009-01-01  Bruno Haible  <bruno@clisp.org>
22974
22975         Fix a security bug.
22976         * gnulib-tool (func_import, import, update): Don't allow the characters
22977         '"', '$', '`', '\' in macro arguments that become part of commands that
22978         are evaluated.
22979
22980 2009-01-01  Bruno Haible  <bruno@clisp.org>
22981
22982         * gnulib-tool (func_reset_sigpipe): Add more comments.
22983
22984 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22985
22986         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22987         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22988         already know the answer.
22989
22990 2009-01-01  Jim Meyering  <meyering@redhat.com>
22991
22992         * lib/version-etc.c (version_etc_va): Update copyright year.
22993
22994 2008-12-30  Bruno Haible  <bruno@clisp.org>
22995
22996         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
22997         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
22998         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
22999
23000 2008-12-29  Eric Blake  <ebb9@byu.net>
23001
23002         multiarch: avoid autoconf AC_REQUIRE bug
23003         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
23004         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
23005         2.63 and older.
23006         Reported by Bruno Haible, and analyzed in
23007         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
23008
23009 2008-12-29  Bruno Haible  <bruno@clisp.org>
23010
23011         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
23012         files in subdirectories correctly.
23013         Reported by Ralf Wildenhues.
23014
23015 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23016
23017         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
23018         rather than 'join FILE -', for Solaris join.
23019
23020 2008-12-29  Bruno Haible  <bruno@clisp.org>
23021
23022         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
23023         quoting.
23024         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23025         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23026         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23027         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
23028         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23029         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23030         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23031         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23032         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23033         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23034         * m4/nls.m4 (AM_NLS): Likewise.
23035         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
23036         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23037         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23038         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23039         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23040         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23041         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
23042         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23043         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23044         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23045         * m4/xsize.m4 (gl_XSIZE): Likewise.
23046         Suggested by Jim Meyering.
23047
23048 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23049
23050         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
23051         * lib/parse-duration.c: use a switch instead of cascading if's.
23052
23053 2008-12-29  Eric Blake  <ebb9@byu.net>
23054
23055         wchar.h: supply WEOF on Irix 5.3
23056         * lib/wchar.in.h (wint_t): Also supply WEOF.
23057         * lib/wctype.in.h (wint_t): Likewise.
23058         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
23059         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
23060         Reported by Tom G. Christensen.
23061
23062 2008-12-26  Bruno Haible  <bruno@clisp.org>
23063
23064         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
23065         i486, i586, i686.
23066
23067 2008-12-26  Bruno Haible  <bruno@clisp.org>
23068
23069         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
23070
23071 2008-12-26  Bruno Haible  <bruno@clisp.org>
23072
23073         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
23074         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
23075         not __STDC_CONSTANT_MACROS.
23076         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23077
23078 2008-12-25  Bruno Haible  <bruno@clisp.org>
23079
23080         Add support for universal builds to vasnprintf.
23081         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
23082         universal builds, guess no.
23083         * modules/vasnprintf-posix (Depends-on): Add multiarch.
23084         * modules/vasprintf-posix (Depends-on): Likewise.
23085         * modules/fprintf-posix (Depends-on): Likewise.
23086         * modules/vfprintf-posix (Depends-on): Likewise.
23087         * modules/snprintf-posix (Depends-on): Likewise.
23088         * modules/vsnprintf-posix (Depends-on): Likewise.
23089         * modules/sprintf-posix (Depends-on): Likewise.
23090         * modules/vsprintf-posix (Depends-on): Likewise.
23091         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23092         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23093         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23094         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23095         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23096         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23097         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23098
23099         Add support for universal builds to <inttypes.h>.
23100         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
23101         _SCNu64_PREFIX): In Apple
23102         universal builds, define directly, using _LP64.
23103         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
23104         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
23105         * modules/inttypes (Depends-on): Add multiarch.
23106         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23107
23108         Add support for universal builds to <stdint.h>.
23109         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
23110         universal builds, define directly, using _LP64.
23111         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
23112         Apple universal builds, don't test for the size and suffix of ptrdiff_t
23113         and size_t.
23114         * modules/stdint (Depends-on): Add multiarch.
23115         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23116
23117         New module 'multiarch'.
23118         * modules/multiarch: New file.
23119         * m4/multiarch.m4: New file.
23120
23121 2008-12-25  Bruno Haible  <bruno@clisp.org>
23122
23123         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
23124
23125 2008-12-25  Bruno Haible  <bruno@clisp.org>
23126
23127         * modules/btowc (License): Relicense under LGPLv2+.
23128         * modules/mbsinit (License): Likewise.
23129         * modules/mbrtowc (License): Likewise.
23130         * modules/wcrtomb (License): Likewise.
23131         * modules/streq (License): Likewise.
23132         Reported by David Lutterkort <lutter@redhat.com>.
23133
23134 2008-12-23  Bruno Haible  <bruno@clisp.org>
23135
23136         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
23137
23138 2008-12-23  Bruno Haible  <bruno@clisp.org>
23139
23140         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
23141         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
23142         GETADDRINFO_LIB, not in LIBS.
23143         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
23144         * modules/canon-host (Link): Likewise.
23145         * NEWS: Mention the change.
23146         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
23147         GETADDRINFO_LIB.
23148
23149 2008-12-22  Bruno Haible  <bruno@clisp.org>
23150
23151         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
23152         * doc/posix-functions/iswalpha_l.texi: Likewise.
23153         * doc/posix-functions/iswblank_l.texi: Likewise.
23154         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23155         * doc/posix-functions/iswctype_l.texi: Likewise.
23156         * doc/posix-functions/iswdigit_l.texi: Likewise.
23157         * doc/posix-functions/iswgraph_l.texi: Likewise.
23158         * doc/posix-functions/iswlower_l.texi: Likewise.
23159         * doc/posix-functions/iswprint_l.texi: Likewise.
23160         * doc/posix-functions/iswpunct_l.texi: Likewise.
23161         * doc/posix-functions/iswspace_l.texi: Likewise.
23162         * doc/posix-functions/iswupper_l.texi: Likewise.
23163         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23164         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23165         * doc/posix-functions/open_wmemstream.texi: Likewise.
23166         * doc/posix-functions/swscanf.texi: Likewise.
23167         * doc/posix-functions/towctrans_l.texi: Likewise.
23168         * doc/posix-functions/towlower.texi: Likewise.
23169         * doc/posix-functions/towlower_l.texi: Likewise.
23170         * doc/posix-functions/towupper.texi: Likewise.
23171         * doc/posix-functions/towupper_l.texi: Likewise.
23172         * doc/posix-functions/vfwprintf.texi: Likewise.
23173         * doc/posix-functions/vfwscanf.texi: Likewise.
23174         * doc/posix-functions/vswscanf.texi: Likewise.
23175         * doc/posix-functions/vwprintf.texi: Likewise.
23176         * doc/posix-functions/vwscanf.texi: Likewise.
23177         * doc/posix-functions/wcpcpy.texi: Likewise.
23178         * doc/posix-functions/wcpncpy.texi: Likewise.
23179         * doc/posix-functions/wcscasecmp.texi: Likewise.
23180         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23181         * doc/posix-functions/wcscoll_l.texi: Likewise.
23182         * doc/posix-functions/wcsdup.texi: Likewise.
23183         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23184         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23185         * doc/posix-functions/wcsnlen.texi: Likewise.
23186         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23187         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23188         * doc/posix-functions/wctrans_l.texi: Likewise.
23189         * doc/posix-functions/wctype_l.texi: Likewise.
23190         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23191         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23192         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23193         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23194         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23195         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23196         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23197         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23198         * doc/glibc-functions/wcschrnul.texi: Likewise.
23199         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23200         * doc/glibc-functions/wcstod_l.texi: Likewise.
23201         * doc/glibc-functions/wcstof_l.texi: Likewise.
23202         * doc/glibc-functions/wcstol_l.texi: Likewise.
23203         * doc/glibc-functions/wcstold_l.texi: Likewise.
23204         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23205         * doc/glibc-functions/wcstoq.texi: Likewise.
23206         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23207         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23208         * doc/glibc-functions/wcstouq.texi: Likewise.
23209         * doc/glibc-functions/wmempcpy.texi: Likewise.
23210
23211 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23212             Eric Blake  <ebb9@byu.net>
23213             Paolo Bonzini  <bonzini@gnu.org>
23214             Bruno Haible  <bruno@clisp.org>
23215
23216         Make c-stack work on Haiku.
23217         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23218         (c_stack_action): Use SA_ONSTACK flag.
23219
23220 2008-12-22  Bruno Haible  <bruno@clisp.org>
23221
23222         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23223
23224 2008-12-22  Bruno Haible  <bruno@clisp.org>
23225
23226         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23227         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23228         being overridden.
23229         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23230         New macros.
23231         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23233         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23234         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23235
23236 2008-12-22  Bruno Haible  <bruno@clisp.org>
23237
23238         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23239         from test code.
23240
23241 2008-12-22  Eric Blake  <ebb9@byu.net>
23242
23243         Avoid gcc warnings on cygwin.
23244         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23245         Avoid unused variable.
23246         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23247         Likewise.
23248
23249 2008-12-22  Bruno Haible  <bruno@clisp.org>
23250
23251         Remove HAVE_MBRTOWC conditionals.
23252         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23253         (mbscasecmp): Assume mbrtowc function.
23254         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23255         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23256         * lib/mbschr.c: Include mbuiter.h unconditionally.
23257         (mbschr): Assume mbrtowc function.
23258         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23259         (mbscspn): Assume mbrtowc function.
23260         * lib/mbslen.c: Include mbuiter.h unconditionally.
23261         (mbslen): Assume mbrtowc function.
23262         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23263         (mbsncasecmp): Assume mbrtowc function.
23264         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23265         (mbsnlen): Assume mbrtowc function.
23266         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23267         (mbspbrk): Assume mbrtowc function.
23268         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23269         (mbspcasecmp): Assume mbrtowc function.
23270         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23271         (mbsrchr): Assume mbrtowc function.
23272         * lib/mbssep.c: Include mbuiter.h unconditionally.
23273         (mbssep): Assume mbrtowc function.
23274         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23275         (mbsspn): Assume mbrtowc function.
23276         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23277         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23278         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23279         (mbstok_r): Assume mbrtowc function.
23280         * lib/propername.c: Include mbuiter.h unconditionally.
23281         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23282         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23283         (trim2): Assume mbrtowc function.
23284         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23285         (mbsnwidth): Assume mbrtowc function.
23286         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23287         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23288         fallback definitions.
23289         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23290
23291 2008-12-22  Bruno Haible  <bruno@clisp.org>
23292
23293         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23294
23295 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23296
23297         * modules/regex: Request emulations for the mb*/wc* functions we need.
23298         * m4/regex.m4: Don't look for those functions here.
23299         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23300
23301 2008-12-22  Bruno Haible  <bruno@clisp.org>
23302
23303         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23304
23305 2008-12-21  Bruno Haible  <bruno@clisp.org>
23306
23307         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23308         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23309         (Include): Remove conditionalization.
23310         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23311         (Include): Remove conditionalization.
23312         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23313         (Include): Remove conditionalization.
23314         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23315         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23316         * NEWS: Mention the change.
23317         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23318         via Sergey Poznyakoff <gray@gnu.org.ua>.
23319
23320 2008-12-21  Bruno Haible  <bruno@clisp.org>
23321
23322         * MODULES.html.sh (Extended multibyte and wide character utilities
23323         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23324         wcrtomb, wcsrtombs.
23325         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23326         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23327         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23328         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23329
23330 2008-12-21  Bruno Haible  <bruno@clisp.org>
23331
23332         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23333
23334 2008-12-21  Bruno Haible  <bruno@clisp.org>
23335
23336         * modules/wcsnrtombs-tests: New file.
23337         * tests/test-wcsnrtombs1.sh: New file.
23338         * tests/test-wcsnrtombs2.sh: New file.
23339         * tests/test-wcsnrtombs3.sh: New file.
23340         * tests/test-wcsnrtombs4.sh: New file.
23341         * tests/test-wcsnrtombs.c: New file.
23342
23343         New module 'wcsnrtombs'.
23344         * lib/wchar.in.h (wcsnrtombs): New declaration.
23345         * lib/wcsnrtombs.c: New file.
23346         * lib/wcsrtombs-state.c: New file.
23347         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23348         (internal_state): Remove variable.
23349         * m4/wcsnrtombs.m4: New file.
23350         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23351         compilation units.
23352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23353         HAVE_WCSNRTOMBS.
23354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23355         HAVE_WCSNRTOMBS.
23356         * modules/wcsnrtombs: New file.
23357         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23358         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23359
23360 2008-12-21  Bruno Haible  <bruno@clisp.org>
23361
23362         * modules/wcsrtombs-tests: New file.
23363         * tests/test-wcsrtombs1.sh: New file.
23364         * tests/test-wcsrtombs2.sh: New file.
23365         * tests/test-wcsrtombs3.sh: New file.
23366         * tests/test-wcsrtombs4.sh: New file.
23367         * tests/test-wcsrtombs.c: New file.
23368
23369         New module 'wcsrtombs'.
23370         * lib/wchar.in.h (wcsrtombs): New declaration.
23371         * lib/wcsrtombs.c: New file.
23372         * m4/wcsrtombs.m4: New file.
23373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23374         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23376         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23377         * modules/wcsrtombs: New file.
23378         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23379         bugs.
23380
23381 2008-12-21  Bruno Haible  <bruno@clisp.org>
23382
23383         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23384         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23385         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23386         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23387         if not correct.
23388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23389         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23390         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23391         m4/locale-zh.m4, m4/codeset.m4.
23392         * doc/posix-functions/wcrtomb.texi: Document the bug.
23393
23394 2008-12-21  Bruno Haible  <bruno@clisp.org>
23395
23396         Work around a btowc() bug on IRIX 6.5.
23397         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23398         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23399         REPLACE_WTOBC if not.
23400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23401         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23402         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23403
23404 2008-12-21  Bruno Haible  <bruno@clisp.org>
23405
23406         * modules/wcrtomb-tests: New file.
23407         * tests/test-wcrtomb.sh: New file.
23408         * tests/test-wcrtomb.c: New file.
23409
23410         New module 'wcrtomb'.
23411         * lib/wchar.in.h (wcrtomb): New declaration.
23412         * lib/wcrtomb.c: New file.
23413         * m4/wcrtomb.m4: New file.
23414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23415         HAVE_WCRTOMB.
23416         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23417         HAVE_WCRTOMB.
23418         * modules/wcrtomb: New file.
23419         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23420
23421 2008-12-21  Bruno Haible  <bruno@clisp.org>
23422
23423         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23424         * modules/mbsrtowcs (Files): Likewise.
23425         * modules/wctob (Files): Likewise.
23426         * modules/c-strcase-tests (Files): Likewise.
23427         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23428         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23429         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23430         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23431         * modules/vasnprintf-posix-tests (Files): Likewise.
23432
23433 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23434
23435         gitlog-to-changelog: pass all command-line arguments to git-log
23436         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23437         it is sometimes convenient to filter the commits in various ways.
23438         gitlog-to-changelog only allows --since to specify a start date,
23439         but git-log itself supports many other filtering mechanisms.
23440         At the moment, I want to filter by branch name.  Rather than
23441         adding a --branch option to gitlog-to-changelog, it seems more
23442         flexible to simply pass all options directly to git-log and let
23443         git do the work.  Notice that this effectively makes --since a
23444         redundant option for gitlog-to-changelog, but removing it would
23445         require current usage to change since calls would then require
23446         an additional '--'.
23447
23448 2008-12-21  Bruno Haible  <bruno@clisp.org>
23449
23450         * modules/mbsnrtowcs-tests: New file.
23451         * tests/test-mbsnrtowcs1.sh: New file.
23452         * tests/test-mbsnrtowcs2.sh: New file.
23453         * tests/test-mbsnrtowcs3.sh: New file.
23454         * tests/test-mbsnrtowcs4.sh: New file.
23455         * tests/test-mbsnrtowcs.c: New file.
23456
23457         New module 'mbsnrtowcs'.
23458         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23459         * lib/mbsnrtowcs.c: New file.
23460         * lib/mbsrtowcs-state.c: New file.
23461         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23462         (internal_state): Remove variable.
23463         * m4/mbsnrtowcs.m4: New file.
23464         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23465         compilation units.
23466         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23467         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23468         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23469         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23470         * modules/mbsnrtowcs: New file.
23471         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23472         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23473         portability problem.
23474
23475 2008-12-21  Bruno Haible  <bruno@clisp.org>
23476
23477         Work around mbsrtowcs bug.
23478         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23479         (gl_FUNC_MBSRTOWCS): Invoke it.
23480         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23481         m4/locale-zh.m4.
23482         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23483
23484 2008-12-21  Bruno Haible  <bruno@clisp.org>
23485
23486         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23487
23488 2008-12-21  Bruno Haible  <bruno@clisp.org>
23489
23490         Update doc for AIX.
23491         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23492         16-bit wchar_t type.
23493         * doc/posix-functions/btowc.texi: Likewise.
23494         * doc/posix-functions/fgetwc.texi: Likewise.
23495         * doc/posix-functions/fgetws.texi: Likewise.
23496         * doc/posix-functions/fputwc.texi: Likewise.
23497         * doc/posix-functions/fputws.texi: Likewise.
23498         * doc/posix-functions/fwide.texi: Likewise.
23499         * doc/posix-functions/fwprintf.texi: Likewise.
23500         * doc/posix-functions/fwscanf.texi: Likewise.
23501         * doc/posix-functions/getwchar.texi: Likewise.
23502         * doc/posix-functions/getwc.texi: Likewise.
23503         * doc/posix-functions/iswalnum.texi: Likewise.
23504         * doc/posix-functions/iswalpha.texi: Likewise.
23505         * doc/posix-functions/iswblank.texi: Likewise.
23506         * doc/posix-functions/iswcntrl.texi: Likewise.
23507         * doc/posix-functions/iswctype.texi: Likewise.
23508         * doc/posix-functions/iswdigit.texi: Likewise.
23509         * doc/posix-functions/iswgraph.texi: Likewise.
23510         * doc/posix-functions/iswlower.texi: Likewise.
23511         * doc/posix-functions/iswprint.texi: Likewise.
23512         * doc/posix-functions/iswpunct.texi: Likewise.
23513         * doc/posix-functions/iswspace.texi: Likewise.
23514         * doc/posix-functions/iswupper.texi: Likewise.
23515         * doc/posix-functions/iswxdigit.texi: Likewise.
23516         * doc/posix-functions/mbrtowc.texi: Likewise.
23517         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23518         * doc/posix-functions/mbstowcs.texi: Likewise.
23519         * doc/posix-functions/mbtowc.texi: Likewise.
23520         * doc/posix-functions/putwchar.texi: Likewise.
23521         * doc/posix-functions/putwc.texi: Likewise.
23522         * doc/posix-functions/swprintf.texi: Likewise.
23523         * doc/posix-functions/tolower.texi: Likewise.
23524         * doc/posix-functions/toupper.texi: Likewise.
23525         * doc/posix-functions/towctrans.texi: Likewise.
23526         * doc/posix-functions/ungetwc.texi: Likewise.
23527         * doc/posix-functions/vswprintf.texi: Likewise.
23528         * doc/posix-functions/wcrtomb.texi: Likewise.
23529         * doc/posix-functions/wcscat.texi: Likewise.
23530         * doc/posix-functions/wcschr.texi: Likewise.
23531         * doc/posix-functions/wcscmp.texi: Likewise.
23532         * doc/posix-functions/wcscoll.texi: Likewise.
23533         * doc/posix-functions/wcscpy.texi: Likewise.
23534         * doc/posix-functions/wcscspn.texi: Likewise.
23535         * doc/posix-functions/wcsftime.texi: Likewise.
23536         * doc/posix-functions/wcslen.texi: Likewise.
23537         * doc/posix-functions/wcsncat.texi: Likewise.
23538         * doc/posix-functions/wcsncmp.texi: Likewise.
23539         * doc/posix-functions/wcsncpy.texi: Likewise.
23540         * doc/posix-functions/wcspbrk.texi: Likewise.
23541         * doc/posix-functions/wcsrchr.texi: Likewise.
23542         * doc/posix-functions/wcsrtombs.texi: Likewise.
23543         * doc/posix-functions/wcsspn.texi: Likewise.
23544         * doc/posix-functions/wcsstr.texi: Likewise.
23545         * doc/posix-functions/wcstod.texi: Likewise.
23546         * doc/posix-functions/wcstof.texi: Likewise.
23547         * doc/posix-functions/wcstoimax.texi: Likewise.
23548         * doc/posix-functions/wcstok.texi: Likewise.
23549         * doc/posix-functions/wcstold.texi: Likewise.
23550         * doc/posix-functions/wcstoll.texi: Likewise.
23551         * doc/posix-functions/wcstol.texi: Likewise.
23552         * doc/posix-functions/wcstombs.texi: Likewise.
23553         * doc/posix-functions/wcstoull.texi: Likewise.
23554         * doc/posix-functions/wcstoul.texi: Likewise.
23555         * doc/posix-functions/wcstoumax.texi: Likewise.
23556         * doc/posix-functions/wcswidth.texi: Likewise.
23557         * doc/posix-functions/wcsxfrm.texi: Likewise.
23558         * doc/posix-functions/wctob.texi: Likewise.
23559         * doc/posix-functions/wctomb.texi: Likewise.
23560         * doc/posix-functions/wctrans.texi: Likewise.
23561         * doc/posix-functions/wctype.texi: Likewise.
23562         * doc/posix-functions/wcwidth.texi: Likewise.
23563         * doc/posix-functions/wmemchr.texi: Likewise.
23564         * doc/posix-functions/wmemcmp.texi: Likewise.
23565         * doc/posix-functions/wmemcpy.texi: Likewise.
23566         * doc/posix-functions/wmemmove.texi: Likewise.
23567         * doc/posix-functions/wmemset.texi: Likewise.
23568         * doc/posix-functions/wprintf.texi: Likewise.
23569         * doc/posix-functions/wscanf.texi: Likewise.
23570
23571 2008-12-21  Bruno Haible  <bruno@clisp.org>
23572
23573         Update doc for HP-UX 11.11.
23574         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23575         in HP-UX version 11.00, not in all versions of HP-UX 11.
23576         * doc/posix-functions/fwide.texi: Likewise.
23577         * doc/posix-functions/fwprintf.texi: Likewise.
23578         * doc/posix-functions/fwscanf.texi: Likewise.
23579         * doc/posix-functions/inet_ntop.texi: Likewise.
23580         * doc/posix-functions/inet_pton.texi: Likewise.
23581         * doc/posix-functions/mbrlen.texi: Likewise.
23582         * doc/posix-functions/mbrtowc.texi: Likewise.
23583         * doc/posix-functions/mbsinit.texi: Likewise.
23584         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23585         * doc/posix-functions/swprintf.texi: Likewise.
23586         * doc/posix-functions/swscanf.texi: Likewise.
23587         * doc/posix-functions/towctrans.texi: Likewise.
23588         * doc/posix-functions/vfwprintf.texi: Likewise.
23589         * doc/posix-functions/vswprintf.texi: Likewise.
23590         * doc/posix-functions/vwprintf.texi: Likewise.
23591         * doc/posix-functions/wcrtomb.texi: Likewise.
23592         * doc/posix-functions/wcsrtombs.texi: Likewise.
23593         * doc/posix-functions/wcsstr.texi: Likewise.
23594         * doc/posix-functions/wctob.texi: Likewise.
23595         * doc/posix-functions/wctrans.texi: Likewise.
23596         * doc/posix-functions/wmemchr.texi: Likewise.
23597         * doc/posix-functions/wmemcmp.texi: Likewise.
23598         * doc/posix-functions/wmemcpy.texi: Likewise.
23599         * doc/posix-functions/wmemmove.texi: Likewise.
23600         * doc/posix-functions/wmemset.texi: Likewise.
23601         * doc/posix-functions/wprintf.texi: Likewise.
23602         * doc/posix-functions/wscanf.texi: Likewise.
23603
23604 2008-12-21  Bruno Haible  <bruno@clisp.org>
23605
23606         Work around a portability problem.
23607         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23608         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23609
23610 2008-12-20  Bruno Haible  <bruno@clisp.org>
23611
23612         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23613         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23614         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23616         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23617
23618         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23619         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23620         set.
23621         (GNULIB_defined_mbstate_t): New macro.
23622         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23623         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23624         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23625         reuses the system's mbrtowc function but works around the bugs.
23626         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23627         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23628         macros.
23629         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23630         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23631         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23632         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23633         REPLACE_MBSINIT if mbsinit needs to be overridden.
23634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23635         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23636         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23637         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23638         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23639         m4/locale-zh.m4.
23640         (Depends): Add mbsinit.
23641         * modules/mbsinit (Depends): Add mbrtowc.
23642         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23643
23644 2008-12-20  Bruno Haible  <bruno@clisp.org>
23645
23646         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23647         so that there are no conversion errors on AIX.
23648         * tests/test-mbsrtowcs.c (main): LIkewise.
23649
23650 2008-12-20  Bruno Haible  <bruno@clisp.org>
23651
23652         Work around wctob bug on Solaris <= 9.
23653         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23654         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23656         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23657         * modules/wctob (Files): Add m4/locale-fr.m4.
23658         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23659
23660 2008-12-20  Bruno Haible  <bruno@clisp.org>
23661
23662         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23663         /dev/null.
23664         * tests/test-select-in.sh: Likewise.
23665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23666
23667 2008-12-20  Bruno Haible  <bruno@clisp.org>
23668
23669         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23670         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23671         Cygwin 1.5.x.
23672
23673 2008-12-20  Bruno Haible  <bruno@clisp.org>
23674
23675         Ensure mbstate_t is defined on HP-UX 11.11.
23676         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23677         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23678         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23679         AC_USE_SYSTEM_EXTENSIONS.
23680         * modules/fnmatch (Depends-on): Add extensions.
23681         * modules/mbrlen (Depends-on): Likewise.
23682         * modules/mbrtowc (Depends-on): Likewise.
23683         * modules/mbsinit (Depends-on): Likewise.
23684         * modules/mbsrtowcs (Depends-on): Likewise.
23685         * modules/mbswidth (Depends-on): Likewise.
23686         * modules/quotearg (Depends-on): Likewise.
23687         * modules/strftime (Depends-on): Likewise.
23688
23689 2008-12-20  Bruno Haible  <bruno@clisp.org>
23690
23691         Ensure wctob is declared on IRIX 6.5.
23692         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23693         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23694         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23696         of HAVE_WCTOB.
23697         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23698         HAVE_WCTOB.
23699         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23700
23701 2008-12-19  Bruno Haible  <bruno@clisp.org>
23702
23703         * modules/mbsrtowcs-tests: New file.
23704         * tests/test-mbsrtowcs1.sh: New file.
23705         * tests/test-mbsrtowcs2.sh: New file.
23706         * tests/test-mbsrtowcs3.sh: New file.
23707         * tests/test-mbsrtowcs4.sh: New file.
23708         * tests/test-mbsrtowcs.c: New file.
23709
23710         New module 'mbsrtowcs'.
23711         * lib/wchar.in.h (mbsrtowcs): New declaration.
23712         * lib/mbsrtowcs.c: New file.
23713         * m4/mbsrtowcs.m4: New file.
23714         * modules/mbsrtowcs: New file.
23715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23716         HAVE_MBSRTOWCS.
23717         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23718         HAVE_MBSRTOWCS.
23719         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23720
23721 2008-12-19  Bruno Haible  <bruno@clisp.org>
23722
23723         New module 'mbrlen'.
23724         * lib/wchar.in.h (mbrlen): New declaration.
23725         * lib/mbrlen.c: New file.
23726         * m4/mbrlen.m4: New file.
23727         * modules/mbrlen: New file.
23728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23729         HAVE_MBRLEN.
23730         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23731         HAVE_MBRLEN.
23732         * doc/posix-functions/mbrlen.texi: Document the new module.
23733
23734 2008-12-19  Bruno Haible  <bruno@clisp.org>
23735
23736         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23737         * modules/mbrtowc (Depends-on): Add verify.
23738         Suggested by Paul Eggert.
23739
23740 2008-12-18  Bruno Haible  <bruno@clisp.org>
23741
23742         * modules/mbsinit-tests: New file.
23743         * tests/test-mbsinit.sh: New file.
23744         * tests/test-mbsinit.c: New file.
23745
23746 2008-12-18  Bruno Haible  <bruno@clisp.org>
23747
23748         * modules/mbrtowc-tests: New file.
23749         * tests/test-mbrtowc1.sh: New file.
23750         * tests/test-mbrtowc2.sh: New file.
23751         * tests/test-mbrtowc3.sh: New file.
23752         * tests/test-mbrtowc4.sh: New file.
23753         * tests/test-mbrtowc.c: New file.
23754
23755         New module 'mbrtowc'.
23756         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23757         mbsinit and mbrtowc.
23758         (mbrtowc): New declaration.
23759         * lib/mbrtowc.c: New file.
23760         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23761         * modules/mbrtowc: New file.
23762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23763         HAVE_MBRTOWC.
23764         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23765         HAVE_MBRTOWC.
23766         * doc/posix-functions/mbrtowc.texi: Document the new module.
23767
23768 2008-12-18  Bruno Haible  <bruno@clisp.org>
23769
23770         New module 'wctob'.
23771         * lib/wchar.in.h (wctob): New declaration.
23772         * lib/wctob.c: New file.
23773         * m4/wctob.m4: New file.
23774         * modules/wctob: New file.
23775         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23776         HAVE_WCTOB.
23777         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23778         * doc/posix-functions/wctob.texi: Document the new module.
23779
23780 2008-12-18  Bruno Haible  <bruno@clisp.org>
23781
23782         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23783         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23784
23785 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23786
23787         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23788         G. Christensen" <tgc@jupiterrise.com>.
23789
23790         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23791         G. Christensen" <tgc@jupiterrise.com>.
23792
23793         * lib/flock.c: Need to include string.h.  Reported by "Tom
23794         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23795         <ebb9@byu.net>.
23796
23797 2008-12-18  Bruno Haible  <bruno@clisp.org>
23798
23799         * m4/locale-ja.m4: New file, from GNU gettext.
23800
23801 2008-12-17  Bruno Haible  <bruno@clisp.org>
23802
23803         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23804         Suggested by Eric Blake.
23805
23806 2008-12-17  Bruno Haible  <bruno@clisp.org>
23807
23808         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23809
23810 2008-12-17  Bruno Haible  <bruno@clisp.org>
23811
23812         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23813         * modules/mbsinit (Depends-on): Add verify.
23814         Suggested by Paul Eggert.
23815
23816 2008-12-17  Bruno Haible  <bruno@clisp.org>
23817
23818         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23819         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23820         gl_FUNC_MBRTOWC.
23821         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23822         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23823         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23824         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23825         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23826         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23827         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23828         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23829         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23830         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23831         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23832         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23833         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23834         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23835         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23836         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23837         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23838         * modules/trim (configure.ac): Likewise.
23839
23840 2008-12-17  Bruno Haible  <bruno@clisp.org>
23841
23842         * modules/btowc-tests: New file.
23843         * tests/test-btowc1.sh: New file.
23844         * tests/test-btowc2.sh: New file.
23845         * tests/test-btowc.c: New file.
23846
23847         New module 'btowc'.
23848         * lib/wchar.in.h (btowc): New declaration.
23849         * lib/btowc.c: New file.
23850         * m4/btowc.m4: New file.
23851         * modules/btowc: New file.
23852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23853         HAVE_BTOWC.
23854         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23855         * doc/posix-functions/btowc.texi: Document the new module.
23856
23857 2008-12-17  Bruno Haible  <bruno@clisp.org>
23858
23859         New module 'mbsinit'.
23860         * lib/wchar.in.h (mbsinit): New declaration.
23861         * lib/mbsinit.c: New file.
23862         * m4/mbsinit.m4: New file.
23863         * modules/mbsinit: New file.
23864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23865         HAVE_MBSINIT.
23866         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23867         HAVE_MBSINIT.
23868         * doc/posix-functions/mbsinit.texi: Document the new module.
23869
23870 2008-12-16  Bruno Haible  <bruno@clisp.org>
23871
23872         * lib/unistd.in.h: Add comment.
23873         * tests/test-environ.c: Don't include <stdlib.h>.
23874
23875 2008-12-16  Bruno Haible  <bruno@clisp.org>
23876
23877         * lib/parse-duration.h (parse_duration): Document return value
23878         convention.
23879         * lib/parse-duration.c: Include specification header first. Add
23880         comments.
23881         (_): Remove macro.
23882         (parse_year_month_day, parse_hour_minute_second): Move side effects
23883         outside of strchr call.
23884         (parse_non_iso8601): Move side effects outside of isspace call.
23885         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23886         call.
23887
23888 2008-12-16  Bruno Haible  <bruno@clisp.org>
23889
23890         * tests/test-parse-duration.sh: Produce no output when the test
23891         succeeds.
23892
23893 2008-12-16  Bruno Haible  <bruno@clisp.org>
23894
23895         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23896         expressions.
23897
23898 2008-12-15  Bruno Haible  <bruno@clisp.org>
23899
23900         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23901         * doc/glibc-functions/flistxattr.texi: Likewise.
23902         * doc/glibc-functions/fopencookie.texi: Likewise.
23903         * doc/glibc-functions/fremovexattr.texi: Likewise.
23904         * doc/glibc-functions/fsetxattr.texi: Likewise.
23905         * doc/glibc-functions/getxattr.texi: Likewise.
23906         * doc/glibc-functions/lgetxattr.texi: Likewise.
23907         * doc/glibc-functions/listxattr.texi: Likewise.
23908         * doc/glibc-functions/llistxattr.texi: Likewise.
23909         * doc/glibc-functions/lremovexattr.texi: Likewise.
23910         * doc/glibc-functions/lsetxattr.texi: Likewise.
23911         * doc/glibc-functions/removexattr.texi: Likewise.
23912         * doc/glibc-functions/setxattr.texi: Likewise.
23913         * doc/posix-functions/open_memstream.texi: Likewise.
23914
23915 2008-12-15  Eric Blake  <ebb9@byu.net>
23916
23917         Update doc for cygwin 1.7.
23918         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23919         functions.
23920         * doc/posix-functions/fchmodat.texi: Likewise.
23921         * doc/posix-functions/fchownat.texi: Likewise.
23922         * doc/posix-functions/fdopendir.texi: Likewise.
23923         * doc/posix-functions/fmemopen.texi: Likewise.
23924         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23925         * doc/posix-functions/fstatat.texi: Likewise.
23926         * doc/posix-functions/futimens.texi: Likewise.
23927         * doc/posix-functions/gai_strerror.texi: Likewise.
23928         * doc/posix-functions/getaddrinfo.texi: Likewise.
23929         * doc/posix-functions/getnameinfo.texi: Likewise.
23930         * doc/posix-functions/if_freenameindex.texi: Likewise.
23931         * doc/posix-functions/if_indextoname.texi: Likewise.
23932         * doc/posix-functions/if_nameindex.texi: Likewise.
23933         * doc/posix-functions/if_nametoindex.texi: Likewise.
23934         * doc/posix-functions/insque.texi: Likewise.
23935         * doc/posix-functions/linkat.texi: Likewise.
23936         * doc/posix-functions/llrint.texi: Likewise.
23937         * doc/posix-functions/llrintf.texi: Likewise.
23938         * doc/posix-functions/llrintl.texi: Likewise.
23939         * doc/posix-functions/lockf.texi: Likewise.
23940         * doc/posix-functions/lrintl.texi: Likewise.
23941         * doc/posix-functions/mkdirat.texi: Likewise.
23942         * doc/posix-functions/mkfifoat.texi: Likewise.
23943         * doc/posix-functions/mknodat.texi: Likewise.
23944         * doc/posix-functions/mq_close.texi: Likewise.
23945         * doc/posix-functions/mq_getattr.texi: Likewise.
23946         * doc/posix-functions/mq_notify.texi: Likewise.
23947         * doc/posix-functions/mq_open.texi: Likewise.
23948         * doc/posix-functions/mq_receive.texi: Likewise.
23949         * doc/posix-functions/mq_send.texi: Likewise.
23950         * doc/posix-functions/mq_setattr.texi: Likewise.
23951         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23952         * doc/posix-functions/mq_timedsend.texi: Likewise.
23953         * doc/posix-functions/mq_unlink.texi: Likewise.
23954         * doc/posix-functions/open_memstream.texi: Likewise.
23955         * doc/posix-functions/openat.texi: Likewise.
23956         * doc/posix-functions/posix_fadvise.texi: Likewise.
23957         * doc/posix-functions/posix_fallocate.texi: Likewise.
23958         * doc/posix-functions/posix_madvise.texi: Likewise.
23959         * doc/posix-functions/posix_memalign.texi: Likewise.
23960         * doc/posix-functions/posix_openpt.texi: Likewise.
23961         * doc/posix-functions/readlinkat.texi: Likewise.
23962         * doc/posix-functions/remque.texi: Likewise.
23963         * doc/posix-functions/renameat.texi: Likewise.
23964         * doc/posix-functions/rintl.texi: Likewise.
23965         * doc/posix-functions/sem_unlink.texi: Likewise.
23966         * doc/posix-functions/shm_open.texi: Likewise.
23967         * doc/posix-functions/shm_unlink.texi: Likewise.
23968         * doc/posix-functions/signgam.texi: Likewise.
23969         * doc/posix-functions/sigset.texi: Likewise.
23970         * doc/posix-functions/stpcpy.texi: Likewise.
23971         * doc/posix-functions/stpncpy.texi: Likewise.
23972         * doc/posix-functions/strerror.texi: Likewise.
23973         * doc/posix-functions/strtod.texi: Likewise.
23974         * doc/posix-functions/symlinkat.texi: Likewise.
23975         * doc/posix-functions/unlinkat.texi: Likewise.
23976         * doc/posix-functions/utimensat.texi: Likewise.
23977         * doc/glibc-functions/bindresvport.texi: Likewise.
23978         * doc/glibc-functions/dn_expand.texi: Likewise.
23979         * doc/glibc-functions/exp10.texi: Likewise.
23980         * doc/glibc-functions/exp10f.texi: Likewise.
23981         * doc/glibc-functions/fgetxattr.texi: Likewise.
23982         * doc/glibc-functions/flistxattr.texi: Likewise.
23983         * doc/glibc-functions/fopencookie.texi: Likewise.
23984         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23985         * doc/glibc-functions/fremovexattr.texi: Likewise.
23986         * doc/glibc-functions/fsetxattr.texi: Likewise.
23987         * doc/glibc-functions/getifaddrs.texi: Likewise.
23988         * doc/glibc-functions/getxattr.texi: Likewise.
23989         * doc/glibc-functions/lgetxattr.texi: Likewise.
23990         * doc/glibc-functions/listxattr.texi: Likewise.
23991         * doc/glibc-functions/llistxattr.texi: Likewise.
23992         * doc/glibc-functions/lremovexattr.texi: Likewise.
23993         * doc/glibc-functions/lsetxattr.texi: Likewise.
23994         * doc/glibc-functions/pow10.texi: Likewise.
23995         * doc/glibc-functions/pow10f.texi: Likewise.
23996         * doc/glibc-functions/rcmd_af.texi: Likewise.
23997         * doc/glibc-functions/removexattr.texi: Likewise.
23998         * doc/glibc-functions/res_init.texi: Likewise.
23999         * doc/glibc-functions/res_mkquery.texi: Likewise.
24000         * doc/glibc-functions/res_query.texi: Likewise.
24001         * doc/glibc-functions/res_querydomain.texi: Likewise.
24002         * doc/glibc-functions/res_send.texi: Likewise.
24003         * doc/glibc-functions/rresvport_af.texi: Likewise.
24004         * doc/glibc-functions/setxattr.texi: Likewise.
24005         * doc/glibc-functions/strcasestr.texi: Likewise.
24006
24007 2008-12-15  Bruno Haible  <bruno@clisp.org>
24008
24009         Fix compilation error on OSF/1 4.0.
24010         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
24011         <sys/time.h>, simply delegate to the system header.
24012         Reported by Daniel Richard G. <oss@teragram.com>.
24013
24014 2008-12-15  Bruno Haible  <bruno@clisp.org>
24015
24016         * doc/posix-functions/openat.texi: Mention the 'openat' module.
24017         * doc/posix-functions/fchmodat.texi: Likewise.
24018         * doc/posix-functions/fchownat.texi: Likewise.
24019         * doc/posix-functions/fdopendir.texi: Likewise.
24020         * doc/posix-functions/fstatat.texi: Likewise.
24021         * doc/posix-functions/mkdirat.texi: Likewise.
24022         * doc/posix-functions/unlinkat.texi: Likewise.
24023
24024 2008-12-14  Bruno Haible  <bruno@clisp.org>
24025
24026         Update doc for POSIX:2008.
24027         * doc/posix-functions/faccessat.texi: New file.
24028         * doc/posix-functions/fchmodat.texi: New file.
24029         * doc/posix-functions/fchownat.texi: New file.
24030         * doc/posix-functions/fdopendir.texi: New file.
24031         * doc/posix-functions/fstatat.texi: New file.
24032         * doc/posix-functions/futimens.texi: New file.
24033         * doc/posix-functions/linkat.texi: New file.
24034         * doc/posix-functions/mkdirat.texi: New file.
24035         * doc/posix-functions/mkfifoat.texi: New file.
24036         * doc/posix-functions/mknodat.texi: New file.
24037         * doc/posix-functions/open_wmemstream.texi: New file.
24038         * doc/posix-functions/openat.texi: New file.
24039         * doc/posix-functions/psiginfo.texi: New file.
24040         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
24041         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
24042         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
24043         * doc/posix-functions/readlinkat.texi: New file.
24044         * doc/posix-functions/renameat.texi: New file.
24045         * doc/posix-functions/strerror_l.texi: New file.
24046         * doc/posix-functions/symlinkat.texi: New file.
24047         * doc/posix-functions/unlinkat.texi: New file.
24048         * doc/posix-functions/utimensat.texi: New file.
24049         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24050
24051 2008-12-14  Bruno Haible  <bruno@clisp.org>
24052
24053         Update doc for POSIX:2008.
24054         * doc/posix-functions/alphasort.texi: Renamed from
24055         doc/glibc-functions/alphasort.texi.
24056         * doc/posix-functions/dirfd.texi: Renamed from
24057         doc/glibc-functions/dirfd.texi.
24058         * doc/posix-functions/dprintf.texi: Renamed from
24059         doc/glibc-functions/dprintf.texi.
24060         * doc/posix-functions/duplocale.texi: Renamed from
24061         doc/glibc-functions/duplocale.texi.
24062         * doc/posix-functions/fexecve.texi: Renamed from
24063         doc/glibc-functions/fexecve.texi.
24064         * doc/posix-functions/fmemopen.texi: Renamed from
24065         doc/glibc-functions/fmemopen.texi.
24066         * doc/posix-functions/freelocale.texi: Renamed from
24067         doc/glibc-functions/freelocale.texi.
24068         * doc/posix-functions/getdate_err.texi: Renamed from
24069         doc/glibc-functions/getdate_err.texi.
24070         * doc/posix-functions/isalnum_l.texi: Renamed from
24071         doc/glibc-functions/isalnum_l.texi.
24072         * doc/posix-functions/isalpha_l.texi: Renamed from
24073         doc/glibc-functions/isalpha_l.texi.
24074         * doc/posix-functions/isblank_l.texi: Renamed from
24075         doc/glibc-functions/isblank_l.texi.
24076         * doc/posix-functions/iscntrl_l.texi: Renamed from
24077         doc/glibc-functions/iscntrl_l.texi.
24078         * doc/posix-functions/isdigit_l.texi: Renamed from
24079         doc/glibc-functions/isdigit_l.texi.
24080         * doc/posix-functions/isgraph_l.texi: Renamed from
24081         doc/glibc-functions/isgraph_l.texi.
24082         * doc/posix-functions/islower_l.texi: Renamed from
24083         doc/glibc-functions/islower_l.texi.
24084         * doc/posix-functions/isprint_l.texi: Renamed from
24085         doc/glibc-functions/isprint_l.texi.
24086         * doc/posix-functions/ispunct_l.texi: Renamed from
24087         doc/glibc-functions/ispunct_l.texi.
24088         * doc/posix-functions/isspace_l.texi: Renamed from
24089         doc/glibc-functions/isspace_l.texi.
24090         * doc/posix-functions/isupper_l.texi: Renamed from
24091         doc/glibc-functions/isupper_l.texi.
24092         * doc/posix-functions/iswalnum_l.texi: Renamed from
24093         doc/glibc-functions/iswalnum_l.texi.
24094         * doc/posix-functions/iswalpha_l.texi: Renamed from
24095         doc/glibc-functions/iswalpha_l.texi.
24096         * doc/posix-functions/iswblank_l.texi: Renamed from
24097         doc/glibc-functions/iswblank_l.texi.
24098         * doc/posix-functions/iswcntrl_l.texi: Renamed from
24099         doc/glibc-functions/iswcntrl_l.texi.
24100         * doc/posix-functions/iswctype_l.texi: Renamed from
24101         doc/glibc-functions/iswctype_l.texi.
24102         * doc/posix-functions/iswdigit_l.texi: Renamed from
24103         doc/glibc-functions/iswdigit_l.texi.
24104         * doc/posix-functions/iswgraph_l.texi: Renamed from
24105         doc/glibc-functions/iswgraph_l.texi.
24106         * doc/posix-functions/iswlower_l.texi: Renamed from
24107         doc/glibc-functions/iswlower_l.texi.
24108         * doc/posix-functions/iswprint_l.texi: Renamed from
24109         doc/glibc-functions/iswprint_l.texi.
24110         * doc/posix-functions/iswpunct_l.texi: Renamed from
24111         doc/glibc-functions/iswpunct_l.texi.
24112         * doc/posix-functions/iswspace_l.texi: Renamed from
24113         doc/glibc-functions/iswspace_l.texi.
24114         * doc/posix-functions/iswupper_l.texi: Renamed from
24115         doc/glibc-functions/iswupper_l.texi.
24116         * doc/posix-functions/iswxdigit_l.texi: Renamed from
24117         doc/glibc-functions/iswxdigit_l.texi.
24118         * doc/posix-functions/isxdigit_l.texi: Renamed from
24119         doc/glibc-functions/isxdigit_l.texi.
24120         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
24121         doc/glibc-functions/mbsnrtowcs.texi.
24122         * doc/posix-functions/mkdtemp.texi: Renamed from
24123         doc/glibc-functions/mkdtemp.texi.
24124         * doc/posix-functions/newlocale.texi: Renamed from
24125         doc/glibc-functions/newlocale.texi.
24126         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
24127         doc/glibc-functions/nl_langinfo_l.texi.
24128         * doc/posix-functions/open_memstream.texi: Renamed from
24129         doc/glibc-functions/open_memstream.texi.
24130         * doc/posix-functions/opterr.texi: Renamed from
24131         doc/glibc-functions/opterr.texi.
24132         * doc/posix-functions/optind.texi: Renamed from
24133         doc/glibc-functions/optind.texi.
24134         * doc/posix-functions/optopt.texi: Renamed from
24135         doc/glibc-functions/optopt.texi.
24136         * doc/posix-functions/psignal.texi: Renamed from
24137         doc/glibc-functions/psignal.texi.
24138         * doc/posix-functions/scandir.texi: Renamed from
24139         doc/glibc-functions/scandir.texi.
24140         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
24141         doc/glibc-functions/sched_get_priority_min.texi.
24142         * doc/posix-functions/signgam.texi: Renamed from
24143         doc/glibc-functions/signgam.texi.
24144         * doc/posix-functions/stpcpy.texi: Renamed from
24145         doc/glibc-functions/stpcpy.texi.
24146         * doc/posix-functions/stpncpy.texi: Renamed from
24147         doc/glibc-functions/stpncpy.texi.
24148         * doc/posix-functions/strcasecmp_l.texi: Renamed from
24149         doc/glibc-functions/strcasecmp_l.texi.
24150         * doc/posix-functions/strcoll_l.texi: Renamed from
24151         doc/glibc-functions/strcoll_l.texi.
24152         * doc/posix-functions/strfmon_l.texi: Renamed from
24153         doc/glibc-functions/strfmon_l.texi.
24154         * doc/posix-functions/strftime_l.texi: Renamed from
24155         doc/glibc-functions/strftime_l.texi.
24156         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24157         doc/glibc-functions/strncasecmp_l.texi.
24158         * doc/posix-functions/strndup.texi: Renamed from
24159         doc/glibc-functions/strndup.texi.
24160         * doc/posix-functions/strnlen.texi: Renamed from
24161         doc/glibc-functions/strnlen.texi.
24162         * doc/posix-functions/strsignal.texi: Renamed from
24163         doc/glibc-functions/strsignal.texi.
24164         * doc/posix-functions/strxfrm_l.texi: Renamed from
24165         doc/glibc-functions/strxfrm_l.texi.
24166         * doc/posix-functions/timer_gettime.texi: Renamed from
24167         doc/glibc-functions/timer_gettime.texi.
24168         * doc/posix-functions/tolower_l.texi: Renamed from
24169         doc/glibc-functions/tolower_l.texi.
24170         * doc/posix-functions/toupper_l.texi: Renamed from
24171         doc/glibc-functions/toupper_l.texi.
24172         * doc/posix-functions/towctrans_l.texi: Renamed from
24173         doc/glibc-functions/towctrans_l.texi.
24174         * doc/posix-functions/towlower_l.texi: Renamed from
24175         doc/glibc-functions/towlower_l.texi.
24176         * doc/posix-functions/towupper_l.texi: Renamed from
24177         doc/glibc-functions/towupper_l.texi.
24178         * doc/posix-functions/uselocale.texi: Renamed from
24179         doc/glibc-functions/uselocale.texi.
24180         * doc/posix-functions/vdprintf.texi: Renamed from
24181         doc/glibc-functions/vdprintf.texi.
24182         * doc/posix-functions/wcpcpy.texi:
24183         Renamed from doc/glibc-functions/wcpcpy.texi.
24184         * doc/posix-functions/wcpncpy.texi: Renamed from
24185         doc/glibc-functions/wcpncpy.texi.
24186         * doc/posix-functions/wcscasecmp.texi: Renamed from
24187         doc/glibc-functions/wcscasecmp.texi.
24188         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24189         doc/glibc-functions/wcscasecmp_l.texi.
24190         * doc/posix-functions/wcscoll_l.texi: Renamed from
24191         doc/glibc-functions/wcscoll_l.texi.
24192         * doc/posix-functions/wcsdup.texi: Renamed from
24193         doc/glibc-functions/wcsdup.texi.
24194         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24195         doc/glibc-functions/wcsncasecmp.texi.
24196         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24197         doc/glibc-functions/wcsncasecmp_l.texi.
24198         * doc/posix-functions/wcsnlen.texi: Renamed from
24199         doc/glibc-functions/wcsnlen.texi.
24200         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24201         doc/glibc-functions/wcsnrtombs.texi.
24202         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24203         doc/glibc-functions/wcsxfrm_l.texi.
24204         * doc/posix-functions/wctrans_l.texi: Renamed from
24205         doc/glibc-functions/wctrans_l.texi.
24206         * doc/posix-functions/wctype_l.texi: Renamed from
24207         doc/glibc-functions/wctype_l.texi.
24208         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24209         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24210         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24211         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24212         these subsections.
24213         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24214         Remove sections.
24215
24216 2008-12-14  Bruno Haible  <bruno@clisp.org>
24217
24218         Update doc for POSIX:2008.
24219         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24220
24221 2008-12-14  Bruno Haible  <bruno@clisp.org>
24222
24223         Update doc for POSIX:2008.
24224         * doc/pastposix-functions/bcmp.texi: Renamed from
24225         doc/posix-functions/bcmp.texi.
24226         * doc/pastposix-functions/bcopy.texi: Renamed from
24227         doc/posix-functions/bcopy.texi.
24228         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24229         doc/posix-functions/bsd_signal.texi.
24230         * doc/pastposix-functions/bzero.texi: Renamed from
24231         doc/posix-functions/bzero.texi.
24232         * doc/pastposix-functions/ecvt.texi: Renamed from
24233         doc/posix-functions/ecvt.texi.
24234         * doc/pastposix-functions/fcvt.texi: Renamed from
24235         doc/posix-functions/fcvt.texi.
24236         * doc/pastposix-functions/ftime.texi: Renamed from
24237         doc/posix-functions/ftime.texi.
24238         * doc/pastposix-functions/gcvt.texi: Renamed from
24239         doc/posix-functions/gcvt.texi.
24240         * doc/pastposix-functions/getcontext.texi: Renamed from
24241         doc/posix-functions/getcontext.texi.
24242         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24243         doc/posix-functions/gethostbyaddr.texi.
24244         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24245         doc/posix-functions/gethostbyname.texi.
24246         * doc/pastposix-functions/getwd.texi: Renamed from
24247         doc/posix-functions/getwd.texi.
24248         * doc/pastposix-functions/h_errno.texi: Renamed from
24249         doc/posix-functions/h_errno.texi.
24250         * doc/pastposix-functions/index.texi: Renamed from
24251         doc/posix-functions/index.texi.
24252         * doc/pastposix-functions/makecontext.texi: Renamed from
24253         doc/posix-functions/makecontext.texi.
24254         * doc/pastposix-functions/mktemp.texi: Renamed from
24255         doc/posix-functions/mktemp.texi.
24256         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24257         doc/posix-functions/pthread_attr_getstackaddr.texi.
24258         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24259         doc/posix-functions/pthread_attr_setstackaddr.texi.
24260         * doc/pastposix-functions/rindex.texi: Renamed from
24261         doc/posix-functions/rindex.texi.
24262         * doc/pastposix-functions/scalb.texi: Renamed from
24263         doc/posix-functions/scalb.texi.
24264         * doc/pastposix-functions/setcontext.texi: Renamed from
24265         doc/posix-functions/setcontext.texi.
24266         * doc/pastposix-functions/swapcontext.texi: Renamed from
24267         doc/posix-functions/swapcontext.texi.
24268         * doc/pastposix-functions/ualarm.texi: Renamed from
24269         doc/posix-functions/ualarm.texi.
24270         * doc/pastposix-functions/usleep.texi: Renamed from
24271         doc/posix-functions/usleep.texi.
24272         * doc/pastposix-functions/vfork.texi: Renamed from
24273         doc/posix-functions/vfork.texi.
24274         * doc/pastposix-functions/wcswcs.texi: Renamed from
24275         doc/posix-functions/wcswcs.texi.
24276         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24277         (Function Substitutes): Update.
24278
24279 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24280
24281         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24282         m4/strerror.m4.
24283
24284 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24285             Bruno Haible  <bruno@clisp.org>
24286
24287         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24288
24289 2008-12-13  Bruno Haible  <bruno@clisp.org>
24290
24291         * modules/strtoull (Depends-on): Remove unistd.
24292
24293 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24294
24295         * modules/strtoull (Depends-on): Add stdlib.
24296
24297 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24298
24299         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24300
24301 2008-12-10  Jim Meyering  <meyering@redhat.com>
24302
24303         gl_ASSERT: don't say assertions are disabled when they're not
24304         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24305         "checking whether to enable assertions... no", when they are in
24306         fact enabled.  This is solely a bug in the output of configure.
24307         In spite of saying "no", NDEBUG was not defined in that case.
24308         Also, as noted by Eric Blake, leave assertions enabled upon
24309         --enable-assert=INVALID.
24310
24311 2008-12-10  Bruno Haible  <bruno@clisp.org>
24312
24313         Change MODULES.html to refer to POSIX:2008 where possible.
24314         * MODULES.html.sh (POSIX2008_URL): New variable.
24315         (posix_headers): Remove sys/timeb, ucontext.
24316         (posix2001_headers): New variable.
24317         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24318         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24319         index, makecontext, mktemp, pthread_attr_getstackaddr,
24320         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24321         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24322         (posix2001_functions): New variable.
24323         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24324         otherwise.
24325
24326 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24327
24328         add missing include to parse-duration.c
24329         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24330         * modules/parse-duration (Depends-on): Add xalloc.
24331
24332         fix sed script reading maint.mk
24333         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24334         (syntax-check-rules): Use it.
24335
24336 2008-12-09  Bruno Haible  <bruno@clisp.org>
24337
24338         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24339         MacOS X 10.4/PowerPC.
24340         Reported by Simon Josefsson.
24341
24342 2008-12-08  Jim Meyering  <meyering@redhat.com>
24343
24344         work around mingw's lack of some S_IF definitions
24345         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24346         Reported by Simon Josefsson.
24347
24348 2008-12-08  Bruno Haible  <bruno@clisp.org>
24349
24350         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24351         applied to variables. Needed on MacOS X 10.4/PowerPC.
24352         Reported by Simon Josefsson.
24353
24354 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24355         and Eric Blake  <ebb9@byu.net>
24356
24357         assert: honor --enable-assert
24358         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24359         order to honor --enable-assert, rather than treating it as a
24360         synonym for --disable-assert.
24361
24362 2008-12-08  Jim Meyering  <meyering@redhat.com>
24363
24364         * lib/posixtm.c: Remove now-useless declaration of mktime.
24365
24366         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24367
24368 2008-12-07  Bruno Haible  <bruno@clisp.org>
24369
24370         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24371         test_once): Mark functions as static.
24372         * tests/test-tls.c (test_tls): Likewise.
24373
24374 2008-12-07  Bruno Haible  <bruno@clisp.org>
24375
24376         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24377         iconv_register_autodetect.
24378
24379 2008-12-07  Jim Meyering  <meyering@redhat.com>
24380
24381         posixtm.c: avoid a warning
24382         * lib/posixtm.c (posixtime): Don't initialize tm0.
24383         It's no longer needed to placate gcc4's -Wuninitialized,
24384         and the attempt to placate would elicit a new warning.
24385
24386         unicodeio.c: mark unused parameters
24387         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24388         (fallback_failure_callback): Likewise.
24389
24390 2008-12-07  Bruno Haible  <bruno@clisp.org>
24391
24392         * gnulib-tool (func_create_testdir): When building the tests
24393         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24394         Reported by Simon Josefsson.
24395
24396 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24397
24398         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24399
24400 2008-12-06  Bruno Haible  <bruno@clisp.org>
24401
24402         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24403         Suggested by Eric Blake.
24404
24405 2008-12-06  Bruno Haible  <bruno@clisp.org>
24406
24407         Fix a c-stack test failure on MacOS X.
24408         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24409         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24410         handler for SIGBUS as well.
24411         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24412         install a signal handler for SIGBUS as well.
24413         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24414
24415 2008-12-06  Bruno Haible  <bruno@clisp.org>
24416
24417         Advocacy documentation.
24418         * doc/gnulib-intro.texi (Benefits): New section.
24419         * doc/gnulib.texi: Update.
24420
24421 2008-12-06  Bruno Haible  <bruno@clisp.org>
24422
24423         Document the 'manywarnings' module.
24424         * doc/manywarnings.texi: New file.
24425         * doc/gnulib.texi: Include it.
24426
24427 2008-12-05  Eric Blake  <ebb9@byu.net>
24428
24429         tests: silence some gcc warnings
24430         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24431         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24432         type mismatches.
24433
24434 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24435             Bruno Haible  <bruno@clisp.org>
24436
24437         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24438
24439 2008-11-29  Jim Meyering  <meyering@redhat.com>
24440
24441         unicodeio.c: mark unused parameters
24442         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24443         (fallback_failure_callback): Likewise.
24444
24445         fts: fix a thinko
24446         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24447         (set_stat_type): Return S_IF*-valued "type" directly.
24448         Prompted by James Youngman's spotting a related bug.
24449         Confirmed by further testing through find.
24450
24451         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24452         * lib/fts.c (D_TYPE): Define.
24453         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24454         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24455         (s_ifmt_shift_bits): New function.
24456         (set_stat_type): New function.
24457         (fts_build): When not calling fts_stat, call set_stat_type
24458         to propagate dirent.d_type info to fts_read caller.
24459         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24460         fts_statp->st_mode type information may be valid.
24461
24462 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24463
24464         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24465         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24466         <sds@gnu.org>.
24467
24468 2008-11-20  Bruno Haible  <bruno@clisp.org>
24469
24470         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24471         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24472         INCLUDE_NEXT.
24473         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24474         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24475         * modules/math (Makefile.am): Substitute
24476         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24477         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24478
24479 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24480             Bruno Haible  <bruno@clisp.org>
24481
24482         * lib/stdint.in.h: Define all type macros so that their expansion is
24483         a single typedef'ed token. Fixes a compilation failure in Boost which
24484         does "using ::int8_t;".
24485
24486 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24487
24488         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24489         gl_MANYWARN_ALL_GCC.
24490         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24491         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24492         * modules/manywarnings: New file.
24493         * MODULES.html.sh: Mention manywarnings module.
24494
24495 2008-11-18  Bruno Haible  <bruno@clisp.org>
24496
24497         * doc/gnulib-tool.texi (Unit tests): New section.
24498
24499 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24500
24501         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24502         paths like 'lib/po/foo.po'.
24503
24504 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24505
24506         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24507         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24508
24509 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24510
24511         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24512         parameter works.
24513
24514 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24515
24516         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24517
24518 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24519
24520         * modules/parse-duration-tests: New file.
24521         * tests/test-parse-duration.sh: New file.
24522         * tests/test-parse-duration.c: New file.
24523
24524         New module 'parse-duration'.
24525         * lib/parse-duration.h: New file.
24526         * lib/parse-duration.c: New file.
24527         * modules/parse-duration: New file.
24528
24529 2008-11-17  Bruno Haible  <bruno@clisp.org>
24530
24531         * tests/test-select-out.sh: Comment out the first pipe test.
24532         Reported by Simon Josefsson.
24533
24534 2008-11-17  Bruno Haible  <bruno@clisp.org>
24535
24536         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24537         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24538         gl_HOSTENT.
24539
24540 2008-11-17  Bruno Haible  <bruno@clisp.org>
24541
24542         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24543         -lnetwork and -lnet. Needed for Haiku and BeOS.
24544
24545 2008-11-16  Bruno Haible  <bruno@clisp.org>
24546
24547         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24548
24549 2008-11-16  Bruno Haible  <bruno@clisp.org>
24550
24551         Avoid test failure on Haiku.
24552         * tests/test-fsync.c: Include <errno.h>.
24553         (main): Don't require that fsync (0) fails.
24554
24555 2008-11-15  Bruno Haible  <bruno@clisp.org>
24556
24557         New module 'hostent'.
24558         * modules/hostent: New file.
24559         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24560
24561 2008-11-15  Bruno Haible  <bruno@clisp.org>
24562
24563         New module 'servent'.
24564         * modules/servent: New file.
24565         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24566
24567 2008-11-15  Bruno Haible  <bruno@clisp.org>
24568
24569         Avoid generating same test program with two different rules.
24570         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24571         test-frexp to test-frexp-nolibm.
24572         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24573         test-frexpl to test-frexpl-nolibm.
24574
24575 2008-11-15  Bruno Haible  <bruno@clisp.org>
24576
24577         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24578         $(FREXPL_LIBM).
24579
24580 2008-11-15  Bruno Haible  <bruno@clisp.org>
24581
24582         * lib/netdb.in.h: Activate the definitions also when the system's
24583         <netdb.h> has 'struct addrinfo'.
24584         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24585         EAI_OVERFLOW or AI_NUMERICSERV.
24586         * doc/posix-headers/netdb.texi: Document the problem.
24587
24588 2008-11-15  Bruno Haible  <bruno@clisp.org>
24589
24590         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24591
24592         Make the 'sched' module work on platforms where <sched.h> exists but
24593         is incomplete (such as Haiku).
24594         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24595         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24596         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24597         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24598         HAVE_STRUCT_SCHED_PARAM.
24599         * modules/sched (Depends-on): Add include_next.
24600         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24601         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24602         * doc/posix-headers/sched.texi: Document the issue.
24603
24604 2008-11-13  Jim Meyering  <meyering@redhat.com>
24605
24606         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24607         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24608         test would fail due to the difference in the Report bugs to ...
24609         line.  The expected address is empty, "<>", while the actual
24610         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24611
24612 2008-11-12  Bruno Haible  <bruno@clisp.org>
24613
24614         lstat: don't compile lstat.c on systems lacking lstat
24615         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24616         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24617         Reported by Daniel P. Berrange via Jim Meyering.
24618
24619 2008-11-12  Jim Meyering  <meyering@redhat.com>
24620
24621         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24622
24623 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24624
24625         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24626         instead.
24627
24628 2008-11-12  Bruno Haible  <bruno@clisp.org>
24629
24630         * lib/unicodeio.c: Include unistr.h.
24631         (utf8_wctomb): Remove function.
24632         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24633
24634 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24635
24636         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24637         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24638         <bruno@clisp.org>.
24639         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24640
24641 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24642
24643         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24644         * doc/gnulib.texi: Add section for warnings.
24645
24646 2008-11-11  Bruno Haible  <bruno@clisp.org>
24647
24648         * lib/sockets.h: Add a comment.
24649
24650 2008-11-11  Karl Berry  <karl@gnu.org>
24651
24652         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24653
24654 2008-11-11  Eric Blake  <ebb9@byu.net>
24655
24656         fdl.texi: avoid git symlinks
24657         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24658
24659 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24660
24661         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24662
24663 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24664
24665         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24666         (gl_WARN_ADD): Substitute $2 if literal.
24667
24668 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24669
24670         * m4/warning.m4: Remove.
24671
24672 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24673
24674         * m4/warnings.m4: Almost complete rewrite. :-)
24675
24676 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24677
24678         * modules/warnings: New module.
24679         * m4/warnings.m4: New file.
24680         * MODULES.html.sh: Mention warnings module.
24681         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24682         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24683
24684 2008-11-10  Eric Blake  <ebb9@byu.net>
24685
24686         fdl.texi: make a symlink to the latest version
24687         * doc/standards.texi: Revert today's earlier change.
24688         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24689         * doc/fdl.texi: ...and replace this with a symlink to the newer
24690         fdl-1.3.texi.
24691
24692 2008-11-10  Bruno Haible  <bruno@clisp.org>
24693
24694         * tests/test-select-fd.c (main): Accept the result file name as fourth
24695         argument.
24696         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24697         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24698
24699 2008-11-10  Bruno Haible  <bruno@clisp.org>
24700
24701         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24702         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24703         as autoconf-substituted macros.
24704         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24705         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24706         gl_NETDB_H_DEFAULTS. Set these variables.
24707         * modules/netdb (Makefile.am): Substitute these variables.
24708
24709 2008-11-10  Eric Blake  <ebb9@byu.net>
24710
24711         standards.texi: include correct file for FDL 1.3
24712         * doc/standards.texi (GNU Free Documentation License): Change
24713         include file to pull in FDL 1.3, not 1.2.
24714
24715         fdl.texi: revert accidental change to license
24716         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24717
24718 2008-11-10  Bruno Haible  <bruno@clisp.org>
24719
24720         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24721         cross-compiling guesses also when the native compile gives no result.
24722
24723 2008-11-10  Bruno Haible  <bruno@clisp.org>
24724
24725         * lib/spawni.c (__spawni): Force variable into the stack.
24726
24727 2008-11-10  Bruno Haible  <bruno@clisp.org>
24728
24729         Add support for Haiku.
24730         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24731         glibc and BeOS, but also on Haiku.
24732         * lib/fpurge.c (fpurge): Likewise.
24733         * lib/freadable.c (freadable): Likewise.
24734         * lib/freadahead.c (freadahead): Likewise.
24735         * lib/freading.c (freading): Likewise.
24736         * lib/freadptr.c (freadptr): Likewise.
24737         * lib/freadseek.c (freadptrinc): Likewise.
24738         * lib/fseeko.c (rpl_fseeko): Likewise.
24739         * lib/fseterr.c (fseterr): Likewise.
24740         * lib/fwritable.c (fwritable): Likewise.
24741         * lib/fwriting.c (fwriting): Likewise.
24742         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24743
24744 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24745
24746         * lib/config.charset: Treat Haiku like BeOS.
24747
24748 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24749
24750         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24751         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24752
24753 2008-11-08  Bruno Haible  <bruno@clisp.org>
24754
24755         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24756         AC_CACHE_CHECK.
24757
24758 2008-11-08  Bruno Haible  <bruno@clisp.org>
24759
24760         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24761
24762 2008-11-08  Bruno Haible  <bruno@clisp.org>
24763
24764         * tests/test-select-fd.c: New file.
24765         * tests/test-select-in.sh: New file.
24766         * tests/test-select-out.sh: New file.
24767         * tests/test-select-stdin.c: New file.
24768         * modules/select-tests (Files): Add the new files.
24769         (Depends-on): Add gettimeofday.
24770         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24771         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24772         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24773
24774 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24775             Bruno Haible  <bruno@clisp.org>
24776
24777         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24778
24779 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24780
24781         * build-aux/pmccabe2html: Added support for C++ source files.
24782
24783 2008-11-05  Ben Pfaff  <blp@gnu.org>
24784
24785         Fix lib/close.c build on Windows.
24786         * modules/close (Files): Add lib/w32sock.h.
24787
24788 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24789
24790         Accept Bison's NEWS format.
24791         * build-aux/announce-gen (print_news_deltas): Tweak
24792         $re_prefix.
24793
24794 2008-11-04  Bruno Haible  <bruno@clisp.org>
24795
24796         * modules/random_r (Maintainer): Add glibc.
24797
24798 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24799
24800         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24801         by karl@freefriends.org (Karl Berry).
24802         * doc/alloca.texi: Likewise.
24803         * doc/c-ctype.texi: Likewise.
24804         * doc/c-strcase.texi: Likewise.
24805         * doc/c-strcaseeq.texi: Likewise.
24806         * doc/c-strcasestr.texi: Likewise.
24807         * doc/c-strstr.texi: Likewise.
24808         * doc/c-strtod.texi: Likewise.
24809         * doc/c-strtold.texi: Likewise.
24810         * doc/ctime.texi: Likewise.
24811         * doc/error.texi: Likewise.
24812         * doc/fdl.texi: Likewise.
24813         * doc/gcd.texi: Likewise.
24814         * doc/getdate.texi: Likewise.
24815         * doc/gnulib-intro.texi: Likewise.
24816         * doc/gnulib-tool.texi: Likewise.
24817         * doc/gnulib.texi: Likewise.
24818         * doc/inet_ntoa.texi: Likewise.
24819         * doc/maintain.texi: Likewise.
24820         * doc/make-stds.texi: Likewise.
24821         * doc/quote.texi: Likewise.
24822         * doc/regexprops-generic.texi: Likewise.
24823         * doc/standards.texi: Likewise.
24824         * doc/verify.texi: Likewise.
24825         * doc/visibility.texi: Likewise.
24826         * doc/gnulib.texi (GNU Free Documentation License): Include
24827         fdl-1.3.texi instead of fdl.texi.
24828
24829 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24830
24831         * doc/fdl-1.3.texi: New file, from
24832         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24833         * modules/fdl-1.3: Add.
24834         * MODULES.html.sh: Add fdl-1.3.
24835
24836 2008-11-03  Bruno Haible  <bruno@clisp.org>
24837
24838         Make determination of absolute name of header file work with AIX xlc.
24839         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24840         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24841         preprocessing.
24842         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24843         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24844
24845 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24846
24847         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24848         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24849         <ludo@gnu.org>.
24850
24851 2008-11-02  Bruno Haible  <bruno@clisp.org>
24852
24853         Mark 'strpbrk' obsolete.
24854         * modules/strpbrk (Status, Notice): New sections.
24855         * modules/strtok_r (Depends-on): Add strpbrk.
24856
24857 2008-11-02  Bruno Haible  <bruno@clisp.org>
24858
24859         Mark 'strdup' obsolete.
24860         * modules/strdup (Status, Notice): New sections.
24861         * modules/findprog (Depends-on): Add strdup.
24862         * modules/getaddrinfo (Depends-on): Likewise.
24863         * modules/localename (Depends-on): Likewise.
24864         * modules/relocatable-lib (Depends-on): Likewise.
24865         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24866         * modules/relocatable-prog (Depends-on): Likewise.
24867         * modules/trim (Depends-on): Likewise.
24868         * modules/unictype/gen-ctype (Depends-on): Likewise.
24869         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24870
24871 2008-11-02  Bruno Haible  <bruno@clisp.org>
24872
24873         Mark 'strcspn' obsolete.
24874         * modules/strcspn (Status, Notice): New sections.
24875
24876 2008-11-02  Bruno Haible  <bruno@clisp.org>
24877
24878         Mark 'rmdir' obsolete.
24879         * modules/rmdir (Status, Notice): New sections.
24880         * modules/clean-temp (Depends-on): Add rmdir.
24881         * modules/openat (Depends-on): Likewise.
24882
24883 2008-11-02  Bruno Haible  <bruno@clisp.org>
24884
24885         Mark 'raise' obsolete.
24886         * modules/raise (Status, Notice): New sections.
24887         (Include): Specify <signal.h>.
24888         * modules/stdio (Depends-on): Add raise.
24889         * modules/write (Depends-on): Likewise.
24890
24891 2008-11-02  Bruno Haible  <bruno@clisp.org>
24892
24893         Mark 'memset' obsolete.
24894         * modules/memset (Status, Notice): New sections.
24895
24896 2008-11-02  Bruno Haible  <bruno@clisp.org>
24897
24898         Mark 'memmove' obsolete.
24899         * modules/memmove (Status, Notice): New sections.
24900         * modules/argp (Depends-on): Add memmove.
24901         * modules/argz (Depends-on): Likewise.
24902         * modules/canonicalize (Depends-on): Likewise.
24903         * modules/canonicalize-lgpl (Depends-on): Likewise.
24904         * modules/fts (Depends-on): Likewise.
24905         * modules/getcwd (Depends-on): Likewise.
24906         * modules/human (Depends-on): Likewise.
24907         * modules/regex (Depends-on): Likewise.
24908         * modules/striconveh (Depends-on): Likewise.
24909         * modules/trim (Depends-on): Likewise.
24910         * modules/unistr/u8-move (Depends-on): Likewise.
24911         * modules/unistr/u16-move (Depends-on): Likewise.
24912         * modules/unistr/u32-move (Depends-on): Likewise.
24913
24914 2008-11-02  Bruno Haible  <bruno@clisp.org>
24915
24916         Mark 'memcpy' obsolete.
24917         * modules/memcpy (Status, Notice): New sections.
24918
24919 2008-11-02  Bruno Haible  <bruno@clisp.org>
24920
24921         Mark 'memcmp' obsolete.
24922         * modules/memcmp (Status, Notice): New sections.
24923         * modules/argmatch (Depends-on): Add memchr.
24924         * modules/backupfile (Depends-on): Likewise.
24925         * modules/c-strcasestr (Depends-on): Likewise.
24926         * modules/crypto/des (Depends-on): Likewise.
24927         * modules/csharpcomp (Depends-on): Likewise.
24928         * modules/fnmatch (Depends-on): Likewise.
24929         * modules/git-merge-changelog (Depends-on): Likewise.
24930         * modules/isnand (Depends-on): Likewise.
24931         * modules/isnand-nolibm (Depends-on): Likewise.
24932         * modules/isnanf (Depends-on): Likewise.
24933         * modules/isnanf-nolibm (Depends-on): Likewise.
24934         * modules/isnanl (Depends-on): Likewise.
24935         * modules/isnanl-nolibm (Depends-on): Likewise.
24936         * modules/mbchar (Depends-on): Likewise.
24937         * modules/memcoll (Depends-on): Likewise.
24938         * modules/quotearg (Depends-on): Likewise.
24939         * modules/regex (Depends-on): Likewise.
24940         * modules/relocatable-prog (Depends-on): Likewise.
24941         * modules/same (Depends-on): Likewise.
24942         * modules/signbit (Depends-on): Likewise.
24943         * modules/strcasestr-simple (Depends-on): Likewise.
24944         * modules/unictype/gen-ctype (Depends-on): Likewise.
24945         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24946         * modules/uniname/uniname (Depends-on): Likewise.
24947         * modules/unistr/u8-cmp (Depends-on): Likewise.
24948
24949 2008-11-02  Bruno Haible  <bruno@clisp.org>
24950
24951         Mark 'memchr' obsolete.
24952         * modules/memchr (Status, Notice): New sections.
24953         * modules/argp (Depends-on): Add memchr.
24954         * modules/base64 (Depends-on): Likewise.
24955         * modules/c-strcasestr (Depends-on): Likewise.
24956         * modules/chdir-long (Depends-on): Likewise.
24957         * modules/fnmatch (Depends-on): Likewise.
24958         * modules/getsubopt (Depends-on): Likewise.
24959         * modules/git-merge-changelog (Depends-on): Likewise.
24960         * modules/glob (Depends-on): Likewise.
24961         * modules/strcasestr-simple (Depends-on): Likewise.
24962         * modules/strnlen (Depends-on): Likewise.
24963
24964 2008-11-02  Bruno Haible  <bruno@clisp.org>
24965
24966         Mark 'atexit' obsolete.
24967         * modules/atexit (Status, Notice): New sections.
24968         * modules/chdir-long (Depends-on): Add atexit.
24969         * modules/wait-process (Depends-on): Likewise.
24970
24971 2008-11-02  Bruno Haible  <bruno@clisp.org>
24972
24973         * gnulib-tool: New option --with-obsolete.
24974         (func_usage): Document it.
24975         (func_modules_transitive_closure): Drop obsolete dependencies if
24976         incobsolete is not true.
24977         (func_import): Read and save the incobsolete variable to the cache.
24978
24979 2008-11-02  Bruno Haible  <bruno@clisp.org>
24980
24981         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24982         * gnulib-tool: New option --extract-status.
24983         (func_usage): Document it.
24984         (sed_extract_prog): Recognize it.
24985         (func_get_status): New function.
24986
24987 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24988
24989         * modules/sockets (License): Change from LGPL to LGPLv2+.
24990
24991 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24992
24993         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24994
24995 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24996
24997         * MODULES.html.sh (Support for systems lacking POSIX:2001):
24998         Mention times and sys_times.
24999         * modules/sys_times, modules/sys_times-tests: New modules.
25000         * modules/times, modules/times-tests: Likewise
25001         * m4/sys_times_h.m4: New file.
25002         * lib/sys_times.in.h: Likewise
25003         * lib/times.c: Likewise.
25004         * tests/test-sys_times.c: Likewise.
25005         * tests/test-times.c: Likewise.
25006         * doc/posix-headers/sys_times.texi: Update.
25007         * doc/posix-functions/times.texi: Update.
25008
25009 2008-10-28  Jim Meyering  <meyering@redhat.com>
25010
25011         * modules/tempname (Depends-on): Add lstat.
25012
25013         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
25014
25015 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25016
25017         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
25018         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
25019         using idiom used elsewhere in gnulib.
25020
25021 2008-10-27  Jim Meyering  <meyering@redhat.com>
25022
25023         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
25024
25025 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25026
25027         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
25028         TESTS_ENVIRONMENT, for shell scripts that needs to call built
25029         programs.
25030         * tests/test-argp-2.sh: Use $EXEEXT when needed.
25031
25032 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25033
25034         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
25035
25036 2008-10-27  Bruno Haible  <bruno@clisp.org>
25037
25038         * tests/test-lstat.c: Include <stdio.h>.
25039
25040 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25041
25042         * modules/lstat-tests: New module.
25043         * tests/test-lstat.c: New file.
25044
25045 2008-10-26  Jim Meyering  <meyering@redhat.com>
25046
25047         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
25048
25049 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25050             Bruno Haible  <bruno@clisp.org>
25051
25052         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
25053         * modules/configmake (Include): Add a note that the include must come
25054         after all system headers.
25055         * lib/javaversion.c: Include configmake.h after all other includes.
25056
25057 2008-10-26  Bruno Haible  <bruno@clisp.org>
25058
25059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
25060         HAVE_STRUCT_RANDOM_DATA to 1.
25061         (gl_STDLIB_H): Simplify.
25062
25063 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25064
25065         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
25066         substitute HAVE_STRUCT_RANDOM_DATA.
25067         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
25068         random_data.
25069         * modules/stdlib (Makefile.am): Substitute
25070         HAVE_STRUCT_RANDOM_DATA.
25071
25072 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25073
25074         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
25075         * doc/gnulib-intro.texi (Copyright): Likewise.
25076
25077 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25078
25079         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
25080         findings.
25081
25082 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
25083             Bruno Haible  <bruno@clisp.org>
25084
25085         * lib/unistd.in.h: Include <winsock2.h>.
25086         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
25087         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
25088         Provide dummy declarations.
25089         (gethostname): Override.
25090         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
25091         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
25092         gl_PREREQ_SYS_H_WINSOCK2.
25093         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
25094         * doc/posix-functions/gethostname.texi: More details.
25095
25096 2008-10-25  Bruno Haible  <bruno@clisp.org>
25097
25098         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25099         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
25100         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
25101
25102         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
25103         here ...
25104         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
25105         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
25106         gl_UNISTD_H_DEFAULTS.
25107
25108 2008-10-25  Eric Blake  <ebb9@byu.net>
25109
25110         signbit: avoid spurious compiler failure
25111         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
25112         declarations inside function.
25113
25114 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25115             Bruno Haible  <bruno@clisp.org>
25116
25117         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
25118         * modules/random_r (Depends-on): Add stdint.
25119
25120 2008-10-24  Bruno Haible  <bruno@clisp.org>
25121
25122         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
25123         Eggert.
25124         * modules/strerror (License): Likewise.
25125
25126 2008-10-24  Jim Meyering  <meyering@redhat.com>
25127
25128         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
25129         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
25130
25131 2008-10-24  Eric Blake  <ebb9@byu.net>
25132
25133         getgroups: fix compilation when getgroups is available
25134         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
25135         but with <config.h> override of getgroups disabled.
25136
25137 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25138
25139         * doc/gnulib.texi (Header files): Add note about C++ problems.
25140         Explained by Bruno Haible <bruno@clisp.org>.
25141
25142 2008-10-23  Bruno Haible  <bruno@clisp.org>
25143
25144         Define a dummy SA_NODEFER macro on Interix.
25145         * lib/signal.in.h (SA_NODEFER): Define fallback.
25146         Reported by Aleksey Cheusov <cheusov@tut.by> via
25147         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
25148
25149 2008-10-23  Bruno Haible  <bruno@clisp.org>
25150
25151         * modules/freadahead (License): Change to LGPLv2+.
25152         Suggested by Simon Josefsson.
25153
25154 2008-10-23  Jim Meyering  <meyering@redhat.com>
25155
25156         random_r: new module
25157         * modules/random_r: New file.
25158         * m4/random_r.m4: New file.
25159         * lib/random_r.c: New file, from glibc.
25160         * modules/random_r-tests: New file.
25161         * tests/test-random_r.c: New file.
25162         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25163          Declare.
25164         (RAND_MAX): Define.
25165         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25166         * modules/stdlib: Substitute them, too.
25167         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25168         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25169         * doc/glibc-functions/random_r.texi: Likewise.
25170         * doc/glibc-functions/setstate_r.texi: Likewise.
25171         * doc/glibc-functions/srandom_r.texi: Likewise.
25172         * config/srclist.txt: Mention it.
25173
25174 2008-10-23  David Lutterkort  <lutter@redhat.com>
25175
25176         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25177         link requirement
25178
25179 2008-10-23  Jim Meyering  <meyering@redhat.com>
25180
25181         selinux-h: mark parameters of stub functions as intentionally unused
25182         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25183         * lib/se-context.in.h: Likewise.
25184
25185 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25186
25187         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25188
25189 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25190
25191         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25192
25193 2008-10-22  Eric Blake  <ebb9@byu.net>
25194
25195         glthread/thread: avoid compiler warning
25196         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25197         Add unreachable abort to silence compiler.
25198
25199 2008-10-22  Eric Blake  <ebb9@byu.net>
25200
25201         netdb: also supply struct addrinfo for cygwin 1.5.x
25202         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25203         older cygwin.
25204         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25205         cygwin.
25206         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25207
25208 2008-10-22  Bruno Haible  <bruno@clisp.org>
25209
25210         * users.txt: Update entry about pspp.
25211
25212 2008-10-21  Bruno Haible  <bruno@clisp.org>
25213
25214         Simplification.
25215         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25216         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25217
25218         Simplification.
25219         * lib/ioctl.c (ioctl): Don't undefine.
25220         * lib/socket.c (socket): Don't undefine.
25221
25222         Remove unused module indicator macros.
25223         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25224         GNULIB_$1 as a C macro.
25225
25226         * doc/posix-functions/close.texi: Undo last change.
25227         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25228         Windows platforms.
25229
25230 2008-10-21  Bruno Haible  <bruno@clisp.org>
25231
25232         Add gethostname() declaration to <unistd.h>.
25233         * lib/unistd.in.h (gethostname): New declaration.
25234         * lib/gethostname.c: Include <unistd.h>.
25235         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25236         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25238         and HAVE_GETHOSTNAME.
25239         * modules/gethostname (Depends-on): Add unistd.
25240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25241         (Include): Specify <unistd.h>.
25242         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25243         HAVE_GETHOSTNAME.
25244         * tests/test-gethostname.c: Include <unistd.h> first.
25245
25246 2008-10-21  Bruno Haible  <bruno@clisp.org>
25247
25248         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25249         * modules/select-tests (Depends-on): Likewise.
25250         Reported by Simon Josefsson.
25251
25252 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25253
25254         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25255         * lib/accept.c: New file, based on winsock.c.
25256         * lib/bind.c: New file, based on winsock.c.
25257         * lib/connect.c: New file, based on winsock.c.
25258         * lib/getpeername.c: New file, based on winsock.c.
25259         * lib/getsockname.c: New file, based on winsock.c.
25260         * lib/getsockopt.c: New file, based on winsock.c.
25261         * lib/ioctl.c: New file, based on winsock.c.
25262         * lib/listen.c: New file, based on winsock.c.
25263         * lib/recv.c: New file, based on winsock.c.
25264         * lib/recvfrom.c: New file, based on winsock.c.
25265         * lib/send.c: New file, based on winsock.c.
25266         * lib/sendto.c: New file, based on winsock.c.
25267         * lib/setsockopt.c: New file, based on winsock.c.
25268         * lib/shutdown.c: New file, based on winsock.c.
25269         * lib/socket.c: New file, based on winsock.c.
25270         * lib/w32sock.h: New file, based on winsock.c.
25271         * lib/winsock.c: Remove file.
25272         * modules/accept: Likewise.
25273         * modules/bind: Likewise.
25274         * modules/connect: Likewise.
25275         * modules/getpeername: Likewise.
25276         * modules/getsockname: Likewise.
25277         * modules/getsockopt: Likewise.
25278         * modules/ioctl: Likewise.
25279         * modules/listen: Likewise.
25280         * modules/recv: Likewise.
25281         * modules/recvfrom: Likewise.
25282         * modules/send: Likewise.
25283         * modules/sendto: Likewise.
25284         * modules/setsockopt: Likewise.
25285         * modules/shutdown: Likewise.
25286         * modules/socket: Use socket.c instead of winsock.c.
25287         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25288         * doc/posix-functions/accept.texi: Doc fix.
25289         * doc/posix-functions/bind.texi: Doc fix.
25290         * doc/posix-functions/close.texi: Doc fix.
25291         * doc/posix-functions/connect.texi: Doc fix.
25292         * doc/posix-functions/getpeername.texi: Doc fix.
25293         * doc/posix-functions/getsockname.texi: Doc fix.
25294         * doc/posix-functions/getsockopt.texi: Doc fix.
25295         * doc/posix-functions/ioctl.texi: Doc fix.
25296         * doc/posix-functions/listen.texi: Doc fix.
25297         * doc/posix-functions/recv.texi: Doc fix.
25298         * doc/posix-functions/recvfrom.texi: Doc fix.
25299         * doc/posix-functions/send.texi: Doc fix.
25300         * doc/posix-functions/sendto.texi: Doc fix.
25301         * doc/posix-functions/setsockopt.texi: Doc fix.
25302         * doc/posix-functions/shutdown.texi: Doc fix.
25303         * doc/posix-functions/socket.texi: Doc fix.
25304
25305 2008-10-20  Bruno Haible  <bruno@clisp.org>
25306
25307         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25308         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25309         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25310         as an alias for SIGABRT.
25311         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25312         (sigaction): Map it to SIGABRT.
25313         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25314
25315 2008-10-20  Bruno Haible  <bruno@clisp.org>
25316
25317         * lib/fts.c: Don't include lstat.h.
25318         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25319
25320         Move the lstat() declaration to <sys/stat.h>.
25321         * lib/lstat.h: Remove file.
25322         * lib/sys_stat.in.h: Add special invocation convention.
25323         (lstat): New declaration.
25324         * lib/lstat.c (orig_lstat): New function.
25325         (rpl_lstat): Use orig_lstat instead of lstat.
25326         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25327         AC_C_INLINE. Set REPLACE_LSTAT.
25328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25329         and REPLACE_LSTAT.
25330         * modules/lstat (Files): Remove lib/lstat.h.
25331         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25332         (Include): Specify <sys/stat.h> instead of lstat.h.
25333         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25334         REPLACE_LSTAT.
25335         * NEWS: Mention the change.
25336
25337 2008-10-20  Bruno Haible  <bruno@clisp.org>
25338
25339         * modules/posix_spawn-tests: New file.
25340         * tests/test-posix_spawn3.c: New file.
25341
25342 2008-10-20  Bruno Haible  <bruno@clisp.org>
25343
25344         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25345         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25346         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25347         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25348         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25349
25350 2008-10-20  Bruno Haible  <bruno@clisp.org>
25351
25352         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25353         of posix_spawn on AIX 5.3.
25354
25355 2008-10-20  Bruno Haible  <bruno@clisp.org>
25356
25357         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25358
25359 2008-10-20  Bruno Haible  <bruno@clisp.org>
25360
25361         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25362         of AC_LANG_PROGRAM.
25363
25364 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25365
25366         * lib/netdb.in.h: Don't define GNU specific constants until they
25367         are supported or needed.  Reported by Bruno Haible
25368         <bruno@clisp.org>.
25369
25370 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25371
25372         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25373
25374 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25375
25376         * lib/getaddrinfo.h: Remove file.
25377         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25378         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25379         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25380         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25381         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25382         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25383         * tests/test-getaddrinfo.c: Likewise.
25384         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25385         * NEWS: Mention change.
25386
25387 2008-10-19  Bruno Haible  <bruno@clisp.org>
25388
25389         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25390
25391 2008-10-19  Bruno Haible  <bruno@clisp.org>
25392
25393         * lib/wait-process.c: Include simply <sys/wait.h>.
25394         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25395         WIFSTOPPED): Remove fallback definitions.
25396         * modules/wait-process (Depends-on): Add sys_wait.
25397
25398         New module 'sys_wait'.
25399         * modules/sys_wait: New file.
25400         * lib/sys_wait.in.h: New file, partially copied from
25401         lib/wait-process.c.
25402         * m4/sys_wait_h.m4: New file.
25403         * doc/posix-headers/sys_wait.texi: Mention the new module.
25404
25405 2008-10-19  Bruno Haible  <bruno@clisp.org>
25406
25407         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25408
25409 2008-10-19  Bruno Haible  <bruno@clisp.org>
25410
25411         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25412         * lib/wait-process.c (WAIT_T): Remove type.
25413         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25414         (wait_subprocess): Update.
25415
25416 2008-10-19  Bruno Haible  <bruno@clisp.org>
25417
25418         New module 'atoll'.
25419         * modules/atoll: New file.
25420         * lib/stdlib.in.h (atoll): New declaration.
25421         * lib/atoll.c: New file, from glibc with modifications.
25422         * m4/atoll.m4: New file.
25423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25424         HAVE_ATOLL.
25425         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25426         * doc/posix-functions/atoll.texi: Mention the new module.
25427
25428 2008-10-19  Bruno Haible  <bruno@clisp.org>
25429
25430         Add strtoull() declaration to <stdlib.h>.
25431         * lib/stdlib.in.h (strtoull): New declaration.
25432         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25433         Set HAVE_STRTOULL.
25434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25435         HAVE_STRTOULL.
25436         * modules/strtoull (Depends-on): Add stdlib.
25437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25438         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25439         HAVE_STRTOULL.
25440
25441 2008-10-19  Bruno Haible  <bruno@clisp.org>
25442
25443         Add strtoll() declaration to <stdlib.h>.
25444         * lib/stdlib.in.h (strtoll): New declaration.
25445         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25446         Set HAVE_STRTOLL.
25447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25448         HAVE_STRTOLL.
25449         * modules/strtoll (Depends-on): Add stdlib.
25450         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25451         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25452
25453 2008-10-19  Bruno Haible  <bruno@clisp.org>
25454
25455         * modules/bcopy (Depends-on): Add strings.
25456         (Include): Specify <strings.h>.
25457
25458 2008-10-19  Bruno Haible  <bruno@clisp.org>
25459
25460         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25461
25462 2008-10-19  Bruno Haible  <bruno@clisp.org>
25463
25464         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25465         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25466         mingw.
25467
25468 2008-10-19  Bruno Haible  <bruno@clisp.org>
25469
25470         * lib/atanl.c: Don't include isnanl.h.
25471         * lib/cosl.c: Likewise.
25472         * lib/ldexpl.c: Likewise.
25473         * lib/logl.c: Likewise.
25474         * lib/sinl.c: Likewise.
25475         * lib/sqrtl.c: Likewise.
25476         * lib/tanl.c: Likewise.
25477
25478         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25479         * lib/isnanf.h: Remove file.
25480         * lib/isnand.h: Remove file.
25481         * lib/isnanl.h: Remove file.
25482         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25483         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25484         macros.
25485         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25486         HAVE_ISNANF, don't define it as a C macro.
25487         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25488         HAVE_ISNAND, don't define it as a C macro.
25489         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25490         HAVE_ISNANL, don't define it as a C macro.
25491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25492         HAVE_ISNAN[FDL].
25493         * modules/isnanf (Files): Remove lib/isnanf.h.
25494         (Depends-on): Add math.
25495         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25496         (Include): Specify <math.h> instead of isnanf.h.
25497         * modules/isnand (Files): Remove lib/isnand.h.
25498         (Depends-on): Add math.
25499         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25500         (Include): Specify <math.h> instead of isnand.h.
25501         * modules/isnanl (Files): Remove lib/isnanl.h.
25502         (Depends-on): Add math.
25503         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25504         (Include): Specify <math.h> instead of isnanl.h.
25505         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25506         HAVE_ISNAN[FDL].
25507         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25508         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25509         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25510         * NEWS: Mention the change.
25511
25512 2008-10-18  Bruno Haible  <bruno@clisp.org>
25513
25514         Add getusershell(), setusershell(), endusershell() declarations to
25515         <unistd.h>.
25516         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25517         declarations.
25518         * lib/getusershell.c: Include unistd.h.
25519         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25520         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25521         HAVE_GETUSERSHELL.
25522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25523         and HAVE_GETUSERSHELL.
25524         * modules/getusershell (Depends-on): Add unistd, extensions.
25525         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25526         (Include): Specify <unistd.h>.
25527         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25528         HAVE_GETUSERSHELL.
25529
25530 2008-10-18  Bruno Haible  <bruno@clisp.org>
25531
25532         Add a getloadavg() declaration to <stdlib.h>.
25533         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25534         getloadavg declaration.
25535         (getloadavg): New declaration.
25536         * lib/getloadavg.c: Include <stdlib.h> first.
25537         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25538         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25539         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25541         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25542         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25543         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25544         (Include): Specify <stdlib.h>.
25545         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25546         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25547
25548 2008-10-18  Bruno Haible  <bruno@clisp.org>
25549
25550         * lib/dirchownmod.c: Don't include lchmod.h.
25551
25552         Move the lchmod() declaration to <sys/stat.h>.
25553         * lib/lchmod.h: Remove file.
25554         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25555         (lchmod): New declaration, moved here from lib/lchown.h.
25556         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25557         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25558         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25559         and HAVE_LCHMOD.
25560         * modules/lchmod (Files): Remove lib/lchmod.h.
25561         (Depends-on): Add sys_stat, extensions.
25562         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25563         (Include): Specify <sys/stat.h> instead of lchmod.h.
25564         * modules/sys_stat (Depends-on): Add link-warning.
25565         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25566         definition of GL_LINK_WARNING.
25567         * NEWS: Mention the change.
25568
25569 2008-10-18  Bruno Haible  <bruno@clisp.org>
25570
25571         * lib/fchdir.c: Don't include dirfd.h.
25572         * lib/fts.c: Likewise.
25573         * lib/getcwd.c: Likewise.
25574         * lib/glob.c: Likewise.
25575
25576         Move the dirfd() declaration to <dirent.h>.
25577         * lib/dirfd.h: Remove file.
25578         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25579         (dirfd): New declaration.
25580         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25581         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25582         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25583         HAVE_DECL_DIRFD.
25584         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25585         HAVE_DECL_DIRFD.
25586         * modules/dirfd (Files): Remove lib/dirfd.h.
25587         (Depends-on): Add dirent, extensions.
25588         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25589         (Include): Specify <dirent.h> instead of dirfd.h.
25590         * modules/dirent (Depends-on): Add link-warning.
25591         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25592         definition of GL_LINK_WARNING.
25593         * NEWS: Mention the change.
25594
25595 2008-10-18  Bruno Haible  <bruno@clisp.org>
25596
25597         Move the euidaccess() declaration to <unistd.h>.
25598         * lib/euidaccess.h: Remove file.
25599         * lib/unistd.in.h (euidaccess): New declaration.
25600         * lib/euidaccess.c: Don't include euidaccess.h.
25601         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25602         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25604         and HAVE_EUIDACCESS.
25605         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25606         (Depends-on): Add unistd.
25607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25608         (Include): Specify <unistd.h> instead of euidaccess.h.
25609         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25610         HAVE_EUIDACCESS.
25611         * NEWS: Mention the change.
25612
25613 2008-10-18  Bruno Haible  <bruno@clisp.org>
25614
25615         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25616
25617         Move the getdomainname() declaration to <unistd.h>.
25618         * lib/getdomainname.h: Remove file.
25619         * lib/unistd.in.h (getdomainname): New declaration.
25620         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25621         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25622         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25623         HAVE_GETDOMAINNAME.
25624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25625         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25626         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25627         (Depends-on): Add unistd, extensions.
25628         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25629         (Includes): Specify <unistd.h> instead of getdomainname.h.
25630         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25631         HAVE_GETDOMAINNAME.
25632         * NEWS: Mention the change.
25633
25634 2008-10-18  Bruno Haible  <bruno@clisp.org>
25635
25636         * modules/dirent: New file.
25637         * m4/dirent_h.m4: New file.
25638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25639         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25640         * modules/fchdir (Files): Remove lib/dirent.in.h.
25641         (Depends-on): Add dirent.
25642         (Makefile.am): Move rules to modules/dirent.
25643         * doc/posix-headers/dirent.texi: Mention the new module.
25644
25645 2008-10-18  Bruno Haible  <bruno@clisp.org>
25646
25647         Avoid -Wunused-parameter warnings in public gnulib header files.
25648         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25649         macro.
25650         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25651
25652 2008-10-18  Bruno Haible  <bruno@clisp.org>
25653
25654         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25655         * doc/glibc-functions/error.texi: Mention the module 'error'.
25656         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25657         * doc/glibc-functions/getdomainname.texi: Mention the module
25658         'getdomainname'.
25659         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25660         * doc/glibc-functions/getpagesize.texi: Mention the module
25661         'getpagesize'.
25662         * doc/glibc-functions/getusershell.texi: Mention the module
25663         'getusershell'.
25664         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25665         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25666         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25667         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25668         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25669         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25670         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25671         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25672         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25673         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25674         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25675         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25676         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25677         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25678
25679 2008-10-17  Bruno Haible  <bruno@clisp.org>
25680
25681         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25682         HP-UX and IRIX, use -0.0L.
25683         * tests/test-ceill.c (minus_zero): Likewise.
25684         * tests/test-floorl.c (minus_zero): Likewise.
25685         * tests/test-frexpl.c (minus_zero): Likewise.
25686         * tests/test-isnan.c (minus_zerol): Likewise.
25687         * tests/test-isnanl.h (minus_zero): Likewise.
25688         * tests/test-ldexpl.c (minus_zero): Likewise.
25689         * tests/test-roundl.c (minus_zero): Likewise.
25690         * tests/test-signbit.c (minus_zerol): Likewise.
25691         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25692         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25693         * tests/test-truncl.c (minus_zero): Likewise.
25694         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25695         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25696         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25697         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25698
25699 2008-10-17  Bruno Haible  <bruno@clisp.org>
25700
25701         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25702         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25703         that it gets activated only for gcc >= 3.0.
25704         * lib/dirent.in.h: Likewise.
25705         * lib/errno.in.h: Likewise.
25706         * lib/fcntl.in.h: Likewise.
25707         * lib/float.in.h: Likewise.
25708         * lib/iconv.in.h: Likewise.
25709         * lib/inttypes.in.h: Likewise.
25710         * lib/locale.in.h: Likewise.
25711         * lib/math.in.h: Likewise.
25712         * lib/netdb.in.h: Likewise.
25713         * lib/netinet_in.in.h: Likewise.
25714         * lib/search.in.h: Likewise.
25715         * lib/signal.in.h: Likewise.
25716         * lib/spawn.in.h: Likewise.
25717         * lib/stdarg.in.h: Likewise.
25718         * lib/stdint.in.h: Likewise.
25719         * lib/stdio.in.h: Likewise.
25720         * lib/stdlib.in.h: Likewise.
25721         * lib/string.in.h: Likewise.
25722         * lib/strings.in.h: Likewise.
25723         * lib/sys_file.in.h: Likewise.
25724         * lib/sys_ioctl.in.h: Likewise.
25725         * lib/sys_select.in.h: Likewise.
25726         * lib/sys_socket.in.h: Likewise.
25727         * lib/sys_stat.in.h: Likewise.
25728         * lib/sys_time.in.h: Likewise.
25729         * lib/sysexits.in.h: Likewise.
25730         * lib/time.in.h: Likewise.
25731         * lib/unistd.in.h: Likewise.
25732         * lib/wchar.in.h: Likewise.
25733         * lib/wctype.in.h: Likewise.
25734         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25735
25736 2008-10-17  Jim Meyering  <meyering@redhat.com>
25737
25738         ignore-value: don't depend on inline module
25739         * modules/ignore-value (Depends-on): Remove 'inline'.
25740         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25741         Suggestion from Bruno Haible.
25742
25743 2008-10-17  Bruno Haible  <bruno@clisp.org>
25744
25745         New implementation of condition variables for Win32.
25746         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25747         (gl_linked_waitqueue_t): New type.
25748         (gl_cond_t): Use it.
25749         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25750         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25751         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25752         (glthread_cond_init_func, glthread_cond_wait_func,
25753         glthread_cond_timedwait_func, glthread_cond_signal_func,
25754         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25755         Reimplemented on the basis of gl_linked_waitqueue_t.
25756         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25757         gl_waitqueue_t.
25758         (gl_rwlock_t): Update.
25759         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25760
25761 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25762
25763         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25764         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25765
25766 2008-10-17  Jim Meyering  <meyering@redhat.com>
25767
25768         ignore-value: new module
25769         * modules/ignore-value: New file.
25770         * lib/ignore-value.h: New file.
25771         * MODULES.html.sh (Compiler warning management): New section,
25772         just for this module.  More to come.
25773
25774 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25775
25776         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25777         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25778         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25779
25780 2008-10-16  Jim Meyering  <meyering@redhat.com>
25781
25782         openat-die.c: avoid 'no previous prototype' warning
25783         * lib/openat-die.c: Include "openat.h".
25784         Reported by Reuben Thomas <rrt@sc3d.org>.
25785
25786 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25787
25788         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25789         * lib/netdb.in.h: Fix typo.
25790         Reported by Bruno Haible  <bruno@clisp.org>
25791
25792         * lib/netdb.in.h: Include sys/socket.h for platforms without
25793         netdb.h, to get structures like hostent on MinGW.
25794         * modules/netdb (Depends-on): Add sys_socket.
25795
25796 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25797
25798         * modules/netdb, modules/netdb-tests: New file.
25799         * m4/netdb_h.m4: New file.
25800         * lib/netdb.in.h: Add, currently just an empty file pending
25801         definitions.
25802         * tests/test-netdb.c: New file.
25803         * doc/posix-headers/netdb.texi: Mention that we replace it if
25804         needed.
25805         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25806         netdb.
25807
25808 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25809
25810         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25811         with code.
25812
25813 2008-10-13  Bruno Haible  <bruno@clisp.org>
25814
25815         * lib/glthread/cond.c (glthread_cond_wait_func,
25816         glthread_cond_timedwait_func): Add a comment.
25817
25818 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25819
25820         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25821         * tests/test-select.c: Likewise,
25822
25823 2008-10-13  Bruno Haible  <bruno@clisp.org>
25824
25825         * lib/glthread/cond.c (glthread_cond_wait_func,
25826         glthread_cond_timedwait_func): Fix variable name.
25827         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25828
25829 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25830
25831         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25833         struct sockaddr.sa_len.
25834         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25835
25836 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25837
25838         * build-aux/pmccabe2html: Add css and css_url parameters.
25839
25840 2008-10-12  Bruno Haible  <bruno@clisp.org>
25841
25842         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25843         calling aclx_get.
25844         Reported by Rainer Tammer <tammer@tammer.net>.
25845
25846 2008-10-12  Bruno Haible  <bruno@clisp.org>
25847
25848         Use msvcrt aware primitives for creation/termination of Win32 threads.
25849         * lib/glthread/thread.c: Include <process.h>.
25850         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25851         (wrapper_func): Update signature.
25852         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25853
25854 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25855             Bruno Haible  <bruno@clisp.org>
25856
25857         Provide a Win32 implementation of the 'cond' module.
25858         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25859         * lib/glthread/cond.c (glthread_cond_init_func,
25860         glthread_cond_wait_func, glthread_cond_timedwait_func,
25861         glthread_cond_signal_func, glthread_cond_broadcast_func,
25862         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25863         * modules/cond (Dependencies): Add gettimeofday.
25864
25865 2008-10-11  Bruno Haible  <bruno@clisp.org>
25866
25867         Make sleep work on older versions of mingw.
25868         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25869         only whether it exists.
25870         * doc/posix-functions/sleep.texi: Mention the problem with older
25871         versions of mingw.
25872
25873 2008-10-11  Bruno Haible  <bruno@clisp.org>
25874
25875         New module 'shutdown'.
25876         * modules/shutdown: New file.
25877         * lib/sys_socket.in.h (shutdown): New declaration.
25878         * lib/winsock.c (shutdown): New function.
25879         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25880         GNULIB_SHUTDOWN.
25881         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25882         * doc/posix-functions/shutdown.texi: Document the new module.
25883
25884 2008-10-11  Jim Meyering  <meyering@redhat.com>
25885
25886         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25887
25888 2008-10-11  Bruno Haible  <bruno@clisp.org>
25889
25890         New module 'fclose'.
25891         * modules/fclose: New file.
25892         * lib/stdio.in.h (fclose): New declaration.
25893         * lib/fclose.c: New file.
25894         * m4/fclose.m4: New file.
25895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25896         REPLACE_FCLOSE.
25897         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25898         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25899         REPLACE_FCLOSE.
25900         * modules/close (Depends-on): fclose.
25901         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25902
25903 2008-10-11  Bruno Haible  <bruno@clisp.org>
25904
25905         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25906         set errno and don't call _close.
25907
25908 2008-10-10  Bruno Haible  <bruno@clisp.org>
25909
25910         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25911         ACL, not afterwards. Fixes test failure on Cygwin.
25912
25913 2008-10-09  Ben Pfaff  <blp@gnu.org>
25914
25915         * build-aux/announce-gen: Fix gnulib version related part of usage
25916         message.  Die with a useful error message if no tarballs are
25917         found.
25918
25919 2008-10-10  Jim Meyering  <meyering@redhat.com>
25920
25921         bootstrap: use git's --depth=N option only if it's supported
25922         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25923         recognize the --depth option.  Reported by Pádraig Brady.
25924
25925 2008-10-09  Bruno Haible  <bruno@clisp.org>
25926
25927         New module 'ioctl'.
25928         * modules/ioctl: New file.
25929         * lib/sys_socket.in.h (ioctl): Remove declaration.
25930         * lib/winsock.c: Include <sys/ioctl.h>.
25931         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25932         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25933         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25934         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25935         * doc/posix-functions/ioctl.texi: Mention the new module.
25936
25937 2008-10-09  Bruno Haible  <bruno@clisp.org>
25938
25939         New module 'sys_ioctl'.
25940         * lib/sys_ioctl.in.h: New file.
25941         * m4/sys_ioctl_h.m4: New file.
25942         * modules/sys_ioctl: New file.
25943         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25944
25945 2008-10-09  Bruno Haible  <bruno@clisp.org>
25946
25947         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25948         * lib/winsock.c: Include <stdarg.h>.
25949         (rpl_ioctl): Change to second argument 'int' and then varargs.
25950
25951 2008-10-09  Bruno Haible  <bruno@clisp.org>
25952
25953         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25954         when the sys_socket module is present and the system has <winsock2.h>.
25955
25956 2008-10-09  Bruno Haible  <bruno@clisp.org>
25957
25958         * doc/posix-functions/close.texi: Mention module 'close' instead of
25959         module 'sys_socket'.
25960
25961 2008-10-09  Bruno Haible  <bruno@clisp.org>
25962
25963         * doc/glibc-headers/sys_ioctl.texi: New file.
25964         * doc/gnulib.texi: Include it.
25965
25966 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25967             Bruno Haible  <bruno@clisp.org>
25968
25969         Combine the two replacements of 'close'.
25970         * lib/sys_socket.in.h (close): Define to a reminder to include
25971         <unistd.h>.
25972         (_gl_close_fd_maybe_socket): New declaration.
25973         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25974         * lib/winsock.c (close): Remove undefinition.
25975         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25976         needed for the gnulib module 'close'.
25977         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25978         define to an error symbol or to a warning, if suitable.
25979         * lib/close.c: Include <sys/socket.h>.
25980         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25981         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25982         UNISTD_H_HAVE_WINSOCK2_H.
25983         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25985         UNISTD_H_HAVE_WINSOCK2_H.
25986         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25987         (configure.ac): Set a module indicator.
25988         (Makefile.am): Substitute GNULIB_CLOSE.
25989         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25990         * modules/poll-tests (Depends-on): Add close.
25991         * modules/select-tests (Depends-on): Likewise.
25992
25993 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25994             Bruno Haible  <bruno@clisp.org>
25995
25996         New module 'close'.
25997         * modules/close: New file.
25998         * lib/unistd.in.h (close): Move declaration out of the
25999         FCHDIR_REPLACEMENT scope.
26000         (_gl_unregister_fd): New declaration.
26001         * lib/close.c: New file.
26002         * lib/fchdir.c (rpl_close): Remove function.
26003         * m4/close.m4: New file.
26004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26005         close.
26006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
26007         REPLACE_CLOSE.
26008         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
26009         REPLACE_CLOSE.
26010         * modules/fchdir (Depends-on): Add close.
26011
26012 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26013             Bruno Haible  <bruno@clisp.org>
26014
26015         * lib/fcntl.in.h (open): Simplify conditionals.
26016         (_gl_register_fd): New declaration.
26017         * lib/fchdir.c (rpl_open): Remove function.
26018         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
26019         also.
26020         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
26021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26022         open.
26023
26024 2008-10-09  Jim Meyering  <meyering@redhat.com>
26025
26026         GNUmakefile: use the more name-space-friendly "_version"
26027         * top/GNUmakefile (_dummy): Update.
26028         (_version): Rename from "version".
26029
26030 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26031             Bruno Haible  <bruno@clisp.org>
26032
26033         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
26034         rpl_close.
26035         (_gl_register_fd): New function, extracted from rpl_open.
26036         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
26037         (rpl_open, rpl_opendir): Use _gl_register_fd.
26038
26039 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26040
26041         Fix organization of 'open' replacement.
26042         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
26043         (gl_FUNC_OPEN): Use it.
26044         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
26045
26046 2008-10-08  Bruno Haible  <bruno@clisp.org>
26047
26048         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
26049
26050 2008-10-08  Simon Josefsson  <simon@josefsson.org>
26051
26052         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
26053         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
26054         listen).
26055
26056 2008-10-08  Eric Blake  <ebb9@byu.net>
26057
26058         GNUmakefile: add 'make version' target
26059         * top/GNUmakefile (_curr-ver): Split version update rules...
26060         (version): ...into a target.
26061
26062 2008-10-07  Bruno Haible  <bruno@clisp.org>
26063
26064         Use a more portable replacement expression for -0.0L.
26065         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
26066         instead of -0.0L. Fix m4 quotation.
26067
26068         * tests/test-signbit.c: Include <float.h>.
26069         (minus_zero): New variable.
26070         (test_signbitl): Use minus_zero instead of -zero.
26071         * modules/signbit-tests (Depends-on): Add float.
26072
26073         * tests/test-ceill.c: Include <float.h>.
26074         (zero): Remove variable.
26075         (minus_zero): New variable.
26076         (main): Use minus_zero instead of -zero.
26077         * modules/ceill-tests (Depends-on): Add float.
26078
26079         * tests/test-floorl.c: Include <float.h>.
26080         (zero): Remove variable.
26081         (minus_zero): New variable.
26082         (main): Use minus_zero instead of -zero.
26083         * modules/floorl-tests (Depends-on): Add float.
26084
26085         * tests/test-roundl.c: Include <float.h>.
26086         (zero): Remove variable.
26087         (minus_zero): New variable.
26088         (main): Use minus_zero instead of -zero.
26089         * modules/roundl-tests (Depends-on): Add float.
26090
26091         * tests/test-truncl.c: Include <float.h>.
26092         (zero): Remove variable.
26093         (minus_zero): New variable.
26094         (main): Use minus_zero instead of -zero.
26095         * modules/truncl-tests (Depends-on): Add float.
26096
26097         * tests/test-frexpl.c (zero): Remove variable.
26098         (minus_zero): New variable.
26099         (main): Use minus_zero instead of -zero.
26100         * modules/frexpl-tests (Depends-on): Add float.
26101
26102         * tests/test-isnan.c (zerol): Remove variable.
26103         (minus_zerol): New variable.
26104         (test_long_double): Use minus_zerol instead of -zerol.
26105         * modules/isnan-tests (Depends-on): Add float.
26106
26107         * tests/test-isnanl.h (zero): Remove variable.
26108         (minus_zero): New variable.
26109         (main): Use minus_zero instead of -zero.
26110         * modules/isnanl-nolibm-tests (Depends-on): Add float.
26111         * modules/isnanl-tests (Depends-on): Add float.
26112
26113         * tests/test-ldexpl.c (zero): Remove variable.
26114         (minus_zero): New variable.
26115         (main): Use minus_zero instead of -zero.
26116         * modules/ldexpl-tests (Depends-on): Add float.
26117
26118         * tests/test-snprintf-posix.h (zerol): Remove variable.
26119         (minus_zerol): New variable.
26120         (test_function): Use minus_zerol instead of -zerol.
26121         * modules/snprintf-posix-tests (Depends-on): Add float.
26122         * modules/vsnprintf-posix-tests (Depends-on): Add float.
26123
26124         * tests/test-sprintf-posix.h (zerol): Remove variable.
26125         (minus_zerol): New variable.
26126         (test_function): Use minus_zerol instead of -zerol.
26127         * modules/sprintf-posix-tests (Depends-on): Add float.
26128         * modules/vsprintf-posix-tests (Depends-on): Add float.
26129
26130         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
26131         (minus_zerol): New variable.
26132         (test_function): Use minus_zerol instead of -zerol.
26133         * modules/vasnprintf-posix-tests (Depends-on): Add float.
26134
26135         * tests/test-vasprintf-posix.c (zerol): Remove variable.
26136         (minus_zerol): New variable.
26137         (test_function): Use minus_zerol instead of -zerol.
26138         * modules/vasprintf-posix-tests (Depends-on): Add float.
26139
26140 2008-10-07  Simon Josefsson  <simon@josefsson.org>
26141
26142         * MODULES.html.sh (Support for building documentation): Mention
26143         pmccabe2html.  Sort entries.
26144
26145         Add pmccabe2html module, from gnupdf.
26146         * build-aux/pmccabe.css: New file.
26147         * build-aux/pmccabe2html: New file.
26148         * m4/pmccabe2html.m4: New file.
26149         * modules/pmccabe2html: New file.
26150
26151 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
26152
26153         flock: new module
26154         * MODULES.html.sh: Add to list of modules.
26155         * lib/flock.c: flock implementation for Windows and Unix systems
26156         which have fcntl.
26157         * doc/glibc-functions/flock.texi: Update documentation.
26158         * lib/sys_file.in.h: <sys/file.h> header file.
26159         * m4/flock.m4: M4 macros.
26160         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26161         * modules/flock: flock module.
26162         * modules/flock-tests: flock tests module.
26163         * modules/sys_file: sys/file.h module.
26164         * tests/test-flock.c: test suite for flock.
26165
26166 2008-10-06  Jim Meyering  <meyering@redhat.com>
26167
26168         bootstrap: check for LT_INIT more portably still ;-)
26169         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26170         Spotted by Bruno Haible.
26171
26172 2008-10-06  Eric Blake  <ebb9@byu.net>
26173
26174         test-signbit: avoid tripping Irix cc bug on -0.0L
26175         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26176         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26177         entire testsuite consistent and avoids an Irix 6.2 bug.
26178
26179 2008-10-05  Bruno Haible  <bruno@clisp.org>
26180             Jim Meyering  <jim@meyering.net>
26181
26182         Add an option for ignoring EPIPE during close_stdout.
26183         * lib/closeout.h: Include <stdbool.h>.
26184         (close_stdout_set_ignore_EPIPE): New declaration.
26185         * lib/closeout.c: Include <stdbool.h>.
26186         (ignore_EPIPE): New variable.
26187         (close_stdout_set_ignore_EPIPE): New function.
26188         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26189         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26190         failure.
26191         * modules/closeout (Depends-on): Add stdbool.
26192
26193 2008-10-05  Bruno Haible  <bruno@clisp.org>
26194
26195         * modules/accept: New file.
26196         * modules/bind: New file.
26197         * modules/connect: New file.
26198         * modules/getpeername: New file.
26199         * modules/getsockname: New file.
26200         * modules/getsockopt: New file.
26201         * modules/listen: New file.
26202         * modules/recv: New file.
26203         * modules/recvfrom: New file.
26204         * modules/send: New file.
26205         * modules/sendto: New file.
26206         * modules/setsockopt: New file.
26207         * modules/socket: New file.
26208         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26209         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26210         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26211         the particular module is requested. Add a link warning when the
26212         particular module is not requested.
26213         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26214         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26215         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26216         the particular module is requested.
26217         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26218         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26219         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26220         * modules/sys_socket (Depends-on): Add link-warning.
26221         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26222         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26223         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26224         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26225         GL_LINK_WARNING.
26226         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26227         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26228         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26229         * doc/posix-functions/getpeername.texi: Mention the new module
26230         'getpeername'.
26231         * doc/posix-functions/getsockname.texi: Mention the new module
26232         'getsockname'.
26233         * doc/posix-functions/getsockopt.texi: Mention the new module
26234         'getsockopt'.
26235         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26236         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26237         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26238         * doc/posix-functions/send.texi: Mention the new module 'send'.
26239         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26240         * doc/posix-functions/setsockopt.texi: Mention the new module
26241         'setsockopt'.
26242         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26243         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26244         listen, connect, accept.
26245         * modules/select-tests (Depends-on): Likewise.
26246
26247 2008-10-05  Bruno Haible  <bruno@clisp.org>
26248
26249         * lib/winsock.c (strerror): Remove unused #undef.
26250         (rpl_close): Remove unused local variable.
26251
26252         * modules/sys_socket (Depends-on); Add errno.
26253
26254 2008-10-05  Bruno Haible  <bruno@clisp.org>
26255
26256         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26257         (select): Add a link warning when the 'select' module is not used.
26258         * modules/sys_select (Depends-on): Add link-warning.
26259         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26260         Suggested by Paolo Bonzini.
26261
26262 2008-10-05  Jim Meyering  <meyering@redhat.com>
26263
26264         bootstrap: check for LT_INIT more portably
26265         * build-aux/bootstrap: Avoid using grep -E, since it's not
26266         portable enough.  Suggestion from Bruno Haible.
26267
26268 2008-10-05  Bruno Haible  <bruno@clisp.org>
26269
26270         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26271         as being fixed by gnulib.
26272
26273 2008-10-05  Bruno Haible  <bruno@clisp.org>
26274
26275         * modules/select-tests: New file, mostly copied from
26276         modules/sys_select-tests.
26277         * tests/test-select.c: New file, mostly copied from
26278         tests/test-sys_select.c.
26279         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26280         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26281         (Makefile.am): Remove test_sys_select_LDADD.
26282
26283         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26284         to an undefined symbol, for an error message.
26285         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26286         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26287         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26288         winsock-select.c here.
26289         * modules/sys_select (Files): Remove lib/winsock-select.c.
26290         (Depends-on): Remove alloca.
26291         (Makefile.am): Substitute GNULIB_SELECT.
26292         * modules/select: New file.
26293         * doc/posix-functions/select.texi: Update.
26294
26295 2008-10-05  Bruno Haible  <bruno@clisp.org>
26296
26297         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26298         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26299         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26300         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26301         getdtablesize.
26302         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26303         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26304
26305 2008-10-05  Bruno Haible  <bruno@clisp.org>
26306
26307         * modules/getdtablesize-tests: New file.
26308         * tests/test-getdtablesize.c: New file.
26309
26310         New module 'getdtablesize'.
26311         * lib/unistd.in.h (getdtablesize): New declaration.
26312         * lib/getdtablesize.c: New file.
26313         * m4/getdtablesize.m4: New file.
26314         * modules/getdtablesize: New file.
26315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26316         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26317         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26318         HAVE_GETDTABLESIZE.
26319         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26320
26321 2008-10-05  Bruno Haible  <bruno@clisp.org>
26322
26323         * modules/sched (Makefile.am): Fix typo.
26324         Reported by Simon Josefsson.
26325
26326 2008-10-05  Jim Meyering  <meyering@redhat.com>
26327
26328         bootstrap: check for LT_INIT, too
26329         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26330         are deprecated.  Suggestion from Ralf Wildenhues.
26331
26332 2008-10-05  Bruno Haible  <bruno@clisp.org>
26333
26334         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26335         overriding them by ours.
26336         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26337
26338 2008-10-05  Jim Meyering  <meyering@redhat.com>
26339
26340         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26341         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26342         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26343
26344 2008-10-04  Bruno Haible  <bruno@clisp.org>
26345
26346         * modules/dup2 (License): Change to LGPLv2+.
26347         * modules/sleep (License): Likewise.
26348         * modules/perror (License): Likewise.
26349         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26350         Blake.
26351         * modules/signal (License): Likewise.
26352         * modules/sigprocmask (License): Likewise.
26353         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26354         Meyering.
26355
26356 2008-10-04  Bruno Haible  <bruno@clisp.org>
26357
26358         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26359         Reported by Rainer Tammer <tammer@tammer.net>.
26360
26361 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26362             Bruno Haible  <bruno@clisp.org>
26363
26364         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26365         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26366         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26367
26368 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26369
26370         filevercmp: new module
26371         * lib/filevercmp.h: New function filevercmp comparing version strings.
26372         * lib/filevercmp.c: Implementation of filevercmp function.
26373         * modules/filevercmp: Module metadata.
26374         * tests/test-filevercmp.c: Unit test for new module.
26375         * modules/filevercmp-tests: Unit test metadata.
26376         * MODULES.html.sh: Add filevercmp module.
26377
26378 2008-10-03  Bruno Haible  <bruno@clisp.org>
26379
26380         * lib/c-ctype.h: Add comment.
26381         Reported by Jim Meyering.
26382
26383 2008-10-02  Bruno Haible  <bruno@clisp.org>
26384
26385         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26386
26387 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26388
26389         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26390         name of bootstrap.conf accordingly.
26391
26392 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26393
26394         * build-aux/bootstrap: Install git-merge-changelog configuration
26395         items into .gitconfig if needed.
26396
26397 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26398
26399         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26400         git repository, and initialize/update it accordingly.
26401
26402 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26403
26404         * modules/fsync-tests: New file.
26405         * tests/test-fsync.c: New file.
26406
26407         New module 'fsync'.
26408         * lib/fsync.c: New file.
26409         * m4/fsync.m4: New file.
26410         * modules/fsync: New file.
26411         * lib/unistd.in.h (fsync): New declaration.
26412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26413         GNULIB_FSYNC and HAVE_FSYNC.
26414         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26415         * MODULES.html.sh (posix_functions): Add fsync.
26416         * doc/posix-functions/fsync.texi: Mention the new module.
26417
26418 2008-10-02  Jim Meyering  <meyering@redhat.com>
26419
26420         fts.c: sync with similar code from coreutils' remove.c
26421         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26422         Guard also with "#if defined __linux__", since for now at least,
26423         this code is Linux-kernel-specific.
26424
26425 2008-10-02  Jim Meyering  <meyering@redhat.com>
26426
26427         fts: bug fixes
26428         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26429         Include <sys/vfs.h>, not <sys/statfs.h>.
26430
26431         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26432         Include <sys/vfs.h>, not <sys/statfs.h>.
26433
26434 2008-10-01  Bruno Haible  <bruno@clisp.org>
26435
26436         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26437         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26438         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26439         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26440         * doc/posix-functions/posix_spawnp.texi: Likewise.
26441         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26442         whether posix_spawn actually works.
26443         * m4/pipe.m4 (gl_PIPE): Likewise.
26444         * modules/execute (Files): Add m4/posix_spawn.m4.
26445         * modules/pipe (Files): Add m4/posix_spawn.m4.
26446         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26447
26448 2008-10-01  Jim Meyering  <meyering@redhat.com>
26449
26450         remove trailing spaces
26451         * NEWS: Likewise.
26452         * lib/poll.c (poll): Likewise.
26453         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26454         * lib/winsock.c (rpl_close): Likewise.
26455         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26456         * modules/yield: Likewise.
26457         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26458         * tests/test-sys_select.c (connect_to_socket): Likewise.
26459
26460         fts.c: adjust a new interface to be more generally useful
26461         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26462         (fts_build): Adjust caller.
26463
26464 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26465
26466         * modules/cond-tests: New file.
26467         * tests/test-cond.c: New file.
26468
26469 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26470             Bruno Haible  <bruno@clisp.org>
26471
26472         * modules/cond (Dependencies): Add errno, time.
26473         * lib/glthread/cond.h: Include <time.h>.
26474         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26475         across platforms.
26476
26477 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26478             Bruno Haible  <bruno@clisp.org>
26479
26480         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26481
26482 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26483             Bruno Haible  <bruno@clisp.org>
26484
26485         * modules/tls-tests (Depends-on): Add thread, yield.
26486         (configure.ac): Remove all checks.
26487         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26488         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26489         gl_thread_self): Remove definitions. Include glthread/thread.h and
26490         glthread/yield.h instead.
26491         (test_tls): Pass an additional NULL argument to gl_thread_join.
26492
26493 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26494             Bruno Haible  <bruno@clisp.org>
26495
26496         * modules/lock-tests (Depends-on): Add thread, yield.
26497         (configure.ac): Remove all checks.
26498         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26499         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26500         gl_thread_self): Remove definitions. Include glthread/thread.h and
26501         glthread/yield.h instead.
26502         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26503         additional NULL argument to gl_thread_join.
26504
26505 2008-09-30  Bruno Haible  <bruno@clisp.org>
26506
26507         Fix the Win32 implementation of the 'thread' module.
26508         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26509         pointer type.
26510         (gl_thread_self): Invoke gl_thread_self_func.
26511         (gl_thread_self_func): New declaration.
26512         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26513         (do_init_self_key, init_self_key): New functions.
26514         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26515         Remove some fields.
26516         (running_threads, running_lock): Remove variables.
26517         (get_current_thread_handle): New function.
26518         (gl_thread_self_func, wrapper_func, glthread_create_func,
26519         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26520         simplified.
26521
26522 2008-09-30  Bruno Haible  <bruno@clisp.org>
26523
26524         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26525         files.
26526
26527 2008-09-30  Jim Meyering  <meyering@redhat.com>
26528
26529         fts.m4: correct the test for statfs.f_type
26530         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26531         when checking for statfs.f_type.
26532
26533 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26534
26535         tests: avoid some compiler warnings
26536         * tests/test-memchr.c (main): Pass NULL indirectly.
26537         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26538
26539 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26540
26541         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26542         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26543         exactly specified dayshifts.
26544         (dayshift): New rule.
26545         (rel): Add dayshift.
26546         (relative_time_table) [tomorrow, yesterday, today, now]:
26547         Use tDAY_SHIFT in place of tDAY_UNIT.
26548         * tests/test-getdate.c: Add tests for now-disallowed countable
26549         dayshifts, e.g., "4 yesterday ago".
26550
26551 2008-09-29  Bruno Haible  <bruno@clisp.org>
26552
26553         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26554         * tests/test-posix_spawn1.in.sh: Renamed from
26555         tests/test-posix_spawn.in.sh.
26556         * tests/test-posix_spawn2.c: New file.
26557         * tests/test-posix_spawn2.in.sh: New file.
26558         * modules/posix_spawnp-tests (Files): Update.
26559         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26560
26561 2008-09-29  Bruno Haible  <bruno@clisp.org>
26562
26563         Propagate effects of putenv/setenv/unsetenv to child processes.
26564         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26565         * lib/pipe.c (create_pipe): Likewise.
26566
26567 2008-09-29  Bruno Haible  <bruno@clisp.org>
26568
26569         Enable use of shell scripts as executables in mingw.
26570         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26571         run the program as a shell script.
26572         * lib/pipe.c (create_pipe): Likewise.
26573         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26574         resulting array.
26575
26576 2008-09-29  Eric Blake  <ebb9@byu.net>
26577
26578         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26579
26580 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26581
26582         * doc/posix-functions/accept.texi: Update mingw problems.
26583         * doc/posix-functions/bind.texi: Update mingw problems.
26584         * doc/posix-functions/close.texi: Update mingw problems.
26585         * doc/posix-functions/connect.texi: Update mingw problems.
26586         * doc/posix-functions/getpeername.texi: Update mingw problems.
26587         * doc/posix-functions/getsockname.texi: Update mingw problems.
26588         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26589         * doc/posix-functions/ioctl.texi: Update mingw problems.
26590         * doc/posix-functions/listen.texi: Update mingw problems.
26591         * doc/posix-functions/recv.texi: Update mingw problems.
26592         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26593         * doc/posix-functions/select.texi: Update mingw problems.
26594         * doc/posix-functions/send.texi: Update mingw problems.
26595         * doc/posix-functions/sendto.texi: Update mingw problems.
26596         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26597         * doc/posix-functions/socket.texi: Update mingw problems.
26598
26599 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26600             Bruno Haible  <bruno@clisp.org>
26601
26602         * lib/sys_select.in.h: Include sys/time.h.
26603         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26604         * modules/sys_select: Depend on sys_time.
26605         * tests/test-sys_select.c: Test that sys/select.h defines struct
26606         timeval fully.
26607
26608 2008-09-29  Bruno Haible  <bruno@clisp.org>
26609
26610         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26611         * lib/sys_select.in.h: Likewise.
26612
26613 2008-09-29  Bruno Haible  <bruno@clisp.org>
26614
26615         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26616
26617 2008-09-29  Bruno Haible  <bruno@clisp.org>
26618
26619         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26620         Set LIBSOCKET instead of augmenting LIBS.
26621         * modules/sockets (Link): New section.
26622         * modules/sockets-tests (test_sockets_LDADD): New variable.
26623         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26624         * modules/poll-tests (test_poll_LDADD): New variable.
26625         * NEWS: Document the change.
26626
26627 2008-09-29  Bruno Haible  <bruno@clisp.org>
26628
26629         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26630         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26631         ARPA_INET_H directly.
26632         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26633
26634 2008-09-28  Bruno Haible  <bruno@clisp.org>
26635
26636         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26637         from gl_HEADER_SYS_SOCKET.
26638         (gl_HEADER_SYS_SOCKET): Invoke it.
26639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26640
26641 2008-09-28  Bruno Haible  <bruno@clisp.org>
26642
26643         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26644         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26645         Needed on OSF/1 4.0.
26646
26647 2008-09-28  Bruno Haible  <bruno@clisp.org>
26648
26649         Override open more carefully.
26650         * lib/open.c (orig_open): New function.
26651         (rpl_open): Use orig_open instead of open.
26652         * lib/fcntl.in.h: Add special invocation convention.
26653         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26654         (gl_FUNC_OPEN): Invoke it.
26655
26656         Override freopen more carefully.
26657         * lib/freopen.c (orig_freopen): New function.
26658         (rpl_freopen): Use orig_freopen instead of freopen.
26659         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26660         (gl_FUNC_FREOPEN): Invoke it.
26661
26662         Override fopen more carefully.
26663         * lib/fopen.c (orig_fopen): New function.
26664         (rpl_fopen): Use orig_fopen instead of fopen.
26665         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26666         (gl_FUNC_FOPEN): Invoke it.
26667         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26668
26669 2008-09-28  Bruno Haible  <bruno@clisp.org>
26670
26671         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26672         SIGPIPE.
26673
26674 2008-09-28  Bruno Haible  <bruno@clisp.org>
26675
26676         * tests/test-sigaction.c (handler, main): Disable the check whether
26677         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26678         glibc systems with LinuxThreads.
26679
26680 2008-09-28  Bruno Haible  <bruno@clisp.org>
26681
26682         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26683
26684         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26685         with AIX xlc.
26686         * lib/fcntl.in.h (open): Likewise.
26687         Reported by Rainer Tammer <tammer@tammer.net>.
26688
26689 2008-09-28  Bruno Haible  <bruno@clisp.org>
26690
26691         * modules/posix_spawnp-tests: New file.
26692         * tests/test-posix_spawn.c: New file.
26693         * tests/test-posix_spawn.in.sh: New file.
26694
26695         New module 'posix_spawnp'.
26696         * modules/posix_spawnp: New file.
26697         * lib/spawnp.c: New file, from GNU libc with modifications.
26698         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26699
26700         New module 'posix_spawn'.
26701         * modules/posix_spawn: New file.
26702         * lib/spawn.c: New file, from GNU libc with modifications.
26703         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26704
26705         New module 'posix_spawnattr_destroy'.
26706         * modules/posix_spawnattr_destroy: New file.
26707         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26708         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26709         module.
26710
26711         New module 'posix_spawnattr_setsigmask'.
26712         * modules/posix_spawnattr_setsigmask: New file.
26713         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26714         modifications.
26715         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26716         new module.
26717
26718         New module 'posix_spawnattr_getsigmask'.
26719         * modules/posix_spawnattr_getsigmask: New file.
26720         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26721         modifications.
26722         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26723         new module.
26724
26725         New module 'posix_spawnattr_setsigdefault'.
26726         * modules/posix_spawnattr_setsigdefault: New file.
26727         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26728         modifications.
26729         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26730         new module.
26731
26732         New module 'posix_spawnattr_getsigdefault'.
26733         * modules/posix_spawnattr_getsigdefault: New file.
26734         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26735         modifications.
26736         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26737         new module.
26738
26739         New module 'posix_spawnattr_setschedpolicy'.
26740         * modules/posix_spawnattr_setschedpolicy: New file.
26741         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26742         modifications.
26743         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26744         new module.
26745
26746         New module 'posix_spawnattr_getschedpolicy'.
26747         * modules/posix_spawnattr_getschedpolicy: New file.
26748         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26749         modifications.
26750         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26751         new module.
26752
26753         New module 'posix_spawnattr_setschedparam'.
26754         * modules/posix_spawnattr_setschedparam: New file.
26755         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26756         modifications.
26757         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26758         new module.
26759
26760         New module 'posix_spawnattr_getschedparam'.
26761         * modules/posix_spawnattr_getschedparam: New file.
26762         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26763         modifications.
26764         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26765         new module.
26766
26767         New module 'posix_spawnattr_setpgroup'.
26768         * modules/posix_spawnattr_setpgroup: New file.
26769         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26770         modifications.
26771         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26772         module.
26773
26774         New module 'posix_spawnattr_getpgroup'.
26775         * modules/posix_spawnattr_getpgroup: New file.
26776         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26777         modifications.
26778         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26779         module.
26780
26781         New module 'posix_spawnattr_setflags'.
26782         * modules/posix_spawnattr_setflags: New file.
26783         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26784         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26785         module.
26786
26787         New module 'posix_spawnattr_getflags'.
26788         * modules/posix_spawnattr_getflags: New file.
26789         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26790         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26791         module.
26792
26793         New module 'posix_spawnattr_init'.
26794         * modules/posix_spawnattr_init: New file.
26795         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26796         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26797         module.
26798
26799         New module 'posix_spawn_file_actions_destroy'.
26800         * modules/posix_spawn_file_actions_destroy: New file.
26801         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26802         modifications.
26803         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26804         the new module.
26805
26806         New module 'posix_spawn_file_actions_addopen'.
26807         * modules/posix_spawn_file_actions_addopen: New file.
26808         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26809         modifications.
26810         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26811         the new module.
26812
26813         New module 'posix_spawn_file_actions_adddup2'.
26814         * modules/posix_spawn_file_actions_adddup2: New file.
26815         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26816         modifications.
26817         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26818         the new module.
26819
26820         New module 'posix_spawn_file_actions_addclose'.
26821         * modules/posix_spawn_file_actions_addclose: New file.
26822         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26823         modifications.
26824         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26825         the new module.
26826
26827         New module 'posix_spawn_file_actions_init'.
26828         * modules/posix_spawn_file_actions_init: New file.
26829         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26830         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26831         new module.
26832
26833         New module 'posix_spawn-internal'.
26834         * modules/posix_spawn-internal: New file.
26835         * lib/spawn_int.h: New file, from GNU libc with modifications.
26836         * lib/spawni.c: New file, from GNU libc with modifications.
26837         * m4/posix_spawn.m4: New file.
26838
26839         New module 'spawn'.
26840         * modules/spawn: New file.
26841         * lib/spawn.in.h: New file, from GNU libc with modifications.
26842         * m4/spawn_h.m4: New file.
26843         * doc/posix-headers/spawn.texi: Mention the new module.
26844
26845 2008-09-28  Bruno Haible  <bruno@clisp.org>
26846
26847         * modules/sched-tests: New file.
26848         * tests/test-sched.c: New file.
26849
26850         New module 'sched'.
26851         * modules/sched: New file.
26852         * lib/sched.in.h: New file.
26853         * m4/sched_h.m4: New file.
26854         * doc/posix-headers/sched.texi: Mention the new module.
26855
26856 2008-09-27  Eric Blake  <ebb9@byu.net>
26857
26858         Fix previous patch, and tweak references to $0.
26859         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26860         (func_version, func_gnulib_dir): Don't call this program
26861         gnulib-tool.
26862         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26863         with using $0 in function.
26864         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26865         (func_fatal_error): Reuse the name the user invoked us with.
26866
26867 2008-09-27  Bruno Haible  <bruno@clisp.org>
26868
26869         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26870         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26871         (gl_ICONV_H): Not here.
26872         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26873         instead of assigning ICONV_H directly.
26874
26875         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26877         WCHAR_H directly.
26878
26879 2008-09-27  Bruno Haible  <bruno@clisp.org>
26880
26881         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26882         * modules/arpa_inet (Depends-on): Add link-warning.
26883         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26884         * modules/unistd (Makefile.am): Likewise.
26885
26886 2008-09-26  Bruno Haible  <bruno@clisp.org>
26887
26888         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26889         variables.
26890         (func_version): Essentially copied from gnulib-tool.
26891         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26892         func_readlink): Copied from gnulib-tool.
26893
26894 2008-09-26  Bruno Haible  <bruno@clisp.org>
26895
26896         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26897         invoking git-version-gen.
26898
26899 2008-09-26  Bruno Haible  <bruno@clisp.org>
26900
26901         * posix-modules: Update to directory names changed on 2008-01-19.
26902         Remove commas in output before splitting into words. No more need to
26903         avoid 'ftruncate' since 2007-02-19.
26904
26905 2008-09-26  Bruno Haible  <bruno@clisp.org>
26906
26907         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26908
26909 2008-09-26  Bruno Haible  <bruno@clisp.org>
26910
26911         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26912         * modules/fwriteerror (Depends-on): Add errno.
26913
26914 2008-09-26  Bruno Haible  <bruno@clisp.org>
26915
26916         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26917         * tests/test-vc-list-files-cvs.sh: Likewise.
26918
26919 2008-09-26  Bruno Haible  <bruno@clisp.org>
26920
26921         * doc/posix-headers/sys_resource.texi: Reorder items.
26922
26923 2008-09-26  Jim Meyering  <meyering@redhat.com>
26924
26925         fts: tweak inode comparison function
26926         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26927         inode numbers, as documented.
26928
26929         fts: sort dirent entries on inode number before traversing
26930         This avoids a quadratic, seek-related performance penalty when
26931         operating on a directory containing many entries (measurable at 10k;
26932         3.5 hours at 2 million entries with a cold cache) on certain types
26933         of file systems, including ext3 and ext4, but not tmpfs.
26934         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26935         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26936         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26937         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26938         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26939         (fts_build): Set the stat.st_ino member from D_INO.
26940         If it is likely to be useful, sort dirent entries on inode number.
26941
26942         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26943         and the struct statfs.f_type member.
26944         * modules/fts (Depends-on): Add d-ino.
26945
26946 2008-09-26  Bruno Haible  <bruno@clisp.org>
26947
26948         * modules/sigpipe-die (Depends-on): Add sigpipe.
26949
26950         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26951         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26952         and GNULIB_STDIO_H_SIGPIPE are set.
26953         * lib/stdio-write.c: New file.
26954         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26955         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26956         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26957         REPLACE_STDIO_WRITE_FUNCS.
26958         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26959         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26960         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26961         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26962         * modules/stdio (Files): Add lib/stdio-write.c.
26963         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26964         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26965         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26966         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26967         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26968         REPLACE_FPRINTF_POSIX.
26969         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26970         REPLACE_PRINTF_POSIX.
26971         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26972         REPLACE_VFPRINTF_POSIX.
26973         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26974         REPLACE_VPRINTF_POSIX.
26975         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26976         SIGPIPE issue.
26977         * doc/posix-functions/fputc.texi: Likewise.
26978         * doc/posix-functions/fputs.texi: Likewise.
26979         * doc/posix-functions/fwrite.texi: Likewise.
26980         * doc/posix-functions/printf.texi: Likewise.
26981         * doc/posix-functions/putc.texi: Likewise.
26982         * doc/posix-functions/putchar.texi: Likewise.
26983         * doc/posix-functions/puts.texi: Likewise.
26984         * doc/posix-functions/vfprintf.texi: Likewise.
26985         * doc/posix-functions/vprintf.texi: Likewise.
26986
26987         * modules/safe-write (Depends-on): Add write.
26988
26989         * modules/sigpipe-tests: New file.
26990         * tests/test-sigpipe.c: New file.
26991         * tests/test-sigpipe.sh: New file.
26992
26993         * modules/write: New file.
26994         * lib/unistd.in.h: Include <sys/types.h>.
26995         (write): New declaration.
26996         * lib/write.c: New file.
26997         * m4/write.m4: New file.
26998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26999         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
27000         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
27001         GNULIB_WRITE, REPLACE_WRITE.
27002         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
27003         and the SIGPIPE issue.
27004
27005         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
27006         (raise): New declaration.
27007         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
27008         (ext_signal): New function.
27009         (rpl_raise): New function.
27010         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
27011         GNULIB_SIGNAL_H_SIGPIPE.
27012         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
27013         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
27014
27015         * modules/sigpipe: New file.
27016         * m4/sigpipe.m4: New file.
27017
27018 2008-09-25  Derek Price  <derek@ximbiot.com>
27019             Bruno Haible  <bruno@clisp.org>
27020
27021         * gnulib-tool (func_import): Report all license incompatibilities, not
27022         just the first one.
27023
27024 2008-09-25  Bruno Haible  <bruno@clisp.org>
27025
27026         * gnulib-tool (func_import): When computing the edits, consider not
27027         only the Makefile.ams that exist but also those that will be generated.
27028
27029 2008-09-25  Simon Josefsson  <simon@josefsson.org>
27030
27031         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
27032         fixes gnulib-tool --test warning about duplicate dependency.
27033
27034 2008-09-25  Bruno Haible  <bruno@clisp.org>
27035
27036         * gnulib-tool: Don't ask the user to perform edits in the generated
27037         Makefile.ams.
27038         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
27039         apply to the Makefile.am being generated.
27040         (func_emit_tests_Makefile_am): Execute edits that apply to the
27041         Makefile.am being generated.
27042         (func_import): Setup list of Makefile.am edits before emitting the
27043         Makefile.ams, not at the end.
27044         (func_create_testdir): Update.
27045         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27046
27047 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27048
27049         * gnulib-tool (func_import): Store the --tests-base option in the
27050         comment in gnulib-cache.m4.
27051
27052 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
27053
27054         * NEWS: Document increased portability that sys_select now provides.
27055
27056         * lib/sys_select.in.h: Install select wrapper.
27057         * lib/sys_socket.in.h: Use more descriptive name when there is no
27058         select wrapper.
27059         * lib/winsock-select.c: New.
27060         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
27061         Require gl_HEADER_SYS_SOCKET.
27062         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
27063         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
27064         * tests/test-sys_select.c: Add functional tests.
27065
27066 2008-09-24  Eric Blake  <ebb9@byu.net>
27067
27068         open, fopen: close fd leak in last patch
27069         * lib/open.c (rpl_open): Close fd before returning error.
27070         * lib/fopen.c (rpl_fopen): Close fd before returning error.
27071         * doc/posix-functions/open.texi (open): Document that Irix also
27072         has the bug.
27073         * doc/posix-functions/fopen.texi (fopen): Likewise.
27074         Reported by Paolo Bonzini.
27075
27076 2008-09-24  Bruno Haible  <bruno@clisp.org>
27077
27078         Ensure that a filename ending in a slash cannot be used to access a
27079         non-directory.
27080         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
27081         to check whether it's really a directory.
27082         * lib/fopen.c: Include fcntl.h, unistd.h.
27083         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
27084         and fdopen().
27085         * modules/fopen (Depends-on): Add unistd.
27086         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
27087         * tests/test-fopen.c (main): Likewise.
27088         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
27089         * doc/posix-functions/fopen.texi: Likewise.
27090         Reported by Eric Blake.
27091
27092 2008-09-23  Eric Blake  <ebb9@byu.net>
27093
27094         c-stack: avoid compiler optimizations when provoking overflow
27095         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
27096         recursion harder to optimize, to ensure a stack overflow occurs.
27097         * tests/test-c-stack.c (recurse): Likewise.
27098         Borrowed from libsigsegv.
27099
27100         c-stack: work around Irix sigaltstack bug
27101         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
27102         whether sigaltstack uses wrong end of stack_t (copied in part from
27103         libsigsegv).
27104         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
27105         Irix bug, without requiring an over-allocation.
27106         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
27107         bug.
27108
27109         fopen: document mingw bug on directories
27110         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
27111         not allowing a stream visiting a directory, even though reading
27112         from such a stream is not portable.
27113
27114 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27115
27116         * lib/poll.c: Rewrite.
27117         * modules/poll: Depend on alloca.
27118
27119 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27120
27121         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
27122         instead define prototypes for a full set of wrappers.  Ensure
27123         that Cygwin does not use the compatibility code, which is only
27124         for MinGW.
27125         * lib/winsock.c: New.
27126         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
27127         * modules/sys_socket: Add lib/winsock.c.
27128
27129         * modules/poll-tests: Add errno and perror.
27130         * tests/test-poll.c: Use ioctl, not ioctlsocket.
27131
27132 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27133
27134         * tests/test-poll.c: Downgrade minimum needed Winsock version.
27135
27136 2008-09-23  Bruno Haible  <bruno@clisp.org>
27137
27138         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
27139         * doc/glibc-functions/*: Likewise.
27140
27141 2008-09-23  Simon Josefsson  <simon@josefsson.org>
27142
27143         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
27144         success.
27145
27146 2008-09-22  Eric Blake  <ebb9@byu.net>
27147             Bruno Haible  <bruno@clisp.org>
27148
27149         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
27150         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
27151         supply %A but mishandle pseudo-NaN.
27152         Reported by Simon Josefsson.
27153
27154 2008-09-21  Bruno Haible  <bruno@clisp.org>
27155
27156         * tests/test-lock.c (main): Tweak skip message.
27157         * tests/test-tls.c (main): Likewise.
27158
27159 2008-09-21  Bruno Haible  <bruno@clisp.org>
27160
27161         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27162         whether 'struct sigaction' has sa_sigaction here...
27163         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27164         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27165
27166 2008-09-21  Bruno Haible  <bruno@clisp.org>
27167
27168         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27169         section.
27170         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27171         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27172         the new section.
27173         (Support for obsolete systems lacking POSIX:2001): New section.
27174         (String handling <string.h>): Move strdup to the new section.
27175         Suggested by Simon Josefsson and Paolo Bonzini.
27176
27177 2008-09-21  Bruno Haible  <bruno@clisp.org>
27178
27179         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27180         exponents in %e and %g results on 'long double'. Needed for mingw's
27181         improved *printf functions.
27182         * tests/test-vasprintf-posix.c (test_function): Likewise.
27183         * tests/test-snprintf-posix.h (test_function): Likewise.
27184         * tests/test-sprintf-posix.h (test_function): Likewise.
27185         Reported by Eric Blake.
27186
27187 2008-09-21  Bruno Haible  <bruno@clisp.org>
27188
27189         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27190         * tests/test-sprintf-posix.h (test_function): Likewise.
27191
27192 2008-09-21  Bruno Haible  <bruno@clisp.org>
27193
27194         * modules/getpass (Depends-on): Add strdup-posix.
27195
27196         New module 'strdup-posix'.
27197         * modules/strdup-posix: New file.
27198         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27199         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27201         REPLACE_STRDUP.
27202         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27203         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27205         strdup-posix.
27206
27207         * modules/strdup (Depends-on): Remove malloc-posix.
27208
27209 2008-09-20  Bruno Haible  <bruno@clisp.org>
27210
27211         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27212         Wildenhues.
27213
27214 2008-09-20  Bruno Haible  <bruno@clisp.org>
27215
27216         Ensure that wint_t gets defined on IRIX 5.3.
27217         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27218         * lib/wctype.in.h (wint_t): Likewise.
27219         (__wctype_wint_t): Remove type.
27220         (isw*): Use wint_t instead of __wctype_wint_t.
27221         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27222         * modules/wchar (Files): Add m4/wint_t.m4.
27223         (Makefile.am): Substitute HAVE_WINT_T.
27224         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27225         * tests/test-wctype.c: Check that wint_t is defined.
27226         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27227         * doc/posix-headers/wctype.texi: Likewise.
27228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27229
27230 2008-09-18  Bruno Haible  <bruno@clisp.org>
27231
27232         * gnulib-tool (func_exit): Update comment.
27233
27234 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27235
27236         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27237         assumes strdup exists and does not depend on strdup to return
27238         ENOMEM on out of memory conditions.
27239
27240 2008-09-18  Bruno Haible  <bruno@clisp.org>
27241
27242         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27243         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27244         digits for the exponent.
27245
27246 2008-09-18  Jim Meyering  <meyering@redhat.com>
27247             Bruno Haible  <bruno@clisp.org>
27248
27249         * lib/vasnprintf.c (decimal_point_char): Define also if
27250         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27251
27252 2008-09-16  Bruno Haible  <bruno@clisp.org>
27253         and Eric Blake  <ebb9@byu.net>
27254
27255         vasnprintf: support Irix 5.3
27256         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27257         that mishandle long double infinity.
27258         Reported by Tom G. Christensen.
27259
27260 2008-09-16  Bruno Haible  <bruno@clisp.org>
27261
27262         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27263         Solaris 9.
27264         * doc/glibc-functions/alphasort.texi: Likewise.
27265         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27266
27267 2008-09-16  Jim Meyering  <meyering@redhat.com>
27268
27269         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27270         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27271         a umask modification leak out of a subshell.  Otherwise, the
27272         opensolaris /bin/sh would be accepted and thus cause unwarranted
27273         failures in the coreutils test suite.
27274
27275 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27276
27277         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27278         to succeed.
27279
27280 2008-09-16  Jim Meyering  <meyering@redhat.com>
27281
27282         avoid spurious test failure when library is built without ACL support
27283         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27284         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27285         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27286         * tests/test-copy-acl.sh: Likewise.
27287
27288 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27289
27290         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27291         based on character occurrence counts.
27292
27293 2008-09-15  Eric Blake  <ebb9@byu.net>
27294
27295         tests: avoid some compiler warnings
27296         * tests/test-memchr.c (main): Pass NULL indirectly.
27297         * tests/test-closein.c (main): Avoid unused variable.
27298
27299 2008-09-15  Bruno Haible  <bruno@clisp.org>
27300
27301         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27302         are missing on OpenBSD 4.0 individually.
27303         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27304
27305 2008-09-15  Bruno Haible  <bruno@clisp.org>
27306
27307         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27308         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27309         * doc/posix-functions/perror.texi: Likewise.
27310         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27311         is missing.
27312         Reported by Eric Blake.
27313
27314         * lib/errno.in.h: Use replacement values >= 2000.
27315         Reported by Eric Blake.
27316
27317 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27318
27319         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27320         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27321         limit.
27322         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27323         compareseq was aborted.
27324
27325 2008-09-14  Bruno Haible  <bruno@clisp.org>
27326
27327         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27328         yvec_edit_count.
27329         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27330         (fstrcmp_bounded): Simplify result computation accordingly.
27331
27332 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27333
27334         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27335         (fstrcmp): Define in terms of fstrcmp_bounded.
27336         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27337         lower_bound argument.
27338         Return quickly if the result is certainly < lower_bound.
27339         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27340
27341 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27342
27343         * lib/diffseq.h (EARLY_ABORT): New macro.
27344         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27345         evaluates to true.
27346
27347 2008-09-14  Bruno Haible  <bruno@clisp.org>
27348
27349         * modules/perror-tests: New file.
27350         * tests/test-perror.sh: New file.
27351         * tests/test-perror.c: New file.
27352
27353         New module 'perror'.
27354         * lib/stdio.in.h (perror): New declaration.
27355         * lib/perror.c: New file.
27356         * m4/perror.m4: New file.
27357         * modules/perror: New file.
27358         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27359         * doc/posix-functions/perror.texi: Mention the perror module.
27360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27361         REPLACE_PERROR.
27362         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27363         REPLACE_PERROR.
27364
27365 2008-09-14  Bruno Haible  <bruno@clisp.org>
27366
27367         * modules/stdio (Makefile.am): Reorder to match the order in
27368         lib/stdio.in.h.
27369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27370
27371 2008-09-13  Bruno Haible  <bruno@clisp.org>
27372
27373         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27374
27375 2008-09-13  Bruno Haible  <bruno@clisp.org>
27376
27377         Extend strerror to cover the added errno values.
27378         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27379         (rpl_strerror): Provide error messages for the added errno values and
27380         for the WSA* values.
27381         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27382         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27383         strerror.
27384         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27385         * modules/strerror (Depends-on): Add errno.
27386         * doc/posix-functions/strerror.texi: Document the change.
27387         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27388         and EOVERFLOW.
27389
27390 2008-09-13  Bruno Haible  <bruno@clisp.org>
27391
27392         * modules/EOVERFLOW: Remove file.
27393         * m4/eoverflow.m4: Remove file.
27394         * modules/EOVERFLOW-tests: Remove file.
27395         * tests/test-EOVERFLOW.c: Remove file.
27396         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27397         * modules/ftell (Depends-on): Likewise.
27398         * modules/getdelim (Depends-on): Likewise.
27399         * modules/getugroups (Depends-on): Likewise.
27400         * modules/poll (Depends-on): Likewise.
27401         * modules/snprintf (Depends-on): Likewise.
27402         * modules/sprintf-posix (Depends-on): Likewise.
27403         * modules/vasnprintf (Depends-on): Likewise.
27404         * modules/vasprintf (Depends-on): Likewise.
27405         * modules/vfprintf-posix (Depends-on): Likewise.
27406         * modules/vsnprintf (Depends-on): Likewise.
27407         * modules/vsprintf-posix (Depends-on): Likewise.
27408         * modules/xvasprintf (Depends-on): Likewise.
27409         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27410         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27411         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27412         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27413         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27414         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27415         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27416         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27417         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27418         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27419         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27420         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27421         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27422         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27423         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27424         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27425         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27426         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27427         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27428         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27429         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27430         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27431         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27432         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27433         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27434         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27435         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27436         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27437         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27438         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27439         * MODULES.html.sh: Remove EOVERFLOW.
27440         * NEWS: Mention the change.
27441
27442 2008-09-13  Bruno Haible  <bruno@clisp.org>
27443
27444         * modules/errno-tests: New file.
27445         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27446
27447         * lib/errno.in.h: New file.
27448         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27449         * modules/errno: New file.
27450         * doc/posix-headers/errno.texi: Update documentation.
27451         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27452
27453 2008-09-13  Bruno Haible  <bruno@clisp.org>
27454
27455         * tests/test-poll.c: Use #if for native Windows, rather than testing
27456         __MSVCRT__.
27457
27458 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27459             Bruno Haible  <bruno@clisp.org>
27460
27461         * lib/glob.c: Don't include <pwd.h> on native Windows.
27462         (WINDOWS32): New macro.
27463         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27464
27465 2008-09-13  Bruno Haible  <bruno@clisp.org>
27466
27467         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27468         (ETIMEDOUT): Remove macro.
27469         (glthread_cond_timedwait_multithreaded): New declaration.
27470         (glthread_cond_timedwait): Use it.
27471         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27472         (glthread_cond_timedwait_multithreaded): New function.
27473
27474 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27475
27476         * modules/poll-tests: Do not check for io.h.
27477         * tests/test-poll.c: Check for __MSVCRT__ instead.
27478
27479 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27480
27481         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27482         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27483         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27484
27485 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27486
27487         * modules/poll-tests: New.
27488         * tests/test-poll.c: New.
27489
27490 2008-09-12  Eric Blake  <ebb9@byu.net>
27491
27492         frexp: test for NetBSD failure on -0.0
27493         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27494         not all, bugs from NetBSD 3.0 have been fixed.
27495         * doc/posix-functions/frexp.texi (frexp): Document bug.
27496         Reported by Thomas Klausner.
27497
27498         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27499         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27500         literal -0.0.
27501         Reported by Jonathan C. Patschke <jp@centtech.com>.
27502
27503 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27504
27505         * lib/glthread/cond.h: Use dummy implementation also if
27506         USE_WIN32_THREADS.
27507
27508 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27509
27510         * modules/fnmatch-posix (License): Change to LGPLv2+.
27511         * modules/fnmatch-gnu (License): Likewise.
27512
27513 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27514
27515         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27516
27517 2008-09-11  Jim Meyering  <meyering@redhat.com>
27518
27519         * users.txt: Add gtk-vnc.
27520
27521 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27522
27523         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27524         rotate amounts.
27525
27526         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27527         required for 16-bit and 8-bit rotates.
27528         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27529         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27530         UINT8_MAX instead of hard-coded constants.
27531         Suggested by Paul Eggert.
27532
27533 2008-09-07  Bruno Haible  <bruno@clisp.org>
27534
27535         * tests/test-striconveh.c (main): Check behaviour when converting from
27536         UTF-7.
27537
27538         Make striconveh work better with stateful encodings.
27539         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27540         that iconv does not increment the inptr when returning -1/EINVAL.
27541
27542 2008-09-07  Bruno Haible  <bruno@clisp.org>
27543
27544         * build-aux/config.rpath: Update according to libtool-2.2.6.
27545         * build-aux/config.libpath: Likewise.
27546
27547 2008-09-06  Bruno Haible  <bruno@clisp.org>
27548
27549         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27550         * lib/freadptr.c (freadptr): Likewise.
27551         * lib/freadseek.c (freadptrinc): Likewise.
27552         Reported by Simon Josefsson.
27553
27554 2008-09-06  Bruno Haible  <bruno@clisp.org>
27555
27556         * modules/freadptr (License): Change to LGPLv2+.
27557         * modules/freadseek (License): Likewise.
27558         Suggested by Eric Blake.
27559
27560         * modules/memchr2 (License): Change to LGPLv2+.
27561         Approved by Eric Blake.
27562
27563 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27564             Bruno Haible  <bruno@clisp.org>
27565
27566         Make gnulib-tool work with native 'sed' on AIX.
27567         * gnulib-tool (sed_noop): New variable.
27568         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27569         func_add_or_update, func_create_testdir): Use it to initialize sed
27570         script variables.
27571         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27572
27573 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27574             Bruno Haible  <bruno@clisp.org>
27575
27576         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27577         also works after #include directives.
27578
27579 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27580
27581         getdate.y: reject an out-of-range timezone value
27582         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27583         the range [-24...+24].  When specified with only one or two digits,
27584         * tests/test-getdate.c: Tests for the fix.
27585         * doc/getdate.texi: Document this change.
27586
27587 2008-09-03  Bruno Haible  <bruno@clisp.org>
27588
27589         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27590
27591 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27592
27593         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27594         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27595         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27596         Blake <ebb9@byu.net>.
27597
27598         * tests/test-bitrotate.c: Add more test vectors.
27599
27600 2008-09-02  Eric Blake  <ebb9@byu.net>
27601
27602         vasnprintf-posix: handle large precision via %.*d
27603         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27604         when handling it ourselves.
27605         * tests/test-vasnprintf-posix.c (test_function): Add test.
27606         * tests/test-snprintf-posix.h (test_function): Likewise.
27607         * tests/test-sprintf-posix.h (test_function): Likewise.
27608         * tests/test-vasprintf-posix.c (test_function): Likewise.
27609         Reported by Alain Guibert.
27610
27611 2008-09-01  Eric Blake  <ebb9@byu.net>
27612
27613         c-stack: make configure-time check more robust
27614         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27615         successful sigaction call.
27616         Reported by Tom G. Christensen.
27617
27618 2008-09-01  Bruno Haible  <bruno@clisp.org>
27619
27620         New module 'findprog-lgpl'.
27621         * modules/findprog-lgpl: New file.
27622         * lib/findprog-lgpl.c: New file.
27623         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27624         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27625         to decide whether to use strdup or xstrdup, concatenated_filename or
27626         xconcatenated_filename.
27627
27628 2008-09-01  Bruno Haible  <bruno@clisp.org>
27629
27630         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27631         'xconcat-filename' (GPL).
27632         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27633         (License): Change to LGPLv2+.
27634         * modules/xconcat-filename: New file.
27635         * lib/concat-filename.h (concatenated_filename): Change specification.
27636         (xconcatenated_filename): New declaration.
27637         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27638         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27639         memory situations.
27640         * lib/xconcat-filename.c: New file.
27641         * NEWS: Mention the change.
27642         * lib/findprog.c: Include concat-filename.h, not filename.h.
27643         (find_in_path): Use xconcatenated_filename instead of
27644         concatenated_filename.
27645         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27646         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27647         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27648         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27649         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27650         instead of concatenated_filename.
27651         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27652         (execute_java_class): Use xconcatenated_filename instead of
27653         concatenated_filename.
27654         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27655         * modules/javacomp (Depends-on): Likewise.
27656         * modules/javaexec (Depends-on): Likewise.
27657
27658 2008-09-01  Bruno Haible  <bruno@clisp.org>
27659
27660         Split module 'filename' into 'filename' and 'concat-filename'.
27661         * modules/filename: Keep only lib/filename.h.
27662         (License): Change to LGPLv2+.
27663         * modules/concat-filename: New file, extracted from modules/filename.
27664         * lib/filename.h (concatenated_filename): Remove declaration.
27665         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27666         * lib/concat-filename.c: Include concat-filename.h.
27667         * NEWS: Mention the change.
27668
27669 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27670
27671         * lib/bitrotate.h (rotl8, rotr8): Add.
27672
27673         * modules/bitrotate (configure.ac): Need
27674         AC_REQUIRE([AC_C_INLINE]).
27675         (Description): Mention stdint.h.  Reported by Bruno Haible
27676         <bruno@clisp.org>.
27677
27678         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27679         Paolo Bonzini <bonzini@gnu.org>.
27680
27681 2008-08-31  Bruno Haible  <bruno@clisp.org>
27682
27683         Assume Solaris specific bi-arch conventions on Solaris systems.
27684         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27685         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27686         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27687         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27688         like acl_libdirstem.
27689         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27690         acl_libdirstem.
27691         * NEWS: Mention the change.
27692         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27693
27694 2008-08-31  Jim Meyering  <meyering@redhat.com>
27695
27696         * lib/strftime.h: Add comments describing the two added arguments.
27697
27698         remove duplicate #include directives
27699         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27700         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27701
27702 2008-08-31  Bruno Haible  <bruno@clisp.org>
27703
27704         New module 'sigpipe-die'.
27705         * modules/sigpipe-die: New file.
27706         * lib/sigpipe-die.h: New file.
27707         * lib/sigpipe-die.c: New file.
27708         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27709
27710 2008-08-31  Bruno Haible  <bruno@clisp.org>
27711
27712         Don't override previously installed signal handlers.
27713         * lib/fatal-signal.c (saved_sigactions): New variable.
27714         (uninstall_handlers): Reset the signal to the saved handler, not
27715         to SIG_DFL (except when ignored).
27716         (install_handlers): Save the previous handlers.
27717
27718 2008-08-30  Bruno Haible  <bruno@clisp.org>
27719
27720         * gnulib-tool (func_reset_sigpipe): New function.
27721         (func_get_automake_snippet, func_modules_transitive_closure,
27722         func_import): Invoke it before a join command that reads from stdin,
27723         to avoid "echo: write error: Broken pipe" error messages on stderr.
27724         Reported by Sam Steingold <sds@gnu.org>.
27725
27726 2008-08-30  Bruno Haible  <bruno@clisp.org>
27727
27728         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27729         Code copied from m4/open.m4.
27730         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27731         access and the filename ends in a slash. Code copied from lib/open.c.
27732         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27733         * tests/test-fopen.c (main): Check against bug with trailing slash.
27734
27735 2008-08-29  Bruno Haible  <bruno@clisp.org>
27736
27737         Avoid some "gcc -pedantic" warnings.
27738         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27739         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27740         * lib/dirent.in.h: Likewise.
27741         * lib/fcntl.in.h: Likewise.
27742         * lib/float.in.h: Likewise.
27743         * lib/iconv.in.h: Likewise.
27744         * lib/inttypes.in.h: Likewise.
27745         * lib/locale.in.h: Likewise.
27746         * lib/math.in.h: Likewise.
27747         * lib/netinet_in.in.h: Likewise.
27748         * lib/search.in.h: Likewise.
27749         * lib/signal.in.h: Likewise.
27750         * lib/stdarg.in.h: Likewise.
27751         * lib/stdint.in.h: Likewise.
27752         * lib/stdio.in.h: Likewise.
27753         * lib/stdlib.in.h: Likewise.
27754         * lib/string.in.h: Likewise.
27755         * lib/strings.in.h: Likewise.
27756         * lib/sys_select.in.h: Likewise.
27757         * lib/sys_socket.in.h: Likewise.
27758         * lib/sys_stat.in.h: Likewise.
27759         * lib/sys_time.in.h: Likewise.
27760         * lib/sysexits.in.h: Likewise.
27761         * lib/time.in.h: Likewise.
27762         * lib/unistd.in.h: Likewise.
27763         * lib/wchar.in.h: Likewise.
27764         * lib/wctype.in.h: Likewise.
27765         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27766         * modules/fchdir (Makefile.am): Likewise.
27767         * modules/fcntl (Makefile.am): Likewise.
27768         * modules/float (Makefile.am): Likewise.
27769         * modules/iconv_open (Makefile.am): Likewise.
27770         * modules/inttypes (Makefile.am): Likewise.
27771         * modules/locale (Makefile.am): Likewise.
27772         * modules/math (Makefile.am): Likewise.
27773         * modules/netinet_in (Makefile.am): Likewise.
27774         * modules/search (Makefile.am): Likewise.
27775         * modules/signal (Makefile.am): Likewise.
27776         * modules/stdarg (Makefile.am): Likewise.
27777         * modules/stdint (Makefile.am): Likewise.
27778         * modules/stdio (Makefile.am): Likewise.
27779         * modules/stdlib (Makefile.am): Likewise.
27780         * modules/string (Makefile.am): Likewise.
27781         * modules/strings (Makefile.am): Likewise.
27782         * modules/sys_select (Makefile.am): Likewise.
27783         * modules/sys_socket (Makefile.am): Likewise.
27784         * modules/sys_stat (Makefile.am): Likewise.
27785         * modules/sys_time (Makefile.am): Likewise.
27786         * modules/sysexits (Makefile.am): Likewise.
27787         * modules/time (Makefile.am): Likewise.
27788         * modules/unistd (Makefile.am): Likewise.
27789         * modules/wchar (Makefile.am): Likewise.
27790         * modules/wctype (Makefile.am): Likewise.
27791         Reported by Reuben Thomas <rrt@sc3d.org>.
27792
27793 2008-08-29  Bruno Haible  <bruno@clisp.org>
27794
27795         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27796         any more.
27797
27798 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27799
27800         * MODULES.html.sh (Misc): Add bitrotate.
27801
27802         * modules/bitrotate: New file.
27803
27804         * lib/bitrotate.h: New file.
27805
27806         * modules/bitrotate-tests: New file.
27807
27808         * tests/test-bitrotate.c: New file.
27809
27810         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27811         on the bitrotate module.
27812
27813         * lib/arctwo.c: Use new bitrotate module.
27814
27815 2008-08-29  Jim Meyering  <meyering@redhat.com>
27816
27817         bootstrap: merge changes from coreutils
27818         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27819         of copied files.  Remove a kludge, now that this is fixed.
27820         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27821         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27822         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27823
27824 2008-08-29  Bruno Haible  <bruno@clisp.org>
27825
27826         * MODULES.html.sh: Remove --cvs-urls option.
27827
27828 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27829
27830         maint.mk: adjust to file name change
27831         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27832
27833 2008-08-28  Jim Meyering  <meyering@redhat.com>
27834
27835         * modules/getndelim2 (License): Relicense to LGPLv2+.
27836         Approved by Richard Stallman for the version of 1995, and by
27837         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27838
27839 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27840
27841         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27842         dummy if one is not available.  Do not touch them if
27843         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27844         (getc_maybe_unlocked): New.
27845         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27846
27847 2008-08-26  Eric Blake  <ebb9@byu.net>
27848
27849         doc/INSTALL: resync from autoconf
27850         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27851         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27852         moving...
27853         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27854         * INSTALL: Regenerate.
27855         * INSTALL.ISO: New file.
27856         * INSTALL.UTF-8: Likewise.
27857
27858 2008-08-26  Jim Meyering  <meyering@redhat.com>
27859
27860         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27861         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27862         these definitions conditional, so that they may be overridden, too.
27863
27864 2008-08-26  Bruno Haible  <bruno@clisp.org>
27865
27866         Generate INSTALL file variants with prettier quotes.
27867         * doc/Makefile (INSTALL_PRELUDE): New macro.
27868         (INSTALL): Use it.
27869         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27870
27871 2008-08-26  Bruno Haible  <bruno@clisp.org>
27872
27873         Run makeinfo in an English locale.
27874         * doc/Makefile (MAKEINFO): New variable.
27875
27876 2008-08-26  Bruno Haible  <bruno@clisp.org>
27877
27878         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27879         Suggested by Eric Blake.
27880
27881 2008-08-25  Bruno Haible  <bruno@clisp.org>
27882
27883         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27884
27885 2008-08-25  Eric Blake  <ebb9@byu.net>
27886
27887         c-stack: test that stack overflow can be caught
27888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27889         that platform allows handling stack overflow; at least OS/2 EMX
27890         has sigaltstack, but crashes before transferring control to
27891         handler on stack overflow.
27892         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27893         check for HAVE_STACK_OVERFLOW_HANDLING.
27894         Reported by Elbert Pol.
27895
27896 2008-08-25  Bruno Haible  <bruno@clisp.org>
27897
27898         * doc/posix-functions/strftime.texi: Fix description of strftime
27899         module.
27900
27901 2008-08-24  Bruno Haible  <bruno@clisp.org>
27902
27903         * tests/uniwidth/test-uc_width2.c: New file.
27904         * tests/uniwidth/test-uc_width2.sh: New file.
27905         * modules/uniwidth/width-tests (Files): Add the new files.
27906         (TESTS): Add uniwidth/test-uc_width2.sh.
27907         (TESTS_ENVIRONMENT): New variable.
27908         (check_PROGRAMS): Add test-uc_width2.
27909         (test_uc_width2_SOURCES): New variable.
27910
27911         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27912         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27913         not 0x00AB.
27914         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27915
27916 2008-08-22  Eric Blake  <ebb9@byu.net>
27917
27918         test-lock, test-tls: mention why a test is skipped
27919         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27920         skipped.
27921         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27922
27923         count-one-bits: relax license
27924         * modules/count-one-bits (License): Relicense to LGPLv2+.
27925         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27926
27927 2008-08-22  Andreas Schwab  <schwab@suse.de>
27928
27929         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27930         Remove spurious space in assignment.
27931
27932 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27933
27934         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27935         Paul Eggert <eggert@CS.UCLA.EDU>.
27936
27937 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27938
27939         * modules/gettext: Add m4/threadlib.m4.
27940
27941 2008-08-19  Eric Blake  <ebb9@byu.net>
27942
27943         test-c-stack: fix compilation failure on FreeBSD 5.0
27944         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27945         headers before <sys/resource.h>.
27946         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27947         the bug.
27948         Reported by Nelson H. F. Beebe.
27949
27950         strverscmp: migrate from "strverscmp.h" to <string.h>
27951         * modules/string (Makefile.am): Add new hooks.
27952         * modules/strverscmp (Files): Remove strverscmp.h.
27953         (Depends-on): Add string.
27954         (configure.ac): Add indicator.
27955         (Include): Mention new header.
27956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27957         defaults.
27958         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27959         results.
27960         * lib/strverscmp.h: Delete.
27961         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27962         * tests/test-strverscmp.c (includes): Adjust client.
27963         * lib/check-version.c (includes): Likewise.
27964         * NEWS: Document the change.
27965
27966         strverscmp: add unit test
27967         * modules/strverscmp-tests: New file.
27968         * tests/test-strverscmp.c: Likewise.
27969
27970 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27971
27972         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27973         regarding Windows crypto stuff, from Mono.
27974
27975 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27976
27977         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27978         if present, for intel RND.  Return error on failures.
27979
27980 2008-08-18  Ben Pfaff  <blp@gnu.org>
27981
27982         gitlog-to-changelog: give better diagnostic for failed pipe-open
27983         * build-aux/gitlog-to-changelog: Improve error message: suggest
27984         that the version of Git may be too old.
27985
27986 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27987
27988         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27989         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27990
27991 2008-08-18  Bruno Haible  <bruno@clisp.org>
27992
27993         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27994         pthread_in_use().
27995
27996 2008-08-18  Bruno Haible  <bruno@clisp.org>
27997
27998         * lib/glthread/threadlib.c: Include <pthread.h>.
27999
28000 2008-08-18  Bruno Haible  <bruno@clisp.org>
28001
28002         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
28003         glthread_recursive_lock_* macros.
28004         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
28005         Fix syntax error.
28006
28007 2008-08-18  Bruno Haible  <bruno@clisp.org>
28008
28009         * lib/glthread/thread.c: Avoid forcing a context switch right after
28010         thread creation.
28011
28012 2008-08-17  Bruno Haible  <bruno@clisp.org>
28013
28014         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
28015         * lib/glthread/thread.h: Provide Win32 specific implementation.
28016         * modules/thread (Files): Add lib/glthread/thread.c.
28017         (Depends-on): Add lock.
28018         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
28019
28020 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28021
28022         New module 'yield'.
28023         * modules/yield: New file.
28024         * lib/glthread/yield.h: New file.
28025         * m4/yield.m4: New file.
28026         * MODULES.html.sh (Multithreading): Add yield.
28027
28028 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28029
28030         New module 'thread'.
28031         * modules/thread: New file.
28032         * lib/glthread/thread.h: New file.
28033         * m4/thread.m4: New file.
28034         * MODULES.html.sh (Multithreading): Add thread.
28035
28036 2008-08-17  Bruno Haible  <bruno@clisp.org>
28037
28038         * lib/glthread/lock.h: Include <stdlib.h> always.
28039         * lib/glthread/tls.h: Likewise.
28040         * lib/glthread/cond.h: Likewise.
28041
28042 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28043
28044         New module 'cond'.
28045         * modules/cond: New file.
28046         * lib/glthread/cond.h: New file.
28047         * lib/glthread/cond.c: New file.
28048         * m4/cond.m4: New file.
28049         * MODULES.html.sh (Multithreading): Add cond.
28050
28051 2008-08-16  Eric Blake  <ebb9@byu.net>
28052
28053         c-stack: fix regression on Irix 5.3 from 2008-06-21
28054         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
28055         sa_sigaction...
28056         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
28057         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
28058         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
28059         * modules/signal (Makefile.am): Use the value.
28060         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
28061         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
28062         * doc/posix-headers/signal.texi (signal.h): Document this
28063         portability issue.
28064         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
28065         Reported by Tom G. Christensen.
28066
28067 2008-08-17  Bruno Haible  <bruno@clisp.org>
28068
28069         New module 'threadlib'.
28070         * modules/threadlib: New file.
28071         * lib/glthread/threadlib.c: New file, extracted from
28072         lib/glthread/lock.c.
28073         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
28074         functions.
28075         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
28076         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
28077         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
28078         macros.
28079         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
28080         (gl_DISABLE_THREADS): Remove macro.
28081         * modules/lock (Files): Remove build-aux/config.rpath.
28082         (Depends-on): Remove havelib. Add threadlib.
28083         (configure.ac-early): Remove section.
28084         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
28085         * modules/tls (Depends-on): Remove lock. Add threadlib.
28086         (Link): New section, copied from threadlib.
28087         * MODULES.html.sh (Multithreading): Add threadlib.
28088
28089 2008-08-14  Bruno Haible  <bruno@clisp.org>
28090
28091         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
28092         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
28093         glthread_rwlock_unlock, glthread_rwlock_destroy,
28094         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
28095         glthread_recursive_lock_destroy): Define as macros always.
28096         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
28097         glthread_lock_lock.
28098         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
28099         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
28100         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
28101         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
28102         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
28103         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
28104         (glthread_recursive_lock_lock_func): Renamed from
28105         glthread_recursive_lock_lock.
28106         (glthread_recursive_lock_unlock_func): Renamed from
28107         glthread_recursive_lock_unlock.
28108         (glthread_recursive_lock_destroy_func): Renamed from
28109         glthread_recursive_lock_destroy.
28110
28111 2008-08-14  Bruno Haible  <bruno@clisp.org>
28112
28113         * lib/glthread/lock.h: Renamed from lib/lock.h.
28114         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
28115         * lib/glthread/tls.h: Renamed from lib/tls.h.
28116         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
28117         * lib/fstrcmp.c: Update includes.
28118         * lib/strsignal.c: Update includes.
28119         * modules/lock (Files, Makefile.am): Update.
28120         (Include): Change to "glthread/lock.h".
28121         * modules/tls (Files, Makefile.am): Update.
28122         (Include): Change to "glthread/tls.h".
28123         * tests/test-lock.c: Update includes.
28124         * tests/test-tls.c: Update includes.
28125         * NEWS: Mention the renamed header files.
28126
28127 2008-08-11  Jim Meyering  <meyering@redhat.com>
28128
28129         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
28130
28131 2008-08-11  Eric Blake  <ebb9@byu.net>
28132
28133         test-c-stack: avoid C99-ism
28134         * tests/test-c-stack.c (main): Fix whitespace, move declaration
28135         before statement.
28136         Reported by Alain Guibert.
28137
28138 2008-08-10  Jim Meyering  <meyering@redhat.com>
28139
28140         ensure that return value of uinttostr et al are not ignored
28141         * lib/inttostr.h (__GNUC_PREREQ): Define.
28142         (__attribute_warn_unused_result__): Define.
28143         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
28144
28145 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
28146
28147         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
28148         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
28149
28150 2008-08-07  Jim Meyering  <meyering@redhat.com>
28151
28152         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
28153
28154         * modules/mkstemp (License): Relicense under LGPLv2+.
28155         * modules/tempname (License): Likewise.
28156
28157 2008-08-06  Bruno Haible  <bruno@clisp.org>
28158
28159         * lib/poll.c (poll): Further micro-optimization.
28160
28161 2008-08-06  Jim Meyering  <meyering@redhat.com>
28162
28163         inet_pton.c: use locale-independent tolower
28164         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28165         (inet_pton6): Use c_tolower rather than tolower.
28166         * modules/inet_pton (Depends-on): Add c-ctype.
28167
28168 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28169
28170         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28171         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28172
28173 2008-08-06  Jim Meyering  <meyering@redhat.com>
28174
28175         * modules/inet_pton (License): Relicense under LGPLv2+.
28176
28177 2008-08-03  Bruno Haible  <bruno@clisp.org>
28178
28179         Additional non-aborting API for lock and tls.
28180         * lib/lock.h: Include <errno.h>.
28181         (glthread_lock_init): New macro/function.
28182         (gl_lock_init): Define as wrapper around glthread_lock_init.
28183         (glthread_lock_lock): New macro/function.
28184         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28185         (glthread_lock_unlock): New macro/function.
28186         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28187         (glthread_lock_destroy): New macro/function.
28188         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28189         (glthread_rwlock_init): New macro/function.
28190         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28191         (glthread_rwlock_rdlock): New macro/function.
28192         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28193         (glthread_rwlock_wrlock): New macro/function.
28194         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28195         (glthread_rwlock_unlock): New macro/function.
28196         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28197         (glthread_rwlock_destroy): New macro/function.
28198         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28199         (glthread_recursive_lock_init): New macro/function.
28200         (gl_recursive_lock_init): Define as wrapper around
28201         glthread_recursive_lock_init.
28202         (glthread_recursive_lock_lock): New macro/function.
28203         (gl_recursive_lock_lock): Define as wrapper around
28204         glthread_recursive_lock_lock.
28205         (glthread_recursive_lock_unlock): New macro/function.
28206         (gl_recursive_lock_unlock): Define as wrapper around
28207         glthread_recursive_lock_unlock.
28208         (glthread_recursive_lock_destroy): New macro/function.
28209         (gl_recursive_lock_destroy): Define as wrapper around
28210         glthread_recursive_lock_destroy.
28211         (glthread_once): New macro/function.
28212         (gl_once): Define as wrapper around glthread_once.
28213         Update function declarations.
28214         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28215         glthread_rwlock_init. Return error code.
28216         (glthread_rwlock_rdlock_multithreaded): Renamed from
28217         glthread_rwlock_rdlock. Return error code.
28218         (glthread_rwlock_wrlock_multithreaded): Renamed from
28219         glthread_rwlock_wrlock. Return error code.
28220         (glthread_rwlock_unlock_multithreaded): Renamed from
28221         glthread_rwlock_unlock. Return error code.
28222         (glthread_rwlock_destroy_multithreaded): Renamed from
28223         glthread_rwlock_destroy. Return error code.
28224         (glthread_recursive_lock_init_multithreaded): Renamed from
28225         glthread_recursive_lock_init. Return error code.
28226         (glthread_recursive_lock_lock_multithreaded): Renamed from
28227         glthread_recursive_lock_lock. Return error code.
28228         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28229         glthread_recursive_lock_unlock. Return error code.
28230         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28231         glthread_recursive_lock_destroy. Return error code.
28232         (glthread_once_call): Make static.
28233         (glthread_once_multithreaded): Renamed from glthread_once.
28234         * lib/tls.h: Include <errno.h>.
28235         (glthread_tls_key_init): New macro/function.
28236         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28237         (glthread_tls_set): New macro/function.
28238         (gl_tls_set): Define as wrapper around glthread_tls_set.
28239         (glthread_tls_key_destroy): New macro/function.
28240         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28241         Update function declarations.
28242         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28243         glthread_tls_get.
28244         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28245
28246 2008-08-04  Eric Blake  <ebb9@byu.net>
28247
28248         gnumakefile: use space, not TAB, outside of targets
28249         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28250
28251 2008-08-02  Jim Meyering  <meyering@redhat.com>
28252
28253         getdate.y: avoid locale-dependent date parsing failure
28254         In Turkish locales, getdate would fail to recognize keywords
28255         containing a lowercase "i".  The solution is not to rely on
28256         locale-sensitive case-conversion.
28257         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28258         (lookup_word): Use c_toupper in place of toupper.
28259         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28260         Reported by Vefa Bicakci <bicave@superonline.com> in
28261         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28262         * modules/getdate (Depends-on): Add c-ctype.
28263
28264 2008-08-02  Bruno Haible  <bruno@clisp.org>
28265
28266         * gnulib-tool (func_import): When updating or creating a .gitignore
28267         file, prepend each added line with a slash, and ignore leading slashes
28268         from the existing lines.
28269         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28270
28271 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28272
28273         Portability fix for GNU make 3.79.1.
28274         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28275         versions do not understand.
28276
28277 2008-08-01  Bruno Haible  <bruno@clisp.org>
28278
28279         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28280         * tests/test-isnanf.h (zero): New variable.
28281         (main): Avoid literal -0.0f.
28282         * tests/test-isnand.h (zero): New variable.
28283         (main): Avoid literal -0.0.
28284         * tests/test-isnanl.h (zero): New variable.
28285         (main): Avoid literal -0.0L.
28286         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28287         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28288         -0.0, -0.0L.
28289         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28290         (test_signbitd): Avoid literal -0.0.
28291         (test_signbitl): Avoid literal -0.0L.
28292         * tests/test-ceilf1.c (zero): New variable.
28293         (main): Avoid literal -0.0f.
28294         * tests/test-ceill.c (zero): New variable.
28295         (main): Avoid literal -0.0L.
28296         * tests/test-floorf1.c (zero): New variable.
28297         (main): Avoid literal -0.0f.
28298         * tests/test-floorl.c (zero): New variable.
28299         (main): Avoid literal -0.0L.
28300         * tests/test-roundf1.c (zero): New variable.
28301         (main): Avoid literal -0.0f.
28302         * tests/test-round1.c (zero): New variable.
28303         (main): Avoid literal -0.0.
28304         * tests/test-roundl.c (zero): New variable.
28305         (main): Avoid literal -0.0L.
28306         * tests/test-truncf1.c (zero): New variable.
28307         (main): Avoid literal -0.0f.
28308         * tests/test-trunc1.c (zero): New variable.
28309         (main): Avoid literal -0.0.
28310         * tests/test-truncl.c (zero): New variable.
28311         (main): Avoid literal -0.0L.
28312         * tests/test-frexp.c (zero): New variable.
28313         (main): Avoid literal -0.0.
28314         * tests/test-frexpl.c (zero): New variable.
28315         (main): Avoid literal -0.0L.
28316         * tests/test-ldexpl.c (zero): New variable.
28317         (main): Avoid literal -0.0L.
28318         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28319         (zerod, zerol): New variables.
28320         (test_function): Avoid literals -0.0, -0.0L.
28321         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28322         (zerod, zerol): New variables.
28323         (test_function): Avoid literals -0.0, -0.0L.
28324         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28325         (zerod, zerol): New variables.
28326         (test_function): Avoid literals -0.0, -0.0L.
28327         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28328         (zerod, zerol): New variables.
28329         (test_function): Avoid literals -0.0, -0.0L.
28330         * tests/test-strtod.c (zero): New variable.
28331         (main): Avoid literal -0.0.
28332         Reported by Jonathan C. Patschke <jp@centtech.com>.
28333
28334 2008-07-31  Jim Meyering  <meyering@redhat.com>
28335
28336         sha256.h: correct definition of SHA224_DIGEST_SIZE
28337         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28338         Reported by Paulie Pena IV <paulie4@gmail.com>.
28339         Define as 224 / 8, rather than as a literal.
28340         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28341         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28342         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28343
28344 2008-07-31  Bruno Haible  <bruno@clisp.org>
28345
28346         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28347         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28348         Reported by Jonathan Patschke <jp@centtech.com>.
28349
28350 2008-07-31  Bruno Haible  <bruno@clisp.org>
28351
28352         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28353         Reported by Paolo Bonzini <bonzini@gnu.org>.
28354
28355 2008-07-30  Eric Blake  <ebb9@byu.net>
28356
28357         test-strtod: allow compilation without -lm
28358         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28359         Reported by Dennis Clarke <blastwave@gmail.com>.
28360
28361 2008-07-28  Jim Meyering  <meyering@redhat.com>
28362
28363         bootstrap: work also when there are no .po files in po/
28364         * build-aux/bootstrap (update_po_files): Complete the change
28365         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28366
28367 2008-07-27  Jim Meyering  <meyering@redhat.com>
28368
28369         * users.txt: Add zile.
28370
28371 2008-07-26  Ben Pfaff  <blp@gnu.org>
28372
28373         Add missing dependencies on new m4/exponent[fdl].m4 files.
28374         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28375         * modules/isnand-nolibm: Add m4/exponentd.m4.
28376         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28377         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28378         m4/isnan[fdl].m4, because the macros actually used moved.
28379         Reported by Jim Meyering.
28380
28381 2008-07-14  Ben Pfaff  <blp@gnu.org>
28382
28383         Add isinf module.
28384         * lib/isinf.c: New file.
28385         * lib/math.in.h: Define isinf macro if we have decided to replace
28386         it.
28387         * m4/isinf.m4: New file.
28388         * m4/math_h.m4: Initialize and substitute variables for isinf
28389         module.
28390         * modules/isinf: New file.
28391         * modules/isinf-tests: New file.
28392         * modules/math: Add substitutions for new module.
28393         * tests/test-isinf.c: New file.
28394         * doc/posix-functions/isinf.texi: Mention new module.
28395         * MODULES.html.sh: Mention new module.
28396
28397 2008-07-14  Ben Pfaff  <blp@gnu.org>
28398
28399         Factor out some macros for use by additional modules.
28400         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28401         exponentf.m4.
28402         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28403         exponentd.m4.
28404         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28405         file exponentl.m4.
28406         * m4/exponentf.m4: New file.
28407         * m4/exponentd.m4: New file.
28408         * m4/exponentl.m4: New file.
28409         * modules/isnanf: Use new file m4/exponentf.m4.
28410         * modules/isnand: Use new file m4/exponentd.m4.
28411         * modules/isnanl: Use new file m4/exponentl.m4.
28412
28413 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28414
28415         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28416         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28417         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28418         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28419
28420         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28421         readlink on platforms without PATH_MAX.
28422
28423 2008-07-21  Eric Blake  <ebb9@byu.net>
28424
28425         Warn, not fail, on stale version.
28426         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28427
28428         Don't allow installation with stale devel version number.
28429         * top/GNUmakefile (_is-install-target): New macro.
28430         (_curr-ver): Forbid installation with stale version number.
28431
28432 2008-07-20  Bruno Haible  <bruno@clisp.org>
28433
28434         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28435         TESTS_ENVIRONMENT.
28436         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28437
28438 2008-07-20  Bruno Haible  <bruno@clisp.org>
28439
28440         * lib/c-stack.h (c_stack_action): Add documentation.
28441         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28442
28443 2008-07-20  Bruno Haible  <bruno@clisp.org>
28444
28445         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28446         * modules/readlink (License): Likewise.
28447
28448 2008-07-17  Eric Blake  <ebb9@byu.net>
28449
28450         * modules/c-stack (Link): Fix typo.
28451
28452         Make c-stack use libsigsegv, when available.
28453         * modules/c-stack (Depends-on): Add libsigsegv.
28454         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28455         needed.
28456         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28457         (segv_handler, overflow_handler, c_stack_action)
28458         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28459         implementation when libsigsegv is available, but only when using
28460         the library is necessary.
28461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28462         comment, explaining why XSI check fails on Linux.
28463         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28464         * tests/test-c-stack2.sh: Tweak skip message.
28465         * NEWS: Document new link-time requirements.
28466
28467 2008-07-16  Eric Blake  <ebb9@byu.net>
28468
28469         c-stack: Expose false positives when not using libsigsegv.
28470         * modules/c-stack-tests (Files): Expand test.
28471         * tests/test-c-stack.c (main): Add means to conditionally trigger
28472         non-overflow SIGSEGV.
28473         * tests/test-c-stack2.sh: New file.
28474
28475 2008-07-14  Bruno Haible  <bruno@clisp.org>
28476
28477         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28478         Reported by Eric Blake.
28479
28480 2008-07-14  Sam Steingold  <sds@gnu.org>
28481             Bruno Haible  <bruno@clisp.org>
28482
28483         New module libsigsegv.
28484         * modules/libsigsegv: New file.
28485         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28486         modifications.
28487         * MODULES.html.sh (Signal handling): New section.
28488
28489 2008-07-14  Bruno Haible  <bruno@clisp.org>
28490
28491         * modules/unictype/ctype-* (Description): Add the word "function".
28492         Improves the resulting doc in MODULES.html.
28493
28494 2008-07-12  Ben Pfaff  <blp@gnu.org>
28495
28496         Add longlong module.
28497         * modules/longlong: New file.
28498
28499 2008-07-12  Bruno Haible  <bruno@clisp.org>
28500
28501         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28502         to empty.
28503
28504 2008-07-10  Ben Pfaff  <blp@gnu.org>
28505
28506         Add isnan module.
28507         * doc/posix-functions/isnan.texi: Mention new module.
28508         * lib/math.in.h: Define isnan macro if we have decided to replace
28509         it.
28510         * m4/isnan.m4: New file.
28511         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28512         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28513         also.
28514         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28515         redundancy.
28516         * m4/math_h.m4: Initialize and substitute variables for isnan
28517         module.
28518         * modules/isnan: New file.
28519         * modules/isnan-tests: New file.
28520         * modules/math: Add substitutions for new module.
28521         * tests/test-isnan.c: New file.
28522         * MODULES.html.sh: Mention new module.
28523
28524 2008-07-10  Ben Pfaff  <blp@gnu.org>
28525
28526         Add isnanf module.
28527         * lib/isnanf.m4: New file.
28528         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28529         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28530         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28531         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28532         * modules/isnanf: New file.
28533         * modules/isnanf-tests: New file.
28534         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28535         files.
28536         * tests/test-isnanf-nolibm.c: factored most of its contents into
28537         new file tests/test-isnanf.h.
28538         * tests/test-isnanf.h: New file.
28539         * tests/test-isnanf.c: New file.
28540         * MODULES.html.sh: Mention new module.
28541         * doc/glibc-functions/isnanf.texi: Mention new module.
28542
28543 2008-07-10  Ben Pfaff  <blp@gnu.org>
28544
28545         Add isnand module.
28546         * lib/isnand.h: New file.
28547         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28548         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28549         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28550         functionality also.
28551         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28552         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28553         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28554         * modules/isnand: New file.
28555         * modules/isnand-tests: New file.
28556         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28557         files.
28558         * tests/test-isnand-nolibm.c: factored most of its contents into
28559         new file tests/test-isnand.h.
28560         * tests/test-isnand.h: New file.
28561         * tests/test-isnand.c: New file.
28562         * MODULES.html.sh: Mention new module.
28563
28564 2008-07-10  Ben Pfaff  <blp@gnu.org>
28565
28566         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28567         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28568         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28569         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28570         * modules/isnanf-nolibm: Update references to renamed files.
28571         * modules/isnand-nolibm: Likewise.
28572         * modules/isnanf-nolibm-tests: Likewise.
28573         * modules/isnand-nolibm-tests: Likewise.
28574         * lib/frexp.c: Likewise.
28575         * lib/isfinite.c: Likewise.
28576         * lib/signbitd.c: Likewise.
28577         * lib/signbitf.c: Likewise.
28578         * lib/vasnprintf.c: Likewise.
28579         * tests/test-ceilf1.c: Likewise.
28580         * tests/test-ceilf2.c: Likewise.
28581         * tests/test-floorf1.c: Likewise.
28582         * tests/test-floorf2.c: Likewise.
28583         * tests/test-frexp.c: Likewise.
28584         * tests/test-round1.c: Likewise.
28585         * tests/test-round2.c: Likewise.
28586         * tests/test-roundf1.c: Likewise.
28587         * tests/test-strtod.c: Likewise.
28588         * tests/test-trunc1.c: Likewise.
28589         * tests/test-trunc2.c: Likewise.
28590         * tests/test-truncf1.c: Likewise.
28591         * tests/test-truncf2.c: Likewise.
28592         * NEWS: Mention the renamed header files.
28593
28594 2008-07-11  Jim Meyering  <meyering@redhat.com>
28595
28596         vc-list-files: make the last-resort awk code more portable
28597         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28598         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28599         does not support it.
28600
28601 2008-07-10  Eric Blake  <ebb9@byu.net>
28602
28603         Work with tar's bootstrap.
28604         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28605         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28606         an m4 comment.
28607
28608 2008-07-09  Jim Meyering  <meyering@redhat.com>
28609
28610         posix-shell.m4: fix typo that made this test malfunction
28611         * m4/posix-shell.m4: Remove capitalization in variable name.
28612
28613 2008-07-08  Bruno Haible  <bruno@clisp.org>
28614
28615         * m4/onceonly.m4: Update comments.
28616         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28617
28618 2008-07-04  Jim Meyering  <meyering@redhat.com>
28619
28620         * users.txt: Add vc-dwim.
28621         (bison, coreutils): Use the gitweb URL.
28622
28623 2008-07-03  Jim Meyering  <meyering@redhat.com>
28624
28625         * users.txt: Add libffcall.  From Sam Steingold.
28626
28627 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28628
28629         getdate.y: do not ignore TZ with relative day, month or year offset
28630         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28631         relative-date-handling, since otherwise, the latter would clobber the
28632         sole output (an updated Start value) of the tz-handling block.
28633         * tests/test-getdate.c: Tests for the fix
28634
28635 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28636
28637         Recognize 'foo_LIBRARIES += libgnu.a'.
28638         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28639         makefile snippet has already specified an installation location,
28640         also using '+='.
28641
28642 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28643
28644         getdate.y: factor out common actions
28645         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28646         Use them in place of open-coded actions.
28647
28648 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28649
28650         Add self-test for getdate module.
28651         * modules/getdate-tests: New file.
28652         * tests/test-getdate.c: New file.
28653
28654 2008-06-29  Bruno Haible  <bruno@clisp.org>
28655
28656         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28657         .gitignore.
28658         Reported by Sylvain Beucler <beuc@beuc.net>.
28659
28660 2008-06-29  Bruno Haible  <bruno@clisp.org>
28661
28662         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28663         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28664
28665 2008-06-29  Bruno Haible  <bruno@clisp.org>
28666
28667         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28668         EXTRA_DIST.
28669         Reported by Sylvain Beucler <beuc@beuc.net>.
28670
28671 2008-06-26  Jim Meyering  <meyering@redhat.com>
28672
28673         make several modules depend on the "open" module
28674         This provides slightly increased consistency when opening-for-write
28675         the name of a non-directory spelled with a trailing slash.
28676         * modules/chdir-safer: Likewise.
28677         * modules/chown: Likewise.
28678         * modules/clean-temp: Likewise.
28679         * modules/copy-file: Likewise.
28680         * modules/fchdir: Likewise.
28681         * modules/fcntl-safer: Likewise.
28682         * modules/pipe: Likewise.
28683         * modules/utime: Likewise.
28684         Prompted by Eric Blake and Bruno Haible.
28685
28686 2008-06-24  Andreas Schwab  <schwab@suse.de>
28687
28688         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28689         literals can be used as initializers for global variables.
28690
28691 2008-06-23  Eric Blake  <ebb9@byu.net>
28692
28693         Make gnulib-cache.m4 easier to diff.
28694         * gnulib-tool (func_import): Allow newlines when reading cached
28695         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28696
28697 2008-06-23  Bruno Haible  <bruno@clisp.org>
28698
28699         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28700         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28701         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28702         m4/signalblocking.m4.
28703         (gl_PREREQ_SIGACTION): Don't invoke it.
28704         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28705         gl_PREREQ_SIG_HANDLER_H.
28706         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28707         Don't check for sigaction here.
28708
28709 2008-06-23  Bruno Haible  <bruno@clisp.org>
28710
28711         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28712         (install_handlers): Don't set the SA_RESETHAND flag.
28713
28714 2008-06-23  Bruno Haible  <bruno@clisp.org>
28715
28716         * m4/sigaction.m4: Comment fixes.
28717         * lib/signal.in.h: Likewise.
28718
28719 2008-06-23  Eric Blake  <ebb9@byu.net>
28720
28721         Fix typo.
28722         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28723
28724         Avoid SA_ namespace.
28725         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28726         Reported by Ralf Wildenhues.
28727
28728         Avoid test failure due to SA_RESTORER.
28729         * tests/test-sigaction.c (SA_MASK): New macro.
28730         (main): Avoid failing due to extension flags being set.
28731         Reported by Jim Meyering.
28732
28733         Revert use of sig-handler.h in sigprocmask.c.
28734         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28735         it requires the existence of struct sigaction.
28736         * lib/sigprocmask.c (handler_t): Restore typedef.
28737         (rpl_signal, old_handlers): Use local type.
28738
28739 2008-06-22  Bruno Haible  <bruno@clisp.org>
28740
28741         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28742         conditionally.
28743         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28744
28745 2008-06-22  Bruno Haible  <bruno@clisp.org>
28746
28747         * doc/posix-functions/siginterrupt.texi: Move note.
28748
28749         * lib/signal.in.h (SA_RESTART): New macro.
28750         * lib/sigaction.c: Update comment.
28751
28752         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28753
28754         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28755         (gl_PREREQ_SIGPROCMASK): Invoke it.
28756         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28757
28758         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28759
28760         * lib/sigprocmask.c: Update a comment.
28761
28762 2008-06-21  Eric Blake  <ebb9@byu.net>
28763
28764         Use sigaction module rather than signal().
28765         * modules/c-stack (Depends-on): Add sigaction.
28766         * modules/fatal-signal (Depends-on): Likewise.
28767         * modules/nanosleep (Depends-on): Likewise.
28768         * modules/sigprocmask (Files): Add sig-handler.h.
28769         * modules/sigaction (Files): Likewise.
28770         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28771         Eggert.
28772         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28773         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28774         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28775         (init_fatal_signals): Likewise.
28776         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28777         (siginterrupt): Delete fallback.
28778         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28779         instead.
28780         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28781         siginterrupt.
28782
28783         New module sigaction, for mingw.
28784         * modules/sigaction: New module...
28785         * modules/sigaction-tests: ...and its test.
28786         * m4/sigaction.m4: New file.
28787         * lib/sigaction.c: Likewise.
28788         * tests/test-sigaction.c: Likewise.
28789         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28790         * modules/signal (Makefile.am): Likewise.
28791         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28792         needed.
28793         * doc/posix-headers/signal.texi (signal.h): Mention provided
28794         types.
28795         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28796         that sigaction is preferable.
28797         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28798         module.
28799         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28800         sigaction.
28801
28802         Improve robustness of sigprocmask by overriding signal.
28803         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28804         is in use.
28805         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28806         (SIGKILL, SIGSTOP): Provide fallbacks.
28807         (rpl_signal): Implement.
28808         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28809         signal can be called inside handlers.
28810
28811         Fix nanosleep module on mingw.
28812         * modules/nanosleep (Depends-on): Add sys_select.
28813         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28814
28815         Fix licensing of sigprocmask.
28816         * modules/raise (License): Relicense as LGPL.
28817
28818 2008-06-21  Bruno Haible  <bruno@clisp.org>
28819
28820         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28821         result if it contains question marks.
28822         Reported by Michael Geng <linux@michaelgeng.de>.
28823
28824 2008-06-19  Bruno Haible  <bruno@clisp.org>
28825
28826         Fix CVS-ism.
28827         * doc/gnulib.texi: Include updated-stamp.texi.
28828         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28829         (updated-stamp.texi): New rule.
28830         (gnulib.info): Depend on it.
28831         * doc/.gitignore: Add updated-stamp.texi.
28832         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28833
28834 2008-06-19  Bruno Haible  <bruno@clisp.org>
28835
28836         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28837         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28838
28839 2008-06-19  Eric Blake  <ebb9@byu.net>
28840
28841         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28842         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28843         Reported by Stepan Kasal.
28844
28845 2008-06-18  Bruno Haible  <bruno@clisp.org>
28846
28847         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28848         Reported by Eric Blake.
28849
28850 2008-06-18  Eric Blake  <ebb9@byu.net>
28851
28852         Work around cygwin 1.5.25 strsignal bug.
28853         * tests/test-strsignal.c: Allow for const char *.
28854         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28855
28856 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28857
28858         * users.txt: Update URL to article and add author/date
28859         information.
28860
28861 2008-06-17  Bruno Haible  <bruno@clisp.org>
28862
28863         New macro gl_DISABLE_THREADS.
28864         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28865         if the user did not pass --enable-threads or --disable-threads option.
28866         (gl_DISABLE_THREADS): New macro.
28867         Reported by Eric Blake <ebb9@byu.net>.
28868
28869 2008-06-17  Bruno Haible  <bruno@clisp.org>
28870
28871         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28872         when the macro ignores it.
28873         Based on a patch by Eric Blake <ebb9@byu.net>.
28874
28875 2008-06-17  Bruno Haible  <bruno@clisp.org>
28876
28877         * modules/tls (License): Change to LGPLv2+.
28878         Reported by Eric Blake.
28879
28880 2008-06-17  Eric Blake  <ebb9@byu.net>
28881
28882         Simplify c-stack prerequisites.
28883         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28885         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28886         check.
28887         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28888         <sys/resource.h>.
28889
28890         Move c-stack test into testsuite.
28891         * modules/c-stack-tests: New file.
28892         * lib/c-stack.c [DEBUG]: Move test program...
28893         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28894         fail test if sigaltstack is lacking.
28895         * tests/test-c-stack.sh: New driver file.
28896
28897 2008-06-16  Eric Blake  <ebb9@byu.net>
28898
28899         Use raise module consistently.
28900         * modules/fatal-signal (Depends-on): Add raise.
28901         * modules/sigprocmask (Depends-on): Likewise.
28902         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28903         * lib/sigprocmask.c (sigprocmask): Likewise.
28904         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28905         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28906
28907         Fix compliance bug in sigpending.
28908         * lib/sigprocmask.c (sigpending): Return pending array via
28909         parameter, not return value.
28910
28911 2008-06-14  Eric Blake  <ebb9@byu.net>
28912
28913         Improve obstack-printf test code.
28914         * tests/test-obstack-printf.c (test_function): Fix comment, and
28915         simplify usage of obstack_* in macros.  Add a test for coverage.
28916         Reported by Bruno Haible.
28917
28918 2008-06-14  Bruno Haible  <bruno@clisp.org>
28919
28920         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28921         array size as a constant, not as a const variable.
28922         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28923         AC_USE_SYSTEM_EXTENSIONS.
28924         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28925         Test whether the obstack_printf function actually exists.
28926         * modules/obstack-printf (Depends-on): Add extensions.
28927         (Include): Remove obstack.h.
28928         * modules/obstack-printf-posix (Depends-on): Add extensions.
28929         (Include): Remove obstack.h.
28930
28931 2008-06-13  Eric Blake  <ebb9@byu.net>
28932
28933         Add obstack-printf and obstack-printf-posix modules.
28934         * modules/obstack-printf: New file.
28935         * modules/obstack-printf-posix: Likewise.
28936         * MODULES.html.sh (Misc): Mention them.
28937         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28938         Likewise.
28939         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28940         Likewise.
28941         * modules/stdio (Makefile.am): Accomodate new modules.
28942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28943         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28944         Declare.
28945         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28946         functions.
28947         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28948         (gl_REPLACE_OBSTACK_PRINTF): New macros
28949         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28950         * tests/test-obstack-printf.c: New file.
28951         * modules/obstack-printf-tests: Likewise.
28952         * modules/obstack-printf-posix-tests: Likewise.
28953
28954 2008-06-11  Bruno Haible  <bruno@clisp.org>
28955
28956         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28957         * lib/open.c: Include errno.h.
28958         (open): Fail when attempting to write to a file that has a trailing
28959         slash.
28960         * tests/test-open.c (main): Test against trailing slash bug.
28961         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28962
28963 2008-06-10  Bruno Haible  <bruno@clisp.org>
28964
28965         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28966         for $? to work inside the trap command, with various /bin/sh-s.
28967         * tests/test-vc-list-files-cvs.sh: Likewise.
28968
28969 2008-06-10  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/acl-internal.h: Don't include gettext.h here.
28972         * lib/set-mode-acl.c: Include gettext.h here.
28973         * lib/copy-acl.c: Likewise.
28974
28975 2008-06-10  Bruno Haible  <bruno@clisp.org>
28976
28977         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28978         * lib/wait-process.c (wait_subprocess): Likewise.
28979         * lib/execute.h (execute): Add termsigp argument.
28980         * lib/execute.c (execute): Likewise.
28981         * lib/csharpcomp.c (compile_csharp_using_pnet,
28982         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28983         * lib/csharpexec.c (execute_csharp_using_pnet,
28984         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28985         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28986         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28987         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28988         is_jikes_present): Update.
28989         * lib/javaexec.c (execute_java_class): Update.
28990         * lib/javaversion.c (execute_and_read_line): Update.
28991         * NEWS: Document the changes.
28992         Reported by Eric Blake.
28993
28994 2008-06-10  Eric Blake  <ebb9@byu.net>
28995
28996         Add missing include.
28997         * tests/test-strstr.c (includes): Add <signal.h>.
28998         * tests/test-strcasestr.c (includes): Likewise.
28999         * tests/test-memmem.c (includes): Likewise.
29000
29001 2008-06-10  Bruno Haible  <bruno@clisp.org>
29002
29003         * lib/wait-process.c (wait_subprocess): Add an assertion.
29004
29005 2008-06-10  Bruno Haible  <bruno@clisp.org>
29006
29007         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
29008
29009 2008-06-10  Bruno Haible  <bruno@clisp.org>
29010
29011         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
29012         using alarm().
29013         * tests/test-strcasestr.c (main): Likewise.
29014         * tests/test-strstr.c (main): Likewise.
29015
29016 2008-06-09  Bruno Haible  <bruno@clisp.org>
29017
29018         Work around the Solaris 10 ACE ACLs ABI change.
29019         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
29020         declare if ACL_NO_TRIVIAL is present.
29021         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
29022         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
29023         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
29024         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
29025         define if ACL_NO_TRIVIAL is present.
29026         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
29027         and use the current ABI.
29028         (file_has_acl): Use same #if condition as elsewhere.
29029         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
29030         in use, and use the current ABI.
29031         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
29032         Reported by Jim Meyering.
29033
29034 2008-06-09  Eric Blake  <ebb9@byu.net>
29035
29036         Work around environments that (stupidly) ignore SIGALRM.
29037         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
29038         before using alarm().
29039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29041         Reported by Ian Beckwith <ianb@erislabs.net>.
29042
29043         Produce autobuild blurb earlier in log.
29044         * modules/autobuild (configure.ac-early): Move AB_INIT here.
29045
29046 2008-06-09  Jim Meyering  <meyering@redhat.com>
29047         and Ondřej Vašík  <ovasik@redhat.com>
29048
29049         utimens.c: correct kernel bug work-around
29050         Ondřej Vašík found that the invalid return value of 280 indicates
29051         failure, not success, and the kernel bug we're trying to work
29052         around affects not just the utimensat call, but also the fallback
29053         futimens call.
29054         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
29055         not success.
29056         [HAVE_FUTIMENS]: Use the same work-around, here.
29057
29058 2008-06-09  Jim Meyering  <meyering@redhat.com>
29059
29060         add more guards around definition of ACE_-related code
29061         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
29062         ALLOW and ACE_OWNER are also defined.
29063
29064 2008-06-08  Bruno Haible  <bruno@clisp.org>
29065
29066         * lib/acl-internal.h: Add me as co-author.
29067         * lib/file-has-acl.c: Likewise.
29068         * lib/set-mode-acl.c: Likewise.
29069         * lib/copy-acl.c: Likewise.
29070
29071 2008-06-08  Bruno Haible  <bruno@clisp.org>
29072
29073         Add support for AIX ACLs.
29074         * lib/acl-internal.h (acl_nontrivial): New declaration.
29075         * lib/file-has-acl.c (acl_nontrivial): New function.
29076         (file_has_acl): Add implementation using AIX 4 ACL API.
29077         * lib/set-mode-acl.c (qset_acl): Likewise.
29078         * lib/copy-acl.c (qcopy_acl): Likewise.
29079
29080 2008-06-08  Bruno Haible  <bruno@clisp.org>
29081
29082         Add support for HP-UX ACLs.
29083         * lib/acl-internal.h (acl_nontrivial): New declaration.
29084         * lib/file-has-acl.c (acl_nontrivial): New function.
29085         (file_has_acl): Add implementation using HP-UX 11 ACL API.
29086         * lib/set-mode-acl.c (qset_acl): Likewise.
29087         * lib/copy-acl.c (qcopy_acl): Likewise.
29088
29089 2008-06-08  Bruno Haible  <bruno@clisp.org>
29090
29091         Add support for Cygwin ACLs.
29092         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
29093         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
29094         the chmod_or_fchmod call.
29095         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
29096
29097 2008-06-08  Bruno Haible  <bruno@clisp.org>
29098
29099         Fix bug with setuid modes in Solaris 10+ code.
29100         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
29101         succeeded, when the mode contains some special bits.
29102
29103 2008-06-08  Bruno Haible  <bruno@clisp.org>
29104
29105         Add support for Solaris 7..10 ACLs.
29106         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
29107         declarations.
29108         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
29109         functions.
29110         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
29111         * lib/set-mode-acl.c (qset_acl): Likewise.
29112         * lib/copy-acl.c (qcopy_acl): Likewise.
29113
29114 2008-06-08  Bruno Haible  <bruno@clisp.org>
29115
29116         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
29117         declaration.
29118         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
29119         (acl_access_nontrivial): Remove MacOS X case.
29120         (file_has_acl): Use acl_extended_nontrivial.
29121         * lib/copy-acl.c (qcopy_acl): Likewise.
29122
29123 2008-06-08  Bruno Haible  <bruno@clisp.org>
29124
29125         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
29126
29127 2008-06-08  Jim Meyering  <meyering@redhat.com>
29128
29129         * modules/acl (Maintainer): Add Bruno Haible.
29130
29131 2008-06-07  Bruno Haible  <bruno@clisp.org>
29132
29133         Improve support for Tru64 ACLs.
29134         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
29135         ACL on OSF/1.
29136
29137 2008-06-07  Bruno Haible  <bruno@clisp.org>
29138
29139         Add support for MacOS X ACLs.
29140         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
29141         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
29142         * lib/set-mode-acl.c (qset_acl): Likewise.
29143         * lib/copy-acl.c (qcopy_acl): Likewise.
29144
29145 2008-06-07  Bruno Haible  <bruno@clisp.org>
29146
29147         Fix memory leak introduced on 2008-05-22.
29148         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
29149         use.
29150
29151 2008-06-07  Bruno Haible  <bruno@clisp.org>
29152
29153         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
29154         to construct an empty ACL.
29155
29156 2008-06-07  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29159         precisely.
29160         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29161
29162 2008-06-07  Bruno Haible  <bruno@clisp.org>
29163
29164         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29165         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29166
29167 2008-06-07  Bruno Haible  <bruno@clisp.org>
29168
29169         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29170         regardless of POSIX.
29171         * doc/posix-functions/_longjmp.texi: Likewise.
29172         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29173         SystemV platform in this case.
29174
29175 2008-06-06  Eric Blake  <ebb9@byu.net>
29176
29177         Document abort() bugs.
29178         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29179
29180         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29181         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29182         sigsetjmp.
29183         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29184         siglongjmp, but only as a macro.
29185         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29186         is obsolete.
29187         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29188
29189         Tweak documentation to cover cygwin argz bugs.
29190         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29191         argz bug fix; no code change needed since no cygwin releases
29192         occurred between the last fix and the bug being tested.
29193         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29194         module and recently fixed cygwin bugs.
29195         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29196         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29197         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29198         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29199         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29200         Likewise.
29201         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29202         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29203         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29204         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29205         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29206         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29207         Likewise.
29208
29209         Avoid gcc warning on cygwin.
29210         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29211         !ACL_NO_TRIVIAL]: Avoid unused variable.
29212
29213 2008-06-05  Eric Blake  <ebb9@byu.net>
29214
29215         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29216         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29217         git-version-gen fails to come up with a version.
29218         Reported by Simon Josefsson.
29219
29220 2008-06-05  Jim Meyering  <meyering@redhat.com>
29221             Paul Eggert  <eggert@cs.ucla.edu>
29222
29223         utimens.c: work around a probable Linux kernel bug
29224         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29225         appears to be a kernel bug that causes utimensat to return 280
29226         instead of 0, indicating success.
29227
29228 2008-06-04  Bruno Haible  <bruno@clisp.org>
29229
29230         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29231         2008-06-01 commit.
29232
29233 2008-06-04  Bruno Haible  <bruno@clisp.org>
29234
29235         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29236         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29237         (file_has_acl): Use it. Save errno afterwards.
29238         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29239
29240 2008-06-03  Bruno Haible  <bruno@clisp.org>
29241
29242         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29243         draft code. Simplify #ifs.
29244         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29245         Put Solaris code after POSIX-draft code. Fix comments regarding
29246         Solaris 10, HP-UX. Mention Cygwin.
29247         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29248
29249 2008-06-03  Eric Blake  <ebb9@byu.net>
29250
29251         Provide fallback for older kernels.
29252         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29253         Provide runtime fallback if kernel lacks support.
29254         Reported by Mike Frysinger.
29255
29256 2008-06-02  Bruno Haible  <bruno@clisp.org>
29257
29258         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29259         it exists.
29260
29261 2008-06-02  Bruno Haible  <bruno@clisp.org>
29262
29263         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29264         * lib/copy-acl.c (qcopy_acl): Update comment.
29265
29266 2008-06-02  Bruno Haible  <bruno@clisp.org>
29267
29268         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29269         like ACL APIs.
29270
29271 2008-06-02  Bruno Haible  <bruno@clisp.org>
29272
29273         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29274         * tests/test-set-mode-acl.sh: Likewise.
29275         * tests/test-copy-acl.sh: Likewise.
29276         * tests/test-copy-file.sh: Likewise.
29277
29278 2008-06-02  Bruno Haible  <bruno@clisp.org>
29279
29280         * tests/test-file-has-acl.sh: Remove unused code.
29281
29282 2008-06-01  Bruno Haible  <bruno@clisp.org>
29283
29284         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29285         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29286         messages.
29287         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29288
29289 2008-06-01  Bruno Haible  <bruno@clisp.org>
29290
29291         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29292         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29293         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29294         APIs.
29295         * modules/acl-tests (configure.ac): Remove tests now contained in
29296         m4/acl.m4.
29297
29298 2008-06-02  Jim Meyering  <meyering@redhat.com>
29299
29300         announce-gen: use a better key-server host name
29301         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29302         it may be more consistently reliable.  Suggested by Werner Koch
29303         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29304
29305 2008-06-01  Bruno Haible  <bruno@clisp.org>
29306
29307         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29308         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29309
29310 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29311
29312         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29313
29314 2008-06-01  Bruno Haible  <bruno@clisp.org>
29315
29316         New ACL tests.
29317         * tests/test-file-has-acl.sh: New file.
29318         * tests/test-file-has-acl.c: New file.
29319         * tests/test-set-mode-acl.sh: New file.
29320         * tests/test-set-mode-acl.c: New file.
29321         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29322         * tests/test-copy-acl.c: New file.
29323         * modules/acl-tests: New file, based on modules/copy-file-tests.
29324         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29325         (Depends-on): Add acl-tests.
29326         (configure.ac): Remove checks.
29327         (Makefile.am): Don't create test-sameacls program here any more.
29328
29329 2008-06-01  Bruno Haible  <bruno@clisp.org>
29330
29331         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29332         * tests/test-sameacls.c: Include progname.h.
29333         (main): Invoke set_program_name. Portability fixes for MacOS X,
29334         Solaris, HP-UX.
29335
29336 2008-06-01  Bruno Haible  <bruno@clisp.org>
29337
29338         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29339         function.
29340         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29341
29342 2008-06-01  Bruno Haible  <bruno@clisp.org>
29343
29344         * modules/rpmatch (Depends-on): Add strdup.
29345
29346 2008-06-01  Bruno Haible  <bruno@clisp.org>
29347
29348         * lib/pipe.c: Include unistd-safer.h.
29349         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29350         * modules/pipe (Depends-on): Add unistd-safer.
29351
29352 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29353
29354         * modules/autobuild (configure.ac): Call AB_INIT.
29355
29356 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29357
29358         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29359         Suggested by Bruno Haible <bruno@clisp.org>.
29360
29361 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29362
29363         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29364         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29365         <bruno@clisp.org>.
29366
29367 2008-05-29  Eric Blake  <ebb9@byu.net>
29368
29369         Prefer new POSIX 200x interfaces over futimesat.
29370         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29371         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29372         when available.
29373         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29374
29375 2008-05-28  Bruno Haible  <bruno@clisp.org>
29376
29377         * modules/stpcpy (License): Change to LGPLv2+.
29378         Requested by David Lutterkort <dlutter@redhat.com>.
29379
29380 2008-05-27  Bruno Haible  <bruno@clisp.org>
29381
29382         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29383         current mingw.
29384         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29385
29386 2008-05-27  Bruno Haible  <bruno@clisp.org>
29387
29388         * modules/iconv_open (Link): New section, from module 'iconv'.
29389         * modules/striconv (Link): Likewise.
29390         * modules/striconveh (Link): Likewise.
29391         * modules/xstriconv (Link): Likewise.
29392         * modules/unicodeio (Link): Likewise.
29393         * modules/propername (Link): Likewise.
29394         Reported by Jim Meyering.
29395
29396 2008-05-26  Jim Meyering  <meyering@redhat.com>
29397
29398         sha256: do not artificially restrict buffer length to be < 2^32
29399         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29400         uint32_t to size_t.
29401         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29402         to match.
29403
29404         avoid unaligned access errors, e.g., on sparc
29405         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29406         direct access through a possibly-unaligned uint64* pointer.
29407         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29408         direct access through a possibly-unaligned uint32* pointer.
29409         Prompted by this patch from Tom "spot" Callaway:
29410         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29411
29412         sha512.c: fix typo in comment
29413         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29414
29415 2008-05-25  Bruno Haible  <bruno@clisp.org>
29416
29417         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29418         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29419         (Makefile.am): Update lib_SOURCES.
29420
29421 2008-05-25  Bruno Haible  <bruno@clisp.org>
29422
29423         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29424
29425 2008-05-25  Jim Meyering  <meyering@redhat.com>
29426
29427         useless-if-before-free: freed expr may have white-space differences
29428         * build-aux/useless-if-before-free: Recognize cases in which the
29429         freed expression differs from the tested one in embedded white
29430         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29431         $1 was used, so we can't make any regexp shy.  Improved tests now
29432         detect this.
29433
29434         useless-if-before-free: accept white space in the expression.
29435         * build-aux/useless-if-before-free: For now, any white space
29436         in the expression must be identical in the free argument.
29437
29438         useless-if-before-free: efficiency tweak
29439         * build-aux/useless-if-before-free: Make the expression-matching
29440         regexp "shy".
29441         Make the *outer* regexp shy, not the expr-matching one.
29442
29443         update code-in-comment to accept cast of free arg
29444         * build-aux/useless-if-before-free: Update regexp.
29445
29446 2008-05-25  Bruno Haible  <bruno@clisp.org>
29447
29448         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29449         * modules/copy-file-tests (Files, Makefile.am): Update.
29450         * tests/test-copy-file.c (func_test_copy): Update.
29451
29452 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29453
29454         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29455
29456 2008-05-23  Bruno Haible  <bruno@clisp.org>
29457
29458         Improve support for ACLs on OSF/1.
29459         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29460         Remove fallback for unknown flavors of ACLs.
29461
29462 2008-05-22  Bruno Haible  <bruno@clisp.org>
29463
29464         Add support for ACLs on OSF/1.
29465         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29466         replacements.
29467         (acl_free_text): New macro fallback.
29468         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29469         acl_free.
29470         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29471         acl_free_text function. Require AC_C_INLINE.
29472
29473 2008-05-22  Bruno Haible  <bruno@clisp.org>
29474
29475         Make copy_acl work on MacOS X 10.5.
29476         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29477         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29478         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29479         If MODE_INSIDE_ACL, don't assume that every system has the same text
29480         representation for ACLs as FreeBSD.
29481         * lib/copy-acl.c (copy_acl): Add support for platforms with
29482         !MODE_INSIDE_ACL.
29483         * lib/file-has-acl.c (file_has_acl): Likewise.
29484         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29485         FreeBSD, MacOS X, or IRIX, respectively.
29486
29487 2008-05-22  Bruno Haible  <bruno@clisp.org>
29488
29489         * lib/acl.h: Don't include <sys/acl.h>.
29490         (GETACLCNT): Move fallback to lib/acl-internal.h.
29491         * lib/acl-internal.h: Include <sys/acl.h> here.
29492         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29493
29494 2008-05-22  Bruno Haible  <bruno@clisp.org>
29495
29496         Split off copy_acl function to separate file.
29497         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29498         * lib/acl.c (copy_acl): Moved function to separate file.
29499         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29500         * modules/acl (Files): Add lib/copy-acl.c.
29501         (Makefiles.am): Augment lib_SOURCES.
29502
29503 2008-05-22  Bruno Haible  <bruno@clisp.org>
29504
29505         * modules/copy-file-tests: New file.
29506         * tests/test-copy-file.sh: New file.
29507         * tests/test-copy-file.c: New file.
29508         * tests/test-copy-file-sameacls.c: New file.
29509
29510 2008-05-22  Eric Blake  <ebb9@byu.net>
29511
29512         Avoid gcc warning.
29513         * tests/test-memcmp.c (main): Pass NULL indirectly.
29514
29515 2008-05-21  Bruno Haible  <bruno@clisp.org>
29516
29517         Add reference doc about ACLs.
29518         * doc/acl-resources.txt: New file.
29519         * doc/acl-cygwin.txt: New file.
29520
29521 2008-05-21  Bruno Haible  <bruno@clisp.org>
29522
29523         Avoid one more warning from gcc.
29524         * lib/vasnprintf.c (IF_LINT): Update comments.
29525         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29526
29527 2008-05-21  Jim Meyering  <meyering@redhat.com>
29528
29529         avoid a warning from gcc
29530         * lib/vasnprintf.c (IF_LINT): Define.
29531         (scale10_round_decimal_long_double):
29532         Use it to avoid a "may be used uninitialized" warning.
29533         (scale10_round_decimal_double): Likewise.
29534
29535 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29536
29537         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29538         declared.
29539
29540 2008-05-20  Bruno Haible  <bruno@clisp.org>
29541
29542         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29543         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29544
29545 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29546
29547         * modules/memcmp-tests: New file.
29548         * tests/test-memcmp.c: New file.
29549
29550 2008-05-19  Bruno Haible  <bruno@clisp.org>
29551
29552         * modules/propername (Notice, configure.ac): Put quoted "..." into
29553         --keyword option.
29554         * lib/propername.h: Update comments accordingly.
29555         Reported by Eric Blake.
29556
29557 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29558
29559         * modules/getpass-gnu (Depends-on): Add fseeko.
29560
29561 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29562
29563         * modules/base64-tests: New file.
29564
29565 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29566
29567         * lib/base64.c (base64_decode_ctx): If a decode context structure
29568         was passed in use it to ignore newlines.  If a context structure
29569         was _not_ passed in, continue to treat newlines as garbage (this
29570         is the historical behavior).  Formerly base64_decode.
29571         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29572         takes a decode context structure.
29573         * lib/base64.h (base64_decode): Macro for four-argument calls.
29574         (base64_decode_alloc): Likewise.
29575         * lib/base64.c (base64_decode_ctx): If a decode context structure
29576         was passed in use it to ignore newlines.  If a context structure
29577         was _not_ passed in, continue to treat newlines as garbage (this
29578         is the historical behavior).  Formerly base64_decode.
29579         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29580         takes a decode context structure.
29581         * lib/base64.h (base64_decode): Macro for four-argument calls.
29582         (base64_decode_alloc): Likewise.
29583
29584 2008-05-19  Jim Meyering  <meyering@redhat.com>
29585
29586         avoid a warning from gcc
29587         * lib/trim.c (IF_LINT): Define.
29588         (trim2): Use it to avoid a "may be used uninitialized" warning.
29589
29590         Fix doc typo.
29591         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29592
29593 2008-05-19  Bruno Haible  <bruno@clisp.org>
29594
29595         * doc/glibc-functions/getpass.texi: Document limits of other
29596         implementations.
29597
29598 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29599             Bruno Haible <bruno@clisp.org>
29600
29601         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29602
29603 2008-05-18  Bruno Haible  <bruno@clisp.org>
29604
29605         * modules/propername: New file, from GNU gettext.
29606         * lib/propername.h: New file, from GNU gettext.
29607         * lib/propername.c: New file, from GNU gettext.
29608         * MODULES.html.sh (Internationalization functions): Add propername.
29609
29610 2008-05-16  Jim Meyering  <meyering@redhat.com>
29611             Bruno Haible  <bruno@clisp.org>
29612
29613         Avoid some warnings from "gcc -Wshadow".
29614         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29615
29616 2008-05-15  Eric Blake  <ebb9@byu.net>
29617
29618         Extend previous patch to cygwin 1.7.0.
29619         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29620         fast implementation in cygwin >= 1.7.0.
29621         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29622         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29623
29624 2008-05-15  Bruno Haible  <bruno@clisp.org>
29625
29626         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29627         implementation in glibc >= 2.9.
29628         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29630
29631 2008-05-15  Bruno Haible  <bruno@clisp.org>
29632
29633         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29634         (Unicode string functions): Add unilbrk/*.
29635         Reported by Karl Berry.
29636
29637 2008-05-15  Eric Blake  <ebb9@byu.net>
29638
29639         Fix violation of <stdbool.h> replacement in regex.
29640         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29641         * lib/regexec.c (re_search_internal): Likewise.
29642         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29643
29644 2008-05-15  Jim Meyering  <meyering@redhat.com>
29645
29646         avoid distracting test output when git or cvs is not found
29647         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29648         * tests/test-vc-list-files-git.sh: Likewise.
29649
29650 2008-05-15  Eric Blake  <ebb9@byu.net>
29651
29652         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29653         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29654         glibc version.
29655         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29656         * doc/posix-functions/strstr.texi (strstr): Likewise.
29657         * lib/str-two-way.h (MAX): Sychronize with glibc.
29658
29659 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29660
29661         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29662         opr.ctx_type.
29663         (calc_first): Initialize constraint field.
29664         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29665         Fix grammar.
29666         (duplicate_node): Merge constraint field for all node types.
29667         (calc_eclosure_iter): Look at constraint field for all node types.
29668         * lib/regex_internal.c (create_cd_newstate): Don't look at
29669         opr.ctx_type.
29670
29671 2008-05-14  Bruno Haible  <bruno@clisp.org>
29672
29673         Help GCC to do better code generation.
29674         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29675         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29676         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29677         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29678         Declare with attribute 'malloc' if supported.
29679
29680 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29681
29682         use "echo STR|wc -c" rather than unportable "expr length STR"
29683         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29684         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29685
29686 2008-05-14  Jim Meyering  <meyering@redhat.com>
29687
29688         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29689         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29690         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29691         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29692         via Collin Lasse.
29693
29694 2008-05-14  Eric Blake  <ebb9@byu.net>
29695
29696         Avoid quadratic growth in gl_LIBSOURCES.
29697         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29698         Suggested by Bruno Haible.
29699
29700         Test xmemdup0.
29701         * modules/xmemdup0-tests: New file.
29702         * tests/test-xmemdup0.c: Likewise.
29703
29704 2008-05-13  Eric Blake  <ebb9@byu.net>
29705
29706         Split xmemdup0 into its own module.
29707         * modules/xmemdup0: New file.
29708         * lib/xmemdup0.h: Likewise.
29709         * lib/xmemdup0.c: Likewise.
29710         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29711         * lib/xalloc.h (xmemdup0): Remove.
29712         * lib/xmalloc.c (xmemdup0): Likewise.
29713
29714 2008-05-13  Eric Blake  <ebb9@byu.net>
29715             Bruno Haible  <bruno@clisp.org>
29716
29717         Reduce number of forks required during autoconf.
29718         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29719         and gl_LIBSOURCES_DIR.
29720         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29721         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29722         m4_syscmd per file.
29723         <m4_foreach_w>: Move...
29724         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29725
29726 2008-05-13  Eric Blake  <ebb9@byu.net>
29727
29728         * gnulib-tool: Fix various comment typos.
29729
29730 2008-05-12  Bruno Haible  <bruno@clisp.org>
29731
29732         Tailor the linebreaking algorithm.
29733         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29734
29735 2008-05-12  Bruno Haible  <bruno@clisp.org>
29736
29737         Update to Unicode 5.0.0.
29738         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29739         LBP_JV, LBP_JT. Redistribute values.
29740         (unilbrk_table): Change size.
29741         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29742         Unicode TR#14 rev. 22.
29743         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29744         LBP_JV, LBP_JT. Redistribute values.
29745         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29746         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29747         Update.
29748         * lib/unilbrk/lbrkprop1.h: Regenerated.
29749         * lib/unilbrk/lbrkprop2.h: Regenerated.
29750         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29751         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29752         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29753         Likewise.
29754         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29755         Likewise.
29756         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29757         result.
29758         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29759         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29760         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29761         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29762         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29763         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29764
29765 2008-05-11  Bruno Haible  <bruno@clisp.org>
29766
29767         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29768
29769 2008-05-11  Bruno Haible  <bruno@clisp.org>
29770
29771         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29772         * modules/unilbrk/gen-lbrk: New file.
29773
29774 2008-05-11  Bruno Haible  <bruno@clisp.org>
29775
29776         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29777         * m4/sha512.m4 (gl_SHA512): Likewise.
29778
29779 2008-05-11  Jim Meyering  <meyering@redhat.com>
29780
29781         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29782         * modules/crypto/sha256: New file.
29783         * modules/crypto/sha512: Likewise.
29784         * lib/sha256.c: Likewise.
29785         * lib/sha256.h: Likewise.
29786         * lib/sha512.c: Likewise.
29787         * lib/sha512.h: Likewise.
29788         * lib/u64.h: Likewise.
29789         * m4/sha256.m4: Likewise.
29790         * m4/sha512.m4: Likewise.
29791         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29792
29793 2008-05-10  Bruno Haible  <bruno@clisp.org>
29794
29795         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29796         (Input/Output <stdio.h>): Add xprintf.
29797         (Signal handling <signal.h>): Add strsignal.
29798         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29799         (Core language properties): Add func.
29800         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29801         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29802         strings.
29803         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29804         (Input/output): New section.
29805         (File system functions): Add openat-die, stat-macros.
29806         (Networking functions): Add sockets.
29807         (Unicode string functions): Add unictype/*.
29808         (Support for building libraries and executables): Add gperf.
29809         (Support for building documentation): Add agpl-3.0.
29810         (Misc): Add nocrash.
29811
29812 2008-05-10  Bruno Haible  <bruno@clisp.org>
29813
29814         * modules/unictype/gen-ctype: New file.
29815
29816 2008-05-10  Jim Meyering  <meyering@redhat.com>
29817
29818         Make chdir-safer.c more efficient on a system with no symlinks.
29819         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29820         also if ELOOP is zero.  Suggested by Bruno Haible.
29821
29822         Make chdir-safer.c slightly safer.
29823         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29824         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29825
29826         Avoid compile failure on systems without ELOOP (like mingw).
29827         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29828         Reported by Bruno Haible.
29829
29830 2008-05-10  Bruno Haible  <bruno@clisp.org>
29831
29832         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29833         (is_utf8_encoding): Use a case-insensitive comparison.
29834         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29835         streq.
29836
29837 2008-05-10  Bruno Haible  <bruno@clisp.org>
29838
29839         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29840         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29841         * lib/unilbrk/ulc-common.h (iconv_string_length,
29842         iconv_string_keeping_offsets): Remove declarations.
29843         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29844         Don't include <iconv.h>, streq.h, xsize.h.
29845         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29846         conversion.
29847         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29848         <iconv.h>, streq.h, xsize.h.
29849         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29850         conversion.
29851         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29852         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29853         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29854         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29855
29856 2008-05-10  Bruno Haible  <bruno@clisp.org>
29857
29858         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29859         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29860
29861         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29862         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29863
29864         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29865         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29866
29867         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29868         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29869
29870         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29871         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29872
29873         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29874         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29875
29876         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29877         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29878
29879         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29880         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29881
29882 2008-05-10  Bruno Haible  <bruno@clisp.org>
29883
29884         Split up 'linebreak' module.
29885         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29886         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29887         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29888         modifications.
29889         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29890         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29891         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29892         lib/linebreak.c.
29893         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29894         lib/linebreak.c.
29895         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29896         lib/linebreak.c.
29897         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29898         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29899         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29900         lib/linebreak.c.
29901         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29902         lib/linebreak.c.
29903         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29904         lib/linebreak.c.
29905         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29906         lib/linebreak.c.
29907         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29908         lib/linebreak.c.
29909         * modules/unilbrk/base: New file.
29910         * modules/unilbrk/tables: New file.
29911         * modules/unilbrk/u8-possible-linebreaks: New file.
29912         * modules/unilbrk/u16-possible-linebreaks: New file.
29913         * modules/unilbrk/u32-possible-linebreaks: New file.
29914         * modules/unilbrk/ulc-common: New file.
29915         * modules/unilbrk/ulc-possible-linebreaks: New file.
29916         * modules/unilbrk/u8-width-linebreaks: New file.
29917         * modules/unilbrk/u16-width-linebreaks: New file.
29918         * modules/unilbrk/u32-width-linebreaks: New file.
29919         * modules/unilbrk/ulc-width-linebreaks: New file.
29920         * lib/linebreak.h: Remove file.
29921         * lib/linebreak.c: Remove file.
29922         * m4/linebreak.m4: Remove file.
29923         * modules/linebreak: Remove file.
29924         * NEWS: Mention the changes.
29925
29926 2008-05-09  Eric Blake  <ebb9@byu.net>
29927
29928         Add xmemdup0.
29929         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29930         implementation.
29931         * lib/xmalloc.c (xmemdup0): New C implementation.
29932
29933 2008-05-08  Bruno Haible  <bruno@clisp.org>
29934
29935         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29936
29937 2008-05-07  Eric Blake  <ebb9@byu.net>
29938
29939         Support cross-compilation of <wctype.h>.
29940         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29941         AC_CACHE_CHECK.
29942
29943 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29944
29945         * build-aux/vc-list-files: Add support for bzr.
29946
29947 2008-05-03  Jim Meyering  <meyering@redhat.com>
29948
29949         avoid failed assertion with tight malloc
29950         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29951
29952 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29953
29954         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29955         are needed from arpa/inet.h.
29956         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29957         Reported by Bruno Haible.
29958
29959 2008-05-02  Jim Meyering  <meyering@redhat.com>
29960
29961         avoid compilation error on FreeBSD 6
29962         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29963
29964 2008-05-01  Jim Meyering  <meyering@redhat.com>
29965
29966         useless-if-before-free: correct --help's exit status description
29967         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29968         for one or more matches, etc.  Reported by Bruno Haible.
29969
29970         vc-list-files: make the stand-alone gnulib test work
29971         * modules/vc-list-files-tests (configure.ac):
29972         Define and AC_SUBST abs_aux_dir.
29973         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29974         $(abs_top_srcdir) to each script and having each of them
29975         duplicate the work of setting PATH, set PATH here, using
29976         the new variable, abs_aux_dir instead.
29977         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29978         * tests/test-vc-list-files-git.sh: Likewise.
29979         Reported by Bruno Haible.
29980
29981 2008-05-01  Bruno Haible  <bruno@clisp.org>
29982
29983         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29984         reallocation. Rename 'done' to 'found_delimiter'.
29985
29986 2008-05-01  Jim Meyering  <meyering@redhat.com>
29987
29988         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29989         * build-aux/vc-list-files: Use `...`, not $(...).
29990
29991 2008-04-30  Jim Meyering  <meyering@redhat.com>
29992
29993         add tests for vc-list-files
29994         * modules/vc-list-files-tests: New module.
29995         * tests/test-vc-list-files-cvs.sh: New file.
29996         * tests/test-vc-list-files-git.sh: New file.
29997
29998         avoid a warning from gcc
29999         * lib/getndelim2.c (IF_LINT): Define.
30000         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
30001
30002         vc-list-files: work properly with build-aux/cvsu, too
30003         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
30004         to all cvs-based clauses.
30005
30006         vc-list-files: work properly in the CVS+awk case, too
30007         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
30008
30009         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
30010         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
30011         take more than one file argument, so .  Add quotes, just in case $dir
30012         ever contains a shell meta-character.  Prompted by Soren Hansen in
30013         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
30014
30015 2008-04-29  Eric Blake  <ebb9@byu.net>
30016
30017         Optimize getndelim2 to use block operations when possible.
30018         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
30019         freadseek, and memchr2.
30020         * lib/getndelim2.c (getndelim2): Use them for block reads.
30021
30022 2008-04-29  Bruno Haible  <bruno@clisp.org>
30023
30024         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
30025         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30026         * modules/inet_ntop (Depends-on): Add extensions.
30027         * modules/inet_pton (Depends-on): Likewise.
30028         Reported by Simon Josefsson.
30029
30030 2008-04-29  Jim Meyering  <meyering@redhat.com>
30031
30032         When the is more than one match in a block, match all of them.
30033         * build-aux/useless-if-before-free: Iterate through each block
30034         until there are no more matches.
30035
30036         Fix broken useless-if-before-free script.
30037         * build-aux/useless-if-before-free: Fix typo: missing "?" after
30038         the expression to match cast of argument to free-like function.
30039
30040 2008-04-29  Eric Blake  <ebb9@byu.net>
30041
30042         Use new header.
30043         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
30044
30045 2008-04-29  Jim Meyering  <meyering@redhat.com>
30046
30047         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
30048         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
30049         by gnulib to exist and to declare e.g., inet_ntop.
30050         Don't include "inet_ntop.h", now removed.
30051
30052         * m4/arpa_inet_h.m4: Remove trailing blanks.
30053
30054 2008-04-29  Eric Blake  <ebb9@byu.net>
30055
30056         Silence valgrind on safe reads beyond potential array bounds.
30057         * lib/rawmemchr.valgrind: New file.
30058         * lib/strchrnul.valgrind: Likewise.
30059         * modules/rawmemchr (Files): Distribute new file.
30060         * modules/strchrnul (Files): Likewise.
30061         Suggested by Bruno Haible.
30062
30063 2008-04-29  Bruno Haible  <bruno@clisp.org>
30064
30065         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
30066         (inet_ntop, inet_pton): Change portability warning's wording.
30067         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
30068         Invoke gl_CHECK_NEXT_HEADERS.
30069         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
30070         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
30071         set ARPA_INET_H.
30072         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30073         * modules/arpa_inet (Description): No longer only for systems that
30074         lack it.
30075         (Depends-on): Add include_next.
30076         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
30077         HAVE_ARPA_INET_H.
30078
30079 2008-04-29  Jim Meyering  <meyering@redhat.com>
30080
30081         * modules/mkdir (License): Re-license as LGPLv2+.
30082
30083 2008-04-29  Bruno Haible  <bruno@clisp.org>
30084
30085         * modules/rawmemchr (Maintainer): Set to Eric.
30086         * modules/strchrnul (Maintainer): Likewise.
30087
30088 2008-04-29  Simon Josefsson  <simon@josefsson.org>
30089
30090         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
30091         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
30092
30093         * modules/arpa_inet (arpa/inet.h): Use them.
30094
30095 2008-04-28  Eric Blake  <ebb9@byu.net>
30096
30097         Test getndelim2.
30098         * modules/getndelim2-tests: New file.
30099         * tests/test-getndelim2.c: Likewise.
30100         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
30101         stream.
30102         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
30103
30104         * MODULES.html.sh: Document new module.
30105
30106 2008-04-20  Bruno Haible  <bruno@clisp.org>
30107
30108         * lib/c-stack.c (die): Use raise.
30109         * modules/c-stack (Depends-on): Add raise.
30110
30111 2008-04-28  Bruno Haible  <bruno@clisp.org>
30112
30113         Expect rpmatch to be declared.
30114         * lib/yesno.c (rpmatch): Remove declaration.
30115
30116         Declare rpmatch.
30117         * lib/stdlib.in.h (rpmatch): New declaration.
30118         * lib/rpmatch.c: Include <stdlib.h> first.
30119         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
30120         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
30121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
30122         HAVE_RPMATCH.
30123         * modules/rpmatch (Depends-on): Add stdlib, extensions.
30124         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30125         (Include): Set to <stdlib.h>.
30126         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
30127         HAVE_RPMATCH.
30128         * NEWS: Document the change.
30129
30130 2008-04-28  Bruno Haible  <bruno@clisp.org>
30131
30132         Change rpmatch to use nl_langinfo when appropriate.
30133         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
30134         (N_): New macro.
30135         (localized_pattern): New function/macro.
30136         (try): Remove match, nomatch arguments. Copy the pattern into safe
30137         memory before caching it.
30138         (rpmatch): Use localized_pattern. Add translator comments.
30139         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
30140         Suggested by Eric Blake.
30141         * modules/rpmatch (Depends-on): Add stdbool.
30142
30143 2008-04-28  Eric Blake  <ebb9@byu.net>
30144
30145         Add rawmemchr module, matching glibc.
30146         * modules/string (Makefile.am): New indicator.
30147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
30148         * lib/string.in.h (rawmemchr): Declare when appropriate.
30149         * modules/rawmemchr: New file.
30150         * m4/rawmemchr.m4: Likewise.
30151         * lib/rawmemchr.c: Likewise.
30152         * modules/rawmemchr-tests: Likewise.
30153         * tests/test-rawmemchr.c: Likewise.
30154         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30155         module.
30156         * modules/strchrnul (Depends-on): Add rawmemchr.
30157         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30158
30159         Whitespace cleanup.
30160         * tests/test-strchrnul.c: Reindent.
30161         * lib/strchrnul.c: Likewise.
30162
30163         Optimize and test strchrnul.
30164         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30165         * modules/strchrnul-tests: New file.
30166         * tests/test-strchrnul.c: Likewise.
30167
30168         Remove intprops dependency.
30169         * modules/memchr (Depends-on): Remove intprops.
30170         * modules/memrchr (Depends-on): Likewise.
30171         * modules/memchr2 (Depends-on): Likewise.
30172         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30173         * lib/memrchr.c (__memrchr): Likewise.
30174         * lib/memrchr2.c (memchr2): Likewise.
30175         Reported by Simon Josefsson.
30176
30177 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30178
30179         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30180         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30181
30182 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30183
30184         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30185
30186         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30187
30188         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30189
30190         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30191         declarations.
30192         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30193
30194         * m4/inet_pton.m4: Don't check for header files.
30195
30196         * m4/inet_ntop.m4: Don't check for header files.
30197
30198 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30199
30200         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30201         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30202         trigger for cygwin).
30203         Reported by Bruno Haible  <bruno@clisp.org>.
30204
30205 2008-04-28  Bruno Haible  <bruno@clisp.org>
30206
30207         * doc/posix-functions/strdup.texi: Mention mingw problem.
30208
30209 2008-04-27  Bruno Haible  <bruno@clisp.org>
30210
30211         * modules/stat-time-tests (Depends-on): Add sleep.
30212         * tests/test-stat-time.c (force_unlink): New function.
30213         (cleanup): Use it.
30214         (test_mtime): Remove the ctime related tests.
30215         (test_ctime): New function, containing the ctime related tests.
30216         (main): Call test_ctime, except on native Windows platforms.
30217
30218 2008-04-27  Bruno Haible  <bruno@clisp.org>
30219
30220         * lib/rpmatch.c (rpmatch): Add some comments.
30221         Reported by James Youngman <jay@gnu.org>.
30222
30223 2008-04-27  Bruno Haible  <bruno@clisp.org>
30224
30225         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30226         quiet NaNs.
30227
30228 2008-04-27  Bruno Haible  <bruno@clisp.org>
30229
30230         Make test-yesno.sh work on mingw.
30231         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30232         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30233         (main): Set stdin to binary mode.
30234         * modules/yesno-tests (Depends-on): Add binary-io.
30235
30236 2008-04-27  Bruno Haible  <bruno@clisp.org>
30237
30238         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30239         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30240         argument that lie outside the IEEE 854 domain.
30241         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30242         (gl_ISFINITE): Use it.
30243         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30244
30245 2008-04-27  Bruno Haible  <bruno@clisp.org>
30246
30247         Allow local renaming in config.h.
30248         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30249
30250 2008-04-27  Bruno Haible  <bruno@clisp.org>
30251
30252         * lib/memchr.c (__memchr): Change type of 'i'.
30253         * lib/memchr2.c (memchr2): Likewise.
30254
30255 2008-04-26  Eric Blake  <ebb9@byu.net>
30256         and Bruno Haible  <bruno@clisp.org>
30257
30258         Optimize and test memrchr.
30259         * modules/memrchr (Depends-on): Add intprops.
30260         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30261         * modules/memrchr-tests: New file.
30262         * tests/test-memrchr.c: New file.
30263
30264 2008-04-26  Bruno Haible  <bruno@clisp.org>
30265
30266         Add tentative support for DragonFly BSD.
30267         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30268         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30269         fp.
30270         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30271         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30272         * lib/fpurge.c (fpurge): Likewise.
30273         * lib/freadable.c (freaadable): Likewise.
30274         * lib/freadahead.c (freadahead): Likewise.
30275         * lib/freading.c (freading): Likewise.
30276         * lib/freadptr.c (freadptr): Likewise.
30277         * lib/freadseek.c (freadptrinc): Likewise.
30278         * lib/fseeko.c (fseeko): Likewise.
30279         * lib/fseterr.c (fseterr): Likewise.
30280         * lib/fwritable.c (fwritable): Likewise.
30281         * lib/fwriting.c (fwriting): Likewise.
30282
30283 2008-04-26  Bruno Haible  <bruno@clisp.org>
30284
30285         * lib/stdio-impl.h: New file.
30286         * lib/fbufmode.c: Include stdio-impl.h.
30287         (fbufmode): Use fp_, remove redundant #defines.
30288         * lib/fflush.c: Include stdio-impl.h.
30289         (clear_ungetc_buffer): Remove redundant #defines.
30290         * lib/fpurge.c: Include stdio-impl.h.
30291         (fpurge): Remove redundant #defines.
30292         * lib/freadable.c: Include stdio-impl.h.
30293         (freadable): Remove redundant #defines.
30294         * lib/freadahead.c: Include stdio-impl.h.
30295         (freadahead): Remove redundant #defines.
30296         * lib/freading.c: Include stdio-impl.h.
30297         (freading): Remove redundant #defines.
30298         * lib/freadptr.c: Include stdio-impl.h.
30299         (freadptr): Remove redundant #defines.
30300         * lib/freadseek.c: Include stdio-impl.h.
30301         (freadptrinc): Remove redundant #defines.
30302         * lib/fseeko.c: Include stdio-impl.h.
30303         (rpl_fseeko): Remove redundant #defines.
30304         * lib/fseterr.c: Include stdio-impl.h.
30305         (fseterr): Remove redundant #defines.
30306         * lib/fwritable.c: Include stdio-impl.h.
30307         (fwritable: Remove redundant #defines.
30308         * lib/fwriting.c: Include stdio-impl.h.
30309         (fwriting): Remove redundant #defines.
30310         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30311         * modules/fflush (Files): Likewise.
30312         * modules/fpurge (Files): Likewise.
30313         * modules/freadable (Files): Likewise.
30314         * modules/freadahead (Files): Likewise.
30315         * modules/freading (Files): Likewise.
30316         * modules/freadptr (Files): Likewise.
30317         * modules/freadseek (Files): Likewise.
30318         * modules/fseeko (Files): Likewise.
30319         * modules/fseterr (Files): Likewise.
30320         * modules/fwritable (Files): Likewise.
30321         * modules/fwriting (Files): Likewise.
30322
30323 2008-04-26  Bruno Haible  <bruno@clisp.org>
30324
30325         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30326         restore_seek_optimization, update_fpos_cache): New functions, extracted
30327         from rpl_fflush.
30328         (rpl_fflush): Use them.
30329         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30330         (gl_REPLACE_FFLUSH): Use it.
30331
30332 2008-04-26  Bruno Haible  <bruno@clisp.org>
30333
30334         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30335         on Solaris.
30336         * tests/test-xstrtoimax.sh: Likewise.
30337         * tests/test-xstrtoumax.sh: Likewise.
30338         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30339
30340 2008-04-26  Bruno Haible  <bruno@clisp.org>
30341
30342         * modules/memchr-tests: New file.
30343         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30344
30345 2008-04-26  Eric Blake  <ebb9@byu.net>
30346             Bruno Haible  <bruno@clisp.org>
30347
30348         * lib/memchr.c: Include intprops.h.
30349         (__memchr): Optimize parallel detection of matching bytes. Rename local
30350         variables. Add explanatory comments.
30351
30352 2008-04-26  Bruno Haible  <bruno@clisp.org>
30353
30354         Fix module 'memchr', broken since 2000-10-28.
30355         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30356
30357 2008-04-26  Bruno Haible  <bruno@clisp.org>
30358
30359         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30360         comments.
30361
30362 2008-04-25  Eric Blake  <ebb9@byu.net>
30363
30364         Use native fstatat on cygwin 1.7.0.
30365         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30366         first.
30367
30368 2008-04-23  Eric Blake  <ebb9@byu.net>
30369
30370         Improve memchr2 performance.
30371         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30372         NUL bytes.
30373         * modules/memchr2 (Depends-on): Use intprops.h.
30374
30375 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30376
30377         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30378         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30379         <blp@cs.stanford.edu>.
30380
30381 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30382
30383         * lib/arpa_inet.in.h: New file.
30384
30385         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30386         (Makefile.am): Sed in substitute header file.
30387
30388         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30389         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30390
30391         * modules/inet_ntop (configure.ac): Use
30392         gl_ARPA_INET_MODULE_INDICATOR.
30393
30394         * modules/inet_pton (configure.ac): Use
30395         gl_ARPA_INET_MODULE_INDICATOR.
30396
30397 2008-04-22  Jim Meyering  <meyering@redhat.com>
30398
30399         * modules/verify (License): Re-license as LGPLv2+.
30400
30401 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30402
30403         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30404         parameter to void* as per POSIX standard (MinGW uses char*).
30405
30406 2008-04-21  Bruno Haible  <bruno@clisp.org>
30407
30408         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30409         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30410         Define to replacements if REPLACE_ISWCNTRL is 1.
30411         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30412         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30413         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30414         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30415         what it fixes.
30416         * doc/posix-functions/iswalpha.texi: Likewise.
30417         * doc/posix-functions/iswblank.texi: Likewise.
30418         * doc/posix-functions/iswcntrl.texi: Likewise.
30419         * doc/posix-functions/iswdigit.texi: Likewise.
30420         * doc/posix-functions/iswgraph.texi: Likewise.
30421         * doc/posix-functions/iswlower.texi: Likewise.
30422         * doc/posix-functions/iswprint.texi: Likewise.
30423         * doc/posix-functions/iswpunct.texi: Likewise.
30424         * doc/posix-functions/iswspace.texi: Likewise.
30425         * doc/posix-functions/iswupper.texi: Likewise.
30426         * doc/posix-functions/iswxdigit.texi: Likewise.
30427         Reported by Alain Guibert.
30428
30429 2008-04-21  Bruno Haible  <bruno@clisp.org>
30430
30431         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30432         Patch by Alain Guibert.
30433
30434 2008-04-21  Bruno Haible  <bruno@clisp.org>
30435
30436         Fix test failures on mingw.
30437         * tests/test-xstrtol.c (print_no_progname): New function.
30438         (main): Install it in error_print_progname hook.
30439         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30440         * tests/test-xstrtoimax.sh: Likewise.
30441         * tests/test-xstrtoumax.sh: Likewise.
30442
30443 2008-04-21  Bruno Haible  <bruno@clisp.org>
30444
30445         Fix test failure on mingw.
30446         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30447
30448 2008-04-21  Bruno Haible  <bruno@clisp.org>
30449
30450         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30451         Actually assign a value.
30452
30453 2008-04-20  Bruno Haible  <bruno@clisp.org>
30454
30455         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30456         take 2.
30457         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30458         'canonicalize-lgpl' module is also used.
30459         * lib/canonicalize-lgpl.c: Undo last change.
30460         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30461
30462 2008-04-20  Bruno Haible  <bruno@clisp.org>
30463
30464         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30465         config.h. Provide _mkdir based fallback for mingw.
30466         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30467         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30468         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30469         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30470         rather than defining mkdir in config.h.
30471         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30472         (gl_SYS_STAT_H_DEFAULTS): New macro.
30473         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30474         HAVE_IO_H any more.
30475         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30476         HAVE_DECL_MKDIR and HAVE_IO_H.
30477
30478 2008-04-20  Bruno Haible  <bruno@clisp.org>
30479
30480         * lib/isapipe.c: Port to native Windows platforms.
30481
30482 2008-04-20  Bruno Haible  <bruno@clisp.org>
30483
30484         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30485
30486 2008-04-21  Eric Blake  <ebb9@byu.net>
30487
30488         Work around preprocessors that don't handle UINTMAX_MAX.
30489         * lib/memchr2.c (memchr2): Avoid embedded #if.
30490         Reported by Alain Guibert, fix suggested by Bruno Haible.
30491
30492 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30493
30494         * doc/posix-functions/strftime.texi (strftime): Explain better
30495         Windows incompatibility.  Suggested by Micah Cowan
30496         <micah@cowan.name>.
30497
30498 2008-04-20  Bruno Haible  <bruno@clisp.org>
30499
30500         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30501         unistr/u8-mblen.
30502
30503 2008-04-20  Bruno Haible  <bruno@clisp.org>
30504
30505         Fix test failure on platforms with non-GNU iconv.
30506         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30507         (U_TO_U8): Use it, rather than u16_to_u8.
30508         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30509         units at the end of the input string.
30510         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30511
30512 2008-04-20  Bruno Haible  <bruno@clisp.org>
30513
30514         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30515         when the resulting length is 0.
30516         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30517
30518 2008-04-20  Bruno Haible  <bruno@clisp.org>
30519
30520         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30521         works.
30522         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30523
30524 2008-04-20  Bruno Haible  <bruno@clisp.org>
30525
30526         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30527         * modules/tsearch-tests (configure.ac): Test for initstate function.
30528
30529 2008-04-20  Bruno Haible  <bruno@clisp.org>
30530
30531         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30532         for nlink_t if missing.
30533         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30534
30535 2008-04-19  Bruno Haible  <bruno@clisp.org>
30536
30537         Work around snprintf bug on Linux libc5.
30538         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30540         gl_SNPRINTF_SIZE1.
30541         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30542         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30543         that test failed.
30544         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30545         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30546         * modules/snprintf (Files): Add m4/printf.m4.
30547         * modules/vsnprintf (Files): Likewise.
30548         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30549         * doc/posix-functions/vsnprintf.texi: Likewise.
30550
30551 2008-04-19  Bruno Haible  <bruno@clisp.org>
30552
30553         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30554         from 0.0058 to less than 10^-7.
30555
30556 2008-04-19  Bruno Haible  <bruno@clisp.org>
30557
30558         Fix rounding when a precision is given.
30559         * lib/vasnprintf.c (is_borderline): New function.
30560         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30561         9...9x.
30562         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30563         %e, %g.
30564         * tests/test-vasprintf-posix.c (test_function): Likewise.
30565         * tests/test-snprintf-posix.h (test_function): Likewise.
30566         * tests/test-sprintf-posix.h (test_function): Likewise.
30567         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30568         * tests/test-printf-posix.h (test_function): Likewise.
30569         * tests/test-printf-posix.output: Update.
30570         Reported by John Darrington <john@darrington.wattle.id.au> via
30571         Ben Pfaff <blp@cs.stanford.edu>.
30572
30573 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30574
30575         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30576         Suggested by Bruno Haible <bruno@clisp.org>.
30577
30578 2008-04-17  Bruno Haible  <bruno@clisp.org>
30579
30580         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30581         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30582         implementation.
30583         Patch by Bruce Merry <bmerry@gmail.com>.
30584
30585 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30586
30587         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30588         doesn't work under Windows.
30589
30590 2008-04-16  Bruno Haible  <bruno@clisp.org>
30591
30592         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30593         New macros.
30594         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30595         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30596         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30597         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30598         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30599         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30600         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30601         macros.
30602         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30603         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30604         Northern Sotho, Uighur.
30605
30606 2008-04-16  Bruno Haible  <bruno@clisp.org>
30607
30608         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30609         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30610         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30611         Reported by Daniel Bergström <daniel@octocode.com>.
30612
30613 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30614             Bruno Haible  <bruno@clisp.org>
30615
30616         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30617         function.
30618         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30619         New functions, mostly extracted from gl_locale_name_default.
30620         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30621
30622 2008-04-16  Eric Blake  <ebb9@byu.net>
30623
30624         Adjust strtod detection to catch glibc 2.7 bug.
30625         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30626         Reported by John Gatewood Ham.
30627
30628 2008-04-16  Bruno Haible  <bruno@clisp.org>
30629
30630         Add tentative support for Linux libc5.
30631         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30632         * lib/fpurge.c (fpurge): Likewise.
30633         * lib/freadable.c (freadable): Likewise.
30634         * lib/freadahead.c (freadahead): Likewise.
30635         * lib/freading.c (freading): Likewise.
30636         * lib/freadptr.c (freadptr): Likewise.
30637         * lib/freadseek.c (freadptrinc): Likewise.
30638         * lib/fseeko.c (rpl_fseeko): Likewise.
30639         * lib/fseterr.c (fseterr): Likewise.
30640         * lib/fwritable.c (fwritable): Likewise.
30641         * lib/fwriting.c (fwriting): Likewise.
30642         Reported by Alain Guibert <alguibert+bts@free.fr>.
30643
30644 2008-04-15  Bruno Haible  <bruno@clisp.org>
30645
30646         * modules/mathl (configure.ac): Define module indicator.
30647
30648 2008-04-15  Bruno Haible  <bruno@clisp.org>
30649
30650         * lib/logl.c (logl): Remove unused variables.
30651
30652 2008-04-15  Bruno Haible  <bruno@clisp.org>
30653
30654         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30655         fails.
30656
30657 2008-04-15  Bruno Haible  <bruno@clisp.org>
30658
30659         * lib/trim.c (trim2): Fix argument of isspace() macro.
30660
30661 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30662
30663         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30664         to 0.
30665         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30666
30667 2008-04-14  Bruno Haible  <bruno@clisp.org>
30668
30669         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30670         AC_LANG_PROGRAM argument.
30671         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30672         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30674         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30675         * m4/math_h.m4 (gl_MATH_H): Likewise.
30676         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30677         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30678         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30679         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30680         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30681         * m4/regex.m4 (gl_REGEX): Likewise.
30682         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30683         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30684         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30685         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30686         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30687         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30688         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30689         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30690
30691 2008-04-14  Jim Meyering  <meyering@redhat.com>
30692
30693         test-strtod: fix typos: s/abs/fabs/
30694         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30695
30696 2008-04-13  Bruno Haible  <bruno@clisp.org>
30697
30698         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30699         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30700         module is also used and while not building the reloc-wrapper.
30701
30702 2008-04-13  Bruno Haible  <bruno@clisp.org>
30703
30704         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30705
30706 2008-04-13  Bruno Haible  <bruno@clisp.org>
30707
30708         Fix AIX compilation failure introduced on 2008-04-02.
30709         * tests/test-frexp.c (exp): Undefine before redefining.
30710         * tests/test-frexpl.c (exp): Likewise.
30711
30712 2008-04-13  Bruno Haible  <bruno@clisp.org>
30713
30714         Work around a HP-UX stdio bug.
30715         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30716         * tests/test-ftello.c (main): Likewise.
30717         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30718         * doc/posix-functions/ftello.texi: Likewise.
30719
30720 2008-04-13  Bruno Haible  <bruno@clisp.org>
30721
30722         Make test-signbit pass on HP-UX/hppa.
30723         * tests/test-signbit.c (minus_zerol): New variable.
30724         (test_signbitl): Use it.
30725
30726 2008-04-13  Bruno Haible  <bruno@clisp.org>
30727
30728         Make truncl work on OSF/1 4.0.
30729         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30730         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30731         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30733         HAVE_DECL_TRUNCL.
30734         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30735         HAVE_DECL_TRUNCL.
30736         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30737
30738 2008-04-13  Bruno Haible  <bruno@clisp.org>
30739
30740         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30741
30742 2008-04-13  Bruno Haible  <bruno@clisp.org>
30743
30744         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30745         expression, so as to avoid HP-UX 11 cc compiler bug.
30746
30747 2008-04-13  Bruno Haible  <bruno@clisp.org>
30748
30749         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30750
30751 2008-04-13  Bruno Haible  <bruno@clisp.org>
30752
30753         * lib/git-merge-changelog.c: Remove empty declaration outside of
30754         functions.
30755
30756 2008-04-13  Bruno Haible  <bruno@clisp.org>
30757
30758         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30759
30760 2008-04-13  Bruno Haible  <bruno@clisp.org>
30761
30762         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30763         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30764         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30765         also if it exists but lacks definitions of the SHUT_* macros.
30766         * modules/sys_socket (Description): Update.
30767         Reported by Elbert Pol <e.pol@chello.nl>.
30768
30769 2008-04-13  Bruno Haible  <bruno@clisp.org>
30770
30771         * lib/localcharset.c (OS2): Don't redefine if already defined.
30772         Reported by Elbert Pol <e.pol@chello.nl>.
30773
30774 2008-04-13  Bruno Haible  <bruno@clisp.org>
30775
30776         * lib/binary-io.h [__EMX__]: Include <io.h>.
30777         Reported by Elbert Pol <e.pol@chello.nl>.
30778
30779 2008-04-12  Bruno Haible  <bruno@clisp.org>
30780
30781         * lib/fpucw.h: Enable the definitions also for x86_64.
30782         Needed for NetBSD/x86_64.
30783         Reported by Thomas Klausner <tk@giga.or.at>.
30784
30785 2008-04-12  Bruno Haible  <bruno@clisp.org>
30786
30787         * tests/test-strtod.c: Include isnand.h.
30788         (main): Use isnand instead of isnan.
30789         Reported by Jim Meyering.
30790
30791 2008-04-12  Bruno Haible  <bruno@clisp.org>
30792
30793         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30794         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30795
30796 2008-04-12  Jim Meyering  <meyering@redhat.com>
30797
30798         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30799
30800 2008-04-12  Bruno Haible  <bruno@clisp.org>
30801
30802         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30803         Reported by Elbert Pol <e.pol@chello.nl>.
30804
30805 2008-04-12  Eric Blake  <ebb9@byu.net>
30806
30807         Work around Solaris 10 math.h bug.
30808         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30809         (gl_MATH_H_DEFAULTS): Set up default.
30810         * modules/math (Makefile.am): Replace new indicators.
30811         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30812         * tests/test-math.c (main): Test this.
30813         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30814         * doc/posix-headers/math.texi (math.h): Mention bug.
30815         Reported by Nelson H. F. Beebe and Jim Meyering.
30816
30817 2008-04-11  Bruno Haible  <bruno@clisp.org>
30818
30819         Adapt to future versions of Apple GCC.
30820         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30821         Reported by Peter O'Gorman <peter@pogma.com>.
30822
30823 2008-04-11  Bruno Haible  <bruno@clisp.org>
30824
30825         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30826
30827 2008-04-11  Bruno Haible  <bruno@clisp.org>
30828
30829         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30830
30831         * modules/getaddrinfo-tests (Makefile.am): Define
30832         test_getaddrinfo_LDADD.
30833
30834 2008-04-11  Bruno Haible  <bruno@clisp.org>
30835
30836         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30837         (init): Fix syntax error.
30838         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30839         is declared.
30840
30841 2008-04-11  Bruno Haible  <bruno@clisp.org>
30842
30843         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30844         * modules/glob (Depends-on): Add stdbool.
30845
30846 2008-04-11  Bruno Haible  <bruno@clisp.org>
30847
30848         * lib/trim.c: Include <string.h>.
30849
30850 2008-04-11  Eric Blake  <ebb9@byu.net>
30851
30852         Avoid compile failure on OS/2.
30853         * lib/regex_internal.h (internal_function): Disable optimization
30854         on OS/2 (__EMX__), where it caused compiler error.
30855         Reported by Elbert Pol.
30856
30857 2008-04-11  Bruno Haible  <bruno@clisp.org>
30858
30859         Flush the standard error stream before aborting. Needed on mingw.
30860         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30861         * tests/test-array_list.c (ASSERT): Likewise.
30862         * tests/test-array_oset.c (ASSERT): Likewise.
30863         * tests/test-avltree_list.c (ASSERT): Likewise.
30864         * tests/test-avltree_oset.c (ASSERT): Likewise.
30865         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30866         * tests/test-binary-io.c (ASSERT): Likewise.
30867         * tests/test-byteswap.c (ASSERT): Likewise.
30868         * tests/test-c-ctype.c (ASSERT): Likewise.
30869         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30870         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30871         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30872         * tests/test-c-strstr.c (ASSERT): Likewise.
30873         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30874         * tests/test-canonicalize.c (ASSERT): Likewise.
30875         * tests/test-carray_list.c (ASSERT): Likewise.
30876         * tests/test-ceilf1.c (ASSERT): Likewise.
30877         * tests/test-ceilf2.c (ASSERT): Likewise.
30878         * tests/test-ceill.c (ASSERT): Likewise.
30879         * tests/test-count-one-bits.c (ASSERT): Likewise.
30880         * tests/test-fbufmode.c (ASSERT): Likewise.
30881         * tests/test-fflush2.c (ASSERT): Likewise.
30882         * tests/test-floorf1.c (ASSERT): Likewise.
30883         * tests/test-floorf2.c (ASSERT): Likewise.
30884         * tests/test-floorl.c (ASSERT): Likewise.
30885         * tests/test-fopen.c (ASSERT): Likewise.
30886         * tests/test-fpending.c (ASSERT): Likewise.
30887         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30888         * tests/test-fpurge.c (ASSERT): Likewise.
30889         * tests/test-freadable.c (ASSERT): Likewise.
30890         * tests/test-freadahead.c (ASSERT): Likewise.
30891         * tests/test-freading.c (ASSERT): Likewise.
30892         * tests/test-freadptr.c (ASSERT): Likewise.
30893         * tests/test-freadptr2.c (ASSERT): Likewise.
30894         * tests/test-freadseek.c (ASSERT): Likewise.
30895         * tests/test-freopen.c (ASSERT): Likewise.
30896         * tests/test-frexp.c (ASSERT): Likewise.
30897         * tests/test-frexpl.c (ASSERT): Likewise.
30898         * tests/test-fseek.c (ASSERT): Likewise.
30899         * tests/test-fseeko.c (ASSERT): Likewise.
30900         * tests/test-fstrcmp.c (ASSERT): Likewise.
30901         * tests/test-ftell.c (ASSERT): Likewise.
30902         * tests/test-ftello.c (ASSERT): Likewise.
30903         * tests/test-func.c (ASSERT): Likewise.
30904         * tests/test-fwritable.c (ASSERT): Likewise.
30905         * tests/test-fwriting.c (ASSERT): Likewise.
30906         * tests/test-getdelim.c (ASSERT): Likewise.
30907         * tests/test-getline.c (ASSERT): Likewise.
30908         * tests/test-i-ring.c (ASSERT): Likewise.
30909         * tests/test-iconv-utf.c (ASSERT): Likewise.
30910         * tests/test-iconv.c (ASSERT): Likewise.
30911         * tests/test-isfinite.c (ASSERT): Likewise.
30912         * tests/test-isnand.c (ASSERT): Likewise.
30913         * tests/test-isnanf.c (ASSERT): Likewise.
30914         * tests/test-isnanl.h (ASSERT): Likewise.
30915         * tests/test-ldexpl.c (ASSERT): Likewise.
30916         * tests/test-linked_list.c (ASSERT): Likewise.
30917         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30918         * tests/test-localename.c (ASSERT): Likewise.
30919         * tests/test-lseek.c (ASSERT): Likewise.
30920         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30921         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30922         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30923         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30924         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30925         * tests/test-mbschr.c (ASSERT): Likewise.
30926         * tests/test-mbscspn.c (ASSERT): Likewise.
30927         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30928         * tests/test-mbspbrk.c (ASSERT): Likewise.
30929         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30930         * tests/test-mbsrchr.c (ASSERT): Likewise.
30931         * tests/test-mbsspn.c (ASSERT): Likewise.
30932         * tests/test-mbsstr1.c (ASSERT): Likewise.
30933         * tests/test-mbsstr2.c (ASSERT): Likewise.
30934         * tests/test-mbsstr3.c (ASSERT): Likewise.
30935         * tests/test-memchr2.c (ASSERT): Likewise.
30936         * tests/test-memmem.c (ASSERT): Likewise.
30937         * tests/test-open.c (ASSERT): Likewise.
30938         * tests/test-printf-frexp.c (ASSERT): Likewise.
30939         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30940         * tests/test-printf-posix.c (ASSERT): Likewise.
30941         * tests/test-quotearg.c (ASSERT): Likewise.
30942         * tests/test-rbtree_list.c (ASSERT): Likewise.
30943         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30944         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30945         * tests/test-round1.c (ASSERT): Likewise.
30946         * tests/test-roundf1.c (ASSERT): Likewise.
30947         * tests/test-roundl.c (ASSERT): Likewise.
30948         * tests/test-signbit.c (ASSERT): Likewise.
30949         * tests/test-sleep.c (ASSERT): Likewise.
30950         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30951         * tests/test-snprintf.c (ASSERT): Likewise.
30952         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30953         * tests/test-stat-time.c (ASSERT): Likewise.
30954         * tests/test-strcasestr.c (ASSERT): Likewise.
30955         * tests/test-strerror.c (ASSERT): Likewise.
30956         * tests/test-striconv.c (ASSERT): Likewise.
30957         * tests/test-striconveh.c (ASSERT): Likewise.
30958         * tests/test-striconveha.c (ASSERT): Likewise.
30959         * tests/test-strsignal.c (ASSERT): Likewise.
30960         * tests/test-strstr.c (ASSERT): Likewise.
30961         * tests/test-strtod.c (ASSERT): Likewise.
30962         * tests/test-trunc1.c (ASSERT): Likewise.
30963         * tests/test-trunc2.c (ASSERT): Likewise.
30964         * tests/test-truncf1.c (ASSERT): Likewise.
30965         * tests/test-truncf2.c (ASSERT): Likewise.
30966         * tests/test-truncl.c (ASSERT): Likewise.
30967         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30968         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30969         * tests/test-vasnprintf.c (ASSERT): Likewise.
30970         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30971         * tests/test-vasprintf.c (ASSERT): Likewise.
30972         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30973         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30974         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30975         * tests/test-vsnprintf.c (ASSERT): Likewise.
30976         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30977         * tests/test-wcwidth.c (ASSERT): Likewise.
30978         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30979         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30980         * tests/test-xvasprintf.c (ASSERT): Likewise.
30981         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30982         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30983         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30984         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30985         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30986         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30987         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30988         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30989         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30990         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30991         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30992         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30993         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30994         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30995         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
30996         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
30997         * tests/unictype/test-block_list.c (ASSERT): Likewise.
30998         * tests/unictype/test-block_of.c (ASSERT): Likewise.
30999         * tests/unictype/test-block_test.c (ASSERT): Likewise.
31000         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
31001         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
31002         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
31003         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
31004         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
31005         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
31006         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
31007         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
31008         * tests/unictype/test-combining.c (ASSERT): Likewise.
31009         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
31010         * tests/unictype/test-digit.c (ASSERT): Likewise.
31011         * tests/unictype/test-mirror.c (ASSERT): Likewise.
31012         * tests/unictype/test-numeric.c (ASSERT): Likewise.
31013         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
31014         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
31015         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
31016         * tests/unictype/test-scripts.c (ASSERT): Likewise.
31017         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
31018         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
31019         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
31020         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
31021         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
31022         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
31023         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
31024         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
31025         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
31026         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
31027         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
31028         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
31029         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
31030         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
31031         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
31032         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
31033         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
31034         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
31035         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
31036         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
31037         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
31038         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
31039         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
31040         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
31041         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
31042         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
31043         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
31044         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
31045         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
31046         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
31047         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
31048         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
31049         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
31050         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
31051         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
31052         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
31053         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
31054         Reported by Eric Blake.
31055
31056 2008-04-11  Bruno Haible  <bruno@clisp.org>
31057
31058         * lib/wchar.in.h: Tweak comment.
31059
31060 2008-04-11  Bruno Haible  <bruno@clisp.org>
31061
31062         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
31063         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
31064         gl_COMMON.
31065         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
31066
31067 2008-04-11  Bruno Haible  <bruno@clisp.org>
31068
31069         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
31070
31071 2008-04-11  Simon Josefsson  <simon@josefsson.org>
31072
31073         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
31074         of attempting to use non-existing /dev/*random.  Based on patch
31075         from Adam Strzelecki <ono@java.pl> in
31076         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
31077
31078 2008-04-08  Bruno Haible  <bruno@clisp.org>
31079
31080         Add tentative support for emx+gcc.
31081         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
31082         * lib/fpurge.c (fpurge): Likewise.
31083         * lib/freadable.c (freadable): Likewise.
31084         * lib/freadahead.c (freadahead): Likewise.
31085         * lib/freading.c (freading): Likewise.
31086         * lib/freadptr.c (freadptr): Likewise.
31087         * lib/freadseek.c (freadptrinc): Likewise.
31088         * lib/fseeko.c (rpl_fseeko): Likewise.
31089         * lib/fseterr.c (fseterr): Likewise.
31090         * lib/fwritable.c (fwritable): Likewise.
31091         * lib/fwriting.c (fwriting): Likewise.
31092         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
31093
31094 2008-04-09  Eric Blake  <ebb9@byu.net>
31095
31096         Avoid some autoconf warnings.
31097         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
31098         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
31099         * m4/afs.m4 (gl_AFS): Likewise.
31100         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
31101         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
31102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31103         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
31104         (gl_INTEGER_TYPE_SUFFIX): Likewise.
31105         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
31106         (AC_CHECK_DECLS_ONCE): Likewise.
31107         Rename file...
31108         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
31109         gnulib-tool requires autoconf 2.59 or better.
31110         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
31111
31112 2008-04-08  Eric Blake  <ebb9@byu.net>
31113
31114         Use 'git describe --match' if present (added in git 1.5.5).
31115         * build-aux/git-version-gen: Limit result to tags that match 'v*'
31116         if possible.
31117
31118 2008-04-08  Bruno Haible  <bruno@clisp.org>
31119
31120         Add tentative support for OpenServer.
31121         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
31122         _ptr, _cnt.
31123         * lib/fpurge.c (fpurge): Likewise.
31124         * lib/freadable.c (freadable): Likewise.
31125         * lib/freadahead.c (freadahead): Likewise.
31126         * lib/freading.c (freading): Likewise.
31127         * lib/freadptr.c (freadptr): Likewise.
31128         * lib/freadseek.c (freadptrinc): Likewise.
31129         * lib/fseeko.c (rpl_fseeko): Likewise.
31130         * lib/fseterr.c (fseterr): Likewise.
31131         * lib/fwritable.c (fwritable): Likewise.
31132         * lib/fwriting.c (fwriting): Likewise.
31133         Reported by Roger Cornelius <rac@tenzing.org> and
31134         Brian K. White <brian@aljex.com>.
31135
31136 2008-04-06  Jim Meyering  <meyering@redhat.com>
31137
31138         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
31139
31140 2008-04-06  Bruno Haible  <bruno@clisp.org>
31141
31142         Avoid possible error with non-ASCII bytes in UTF-8 locales.
31143         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
31144         * tests/test-printf-posix.sh: Likewise.
31145         * tests/test-vfprintf-posix.sh: Likewise.
31146         * tests/test-vprintf-posix.sh: Likewise.
31147         * tests/test-xprintf-posix.sh: Likewise.
31148
31149 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31150
31151         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
31152         hide error from 'ls', needed on OS/2.
31153         Report by Elbert Pol <elbert.pol@gmail.com>.
31154
31155 2008-04-04  Eric Blake  <ebb9@byu.net>
31156
31157         Make test-fseeko.c failures meaningful.
31158         * tests/test-fseeko.c: Print line number on failure.
31159         * tests/test-fseek.c: Likewise.
31160         Reported by Nelson H. F. Beebe.
31161
31162         Improve strtod bug detection check.
31163         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31164         required for Solaris 10.
31165         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31166
31167 2008-04-04  Bruno Haible  <bruno@clisp.org>
31168
31169         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31170         by m4/setenv.m4.
31171
31172 2008-04-03  Eric Blake  <ebb9@byu.net>
31173
31174         Ensure sane .version contents.
31175         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31176         version string.
31177         * build-aux/git-version-gen: Improve documentation.
31178
31179         Make GNU make output nicer.
31180         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31181         MAKECMDGOALS to enforce message for all command line targets.  Set
31182         srcdir for use in maint.mk.
31183
31184         Another maintainer tweak.
31185         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31186         a target that regenerates version.
31187
31188 2008-04-03  Jim Meyering  <meyering@redhat.com>
31189
31190         vc-list-files: don't cause coreutils "make po-check" failure
31191         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31192
31193 2008-04-03  Eric Blake  <ebb9@byu.net>
31194
31195         Allow VPATH usage of vc-list-files.
31196         * build-aux/vc-list-files (scriptversion): Add timestamp.
31197         (options): Add --help, --version, -C.
31198         (CVS): Support installed cvsu.
31199
31200 2008-04-02  Bruno Haible  <bruno@clisp.org>
31201
31202         Avoid some "statement with no effect" warnings from gcc.
31203         * tests/test-wctype.c (main): Explicitly ignore unused values.
31204         Reported by Jim Meyering.
31205
31206 2008-04-02  Jim Meyering  <meyering@redhat.com>
31207
31208         Avoid some warnings from "gcc -Wshadow".
31209         * tests/test-frexp.c (exp): Define to a different identifier.
31210         * tests/test-frexpl.c (exp): Likewise.
31211
31212 2008-04-03  Jim Meyering  <meyering@redhat.com>
31213
31214         bootstrap: remove dangling *.[ch] symlinks from lib
31215         * build-aux/bootstrap [dangling symlink removal]: Move find's
31216         -depth option to precede all others, to avoid a warning.
31217         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31218
31219 2008-04-02  Bruno Haible  <bruno@clisp.org>
31220
31221         Avoid some warnings from "gcc -Wshadow".
31222         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31223         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31224         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31225         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31226         Reported by Jim Meyering.
31227
31228 2008-04-01  Bruno Haible  <bruno@clisp.org>
31229
31230         Fix test to work on IRIX 6.5 with cc.
31231         * tests/test-math.c (numeric_equal): New function.
31232         (main): Use it.
31233
31234 2008-04-01  Bruno Haible  <bruno@clisp.org>
31235
31236         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31237
31238 2008-04-01  Bruno Haible  <bruno@clisp.org>
31239
31240         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31241         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31242         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31243         (Depends-on): Remove math.
31244
31245         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31246         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31247         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31248         (Depends-on): Remove math.
31249
31250         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31251         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31252         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31253         (Depends-on): Remove math.
31254         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31255         (Depends-on): Remove math.
31256
31257         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31258         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31259         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31260         (Depends-on): Remove math.
31261         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31262         (Depends-on): Remove math.
31263
31264         * tests/test-round1.c: Include nan.h.
31265         (main): Use NaNd instead of NAN.
31266         * modules/round-tests (Files): Add tests/nan.h.
31267
31268         * tests/test-trunc1.c: Include nan.h.
31269         (main): Use NaNd instead of NAN.
31270         * modules/trunc-tests (Files): Add tests/nan.h.
31271
31272         * tests/test-roundf1.c: Include nan.h.
31273         (main): Use NaNf instead of NAN.
31274         * modules/roundf-tests (Files): Add tests/nan.h.
31275
31276         * tests/test-truncf1.c: Include nan.h.
31277         (main): Use NaNf instead of NAN.
31278         * modules/truncf-tests (Files): Add tests/nan.h.
31279
31280         * tests/test-ceilf1.c: Include nan.h.
31281         (main): Use NaNf instead of NAN.
31282         * modules/ceilf-tests (Files): Add tests/nan.h.
31283
31284         * tests/test-floorf1.c: Include nan.h.
31285         (main): Use NaNf instead of NAN.
31286         * modules/floorf-tests (Files): Add tests/nan.h.
31287
31288         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31289         (main): Use NaNf instead of NAN.
31290         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31291
31292         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31293         (main): Use NaNd instead of NAN.
31294         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31295
31296         * tests/test-frexp.c: Include nan.h.
31297         (main): Use NaNd instead of NAN.
31298         * modules/frexp-tests (Files): Add tests/nan.h.
31299
31300         * lib/isnan.c: Don't include <math.h>.
31301         (FUNC): Don't use NAN macro.
31302         * modules/isnand-nolibm (Depends-on): Remove math.
31303         * modules/isnanf-nolibm (Depends-on): Remove math.
31304         * modules/isnanl (Depends-on): Remove math.
31305         * modules/isnanl-nolibm (Depends-on): Remove math.
31306
31307         * tests/nan.h: New file.
31308
31309 2008-04-01  Eric Blake  <ebb9@byu.net>
31310
31311         Fix typos.
31312         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31313         values to be the right type.
31314
31315         For now, cater to gnulib strtod inaccuracies.
31316         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31317         fractional results.  While not as nice from a QoI perspective, it
31318         is a quicker patch than correctly implementing decimal to binary
31319         rounding.
31320
31321 2008-03-31  Eric Blake  <ebb9@byu.net>
31322
31323         Guarantee a definition of NAN.
31324         * lib/math.in.h (NAN): Define if missing.
31325         * tests/test-math.c (main): Test it.
31326         * doc/posix-headers/math.texi (math.h): Document this.
31327         * lib/isnan.c (rpl_isnand): Use it.
31328         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31329         * tests/test-floorf1.c (NaN): Likewise.
31330         * tests/test-frexp.c (NaN): Likewise.
31331         * tests/test-isnand.c (NaN): Likewise.
31332         * tests/test-isnanf.c (NaN): Likewise.
31333         * tests/test-round1.c (NaN): Likewise.
31334         * tests/test-roundf1.c (NaN): Likewise.
31335         * tests/test-snprintf-posix.h (NaN): Likewise.
31336         * tests/test-sprintf-posix.h (NaN): Likewise.
31337         * tests/test-trunc1.c (NaN): Likewise.
31338         * tests/test-truncf1.c (NaN): Likewise.
31339         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31340         * tests/test-vasprintf-posix.c (NaN): Likewise.
31341         * modules/isnand-nolibm (Depends-on): Add math.
31342         * modules/isnanf-nolibm (Depends-on): Likewise.
31343         * modules/isnanl (Depends-on): Likewise.
31344         * modules/isnanl-nolibm (Depends-on): Likewise.
31345         * modules/snprintf-posix-tests (Depends-on): Likewise.
31346         * modules/sprintf-posix-tests (Depends-on): Likewise.
31347         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31348         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31349         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31350         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31351
31352 2008-03-31  Bruno Haible  <bruno@clisp.org>
31353
31354         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31355         * doc/posix-functions/strtod.texi: Likewise.
31356
31357 2008-03-31  Bruno Haible  <bruno@clisp.org>
31358
31359         * tests/test-strtod.c (main): Don't use C99 syntax.
31360
31361 2008-03-31  Bruno Haible  <bruno@clisp.org>
31362
31363         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31364         Reported by Eric Blake.
31365
31366 2008-03-31  Jim Meyering  <meyering@redhat.com>
31367
31368         Don't compare actual signbit return values.
31369         * tests/test-strtod.c (main): Rather, compare only their
31370         zero/non-zero nature.
31371
31372 2008-03-31  Eric Blake  <ebb9@byu.net>
31373
31374         More strtod documentation.
31375         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31376         failures as distinct bugs.
31377
31378 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31379
31380         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31381         Problem reported by Erik Benada in
31382         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31383
31384 2008-03-30  Bruno Haible  <bruno@clisp.org>
31385
31386         * tests/test-strtod.c: Add comments about which assertion fails on which
31387         platform.
31388         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31389
31390 2008-03-30  Eric Blake  <ebb9@byu.net>
31391
31392         Test signbit behavior on zeros.
31393         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31394         (test_signbitd, test_signbitl): Likewise.
31395
31396         More strtod touchups.
31397         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31398         sign of negative underflow, for now.  Use .5, not .1.
31399         * doc/posix-functions/strtod.texi (strtod): Mention these
31400         limitations.
31401         Reported by Jim Meyering.
31402
31403 2008-03-30  Bruno Haible  <bruno@clisp.org>
31404
31405         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31406         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31407
31408 2008-03-30  Bruno Haible  <bruno@clisp.org>
31409
31410         Avoid failure when attempting to return empty iconv results on some
31411         platforms.
31412         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31413         allocation, don't report ENOMEM when the resulting string is empty.
31414
31415 2008-03-30  Bruno Haible  <bruno@clisp.org>
31416
31417         Fix buffer overrun.
31418         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31419         Don't consider the width for tmp_length. Check count against tmp_length
31420         before doing the padding. Ensure enough allocation during padding.
31421
31422 2008-03-30  Eric Blake  <ebb9@byu.net>
31423
31424         strtod touchups.
31425         * lib/strtod.c (strtod): Avoid compiler warnings.
31426         Reported by Jim Meyering.
31427
31428 2008-03-30  Bruno Haible  <bruno@clisp.org>
31429
31430         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31431         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31432         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31433         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31434         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31435         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31436         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31437         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31438
31439         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31440         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31441         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31442         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31443         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31444         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31445         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31446         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31447
31448         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31449         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31450         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31451         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31452         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31453         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31454         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31455         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31456
31457         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31458         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31459
31460         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31461         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31462
31463         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31464         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31465
31466         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31468         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31469
31470         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31471         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31472         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31473
31474         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31475         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31476         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31477
31478         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31479         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31480         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31481
31482         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31483         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31484         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31485         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31486         (Depends-on): Add EOVERFLOW.
31487         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31488         (Depends-on): Add EOVERFLOW.
31489         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31490         (Depends-on): Add EOVERFLOW.
31491         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31492         (Depends-on): Add EOVERFLOW.
31493         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31494         (Depends-on): Add EOVERFLOW.
31495         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31496         (Depends-on): Add EOVERFLOW.
31497         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31498         (Depends-on): Add EOVERFLOW.
31499         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31500         (Depends-on): Add EOVERFLOW.
31501
31502         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31503         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31504         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31505
31506         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31508         * modules/snprintf (Depends-on): Add EOVERFLOW.
31509
31510         * lib/poll.c (EOVERFLOW): Remove fallback.
31511         * modules/poll (Depends-on): Add EOVERFLOW.
31512
31513         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31514         * modules/getugroups (Depends-on): Add EOVERFLOW.
31515
31516         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31517         * modules/getdelim (Depends-on): Add EOVERFLOW.
31518
31519         * lib/ftell.c (EOVERFLOW): Remove fallback.
31520         * modules/ftell (Depends-on): Add EOVERFLOW.
31521
31522         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31523         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31524         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31525
31526         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31527
31528         * modules/EOVERFLOW-tests: New file.
31529         * tests/test-EOVERFLOW.c: New file.
31530
31531         * modules/EOVERFLOW: New file.
31532         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31533
31534 2008-03-30  Bruno Haible  <bruno@clisp.org>
31535
31536         Fix bug introduced on 2007-06-10.
31537         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31538         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31539
31540 2008-03-30  Bruno Haible  <bruno@clisp.org>
31541
31542         Improve freadseek's efficiency after ungetc.
31543         * lib/freadseek.c: Include freadahead.h.
31544         (freadptrinc): New function, extracted from freadseek.
31545         (freadseek): Use it in a loop. Use freadahead to determine the number
31546         of loop iterations.
31547         * modules/freadseek (Depends-on): Add freadahead.
31548         (configure.ac): Require AC_C_INLINE.
31549
31550 2008-03-30  Bruno Haible  <bruno@clisp.org>
31551
31552         * lib/freadseek.c (freadseek): Don't ignore the return value of
31553         freadptr.
31554
31555 2008-03-29  Eric Blake  <ebb9@byu.net>
31556
31557         Add hex float support.
31558         * modules/strtod (Depends-on): Add c-ctype.
31559         (Link): Mention POW_LIB.
31560         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31561         whitespace between 'e' and exponent.
31562         * tests/test-strtod.c (main): Enable hex float tests.
31563         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31564         now provides.
31565
31566         Document various strtod bugs, with some fixes.
31567         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31568         "-0x", "inf", "nan", and hex constants.
31569         * doc/posix-functions/atof.texi (atof): Likewise.
31570         * modules/stdlib (Makefile.am): Support strtod.
31571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31572         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31573         detect additional strtod bugs.
31574         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31575         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31576         bool where appropriate.  Parse 'inf' and 'nan'.
31577         * tests/test-strtod.c: New file.
31578         * modules/strtod (Depends-on): Add stdbool, stdlib.
31579         (configure.ac): Turn on module indicator.
31580         * modules/strtod-tests: New module.
31581
31582 2008-03-29  Eric Blake  <ebb9@byu.net>
31583
31584         Fix ftell on mingw.
31585         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31586         * modules/ftell-tests (Depends-on): Add binary-io.
31587         * modules/ftello-tests (Depends-on): Likewise.
31588         * tests/test-ftell.c (main): Enhance test to cover behavior after
31589         ungetc.  Enforce binary mode.
31590         * tests/test-ftello.c (main): Likewise.
31591
31592         Pass test-freadseek on cygwin.
31593         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31594         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31595         ungetc buffer.
31596
31597         * tests/test-fflush2.c (main): Fix typo.
31598
31599 2008-03-29  Bruno Haible  <bruno@clisp.org>
31600
31601         * tests/test-fflush2.c (main): Temporarily disable the contents of
31602         this test.
31603         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31604         Reported by Eric Blake.
31605
31606 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31607
31608         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31609         (GC_SHA224_DIGEST_SIZE): Add.
31610
31611         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31612         (gc_hash_digest_length): Likewise.
31613         (gc_hash_buffer): Likewise.
31614
31615 2008-03-25  Bruno Haible  <bruno@clisp.org>
31616
31617         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31618         detail which gettext release to use.
31619         Reported by Simon Josefsson.
31620
31621 2008-03-26  Jim Meyering  <meyering@redhat.com>
31622
31623         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31624         * modules/gnumakefile (clean-GNUmakefile): Also, use
31625         test ... && ... || : syntax rather than if-then ... fi.
31626
31627         gnumakefile: Don't double-quote-expand $(VPATH) value.
31628         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31629
31630 2008-03-24  Eric Blake  <ebb9@byu.net>
31631
31632         Alter GNUmakefile to install into top directory.
31633         * modules/maintainer-makefile: Split, and add dependency...
31634         * modules/gnumakefile: to this new module.
31635         * build-aux/GNUmakefile: Move...
31636         * top/GNUmakefile: ...here.
31637         * build-aux/maint.mk: Move...
31638         * top/maint.mk: ...here.
31639         * MODULES.html.sh (Support for maintaining...): Document new
31640         module.
31641
31642 2008-03-23  Bruno Haible  <bruno@clisp.org>
31643
31644         * gnulib-tool: New options --vc-files, --no-vc-files.
31645         (func_usage): Document them.
31646         (vc_files): New variable.
31647         (func_import): Consider vc_files.
31648         (func_create_testdir): Set vc_files to empty.
31649         Suggested by Jim Meyering and Karl Berry.
31650
31651 2008-03-23  Bruno Haible  <bruno@clisp.org>
31652
31653         Fix regex compilation error on HP-UX 11.
31654         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31655         * modules/regex (Files): Add m4/mbstate_t.m4.
31656         Reported by Ton Voon <ton.voon@altinity.com>.
31657
31658 2008-03-23  Bruno Haible  <bruno@clisp.org>
31659
31660         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31661
31662 2008-03-23  Eric Blake  <ebb9@byu.net>
31663             Bruno Haible  <bruno@clisp.org>
31664
31665         Install files from top/ in the destination directory.
31666         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31667         augmentation also for the files from top/.
31668         (func_import, func_create_testdir): Rewrite file names:
31669         top/filename -> filename.
31670
31671 2008-03-23  Bruno Haible  <bruno@clisp.org>
31672
31673         Tweak "gnulib --version" output.
31674         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31675
31676 2008-03-23  Bruno Haible  <bruno@clisp.org>
31677
31678         Tweak "gnulib --version" output.
31679         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31680         rather than contents of ChangeLog, when possible.
31681
31682 2008-03-21  Eric Blake  <ebb9@byu.net>
31683
31684         More --version tweaks.
31685         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31686         date of last ChangeLog entry.
31687
31688 2008-03-21  Jim Meyering  <meyering@redhat.com>
31689
31690         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31691
31692 2008-03-20  Eric Blake  <ebb9@byu.net>
31693
31694         VPATH fix.
31695         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31696
31697 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31698
31699         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31700         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31701
31702 2008-03-20  Eric Blake  <ebb9@byu.net>
31703
31704         Sync GNUmakefile with coreutils.
31705         * build-aux/GNUmakefile (have-Makefile): Rename...
31706         (_have-Makefile): ...to this, for namespace consideration.
31707         (GNUmakefile.cfg): Include, if present.
31708         (_autoreconf): Define a default.
31709         (_is-dist-target): New rule for rebuilds to pick up intra-release
31710         version.
31711         (maint-cfg.mk): Rename...
31712         (cfg.mk): ...to this.
31713
31714 2008-03-18  Jim Meyering  <meyering@redhat.com>
31715
31716         New script and module: mktempd
31717         * MODULES.html.sh (maint+release support): Add mktempd.
31718         * build-aux/mktempd: New file.
31719         * modules/mktempd: New file.
31720
31721 2008-03-15  Jim Meyering  <meyering@redhat.com>
31722
31723         Undo last change.
31724         * lib/sha1.c, lib/md5.c: 63 != ~63.
31725         Reported by Andreas Schwab.
31726
31727         sha1.c, md5.c: Hoist a redundant expression.
31728         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31729         "ctx->buflen" only once, before calling *_process_block.
31730         * lib/md5.c (md5_process_bytes): Likewise.
31731
31732 2008-03-14  Eric Blake  <ebb9@byu.net>
31733
31734         Bump copyright year in files generated by gnulib-tool.
31735         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31736         gnulib-tool, rather than hard-coding it.
31737
31738         Fix 'gnulib-tool --version' output to work with git.
31739         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31740         (startup): ...here.
31741         (func_version): Use it to invoke git-version-gen, rather than
31742         relying on CVS keyword expansion.  Modernize wording.
31743         (cvsdatestamp, last_checkin_date, version): Kill unused
31744         variables.
31745
31746 2008-03-12  Jim Meyering  <meyering@redhat.com>
31747
31748         Recognize optional cast of the argument to free.
31749         * build-aux/useless-if-before-free: Update regexps.
31750
31751         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31752
31753 2008-03-11  Bruno Haible  <bruno@clisp.org>
31754
31755         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31756         by a single package.
31757         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31758         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31759         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31760         Reported by Sam Steingold <sds@gnu.org>.
31761
31762 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31763
31764         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31765         repositories.
31766
31767 2008-03-11  Bruno Haible  <bruno@clisp.org>
31768
31769         Avoid conflicts between local macro definitions.
31770         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31771         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31772
31773 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31774             Bruno Haible  <bruno@clisp.org>
31775
31776         Make va_copy work with some version of xlc on AIX 5.1.
31777         * lib/stdarg.in.h: New file.
31778         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31779         On AIX, use a <stdarg.h> file substitute.
31780         * modules/stdarg (Files): Add lib/stdarg.in.h.
31781         (Depends-on): Add include_next.
31782         (Makefile.am): Build a stdarg.h substitute if requested.
31783         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31784
31785 2008-03-10  Bruno Haible  <bruno@clisp.org>
31786
31787         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31788         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31789         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31790
31791 2008-03-10  Bruno Haible  <bruno@clisp.org>
31792
31793         * modules/stdlib (Depends-on): Add include_next, remove
31794         absolute-header.
31795
31796 2008-03-09  Bruno Haible  <bruno@clisp.org>
31797
31798         * lib/freadahead.h (freadahead): Document more precisely.
31799         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31800         the sum of both buffer sizes.
31801         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31802         * NEWS: Document the change.
31803
31804 2008-03-09  Bruno Haible  <bruno@clisp.org>
31805
31806         Extend freadptr to return also the buffer size.
31807         * lib/freadptr.h (freadptr): Add sizep argument.
31808         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31809         (freadptr): Add sizep argument. Determine buffer size like freadahead
31810         does.
31811         * tests/test-freadptr.c: Don't include freadahead.h.
31812         (main): Adapt for new calling convention of freadptr.
31813         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31814         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31815         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31816         tests/test-freadptr2.sh.
31817         (Depends): Remove freadahead.
31818         (TESTS): Add test-freadptr2.sh.
31819         (check_PROGRAMS): Add test-freadptr2.
31820
31821 2008-03-09  Bruno Haible  <bruno@clisp.org>
31822
31823         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31824         Report and solution by Simon Josefsson.
31825
31826 2008-03-06  Bruno Haible  <bruno@clisp.org>
31827
31828         Make fflush after ungetc work on BSD platforms.
31829         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31830         * tests/test-fflush2.c: New file.
31831         * tests/test-fflush2.sh: New file.
31832         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31833         tests/test-fflush2.c.
31834         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31835         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31836
31837 2008-03-06  Eric Blake  <ebb9@byu.net>
31838
31839         Likewise for ftello.
31840         * modules/ftello (Dependencies): Add extensions.
31841         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31842
31843 2008-03-06  Bruno Haible  <bruno@clisp.org>
31844
31845         * modules/fseeko (Dependencies): Add extensions.
31846         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31847         Needed on glibc systems.
31848
31849 2008-03-06  Bruno Haible  <bruno@clisp.org>
31850
31851         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31852         email address.
31853         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31854
31855 2008-03-06  Bruno Haible  <bruno@clisp.org>
31856
31857         * users.txt: Add libgnupdf.
31858
31859 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31860
31861         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31862         (Header File Substitutes, Function Substitutes,
31863         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31864         (Build robot for gnulib): Fix typo.
31865
31866 2008-03-06  Bruno Haible  <bruno@clisp.org>
31867
31868         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31869         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31870
31871 2008-03-06  Bruno Haible  <bruno@clisp.org>
31872
31873         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31874         * doc/gnulib.texi: Include it.
31875
31876 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31877
31878         * modules/func (License): Change license to unlimited; there was
31879         no LGPL parts in the module anyway.
31880
31881 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31882
31883         * modules/__func__: Renamed to modules/func.
31884         * modules/__func__-tests: Renamed to modules/func-tests.
31885         * tests/test-__func__.c: Renamed to tests/test-func.c.
31886         * m4/__func__.m4: Renamed to m4/func.m4.
31887         * doc/gnulib.texi (__func__): Section renamed to func.
31888         Suggested by Eric Blake <ebb9@byu.net>.
31889
31890 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31891
31892         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31893         about __func__.  Make example self-contained.  Suggested by Eric
31894         Blake <ebb9@byu.net>.
31895
31896         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31897         Suggested by Eric Blake <ebb9@byu.net>.
31898
31899 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31900
31901         * modules/__func__: New file.
31902         * modules/__func__-tests: New file.
31903         * tests/test-__func__.c: New file.
31904         * m4/__func__.m4: New file.
31905         * doc/gnulib.texi (__func__): Document __func__ module.
31906
31907 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31908
31909         * modules/byteswap (License): Re-license as LGPLv2+.
31910
31911 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31912
31913         * doc/Makefile: Add pdf target.
31914
31915 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31916
31917         * modules/inline (License): Use 'unlimited', since there are only
31918         *.m4 files in this module.
31919
31920 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31921             Bruno Haible  <bruno@clisp.org>
31922
31923         Add support for HP C 7.1 on OpenVMS 8.3.
31924         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31925
31926 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31927
31928         Update VMS specifics.
31929         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31930
31931 2008-03-02  Jim Meyering  <meyering@redhat.com>
31932
31933         Remove the last dependency on the "free" module.
31934         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31935         Reported by Bob Proulx.
31936
31937         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31938
31939         Remove useless "if" tests before free.  Deprecate "free" module.
31940         * doc/posix-functions/free.texi: Mention that this
31941         module is no longer useful.
31942         * modules/free (Notice): Say this module is obsolete.
31943         * modules/readutmp (Depends-on): Remove free.
31944         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31945         * lib/putenv.c (putenv): Likewise.
31946         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31947         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31948         * tests/test-c-strcasestr.c (main): Likewise.
31949         * tests/test-c-strstr.c (main): Likewise.
31950         * tests/test-mbscasestr1.c (main): Likewise.
31951         * tests/test-mbscasestr2.c (main): Likewise.
31952         * tests/test-mbsstr1.c (main): Likewise.
31953         * tests/test-mbsstr2.c (main): Likewise.
31954         * tests/test-memmem.c (main): Likewise.
31955         * tests/test-strcasestr.c (main): Likewise.
31956         * tests/test-striconv.c (main): Likewise.
31957         * tests/test-striconveh.c (main): Likewise.
31958         * tests/test-striconveha.c (main): Likewise.
31959         * tests/test-strstr.c (main): Likewise.
31960
31961         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31962
31963         bootstrap: sync from coreutils again
31964         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31965
31966 2008-03-01  Jim Meyering  <meyering@redhat.com>
31967
31968         bootstrap: sync from coreutils
31969         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31970         also when the target doesn't exist.
31971
31972 2008-03-01  Eric Blake  <ebb9@byu.net>
31973
31974         Fix bugs in last patch.
31975         * lib/memchr2.c (memchr2): Fix typo.
31976         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31977         extension.
31978         Reported by Bruce Korb.
31979
31980         New module 'memchr2'.
31981         * modules/memchr2: New file.
31982         * modules/memchr2-tests: Likewise.
31983         * lib/memchr2.h: Likewise.
31984         * lib/memchr2.c: Likewise, based on memchr.c.
31985         * tests/test-memchr2.c: New test.
31986         * MODULES.html.sh (String handling): Add memchr2.
31987
31988 2008-02-29  Bruno Haible  <bruno@clisp.org>
31989
31990         * modules/freadseek-tests: New file.
31991         * tests/test-freadseek.sh: New file.
31992         * tests/test-freadseek.c: New file.
31993
31994         New module 'freadseek'.
31995         * modules/freadseek: New file.
31996         * lib/freadseek.h: New file.
31997         * lib/freadseek.c: New file.
31998         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
31999
32000 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32001
32002         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
32003         wydawca.
32004
32005         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
32006         program_invocation_name and program_invocation_short_name are
32007         present.
32008
32009 2008-02-28  Bruno Haible  <bruno@clisp.org>
32010
32011         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
32012         * tests/test-freadptr.sh: Also test non-seekable stdin.
32013
32014 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
32015
32016         * build-aux/bootstrap (source_base, m4_base)
32017         (doc_base, tests_base): New variables.
32018         (gnulib_tool_options): Do not hardcode base directories, use
32019         the above variables instead.
32020
32021 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
32022
32023         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
32024
32025 2008-02-28  Bruno Haible  <bruno@clisp.org>
32026
32027         * modules/freadptr-tests: New file.
32028         * tests/test-freadptr.sh: New file.
32029         * tests/test-freadptr.c: New file.
32030
32031         New module 'freadptr'.
32032         * modules/freadptr: New file.
32033         * lib/freadptr.h: New file.
32034         * lib/freadptr.c: New file.
32035         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
32036
32037 2008-02-26  Karl Berry  <karl@freefriends.org>
32038
32039         Sync from Libtool:
32040         * libltdl/argz.c (argz_add, argz_count): New functions.
32041         * libltdl/argz.in.h: Declare them.
32042         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
32043
32044 2008-02-22  Bruno Haible  <bruno@clisp.org>
32045
32046         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
32047         is a pointer type.  Needed for HP-UX 10.
32048         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
32049         * doc/posix-functions/gmtime_r.texi: Likewise.
32050         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32051
32052 2008-02-24  Bruno Haible  <bruno@clisp.org>
32053
32054         * modules/environ-tests: New file.
32055         * tests/test-environ.c: New file.
32056
32057         New module 'environ'.
32058         * modules/environ: New file.
32059         * lib/unistd.in.h (environ): New declaration.
32060         * m4/environ.m4: New file.
32061         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
32062         after use.
32063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
32064         HAVE_DECL_ENVIRON.
32065         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
32066         HAVE_DECL_ENVIRON.
32067         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
32068         wrong claim that 'environ' is missing on some systems.
32069         * modules/execute (Depends-on): Add environ.
32070         * lib/execute.c (environ): Remove fallback declaration.
32071         * modules/pipe (Depends-on): Add environ.
32072         * lib/pipe.c (environ): Remove fallback declaration.
32073         * modules/setenv (Depends-on): Add environ.
32074         * lib/setenv.c (environ): Remove fallback declaration.
32075         * modules/unsetenv (Depends-on): Add environ.
32076         * lib/unsetenv.c (environ): Remove fallback declaration.
32077         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
32078         m4/environ.m4.
32079         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
32080         (gl_PREREQ_UNSETENV): Likewise.
32081
32082 2008-02-24  Bruno Haible  <bruno@clisp.org>
32083
32084         * doc/posix-functions/environ.texi: Document the MacOS X problem.
32085
32086 2008-02-20  Bob Proulx  <bob@proulx.com>
32087
32088         Enable use of older two part flavor 'git describe'.
32089         * build-aux/git-version-gen: If using the older two part flavor of
32090         git version then recreate the third part now present in the
32091         newer three part flavor of git describe.
32092
32093 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
32094
32095         * lib/fts.c (fts_build): Typo correction to comment.
32096
32097 2008-02-17  Bruno Haible  <bruno@clisp.org>
32098
32099         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
32100         generating no-op conflicts.
32101
32102 2008-02-17  Bruno Haible  <bruno@clisp.org>
32103
32104         Speed up by 10%.
32105         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
32106         result_entries, rather than an index-based loop.
32107
32108 2008-02-17  Bruno Haible  <bruno@clisp.org>
32109
32110         Speed up by 25%.
32111         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
32112         'hashcode_cached'.
32113         (entry_create): New function.
32114         (entry_hashcode): Use the cached hashcode if possible.
32115         (read_changelog_file, try_split_merged_entry): Use entry_create.
32116
32117 2008-02-17  Bruno Haible  <bruno@clisp.org>
32118
32119         Speed up from O(n^2) to O(n) for long ChangeLog files.
32120         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
32121         (read_changelog_file): Change implementation of entries_reversed list
32122         to rbtreehash.
32123         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
32124
32125 2008-02-17  Bruno Haible  <bruno@clisp.org>
32126
32127         New option --split-merged-entry.
32128         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
32129         (find_paragraph_end, try_split_merged_entry): New functions.
32130         (long_options): Add option --split-merged-entry.
32131         (usage): Document option --split-merged-entry.
32132         (main): Implement option --split-merged-entry.
32133         Reported by Eric Blake.
32134
32135 2008-02-17  Bruno Haible  <bruno@clisp.org>
32136
32137         * lib/git-merge-changelog.c: Include c-strstr.h.
32138         (main): Support the "git pull --rebase" situation.
32139         * modules/git-merge-changelog (Depends-on): Add c-strstr.
32140         Reported by Eric Blake.
32141
32142 2008-02-16  Eric Blake  <ebb9@byu.net>
32143
32144         Avoid doubling \ in common case of "c-maybe" quoting style.
32145         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
32146         eliding outer quotes.
32147         * lib/quotearg.h: Document this.
32148         * tests/test-quotearg.c (result_strings, inputs, results_g)
32149         (flag_results, locale_results): Test it by adding a new string to
32150         each test group.
32151         (compare_strings): Test new string.
32152
32153 2008-02-13  Eric Blake  <ebb9@byu.net>
32154
32155         Avoid trigraph quoting in default output.
32156         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32157         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32158         unless explicitly requested.
32159         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32160
32161 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32162
32163         Don't rely on signed integer overflowing to negative value.
32164         * lib/getugroups.c (getugroups): Include <limits.h>.
32165         Instead, compare against INT_MAX, and increment only if the test passes.
32166
32167 2008-02-13  Jim Meyering  <meyering@redhat.com>
32168         and Eric Blake  <ebb9@byu.net>
32169
32170         Avoid shadowing warning and compile errors on Linux.
32171         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32172         forwarding macros on Linux.
32173         (dcgettext): Define a stub, for Linux.
32174         (results_g, main): Avoid warnings.
32175
32176 2008-02-12  Eric Blake  <ebb9@byu.net>
32177
32178         Silence warning in last patch.
32179         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32180
32181         Quotearg part 4: add tests, fix c-maybe colon quoting.
32182         * lib/quotearg.h: Improve documentation.
32183         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32184         escapes when adding outer quotes.  When quoting trigraphs, use
32185         valid C notation.  When quoting NUL, omit extra characters if next
32186         character is not digit.  Alter prototype.
32187         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32188         callers.
32189         * modules/quotearg-tests: New module.
32190         * tests/test-quotearg.c: New test.
32191
32192 2008-02-07  Eric Blake  <ebb9@byu.net>
32193
32194         Quotearg part 3: add flag to control outer quote elision.
32195         * lib/quotearg.h (c_maybe_quoting_style): New style.
32196         (enum quoting_flags): Better documentation of flags.
32197         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32198         c-maybe style.
32199         (quotearg_buffer_restyled): Handle new flag to elide outer
32200         quotes.
32201
32202         Quotearg part 2: add flag that can control NUL elision.
32203         * lib/quotearg.h (set_quoting_flags): New prototype.
32204         * lib/quotearg.c (struct quoting_options): Add flag field.
32205         (set_quoting_flags): New function.
32206         (quotearg_buffer_restyled): Add flags parameter.
32207         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32208         (quotearg_n_options): Set the flag, since length cannot be
32209         returned.
32210         (quoting_options_from_style): Default flags correctly.
32211
32212         Quotearg part 1: more wrappers, restore quotearg_char state.
32213         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32214         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32215         (quotearg_colon_mem): New wrappers.
32216         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32217         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32218         functions.
32219         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32220         (quotearg_colon_mem): New functions.
32221
32222 2008-02-11  Bruno Haible  <bruno@clisp.org>
32223
32224         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32225         library in the current directory: it does not work with parallel make.
32226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32227
32228 2008-02-11  Bruno Haible  <bruno@clisp.org>
32229
32230         * .gitattributes: New file.
32231
32232 2008-02-11  Jim Meyering  <meyering@redhat.com>
32233
32234         useless-if-before-free: Fix reversed exit values.
32235         * build-aux/useless-if-before-free: Use correct values
32236         for EXIT_MATCH and EXIT_NO_MATCH.
32237
32238         * build-aux/useless-if-before-free: Close stdout carefully.
32239
32240 2008-02-10  Bruno Haible  <bruno@clisp.org>
32241
32242         New module 'git-merge-changelog'.
32243         * modules/git-merge-changelog: New file.
32244         * lib/git-merge-changelog.c: New file.
32245
32246 2008-02-10  Jim Meyering  <meyering@redhat.com>
32247
32248         useless-if-before-free: New option: --list (-l).
32249
32250         useless-if-before-free: Don't exit immediately upon open failure.
32251         * build-aux/useless-if-before-free: Exit 2 for errors.
32252         Upon failure to open a file, don't exit immediately.
32253         Rather, just warn and continue with any remaining files.
32254
32255 2008-02-10  Bruno Haible  <bruno@clisp.org>
32256
32257         New abstract list operation 'node_set_value'.
32258         * lib/gl_list.h (gl_list_node_set_value): New function.
32259         (struct gl_list_implementation): New field node_set_value.
32260         * lib/gl_list.c (gl_list_node_set_value): New function.
32261         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32262         (gl_array_list_implementation): Update.
32263         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32264         (gl_carray_list_implementation): Update.
32265         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32266         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32267         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32268         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32269         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32270         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32271         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32272         Update.
32273         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32274         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32275         (gl_sublist_list_implementation): Update.
32276
32277 2008-02-10  Bruno Haible  <bruno@clisp.org>
32278
32279         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32280         Needed when ELEMENT is #defined to 'some_type *'.
32281
32282 2008-02-10  Jim Meyering  <meyering@redhat.com>
32283
32284         New script and module: useless-if-before-free
32285         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32286         * build-aux/useless-if-before-free: New file.
32287         * modules/useless-if-before-free: New file.
32288
32289         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32290
32291         xstrtol_error: Fix typo.
32292         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32293         s/exit_failure/exit_status/.
32294
32295 2008-02-09  Jim Meyering  <meyering@redhat.com>
32296
32297         New script and module: gitlog-to-changelog
32298         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32299         * modules/gitlog-to-changelog: New file.
32300         * build-aux/gitlog-to-changelog: New file.
32301
32302 2008-02-08  Jim Meyering  <meyering@redhat.com>
32303
32304         Avoid two "parameter unused" warnings.
32305         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32306         Mark "st" as used.
32307
32308         Use "git COMMAND", not "git-COMMAND".
32309         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32310         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32311         * build-aux/git-version-gen: Use "git status", not "git-status".
32312
32313 2008-02-07  Bruno Haible  <bruno@clisp.org>
32314
32315         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32316         Avoids a crash on Windows Vista.
32317         Reported by Adam Strzelecki <ono@java.pl> via
32318         Simon Josefsson <simon@josefsson.org>.
32319
32320 2008-02-06  Bruno Haible  <bruno@clisp.org>
32321
32322         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32323         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32324         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32326         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32327         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32328         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32329         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32337         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32338         left-adjust flag.
32339         * tests/test-snprintf-posix.h (test_function): Likewise.
32340         * tests/test-sprintf-posix.h (test_function): Likewise.
32341         * tests/test-vasprintf-posix.c (test_function): Likewise.
32342         * doc/posix-functions/fprintf.texi: Update.
32343         * doc/posix-functions/printf.texi: Update.
32344         * doc/posix-functions/snprintf.texi: Update.
32345         * doc/posix-functions/sprintf.texi: Update.
32346         * doc/posix-functions/vfprintf.texi: Update.
32347         * doc/posix-functions/vprintf.texi: Update.
32348         * doc/posix-functions/vsnprintf.texi: Update.
32349         * doc/posix-functions/vsprintf.texi: Update.
32350         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32351
32352 2008-02-06  Bruno Haible  <bruno@clisp.org>
32353
32354         Fix bug introduced on 2008-01-26.
32355         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32356
32357 2008-02-06  Bruno Haible  <bruno@clisp.org>
32358
32359         Fix bug introduced on 2007-06-10.
32360         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32361         !NEED_PRINTF_FLAG_ZERO.
32362
32363 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32364
32365         getloadavg: use libperfstat on AIX5
32366         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32367
32368 2008-02-03  Bruno Haible  <bruno@clisp.org>
32369
32370         * lib/diffseq.h: Add comments about required #includes.
32371         Reported by Michael Biggs <gnulib@doubleplum.net>.
32372
32373 2008-02-01  Bruno Haible  <bruno@clisp.org>
32374
32375         * users.txt: Add gnuit.
32376
32377 2008-01-31  Bruno Haible  <bruno@clisp.org>
32378
32379         * lib/md4.c (set_uint32): Mark as inline.
32380         * lib/md5.c (set_uint32): Likewise.
32381         * lib/sha1.c (set_uint32): Likewise.
32382         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32383         * m4/md5.m4 (gl_MD5): Likewise.
32384         * m4/sha1.m4 (gl_SHA1): Likewise.
32385
32386 2008-01-31  Jim Meyering  <meyering@redhat.com>
32387
32388         Use "sizeof VAR", rather than a literal "4".
32389         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32390         * lib/md4.c (md4_read_ctx): Likewise.
32391         * lib/sha1.c (sha1_read_ctx): Likewise.
32392
32393 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32394
32395         * tests/test-sha1.c: New file, based on test-md5.c.
32396
32397         * modules/crypto/sha1-tests: New file.
32398
32399 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32400
32401         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32402
32403 2008-01-31  Jim Meyering  <meyering@redhat.com>
32404
32405         Prefer "sizeof v" over the equivalent "4".
32406         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32407         * lib/md5.c (set_uint32): Likewise.
32408         * lib/sha1.c (set_uint32): Likewise.
32409
32410 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32411
32412         * lib/sha1.c (set_uint32): Mark function as static.
32413
32414 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32415
32416         md2: clarify comments to say that alignment is not required.
32417         * lib/md2.h: Remove warning about alignment in comment.
32418         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32419         never been required.
32420
32421 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32422
32423         md4: adapt alignment constraint fix from sha1.
32424         * lib/md4.c (set_uint32): New function, from sha1.c
32425         (md4_read_ctx): Use it.
32426         (md4_finish_ctx): Doc fix.
32427         * lib/md4.h: Doc fix.
32428
32429 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32430
32431         md5: adapt alignment constraint fix from sha1.
32432         * lib/md5.c (set_uint32): New function, from sha1.c
32433         (md5_read_ctx): Use it.
32434         (md5_finish_ctx): Doc fix.
32435         * lib/md5.h: Doc fix.
32436
32437 2008-01-30  Peter Palfrader  <weasel@debian.org>
32438
32439         sha1: remove the result buffer alignment constraint
32440         * lib/sha1.c (set_uint32): New function.
32441         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32442         constraint.
32443         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32444         * lib/sha1.h: Likewise.
32445
32446 2008-01-30  Andreas Schwab  <schwab@suse.de>
32447             Bruno Haible  <bruno@clisp.org>
32448
32449         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32450         correct definition of LDBL_MIN_EXP.
32451
32452 2008-01-30  Karl Berry  <karl@gnu.org>
32453
32454         * config/srclist-update: try to preserve x bit on updates.
32455         * config/srclistvars.sh: update for karl.
32456
32457 2008-01-29  Jim Meyering  <meyering@redhat.com>
32458
32459         vasnprintf.c: Avoid warning about unused label
32460         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32461         "overflow" label definition and associated code with the
32462         same cpp condition that guards the sole use of that label.
32463
32464 2008-01-26  Bruno Haible  <bruno@clisp.org>
32465
32466         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32467         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32468         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32469         * lib/isnanl-nolibm.h (isnanl): Likewise.
32470         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32471
32472 2008-01-26  Bruno Haible  <bruno@clisp.org>
32473
32474         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32475         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32476
32477 2008-01-26  Bruno Haible  <bruno@clisp.org>
32478
32479         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32480         GCC >= 4.0 built-in.
32481         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32482
32483 2008-01-26  Bruno Haible  <bruno@clisp.org>
32484
32485         Rename isnan, applicable to 'double' only, to isnand.
32486         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32487         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32488         (configure.ac): Update.
32489         (Include): Replace "isnan.h" with "isnand.h".
32490         * m4/isnand.m4: Renamed from m4/isnan.m4.
32491         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32492         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32493         instead of isnan.c.
32494         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32495         instead of HAVE_ISNAN_IN_LIBC.
32496         (isnand): Renamed from isnan.
32497         * lib/isnand.c: New file.
32498         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32499         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32500         (Makefile.am): Update.
32501         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32502         Include isnand.h instead of isnan.h.
32503         (main): Test isnand instead of isnan.
32504         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32505         isnan-nolibm.
32506         * modules/frexp (Depends-on): Likewise.
32507         * modules/frexp-tests (Depends-on): Likewise.
32508         * modules/frexp-nolibm (Depends-on): Likewise.
32509         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32510         * modules/isfinite (Depends-on): Likewise.
32511         * modules/round-tests (Depends-on): Likewise.
32512         * modules/signbit (Depends-on): Likewise.
32513         * modules/signbit-tests (Depends-on): Likewise.
32514         * modules/snprintf-posix (Depends-on): Likewise.
32515         * modules/sprintf-posix (Depends-on): Likewise.
32516         * modules/trunc-tests (Depends-on): Likewise.
32517         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32518         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32519         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32520         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32521         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32522         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32523         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32524         * modules/vasnprintf-posix (Depends-on): Likewise.
32525         * modules/vasprintf-posix (Depends-on): Likewise.
32526         * modules/vfprintf-posix (Depends-on): Likewise.
32527         * modules/vsnprintf-posix (Depends-on): Likewise.
32528         * modules/vsprintf-posix (Depends-on): Likewise.
32529         * lib/frexp.c: Include isnand.h instead of isnan.h.
32530         (ISNAN): Set to isnand instead of isnan.
32531         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32532         (gl_isfinited): Use isnand instead of isnan.
32533         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32534         (gl_signbitd): Use isnand instead of isnan.
32535         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32536         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32537         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32538         (main): Use isnand instead of isnan.
32539         * tests/test-round1.c: Include isnand.h.
32540         (main): Use isnand instead of isnan.
32541         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32542         (ISNAN): Set to isnand instead of isnan.
32543         * tests/test-trunc1.c: Include isnand.h.
32544         (main): Use isnand instead of isnan.
32545         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32546         (equal): Use isnand instead of isnan.
32547         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32548         isnand-nolibm.
32549         * NEWS: Mention the change.
32550
32551 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32552             Bruno Haible  <bruno@clisp.org>
32553
32554         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32555         the GCC builtins for signbits are present and set
32556         REPLACE_SIGNBIT_USING_GCC if so.
32557         * lib/math.in.h (signbit): Define using GCC builtins if
32558         REPLACE_SIGNBIT_USING_GCC is set.
32559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32560         REPLACE_SIGNBIT_USING_GCC.
32561         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32562
32563 2008-01-25  Jim Meyering  <meyering@redhat.com>
32564
32565         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32566         * lib/poll.c: Include <config.h>, not "config.h".
32567         * tests/test-getaddrinfo.c: Likewise.
32568
32569 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32570
32571         * modules/sockets-tests: New file.
32572
32573 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32574
32575         * modules/sockets: New module, can be used to call WSA_Startup and
32576         WSA_Cleanup when needed.
32577
32578         * lib/sockets.h, lib/sockets.c: New files.
32579
32580         * m4/sockets.m4: New file.
32581
32582         * tests/test-sockets.c: New file.
32583
32584 2008-01-19  Bruno Haible  <bruno@clisp.org>
32585
32586         * doc/posix-headers: Renamed from doc/headers.
32587         * doc/posix-functions: Renamed from doc/functions.
32588         * doc/gnulib.texi: Update.
32589
32590 2008-01-19  Bruno Haible  <bruno@clisp.org>
32591
32592         * doc/glibc-functions/strcasestr.texi: Include contents of
32593         doc/functions/strcasestr.texi, fixing the list of platforms.
32594         * doc/functions/strcasestr.texi: Remove file.
32595
32596 2008-01-19  Bruno Haible  <bruno@clisp.org>
32597
32598         * doc/glibc-functions/memmem.texi: Include contents of
32599         doc/functions/memmem.texi.
32600         * doc/functions/memmem.texi: Remove file.
32601
32602 2008-01-18  Bruno Haible  <bruno@clisp.org>
32603
32604         * doc/glibc-functions/*.texi: New files.
32605         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32606         to use the new files.
32607
32608 2008-01-17  Bruno Haible  <bruno@clisp.org>
32609
32610         * tests/test-gethostname.c (main): Fix printf statement.
32611
32612 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32613
32614         * modules/gethostname-tests: New file.
32615
32616         * tests/test-gethostname.c: New file.
32617
32618 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32619
32620         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32621         used by the UNAME case.  Reported by Bruno Haible
32622         <bruno@clisp.org>.
32623
32624 2008-01-17  Eric Blake  <ebb9@byu.net>
32625
32626         Convert c-strcasestr to be more efficient.
32627         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32628         (Depends-on): Add c-strcase, remove malloca, strnlen.
32629         * tests/test-c-strcasestr.c (main): Enhance test.
32630         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32631
32632 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32633
32634         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32635         Use it in creating po/Makevars.
32636
32637 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32638
32639         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32640         Applications that requires it should initialize libgcrypt
32641         manually.
32642
32643 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32644
32645         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32646
32647 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32648
32649         Fix problem with getdate on mingw32 reported by Simon Josefsson
32650         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32651         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32652         tzname", when deciding whether to declare tzname.
32653         * lib/strftime.c (tzname): Likewise.
32654
32655 2008-01-15  Bruno Haible  <bruno@clisp.org>
32656
32657         Work around a MacOS X 10.5 bug in frexpl().
32658         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32659         * doc/functions/frexpl.texi: Document the bug.
32660         Reported by Elias Pipping <pipping@gentoo.org>.
32661
32662 2008-01-14  Eric Blake  <ebb9@byu.net>
32663
32664         Touch up previous patch.
32665         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32666         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32667
32668         Convert strcasestr module to use Two-Way algorithm.
32669         * modules/strcasestr-simple: New module, based on the old
32670         strcasestr, but with Two-Way rather than KMP.
32671         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32672         * lib/string.in.h (rpl_strcasestr): Declare.
32673         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32674         performance.
32675         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32676         * modules/string (Makefile.am): Support strcasestr.
32677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32678         * modules/strcasestr-tests (Depends-on): Check for alarm.
32679         * tests/test-strcasestr.c: Augment test.
32680         * lib/str-two-way.h: Clean up stray macro.
32681         * NEWS: Document new module.
32682         * MODULES.html.sh (string handling): Likewise.
32683         * doc/functions/strcasestr.texi: New file.
32684         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32685         here, since it is not a POSIX function.
32686
32687 2008-01-14  Colin Watson  <cjwatson@debian.org>
32688             Bruno Haible  <bruno@clisp.org>
32689
32690         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32691         works fine; if not, set REPLACE_STRSIGNAL.
32692         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32694         REPLACE_STRSIGNAL.
32695         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32696         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32697         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32698
32699 2008-01-14  Bruno Haible  <bruno@clisp.org>
32700
32701         * modules/strsignal (Include): Change to <string.h>.
32702
32703 2008-01-14  Colin Watson  <cjwatson@debian.org>
32704
32705         * modules/argp (Notice): Add a notice recommending to change
32706         XGETTEXT_OPTIONS.
32707         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32708
32709 2008-01-13  Colin Watson  <cjwatson@debian.org>
32710
32711         * modules/strsignal-tests: New file.
32712         * tests/test-strsignal.c: New file.
32713
32714         * lib/strsignal.c: New file, from glibc with modifications.
32715         * lib/siglist.h: New file, from glibc with modifications.
32716         * lib/string.in.h (strsignal): New declaration.
32717         * m4/strsignal.m4: New file.
32718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32719         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32720         * modules/strsignal: New file.
32721         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32722         HAVE_DECL_STRSIGNAL.
32723
32724 2008-01-13  Bruno Haible  <bruno@clisp.org>
32725
32726         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32727         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32728         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32729         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32730
32731 2008-01-13  Bruno Haible  <bruno@clisp.org>
32732
32733         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32734         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32735         * lib/argp.h (__attribute__): Likewise.
32736         * lib/c-stack.c (__attribute__): Likewise.
32737         * lib/error.h (__attribute__): Likewise.
32738         * lib/fts.c (__attribute__): Likewise.
32739         * lib/openat.h (__attribute__): Likewise.
32740         * lib/stdio.in.h (__attribute__): Likewise.
32741         * lib/string.in.h (__attribute__): Likewise.
32742         * lib/utimens.c (__attribute__): Likewise.
32743         * lib/vasnprintf.h (__attribute__): Likewise.
32744         * lib/xalloc.h (__attribute__): Likewise.
32745         * lib/xprintf.h (__attribute__): Likewise.
32746         * lib/xstrtol.h (__attribute__): Likewise.
32747         * lib/xvasprintf.h (__attribute__): Likewise.
32748
32749 2008-01-12  Bruno Haible  <bruno@clisp.org>
32750
32751         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32752         * doc/glibc-headers/a.out.texi: New file.
32753         * doc/glibc-headers/aliases.texi: New file.
32754         * doc/glibc-headers/alloca.texi: New file.
32755         * doc/glibc-headers/ar.texi: New file.
32756         * doc/glibc-headers/argp.texi: New file.
32757         * doc/glibc-headers/argz.texi: New file.
32758         * doc/glibc-headers/byteswap.texi: New file.
32759         * doc/glibc-headers/crypt.texi: New file.
32760         * doc/glibc-headers/endian.texi: New file.
32761         * doc/glibc-headers/envz.texi: New file.
32762         * doc/glibc-headers/err.texi: New file.
32763         * doc/glibc-headers/error.texi: New file.
32764         * doc/glibc-headers/execinfo.texi: New file.
32765         * doc/glibc-headers/fpu_control.texi: New file.
32766         * doc/glibc-headers/fstab.texi: New file.
32767         * doc/glibc-headers/fts.texi: New file.
32768         * doc/glibc-headers/getopt.texi: New file.
32769         * doc/glibc-headers/ieee754.texi: New file.
32770         * doc/glibc-headers/ifaddrs.texi: New file.
32771         * doc/glibc-headers/libintl.texi: New file.
32772         * doc/glibc-headers/mcheck.texi: New file.
32773         * doc/glibc-headers/mntent.texi: New file.
32774         * doc/glibc-headers/obstack.texi: New file.
32775         * doc/glibc-headers/paths.texi: New file.
32776         * doc/glibc-headers/printf.texi: New file.
32777         * doc/glibc-headers/pty.texi: New file.
32778         * doc/glibc-headers/resolv.texi: New file.
32779         * doc/glibc-headers/shadow.texi: New file.
32780         * doc/glibc-headers/sysexits.texi: New file.
32781         * doc/glibc-headers/ttyent.texi: New file.
32782
32783 2008-01-12  Jim Meyering  <meyering@redhat.com>
32784
32785         announce-gen: emit Gnulib's git-based version string.
32786         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32787         New option --gnulib-version=V, where V is expected to be
32788         the output of running git describe in the gnulib directory.
32789         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32790         not useful, and plan to stop publishing an xdelta file with each
32791         coreutils release.
32792
32793         * build-aux/announce-gen: Also check for lzma-compressed files.
32794
32795 2008-01-11  Bruno Haible  <bruno@clisp.org>
32796
32797         * tests/test-memmem.c (main): Increase maximum allowed time.
32798         * tests/test-strstr.c (main): Likewise.
32799
32800 2008-01-11  Bruno Haible  <bruno@clisp.org>
32801
32802         * doc/functions/memmem.texi: Add more precisions about platforms.
32803         * doc/functions/strstr.texi: Likewise.
32804
32805 2008-01-10  Eric Blake  <ebb9@byu.net>
32806
32807         * m4/strstr.m4: Delete cruft from copy-n-paste.
32808         Reported by Bruno Haible.
32809
32810 2008-01-10  Bruno Haible  <bruno@clisp.org>
32811
32812         Make c-strstr rely on strstr.
32813         * lib/c-strstr.c: Don't include str-kmp.h.
32814         (c_strstr): Define in terms of strstr.
32815         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32816         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32817
32818 2008-01-10  Bruno Haible  <bruno@clisp.org>
32819
32820         * doc/gnulib.texi (String Functions in C Locale): New section.
32821         * doc/c-ctype.texi: New file.
32822         * doc/c-strcase.texi: New file.
32823         * doc/c-strcaseeq.texi: New file.
32824         * doc/c-strcasestr.texi: New file.
32825         * doc/c-strstr.texi: New file.
32826         * doc/c-strtod.texi: New file.
32827         * doc/c-strtold.texi: New file.
32828
32829 2008-01-10  Eric Blake  <ebb9@byu.net>
32830
32831         * lib/relocatable.h: Fix a comment.
32832
32833 2008-01-10  Eric Blake  <ebb9@byu.net>
32834
32835         Share two-way algorithm.
32836         * lib/str-two-way.h: New file, merged from...
32837         * lib/memmem.c: ...here...
32838         * lib/strstr.c: ...and here.
32839         * modules/memmem (Files): Use it.
32840         * modules/strstr (Files): Likewise.
32841
32842         Avoid quadratic strstr implementations.
32843         * lib/strstr.c: New file.
32844         * m4/strstr.m4: Likewise.
32845         * modules/strstr: Likewise.
32846         * modules/strstr-tests: Likewise.
32847         * tests/test-strstr.c: Likewise.
32848         * lib/string.in.h (rpl_strstr): Declare.
32849         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32851         * modules/string (Makefile.am): Likewise.
32852         * MODULES.html.sh (string handling): Mention new module.
32853         * doc/functions/strstr.texi (strstr): Document the bug.
32854
32855 2008-01-10  Bruno Haible  <bruno@clisp.org>
32856
32857         * lib/relocatable.h (relocate): State whether result is freshly
32858         allocated or not.
32859         * lib/relocatable.c (relocate): Return a freshly allocated string
32860         instead of a pointer to a privately held string.
32861         Reported by Sylvain Beucler <beuc@gnu.org>.
32862
32863 2008-01-10  Colin Watson  <cjwatson@debian.org>
32864
32865         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32866         s/S_ISNLK/S_ISLNK/.
32867
32868 2008-01-09  Bruno Haible  <bruno@clisp.org>
32869
32870         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32871         and other files.
32872         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32873         if it's only a guess.
32874         * modules/memmem: Simplify by depending on memmem-simple.
32875
32876 2008-01-09  Bruno Haible  <bruno@clisp.org>
32877
32878         Work around OpenBSD 4.0 tdelete() bug.
32879         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32880         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32881         macros and don't redefine the enum values.
32882         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32883         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32884         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32885
32886 2008-01-09  Bruno Haible  <bruno@clisp.org>
32887
32888         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32889         (main): Don't perform the tests if setlocale did not install a UTF-8
32890         locale. Needed on OpenBSD 4.0.
32891         * modules/wcwidth-tests (Depends-on): Add localcharset.
32892
32893 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32894
32895         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32896         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32897         * NEWS: announce this.
32898         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32899
32900 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32901         and Eric Blake  <ebb9@byu.net>
32902
32903         Add memmem-simple module.
32904         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32905         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32906         * modules/memmem-simple: New file.
32907         * modules/memmem (Description): Tweak.
32908         * MODULES.html.sh (string handling): Mention new module.
32909         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32910         addressed by memmem-simple.
32911         * NEWS: Document the difference.
32912
32913 2008-01-09  Eric Blake  <ebb9@byu.net>
32914
32915         Give gcc some memmem optimization hints.
32916         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32917         (strcasestr): Declare as pure.
32918         * modules/memmem (Maintainer): Claim my implementation.
32919
32920 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32921
32922         Support AIX 6.1 and higher.
32923         * build-aux/config.libpath: Likewise.
32924         * build-aux/config.rpath: Likewise.
32925
32926 2008-01-08  Jim Meyering  <meyering@redhat.com>
32927             Bruno Haible  <bruno@clisp.org>
32928
32929         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32930         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32931         Reported by Peter Fales in
32932         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32933
32934 2008-01-08  Bruno Haible  <bruno@clisp.org>
32935
32936         * modules/unictype/category-of (Depends-on): Add
32937         unictype/category-none.
32938         * modules/unictype/category-and-tests (Depends-on): Add
32939         unictype/category-{L,N,Lu,Nd}.
32940         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32941         * modules/unictype/category-or-tests (Depends-on): Add
32942         unictype/category-{L,N}.
32943         * modules/unictype/category-name-tests (Depends-on): Add
32944         unictype/category-{Z,Nl}.
32945         Reported by Simon Josefsson.
32946
32947 2008-01-08  Bruno Haible  <bruno@clisp.org>
32948
32949         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32950         convention better.
32951         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32952         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32953         Reported by Peter Miller <millerp@canb.auug.org.au>.
32954
32955 2008-01-08  Eric Blake  <ebb9@byu.net>
32956
32957         Rewrite memmem to guarantee linear complexity without malloc.
32958         * lib/memmem.c (memmem): Use Two-Way rather than
32959         Knuth-Morris-Pratt, to allow O(1) space usage.
32960         (critical_factorization, two_way_short_needle)
32961         (two_way_long_needle): New functions.
32962         (knuth_morris_pratt): Delete.
32963         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32964         Add stdint.
32965         * tests/test-memmem.c (main): Add tests for periodic needle and
32966         sublinear performance.
32967         * doc/functions/memmem.texi (memmem): Document other deficiencies
32968         in cygwin and older glibc.
32969
32970 2008-01-08  Bruno Haible  <bruno@clisp.org>
32971
32972         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32973         augmentation.
32974
32975 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32976
32977         Add a configure time option: --disable-acl.
32978         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32979         AC_ARG_ENABLE(acl).
32980
32981 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32982
32983         * tests/test-localename.c: Don't include obsolete "setenv.h".
32984
32985         * modules/localename-tests (Depends-on): Need unsetenv.
32986
32987 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32988
32989         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32990
32991 2008-01-06  Colin Watson  <cjwatson@debian.org>
32992
32993         * users.txt: Add man-db.
32994
32995 2008-01-07  Bruno Haible  <bruno@clisp.org>
32996
32997         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
32998         previous section name.
32999
33000 2008-01-07  Bruno Haible  <bruno@clisp.org>
33001
33002         * lib/progname.c (set_program_name): Don't strip off a leading
33003         "lt-" prefix outside a .libs directory.
33004         Suggested by Paul Eggert.
33005
33006 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
33007             Bruno Haible  <bruno@clisp.org>
33008
33009         Improve memory cleanup in 'relocatable' module.
33010         * lib/relocatable.h (compute_curr_prefix): Change return type to
33011         'char *'.
33012         * lib/relocatable.c (compute_curr_prefix): Change return type to
33013         'char *'. Free curr_installdir after use.
33014         (relocate): Free curr_prefix_better after use.
33015         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
33016
33017 2008-01-01  Bruno Haible  <bruno@clisp.org>
33018
33019         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
33020         failure on older glibc systems.
33021         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33022
33023 2008-01-05  Eric Blake  <ebb9@byu.net>
33024
33025         Avoid quadratic system memmem.
33026         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
33027         Reported by Ralf Wildenhues.
33028
33029         Fix memmem test for mingw.
33030         * modules/memmem-tests (configure.ac): Check for alarm.
33031         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
33032         it.
33033         * doc/functions/memmem.texi: New file.
33034         * doc/gnulib.texi (Function Substitutes): Add memmem.
33035         Reported by Bruno Haible.
33036
33037 2008-01-04  Bruno Haible  <bruno@clisp.org>
33038
33039         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
33040         Require gl_HEADER_STRINGS_H_DEFAULTS, not
33041         gl_HEADER_STRING_H_DEFAULTS.
33042
33043 2008-01-04  Eric Blake  <ebb9@byu.net>
33044
33045         Shorten duration of memmem test.
33046         * tests/test-memmem.c (main): Use alarm to declare failure if test
33047         is taking too long.
33048         Reported by Ralf Wildenhues.
33049
33050 2007-12-21  Simon Josefsson  <simon@josefsson.org>
33051
33052         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
33053         string, needed by strerror.
33054
33055 2008-01-03  Colin Watson  <cjwatson@debian.org>
33056             Bruno Haible  <bruno@clisp.org>
33057
33058         * doc/gnulib-tool.texi (Localization): New section.
33059
33060 2008-01-02  Bruno Haible  <bruno@clisp.org>
33061
33062         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
33063         variables to 'unsigned char *' type.
33064         Reported by Paul Eggert.
33065
33066 2008-01-02  Jim Meyering  <jim@meyering.net>
33067
33068         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
33069
33070 2007-12-31  Jim Meyering  <jim@meyering.net>
33071
33072         Avoid use of private FTS type name.
33073         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
33074
33075 2007-12-30  Karl Berry  <karl@gnu.org>
33076
33077         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
33078         work around defect in Texinfo and/or the standalone Info browser.
33079
33080 2007-12-30  Bruno Haible  <bruno@clisp.org>
33081
33082         Unify 5 copies of the KMP code.
33083         * lib/str-kmp.h: New file.
33084         * lib/c-strcasestr.c: Include str-kmp.h.
33085         (knuth_morris_pratt): Remove function.
33086         (c_strcasestr): Update.
33087         * lib/c-strstr.c: Include str-kmp.h.
33088         (knuth_morris_pratt): Remove function.
33089         (c_strcasestr): Update.
33090         * lib/mbscasestr.c: Include str-kmp.h.
33091         (knuth_morris_pratt_unibyte): Remove function.
33092         * lib/mbsstr.c: Include str-kmp.h.
33093         (knuth_morris_pratt_unibyte): Remove function.
33094         * lib/strcasestr.c: Include str-kmp.h.
33095         (knuth_morris_pratt): Remove function.
33096         (strcasestr): Update.
33097         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
33098         * modules/c-strstr (Files): Likewise.
33099         * modules/mbscasestr (Files): Likewise.
33100         * modules/mbsstr (Files): Likewise.
33101         * modules/strcasestr (Files): Likewise.
33102         Suggested by Paul Eggert.
33103
33104 2007-12-30  Bruno Haible  <bruno@clisp.org>
33105
33106         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
33107         defined.
33108
33109 2007-12-30  Bruno Haible  <bruno@clisp.org>
33110
33111         * lib/xmalloca.h: Include xalloc.h.
33112         (xnmalloca): New macro.
33113
33114 2007-12-30  Bruno Haible  <bruno@clisp.org>
33115
33116         * lib/malloca.h (nmalloca): New macro.
33117         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
33118         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
33119         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
33120         knuth_morris_pratt_multibyte): Likewise.
33121         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
33122         knuth_morris_pratt_multibyte): Likewise.
33123         * lib/memmem.c (knuth_morris_pratt): Likewise.
33124         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
33125
33126 2007-12-25  Bruno Haible  <bruno@clisp.org>
33127
33128         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
33129         * lib/glob.c: Don't include openat.h.
33130         (link_exists2_p): Add back the code that deals with the
33131         !GLOB_ALTDIRFUNC case.
33132         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
33133         let it do the filename concatenation.
33134         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
33135         * modules/glob (Depends-on): Remove openat.
33136
33137 2007-12-31  Bruno Haible  <bruno@clisp.org>
33138
33139         * modules/dirfd (License): Change to LGPLv2+.
33140         Approved by Jim Meyering.
33141
33142 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33143
33144         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
33145         when multiplying M by sizeof (size_t).
33146
33147 2007-12-10  Martin Lambers  <marlam@marlam.de>
33148
33149         Override getpagesize on mingw.
33150         * lib/getpagesize.c: New file.
33151         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
33152         * modules/getpagesize (Files): Add lib/getpagesize.c.
33153         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
33154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33155         REPLACE_GETPAGESIZE.
33156         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33157
33158 2007-12-25  Bruno Haible  <bruno@clisp.org>
33159
33160         * modules/localcharset (Notice): New field.
33161         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33162         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33163
33164 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33165             Bruno Haible  <bruno@clisp.org>
33166
33167         Avoid using the syntax symbol() in formatted documentation.
33168         * MODULES.html.sh (func_module): When replacing symbol() with a
33169         hyperlink, remove the parentheses. Show an error if some remain.
33170         Recognize and render the '...' syntax.
33171         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33172         Rework. Add paragraph about GCC's inlining.
33173         * doc/alloca.texi: Likewise.
33174         * doc/error.texi: Remove parentheses from symbol reference.
33175         * doc/gnulib-intro.texi: Likewise.
33176         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33177         * modules/fnmatch (Description): Reword to say "the ... function".
33178         * modules/full-read (Description): Likewise.
33179         * modules/full-write (Description): Likewise.
33180         * modules/safe-read (Description): Likewise.
33181         * modules/safe-write (Description): Likewise.
33182         * modules/strchrnul (Description): Likewise.
33183         * modules/trim (Description): Likewise.
33184         * modules/error (Description): Remove parentheses from symbol
33185         references.
33186         * modules/verror (Description): Likewise.
33187         Reported by Karl Berry.
33188
33189 2007-12-25  Bruno Haible  <bruno@clisp.org>
33190
33191         Fixup after 2007-10-16 commit.
33192         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33193
33194 2007-12-24  Bruno Haible  <bruno@clisp.org>
33195
33196         Make --enable-relocatable work with DESTDIR.
33197         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33198         to compute installdir from destprog.
33199         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33200         also set the RELOC_DESTDIR variable.
33201         Reported by Левашев Иван <octagram@bluebottle.com>.
33202
33203 2007-12-24  Bruno Haible  <bruno@clisp.org>
33204
33205         Fix link error due to xalloc_die().
33206         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33207         of xreadlink.
33208         * lib/relocwrapper.c: Update comments.
33209         * build-aux/install-reloc: Remove xreadlink.c from file list.
33210         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33211         xreadlink.c.
33212         Reported by Левашев Иван <octagram@bluebottle.com>.
33213
33214 2007-12-24  Bruno Haible  <bruno@clisp.org>
33215
33216         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33217         * lib/setenv.h: Remove file.
33218         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33219         lib/setenv.h.
33220         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33221         (Depends-on): Add stdlib.
33222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33223         gl_FUNC_UNSETENV.
33224         (Include): Replace setenv.h with <stdlib.h>.
33225         * modules/unsetenv: New file.
33226         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33227         * lib/unsetenv.c: Include <stdlib.h> first.
33228         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33229         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33230         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33231         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33232         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33233         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33235         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33236         * doc/functions/unsetenv.texi: Update.
33237         * modules/xsetenv (Depends-on): Add unsetenv.
33238         * modules/getdate (Depends-on): Likewise.
33239         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33240         * lib/xsetenv.c: Don't include setenv.h.
33241         * lib/getdate.y: Likewise.
33242         * lib/relocwrapper.c: Likewise.
33243         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33244         (Depends-on): Add stdlib.
33245         * NEWS: Mention the changes.
33246         Reported by Левашев Иван <octagram@bluebottle.com>.
33247
33248 2007-12-23  Bruno Haible  <bruno@clisp.org>
33249
33250         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33251         indentation.
33252
33253 2007-12-23  Bruno Haible  <bruno@clisp.org>
33254
33255         * lib/c-strcasestr.c: Add more comments.
33256         * lib/c-strstr.c: Likewise.
33257         * lib/mbscasestr.c: Likewise.
33258         * lib/mbsstr.c: Likewise.
33259         * lib/strcasestr.c: Likewise.
33260         * lib/memmem.c: Likewise.
33261
33262 2007-12-23  Bruno Haible  <bruno@clisp.org>
33263
33264         * tests/test-memmem.c: Include <string.h> first.
33265
33266 2007-12-22  Bruno Haible  <bruno@clisp.org>
33267
33268         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33269         the contents of $testsbase.
33270         Reported by Ralf Wildenhues.
33271
33272 2007-12-22  Bruno Haible  <bruno@clisp.org>
33273
33274         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33275         two variables local_ldadd_before, local_ldadd_last.
33276
33277 2007-12-20  Eric Blake  <ebb9@byu.net>
33278
33279         Work around circular library issue when cross-compiling.
33280         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33281         that progname.o does not need to pull in rpl_memcmp.
33282
33283 2007-12-19  Eric Blake  <ebb9@byu.net>
33284
33285         Fix memmem to avoid O(n^2) worst-case complexity.
33286         * lib/memmem.c (knuth_morris_pratt): New function.
33287         (memmem): Use it if first few naive iterations fail.
33288         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33289         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33290         * modules/memchr (License): Likewise.
33291         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33292         malloca.
33293         * tests/test-memmem.c: Rewrite, borrowing ideas from
33294         test-mbsstr1.c; the old version wouldn't even compile!
33295         * modules/memmem-tests: New file.
33296         * lib/string.in.h (rpl_memmem): Add declaration.
33297         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33299         REPLACE_MEMMEM.
33300
33301 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33302
33303         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33304         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33305         before any system include files, and undef after them all.  This
33306         should fix a problem on VMS reported by John E. Malmberg in
33307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33308
33309 2007-12-17  Eric Blake  <ebb9@byu.net>
33310
33311         Revert addition of verify, for BSD/OS.
33312         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33313         can't handle large files, for the sake of obsolete platforms.
33314         * modules/fseeko (Depends-on): Remove verify.
33315         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33316         * doc/functions/ftello.texi (ftello): Likewise.
33317         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33318         Reported by Larry Jones.
33319
33320 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33321
33322         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33323         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33324
33325 2007-12-17  Jim Meyering  <meyering@redhat.com>
33326
33327         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33328         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33329         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33330         * modules/getcwd (Depends-on): Add openat.
33331         Reported by Petr Salinger.
33332
33333 2007-12-17  Bruno Haible  <bruno@clisp.org>
33334
33335         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33336         avoid a segmentation fault of the configure test on x86_64 systems.
33337
33338 2007-12-15  Jim Meyering  <meyering@redhat.com>
33339
33340         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33341
33342 2007-12-13  Eric Blake  <ebb9@byu.net>
33343
33344         Another fseek test.
33345         * tests/test-fseek.c (main): Also test ungetc handling.
33346         * tests/test-fseeko.c (main): Likewise.
33347         * modules/fseeko (Depends-on): Add verify.
33348         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33349         large.
33350         Reported by Larry Jones.
33351
33352         Fix fseeko on mingw.
33353         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33354         seek.
33355
33356         Beef up fseek tests.
33357         * tests/test-fseek.c (main): Also test eof handling.
33358         * tests/test-fseeko.c (main): Likewise.
33359         Reported by Larry Jones.
33360
33361 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33362
33363         Fix fseeko on BSD-based platforms.
33364         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33365         successful seek.
33366
33367 2007-12-12  Eric Blake  <ebb9@byu.net>
33368
33369         Allow circular dependency of separate libtests.a
33370         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33371         when use_libtests.
33372
33373 2007-12-11  Eric Blake  <ebb9@byu.net>
33374
33375         Fix bug with -0.0L in previous patch.
33376         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33377         * tests/test-isnan.c (main): Also test on zeroes.
33378         * tests/test-isnanf.c (main): Likewise.
33379         * tests/test-isnanl.h (main): Likewise.
33380
33381         Detect pseudo-denormals on x86 even when cross-compiling.
33382         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33383         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33384         invalid bit patterns that happen to satisfy ==.
33385
33386         Avoid link failures with separate libtests.a.
33387         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33388         last, to satisfy circular dependencies.
33389
33390 2007-12-11  Eric Blake  <ebb9@byu.net>
33391         and Bruno Haible  <bruno@clisp.org>
33392
33393         Fix OpenBSD 4.0 <float.h> handling of long double.
33394         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33395         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33396         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33397
33398 2007-12-11  Jim Meyering  <meyering@redhat.com>
33399
33400         * users.txt: Add libvirt.
33401
33402         Support versions of autoconf prior to 2.59c.
33403         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33404         if it is not already defined.
33405
33406 2007-12-09  Bruno Haible  <bruno@clisp.org>
33407
33408         Let 'gnulib-tool --import' collect sources needed for the tests in
33409         tests/ rather than in lib/.
33410         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33411         argument. If true, add rules to generate libtests.a, and put libtests.a
33412         into $(LDADD). Consider source files in subdirectories and set
33413         uses_subdirs.
33414         (func_emit_initmacro_start, func_emit_initmacro_end,
33415         func_emit_initmacro_done): Pass all arguments explicitly.
33416         (func_import): Determine two module lists main_modules,
33417         testsrelated_modules. Determine use_libtests. Determine two variables
33418         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33419         instead of just sed_transform_lib_file. Determine two variables
33420         main_files and testsrelated_files. Compute 'files' as the union of
33421         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33422         func_add_or_update. In the generated gnulib-comp.m4, collect the
33423         object files for tests/ in different variables than those for lib/.
33424         Substitute LIBTESTS_LIBDEPS.
33425         (func_create_testdir): Combine the uses_subdirs results from
33426         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33427
33428 2007-12-09  Bruno Haible  <bruno@clisp.org>
33429
33430         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33431         the build-aux directory.
33432
33433 2007-12-09  Bruno Haible  <bruno@clisp.org>
33434
33435         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33436         introduced on 2006-09-09.
33437
33438 2007-12-07  Jim Meyering  <meyering@redhat.com>
33439
33440         Let these macros work also with autoconf-2.59.
33441         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33442         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33443         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33444
33445 2007-12-06  Jim Meyering  <meyering@redhat.com>
33446
33447         Avoid a configure-time syntax error in gl_FUNC_ACL.
33448         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33449         function in each branch, before testing the cache variable.
33450
33451 2007-12-04  Eric Blake  <ebb9@byu.net>
33452
33453         Make scripts executable.
33454         * build-aux/config.guess: Add execute permissions.
33455         * build-aux/config.sub: Likewise.
33456         * build-aux/gendocs.sh: Likewise.
33457
33458         Fix frexp on mingw.
33459         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33460         cross-compiling.
33461         * doc/functions/frexp.texi (frexp): Document the bug.
33462
33463         Make cygwin fseeko check more reliable.
33464         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33465         version numbers, rather than unrelated feature check.
33466         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33467         * doc/functions/ftello.texi (ftello): Likewise.
33468         Reported by Bruno Haible.
33469
33470         * m4/strerror.m4: Bump version number.
33471
33472 2007-12-03  Bruno Haible  <bruno@clisp.org>
33473
33474         * doc/functions/mprotect.texi: Mention the mingw problem.
33475
33476 2007-12-03  Eric Blake  <ebb9@byu.net>
33477
33478         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33479         REPLACE_STRERROR is initialized before this macro.
33480
33481 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33482
33483         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33484         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33485         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33486         put -lsec in even for programs other than 'ls'.  This fixes a problem
33487         for gettext reported by Bruno Haible in
33488         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33489         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33490         Add support for Solaris 10.  This isn't efficient, but should get the
33491         job done for now.
33492
33493 2007-12-03  James Youngman  <jay@gnu.org>
33494
33495         * doc/regexprops-generic.texi: change "an close-group" to "a
33496         close-group" and "illegal" to "not allowed".
33497
33498 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33499
33500         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33501         pr_byname.h. Needed for the rare case when the maintainer has done
33502         "make maintainer-clean" in the source directory and then attempts a
33503         build outside the source directory.
33504         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33505         scripts_byname.h.
33506
33507 2007-12-02  Martin Lambers <marlam@marlam.de>
33508             Bruno Haible  <bruno@clisp.org>
33509
33510         * lib/getpagesize.h: Remove file.
33511         * lib/unistd.in.h: Include declaration of getpagesize here.
33512         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33513         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33514         HAVE_SYS_PARAM_H.
33515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33516         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33517         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33518         (Depends-on): Add unistd.
33519         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33520         (Include): Use <unistd.h> instead of getpagesize.h.
33521         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33522         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33523         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33524         gl_GETPAGESIZE invocation, already handled by module dependency.
33525         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33526
33527 2007-12-02  Bruno Haible  <bruno@clisp.org>
33528
33529         * modules/strings-tests: New file.
33530         * tests/test-strings.c: New file.
33531
33532         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33533         * lib/strings.in.h: New file.
33534         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33535         * m4/strings_h.m4: New file.
33536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33537         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33538         * modules/strings: New file.
33539         * modules/string (Makefile.am): Update.
33540         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33541         Reported by Karl Berry.
33542
33543 2007-12-01  Eric Blake  <ebb9@byu.net>
33544
33545         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33546         accomodate fix in cygwin 1.5.25.
33547
33548 2007-12-01  Jim Meyering  <meyering@redhat.com>
33549
33550         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33551         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33552         that would inhibit utf8-optimization of a regexp containing line-
33553         or buffer-anchors, e.g., `^', `$'.
33554
33555 2007-11-30  Bruno Haible  <bruno@clisp.org>
33556
33557         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33558         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33559         glthread_recursive_lock_init.
33560         * lib/lock.c (glthread_recursive_lock_init)
33561         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33562         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33563
33564 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33565
33566         New function qset_acl, like set_acl but with syscall semantics.
33567         * lib/acl.h (qset_acl): New decl.
33568         * lib/acl.c (qset_acl): New function.
33569         (set_acl): Use new function.  Use more-consistent diagnostics.
33570
33571 2007-11-28  Jim Meyering  <meyering@redhat.com>
33572
33573         * modules/physmem (License): Change from GPL to LGPLv2+.
33574
33575 2007-11-26  Bruno Haible  <bruno@clisp.org>
33576
33577         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33578         'long double' type has excess precision.
33579         Reported by Jim Meyering in
33580         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33581
33582 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33583
33584         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33585         Sync from <http://gnu.org/licenses>.
33586         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33587         with license text from same location.
33588         * doc/maintain.texi, doc/standards.texi:  Sync from
33589         <http://savannah.gnu.org/projects/gnustandards>.
33590
33591 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33592         and Jim Meyering  <meyering@redhat.com>
33593
33594         Adjust getdate' grammar to accept a slightly more regular language.
33595         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33596         Before, the former was rejected.
33597         * lib/getdate.y (digits_to_date_time): New function, factored
33598         out of ...
33599         (number): ...here.  Just call digits_to_date_time.
33600         (hybrid): New non-terminal to handle an <unsigned number,
33601         signed relative offset> sequence consistently.
33602
33603 2007-11-18  Jim Meyering  <meyering@redhat.com>
33604
33605         Pull my changes from coreutils:
33606         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33607         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33608         use of $gnulib_tool_option_extras, so that it's separated from the
33609         preceding argument.
33610
33611         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33612         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33613         parent destination directories before copying a file into place.
33614
33615 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33616
33617         bootstrap: work also with 4-argument variant of AC_INIT
33618         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33619
33620 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33621
33622         Port test-getaddrinfo to Solaris.
33623         Problem reported by Bruno Haible in
33624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33625         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33626         explanation of setting 'hints'.
33627         Don't reject an implementation merely because it returns EAI_SERVICE.
33628         (EAI_SERVICE): Define to 0 if not defined.
33629
33630 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33631
33632         The license of gnu-make and posix-shell is now "GPLed build tool".
33633         * modules/gnu-make (License): Likewise.
33634         * modules/posix-shell (License): Likewise.
33635
33636         New module posix-shell, for determining a POSIX shell
33637         or perhaps something that is close enough to a POSIX shell.
33638         * m4/posix-shell.m4: New file.
33639         * modules/posix-shell: New file.
33640
33641         * MODULES.html.sh: Mention new module.
33642
33643         New module gnu-make, for determining whether we're using GNU Make.
33644         * m4/gnu-make.m4: New file.
33645         * modules/gnu-make: New file.
33646         * MODULES.html.sh: Mention new module.
33647
33648 2007-11-14  Jim Meyering  <meyering@redhat.com>
33649
33650         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33651         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33652         use this macro to create a function _definition_.
33653         Remove useless "#undef ARGMATCH_DIE".
33654
33655 2007-11-14  Bruno Haible  <bruno@clisp.org>
33656
33657         * lib/config.charset: Update for OpenBSD 4.1.
33658         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33659
33660 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33661
33662         Document 64-bit #if problems in stdint.texi.
33663         * doc/headers/stdint.texi (stdint.h): Mention problems with
33664         64-bit-#if, and how to work around them.
33665
33666         Don't insist on 'long long int' support in the preprocessor.  It
33667         breaks too many things.  For example, PRIdMAX still uses a 'long
33668         long int' format with the latest Sun compiler, even though
33669         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33670         preprocessor problem.  This causes the latest coreutils to dump
33671         core on Solaris 10 sparc with the Sun C compiler.
33672         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33673         the troublesome expressions at configure-time, not at #if-time.
33674         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33675         preprocessor.
33676         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33677         compile-time C checks, done at 'configure'-time.
33678         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33679         * modules/inttypes (Makefile): Substitute the new symbols that
33680         gl_INTTYPES_H now generates.
33681         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33682
33683 2007-11-12  Bruno Haible  <bruno@clisp.org>
33684
33685         Tests for Unicode character classification functions.
33686
33687         * modules/unictype/bidicategory-byname-tests: New file.
33688         * modules/unictype/bidicategory-name-tests: New file.
33689         * modules/unictype/bidicategory-of-tests: New file.
33690         * modules/unictype/bidicategory-test-tests: New file.
33691         * modules/unictype/block-list-tests: New file.
33692         * modules/unictype/block-of-tests: New file.
33693         * modules/unictype/block-test-tests: New file.
33694         * modules/unictype/category-C-tests: New file.
33695         * modules/unictype/category-Cc-tests: New file.
33696         * modules/unictype/category-Cf-tests: New file.
33697         * modules/unictype/category-Cn-tests: New file.
33698         * modules/unictype/category-Co-tests: New file.
33699         * modules/unictype/category-Cs-tests: New file.
33700         * modules/unictype/category-L-tests: New file.
33701         * modules/unictype/category-Ll-tests: New file.
33702         * modules/unictype/category-Lm-tests: New file.
33703         * modules/unictype/category-Lo-tests: New file.
33704         * modules/unictype/category-Lt-tests: New file.
33705         * modules/unictype/category-Lu-tests: New file.
33706         * modules/unictype/category-M-tests: New file.
33707         * modules/unictype/category-Mc-tests: New file.
33708         * modules/unictype/category-Me-tests: New file.
33709         * modules/unictype/category-Mn-tests: New file.
33710         * modules/unictype/category-N-tests: New file.
33711         * modules/unictype/category-Nd-tests: New file.
33712         * modules/unictype/category-Nl-tests: New file.
33713         * modules/unictype/category-No-tests: New file.
33714         * modules/unictype/category-P-tests: New file.
33715         * modules/unictype/category-Pc-tests: New file.
33716         * modules/unictype/category-Pd-tests: New file.
33717         * modules/unictype/category-Pe-tests: New file.
33718         * modules/unictype/category-Pf-tests: New file.
33719         * modules/unictype/category-Pi-tests: New file.
33720         * modules/unictype/category-Po-tests: New file.
33721         * modules/unictype/category-Ps-tests: New file.
33722         * modules/unictype/category-S-tests: New file.
33723         * modules/unictype/category-Sc-tests: New file.
33724         * modules/unictype/category-Sk-tests: New file.
33725         * modules/unictype/category-Sm-tests: New file.
33726         * modules/unictype/category-So-tests: New file.
33727         * modules/unictype/category-Z-tests: New file.
33728         * modules/unictype/category-Zl-tests: New file.
33729         * modules/unictype/category-Zp-tests: New file.
33730         * modules/unictype/category-Zs-tests: New file.
33731         * modules/unictype/category-and-not-tests: New file.
33732         * modules/unictype/category-and-tests: New file.
33733         * modules/unictype/category-byname-tests: New file.
33734         * modules/unictype/category-name-tests: New file.
33735         * modules/unictype/category-none-tests: New file.
33736         * modules/unictype/category-of-tests: New file.
33737         * modules/unictype/category-or-tests: New file.
33738         * modules/unictype/category-test-withtable-tests: New file.
33739         * modules/unictype/combining-class-tests: New file.
33740         * modules/unictype/ctype-alnum-tests: New file.
33741         * modules/unictype/ctype-alpha-tests: New file.
33742         * modules/unictype/ctype-blank-tests: New file.
33743         * modules/unictype/ctype-cntrl-tests: New file.
33744         * modules/unictype/ctype-digit-tests: New file.
33745         * modules/unictype/ctype-graph-tests: New file.
33746         * modules/unictype/ctype-lower-tests: New file.
33747         * modules/unictype/ctype-print-tests: New file.
33748         * modules/unictype/ctype-punct-tests: New file.
33749         * modules/unictype/ctype-space-tests: New file.
33750         * modules/unictype/ctype-upper-tests: New file.
33751         * modules/unictype/ctype-xdigit-tests: New file.
33752         * modules/unictype/decimal-digit-tests: New file.
33753         * modules/unictype/digit-tests: New file.
33754         * modules/unictype/mirror-tests: New file.
33755         * modules/unictype/numeric-tests: New file.
33756         * modules/unictype/property-alphabetic-tests: New file.
33757         * modules/unictype/property-ascii-hex-digit-tests: New file.
33758         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33759         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33760         * modules/unictype/property-bidi-block-separator-tests: New file.
33761         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33762         * modules/unictype/property-bidi-common-separator-tests: New file.
33763         * modules/unictype/property-bidi-control-tests: New file.
33764         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33765         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33766         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33767         * modules/unictype/property-bidi-european-digit-tests: New file.
33768         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33769         * modules/unictype/property-bidi-left-to-right-tests: New file.
33770         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33771         * modules/unictype/property-bidi-other-neutral-tests: New file.
33772         * modules/unictype/property-bidi-pdf-tests: New file.
33773         * modules/unictype/property-bidi-segment-separator-tests: New file.
33774         * modules/unictype/property-bidi-whitespace-tests: New file.
33775         * modules/unictype/property-byname-tests: New file.
33776         * modules/unictype/property-combining-tests: New file.
33777         * modules/unictype/property-composite-tests: New file.
33778         * modules/unictype/property-currency-symbol-tests: New file.
33779         * modules/unictype/property-dash-tests: New file.
33780         * modules/unictype/property-decimal-digit-tests: New file.
33781         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33782         * modules/unictype/property-deprecated-tests: New file.
33783         * modules/unictype/property-diacritic-tests: New file.
33784         * modules/unictype/property-extender-tests: New file.
33785         * modules/unictype/property-format-control-tests: New file.
33786         * modules/unictype/property-grapheme-base-tests: New file.
33787         * modules/unictype/property-grapheme-extend-tests: New file.
33788         * modules/unictype/property-grapheme-link-tests: New file.
33789         * modules/unictype/property-hex-digit-tests: New file.
33790         * modules/unictype/property-hyphen-tests: New file.
33791         * modules/unictype/property-id-continue-tests: New file.
33792         * modules/unictype/property-id-start-tests: New file.
33793         * modules/unictype/property-ideographic-tests: New file.
33794         * modules/unictype/property-ids-binary-operator-tests: New file.
33795         * modules/unictype/property-ids-trinary-operator-tests: New file.
33796         * modules/unictype/property-ignorable-control-tests: New file.
33797         * modules/unictype/property-iso-control-tests: New file.
33798         * modules/unictype/property-join-control-tests: New file.
33799         * modules/unictype/property-left-of-pair-tests: New file.
33800         * modules/unictype/property-line-separator-tests: New file.
33801         * modules/unictype/property-logical-order-exception-tests: New file.
33802         * modules/unictype/property-lowercase-tests: New file.
33803         * modules/unictype/property-math-tests: New file.
33804         * modules/unictype/property-non-break-tests: New file.
33805         * modules/unictype/property-not-a-character-tests: New file.
33806         * modules/unictype/property-numeric-tests: New file.
33807         * modules/unictype/property-other-alphabetic-tests: New file.
33808         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33809         * modules/unictype/property-other-grapheme-extend-tests: New file.
33810         * modules/unictype/property-other-id-continue-tests: New file.
33811         * modules/unictype/property-other-id-start-tests: New file.
33812         * modules/unictype/property-other-lowercase-tests: New file.
33813         * modules/unictype/property-other-math-tests: New file.
33814         * modules/unictype/property-other-uppercase-tests: New file.
33815         * modules/unictype/property-paired-punctuation-tests: New file.
33816         * modules/unictype/property-paragraph-separator-tests: New file.
33817         * modules/unictype/property-pattern-syntax-tests: New file.
33818         * modules/unictype/property-pattern-white-space-tests: New file.
33819         * modules/unictype/property-private-use-tests: New file.
33820         * modules/unictype/property-punctuation-tests: New file.
33821         * modules/unictype/property-quotation-mark-tests: New file.
33822         * modules/unictype/property-radical-tests: New file.
33823         * modules/unictype/property-sentence-terminal-tests: New file.
33824         * modules/unictype/property-soft-dotted-tests: New file.
33825         * modules/unictype/property-space-tests: New file.
33826         * modules/unictype/property-terminal-punctuation-tests: New file.
33827         * modules/unictype/property-test-tests: New file.
33828         * modules/unictype/property-titlecase-tests: New file.
33829         * modules/unictype/property-unassigned-code-value-tests: New file.
33830         * modules/unictype/property-unified-ideograph-tests: New file.
33831         * modules/unictype/property-uppercase-tests: New file.
33832         * modules/unictype/property-variation-selector-tests: New file.
33833         * modules/unictype/property-white-space-tests: New file.
33834         * modules/unictype/property-xid-continue-tests: New file.
33835         * modules/unictype/property-xid-start-tests: New file.
33836         * modules/unictype/property-zero-width-tests: New file.
33837         * modules/unictype/scripts-tests: New file.
33838         * modules/unictype/syntax-c-ident-tests: New file.
33839         * modules/unictype/syntax-c-whitespace-tests: New file.
33840         * modules/unictype/syntax-java-ident-tests: New file.
33841         * modules/unictype/syntax-java-whitespace-tests: New file.
33842         * tests/unictype/test-bidi_byname.c: New file.
33843         * tests/unictype/test-bidi_name.c: New file.
33844         * tests/unictype/test-bidi_of.c: New file.
33845         * tests/unictype/test-bidi_test.c: New file.
33846         * tests/unictype/test-block_list.c: New file.
33847         * tests/unictype/test-block_of.c: New file.
33848         * tests/unictype/test-block_test.c: New file.
33849         * tests/unictype/test-categ_and.c: New file.
33850         * tests/unictype/test-categ_and_not.c: New file.
33851         * tests/unictype/test-categ_byname.c: New file.
33852         * tests/unictype/test-categ_name.c: New file.
33853         * tests/unictype/test-categ_none.c: New file.
33854         * tests/unictype/test-categ_of.c: New file.
33855         * tests/unictype/test-categ_or.c: New file.
33856         * tests/unictype/test-categ_test_withtable.c: New file.
33857         * tests/unictype/test-combining.c: New file.
33858         * tests/unictype/test-decdigit.c: New file.
33859         * tests/unictype/test-digit.c: New file.
33860         * tests/unictype/test-mirror.c: New file.
33861         * tests/unictype/test-numeric.c: New file.
33862         * tests/unictype/test-pr_byname.c: New file.
33863         * tests/unictype/test-pr_test.c: New file.
33864         * tests/unictype/test-predicate-part1.h: New file.
33865         * tests/unictype/test-predicate-part2.h: New file.
33866         * tests/unictype/test-scripts.c: New file.
33867         * tests/unictype/test-sy_c_ident.c: New file.
33868         * tests/unictype/test-sy_java_ident.c: New file.
33869
33870         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33871         for Unicode 5.0.0.
33872         * tests/unictype/test-categ_Cc.c: Likewise.
33873         * tests/unictype/test-categ_Cf.c: Likewise.
33874         * tests/unictype/test-categ_Cn.c: Likewise.
33875         * tests/unictype/test-categ_Co.c: Likewise.
33876         * tests/unictype/test-categ_Cs.c: Likewise.
33877         * tests/unictype/test-categ_L.c: Likewise.
33878         * tests/unictype/test-categ_Ll.c: Likewise.
33879         * tests/unictype/test-categ_Lm.c: Likewise.
33880         * tests/unictype/test-categ_Lo.c: Likewise.
33881         * tests/unictype/test-categ_Lt.c: Likewise.
33882         * tests/unictype/test-categ_Lu.c: Likewise.
33883         * tests/unictype/test-categ_M.c: Likewise.
33884         * tests/unictype/test-categ_Mc.c: Likewise.
33885         * tests/unictype/test-categ_Me.c: Likewise.
33886         * tests/unictype/test-categ_Mn.c: Likewise.
33887         * tests/unictype/test-categ_N.c: Likewise.
33888         * tests/unictype/test-categ_Nd.c: Likewise.
33889         * tests/unictype/test-categ_Nl.c: Likewise.
33890         * tests/unictype/test-categ_No.c: Likewise.
33891         * tests/unictype/test-categ_P.c: Likewise.
33892         * tests/unictype/test-categ_Pc.c: Likewise.
33893         * tests/unictype/test-categ_Pd.c: Likewise.
33894         * tests/unictype/test-categ_Pe.c: Likewise.
33895         * tests/unictype/test-categ_Pf.c: Likewise.
33896         * tests/unictype/test-categ_Pi.c: Likewise.
33897         * tests/unictype/test-categ_Po.c: Likewise.
33898         * tests/unictype/test-categ_Ps.c: Likewise.
33899         * tests/unictype/test-categ_S.c: Likewise.
33900         * tests/unictype/test-categ_Sc.c: Likewise.
33901         * tests/unictype/test-categ_Sk.c: Likewise.
33902         * tests/unictype/test-categ_Sm.c: Likewise.
33903         * tests/unictype/test-categ_So.c: Likewise.
33904         * tests/unictype/test-categ_Z.c: Likewise.
33905         * tests/unictype/test-categ_Zl.c: Likewise.
33906         * tests/unictype/test-categ_Zp.c: Likewise.
33907         * tests/unictype/test-categ_Zs.c: Likewise.
33908         * tests/unictype/test-ctype_alnum.c: Likewise.
33909         * tests/unictype/test-ctype_alpha.c: Likewise.
33910         * tests/unictype/test-ctype_blank.c: Likewise.
33911         * tests/unictype/test-ctype_cntrl.c: Likewise.
33912         * tests/unictype/test-ctype_digit.c: Likewise.
33913         * tests/unictype/test-ctype_graph.c: Likewise.
33914         * tests/unictype/test-ctype_lower.c: Likewise.
33915         * tests/unictype/test-ctype_print.c: Likewise.
33916         * tests/unictype/test-ctype_punct.c: Likewise.
33917         * tests/unictype/test-ctype_space.c: Likewise.
33918         * tests/unictype/test-ctype_upper.c: Likewise.
33919         * tests/unictype/test-ctype_xdigit.c: Likewise.
33920         * tests/unictype/test-decdigit.h: Likewise.
33921         * tests/unictype/test-digit.h: Likewise.
33922         * tests/unictype/test-numeric.h: Likewise.
33923         * tests/unictype/test-pr_alphabetic.c: Likewise.
33924         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33925         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33926         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33927         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33928         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33929         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33930         * tests/unictype/test-pr_bidi_control.c: Likewise.
33931         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33932         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33933         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33934         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33935         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33936         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33937         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33938         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33939         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33940         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33941         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33942         * tests/unictype/test-pr_combining.c: Likewise.
33943         * tests/unictype/test-pr_composite.c: Likewise.
33944         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33945         * tests/unictype/test-pr_dash.c: Likewise.
33946         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33947         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33948         * tests/unictype/test-pr_deprecated.c: Likewise.
33949         * tests/unictype/test-pr_diacritic.c: Likewise.
33950         * tests/unictype/test-pr_extender.c: Likewise.
33951         * tests/unictype/test-pr_format_control.c: Likewise.
33952         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33953         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33954         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33955         * tests/unictype/test-pr_hex_digit.c: Likewise.
33956         * tests/unictype/test-pr_hyphen.c: Likewise.
33957         * tests/unictype/test-pr_id_continue.c: Likewise.
33958         * tests/unictype/test-pr_id_start.c: Likewise.
33959         * tests/unictype/test-pr_ideographic.c: Likewise.
33960         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33961         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33962         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33963         * tests/unictype/test-pr_iso_control.c: Likewise.
33964         * tests/unictype/test-pr_join_control.c: Likewise.
33965         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33966         * tests/unictype/test-pr_line_separator.c: Likewise.
33967         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33968         * tests/unictype/test-pr_lowercase.c: Likewise.
33969         * tests/unictype/test-pr_math.c: Likewise.
33970         * tests/unictype/test-pr_non_break.c: Likewise.
33971         * tests/unictype/test-pr_not_a_character.c: Likewise.
33972         * tests/unictype/test-pr_numeric.c: Likewise.
33973         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33974         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33975         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33976         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33977         * tests/unictype/test-pr_other_id_start.c: Likewise.
33978         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33979         * tests/unictype/test-pr_other_math.c: Likewise.
33980         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33981         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33982         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33983         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33984         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33985         * tests/unictype/test-pr_private_use.c: Likewise.
33986         * tests/unictype/test-pr_punctuation.c: Likewise.
33987         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33988         * tests/unictype/test-pr_radical.c: Likewise.
33989         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33990         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33991         * tests/unictype/test-pr_space.c: Likewise.
33992         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33993         * tests/unictype/test-pr_titlecase.c: Likewise.
33994         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33995         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
33996         * tests/unictype/test-pr_uppercase.c: Likewise.
33997         * tests/unictype/test-pr_variation_selector.c: Likewise.
33998         * tests/unictype/test-pr_white_space.c: Likewise.
33999         * tests/unictype/test-pr_xid_continue.c: Likewise.
34000         * tests/unictype/test-pr_xid_start.c: Likewise.
34001         * tests/unictype/test-pr_zero_width.c: Likewise.
34002         * tests/unictype/test-sy_c_whitespace.c: Likewise.
34003         * tests/unictype/test-sy_java_whitespace.c: Likewise.
34004
34005 2007-11-12  Bruno Haible  <bruno@clisp.org>
34006
34007         Unicode character classification functions.
34008         * lib/unictype.h: New file.
34009         * modules/unictype/base: New file.
34010         * modules/unictype/category-L: New file.
34011         * modules/unictype/category-Lu: New file.
34012         * modules/unictype/category-Ll: New file.
34013         * modules/unictype/category-Lt: New file.
34014         * modules/unictype/category-Lm: New file.
34015         * modules/unictype/category-Lo: New file.
34016         * modules/unictype/category-M: New file.
34017         * modules/unictype/category-Mn: New file.
34018         * modules/unictype/category-Mc: New file.
34019         * modules/unictype/category-Me: New file.
34020         * modules/unictype/category-N: New file.
34021         * modules/unictype/category-Nd: New file.
34022         * modules/unictype/category-Nl: New file.
34023         * modules/unictype/category-No: New file.
34024         * modules/unictype/category-P: New file.
34025         * modules/unictype/category-Pc: New file.
34026         * modules/unictype/category-Pd: New file.
34027         * modules/unictype/category-Ps: New file.
34028         * modules/unictype/category-Pe: New file.
34029         * modules/unictype/category-Pi: New file.
34030         * modules/unictype/category-Pf: New file.
34031         * modules/unictype/category-Po: New file.
34032         * modules/unictype/category-S: New file.
34033         * modules/unictype/category-Sm: New file.
34034         * modules/unictype/category-Sc: New file.
34035         * modules/unictype/category-Sk: New file.
34036         * modules/unictype/category-So: New file.
34037         * modules/unictype/category-Z: New file.
34038         * modules/unictype/category-Zs: New file.
34039         * modules/unictype/category-Zl: New file.
34040         * modules/unictype/category-Zp: New file.
34041         * modules/unictype/category-C: New file.
34042         * modules/unictype/category-Cc: New file.
34043         * modules/unictype/category-Cf: New file.
34044         * modules/unictype/category-Cs: New file.
34045         * modules/unictype/category-Co: New file.
34046         * modules/unictype/category-Cn: New file.
34047         * modules/unictype/category-or: New file.
34048         * modules/unictype/category-of: New file.
34049         * modules/unictype/category-test: New file.
34050         * modules/unictype/category-test-withtable: New file.
34051         * modules/unictype/category-byname: New file.
34052         * modules/unictype/category-none: New file.
34053         * modules/unictype/category-and: New file.
34054         * modules/unictype/category-and-not: New file.
34055         * modules/unictype/category-name: New file.
34056         * modules/unictype/combining-class: New file.
34057         * modules/unictype/category-all: New file.
34058         * modules/unictype/bidicategory-all: New file.
34059         * modules/unictype/bidicategory-byname: New file.
34060         * modules/unictype/bidicategory-name: New file.
34061         * modules/unictype/bidicategory-of: New file.
34062         * modules/unictype/bidicategory-test: New file.
34063         * modules/unictype/decimal-digit: New file.
34064         * modules/unictype/digit: New file.
34065         * modules/unictype/numeric: New file.
34066         * modules/unictype/mirror: New file.
34067         * modules/unictype/property-white-space: New file.
34068         * modules/unictype/property-alphabetic: New file.
34069         * modules/unictype/property-other-alphabetic: New file.
34070         * modules/unictype/property-not-a-character: New file.
34071         * modules/unictype/property-default-ignorable-code-point: New file.
34072         * modules/unictype/property-other-default-ignorable-code-point: New
34073         file.
34074         * modules/unictype/property-deprecated: New file.
34075         * modules/unictype/property-logical-order-exception: New file.
34076         * modules/unictype/property-variation-selector: New file.
34077         * modules/unictype/property-private-use: New file.
34078         * modules/unictype/property-unassigned-code-value: New file.
34079         * modules/unictype/property-uppercase: New file.
34080         * modules/unictype/property-other-uppercase: New file.
34081         * modules/unictype/property-lowercase: New file.
34082         * modules/unictype/property-other-lowercase: New file.
34083         * modules/unictype/property-titlecase: New file.
34084         * modules/unictype/property-soft-dotted: New file.
34085         * modules/unictype/property-id-start: New file.
34086         * modules/unictype/property-other-id-start: New file.
34087         * modules/unictype/property-id-continue: New file.
34088         * modules/unictype/property-other-id-continue: New file.
34089         * modules/unictype/property-xid-start: New file.
34090         * modules/unictype/property-xid-continue: New file.
34091         * modules/unictype/property-pattern-white-space: New file.
34092         * modules/unictype/property-pattern-syntax: New file.
34093         * modules/unictype/property-join-control: New file.
34094         * modules/unictype/property-grapheme-base: New file.
34095         * modules/unictype/property-grapheme-extend: New file.
34096         * modules/unictype/property-other-grapheme-extend: New file.
34097         * modules/unictype/property-grapheme-link: New file.
34098         * modules/unictype/property-bidi-control: New file.
34099         * modules/unictype/property-bidi-left-to-right: New file.
34100         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
34101         * modules/unictype/property-bidi-arabic-right-to-left: New file.
34102         * modules/unictype/property-bidi-european-digit: New file.
34103         * modules/unictype/property-bidi-eur-num-separator: New file.
34104         * modules/unictype/property-bidi-eur-num-terminator: New file.
34105         * modules/unictype/property-bidi-arabic-digit: New file.
34106         * modules/unictype/property-bidi-common-separator: New file.
34107         * modules/unictype/property-bidi-block-separator: New file.
34108         * modules/unictype/property-bidi-segment-separator: New file.
34109         * modules/unictype/property-bidi-whitespace: New file.
34110         * modules/unictype/property-bidi-non-spacing-mark: New file.
34111         * modules/unictype/property-bidi-boundary-neutral: New file.
34112         * modules/unictype/property-bidi-pdf: New file.
34113         * modules/unictype/property-bidi-embedding-or-override: New file.
34114         * modules/unictype/property-bidi-other-neutral: New file.
34115         * modules/unictype/property-hex-digit: New file.
34116         * modules/unictype/property-ascii-hex-digit: New file.
34117         * modules/unictype/property-ideographic: New file.
34118         * modules/unictype/property-unified-ideograph: New file.
34119         * modules/unictype/property-radical: New file.
34120         * modules/unictype/property-ids-binary-operator: New file.
34121         * modules/unictype/property-ids-trinary-operator: New file.
34122         * modules/unictype/property-zero-width: New file.
34123         * modules/unictype/property-space: New file.
34124         * modules/unictype/property-non-break: New file.
34125         * modules/unictype/property-iso-control: New file.
34126         * modules/unictype/property-format-control: New file.
34127         * modules/unictype/property-dash: New file.
34128         * modules/unictype/property-hyphen: New file.
34129         * modules/unictype/property-punctuation: New file.
34130         * modules/unictype/property-line-separator: New file.
34131         * modules/unictype/property-paragraph-separator: New file.
34132         * modules/unictype/property-quotation-mark: New file.
34133         * modules/unictype/property-sentence-terminal: New file.
34134         * modules/unictype/property-terminal-punctuation: New file.
34135         * modules/unictype/property-currency-symbol: New file.
34136         * modules/unictype/property-math: New file.
34137         * modules/unictype/property-other-math: New file.
34138         * modules/unictype/property-paired-punctuation: New file.
34139         * modules/unictype/property-left-of-pair: New file.
34140         * modules/unictype/property-combining: New file.
34141         * modules/unictype/property-composite: New file.
34142         * modules/unictype/property-decimal-digit: New file.
34143         * modules/unictype/property-numeric: New file.
34144         * modules/unictype/property-diacritic: New file.
34145         * modules/unictype/property-extender: New file.
34146         * modules/unictype/property-ignorable-control: New file.
34147         * modules/unictype/property-test: New file.
34148         * modules/unictype/property-byname: New file.
34149         * modules/unictype/property-all: New file.
34150         * modules/unictype/scripts: New file.
34151         * modules/unictype/scripts-all: New file.
34152         * modules/unictype/block-of: New file.
34153         * modules/unictype/block-test: New file.
34154         * modules/unictype/block-list: New file.
34155         * modules/unictype/block-all: New file.
34156         * modules/unictype/syntax-c-whitespace: New file.
34157         * modules/unictype/syntax-java-whitespace: New file.
34158         * modules/unictype/syntax-c-ident: New file.
34159         * modules/unictype/syntax-java-ident: New file.
34160         * modules/unictype/ctype-alnum: New file.
34161         * modules/unictype/ctype-alpha: New file.
34162         * modules/unictype/ctype-cntrl: New file.
34163         * modules/unictype/ctype-digit: New file.
34164         * modules/unictype/ctype-graph: New file.
34165         * modules/unictype/ctype-lower: New file.
34166         * modules/unictype/ctype-print: New file.
34167         * modules/unictype/ctype-punct: New file.
34168         * modules/unictype/ctype-space: New file.
34169         * modules/unictype/ctype-upper: New file.
34170         * modules/unictype/ctype-xdigit: New file.
34171         * modules/unictype/ctype-blank: New file.
34172         * lib/unictype/bidi_byname.c: New file.
34173         * lib/unictype/bidi_name.c: New file.
34174         * lib/unictype/bidi_of.c: New file.
34175         * lib/unictype/bidi_test.c: New file.
34176         * lib/unictype/bitmap.h: New file.
34177         * lib/unictype/block_test.c: New file.
34178         * lib/unictype/blocks.c: New file.
34179         * lib/unictype/categ_C.c: New file.
34180         * lib/unictype/categ_Cc.c: New file.
34181         * lib/unictype/categ_Cf.c: New file.
34182         * lib/unictype/categ_Cn.c: New file.
34183         * lib/unictype/categ_Co.c: New file.
34184         * lib/unictype/categ_Cs.c: New file.
34185         * lib/unictype/categ_L.c: New file.
34186         * lib/unictype/categ_Ll.c: New file.
34187         * lib/unictype/categ_Lm.c: New file.
34188         * lib/unictype/categ_Lo.c: New file.
34189         * lib/unictype/categ_Lt.c: New file.
34190         * lib/unictype/categ_Lu.c: New file.
34191         * lib/unictype/categ_M.c: New file.
34192         * lib/unictype/categ_Mc.c: New file.
34193         * lib/unictype/categ_Me.c: New file.
34194         * lib/unictype/categ_Mn.c: New file.
34195         * lib/unictype/categ_N.c: New file.
34196         * lib/unictype/categ_Nd.c: New file.
34197         * lib/unictype/categ_Nl.c: New file.
34198         * lib/unictype/categ_No.c: New file.
34199         * lib/unictype/categ_P.c: New file.
34200         * lib/unictype/categ_Pc.c: New file.
34201         * lib/unictype/categ_Pd.c: New file.
34202         * lib/unictype/categ_Pe.c: New file.
34203         * lib/unictype/categ_Pf.c: New file.
34204         * lib/unictype/categ_Pi.c: New file.
34205         * lib/unictype/categ_Po.c: New file.
34206         * lib/unictype/categ_Ps.c: New file.
34207         * lib/unictype/categ_S.c: New file.
34208         * lib/unictype/categ_Sc.c: New file.
34209         * lib/unictype/categ_Sk.c: New file.
34210         * lib/unictype/categ_Sm.c: New file.
34211         * lib/unictype/categ_So.c: New file.
34212         * lib/unictype/categ_Z.c: New file.
34213         * lib/unictype/categ_Zl.c: New file.
34214         * lib/unictype/categ_Zp.c: New file.
34215         * lib/unictype/categ_Zs.c: New file.
34216         * lib/unictype/categ_and.c: New file.
34217         * lib/unictype/categ_and_not.c: New file.
34218         * lib/unictype/categ_byname.c: New file.
34219         * lib/unictype/categ_name.c: New file.
34220         * lib/unictype/categ_none.c: New file.
34221         * lib/unictype/categ_of.c: New file.
34222         * lib/unictype/categ_or.c: New file.
34223         * lib/unictype/categ_test.c: New file.
34224         * lib/unictype/combining.c: New file.
34225         * lib/unictype/ctype_alnum.c: New file.
34226         * lib/unictype/ctype_alpha.c: New file.
34227         * lib/unictype/ctype_blank.c: New file.
34228         * lib/unictype/ctype_cntrl.c: New file.
34229         * lib/unictype/ctype_digit.c: New file.
34230         * lib/unictype/ctype_graph.c: New file.
34231         * lib/unictype/ctype_lower.c: New file.
34232         * lib/unictype/ctype_print.c: New file.
34233         * lib/unictype/ctype_punct.c: New file.
34234         * lib/unictype/ctype_space.c: New file.
34235         * lib/unictype/ctype_upper.c: New file.
34236         * lib/unictype/ctype_xdigit.c: New file.
34237         * lib/unictype/decdigit.c: New file.
34238         * lib/unictype/digit.c: New file.
34239         * lib/unictype/identsyntaxmap.h: New file.
34240         * lib/unictype/mirror.c: New file.
34241         * lib/unictype/numeric.c: New file.
34242         * lib/unictype/pr_alphabetic.c: New file.
34243         * lib/unictype/pr_ascii_hex_digit.c: New file.
34244         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34245         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34246         * lib/unictype/pr_bidi_block_separator.c: New file.
34247         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34248         * lib/unictype/pr_bidi_common_separator.c: New file.
34249         * lib/unictype/pr_bidi_control.c: New file.
34250         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34251         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34252         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34253         * lib/unictype/pr_bidi_european_digit.c: New file.
34254         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34255         * lib/unictype/pr_bidi_left_to_right.c: New file.
34256         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34257         * lib/unictype/pr_bidi_other_neutral.c: New file.
34258         * lib/unictype/pr_bidi_pdf.c: New file.
34259         * lib/unictype/pr_bidi_segment_separator.c: New file.
34260         * lib/unictype/pr_bidi_whitespace.c: New file.
34261         * lib/unictype/pr_byname.c: New file.
34262         * lib/unictype/pr_byname.gperf: New file.
34263         * lib/unictype/pr_combining.c: New file.
34264         * lib/unictype/pr_composite.c: New file.
34265         * lib/unictype/pr_currency_symbol.c: New file.
34266         * lib/unictype/pr_dash.c: New file.
34267         * lib/unictype/pr_decimal_digit.c: New file.
34268         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34269         * lib/unictype/pr_deprecated.c: New file.
34270         * lib/unictype/pr_diacritic.c: New file.
34271         * lib/unictype/pr_extender.c: New file.
34272         * lib/unictype/pr_format_control.c: New file.
34273         * lib/unictype/pr_grapheme_base.c: New file.
34274         * lib/unictype/pr_grapheme_extend.c: New file.
34275         * lib/unictype/pr_grapheme_link.c: New file.
34276         * lib/unictype/pr_hex_digit.c: New file.
34277         * lib/unictype/pr_hyphen.c: New file.
34278         * lib/unictype/pr_id_continue.c: New file.
34279         * lib/unictype/pr_id_start.c: New file.
34280         * lib/unictype/pr_ideographic.c: New file.
34281         * lib/unictype/pr_ids_binary_operator.c: New file.
34282         * lib/unictype/pr_ids_trinary_operator.c: New file.
34283         * lib/unictype/pr_ignorable_control.c: New file.
34284         * lib/unictype/pr_iso_control.c: New file.
34285         * lib/unictype/pr_join_control.c: New file.
34286         * lib/unictype/pr_left_of_pair.c: New file.
34287         * lib/unictype/pr_line_separator.c: New file.
34288         * lib/unictype/pr_logical_order_exception.c: New file.
34289         * lib/unictype/pr_lowercase.c: New file.
34290         * lib/unictype/pr_math.c: New file.
34291         * lib/unictype/pr_non_break.c: New file.
34292         * lib/unictype/pr_not_a_character.c: New file.
34293         * lib/unictype/pr_numeric.c: New file.
34294         * lib/unictype/pr_other_alphabetic.c: New file.
34295         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34296         * lib/unictype/pr_other_grapheme_extend.c: New file.
34297         * lib/unictype/pr_other_id_continue.c: New file.
34298         * lib/unictype/pr_other_id_start.c: New file.
34299         * lib/unictype/pr_other_lowercase.c: New file.
34300         * lib/unictype/pr_other_math.c: New file.
34301         * lib/unictype/pr_other_uppercase.c: New file.
34302         * lib/unictype/pr_paired_punctuation.c: New file.
34303         * lib/unictype/pr_paragraph_separator.c: New file.
34304         * lib/unictype/pr_pattern_syntax.c: New file.
34305         * lib/unictype/pr_pattern_white_space.c: New file.
34306         * lib/unictype/pr_private_use.c: New file.
34307         * lib/unictype/pr_punctuation.c: New file.
34308         * lib/unictype/pr_quotation_mark.c: New file.
34309         * lib/unictype/pr_radical.c: New file.
34310         * lib/unictype/pr_sentence_terminal.c: New file.
34311         * lib/unictype/pr_soft_dotted.c: New file.
34312         * lib/unictype/pr_space.c: New file.
34313         * lib/unictype/pr_terminal_punctuation.c: New file.
34314         * lib/unictype/pr_test.c: New file.
34315         * lib/unictype/pr_titlecase.c: New file.
34316         * lib/unictype/pr_unassigned_code_value.c: New file.
34317         * lib/unictype/pr_unified_ideograph.c: New file.
34318         * lib/unictype/pr_uppercase.c: New file.
34319         * lib/unictype/pr_variation_selector.c: New file.
34320         * lib/unictype/pr_white_space.c: New file.
34321         * lib/unictype/pr_xid_continue.c: New file.
34322         * lib/unictype/pr_xid_start.c: New file.
34323         * lib/unictype/pr_zero_width.c: New file.
34324         * lib/unictype/scripts.c: New file.
34325         * lib/unictype/sy_c_ident.c: New file.
34326         * lib/unictype/sy_c_whitespace.c: New file.
34327         * lib/unictype/sy_java_ident.c: New file.
34328         * lib/unictype/sy_java_whitespace.c: New file.
34329
34330         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34331         Unicode 5.0.0.
34332         * lib/unictype/blocks.h: Likewise.
34333         * lib/unictype/categ_C.h: Likewise.
34334         * lib/unictype/categ_Cc.h: Likewise.
34335         * lib/unictype/categ_Cf.h: Likewise.
34336         * lib/unictype/categ_Cn.h: Likewise.
34337         * lib/unictype/categ_Co.h: Likewise.
34338         * lib/unictype/categ_Cs.h: Likewise.
34339         * lib/unictype/categ_L.h: Likewise.
34340         * lib/unictype/categ_Ll.h: Likewise.
34341         * lib/unictype/categ_Lm.h: Likewise.
34342         * lib/unictype/categ_Lo.h: Likewise.
34343         * lib/unictype/categ_Lt.h: Likewise.
34344         * lib/unictype/categ_Lu.h: Likewise.
34345         * lib/unictype/categ_M.h: Likewise.
34346         * lib/unictype/categ_Mc.h: Likewise.
34347         * lib/unictype/categ_Me.h: Likewise.
34348         * lib/unictype/categ_Mn.h: Likewise.
34349         * lib/unictype/categ_N.h: Likewise.
34350         * lib/unictype/categ_Nd.h: Likewise.
34351         * lib/unictype/categ_Nl.h: Likewise.
34352         * lib/unictype/categ_No.h: Likewise.
34353         * lib/unictype/categ_P.h: Likewise.
34354         * lib/unictype/categ_Pc.h: Likewise.
34355         * lib/unictype/categ_Pd.h: Likewise.
34356         * lib/unictype/categ_Pe.h: Likewise.
34357         * lib/unictype/categ_Pf.h: Likewise.
34358         * lib/unictype/categ_Pi.h: Likewise.
34359         * lib/unictype/categ_Po.h: Likewise.
34360         * lib/unictype/categ_Ps.h: Likewise.
34361         * lib/unictype/categ_S.h: Likewise.
34362         * lib/unictype/categ_Sc.h: Likewise.
34363         * lib/unictype/categ_Sk.h: Likewise.
34364         * lib/unictype/categ_Sm.h: Likewise.
34365         * lib/unictype/categ_So.h: Likewise.
34366         * lib/unictype/categ_Z.h: Likewise.
34367         * lib/unictype/categ_Zl.h: Likewise.
34368         * lib/unictype/categ_Zp.h: Likewise.
34369         * lib/unictype/categ_Zs.h: Likewise.
34370         * lib/unictype/categ_of.h: Likewise.
34371         * lib/unictype/combining.h: Likewise.
34372         * lib/unictype/ctype_alnum.h: Likewise.
34373         * lib/unictype/ctype_alpha.h: Likewise.
34374         * lib/unictype/ctype_blank.h: Likewise.
34375         * lib/unictype/ctype_cntrl.h: Likewise.
34376         * lib/unictype/ctype_digit.h: Likewise.
34377         * lib/unictype/ctype_graph.h: Likewise.
34378         * lib/unictype/ctype_lower.h: Likewise.
34379         * lib/unictype/ctype_print.h: Likewise.
34380         * lib/unictype/ctype_punct.h: Likewise.
34381         * lib/unictype/ctype_space.h: Likewise.
34382         * lib/unictype/ctype_upper.h: Likewise.
34383         * lib/unictype/ctype_xdigit.h: Likewise.
34384         * lib/unictype/decdigit.h: Likewise.
34385         * lib/unictype/digit.h: Likewise.
34386         * lib/unictype/mirror.h: Likewise.
34387         * lib/unictype/numeric.h: Likewise.
34388         * lib/unictype/pr_alphabetic.h: Likewise.
34389         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34390         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34391         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34392         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34393         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34394         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34395         * lib/unictype/pr_bidi_control.h: Likewise.
34396         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34397         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34398         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34399         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34400         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34401         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34402         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34403         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34404         * lib/unictype/pr_bidi_pdf.h: Likewise.
34405         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34406         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34407         * lib/unictype/pr_combining.h: Likewise.
34408         * lib/unictype/pr_composite.h: Likewise.
34409         * lib/unictype/pr_currency_symbol.h: Likewise.
34410         * lib/unictype/pr_dash.h: Likewise.
34411         * lib/unictype/pr_decimal_digit.h: Likewise.
34412         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34413         * lib/unictype/pr_deprecated.h: Likewise.
34414         * lib/unictype/pr_diacritic.h: Likewise.
34415         * lib/unictype/pr_extender.h: Likewise.
34416         * lib/unictype/pr_format_control.h: Likewise.
34417         * lib/unictype/pr_grapheme_base.h: Likewise.
34418         * lib/unictype/pr_grapheme_extend.h: Likewise.
34419         * lib/unictype/pr_grapheme_link.h: Likewise.
34420         * lib/unictype/pr_hex_digit.h: Likewise.
34421         * lib/unictype/pr_hyphen.h: Likewise.
34422         * lib/unictype/pr_id_continue.h: Likewise.
34423         * lib/unictype/pr_id_start.h: Likewise.
34424         * lib/unictype/pr_ideographic.h: Likewise.
34425         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34426         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34427         * lib/unictype/pr_ignorable_control.h: Likewise.
34428         * lib/unictype/pr_iso_control.h: Likewise.
34429         * lib/unictype/pr_join_control.h: Likewise.
34430         * lib/unictype/pr_left_of_pair.h: Likewise.
34431         * lib/unictype/pr_line_separator.h: Likewise.
34432         * lib/unictype/pr_logical_order_exception.h: Likewise.
34433         * lib/unictype/pr_lowercase.h: Likewise.
34434         * lib/unictype/pr_math.h: Likewise.
34435         * lib/unictype/pr_non_break.h: Likewise.
34436         * lib/unictype/pr_not_a_character.h: Likewise.
34437         * lib/unictype/pr_numeric.h: Likewise.
34438         * lib/unictype/pr_other_alphabetic.h: Likewise.
34439         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34440         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34441         * lib/unictype/pr_other_id_continue.h: Likewise.
34442         * lib/unictype/pr_other_id_start.h: Likewise.
34443         * lib/unictype/pr_other_lowercase.h: Likewise.
34444         * lib/unictype/pr_other_math.h: Likewise.
34445         * lib/unictype/pr_other_uppercase.h: Likewise.
34446         * lib/unictype/pr_paired_punctuation.h: Likewise.
34447         * lib/unictype/pr_paragraph_separator.h: Likewise.
34448         * lib/unictype/pr_pattern_syntax.h: Likewise.
34449         * lib/unictype/pr_pattern_white_space.h: Likewise.
34450         * lib/unictype/pr_private_use.h: Likewise.
34451         * lib/unictype/pr_punctuation.h: Likewise.
34452         * lib/unictype/pr_quotation_mark.h: Likewise.
34453         * lib/unictype/pr_radical.h: Likewise.
34454         * lib/unictype/pr_sentence_terminal.h: Likewise.
34455         * lib/unictype/pr_soft_dotted.h: Likewise.
34456         * lib/unictype/pr_space.h: Likewise.
34457         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34458         * lib/unictype/pr_titlecase.h: Likewise.
34459         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34460         * lib/unictype/pr_unified_ideograph.h: Likewise.
34461         * lib/unictype/pr_uppercase.h: Likewise.
34462         * lib/unictype/pr_variation_selector.h: Likewise.
34463         * lib/unictype/pr_white_space.h: Likewise.
34464         * lib/unictype/pr_xid_continue.h: Likewise.
34465         * lib/unictype/pr_xid_start.h: Likewise.
34466         * lib/unictype/pr_zero_width.h: Likewise.
34467         * lib/unictype/scripts.h: Likewise.
34468         * lib/unictype/scripts_byname.gperf: Likewise.
34469         * lib/unictype/sy_c_ident.h: Likewise.
34470         * lib/unictype/sy_c_whitespace.h: Likewise.
34471         * lib/unictype/sy_java_ident.h: Likewise.
34472         * lib/unictype/sy_java_whitespace.h: Likewise.
34473
34474         * lib/unictype/Makefile: New file.
34475         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34476         glibc.
34477         * lib/unictype/3level.h: New file, copied from glibc.
34478         * lib/unictype/3levelbit.h: New file.
34479
34480 2007-11-11  Bruno Haible  <bruno@clisp.org>
34481
34482         * modules/gperf: New file.
34483         * modules/iconv_open (Depends-on): Add it.
34484         (Makefile.am): Remove the GPERF definition.
34485
34486 2007-11-11  Bruno Haible  <bruno@clisp.org>
34487
34488         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34489         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34490
34491 2007-11-11  Bruno Haible  <bruno@clisp.org>
34492
34493         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34494         (usage): Remove function.
34495
34496 2007-11-11  Bruno Haible  <bruno@clisp.org>
34497
34498         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34499         gl_FUNC_CEILF_LIBS.
34500         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34501         gl_FUNC_CEIL_LIBS.
34502         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34503         gl_FUNC_CEILL_LIBS.
34504         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34505         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34506         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34507
34508 2007-11-11  Bruno Haible  <bruno@clisp.org>
34509
34510         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34511         roundf were declared but do not exist on functions.
34512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34513         roundl were declared but do not exist on functions.
34514         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34515         HAVE_FLOORL_AND_CEILL, respectively.
34516         Needed for Sun C on Solaris 10.
34517
34518 2007-11-11  Bruno Haible  <bruno@clisp.org>
34519
34520         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34521         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34522         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34523         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34524         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34525         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34526         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34527         HAVE_DECL_ROUNDF.
34528         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34529         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34531         of HAVE_DECL_ROUND*.
34532         * modules/math (Makefile.am): Update.
34533
34534 2007-11-10  Bruno Haible  <bruno@clisp.org>
34535
34536         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34537         ptrdiff_t as m4/intl.m4.
34538
34539 2007-11-10  Jim Meyering  <meyering@redhat.com>
34540
34541         Avoid link failure for the argmatch test.
34542         * tests/test-argmatch.c (usage): Define function to avoid a link
34543         failure: argmatch_die requires a usage function.
34544
34545 2007-11-09  Bruno Haible  <bruno@clisp.org>
34546
34547         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34548         * doc/functions/vsnprintf.texi: Likewise.
34549         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34550         with a size argument < 2.
34551
34552 2007-11-09  Bruno Haible  <bruno@clisp.org>
34553
34554         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34555         buffer. Fixes an inefficiency introduced on 2007-11-03.
34556
34557 2007-11-09  Bruno Haible  <bruno@clisp.org>
34558
34559         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34560         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34561
34562 2007-11-08  Jim Meyering  <meyering@redhat.com>
34563
34564         Change cache variable name prefix "jm_" to "gl_" everywhere.
34565         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34566         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34567         * m4/uptime.m4: s/gl_/jm_/
34568
34569 2007-11-07  Bruno Haible  <bruno@clisp.org>
34570
34571         Update to GNU gettext 0.17.
34572         * m4/intl.m4: Update to GNU gettext 0.17.
34573         * m4/po.m4: Likewise.
34574         * modules/gettext (Files): Remove m4/ulonglong.m4.
34575         (configure.ac): Require gettext infrastructure from version 0.17.
34576
34577 2007-11-06  Bruno Haible  <bruno@clisp.org>
34578
34579         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34580         symbolic values are not defined in a public header.
34581         * lib/freadable.c (freadable) [QNX]: Likewise.
34582         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34583         * lib/freading.c (freading) [QNX]: Likewise.
34584         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34585         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34586         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34587         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34588         Reported by Alain Magloire.
34589
34590         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34591
34592 2007-11-05  Bruno Haible  <bruno@clisp.org>
34593
34594         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34595         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34596         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34597         Reported by Eric Blake.
34598
34599 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34600             Bruno Haible  <bruno@clisp.org>
34601
34602         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34603         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34604         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34605         (malloc): Undefine also before including <stdlib.h>.
34606         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34607         Needed on OSF/1 4.0.
34608
34609 2007-11-05  Jim Meyering  <meyering@redhat.com>
34610
34611         git-version-gen: sync from coreutils.
34612         * build-aux/git-version-gen: Add comments.
34613         Change the first '-' to '.' in the snapshot version string,
34614         e.g., 6.9-377-08144 -> 6.9.377-08144
34615         Remove first parameter.
34616         Don't declare a version "-dirty" merely because a time
34617         stamp has changed.
34618
34619 2007-11-04  Bruno Haible  <bruno@clisp.org>
34620
34621         * lib/lock.h: Protect all macro definitions containing an 'if'
34622         statement through a "do { ... } while (0)".
34623         * lib/tls.h: Likewise.
34624
34625 2007-11-04  Bruno Haible  <bruno@clisp.org>
34626
34627         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34628
34629 2007-11-04  Bruno Haible  <bruno@clisp.org>
34630
34631         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34632         * modules/fprintf-posix (Depends-on): Add nocrash.
34633         * modules/snprintf-posix (Depends-on): Likewise.
34634         * modules/sprintf-posix (Depends-on): Likewise.
34635         * modules/vasnprintf-posix (Depends-on): Likewise.
34636         * modules/vasprintf-posix (Depends-on): Likewise.
34637         * modules/vfprintf-posix (Depends-on): Likewise.
34638         * modules/vsnprintf-posix (Depends-on): Likewise.
34639         * modules/vsprintf-posix (Depends-on): Likewise.
34640         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34641         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34642         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34643         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34644         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34645         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34646         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34647
34648 2007-11-04  Bruno Haible  <bruno@clisp.org>
34649
34650         * modules/nocrash: New file.
34651         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34652         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34653
34654 2007-11-04  Bruno Haible  <bruno@clisp.org>
34655
34656         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34657         precision handling.
34658         * tests/test-vasprintf-posix.c (test_function): Likewise.
34659         * tests/test-snprintf-posix.h (test_function): Likewise.
34660         * tests/test-sprintf-posix.h (test_function): Likewise.
34661
34662         Fix *printf behaviour for large precisions on mingw and BeOS.
34663         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34664         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34666         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34667         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34668         gl_PRINTF_PRECISION and test its result. Invoke
34669         gl_PREREQ_VASNPRINTF_PRECISION.
34670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34677         * doc/functions/fprintf.texi: Update.
34678         * doc/functions/printf.texi: Update.
34679         * doc/functions/snprintf.texi: Update.
34680         * doc/functions/sprintf.texi: Update.
34681         * doc/functions/vfprintf.texi: Update.
34682         * doc/functions/vprintf.texi: Update.
34683         * doc/functions/vsnprintf.texi: Update.
34684         * doc/functions/vsprintf.texi: Update.
34685
34686 2007-11-04  Bruno Haible  <bruno@clisp.org>
34687
34688         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34689
34690 2007-11-04  Bruno Haible  <bruno@clisp.org>
34691
34692         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34693         Reported by Sylvain Beucler <beuc@gnu.org>.
34694
34695 2007-11-03  Bruno Haible  <bruno@clisp.org>
34696
34697         * tests/test-fprintf-posix2.sh: New file.
34698         * tests/test-fprintf-posix2.c: New file.
34699         * modules/fprintf-posix-tests (Files): Add them.
34700         (TESTS): Add test-fprintf-posix2.sh.
34701         (configure.ac): Check for getrlimit and setrlimit.
34702         (check_PROGRAMS): Add test-fprintf-posix2.
34703
34704         * tests/test-printf-posix2.sh: New file.
34705         * tests/test-printf-posix2.c: New file.
34706         * modules/printf-posix-tests (Files): Add them.
34707         (TESTS): Add test-printf-posix2.sh.
34708         (configure.ac): Check for getrlimit and setrlimit.
34709         (check_PROGRAMS): Add test-printf-posix2.
34710
34711         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34712         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34713         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34714         (decode_double): New function, copied from decode_long_double.
34715         (scale10_round_decimal_decoded): New function, extracted from
34716         scale10_round_decimal_long_double.
34717         (scale10_round_decimal_long_double): Use it.
34718         (scale10_round_decimal_double): New function.
34719         (floorlog10): New function.
34720         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34722         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34724         gl_PRINTF_ENOMEM and test its result. Invoke
34725         gl_PREREQ_VASNPRINTF_ENOMEM.
34726         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34727         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34728         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34730         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34732         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34733         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34734         * modules/snprintf-posix (Depends-on): Likewise.
34735         * modules/sprintf-posix (Depends-on): Likewise.
34736         * modules/vasnprintf-posix (Depends-on): Likewise.
34737         * modules/vasprintf-posix (Depends-on): Likewise.
34738         * modules/vfprintf-posix (Depends-on): Likewise.
34739         * modules/vsnprintf-posix (Depends-on): Likewise.
34740         * modules/vsprintf-posix (Depends-on): Likewise.
34741         * doc/functions/fprintf.texi: Update.
34742         * doc/functions/printf.texi: Update.
34743         * doc/functions/snprintf.texi: Update.
34744         * doc/functions/sprintf.texi: Update.
34745         * doc/functions/vfprintf.texi: Update.
34746         * doc/functions/vprintf.texi: Update.
34747         * doc/functions/vsnprintf.texi: Update.
34748         * doc/functions/vsprintf.texi: Update.
34749
34750 2007-11-03  Bruno Haible  <bruno@clisp.org>
34751
34752         * modules/frexp-nolibm-tests: New file.
34753
34754         * modules/frexp-nolibm: New file.
34755         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34756
34757 2007-11-03  Bruno Haible  <bruno@clisp.org>
34758
34759         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34760         value is C99 compliant.
34761         Needed for OSF/1 5.1.
34762
34763 2007-11-03  Bruno Haible  <bruno@clisp.org>
34764
34765         Fix out-of-memory handling of vasnprintf.
34766         * lib/printf-parse.c: Include <errno.h>.
34767         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34768         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34769         is already set.
34770
34771 2007-11-02  Eric Blake  <ebb9@byu.net>
34772
34773         Fix tests on cygwin.
34774         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34775
34776 2007-11-01  Bruno Haible  <bruno@clisp.org>
34777
34778         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34779         warning.
34780         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34781         needed for POSIX compatibility.
34782
34783 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34784
34785         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34786         for compatibility with GNU.
34787
34788 2007-11-01  Bruno Haible  <bruno@clisp.org>
34789
34790         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34791         (putenv): Renamed from rpl_putenv. Change argument type from
34792         'const char *' to 'char *'.
34793         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34794         of defining putenv in config.h, just set REPLACE_PUTENV.
34795         * modules/putenv (Depends-on): Add stdlib.
34796         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34797         (Include): Use <stdlib.h>.
34798         * lib/stdlib.in.h (putenv): New declaration.
34799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34800         REPLACE_PUTENV.
34801         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34802         REPLACE_PUTENV.
34803         Needed for MacOS X 10.5.0.
34804         Reported by Peter O'Gorman <peter@pogma.com>.
34805
34806 2007-11-01  Jim Meyering  <meyering@redhat.com>
34807
34808         Treat an empty date string exactly like "0".
34809         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34810         if the remaining date string (to be parsed) is empty, use "0".
34811         Reported by Mischa Molhoek and discussed in this thread:
34812         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34813
34814 2007-10-31  Bruno Haible  <bruno@clisp.org>
34815
34816         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34817         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34818         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34819         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34820         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34821         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34822
34823 2007-10-31  Bruno Haible  <bruno@clisp.org>
34824
34825         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34826         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34827         (AC_TYPE_LONG_LONG_INT): Use it.
34828         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34829         it as well.
34830         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34831         to m4/longlong.m4.
34832         * modules/stdint (Files): Remove m4/ulonglong.m4.
34833         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34834         m4/ulonglong.m4.
34835         * modules/strtoumax (Files): Likewise.
34836
34837 2007-10-30  Bruno Haible  <bruno@clisp.org>
34838
34839         * modules/xvasprintf-posix: New file.
34840         Suggested by Eric Blake.
34841
34842 2007-10-30  Bruno Haible  <bruno@clisp.org>
34843
34844         * modules/xprintf-posix-tests: New file.
34845         * tests/test-xprintf-posix.sh: New file.
34846         * tests/test-xprintf-posix.c: New file.
34847         * tests/test-xfprintf-posix.c: New file.
34848
34849         * modules/xprintf-posix: New file.
34850
34851 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34852
34853         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34854         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34855         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34856
34857 2007-10-29  Bruno Haible  <bruno@clisp.org>
34858
34859         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34860         contain the special marker '_cv_'.
34861         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34862         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34863         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34864         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34865         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34866         Reported by Ralf Wildenhues.
34867
34868 2007-10-29  Bruno Haible  <bruno@clisp.org>
34869
34870         * gnulib-tool (func_import): When --lgpl is not specified, set
34871         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34872         GPLv3.
34873         Reported by Simon Josefsson.
34874
34875 2007-10-28  Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34878         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34879         HAVE_DECL_ISFINITE.
34880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34881         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34882         HAVE_DECL_ISFINITE.
34883
34884 2007-10-28  Bruno Haible  <bruno@clisp.org>
34885
34886         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34887         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34888
34889 2007-10-28  Bruno Haible  <bruno@clisp.org>
34890
34891         Fix link errors with Sun C 5.0 on Solaris 10.
34892         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34893         function is declared but not present in the compiler's libm.
34894         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34895         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34896         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34897         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34898         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34899         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34900         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34902         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34903         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34904         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34905         HAVE_DECL_FLOORL.
34906
34907 2007-10-28  Bruno Haible  <bruno@clisp.org>
34908
34909         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34910         gl_FUNC_FLOORL. Cache the result.
34911         (gl_FUNC_FLOORL): Use it.
34912         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34913         gl_FUNC_CEILL. Cache the result.
34914         (gl_FUNC_CEILL): Use it.
34915
34916         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34917         gl_FUNC_FLOOR. Cache the result.
34918         (gl_FUNC_FLOOR): Use it.
34919         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34920         gl_FUNC_CEIL. Cache the result.
34921         (gl_FUNC_CEIL): Use it.
34922
34923         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34924         gl_FUNC_FLOORF. Cache the result.
34925         (gl_FUNC_FLOORF): Use it.
34926         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34927         gl_FUNC_CEILF. Cache the result.
34928         (gl_FUNC_CEILF): Use it.
34929
34930 2007-10-28  Bruno Haible  <bruno@clisp.org>
34931
34932         * gnulib-tool: Allow specifying the LGPL version number through
34933         --lgpl=2 or --lgpl=3.
34934         (func_usage): Document --lgpl with argument.
34935         Handle --lgpl=... arguments.
34936         (func_import): Recognize also gl_LGPL calls with an argument. When
34937         --lgpl=2 is used and the module's license is just LGPL, report an
34938         error. Set sed_transform_lib_file according to the lgpl variable. In
34939         the generated files, use --lgpl or gl_LGPL invocations with argument,
34940         if necessary.
34941         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34942         an LGPv2+ license.
34943         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34944         gl_LGPL macro.
34945
34946 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34947             Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34950         (u16_uctomb_aux): Likewise.
34951         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34952         !HAVE_INLINE.
34953         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34954
34955 2007-10-28  Bruno Haible  <bruno@clisp.org>
34956
34957         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34958         Invoke AM_GETTEXT_OPTION if it exists.
34959         * modules/vasprintf: Likewise.
34960         * modules/verror: Likewise.
34961         * modules/xprintf: Likewise.
34962         * modules/xvasprintf: Likewise.
34963
34964 2007-10-27  Ben Pfaff  <blp@gnu.org>
34965
34966         * lib/math.in.h: Define isfinite macro and prototypes for
34967         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34968         implementations.
34969         * m4/math_h.m4: New substitutions for isfinite module.
34970         * lib/isfinite.c: New file.
34971         * m4/isfinite.m4: New file.
34972         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34973         * modules/isfinite: New file.
34974         * modules/isfinite-tests: New file.
34975         * tests/tests-isfinite.c: New file.
34976         * doc/functions/isfinite.texi: Mention isfinite module.
34977         * MODULES.html.sh: Mention new module.
34978
34979 2007-10-27  Ben Pfaff  <blp@gnu.org>
34980
34981         Ralf Wildenhues reported that Tru64 4.0D declares the round
34982         functions but does not have definitions.
34983         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34984         cannot be found in any library, set the output variable to
34985         "missing" instead of "".
34986         * m4/round.m4: Also use our substitute if we cannot find round in
34987         any library, even if it is declared.
34988         * m4/roundf.m4: Likewise for roundf.
34989         * m4/roundl.m4: Likewise for roundl.
34990         * lib/math.in.h: Undefine roundf, round, roundl before defining
34991         their replacements, to allow for hypothetical systems where these
34992         may be defined as macros but not available in libraries.
34993
34994 2007-10-27  Bruno Haible  <bruno@clisp.org>
34995
34996         * doc/gnulib.texi: Invoke @firstparagraphindent.
34997         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
34998         changes in gnulib.
34999         (Source changes): New section.
35000
35001 2007-10-26  Bruno Haible  <bruno@clisp.org>
35002
35003         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
35004         borrowed from autoconf.
35005
35006 2007-10-26  Bruno Haible  <bruno@clisp.org>
35007
35008         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
35009         strerror returned the empty string. Needed on HP-UX 11.00.
35010
35011 2007-10-24  Micah Cowan  <micah@cowan.name>
35012
35013         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
35014         * build-aux/bootstrap: Remove support for now-unnecessary option,
35015         --cvs-user, and envvars CVS_USER, CVS_RSH.
35016
35017 2007-10-24  Jim Meyering  <meyering@redhat.com>
35018
35019         Avoid diagnostics from sha1sum when there is no cached checksum.
35020         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
35021         if the po.s1 file hasn't been created yet.
35022
35023         * build-aux/bootstrap: Sync from coreutils:
35024         2007-10-24  Jim Meyering  <meyering@redhat.com>
35025         Get gnulib from the git repository, not from an obsolete cvs one.
35026         * build-aux/bootstrap: Suggestion from Micah Cowan.
35027         2007-10-04  Jim Meyering  <jim@meyering.net>
35028         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
35029         (update_po_files): Work also when there are no .po files in po/.
35030
35031 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35032
35033         * README: Append ".git" to git and cg examples.
35034         Problem reported by Benoit Sigoure.
35035
35036 2007-10-23  Micah Cowan  <micah@cowan.name>
35037
35038         * users.txt: Add wget.
35039
35040 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35041
35042         Fix linking of some unistdio tests on FreeBSD.
35043         * modules/unistdio/u16-vsnprintf-tests
35044         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
35045         * modules/unistdio/u16-vsprintf-tests
35046         (test_u16_vsnprintf1_LDADD): Likewise.
35047         * modules/unistdio/u32-vsnprintf-tests
35048         (test_u32_vsnprintf1_LDADD): Likewise.
35049         * modules/unistdio/u32-vsprintf-tests
35050         (test_u32_vsprintf1_LDADD): Likewise.
35051         * modules/unistdio/u8-vsnprintf-tests
35052         (test_u8_vsnprintf1_LDADD): Likewise.
35053         * modules/unistdio/u8-vsprintf-tests
35054         (test_u8_vsprintf1_LDADD): Likewise.
35055         * modules/unistdio/ulc-vsnprintf-tests
35056         (test_ulc_vsnprintf1_LDADD): Likewise.
35057         * modules/unistdio/ulc-vsprintf-tests
35058         (test_ulc_vsprintf1_LDADD): Likewise.
35059
35060         Fix linking of some uniconv tests on FreeBSD.
35061         * modules/uniconv/u16-conv-from-enc-tests
35062         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
35063         * modules/uniconv/u16-conv-to-enc-tests
35064         (test_u16_conv_to_enc_LDADD): Likewise.
35065         * modules/uniconv/u16-strconv-from-enc-tests
35066         (test_u16_strconv_from_enc_LDADD): Likewise.
35067         * modules/uniconv/u16-strconv-to-enc-tests
35068         (test_u16_strconv_to_enc_LDADD): Likewise.
35069         * modules/uniconv/u32-conv-from-enc-tests
35070         (test_u32_conv_from_enc_LDADD): Likewise.
35071         * modules/uniconv/u32-conv-to-enc-tests
35072         (test_u32_conv_to_enc_LDADD): Likewise.
35073         * modules/uniconv/u32-strconv-from-enc-tests
35074         (test_u32_strconv_from_enc_LDADD): Likewise.
35075         * modules/uniconv/u32-strconv-to-enc-tests
35076         (test_u32_strconv_to_enc_LDADD): Likewise.
35077         * modules/uniconv/u8-conv-from-enc-tests
35078         (test_u8_conv_from_enc_LDADD): Likewise.
35079         * modules/uniconv/u8-conv-to-enc-tests
35080         (test_u8_conv_to_enc_LDADD): Likewise.
35081         * modules/uniconv/u8-strconv-from-enc-tests
35082         (test_u8_strconv_from_enc_LDADD): Likewise.
35083         * modules/uniconv/u8-strconv-to-enc-tests
35084         (test_u8_strconv_to_enc_LDADD): Likewise.
35085
35086 2007-10-22  Bruno Haible  <bruno@clisp.org>
35087
35088         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
35089         size.
35090
35091 2007-10-22  Eric Blake  <ebb9@byu.net>
35092
35093         Tweak x*printf documentation.
35094         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
35095         variable name and comments.
35096         Suggested by Bruno Haible.
35097
35098 2007-10-22  Bruno Haible  <bruno@clisp.org>
35099
35100         * lib/acl.c (copy_acl): Fix file name in comment.
35101
35102 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35103
35104         Fix Tru64 problem with stdbool.h.
35105         * lib/stdbool.in.h (false, true):
35106         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
35107         Don't declare as an enum in this situation; it runs afoul of Tru64.
35108         Problem reported by Steven M. Schweda in
35109         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
35110
35111 2007-10-22  Eric Blake  <ebb9@byu.net>
35112
35113         Also wrap vf?printf.
35114         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
35115         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
35116         (xvprintf, xvfprintf): New functions.
35117
35118 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35119
35120         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
35121         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
35122
35123         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
35124         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
35125
35126 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35127
35128         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
35129         by Bruno Haible.
35130
35131 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35132
35133         * lib/getloadavg.c
35134         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
35135         Undef `sys' after including sys/table.h, for Tru64 4.0D.
35136
35137         * tests/test-i-ring.c: Work for C89.
35138
35139 2007-10-22  Bruno Haible  <bruno@clisp.org>
35140
35141         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
35142         -1u, in preprocessor expression, so that we don't test for the bug
35143         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
35144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
35145
35146 2007-10-22  Eric Blake  <ebb9@byu.net>
35147
35148         * tests/test-yesno.sh: Silence stderr during test.
35149
35150 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35151
35152         * modules/crypto/gc-camellia: New file.
35153
35154         * m4/gc-camellia.m4: New file.
35155
35156         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35157
35158         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35159
35160 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35161
35162         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35163         --help to stdout.  Reported by sms@antinode.org (Steven
35164         M. Schweda).
35165
35166 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35167
35168         * users.txt: Fix link to libksba.
35169
35170 2007-10-21  Ben Pfaff  <blp@gnu.org>
35171
35172         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35173         round.c roundf implementation that depends on floorf and ceilf to
35174         be tested unconditionally.
35175
35176 2007-10-21  Ben Pfaff  <blp@gnu.org>
35177
35178         * m4/check-libm-func.m4: Removed.
35179         * m4/check-math-lib.m4: New file.
35180         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35181         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35182         definition and lack of AC_LIBOBJ([roundf]).
35183         * m4/roundl.m4: Ditto, and similarly for roundl.
35184         * modules/round: Reference new m4 file.
35185         * modules/roundf: Ditto.
35186         * modules/roundl: Ditto.
35187         * tests/test-round2.c (main): Use ROUND instead of round.
35188         Bug report from Bruno Haible.
35189
35190 2007-10-21  Bruno Haible  <bruno@clisp.org>
35191
35192         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35193         context.
35194
35195 2007-10-21  Bruno Haible  <bruno@clisp.org>
35196
35197         * tests/test-wcwidth.c (main): Allow negative result for some control
35198         characters.
35199
35200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35201         Needed on OSF/1 5.1.
35202
35203 2007-10-21  Bruno Haible  <bruno@clisp.org>
35204
35205         * tests/test-floorf1.c: Include isnanf.h.
35206         (main): Use isnanf() instead of isnan().
35207         * tests/test-ceilf1.c: Include isnanf.h.
35208         (main): Use isnanf() instead of isnan().
35209         * tests/test-truncf1.c: Include isnanf.h.
35210         (main): Use isnanf() instead of isnan().
35211         * tests/test-roundf1.c: Include isnanf.h.
35212         (main): Use isnanf() instead of isnan().
35213
35214 2007-10-21  Eric Blake  <ebb9@byu.net>
35215
35216         * users.txt: Update URL for m4.
35217
35218 2007-10-21  Bruno Haible  <bruno@clisp.org>
35219
35220         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35221
35222 2007-10-21  Bruno Haible  <bruno@clisp.org>
35223
35224         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35225         Git's management files if the CVS files are not present.
35226
35227 2007-10-20  Bruno Haible  <bruno@clisp.org>
35228
35229         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35230         gcc-3.4.x.
35231
35232 2007-10-20  Ben Pfaff  <blp@gnu.org>
35233
35234         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35235         implementations.
35236         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35237         * lib/round.c: New file.
35238         * lib/roundf.c: New file.
35239         * lib/roundl.c: New file.
35240         * m4/round.m4: New file.
35241         * m4/roundf.m4: New file.
35242         * m4/roundl.m4: New file.
35243         * m4/check-libm-func-m4: New file.
35244         * modules/math: Replace round, roundf, roundl related @VARS@ in
35245         math.in.h.
35246         * modules/round: New file.
35247         * modules/round-tests: New file.
35248         * modules/roundf: New file.
35249         * modules/roundf-tests: New file.
35250         * modules/roundl: New file.
35251         * modules/roundl-tests: New file.
35252         * tests/test-round1.c: New file.
35253         * tests/test-round2.c: New file.
35254         * tests/test-roundf1.c: New file.
35255         * tests/test-roundf2.c: New file.
35256         * tests/test-roundl.c: New file.
35257         * doc/functions/round.texi: Mention round module.
35258         * doc/functions/roundf.texi: Mention roundf module.
35259         * doc/functions/roundl.texi: Mention roundl module.
35260         * MODULES.html.sh: Mention new modules.
35261         Thanks to Bruno Haible for suggestions.
35262
35263 2007-10-20  Jim Meyering  <meyering@redhat.com>
35264
35265         * lib/xprintf.c: Include <config.h> unconditionally.
35266
35267         Change xprintf's license to GPL.
35268         * modules/xprintf (License): s/LGPL/GPL/, since this module
35269         depends on modules (exit and exitfail) which are GPL.
35270         Suggestion from Bruno Haible.
35271
35272         xprintf fixes.
35273         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35274         Use a clearer diagnostic.
35275         Patch from Bruno Haible.
35276
35277 2007-10-20  Bruno Haible  <bruno@clisp.org>
35278
35279         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35280         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35282
35283 2007-10-20  Bruno Haible  <bruno@clisp.org>
35284
35285         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35286         precision in the comparison result > x - 1 or similar.
35287         * tests/test-ceilf2.c (correct_result_p): Likewise.
35288         * tests/test-truncf2.c (correct_result_p): Likewise.
35289         * tests/test-trunc2.c (correct_result_p): Likewise.
35290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35291
35292 2007-10-20  Bruno Haible  <bruno@clisp.org>
35293
35294         * modules/ceil: New file.
35295         * m4/ceil.m4: New file.
35296         * doc/functions/ceil.texi: Mention the 'ceil' module.
35297
35298 2007-10-20  Bruno Haible  <bruno@clisp.org>
35299
35300         * modules/floor: New file.
35301         * m4/floor.m4: New file.
35302         * doc/functions/floor.texi: Mention the 'floor' module.
35303
35304 2007-10-20  Bruno Haible  <bruno@clisp.org>
35305
35306         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35307         of %a.
35308         * modules/floorf-tests (Depends-on): Likewise.
35309         * modules/truncf-tests (Depends-on): Likewise.
35310         * modules/trunc-tests (Depends-on): Likewise.
35311         Reported by Ben Pfaff.
35312
35313 2007-10-19  Jim Meyering  <meyering@redhat.com>
35314
35315         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35316         Don't bother testing specific errno values.  Just test ferror.
35317
35318         New module: xprintf
35319         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35320
35321 2007-10-19  Bruno Haible  <bruno@clisp.org>
35322
35323         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35324         syntax.
35325         * modules/javaexec (Makefile.am): Likewise.
35326         * modules/relocatable-prog (Makefile.am): Likewise.
35327         Suggested by Jim Meyering.
35328
35329 2007-10-18  Bruno Haible  <bruno@clisp.org>
35330
35331         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35332         Reported by Jim Meyering.
35333
35334 2007-10-18  Eric Blake  <ebb9@byu.net>
35335
35336         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35337
35338 2007-10-18  Bruno Haible  <bruno@clisp.org>
35339
35340         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35341         the format string into writable memory. Needed in Fortify conditions.
35342
35343 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35344             Bruno Haible  <bruno@clisp.org>
35345
35346         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35347         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35348         * modules/trim (Depends-on): Add mbchar.
35349         (configure.ac): Add gl_FUNC_MBRTOWC.
35350         (Makefile.am): Augment lib_SOURCES.
35351
35352 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35353
35354         Modify glob.c to use fstatat and dirfd, to simplify it.
35355         Suggested by Eric Blake.
35356         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35357         Don't include <stdbool.h>; not used.
35358         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35359         (link_exists_p): Simplify implementation, since we can now assume
35360         dirfd and fstatat.
35361         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35362
35363 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35364
35365         * gnulib-tool (func_get_dependencies): Fix sed script to
35366         match only tests.
35367
35368 2007-10-17  Bruno Haible  <bruno@clisp.org>
35369
35370         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35371         allow locale names without encoding suffix.
35372         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35373         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35374
35375 2007-10-16  Bruno Haible  <bruno@clisp.org>
35376
35377         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35378         * lib/getgroups.c (getgroups): Likewise.
35379         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35380
35381 2007-10-16  Bruno Haible  <bruno@clisp.org>
35382
35383         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35384         * modules/malloc-posix (License): Likewise.
35385         * modules/realloc-posix (License): Likewise.
35386         * modules/calloc-posix (License): Likewise.
35387         * modules/intprops (License): Change from GPL to LGPL, with
35388         Paul Eggert's approval.
35389
35390 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35391
35392         Merge glibc changes into lib/glob.c.
35393
35394         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35395         2007-10-15 04:59:03 UTC.  Here are the changes:
35396
35397         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35398
35399         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35400
35401         * lib/glob.c: Add some branch prediction throughout.
35402
35403         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35404
35405         [BZ #5103]
35406         * lib/glob.c (glob): Recognize patterns starting \/.
35407
35408         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35409
35410         [BZ #3996]
35411         * lib/glob.c (attribute_hidden): Define if not defined.
35412         (glob): Unescape dirname, filename or username when needed and not
35413         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35414         is NULL.  Handle unescaped [ in pattern without closing ].
35415         Don't pass GLOB_CHECK down to recursive glob for directories.
35416         (__glob_pattern_type): New function.
35417         (__glob_pattern_p): Implement using __glob_pattern_type.
35418         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35419         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35420         Remove unreachable code.
35421
35422         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35423
35424         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35425         explain why there are no leaks.
35426
35427         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35428
35429         [BZ #3253]
35430         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35431         time, rather allocate increasingly bigger arrays of pointers, if
35432         possible with alloca, if too large with malloc.
35433
35434 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35435
35436         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35437         Problem reported by H.Merijn Brand in
35438         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35439         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35440         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35441
35442 2007-10-15  Bruno Haible  <bruno@clisp.org>
35443
35444         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35445         with explicit rpl_ prefix.
35446         * lib/fopen.c (fopen): Likewise.
35447         * lib/freopen.c (freopen): Likewise.
35448         * lib/iconv.c (iconv): Likewise.
35449         * lib/iconv_close.c (iconv_close): Likewise.
35450
35451 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35452
35453         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35454
35455 2007-10-15  Bruno Haible  <bruno@clisp.org>
35456
35457         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35458         <stddef.h> instead of <stdlib.h> since we only need NULL.
35459         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35460
35461 2007-10-15  Bruno Haible  <bruno@clisp.org>
35462
35463         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35464         Replace paragraph talking about LIBOBJS.
35465         Reported by Colin Watson <cjwatson@debian.org>.
35466
35467 2007-10-15  Bruno Haible  <bruno@clisp.org>
35468
35469         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35470         <stdlib.h> before using NULL.
35471
35472 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35473
35474         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35475         Reported by Albert Chin <china@thewrittenword.com>.
35476
35477 2007-10-14  Bruno Haible  <bruno@clisp.org>
35478
35479         * modules/iconv_open-utf-tests: New file.
35480         * tests/test-iconv-utf.c: New file.
35481
35482         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35483         * modules/iconv_open-utf: New file.
35484         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35485         (iconv, iconv_close): New declarations.
35486         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35487         be defined.
35488         (iconv_open): Add special handling of conversion between UTF-8 and
35489         UTF-{16,32}{BE,LE}.
35490         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35491         * lib/iconv_close.c: New file.
35492         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35493         gl_FUNC_ICONV_OPEN.
35494         (gl_FUNC_ICONV_OPEN): Use it.
35495         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35496         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35497         and REPLACE_ICONV_UTF.
35498         * modules/iconv_open (Depends-on): Add c-strcase.
35499         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35500         ICONV_CONST.
35501         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35502
35503 2007-10-13  Albert Chin  <china@thewrittenword.com>
35504             Bruno Haible  <bruno@clisp.org>
35505
35506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35507         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35508
35509 2007-10-13  Bruno Haible  <bruno@clisp.org>
35510
35511         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35512         defined, use the ISO C99 inline semantics.
35513         * lib/argp.h (ARGP_EI): Likewise.
35514
35515 2007-10-13  Bruno Haible  <bruno@clisp.org>
35516
35517         Handle 'inline' change in gcc 4.3.0.
35518         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35519         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35520         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35521         argp_fmtstream_point): Disable 'extern' declaration if the function
35522         definition is going to be provided inline.
35523         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35524         semantics, not the ISO C99 inline semantics.
35525         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35526         'extern' declaration if the function definition is going to be provided
35527         inline.
35528         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35529         the GNU C inline semantics, not the ISO C99 inline semantics. With
35530         GCC 4.2, avoid a warning.
35531
35532 2007-10-13  Bruno Haible  <bruno@clisp.org>
35533
35534         * lib/freading.h (freading): Enable the use of __freading for
35535         glibc >= 2.7.
35536         * lib/freading.c (freading): Likewise.
35537
35538 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35539
35540         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35541         "warning: C99 inline functions are not supported; using GNU89".
35542
35543 2007-10-12  Bruno Haible  <bruno@clisp.org>
35544
35545         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35546         of 2.
35547         * tests/test-ceilf2.c: New file.
35548         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35549
35550         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35551         * modules/ceilf-tests: Update.
35552
35553 2007-10-12  Bruno Haible  <bruno@clisp.org>
35554
35555         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35556         of 2.
35557         * tests/test-floorf2.c: New file.
35558         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35559
35560         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35561         * modules/floorf-tests: Update.
35562
35563 2007-10-12  Bruno Haible  <bruno@clisp.org>
35564
35565         * tests/test-trunc2.c: New file.
35566         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35567
35568         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35569         * modules/trunc-tests: Update.
35570
35571 2007-10-12  Bruno Haible  <bruno@clisp.org>
35572
35573         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35574         of 2.
35575         * tests/test-truncf2.c: New file.
35576         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35577
35578         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35579         * modules/truncf-tests: Update.
35580
35581 2007-10-11  Eric Blake  <ebb9@byu.net>
35582
35583         Don't claim strerror is broken on Interix.
35584         * doc/functions/strerror.texi (strerror): Known broken systems are
35585         now Solaris 8, and not Interix.
35586         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35587         Interix on cross-compile.
35588         Reported by Martin Koeppe in
35589         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35590
35591 2007-10-11  Bruno Haible  <bruno@clisp.org>
35592
35593         * modules/i-ring-tests: New file.
35594         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35595         instead of assert.
35596
35597 2007-10-11  Bruno Haible  <bruno@clisp.org>
35598
35599         * modules/filenamecat-tests: New file.
35600         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35601         * lib/filenamecat.c: Remove test code.
35602
35603 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35604
35605         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35606
35607         * lib/strerror.c: Include <string.h> always, to test interface,
35608         and to remove the need for the dummy.
35609         Include intprops.h to compute width instead of doing it ourselves
35610         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35611         (strerror): Define it to return NULL if there's no system strerror.
35612         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35613         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35614         ancient pre-strerror Unix systems well any more.  Saying "unknown
35615         system error" is enough.
35616         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35617         simpler strerror.c implementation.
35618         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35619         Simplify the tests to reflect the simpler strerror implementation.
35620         * modules/strerror (Depends-on): Add intprops.
35621
35622 2007-10-09  Eric Blake  <ebb9@byu.net>
35623
35624         Silence test-fpending.
35625         * modules/fpending-tests (Files): Add wrapper script.
35626         * tests/test-fpending.sh: New file.
35627
35628 2007-10-09  Bruno Haible  <bruno@clisp.org>
35629
35630         * MODULES.html.sh (func_module): Don't create a hyperlink for
35631         function names like 'printf_frexp'.
35632         (Misc): Add crc, memxor.
35633         (Characteristics of floating types): New section.
35634         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35635         isnanf-nolibm, signbit, trunc, truncf, truncl.
35636         (Enhancements for ISO C 99 functions): New subsection Input/output.
35637         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35638         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35639         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35640         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35641         (Enhancements for POSIX:2001 functions): Add chdir-long.
35642         (File system functions): Add areadlink, chdir-safer, read-file.
35643         Remove cycle-check.
35644         (File system as inode set): New section.
35645         (Date and time): Add gethrxtime.
35646         (Multithreading): Add openmp.
35647         (Internationalization functions): Add localename.
35648         (Unicode string functions): Add unistr/u*-mbsnlen.
35649         (Support for maintaining and releasing projects): Add git-version-gen.
35650         (Lone files): Remove directories.
35651
35652 2007-10-08  Ben Pfaff  <blp@gnu.org>
35653
35654         * lib/xmalloca.h: Fix typo in comment.
35655
35656 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35657
35658         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35659         when avoiding problems with integer overflow.  Use a portable test
35660         instead.
35661
35662 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35663
35664         * modules/dummy (License): Change to LGPLv2+.
35665         * modules/float (License): Likewise
35666         * modules/realloc (License): Likewise
35667         * modules/stdlib (License): Likewise
35668
35669 2007-10-07  Bruno Haible  <bruno@clisp.org>
35670
35671         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35672         * floor.c (TWO_MANT_DIG): Likewise.
35673         * ceil.c (TWO_MANT_DIG): Likewise.
35674         Reported by Ben Pfaff.
35675
35676 2007-10-07  Bruno Haible  <bruno@clisp.org>
35677
35678         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35679         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35680         * lib/frexp.c (FUNC): Likewise.
35681         * lib/printf-frexp.h (printf_frexp): Likewise.
35682         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35683         * lib/printf-frexp.c (FUNC): Likewise.
35684         Suggested by Jim Meyering.
35685
35686 2007-10-07  Jim Meyering  <meyering@redhat.com>
35687
35688         Make xnanosleep's integer overflow test more robust.
35689         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35690         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35691
35692 2007-10-07  Bruno Haible  <bruno@clisp.org>
35693
35694         * NEWS: Mention the license change.
35695
35696         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35697         abbreviations in the modules files.
35698
35699         Change copyright notice from GPLv2+ to GPLv3+.
35700         * README: Change copyright notice.
35701         * MODULES.html.sh: Likewise.
35702         * build-aux/bootstrap.conf: Likewise.
35703         * build-aux/config.libpath: Likewise.
35704         * build-aux/csharpcomp.sh.in: Likewise.
35705         * build-aux/csharpexec.sh.in: Likewise.
35706         * build-aux/install-reloc: Likewise.
35707         * build-aux/javacomp.sh.in: Likewise.
35708         * build-aux/javaexec.sh.in: Likewise.
35709         * build-aux/ldd.sh.in: Likewise.
35710         * build-aux/reloc-ldflags: Likewise.
35711         * build-aux/relocatable.sh.in: Likewise.
35712         * build-aux/x-to-1.in: Likewise.
35713         * check-module: Likewise.
35714         * config/srclistvars.sh: Likewise.
35715         * gnulib-tool: Likewise.
35716         * lib/acl-internal.h: Likewise.
35717         * lib/acl.c: Likewise.
35718         * lib/acl.h: Likewise.
35719         * lib/acl_entries.c: Likewise.
35720         * lib/areadlink-with-size.c: Likewise.
35721         * lib/areadlink.c: Likewise.
35722         * lib/areadlink.h: Likewise.
35723         * lib/argmatch.c: Likewise.
35724         * lib/argmatch.h: Likewise.
35725         * lib/argp-ba.c: Likewise.
35726         * lib/argp-eexst.c: Likewise.
35727         * lib/argp-fmtstream.c: Likewise.
35728         * lib/argp-fmtstream.h: Likewise.
35729         * lib/argp-fs-xinl.c: Likewise.
35730         * lib/argp-help.c: Likewise.
35731         * lib/argp-namefrob.h: Likewise.
35732         * lib/argp-parse.c: Likewise.
35733         * lib/argp-pin.c: Likewise.
35734         * lib/argp-pv.c: Likewise.
35735         * lib/argp-pvh.c: Likewise.
35736         * lib/argp-xinl.c: Likewise.
35737         * lib/argp.h: Likewise.
35738         * lib/at-func.c: Likewise.
35739         * lib/atanl.c: Likewise.
35740         * lib/backupfile.c: Likewise.
35741         * lib/backupfile.h: Likewise.
35742         * lib/basename.c: Likewise.
35743         * lib/binary-io.h: Likewise.
35744         * lib/byteswap.in.h: Likewise.
35745         * lib/c-stack.c: Likewise.
35746         * lib/c-stack.h: Likewise.
35747         * lib/c-strcasestr.c: Likewise.
35748         * lib/c-strcasestr.h: Likewise.
35749         * lib/c-strstr.c: Likewise.
35750         * lib/c-strstr.h: Likewise.
35751         * lib/c-strtod.c: Likewise.
35752         * lib/calloc.c: Likewise.
35753         * lib/canon-host.c: Likewise.
35754         * lib/canon-host.h: Likewise.
35755         * lib/canonicalize-lgpl.c: Likewise.
35756         * lib/canonicalize.c: Likewise.
35757         * lib/canonicalize.h: Likewise.
35758         * lib/ceil.c: Likewise.
35759         * lib/ceilf.c: Likewise.
35760         * lib/ceill.c: Likewise.
35761         * lib/chdir-long.c: Likewise.
35762         * lib/chdir-long.h: Likewise.
35763         * lib/chdir-safer.c: Likewise.
35764         * lib/chdir-safer.h: Likewise.
35765         * lib/chown.c: Likewise.
35766         * lib/classpath.c: Likewise.
35767         * lib/classpath.h: Likewise.
35768         * lib/clean-temp.c: Likewise.
35769         * lib/clean-temp.h: Likewise.
35770         * lib/cloexec.c: Likewise.
35771         * lib/close-stream.c: Likewise.
35772         * lib/closein.c: Likewise.
35773         * lib/closein.h: Likewise.
35774         * lib/closeout.c: Likewise.
35775         * lib/closeout.h: Likewise.
35776         * lib/concat-filename.c: Likewise.
35777         * lib/copy-file.c: Likewise.
35778         * lib/copy-file.h: Likewise.
35779         * lib/count-one-bits.h: Likewise.
35780         * lib/crc.c: Likewise.
35781         * lib/crc.h: Likewise.
35782         * lib/creat-safer.c: Likewise.
35783         * lib/csharpcomp.c: Likewise.
35784         * lib/csharpcomp.h: Likewise.
35785         * lib/csharpexec.c: Likewise.
35786         * lib/csharpexec.h: Likewise.
35787         * lib/cycle-check.c: Likewise.
35788         * lib/cycle-check.h: Likewise.
35789         * lib/diacrit.c: Likewise.
35790         * lib/diacrit.h: Likewise.
35791         * lib/diffseq.h: Likewise.
35792         * lib/dirchownmod.c: Likewise.
35793         * lib/dirent.in.h: Likewise.
35794         * lib/dirfd.c: Likewise.
35795         * lib/dirfd.h: Likewise.
35796         * lib/dirname.c: Likewise.
35797         * lib/dirname.h: Likewise.
35798         * lib/dummy.c: Likewise.
35799         * lib/dup-safer.c: Likewise.
35800         * lib/dup2.c: Likewise.
35801         * lib/eealloc.h: Likewise.
35802         * lib/error.c: Likewise.
35803         * lib/error.h: Likewise.
35804         * lib/euidaccess.c: Likewise.
35805         * lib/exclude.c: Likewise.
35806         * lib/exclude.h: Likewise.
35807         * lib/execute.c: Likewise.
35808         * lib/execute.h: Likewise.
35809         * lib/exitfail.c: Likewise.
35810         * lib/exitfail.h: Likewise.
35811         * lib/expl.c: Likewise.
35812         * lib/fatal-signal.c: Likewise.
35813         * lib/fatal-signal.h: Likewise.
35814         * lib/fbufmode.c: Likewise.
35815         * lib/fbufmode.h: Likewise.
35816         * lib/fchdir.c: Likewise.
35817         * lib/fchmodat.c: Likewise.
35818         * lib/fchownat.c: Likewise.
35819         * lib/fcntl--.h: Likewise.
35820         * lib/fcntl-safer.h: Likewise.
35821         * lib/fcntl.in.h: Likewise.
35822         * lib/fd-safer.c: Likewise.
35823         * lib/fflush.c: Likewise.
35824         * lib/file-has-acl.c: Likewise.
35825         * lib/file-set.c: Likewise.
35826         * lib/file-type.c: Likewise.
35827         * lib/file-type.h: Likewise.
35828         * lib/fileblocks.c: Likewise.
35829         * lib/filemode.c: Likewise.
35830         * lib/filemode.h: Likewise.
35831         * lib/filename.h: Likewise.
35832         * lib/filenamecat.c: Likewise.
35833         * lib/filenamecat.h: Likewise.
35834         * lib/findprog.c: Likewise.
35835         * lib/findprog.h: Likewise.
35836         * lib/float.in.h: Likewise.
35837         * lib/floor.c: Likewise.
35838         * lib/floorf.c: Likewise.
35839         * lib/floorl.c: Likewise.
35840         * lib/fopen-safer.c: Likewise.
35841         * lib/fopen.c: Likewise.
35842         * lib/fpending.c: Likewise.
35843         * lib/fpending.h: Likewise.
35844         * lib/fprintf.c: Likewise.
35845         * lib/fprintftime.h: Likewise.
35846         * lib/fpucw.h: Likewise.
35847         * lib/fpurge.c: Likewise.
35848         * lib/fpurge.h: Likewise.
35849         * lib/freadable.c: Likewise.
35850         * lib/freadable.h: Likewise.
35851         * lib/freadahead.c: Likewise.
35852         * lib/freadahead.h: Likewise.
35853         * lib/freading.c: Likewise.
35854         * lib/freading.h: Likewise.
35855         * lib/free.c: Likewise.
35856         * lib/freopen.c: Likewise.
35857         * lib/frexp.c: Likewise.
35858         * lib/frexpl.c: Likewise.
35859         * lib/fseek.c: Likewise.
35860         * lib/fseterr.c: Likewise.
35861         * lib/fseterr.h: Likewise.
35862         * lib/fstatat.c: Likewise.
35863         * lib/fstrcmp.c: Likewise.
35864         * lib/fstrcmp.h: Likewise.
35865         * lib/fsusage.c: Likewise.
35866         * lib/fsusage.h: Likewise.
35867         * lib/ftell.c: Likewise.
35868         * lib/ftello.c: Likewise.
35869         * lib/fts-cycle.c: Likewise.
35870         * lib/fts.c: Likewise.
35871         * lib/fts_.h: Likewise.
35872         * lib/full-read.c: Likewise.
35873         * lib/full-read.h: Likewise.
35874         * lib/full-write.c: Likewise.
35875         * lib/full-write.h: Likewise.
35876         * lib/fwritable.c: Likewise.
35877         * lib/fwritable.h: Likewise.
35878         * lib/fwriteerror.c: Likewise.
35879         * lib/fwriteerror.h: Likewise.
35880         * lib/fwriting.c: Likewise.
35881         * lib/fwriting.h: Likewise.
35882         * lib/gcd.c: Likewise.
35883         * lib/gcd.h: Likewise.
35884         * lib/getcwd.c: Likewise.
35885         * lib/getdate.h: Likewise.
35886         * lib/getdate.y: Likewise.
35887         * lib/getdomainname.c: Likewise.
35888         * lib/getdomainname.h: Likewise.
35889         * lib/getgroups.c: Likewise.
35890         * lib/gethostname.c: Likewise.
35891         * lib/gethrxtime.c: Likewise.
35892         * lib/gethrxtime.h: Likewise.
35893         * lib/getloadavg.c: Likewise.
35894         * lib/getndelim2.c: Likewise.
35895         * lib/getndelim2.h: Likewise.
35896         * lib/getnline.c: Likewise.
35897         * lib/getnline.h: Likewise.
35898         * lib/getopt.c: Likewise.
35899         * lib/getopt.in.h: Likewise.
35900         * lib/getopt1.c: Likewise.
35901         * lib/getopt_int.h: Likewise.
35902         * lib/getpagesize.h: Likewise.
35903         * lib/getsubopt.c: Likewise.
35904         * lib/gettime.c: Likewise.
35905         * lib/getugroups.c: Likewise.
35906         * lib/getugroups.h: Likewise.
35907         * lib/getusershell.c: Likewise.
35908         * lib/gl_anyavltree_list1.h: Likewise.
35909         * lib/gl_anyavltree_list2.h: Likewise.
35910         * lib/gl_anyhash_list1.h: Likewise.
35911         * lib/gl_anyhash_list2.h: Likewise.
35912         * lib/gl_anylinked_list1.h: Likewise.
35913         * lib/gl_anylinked_list2.h: Likewise.
35914         * lib/gl_anyrbtree_list1.h: Likewise.
35915         * lib/gl_anyrbtree_list2.h: Likewise.
35916         * lib/gl_anytree_list1.h: Likewise.
35917         * lib/gl_anytree_list2.h: Likewise.
35918         * lib/gl_anytree_oset.h: Likewise.
35919         * lib/gl_anytreehash_list1.h: Likewise.
35920         * lib/gl_anytreehash_list2.h: Likewise.
35921         * lib/gl_array_list.c: Likewise.
35922         * lib/gl_array_list.h: Likewise.
35923         * lib/gl_array_oset.c: Likewise.
35924         * lib/gl_array_oset.h: Likewise.
35925         * lib/gl_avltree_list.c: Likewise.
35926         * lib/gl_avltree_list.h: Likewise.
35927         * lib/gl_avltree_oset.c: Likewise.
35928         * lib/gl_avltree_oset.h: Likewise.
35929         * lib/gl_avltreehash_list.c: Likewise.
35930         * lib/gl_avltreehash_list.h: Likewise.
35931         * lib/gl_carray_list.c: Likewise.
35932         * lib/gl_carray_list.h: Likewise.
35933         * lib/gl_linked_list.c: Likewise.
35934         * lib/gl_linked_list.h: Likewise.
35935         * lib/gl_linkedhash_list.c: Likewise.
35936         * lib/gl_linkedhash_list.h: Likewise.
35937         * lib/gl_list.c: Likewise.
35938         * lib/gl_list.h: Likewise.
35939         * lib/gl_oset.c: Likewise.
35940         * lib/gl_oset.h: Likewise.
35941         * lib/gl_rbtree_list.c: Likewise.
35942         * lib/gl_rbtree_list.h: Likewise.
35943         * lib/gl_rbtree_oset.c: Likewise.
35944         * lib/gl_rbtree_oset.h: Likewise.
35945         * lib/gl_rbtreehash_list.c: Likewise.
35946         * lib/gl_rbtreehash_list.h: Likewise.
35947         * lib/gl_sublist.c: Likewise.
35948         * lib/gl_sublist.h: Likewise.
35949         * lib/group-member.c: Likewise.
35950         * lib/group-member.h: Likewise.
35951         * lib/hard-locale.c: Likewise.
35952         * lib/hard-locale.h: Likewise.
35953         * lib/hash-pjw.c: Likewise.
35954         * lib/hash-pjw.h: Likewise.
35955         * lib/hash-triple.c: Likewise.
35956         * lib/hash.c: Likewise.
35957         * lib/hash.h: Likewise.
35958         * lib/human.c: Likewise.
35959         * lib/human.h: Likewise.
35960         * lib/i-ring.c: Likewise.
35961         * lib/i-ring.h: Likewise.
35962         * lib/idcache.c: Likewise.
35963         * lib/imaxabs.c: Likewise.
35964         * lib/imaxdiv.c: Likewise.
35965         * lib/inet_pton.c: Likewise.
35966         * lib/inet_pton.h: Likewise.
35967         * lib/intprops.h: Likewise.
35968         * lib/inttostr.c: Likewise.
35969         * lib/inttostr.h: Likewise.
35970         * lib/inttypes.in.h: Likewise.
35971         * lib/isapipe.c: Likewise.
35972         * lib/isdir.c: Likewise.
35973         * lib/isnan.c: Likewise.
35974         * lib/isnan.h: Likewise.
35975         * lib/isnanf.c: Likewise.
35976         * lib/isnanf.h: Likewise.
35977         * lib/isnanl-nolibm.h: Likewise.
35978         * lib/isnanl.c: Likewise.
35979         * lib/isnanl.h: Likewise.
35980         * lib/javacomp.c: Likewise.
35981         * lib/javacomp.h: Likewise.
35982         * lib/javaexec.c: Likewise.
35983         * lib/javaexec.h: Likewise.
35984         * lib/javaversion.c: Likewise.
35985         * lib/javaversion.h: Likewise.
35986         * lib/javaversion.java: Likewise.
35987         * lib/lbrkprop.h: Likewise.
35988         * lib/lchmod.h: Likewise.
35989         * lib/lchown.c: Likewise.
35990         * lib/ldexpl.c: Likewise.
35991         * lib/linebreak.c: Likewise.
35992         * lib/linebreak.h: Likewise.
35993         * lib/linebuffer.c: Likewise.
35994         * lib/linebuffer.h: Likewise.
35995         * lib/locale.in.h: Likewise.
35996         * lib/logl.c: Likewise.
35997         * lib/long-options.c: Likewise.
35998         * lib/long-options.h: Likewise.
35999         * lib/lstat.c: Likewise.
36000         * lib/lstat.h: Likewise.
36001         * lib/math.in.h: Likewise.
36002         * lib/mbchar.c: Likewise.
36003         * lib/mbchar.h: Likewise.
36004         * lib/mbfile.h: Likewise.
36005         * lib/mbiter.h: Likewise.
36006         * lib/mbscasecmp.c: Likewise.
36007         * lib/mbscasestr.c: Likewise.
36008         * lib/mbschr.c: Likewise.
36009         * lib/mbscspn.c: Likewise.
36010         * lib/mbslen.c: Likewise.
36011         * lib/mbsncasecmp.c: Likewise.
36012         * lib/mbsnlen.c: Likewise.
36013         * lib/mbspbrk.c: Likewise.
36014         * lib/mbspcasecmp.c: Likewise.
36015         * lib/mbsrchr.c: Likewise.
36016         * lib/mbssep.c: Likewise.
36017         * lib/mbsspn.c: Likewise.
36018         * lib/mbsstr.c: Likewise.
36019         * lib/mbstok_r.c: Likewise.
36020         * lib/mbswidth.c: Likewise.
36021         * lib/mbswidth.h: Likewise.
36022         * lib/mbuiter.h: Likewise.
36023         * lib/memcasecmp.c: Likewise.
36024         * lib/memcasecmp.h: Likewise.
36025         * lib/memchr.c: Likewise.
36026         * lib/memcmp.c: Likewise.
36027         * lib/memcoll.c: Likewise.
36028         * lib/memcoll.h: Likewise.
36029         * lib/memcpy.c: Likewise.
36030         * lib/memrchr.c: Likewise.
36031         * lib/mkancesdirs.c: Likewise.
36032         * lib/mkdir-p.c: Likewise.
36033         * lib/mkdir-p.h: Likewise.
36034         * lib/mkdir.c: Likewise.
36035         * lib/mkdirat.c: Likewise.
36036         * lib/mkdtemp.c: Likewise.
36037         * lib/mkstemp-safer.c: Likewise.
36038         * lib/mkstemp.c: Likewise.
36039         * lib/modechange.c: Likewise.
36040         * lib/modechange.h: Likewise.
36041         * lib/mountlist.c: Likewise.
36042         * lib/mountlist.h: Likewise.
36043         * lib/mpsort.c: Likewise.
36044         * lib/nanosleep.c: Likewise.
36045         * lib/obstack.c: Likewise.
36046         * lib/obstack.h: Likewise.
36047         * lib/open-safer.c: Likewise.
36048         * lib/open.c: Likewise.
36049         * lib/openat-die.c: Likewise.
36050         * lib/openat-priv.h: Likewise.
36051         * lib/openat-proc.c: Likewise.
36052         * lib/openat.c: Likewise.
36053         * lib/openat.h: Likewise.
36054         * lib/pagealign_alloc.c: Likewise.
36055         * lib/pagealign_alloc.h: Likewise.
36056         * lib/physmem.c: Likewise.
36057         * lib/physmem.h: Likewise.
36058         * lib/pipe-safer.c: Likewise.
36059         * lib/pipe.c: Likewise.
36060         * lib/pipe.h: Likewise.
36061         * lib/posixtm.c: Likewise.
36062         * lib/posixtm.h: Likewise.
36063         * lib/posixver.c: Likewise.
36064         * lib/printf-frexp.c: Likewise.
36065         * lib/printf-frexp.h: Likewise.
36066         * lib/printf-frexpl.c: Likewise.
36067         * lib/printf-frexpl.h: Likewise.
36068         * lib/printf.c: Likewise.
36069         * lib/progname.c: Likewise.
36070         * lib/progname.h: Likewise.
36071         * lib/progreloc.c: Likewise.
36072         * lib/putenv.c: Likewise.
36073         * lib/quote.c: Likewise.
36074         * lib/quote.h: Likewise.
36075         * lib/quotearg.c: Likewise.
36076         * lib/quotearg.h: Likewise.
36077         * lib/raise.c: Likewise.
36078         * lib/readline.c: Likewise.
36079         * lib/readline.h: Likewise.
36080         * lib/readlink.c: Likewise.
36081         * lib/readtokens.c: Likewise.
36082         * lib/readtokens.h: Likewise.
36083         * lib/readtokens0.c: Likewise.
36084         * lib/readtokens0.h: Likewise.
36085         * lib/readutmp.c: Likewise.
36086         * lib/readutmp.h: Likewise.
36087         * lib/realloc.c: Likewise.
36088         * lib/relocwrapper.c: Likewise.
36089         * lib/rename-dest-slash.c: Likewise.
36090         * lib/rename.c: Likewise.
36091         * lib/rmdir.c: Likewise.
36092         * lib/rpmatch.c: Likewise.
36093         * lib/safe-read.c: Likewise.
36094         * lib/safe-read.h: Likewise.
36095         * lib/safe-write.c: Likewise.
36096         * lib/safe-write.h: Likewise.
36097         * lib/same-inode.h: Likewise.
36098         * lib/same.c: Likewise.
36099         * lib/same.h: Likewise.
36100         * lib/save-cwd.c: Likewise.
36101         * lib/save-cwd.h: Likewise.
36102         * lib/savedir.c: Likewise.
36103         * lib/savedir.h: Likewise.
36104         * lib/savewd.c: Likewise.
36105         * lib/savewd.h: Likewise.
36106         * lib/search.in.h: Likewise.
36107         * lib/setenv.c: Likewise.
36108         * lib/setenv.h: Likewise.
36109         * lib/settime.c: Likewise.
36110         * lib/sh-quote.c: Likewise.
36111         * lib/sh-quote.h: Likewise.
36112         * lib/sig2str.c: Likewise.
36113         * lib/sig2str.h: Likewise.
36114         * lib/signal.in.h: Likewise.
36115         * lib/signbitd.c: Likewise.
36116         * lib/signbitf.c: Likewise.
36117         * lib/signbitl.c: Likewise.
36118         * lib/sigprocmask.c: Likewise.
36119         * lib/sincosl.c: Likewise.
36120         * lib/sleep.c: Likewise.
36121         * lib/sprintf.c: Likewise.
36122         * lib/sqrtl.c: Likewise.
36123         * lib/stat-time.h: Likewise.
36124         * lib/stdio--.h: Likewise.
36125         * lib/stdio-safer.h: Likewise.
36126         * lib/stdlib--.h: Likewise.
36127         * lib/stdlib-safer.h: Likewise.
36128         * lib/stdlib.in.h: Likewise.
36129         * lib/stpcpy.c: Likewise.
36130         * lib/stpncpy.c: Likewise.
36131         * lib/strchrnul.c: Likewise.
36132         * lib/strcspn.c: Likewise.
36133         * lib/strerror.c: Likewise.
36134         * lib/strftime.c: Likewise.
36135         * lib/strftime.h: Likewise.
36136         * lib/striconveh.c: Likewise.
36137         * lib/striconveh.h: Likewise.
36138         * lib/striconveha.c: Likewise.
36139         * lib/striconveha.h: Likewise.
36140         * lib/stripslash.c: Likewise.
36141         * lib/strnlen1.c: Likewise.
36142         * lib/strnlen1.h: Likewise.
36143         * lib/strtod.c: Likewise.
36144         * lib/strtoimax.c: Likewise.
36145         * lib/strtok_r.c: Likewise.
36146         * lib/strtol.c: Likewise.
36147         * lib/strtoll.c: Likewise.
36148         * lib/strtoul.c: Likewise.
36149         * lib/strtoull.c: Likewise.
36150         * lib/sysexits.in.h: Likewise.
36151         * lib/tempname.c: Likewise.
36152         * lib/tempname.h: Likewise.
36153         * lib/timespec.h: Likewise.
36154         * lib/tls.c: Likewise.
36155         * lib/tls.h: Likewise.
36156         * lib/tmpdir.c: Likewise.
36157         * lib/tmpdir.h: Likewise.
36158         * lib/tmpfile-safer.c: Likewise.
36159         * lib/tmpfile.c: Likewise.
36160         * lib/trigl.c: Likewise.
36161         * lib/trigl.h: Likewise.
36162         * lib/trim.c: Likewise.
36163         * lib/trim.h: Likewise.
36164         * lib/trunc.c: Likewise.
36165         * lib/truncf.c: Likewise.
36166         * lib/truncl.c: Likewise.
36167         * lib/tsearch.c: Likewise.
36168         * lib/unicodeio.c: Likewise.
36169         * lib/unicodeio.h: Likewise.
36170         * lib/unistd--.h: Likewise.
36171         * lib/unistd-safer.h: Likewise.
36172         * lib/unistdio/ulc-fprintf.c: Likewise.
36173         * lib/unistdio/ulc-vfprintf.c: Likewise.
36174         * lib/unlinkdir.c: Likewise.
36175         * lib/unlinkdir.h: Likewise.
36176         * lib/unlocked-io.h: Likewise.
36177         * lib/unsetenv.c: Likewise.
36178         * lib/userspec.c: Likewise.
36179         * lib/utime.c: Likewise.
36180         * lib/utimecmp.c: Likewise.
36181         * lib/utimecmp.h: Likewise.
36182         * lib/utimens.c: Likewise.
36183         * lib/verify.h: Likewise.
36184         * lib/verror.c: Likewise.
36185         * lib/verror.h: Likewise.
36186         * lib/version-etc-fsf.c: Likewise.
36187         * lib/version-etc.c: Likewise.
36188         * lib/version-etc.h: Likewise.
36189         * lib/vfprintf.c: Likewise.
36190         * lib/vprintf.c: Likewise.
36191         * lib/vsprintf.c: Likewise.
36192         * lib/w32spawn.h: Likewise.
36193         * lib/wait-process.c: Likewise.
36194         * lib/wait-process.h: Likewise.
36195         * lib/wcwidth.c: Likewise.
36196         * lib/write-any-file.c: Likewise.
36197         * lib/xalloc-die.c: Likewise.
36198         * lib/xalloc.h: Likewise.
36199         * lib/xasprintf.c: Likewise.
36200         * lib/xgetcwd.c: Likewise.
36201         * lib/xgetcwd.h: Likewise.
36202         * lib/xgetdomainname.c: Likewise.
36203         * lib/xgetdomainname.h: Likewise.
36204         * lib/xgethostname.c: Likewise.
36205         * lib/xmalloc.c: Likewise.
36206         * lib/xmalloca.c: Likewise.
36207         * lib/xmalloca.h: Likewise.
36208         * lib/xmemcoll.c: Likewise.
36209         * lib/xnanosleep.c: Likewise.
36210         * lib/xreadlink.c: Likewise.
36211         * lib/xreadlink.h: Likewise.
36212         * lib/xsetenv.c: Likewise.
36213         * lib/xsetenv.h: Likewise.
36214         * lib/xstriconv.c: Likewise.
36215         * lib/xstriconv.h: Likewise.
36216         * lib/xstrndup.c: Likewise.
36217         * lib/xstrndup.h: Likewise.
36218         * lib/xstrtod.c: Likewise.
36219         * lib/xstrtod.h: Likewise.
36220         * lib/xstrtol-error.c: Likewise.
36221         * lib/xstrtol.c: Likewise.
36222         * lib/xstrtol.h: Likewise.
36223         * lib/xtime.h: Likewise.
36224         * lib/xvasprintf.c: Likewise.
36225         * lib/xvasprintf.h: Likewise.
36226         * lib/yesno.c: Likewise.
36227         * lib/yesno.h: Likewise.
36228         * posix-modules: Likewise.
36229         * tests/test-alloca-opt.c: Likewise.
36230         * tests/test-arcfour.c: Likewise.
36231         * tests/test-arctwo.c: Likewise.
36232         * tests/test-argmatch.c: Likewise.
36233         * tests/test-argp-2.sh: Likewise.
36234         * tests/test-argp.c: Likewise.
36235         * tests/test-arpa_inet.c: Likewise.
36236         * tests/test-array_list.c: Likewise.
36237         * tests/test-array_oset.c: Likewise.
36238         * tests/test-atexit.c: Likewise.
36239         * tests/test-avltree_list.c: Likewise.
36240         * tests/test-avltree_oset.c: Likewise.
36241         * tests/test-avltreehash_list.c: Likewise.
36242         * tests/test-base64.c: Likewise.
36243         * tests/test-binary-io.c: Likewise.
36244         * tests/test-byteswap.c: Likewise.
36245         * tests/test-c-ctype.c: Likewise.
36246         * tests/test-c-strcasecmp.c: Likewise.
36247         * tests/test-c-strcasestr.c: Likewise.
36248         * tests/test-c-strncasecmp.c: Likewise.
36249         * tests/test-c-strstr.c: Likewise.
36250         * tests/test-canonicalize-lgpl.c: Likewise.
36251         * tests/test-canonicalize.c: Likewise.
36252         * tests/test-carray_list.c: Likewise.
36253         * tests/test-ceilf.c: Likewise.
36254         * tests/test-ceill.c: Likewise.
36255         * tests/test-count-one-bits.c: Likewise.
36256         * tests/test-crc.c: Likewise.
36257         * tests/test-dirname.c: Likewise.
36258         * tests/test-fbufmode.c: Likewise.
36259         * tests/test-fcntl.c: Likewise.
36260         * tests/test-fflush.c: Likewise.
36261         * tests/test-floorf.c: Likewise.
36262         * tests/test-floorl.c: Likewise.
36263         * tests/test-fopen.c: Likewise.
36264         * tests/test-fprintf-posix.c: Likewise.
36265         * tests/test-fprintf-posix.h: Likewise.
36266         * tests/test-fpurge.c: Likewise.
36267         * tests/test-freadable.c: Likewise.
36268         * tests/test-freadahead.c: Likewise.
36269         * tests/test-freading.c: Likewise.
36270         * tests/test-freopen.c: Likewise.
36271         * tests/test-frexp.c: Likewise.
36272         * tests/test-frexpl.c: Likewise.
36273         * tests/test-fseek.c: Likewise.
36274         * tests/test-fseeko.c: Likewise.
36275         * tests/test-fseterr.c: Likewise.
36276         * tests/test-fstrcmp.c: Likewise.
36277         * tests/test-ftell.c: Likewise.
36278         * tests/test-ftello.c: Likewise.
36279         * tests/test-fwritable.c: Likewise.
36280         * tests/test-fwriting.c: Likewise.
36281         * tests/test-getaddrinfo.c: Likewise.
36282         * tests/test-getpass.c: Likewise.
36283         * tests/test-gettimeofday.c: Likewise.
36284         * tests/test-hmac-md5.c: Likewise.
36285         * tests/test-hmac-sha1.c: Likewise.
36286         * tests/test-iconv.c: Likewise.
36287         * tests/test-iconvme.c: Likewise.
36288         * tests/test-inttypes.c: Likewise.
36289         * tests/test-isnan.c: Likewise.
36290         * tests/test-isnanf.c: Likewise.
36291         * tests/test-isnanl-nolibm.c: Likewise.
36292         * tests/test-isnanl.c: Likewise.
36293         * tests/test-isnanl.h: Likewise.
36294         * tests/test-ldexpl.c: Likewise.
36295         * tests/test-linked_list.c: Likewise.
36296         * tests/test-linkedhash_list.c: Likewise.
36297         * tests/test-locale.c: Likewise.
36298         * tests/test-localename.c: Likewise.
36299         * tests/test-lock.c: Likewise.
36300         * tests/test-lseek.c: Likewise.
36301         * tests/test-malloca.c: Likewise.
36302         * tests/test-math.c: Likewise.
36303         * tests/test-mbscasecmp.c: Likewise.
36304         * tests/test-mbscasestr1.c: Likewise.
36305         * tests/test-mbscasestr2.c: Likewise.
36306         * tests/test-mbscasestr3.c: Likewise.
36307         * tests/test-mbscasestr4.c: Likewise.
36308         * tests/test-mbschr.c: Likewise.
36309         * tests/test-mbscspn.c: Likewise.
36310         * tests/test-mbsncasecmp.c: Likewise.
36311         * tests/test-mbspbrk.c: Likewise.
36312         * tests/test-mbspcasecmp.c: Likewise.
36313         * tests/test-mbsrchr.c: Likewise.
36314         * tests/test-mbsspn.c: Likewise.
36315         * tests/test-mbsstr1.c: Likewise.
36316         * tests/test-mbsstr2.c: Likewise.
36317         * tests/test-mbsstr3.c: Likewise.
36318         * tests/test-md5.c: Likewise.
36319         * tests/test-memmem.c: Likewise.
36320         * tests/test-netinet_in.c: Likewise.
36321         * tests/test-open.c: Likewise.
36322         * tests/test-printf-frexp.c: Likewise.
36323         * tests/test-printf-frexpl.c: Likewise.
36324         * tests/test-printf-posix.c: Likewise.
36325         * tests/test-printf-posix.h: Likewise.
36326         * tests/test-rbtree_list.c: Likewise.
36327         * tests/test-rbtree_oset.c: Likewise.
36328         * tests/test-rbtreehash_list.c: Likewise.
36329         * tests/test-read-file.c: Likewise.
36330         * tests/test-rijndael.c: Likewise.
36331         * tests/test-search.c: Likewise.
36332         * tests/test-signbit.c: Likewise.
36333         * tests/test-sleep.c: Likewise.
36334         * tests/test-snprintf-posix.c: Likewise.
36335         * tests/test-snprintf-posix.h: Likewise.
36336         * tests/test-snprintf.c: Likewise.
36337         * tests/test-sprintf-posix.c: Likewise.
36338         * tests/test-sprintf-posix.h: Likewise.
36339         * tests/test-stat-time.c: Likewise.
36340         * tests/test-stdbool.c: Likewise.
36341         * tests/test-stdint.c: Likewise.
36342         * tests/test-stdio.c: Likewise.
36343         * tests/test-stdlib.c: Likewise.
36344         * tests/test-stpncpy.c: Likewise.
36345         * tests/test-strcasestr.c: Likewise.
36346         * tests/test-striconv.c: Likewise.
36347         * tests/test-striconveh.c: Likewise.
36348         * tests/test-striconveha.c: Likewise.
36349         * tests/test-string.c: Likewise.
36350         * tests/test-sys_select.c: Likewise.
36351         * tests/test-sys_socket.c: Likewise.
36352         * tests/test-sys_stat.c: Likewise.
36353         * tests/test-sys_time.c: Likewise.
36354         * tests/test-sysexits.c: Likewise.
36355         * tests/test-time.c: Likewise.
36356         * tests/test-tls.c: Likewise.
36357         * tests/test-trunc.c: Likewise.
36358         * tests/test-truncf.c: Likewise.
36359         * tests/test-truncl.c: Likewise.
36360         * tests/test-unistd.c: Likewise.
36361         * tests/test-vasnprintf-posix.c: Likewise.
36362         * tests/test-vasnprintf-posix2.c: Likewise.
36363         * tests/test-vasnprintf.c: Likewise.
36364         * tests/test-vasprintf-posix.c: Likewise.
36365         * tests/test-vasprintf.c: Likewise.
36366         * tests/test-verify.c: Likewise.
36367         * tests/test-vfprintf-posix.c: Likewise.
36368         * tests/test-vprintf-posix.c: Likewise.
36369         * tests/test-vsnprintf-posix.c: Likewise.
36370         * tests/test-vsnprintf.c: Likewise.
36371         * tests/test-vsprintf-posix.c: Likewise.
36372         * tests/test-wchar.c: Likewise.
36373         * tests/test-wctype.c: Likewise.
36374         * tests/test-wcwidth.c: Likewise.
36375         * tests/test-xstrtol.c: Likewise.
36376         * tests/test-xvasprintf.c: Likewise.
36377         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36378         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36379         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36380         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36381         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36382         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36383         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36384         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36385         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36386         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36387         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36388         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36389         * tests/uniname/test-uninames.c: Likewise.
36390         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36391         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36392         * tests/unistdio/test-u16-printf1.h: Likewise.
36393         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36394         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36395         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36396         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36397         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36398         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36399         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36400         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36401         * tests/unistdio/test-u32-printf1.h: Likewise.
36402         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36403         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36404         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36405         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36406         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36407         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36408         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36409         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36410         * tests/unistdio/test-u8-printf1.h: Likewise.
36411         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36412         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36413         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36414         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36415         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36416         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36417         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36418         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36419         * tests/unistdio/test-ulc-printf1.h: Likewise.
36420         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36421         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36422         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36423         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36424         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36425         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36426         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36427         * tests/uniwidth/test-u16-width.c: Likewise.
36428         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36429         * tests/uniwidth/test-u32-width.c: Likewise.
36430         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36431         * tests/uniwidth/test-u8-width.c: Likewise.
36432         * tests/uniwidth/test-uc_width.c: Likewise.
36433         * config/srclist-update: Likewise.
36434         (fixlicense): Update to GPLv3+.
36435
36436         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36437         * tests/test-tsearch.c: Change copyright notice.
36438
36439         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36440         * lib/c-strcaseeq.h: Change copyright notice.
36441         * lib/streq.h: Likewise.
36442         * lib/uniconv.h: Likewise.
36443         * lib/uniconv/u-conv-from-enc.h: Likewise.
36444         * lib/uniconv/u-conv-to-enc.h: Likewise.
36445         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36446         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36447         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36448         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36449         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36450         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36451         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36452         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36453         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36454         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36455         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36456         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36457         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36458         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36459         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36460         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36461         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36462         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36463         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36464         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36465         * lib/uniname.h: Likewise.
36466         * lib/uniname/uniname.c: Likewise.
36467         * lib/unistdio.h: Likewise.
36468         * lib/unistdio/u-asnprintf.h: Likewise.
36469         * lib/unistdio/u-asprintf.h: Likewise.
36470         * lib/unistdio/u-printf-args.c: Likewise.
36471         * lib/unistdio/u-printf-args.h: Likewise.
36472         * lib/unistdio/u-printf-parse.h: Likewise.
36473         * lib/unistdio/u-snprintf.h: Likewise.
36474         * lib/unistdio/u-sprintf.h: Likewise.
36475         * lib/unistdio/u-vasprintf.h: Likewise.
36476         * lib/unistdio/u-vsnprintf.h: Likewise.
36477         * lib/unistdio/u-vsprintf.h: Likewise.
36478         * lib/unistdio/u16-asnprintf.c: Likewise.
36479         * lib/unistdio/u16-asprintf.c: Likewise.
36480         * lib/unistdio/u16-printf-parse.c: Likewise.
36481         * lib/unistdio/u16-snprintf.c: Likewise.
36482         * lib/unistdio/u16-sprintf.c: Likewise.
36483         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36484         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36485         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36486         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36487         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36488         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36489         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36490         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36491         * lib/unistdio/u16-vasnprintf.c: Likewise.
36492         * lib/unistdio/u16-vasprintf.c: Likewise.
36493         * lib/unistdio/u16-vsnprintf.c: Likewise.
36494         * lib/unistdio/u16-vsprintf.c: Likewise.
36495         * lib/unistdio/u32-asnprintf.c: Likewise.
36496         * lib/unistdio/u32-asprintf.c: Likewise.
36497         * lib/unistdio/u32-printf-parse.c: Likewise.
36498         * lib/unistdio/u32-snprintf.c: Likewise.
36499         * lib/unistdio/u32-sprintf.c: Likewise.
36500         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36501         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36502         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36503         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36504         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36505         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36506         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36507         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36508         * lib/unistdio/u32-vasnprintf.c: Likewise.
36509         * lib/unistdio/u32-vasprintf.c: Likewise.
36510         * lib/unistdio/u32-vsnprintf.c: Likewise.
36511         * lib/unistdio/u32-vsprintf.c: Likewise.
36512         * lib/unistdio/u8-asnprintf.c: Likewise.
36513         * lib/unistdio/u8-asprintf.c: Likewise.
36514         * lib/unistdio/u8-printf-parse.c: Likewise.
36515         * lib/unistdio/u8-snprintf.c: Likewise.
36516         * lib/unistdio/u8-sprintf.c: Likewise.
36517         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36518         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36519         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36520         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36521         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36522         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36523         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36524         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36525         * lib/unistdio/u8-vasnprintf.c: Likewise.
36526         * lib/unistdio/u8-vasprintf.c: Likewise.
36527         * lib/unistdio/u8-vsnprintf.c: Likewise.
36528         * lib/unistdio/u8-vsprintf.c: Likewise.
36529         * lib/unistdio/ulc-asnprintf.c: Likewise.
36530         * lib/unistdio/ulc-asprintf.c: Likewise.
36531         * lib/unistdio/ulc-printf-parse.c: Likewise.
36532         * lib/unistdio/ulc-snprintf.c: Likewise.
36533         * lib/unistdio/ulc-sprintf.c: Likewise.
36534         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36535         * lib/unistdio/ulc-vasprintf.c: Likewise.
36536         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36537         * lib/unistdio/ulc-vsprintf.c: Likewise.
36538         * lib/unistr.h: Likewise.
36539         * lib/unistr/u-cpy-alloc.h: Likewise.
36540         * lib/unistr/u-cpy.h: Likewise.
36541         * lib/unistr/u-endswith.h: Likewise.
36542         * lib/unistr/u-move.h: Likewise.
36543         * lib/unistr/u-set.h: Likewise.
36544         * lib/unistr/u-startswith.h: Likewise.
36545         * lib/unistr/u-stpcpy.h: Likewise.
36546         * lib/unistr/u-stpncpy.h: Likewise.
36547         * lib/unistr/u-strcat.h: Likewise.
36548         * lib/unistr/u-strcpy.h: Likewise.
36549         * lib/unistr/u-strcspn.h: Likewise.
36550         * lib/unistr/u-strdup.h: Likewise.
36551         * lib/unistr/u-strlen.h: Likewise.
36552         * lib/unistr/u-strncat.h: Likewise.
36553         * lib/unistr/u-strncpy.h: Likewise.
36554         * lib/unistr/u-strnlen.h: Likewise.
36555         * lib/unistr/u-strpbrk.h: Likewise.
36556         * lib/unistr/u-strspn.h: Likewise.
36557         * lib/unistr/u-strstr.h: Likewise.
36558         * lib/unistr/u-strtok.h: Likewise.
36559         * lib/unistr/u16-check.c: Likewise.
36560         * lib/unistr/u16-chr.c: Likewise.
36561         * lib/unistr/u16-cmp.c: Likewise.
36562         * lib/unistr/u16-cpy-alloc.c: Likewise.
36563         * lib/unistr/u16-cpy.c: Likewise.
36564         * lib/unistr/u16-endswith.c: Likewise.
36565         * lib/unistr/u16-mblen.c: Likewise.
36566         * lib/unistr/u16-mbsnlen.c: Likewise.
36567         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36568         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36569         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36570         * lib/unistr/u16-mbtouc.c: Likewise.
36571         * lib/unistr/u16-mbtoucr.c: Likewise.
36572         * lib/unistr/u16-move.c: Likewise.
36573         * lib/unistr/u16-next.c: Likewise.
36574         * lib/unistr/u16-prev.c: Likewise.
36575         * lib/unistr/u16-set.c: Likewise.
36576         * lib/unistr/u16-startswith.c: Likewise.
36577         * lib/unistr/u16-stpcpy.c: Likewise.
36578         * lib/unistr/u16-stpncpy.c: Likewise.
36579         * lib/unistr/u16-strcat.c: Likewise.
36580         * lib/unistr/u16-strchr.c: Likewise.
36581         * lib/unistr/u16-strcmp.c: Likewise.
36582         * lib/unistr/u16-strcpy.c: Likewise.
36583         * lib/unistr/u16-strcspn.c: Likewise.
36584         * lib/unistr/u16-strdup.c: Likewise.
36585         * lib/unistr/u16-strlen.c: Likewise.
36586         * lib/unistr/u16-strmblen.c: Likewise.
36587         * lib/unistr/u16-strmbtouc.c: Likewise.
36588         * lib/unistr/u16-strncat.c: Likewise.
36589         * lib/unistr/u16-strncmp.c: Likewise.
36590         * lib/unistr/u16-strncpy.c: Likewise.
36591         * lib/unistr/u16-strnlen.c: Likewise.
36592         * lib/unistr/u16-strpbrk.c: Likewise.
36593         * lib/unistr/u16-strrchr.c: Likewise.
36594         * lib/unistr/u16-strspn.c: Likewise.
36595         * lib/unistr/u16-strstr.c: Likewise.
36596         * lib/unistr/u16-strtok.c: Likewise.
36597         * lib/unistr/u16-to-u32.c: Likewise.
36598         * lib/unistr/u16-to-u8.c: Likewise.
36599         * lib/unistr/u16-uctomb-aux.c: Likewise.
36600         * lib/unistr/u16-uctomb.c: Likewise.
36601         * lib/unistr/u32-check.c: Likewise.
36602         * lib/unistr/u32-chr.c: Likewise.
36603         * lib/unistr/u32-cmp.c: Likewise.
36604         * lib/unistr/u32-cpy-alloc.c: Likewise.
36605         * lib/unistr/u32-cpy.c: Likewise.
36606         * lib/unistr/u32-endswith.c: Likewise.
36607         * lib/unistr/u32-mblen.c: Likewise.
36608         * lib/unistr/u32-mbsnlen.c: Likewise.
36609         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36610         * lib/unistr/u32-mbtouc.c: Likewise.
36611         * lib/unistr/u32-mbtoucr.c: Likewise.
36612         * lib/unistr/u32-move.c: Likewise.
36613         * lib/unistr/u32-next.c: Likewise.
36614         * lib/unistr/u32-prev.c: Likewise.
36615         * lib/unistr/u32-set.c: Likewise.
36616         * lib/unistr/u32-startswith.c: Likewise.
36617         * lib/unistr/u32-stpcpy.c: Likewise.
36618         * lib/unistr/u32-stpncpy.c: Likewise.
36619         * lib/unistr/u32-strcat.c: Likewise.
36620         * lib/unistr/u32-strchr.c: Likewise.
36621         * lib/unistr/u32-strcmp.c: Likewise.
36622         * lib/unistr/u32-strcpy.c: Likewise.
36623         * lib/unistr/u32-strcspn.c: Likewise.
36624         * lib/unistr/u32-strdup.c: Likewise.
36625         * lib/unistr/u32-strlen.c: Likewise.
36626         * lib/unistr/u32-strmblen.c: Likewise.
36627         * lib/unistr/u32-strmbtouc.c: Likewise.
36628         * lib/unistr/u32-strncat.c: Likewise.
36629         * lib/unistr/u32-strncmp.c: Likewise.
36630         * lib/unistr/u32-strncpy.c: Likewise.
36631         * lib/unistr/u32-strnlen.c: Likewise.
36632         * lib/unistr/u32-strpbrk.c: Likewise.
36633         * lib/unistr/u32-strrchr.c: Likewise.
36634         * lib/unistr/u32-strspn.c: Likewise.
36635         * lib/unistr/u32-strstr.c: Likewise.
36636         * lib/unistr/u32-strtok.c: Likewise.
36637         * lib/unistr/u32-to-u16.c: Likewise.
36638         * lib/unistr/u32-to-u8.c: Likewise.
36639         * lib/unistr/u32-uctomb.c: Likewise.
36640         * lib/unistr/u8-check.c: Likewise.
36641         * lib/unistr/u8-chr.c: Likewise.
36642         * lib/unistr/u8-cmp.c: Likewise.
36643         * lib/unistr/u8-cpy-alloc.c: Likewise.
36644         * lib/unistr/u8-cpy.c: Likewise.
36645         * lib/unistr/u8-endswith.c: Likewise.
36646         * lib/unistr/u8-mblen.c: Likewise.
36647         * lib/unistr/u8-mbsnlen.c: Likewise.
36648         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36649         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36650         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36651         * lib/unistr/u8-mbtouc.c: Likewise.
36652         * lib/unistr/u8-mbtoucr.c: Likewise.
36653         * lib/unistr/u8-move.c: Likewise.
36654         * lib/unistr/u8-next.c: Likewise.
36655         * lib/unistr/u8-prev.c: Likewise.
36656         * lib/unistr/u8-set.c: Likewise.
36657         * lib/unistr/u8-startswith.c: Likewise.
36658         * lib/unistr/u8-stpcpy.c: Likewise.
36659         * lib/unistr/u8-stpncpy.c: Likewise.
36660         * lib/unistr/u8-strcat.c: Likewise.
36661         * lib/unistr/u8-strchr.c: Likewise.
36662         * lib/unistr/u8-strcmp.c: Likewise.
36663         * lib/unistr/u8-strcpy.c: Likewise.
36664         * lib/unistr/u8-strcspn.c: Likewise.
36665         * lib/unistr/u8-strdup.c: Likewise.
36666         * lib/unistr/u8-strlen.c: Likewise.
36667         * lib/unistr/u8-strmblen.c: Likewise.
36668         * lib/unistr/u8-strmbtouc.c: Likewise.
36669         * lib/unistr/u8-strncat.c: Likewise.
36670         * lib/unistr/u8-strncmp.c: Likewise.
36671         * lib/unistr/u8-strncpy.c: Likewise.
36672         * lib/unistr/u8-strnlen.c: Likewise.
36673         * lib/unistr/u8-strpbrk.c: Likewise.
36674         * lib/unistr/u8-strrchr.c: Likewise.
36675         * lib/unistr/u8-strspn.c: Likewise.
36676         * lib/unistr/u8-strstr.c: Likewise.
36677         * lib/unistr/u8-strtok.c: Likewise.
36678         * lib/unistr/u8-to-u16.c: Likewise.
36679         * lib/unistr/u8-to-u32.c: Likewise.
36680         * lib/unistr/u8-uctomb-aux.c: Likewise.
36681         * lib/unistr/u8-uctomb.c: Likewise.
36682         * lib/unitypes.h: Likewise.
36683         * lib/uniwidth.h: Likewise.
36684         * lib/uniwidth/cjk.h: Likewise.
36685         * lib/uniwidth/u16-strwidth.c: Likewise.
36686         * lib/uniwidth/u16-width.c: Likewise.
36687         * lib/uniwidth/u32-strwidth.c: Likewise.
36688         * lib/uniwidth/u32-width.c: Likewise.
36689         * lib/uniwidth/u8-strwidth.c: Likewise.
36690         * lib/uniwidth/u8-width.c: Likewise.
36691         * lib/uniwidth/width.c: Likewise.
36692
36693 2007-10-07  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36696         The file is still under LGPL (see modules/inttypes).
36697
36698 2007-10-06  Bruno Haible  <bruno@clisp.org>
36699
36700         * modules/trunc (Dependencies): Add 'extensions'.
36701         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36702         Reported by Ben Pfaff <blp@gnu.org>.
36703
36704 2007-10-06  Bruno Haible  <bruno@clisp.org>
36705
36706         * modules/freopen-tests: New file.
36707         * tests/test-freopen.c: New file.
36708
36709         * modules/fopen-tests: New file.
36710         * tests/test-fopen.c: New file.
36711
36712         * modules/fopen: New file.
36713         * lib/fopen.c: New file.
36714         * m4/fopen.m4: New file.
36715         * modules/freopen: New file.
36716         * lib/freopen.c: New file.
36717         * m4/freopen.m4: New file.
36718         * lib/stdio.in.h (fopen, freopen): New declarations.
36719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36720         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36721         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36722         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36723         * doc/functions/fopen.texi: Mention the 'fopen' module.
36724         * doc/functions/freopen.texi: Mention the 'freopen' module.
36725
36726 2007-10-06  Bruno Haible  <bruno@clisp.org>
36727
36728         * modules/open-tests: New file.
36729         * tests/test-open.c: New file.
36730
36731         * modules/open: New file.
36732         * lib/open.c: New file.
36733         * m4/open.m4: New file.
36734         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36735         lib/open.c does.
36736         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36737         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36738         macros.
36739         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36740         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36741         REPLACE_OPEN.
36742         * doc/functions/open.texi: Mention the 'open' module.
36743
36744 2007-10-04  Bruno Haible  <bruno@clisp.org>
36745
36746         * modules/ceill-tests: New file.
36747         * tests/test-ceill.c: New file.
36748
36749         * modules/ceill: New file.
36750         * lib/ceill.c: Replace entire file.
36751         * m4/ceill.m4: New file.
36752         * lib/math.in.h (ceill): Replace declaration.
36753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36754         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36755         * doc/functions/ceill.texi: Mention the 'ceill' module.
36756         * modules/mathl (Files): Remove lib/ceill.c.
36757         (Depends-on): Add ceill.
36758
36759 2007-10-04  Bruno Haible  <bruno@clisp.org>
36760
36761         * modules/ceilf-tests: New file.
36762         * tests/test-ceilf.c: New file.
36763
36764         * modules/ceilf: New file.
36765         * lib/ceil.c: New file.
36766         * lib/ceilf.c: New file.
36767         * m4/ceilf.m4: New file.
36768         * lib/math.in.h (ceilf): New declaration.
36769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36770         HAVE_DECL_CEILF.
36771         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36772         HAVE_DECL_CEILF.
36773         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36774
36775 2007-10-04  Bruno Haible  <bruno@clisp.org>
36776
36777         * modules/floorl-tests: New file.
36778         * tests/test-floorl.c: New file.
36779
36780         * modules/floorl: New file.
36781         * lib/floorl.c: Replace entire file.
36782         * m4/floorl.m4: New file.
36783         * lib/math.in.h (floorl): Replace declaration.
36784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36785         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36786         * doc/functions/floorl.texi: Mention the 'floorl' module.
36787         * modules/mathl (Files): Remove lib/floorl.c.
36788         (Depends-on): Add floorl.
36789
36790 2007-10-04  Bruno Haible  <bruno@clisp.org>
36791
36792         * modules/floorf-tests: New file.
36793         * tests/test-floorf.c: New file.
36794
36795         * modules/floorf: New file.
36796         * lib/floor.c: New file.
36797         * lib/floorf.c: New file.
36798         * m4/floorf.m4: New file.
36799         * lib/math.in.h (floorf): New declaration.
36800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36801         HAVE_DECL_FLOORF.
36802         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36803         HAVE_DECL_FLOORF.
36804         * doc/functions/floorf.texi: Mention the 'floorf' module.
36805
36806 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36807             Bruno Haible  <bruno@clisp.org>
36808
36809         Advertise for the Git server instead of the CVS server.
36810         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36811         repository instead of the CVS one.
36812         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36813         about all VCS systems generically.
36814         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36815
36816 2007-10-04  Bruno Haible  <bruno@clisp.org>
36817
36818         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36819         means.
36820         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36821
36822 2007-10-04  Bruno Haible  <bruno@clisp.org>
36823
36824         * modules/truncl-tests: New file.
36825         * tests/test-truncl.c: New file.
36826
36827         * modules/truncl: New file.
36828         * lib/truncl.c: New file.
36829         * m4/truncl.m4: New file.
36830         * lib/math.in.h (truncl): New declaration.
36831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36832         HAVE_DECL_TRUNCL.
36833         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36834         HAVE_DECL_TRUNCL.
36835         * doc/functions/truncl.texi: Mention the 'truncl' module.
36836
36837 2007-10-04  Bruno Haible  <bruno@clisp.org>
36838
36839         * modules/truncf-tests: New file.
36840         * tests/test-truncf.c: New file.
36841
36842         * modules/truncf: New file.
36843         * lib/trunc.c: Make paramerizable through USE_* macros.
36844         * lib/truncf.c: New file.
36845         * m4/truncf.m4: New file.
36846         * lib/math.in.h (truncf): New declaration.
36847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36848         HAVE_DECL_TRUNCF.
36849         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36850         HAVE_DECL_TRUNCF.
36851         * doc/functions/truncf.texi: Mention the 'truncf' module.
36852
36853 2007-10-03  Bruno Haible  <bruno@clisp.org>
36854
36855         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36856         augmentation also for tests modules.
36857         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36858         * modules/atexit-tests (Makefile.am): Likewise.
36859         * modules/binary-io-tests (Makefile.am): Likewise.
36860         * modules/c-strcase-tests (Makefile.am): Likewise.
36861         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36862         * modules/canonicalize-tests (Makefile.am): Likewise.
36863         * modules/closein-tests (Makefile.am): Likewise.
36864         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36865         * modules/freadahead-tests (Makefile.am): Likewise.
36866         * modules/fseek-tests (Makefile.am): Likewise.
36867         * modules/fseeko-tests (Makefile.am): Likewise.
36868         * modules/ftell-tests (Makefile.am): Likewise.
36869         * modules/ftello-tests (Makefile.am): Likewise.
36870         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36871         * modules/isnanl-tests (Makefile.am): Likewise.
36872         * modules/lseek-tests (Makefile.am): Likewise.
36873         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36874         * modules/mbscasestr-tests (Makefile.am): Likewise.
36875         * modules/mbschr-tests (Makefile.am): Likewise.
36876         * modules/mbscspn-tests (Makefile.am): Likewise.
36877         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36878         * modules/mbspbrk-tests (Makefile.am): Likewise.
36879         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36880         * modules/mbsrchr-tests (Makefile.am): Likewise.
36881         * modules/mbsspn-tests (Makefile.am): Likewise.
36882         * modules/mbsstr-tests (Makefile.am): Likewise.
36883         * modules/printf-posix-tests (Makefile.am): Likewise.
36884         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36885         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36886         * modules/tsearch-tests (Makefile.am): Likewise.
36887         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36888         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36889         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36890         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36891         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36892         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36893         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36894         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36895         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36896         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36897         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36898         * modules/xstrtol-tests (Makefile.am): Likewise.
36899         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36900         * modules/yesno-tests (Makefile.am): Likewise.
36901
36902 2007-10-03  Bruno Haible  <bruno@clisp.org>
36903
36904         * modules/trunc-tests: New file.
36905         * tests/test-trunc.c: New file.
36906
36907         * modules/trunc: New file.
36908         * lib/trunc.c: New file.
36909         * m4/trunc.m4: New file.
36910         * lib/math.in.h (trunc): New declaration.
36911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36912         HAVE_DECL_TRUNC.
36913         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36914         HAVE_DECL_TRUNC.
36915         * doc/functions/trunc.texi: Mention the 'trunc' module.
36916
36917 2007-10-03  Bruno Haible  <bruno@clisp.org>
36918
36919         * tests/test-fpending.c: New file, mostly copied
36920         from coreutils/lib/t-fpending.c.
36921         * modules/fpending-tests: New file.
36922
36923 2007-10-03  Bruno Haible  <bruno@clisp.org>
36924
36925         Port the stdio extensions to QNX (untested).
36926         * lib/fseterr.c (fseterr): Add support for QNX.
36927         * lib/fbufmode.c (fbufmode): Likewise.
36928         * lib/freadable.c (freadable): Likewise.
36929         * lib/fwritable.c (fwritable): Likewise.
36930         * lib/freading.c (freading): Likewise.
36931         * lib/fwriting.c (fwriting): Likewise.
36932         * lib/freadahead.c (freadahed): Likewise.
36933         * lib/fpurge.c (fpurge): Likewise.
36934         * lib/fseeko.c (rpl_fseeko): Likewise.
36935
36936 2007-10-03  Bruno Haible  <bruno@clisp.org>
36937             Jim Meyering  <jim@meyering.net>
36938             Eric Blake  <ebb9@byu.net>
36939
36940         * doc/relocatable.texi: Use @command instead of @program.
36941
36942 2007-10-02  Jim Meyering  <jim@meyering.net>
36943
36944         Perform one more "_.h" -> ".in.h" substitution.
36945         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36946         instead of unistd_.h here, too.
36947
36948 2007-10-01  Bruno Haible  <bruno@clisp.org>
36949
36950         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36951         Needed for the alloca-opt module.
36952
36953 2007-09-30  Bruno Haible  <bruno@clisp.org>
36954
36955         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36956         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36957         alloca_.h.
36958         * lib/argz.in.h: Renamed from lib/argz_.h.
36959         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36960         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36961         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36962         byteswap_.h.
36963         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36964         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36965         dirent_.h.
36966         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36967         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36968         fcntl_.h.
36969         * lib/float.in.h: Renamed from lib/float_.h.
36970         * modules/float (Files, Makefile.am): Use float.in.h instead of
36971         float_.h.
36972         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36973         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36974         fnmatch_.h.
36975         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36976         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36977         getopt_.h.
36978         * lib/glob.in.h: Renamed from lib/glob_.h.
36979         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36980         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36981         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36982         iconv_.h.
36983         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36984         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36985         inttypes_.h.
36986         * lib/locale.in.h: Renamed from lib/locale_.h.
36987         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36988         locale_.h.
36989         * lib/math.in.h: Renamed from lib/math_.h.
36990         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36991         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36992         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36993         of netinet_in_.h. Add dependency.
36994         * lib/poll.in.h: Renamed from lib/poll_.h.
36995         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
36996         * lib/search.in.h: Renamed from lib/search_.h.
36997         * modules/search (Files, Makefile.am): Use search.in.h instead of
36998         search_.h.
36999         * lib/signal.in.h: Renamed from lib/signal_.h.
37000         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
37001         _signal.h.
37002         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
37003         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
37004         stdbool_.h.
37005         * lib/stdint.in.h: Renamed from lib/stdint_.h.
37006         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
37007         stdint_.h.
37008         * lib/stdio.in.h: Renamed from lib/stdio_.h.
37009         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
37010         stdio_.h.
37011         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
37012         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
37013         stdlib_.h.
37014         * lib/string.in.h: Renamed from lib/string_.h.
37015         * modules/string (Files, Makefile.am): Use string.in.h instead of
37016         string_.h.
37017         * doc/gnulib-tool.texi (Initial import): Update.
37018         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
37019         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
37020         of sys_select_.h. Add dependency.
37021         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
37022         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
37023         of sys_socket_.h.
37024         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
37025         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
37026         sys_stat_.h.
37027         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
37028         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
37029         sys_time_.h.
37030         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
37031         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
37032         sysexits_.h.
37033         * lib/time.in.h: Renamed from lib/time_.h.
37034         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
37035         * lib/unistd.in.h: Renamed from lib/unistd_.h.
37036         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
37037         unistd_.h.
37038         * lib/wchar.in.h: Renamed from lib/wchar_.h.
37039         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
37040         wchar_.h.
37041         * lib/wctype.in.h: Renamed from lib/wctype_.h.
37042         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
37043         wctype_.h.
37044         * build-aux/bootstrap (slurp): Update.
37045         * lib/.cppi-disable: Update.
37046
37047 2007-09-30  Bruno Haible  <bruno@clisp.org>
37048
37049         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
37050         Needed on BeOS.
37051
37052 2007-09-30  Bruno Haible  <bruno@clisp.org>
37053
37054         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
37055
37056 2007-09-29  Bruno Haible  <bruno@clisp.org>
37057
37058         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
37059
37060 2007-09-29  Bruno Haible  <bruno@clisp.org>
37061
37062         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
37063         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
37064         * build-aux/install-reloc: Compile also areadlink.c.
37065         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
37066
37067 2007-09-29  Bruno Haible  <bruno@clisp.org>
37068
37069         * gnulib-tool (func_emit_initmacro_done): Indentation.
37070
37071 2007-09-29  Bruno Haible  <bruno@clisp.org>
37072
37073         * README: Add CVS checkout update instructions.
37074         Info from Bob Proulx <bob@proulx.com>.
37075
37076 2007-09-28  Eric Blake  <ebb9@byu.net>
37077
37078         Provide move-if-change.
37079         * build-aux/move-if-change: New file, based on best practice
37080         rather than any canonical upstream location.
37081
37082 2007-09-28  Jim Meyering  <jim@meyering.net>
37083
37084         Fix canonicalize loop-detection corner case.
37085         Do not attempt to stat the symlink values stored via seen_triple.
37086         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
37087         on linux-2.6.18, (but not 2.6.22).
37088         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
37089         triple_compare.  The former compares dev,ino,filename, while the latter
37090         would actually stat dirname(filename) when dev and ino were equal.
37091         * lib/hash-triple.c: Install <string.h>.
37092         (STREQ): Define.
37093         (triple_compare_ino_str): New function.
37094         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
37095
37096 2007-09-28  Eric Blake  <ebb9@byu.net>
37097
37098         Enforce that AC_REPLACE_FUNCS files exist.
37099         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
37100         override check for typos.
37101
37102         Fix test-closein on Solaris 10.
37103         * tests/test-closein.c (main): Don't assume stdin can be inherited
37104         closed on all systems.
37105         * tests/test-closein.sh: Likewise.
37106         Reported by Piotr Tarnowski.
37107
37108 2007-09-28  Jim Meyering  <jim@meyering.net>
37109
37110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
37111
37112 2007-09-27  Jim Meyering  <jim@meyering.net>
37113
37114         canonicalize: Avoid a false-positive cycle failure.
37115         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
37116         Sort.  Remove cycle-check.
37117         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
37118         not cycle-check.h.
37119         (seen_triple): New function.
37120         (canonicalize_filename_mode): Use it instead of cycle-check.
37121         * tests/test-canonicalize.c: Add a test for this bug.
37122         * tests/test-canonicalize.sh: Set up and run the test.
37123
37124         New module, file-set, from coreutils.
37125         * modules/file-set: Define it.
37126         * lib/file-set.c, lib/file-set.h: Implement.
37127
37128         New module, hash-triple, from coreutils.
37129         * modules/hash-triple: Define it.
37130         * lib/hash-triple.c, lib/hash-triple.h: Implement.
37131
37132 2007-09-25  Eric Blake  <ebb9@byu.net>
37133
37134         Fix strerror on Interix.
37135         * lib/string_.h (strerror): Declare replacement.
37136         * doc/functions/strerror.texi (strerror): Document the Interix
37137         shortcoming.
37138         * modules/string (Makefile.am): Support new hooks.
37139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
37140         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
37141         gl_FUNC_STRERROR_SEPARATE.
37142         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
37143         * lib/strerror.c (rpl_strerror): Provide replacement.
37144         * modules/strerror (Depends-on): Add string.
37145         (configure.ac): Detect use of module.
37146         * tests/test-strerror.c: New file.
37147         * modules/strerror-tests: New test module.
37148         * modules/argp (Depends-on): Add strerror.
37149         * modules/error (Depends-on): Likewise.
37150         Reported by Martin Koeppe.
37151
37152 2007-09-24  Bruno Haible  <bruno@clisp.org>
37153
37154         * README: Update git instructions.
37155
37156 2007-09-24  Eric Blake  <ebb9@byu.net>
37157
37158         Revert fpending breakage from 2007-09-08.
37159         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37160         __fpending.c.
37161
37162 2007-09-24  Jim Meyering  <jim@meyering.net>
37163
37164         filenamecat.c: Add a test.
37165         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37166         showing how the function works when DIR is the empty string.
37167
37168 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37169
37170         * tests/test-canonicalize.sh: Turn on executable bit.
37171
37172 2007-09-19  Eric Blake  <ebb9@byu.net>
37173
37174         * README: Update CVS instructions.
37175
37176 2007-09-18  Bruno Haible  <bruno@clisp.org>
37177
37178         * modules/areadlink: New file.
37179         * lib/areadlink.h (areadlink): New declaration.
37180         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37181
37182 2007-09-17  Jim Meyering  <jim@meyering.net>
37183
37184         * lib/savewd.c (ESTALE) [!defined]: Define.
37185         Reported to be required on Interix by Martin Koeppe.
37186
37187 2007-09-17  Bruno Haible  <bruno@clisp.org>
37188
37189         * gnulib-tool (func_version): Use $version.
37190
37191 2007-09-16  Bruno Haible  <bruno@clisp.org>
37192
37193         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37194         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37195         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37196         Reported by Greg Schafer <gschafer@zip.com.au>.
37197
37198 2007-09-15  Bruno Haible  <bruno@clisp.org>
37199
37200         * gnulib-tool (sed): Try a little harder to make bash understand the
37201         alias.
37202         Reported by Bruce Korb <bruce.korb@gmail.com>.
37203
37204 2007-09-13  Eric Blake  <ebb9@byu.net>
37205
37206         * ChangeLog: Remove conflict markers.
37207
37208 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37209
37210         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37211         Reported by Bruno Haible <bruno@clisp.org>.
37212
37213 2007-09-12  Bruno Haible  <bruno@clisp.org>
37214
37215         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37216         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37217         is not defined.
37218
37219 2007-09-12  Eric Blake  <ebb9@byu.net>
37220
37221         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37222         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37223         Autoconf definition.
37224         * modules/euidaccess (Depends-on): Add extensions, for
37225         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37226         * modules/fnmatch (Depends-on): Likewise.
37227         * modules/getaddrinfo (Depends-on): Likewise.
37228         * modules/getdelim (Depends-on): Likewise.
37229         * modules/getline (Depends-on): Likewise.
37230         * modules/getsubopt (Depends-on): Likewise.
37231         * modules/gettext (Depends-on): Likewise.
37232         * modules/group-member (Depends-on): Likewise.
37233         * modules/mbchar (Depends-on): Likewise.
37234         * modules/memmem (Depends-on): Likewise.
37235         * modules/mempcpy (Depends-on): Likewise.
37236         * modules/memrchr (Depends-on): Likewise.
37237         * modules/pagealign_alloc (Depends-on): Likewise.
37238         * modules/readutmp (Depends-on): Likewise.
37239         * modules/stpcpy (Depends-on): Likewise.
37240         * modules/stpncpy (Depends-on): Likewise.
37241         * modules/strchrnul (Depends-on): Likewise.
37242         * modules/strndup (Depends-on): Likewise.
37243         * modules/strsep (Depends-on): Likewise.
37244         * modules/strverscmp (Depends-on): Likewise.
37245         * modules/vasprintf (Depends-on): Likewise.
37246         * modules/wcwidth (Depends-on): Likewise.
37247         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37248         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37249         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37251         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37252         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37253         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37254         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37255         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37256         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37257         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37258         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37259         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37260         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37261         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37262         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37263         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37264         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37265         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37266         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37267         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37269         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37270         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37271         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37273         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37274         so that lock.m4 can be used in gettext without extensions module.
37275
37276 2007-09-11  Bruno Haible  <bruno@clisp.org>
37277
37278         * m4/isc-posix.m4: Remove file.
37279         Suggested by Eric Blake.
37280
37281 2007-09-11  Eric Blake  <ebb9@byu.net>
37282
37283         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37284
37285 2007-09-10  Bruno Haible  <bruno@clisp.org>
37286
37287         * posix-modules: Fix typo in error message.
37288         Reported by Matt <mkraai@beckman.com>.
37289
37290 2007-09-09  Bruno Haible  <bruno@clisp.org>
37291
37292         * doc/functions/getdelim.texi: Update list of platforms lacking the
37293         function.
37294         * doc/functions/getline.texi: Likewise.
37295
37296 2007-09-09  Jim Meyering  <jim@meyering.net>
37297
37298         * lib/hash.c (hash_initialize): Detect calloc failure.
37299         Reported by Bruno Haible.
37300
37301 2007-09-09  Bruno Haible  <bruno@clisp.org>
37302
37303         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37304         malloc or realloc fails.
37305
37306 2007-09-09  Bruno Haible  <bruno@clisp.org>
37307
37308         * modules/getcwd (Depends-on): Add malloc-posix.
37309         * modules/glob (Depends-on): Likewise.
37310         * modules/putenv (Depends-on): Likewise.
37311         * modules/strdup (Depends-on): Likewise.
37312         * modules/getdelim (Depends-on): Add realloc-posix.
37313         * modules/read-file (Depends-on): Likewise.
37314
37315 2007-09-09  Bruno Haible  <bruno@clisp.org>
37316
37317         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37318         (gl_FUNC_MALLOC_POSIX): Require it.
37319         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37320         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37321         * modules/realloc (Files): Add m4/malloc.m4.
37322         * modules/calloc (Files): Likewise.
37323
37324 2007-09-09  Bruno Haible  <bruno@clisp.org>
37325
37326         * modules/malloc-posix: New file.
37327         * modules/malloc (Depends-on): Add malloc-posix.
37328         * lib/malloc.c: Include errno.h.
37329         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37330         and a POSIX-compatible malloc into a single function. Set ENOMEM
37331         when returning NULL.
37332         * m4/malloc.m4: New file.
37333         * doc/functions/malloc.texi: Mention the malloc-posix module.
37334         * lib/stdlib_.h (malloc): New declaration.
37335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37336         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37337         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37338         and HAVE_MALLOC_POSIX.
37339
37340 2007-09-09  Bruno Haible  <bruno@clisp.org>
37341
37342         * modules/realloc-posix: New file.
37343         * modules/realloc (Depends-on): Add realloc-posix.
37344         * lib/realloc.c: Include errno.h.
37345         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37346         and a POSIX-compatible realloc into a single function. Set ENOMEM
37347         when returning NULL.
37348         * m4/realloc.m4: New file.
37349         * doc/functions/realloc.texi: Mention the realloc-posix module.
37350         * lib/stdlib_.h (realloc): New declaration.
37351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37352         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37353         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37354         and HAVE_REALLOC_POSIX.
37355
37356 2007-09-09  Bruno Haible  <bruno@clisp.org>
37357
37358         * modules/calloc-posix: New file.
37359         * modules/calloc (Depends-on): Add calloc-posix.
37360         * lib/calloc.c: Include errno.h.
37361         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37362         and a POSIX-compatible calloc into a single function. Set ENOMEM
37363         when returning NULL.
37364         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37365         * doc/functions/calloc.texi: Mention the calloc-posix module.
37366         * lib/stdlib_.h (calloc): New declaration.
37367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37368         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37369         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37370         and HAVE_CALLOC_POSIX.
37371
37372 2007-09-09  Bruno Haible  <bruno@clisp.org>
37373
37374         Allow for modules to show an arbitrary notice.
37375         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37376         * gnulib-tool: New option --extract-notice.
37377         (func_usage): Document it.
37378         (sed_extract_prog): Update.
37379         (func_get_notice): New function.
37380         (func_modules_notice): New function.
37381         (func_import, func_create_testdir): Invoke it.
37382         Suggested by Jim Meyering.
37383
37384 2007-09-09  Bruno Haible  <bruno@clisp.org>
37385
37386         * gnulib-tool: New options --verbose, --quiet.
37387         (func_usage): Document them.
37388         (verbose): New variable.
37389         (func_execute_command): New function.
37390         (func_import): Don't show the module list and the file list if
37391         $verbose < 0.
37392         (func_create_testdir): Likewise. Use func_execute_command.
37393         (func_create_megatestdir): Use func_execute_command.
37394
37395 2007-09-08  Bruno Haible  <bruno@clisp.org>
37396
37397         * gnulib-tool (func_import): Prefer rsync over wget when available,
37398         for fetching the PO files.
37399
37400 2007-09-08  Bruno Haible  <bruno@clisp.org>
37401
37402         * posix-modules: New file. Portions copied from gnulib-tool.
37403         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37404
37405 2007-09-08  Jim Meyering  <jim@meyering.net>
37406
37407         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37408         * lib/fpending.h: Rename from __fpending.h.
37409         * lib/fpending.c: Rename from __fpending.c.
37410         Include "fpending.h", not "__fpending.h".
37411         * lib/__fpending.h, lib/__fpending.c: Remove files.
37412         * modules/fpending (Files): Reflect new file names.
37413         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37414
37415 2007-09-08  Bruno Haible  <bruno@clisp.org>
37416
37417         * m4/inttypes-h.m4: Remove stub file.
37418
37419 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37420
37421         * doc/headers/stdint.texi: Discuss #include_next issue.
37422
37423 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37424
37425         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37426
37427 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37428
37429         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37430         in variable name.
37431
37432 2007-09-03  Jim Meyering  <jim@meyering.net>
37433
37434         New module: git-version-gen.
37435         * modules/git-version-gen: New file.
37436
37437         Import changes from coreutils for bootstrap script.
37438
37439         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37440
37441         bootstrap: uses rsync to download the .po files
37442         * build-aux/bootstrap (po_download_command_format): New global.
37443         (download_po_files): Use rsync.
37444         (update_po_files): Don't remove .po files after download,
37445         so future rsync runs can take advantage of the copies.
37446
37447         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37448
37449         Solve the unnecessary-.po-file-regeneration problem once and for all.
37450         * build-aux/bootstrap (download_po_files): New function, renamed from
37451         get_translations.  Now, downloads, but doesn't update LINGUAS.
37452         (update_po_files): New function.
37453
37454         bootstrap: Ignore more.
37455         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37456         uniwidth to e.g., lib/.gitignore.
37457         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37458
37459         * build-aux/bootstrap: New setting: vc_ignore.
37460         (insert_sorted_if_absent): Create $file if absent.
37461         Adapt to new, possibly empty, list: $vc_ignore.
37462
37463         bootstrap: generate more ignorable names
37464         * build-aux/bootstrap (slurp): When generating ignorable names,
37465         also map .sin to .sed, .gperf to .c, and .y to .c.
37466
37467 2007-09-03  Jim Meyering  <jim@meyering.net>
37468
37469         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37470         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37471
37472 2007-09-02  Bruno Haible  <bruno@clisp.org>
37473
37474         Fix mis-recognition of 'mcs' on QNX 6.
37475         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37476         output contains the string "Mono".
37477         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37478         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37479
37480 2007-09-01  Bruno Haible  <bruno@clisp.org>
37481
37482         Fix collision between uniwidth/* and linebreak modules.
37483         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37484         u32_width): Remove declarations.
37485         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37486         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37487         streq3, streq2, streq1, streq0): Remove functions.
37488         (STREQ): Remove macro.
37489         (is_cjk_encoding): Remove function.
37490         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37491         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37492         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37493         * NEWS: Document the change.
37494
37495 2007-09-01  Bruno Haible  <bruno@clisp.org>
37496
37497         * lib/streq.h: Add double-inclusion guard.
37498
37499 2007-09-01  Karl Berry  <karl@gnu.org>
37500
37501         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37502
37503 2007-08-28  Jim Meyering  <jim@meyering.net>
37504
37505         Rename mreadlink_with_size to areadlink_with_size.
37506         * NEWS: Document the change.
37507         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37508         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37509         * lib/mreadlink.h: Rename this to...
37510         * lib/areadlink.h: ...this.
37511         * modules/mreadlink-with-size: Rename this to...
37512         * modules/areadlink-with-size: ...this.
37513         * lib/canonicalize.c: Reflect the renaming.
37514         * modules/canonicalize: Likewise.
37515
37516 2007-08-26  Bruno Haible  <bruno@clisp.org>
37517
37518         * gnulib-tool (func_import): When deciding which files to remove,
37519         consider also dangling symbolic links.
37520         Reported by Eric Blake.
37521
37522 2007-08-26  Bruno Haible  <bruno@clisp.org>
37523
37524         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37525
37526 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37527
37528         * lib/readline.c: Don't include getline.h, the prototype is now
37529         found in stdio.h.
37530
37531 2007-08-23  Jim Meyering  <jim@meyering.net>
37532
37533         Getdelim touchup.
37534         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37535         around the funlockfile call, since funlockfile never sets errno.
37536         Don't set errno upon failed realloc.
37537
37538 2007-08-22  Eric Blake  <ebb9@byu.net>
37539
37540         Getline touchups.
37541         * lib/getdelim.c (getdelim): Revert regression that required *n to
37542         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37543         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37544         getdelim, rather than whether implementation is missing.
37545         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37546         * lib/stdio_.h (getline): Also declare if replacement is
37547         required.
37548         * doc/functions/getdelim.texi: New file.
37549         * doc/functions/getline.texi: Likewise.
37550         * doc/gnulib.texi (Function Substitutes): Add new files.
37551         Reported by Bruno Haible.
37552
37553 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37554
37555         * users.txt: Add Guile.
37556
37557 2007-08-22  Eric Blake  <ebb9@byu.net>
37558
37559         * tests/test-getdelim.c (main): Use remove, not unlink.
37560         * tests/test-getline.c (main): Likewise.
37561
37562         Move getline and getdelim into stdio.h, per POSIX 200x.
37563         * modules/getline (Files): Remove getline.h.
37564         (Depends-on): Add stdio.
37565         (configure.ac): Add module indicator.
37566         * modules/getdelim (Files): Remove getdelim.h.
37567         (Depends-on): Add stdio.
37568         (configure.ac): Add module indicator.
37569         * modules/stdio (Makefile.am): Work with new indicators.
37570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37571         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37572         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37573         * lib/getdelim.h: Delete.
37574         * lib/getline.h: Delete.
37575         * lib/stdio_.h (getdelim, getline): Declare.
37576         * modules/getdelim-tests: New module.
37577         * modules/getline-tests: Likewise.
37578         * tests/test-getdelim.c: New file.
37579         * tests/test-getline.c: Likewise.
37580         * NEWS: Document the change.
37581         * lib/getline.c: Update choice of header.
37582         * lib/csharpcomp.c: Likewise.
37583         * lib/getpass.c: Likewise.
37584         * lib/javacomp.c: Likewise.
37585         * lib/javaversion.c: Likewise.
37586         * lib/yesno.c: Likewise.
37587         * lib/getdelim.c: Likewise.
37588         (getdelim): Set errno on failure, and avoid memory leak.
37589
37590 2007-08-19  Bruno Haible  <bruno@clisp.org>
37591
37592         * modules/closein (Depends-on): Add freadahead.
37593         * lib/closein.c: Include freadahead.h.
37594         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37595         is zero.
37596
37597 2007-08-19  Bruno Haible  <bruno@clisp.org>
37598
37599         * modules/freadahead-tests: New file.
37600         * tests/test-freadahead.sh: New file.
37601         * tests/test-freadahead.c: New file.
37602
37603         * modules/freadahead: New file.
37604         * lib/freadahead.h: New file.
37605         * lib/freadahead.c: New file.
37606         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37607         fbufmode, fpurge, freadable, fwritable.
37608
37609 2007-08-19  Eric Blake  <ebb9@byu.net>
37610
37611         Test yesno in combination with closein.
37612         * lib/yesno.c (yesno): Document use of stdin.
37613         * modules/yesno-tests (Files): New module.
37614         * tests/test-yesno.c (main): New file.
37615         * tests/test-yesno.sh: Likewise.
37616
37617 2007-08-19  Bruno Haible  <bruno@clisp.org>
37618
37619         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37620         * lib/fseeko.c (rpl_fseeko): Likewise.
37621         * lib/fseterr.c (fseterr): Likewise.
37622
37623 2007-08-19  Bruno Haible  <bruno@clisp.org>
37624
37625         * tests/test-lseek.c (main): Disable a test for BeOS.
37626         * doc/functions/lseek.texi: Document the BeOS bug.
37627
37628 2007-08-19  Bruno Haible  <bruno@clisp.org>
37629             Eric Blake  <ebb9@byu.net>
37630
37631         * lib/lseek.c: Include <sys/stat.h>.
37632         (rpl_lseek): Add workaround code also for Unix platforms.
37633         Needed for BeOS.
37634         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37635         * doc/functions/lseek.texi: Document BeOS definiency.
37636
37637 2007-08-18  Bruno Haible  <bruno@clisp.org>
37638
37639         * modules/fstrcmp-tests: New file.
37640         * tests/test-fstrcmp.c: New file.
37641
37642 2007-08-18  Bruno Haible  <bruno@clisp.org>
37643
37644         * modules/fstrcmp: New file, from GNU gettext with modifications.
37645         * lib/fstrcmp.h: New file, from GNU gettext.
37646         * lib/fstrcmp.c: New file, from GNU gettext.
37647         * MODULES.html.sh (String handling): Add fstrcmp.
37648
37649 2007-08-18  Bruno Haible  <bruno@clisp.org>
37650
37651         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37652         'bool'.
37653         (diag, compareseq): Remove const from the ctxt argument.
37654         (USE_HEURISTIC): Undefine at the end.
37655
37656 2007-08-18  Jim Meyering  <jim@meyering.net>
37657
37658         New file: lib/idcache.h
37659         * NEWS: Mention the addition.
37660         * modules/idcache (Files): Add lib/idcache.h
37661         * lib/idcache.c: Include "idcache.h".
37662         Don't include <sys/types.h>.
37663         Add a FIXME comment.
37664         Move file-scoped "static" declarations to the top.
37665         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37666
37667 2007-08-17  Bruno Haible  <bruno@clisp.org>
37668         and Paul Eggert  <eggert@cs.ucla.edu>
37669
37670         * MODULES.html.sh: Add diffseq.
37671         * modules/diffseq: New file.
37672         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37673         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37674
37675 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37676
37677         Import changes from coreutils for bootstrap script.
37678
37679         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37680
37681         * build-aux/bootstrap (slurp): Work even in environments where
37682         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37683         current code does not slurp files whose names start with ".", and
37684         this looks like it might be a troublesome area.
37685
37686         2007-07-11  Jim Meyering  <jim@meyering.net>
37687
37688         If there's a GPL vN copyright comment, require that N == 3.
37689
37690         2007-07-08  Jim Meyering  <jim@meyering.net>
37691
37692         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37693         * build-aux/bootstrap (mam_template): Move definition out of loop.
37694
37695         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37696
37697         * build-aux/bootstrap (symlink_to_dir): Rename function from
37698         symlink_to_gnulib.  Add a directory parameter.  Update all
37699         callers.
37700         (cp_mark_as_generated): Also check for -- and link to -- files in
37701         gl/.
37702
37703         2007-07-08  Jim Meyering  <jim@meyering.net>
37704
37705         Adapt to deeper hierarchy in gnulib.
37706         * build-aux/bootstrap (symlink_to_dir): If the destination
37707         directory doesn't exist, create it. This is required at least for
37708         "lib/uniwidth/cjk.h".
37709
37710         2007-05-15  Jim Meyering  <jim@meyering.net>
37711
37712         * build-aux/bootstrap: Now that generated Makefile.am files
37713         are no longer under version control, they must be created at
37714         bootstrap time.
37715
37716 2007-08-14  Ben Pfaff  <blp@gnu.org>
37717
37718         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37719
37720 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37721
37722         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37723         given the changes below.
37724         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37725         even on hosts that have padding bits beyond the supported 64.
37726
37727 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37728
37729         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37730         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37731         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37732         depends on it.
37733         (xstrtol_error): Remove.
37734         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37735         but with a different signature.
37736         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37737         * lib/xstrtol-error.c: Include exitfail.h.
37738         (xstrtol_fatal): New function, with a different signature from the
37739         old xstrtol_error, so that the caller need not worry about passing
37740         in an exit status, or about storage management of the option argument.
37741         (xstrtol_error): Now a static function.  Redo signature to
37742         implement xstrtol_fatal.  Output the correct number of hyphens in
37743         front of the option so that the caller need not worry about
37744         storage management.
37745         (N_): New macro.
37746         (_): Remove; not used now.
37747         * modules/xstrtol: Depend on getopt.
37748         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37749         of old STRTOL_FATAL_ERROR macro.
37750         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37751         of test program.
37752         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37753         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37754
37755 2007-08-08  Eric Blake  <ebb9@byu.net>
37756
37757         * lib/xstrtol-error.c: Add missing include.
37758
37759         Move xstrtol messages into gnulib domain, when --pobase is used.
37760         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37761         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37762         * modules/xstrtol (Files): Distribute new file.
37763         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37764         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37765         * tests/test-xstrtol.c: ...into new file.
37766         * tests/test-xstrtoul.c: Also test xstrtoul.
37767         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37768         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37769         * tests/test-xstrtol.sh: Drive the tests.
37770         * tests/test-xstrtoimax.sh: Likewise.
37771         * tests/test-xstrtoumax.sh: Likewise.
37772         * modules/xstrtol-tests: New module.
37773         * modules/xstrtoimax-tests: Likewise.
37774         * modules/xstrtoumax-tests: Likewise.
37775
37776 2007-08-08  Jim Meyering  <jim@meyering.net>
37777
37778         New function: mfile_name_concat.
37779         * lib/filenamecat.c (mfile_name_concat): New function, just like
37780         file_name_concat, but return NULL upon failure rather than exiting
37781         with a diagnostic.
37782         * lib/filenamecat.h: Declare it.
37783
37784 2007-08-07  Bruno Haible  <bruno@clisp.org>
37785
37786         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37787         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37788         warning from gcc.
37789         Reported by Eric Blake.
37790
37791 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37792
37793         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37794         * modules/crypto/arcfour (License): Likewise.
37795         * modules/crypto/des-tests (License): Likewise.
37796         * modules/crypto/gc-arctwo-tests (License): Likewise.
37797         * modules/crypto/gc-des-tests (License): Likewise.
37798         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37799         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37800         * modules/crypto/gc-md2-tests (License): Likewise.
37801         * modules/crypto/gc-md4-tests (License): Likewise.
37802         * modules/crypto/gc-md5-tests (License): Likewise.
37803         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37804         * modules/crypto/gc-rijndael-tests (License): Likewise.
37805         * modules/crypto/gc-sha1-tests (License): Likewise.
37806         * modules/crypto/gc-tests (License): Likewise.
37807         * modules/crypto/hmac-md5 (License): Likewise.
37808         * modules/crypto/hmac-sha1 (License): Likewise.
37809         * modules/crypto/md2-tests (License): Likewise.
37810         * modules/crypto/md4-tests (License): Likewise.
37811         * modules/crypto/md5 (License): Likewise.
37812         * modules/crypto/rijndael (License): Likewise.
37813         * modules/crypto/sha1 (License): Likewise.
37814         * modules/memxor (License): Likewise.
37815
37816 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37817         and Bruno Haible  <bruno@clisp.org>
37818
37819         * NEWS: Describe interface changes to human, xstrtol.
37820         * lib/human.h: Include <xstrtol.h>.
37821         (human_options): Return enum strtol_error, not int.  Remove
37822         bool arg; take int * instead.
37823         * lib/human.c: Don't include "gettext.h".
37824         (_): Remove; no longer used.
37825         Don't include <xstrtol.h>, since human.h does it.
37826         (human_options): Adjust to abovementioned interface changes.
37827         Do not report error to stderr; that's now the caller's
37828         responsibility.
37829         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37830         interface change.
37831         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37832         Str, Argument_type_string.  All uses changed.  Put " argument"
37833         in diagnostics to make them clearer.  Change wording of suffix
37834         message for clarity.
37835         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37836         Argument_type_string.
37837         (STRTOL_FATAL_WARN): Remove; no longer used.
37838         * modules/human (Depends-on): Remove gettext-h.
37839
37840 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37841
37842         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37843
37844 2007-07-31  Bruno Haible  <bruno@clisp.org>
37845
37846         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37847         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37848         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37849
37850 2007-07-31  Bruno Haible  <bruno@clisp.org>
37851
37852         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37853         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37854
37855 2007-07-30  Bruno Haible  <bruno@clisp.org>
37856
37857         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37858         * modules/c-ctype (License): Likewise.
37859         * modules/c-strcase (License): Likewise.
37860         * modules/check-version (License): Likewise.
37861         * modules/iconv (License): Likewise.
37862         * modules/iconv_open (License): Likewise.
37863         * modules/read-file (License): Likewise.
37864         * modules/striconv (License): Likewise.
37865         * modules/strverscmp (License): Likewise.
37866         * modules/vasprintf (License): Likewise.
37867         * modules/crypto/des (License): Likewise.
37868         * modules/crypto/gc (License): Likewise.
37869         * modules/crypto/gc-arcfour (License): Likewise.
37870         * modules/crypto/gc-arctwo (License): Likewise.
37871         * modules/crypto/gc-des (License): Likewise.
37872         * modules/crypto/gc-hmac-md5 (License): Likewise.
37873         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37874         * modules/crypto/gc-md2 (License): Likewise.
37875         * modules/crypto/gc-md4 (License): Likewise.
37876         * modules/crypto/gc-md5 (License): Likewise.
37877         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37878         * modules/crypto/gc-random (License): Likewise.
37879         * modules/crypto/gc-rijndael (License): Likewise.
37880         * modules/crypto/gc-sha1 (License): Likewise.
37881         * modules/crypto/md2 (License): Likewise.
37882         * modules/crypto/md4 (License): Likewise.
37883
37884 2007-07-30  Jim Meyering  <jim@meyering.net>
37885
37886         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37887         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37888         it has valid stat data.  This bug would cause du not to count the
37889         sizes of inaccessible directories.
37890         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37891         in <http://bugzilla.redhat.com/250077>.
37892
37893 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37894             Bruno Haible  <bruno@clisp.org>
37895
37896         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37897         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37898         #include_next, gives a diagnostic about it, but reports no error in
37899         the exit code.
37900         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37901
37902 2007-07-24  Ben Pfaff  <blp@gnu.org>
37903
37904         Improve name: "count-one-bits" is better than "popcount".
37905         * MODULES.html.sh: Update name.
37906         * lib/popcount.h: Renamed lib/count-one-bits.h.
37907         (popcount): Renamed count_one_bits.
37908         (popcountl): Renamed count_one_bits_l.
37909         (popcountll): Renamed count_one_bits_ll.
37910         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37911         * modules/popcount: Renamed module/count-one-bits.
37912         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37913         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37914
37915 2007-07-23  Ben Pfaff  <blp@gnu.org>
37916
37917         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37918         better code generation, and add U to large constants to avoid
37919         warnings, in non-GCC case.
37920         Suggested by Bruno Haible.
37921
37922 2007-07-23  Ben Pfaff  <blp@gnu.org>
37923
37924         * lib/popcount.h: Use verify_true instead of if...abort.
37925         * modules/popcount: Depend on verify module.
37926         Suggested by Jim Meyering.
37927
37928 2007-07-23  Bruno Haible  <bruno@clisp.org>
37929
37930         * gnulib-tool (func_import): Create a .cvsignore file also when the
37931         directory is not yet in CVS but the toplevel directory is. When
37932         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37933         Reported by Karl Berry.
37934
37935 2007-07-22  Ben Pfaff  <blp@gnu.org>
37936
37937         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37938         case.
37939         Suggested by Eric Blake.
37940
37941 2007-07-22  Ben Pfaff  <blp@gnu.org>
37942
37943         New module: popcount.
37944         * MODULES.html.sh: Add popcount.
37945         * modules/popcount: New file.
37946         * modules/popcount-tests: New file.
37947         * tests/test-popcount.c: New file.
37948         * lib/popcount.h: New file.
37949         * m4/popcount.m4: New file.
37950
37951 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37952
37953         * build-aux/announce-gen: Update to GPLv3.
37954
37955         * build-aux/config.guess: Update from config.
37956
37957 2007-07-21  Bruno Haible  <bruno@clisp.org>
37958
37959         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37960         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37961
37962 2007-07-20  Jim Meyering  <jim@meyering.net>
37963
37964         * check-module: Diagnose a self-dependency.
37965
37966 2007-07-19  Bruno Haible  <bruno@clisp.org>
37967
37968         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37969         empty.
37970         Reported by Eric Blake.
37971
37972 2007-07-18  Bruno Haible  <bruno@clisp.org>
37973
37974         * gnulib-tool: New options --po-base, --po-domain.
37975         (func_usage): Document them.
37976         (pobase, po_domain): New variables.
37977         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37978         DEFAULT_TEXT_DOMAIN.
37979         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37980         (func_import): Consider pobase and po_domain. Create a po/ directory.
37981         (func_create_testdir): Set pobase and po_domain to empty.
37982         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37983         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37984
37985 2007-07-18  Bruno Haible  <bruno@clisp.org>
37986
37987         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37988         EXTRA_DIST augmentation for files in build-aux/.
37989
37990 2007-07-16  Bruno Haible  <bruno@clisp.org>
37991
37992         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37993         * modules/getdelim (License): Likewise.
37994
37995 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37996
37997         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
37998         * modules/d-type (License): Likewise.
37999         * modules/extensions (License): Likewise.
38000         * modules/fnmatch (License): Likewise.
38001         * modules/fseeko (License): Likewise.
38002         * modules/getaddrinfo (License): Likewise.
38003         * modules/getline (License): Likewise.
38004         * modules/getlogin_r (License): Likewise.
38005         * modules/getpass (License): Likewise.
38006         * modules/gettimeofday (License): Likewise.
38007         * modules/glob (License): Likewise.
38008         * modules/inet_ntop (License): Likewise.
38009         * modules/malloc (License): Likewise.
38010         * modules/malloca (License): Likewise.
38011         * modules/memmem (License): Likewise.
38012         * modules/mempcpy (License): Likewise.
38013         * modules/memset (License): Likewise.
38014         * modules/minmax (License): Likewise.
38015         * modules/mktime (License): Likewise.
38016         * modules/netinet_in (License): Likewise.
38017         * modules/pathmax (License): Likewise.
38018         * modules/poll (License): Likewise.
38019         * modules/regex (License): Likewise.
38020         * modules/snprintf (License): Likewise.
38021         * modules/stdbool (License): Likewise.
38022         * modules/stdint (License): Likewise.
38023         * modules/stdio (License): Likewise.
38024         * modules/strcase (License): Likewise.
38025         * modules/strcasestr (License): Likewise.
38026         * modules/strdup (License): Likewise.
38027         * modules/string (License): Likewise.
38028         * modules/strndup (License): Likewise.
38029         * modules/strnlen (License): Likewise.
38030         * modules/strpbrk (License): Likewise.
38031         * modules/strptime (License): Likewise.
38032         * modules/strsep (License): Likewise.
38033         * modules/sys_select (License): Likewise.
38034         * modules/sys_socket (License): Likewise.
38035         * modules/sys_stat (License): Likewise.
38036         * modules/sys_time (License): Likewise.
38037         * modules/time (License): Likewise.
38038         * modules/time_r (License): Likewise.
38039         * modules/timegm (License): Likewise.
38040         * modules/unistd (License): Likewise.
38041         * modules/vsnprintf (License): Likewise.
38042         * modules/wctype (License): Likewise.
38043
38044 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38045
38046         * modules/argz (License): LGPLv2+.
38047
38048 2007-07-15  Karl Berry  <karl@gnu.org>
38049
38050         * doc/gnulib.texi: revise node structure per new fdl.texi.
38051
38052 2007-07-14  Bruno Haible  <bruno@clisp.org>
38053
38054         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
38055         the output file.
38056         * lib/uniname/uninames.h: Regenerated.
38057
38058 2007-07-14  Karl Berry  <karl@gnu.org>
38059
38060         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
38061         omitting sectioning and index commands.
38062
38063 2007-07-13  Bruno Haible  <bruno@clisp.org>
38064
38065         New gnulib-tool option --more-symlinks.
38066         * gnulib-tool (func_usage): Document --more-symlinks.
38067         (do_copyrights): New variable.
38068         Recognize option --more-symlinks.
38069         (func_import): Don't add a copyright notice transform to
38070         sed_transform_lib_file if do_copyrights is empty.
38071
38072 2007-07-13  Bruno Haible  <bruno@clisp.org>
38073
38074         * lib/vasnprintf.c (decimal_point_char): Define also if
38075         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
38076         && !NEED_PRINTF_DIRECTIVE_A.
38077         Reported by Clemens Koller <clemens.koller@anagramm.de> via
38078         Gary V. Vaughan <gary@gnu.org>.
38079
38080 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
38081
38082         * lib/inttypes_.h: Undo previous change, since it was fixed
38083         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
38084
38085 2007-07-13  Bruno Haible  <bruno@clisp.org>
38086
38087         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
38088         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
38089
38090 2007-07-13  Jim Meyering  <jim@meyering.net>
38091
38092         df: Don't fail for Tru64's "file-on-file mount".
38093         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
38094         so we fall through and use statfs instead.  Details here:
38095         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
38096         Reported by Albert Chin.
38097
38098 2007-07-13  Bruno Haible  <bruno@clisp.org>
38099
38100         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
38101         * modules/configmake (License): Likewise.
38102         * modules/gettext (License): Likewise.
38103         * modules/gettext-h (License): Likewise.
38104         * modules/include_next (License): Likewise.
38105         * modules/link-warning (License): Likewise.
38106         * modules/localcharset (License): Likewise.
38107         * modules/localename (License): Likewise.
38108         * modules/lock (License): Likewise.
38109         * modules/relocatable-lib-lgpl (License): Likewise.
38110         * modules/size_max (License): Likewise.
38111         * modules/vasnprintf (License): Likewise.
38112         * modules/wchar (License): Likewise.
38113         * modules/xsize (License): Likewise.
38114
38115 2007-07-13  Bruno Haible  <bruno@clisp.org>
38116
38117         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
38118         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
38119
38120 2007-07-12  Bruno Haible  <bruno@clisp.org>
38121
38122         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
38123         in the modules files.
38124
38125 2007-07-11  Karl Berry  <karl@gnu.org>
38126
38127         * MODULES.html.sh (func_module): use
38128          sed -e '\|^'"${includefile}"'$|d'
38129          instead of /.../d, to avoid errors on $includefile's containing /.
38130
38131 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38132
38133         * gnulib-tool (func_import): Avoid duplication of --avoid
38134         statements
38135         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
38136         names to `_' in variable names.
38137
38138 2007-07-10  Eric Blake  <ebb9@byu.net>
38139
38140         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
38141         * NEWS: Document this change.
38142
38143 2007-07-08  Bruno Haible  <bruno@clisp.org>
38144
38145         Update to Unicode 5.0.
38146         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
38147         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
38148         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
38149         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
38150         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
38151         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
38152         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
38153         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
38154         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38155         U+10A3F, U+1D242..U+1D244.
38156         (nonspacing_table_ind): Update.
38157         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38158         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38159
38160 2007-07-08  Bruno Haible  <bruno@clisp.org>
38161
38162         Update to Unicode 5.0.
38163         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38164         code transform. Extend the name index field of unicode_name_to_code and
38165         unicode_code_to_name from 16 to 24 bits.
38166         * lib/uniname/uniname.c (unicode_character_name,
38167         unicode_name_character): Add the range 0x12xxx to the code transform.
38168         * lib/uniname/uninames.h: Regenerated.
38169         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38170
38171 2007-07-07  Bruno Haible  <bruno@clisp.org>
38172
38173         * modules/wcwidth-tests: New file.
38174         * tests/test-wcwidth.c: New file.
38175
38176         Work around MacOS X wcwidth() bug.
38177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38178         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38179         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38180         original wcwidth in non-UTF-8 locales.
38181         * modules/wcwidth (Depends-on): Add localcharset, streq,
38182         uniwidth/width.
38183         * doc/functions/wcwidth.texi: Update.
38184
38185 2007-07-07  Bruno Haible  <bruno@clisp.org>
38186
38187         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38188         (wcwidth): New declaration.
38189         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38190         macros.
38191         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38192         here. Prepare for creating <wchar.h> unconditionally.
38193         * modules/wchar (Depends-on): Add link-warning.
38194         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38195         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38196         * lib/wcwidth.h: Remove file.
38197         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38198         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38199         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38200         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38201         (Include): Replace wcwidth.h with <wchar.h>.
38202         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38203         * lib/mbchar.h: Don't include wcwidth.h.
38204         * lib/mbswidth.c: Likewise.
38205         * NEWS: Mention the change.
38206
38207 2007-07-07  Bruno Haible  <bruno@clisp.org>
38208
38209         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38210         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38211         definition with an external declaration.
38212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38213         defined as a function. Remove AC_C_INLINE requirement.
38214         * modules/wcwidth (Files): Add lib/wcwidth.c.
38215         (Makefile.am): Remove redundant statement.
38216
38217 2007-07-07  Bruno Haible  <bruno@clisp.org>
38218
38219         * MODULES.html.sh (Unicode string functions): Add the new modules.
38220
38221         * tests/uniwidth/test-u32-strwidth.c: New file.
38222         * modules/uniwidth/u32-strwidth-tests: New file.
38223
38224         * lib/uniwidth/u32-strwidth.c: New file.
38225         * modules/uniwidth/u32-strwidth: New file.
38226
38227         * tests/uniwidth/test-u16-strwidth.c: New file.
38228         * modules/uniwidth/u16-strwidth-tests: New file.
38229
38230         * lib/uniwidth/u16-strwidth.c: New file.
38231         * modules/uniwidth/u16-strwidth: New file.
38232
38233         * tests/uniwidth/test-u8-strwidth.c: New file.
38234         * modules/uniwidth/u8-strwidth-tests: New file.
38235
38236         * lib/uniwidth/u8-strwidth.c: New file.
38237         * modules/uniwidth/u8-strwidth: New file.
38238
38239         * tests/uniwidth/test-u32-width.c: New file.
38240         * modules/uniwidth/u32-width-tests: New file.
38241
38242         * lib/uniwidth/u32-width.c: New file.
38243         * modules/uniwidth/u32-width: New file.
38244
38245         * tests/uniwidth/test-u16-width.c: New file.
38246         * modules/uniwidth/u16-width-tests: New file.
38247
38248         * lib/uniwidth/u16-width.c: New file.
38249         * modules/uniwidth/u16-width: New file.
38250
38251         * tests/uniwidth/test-u8-width.c: New file.
38252         * modules/uniwidth/u8-width-tests: New file.
38253
38254         * lib/uniwidth/u8-width.c: New file.
38255         * modules/uniwidth/u8-width: New file.
38256
38257         * tests/uniwidth/test-uc_width.c: New file.
38258         * modules/uniwidth/width-tests: New file.
38259
38260         * lib/uniwidth/width.c: New file, from GNU libiconv.
38261         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38262         * modules/uniwidth/width: New file.
38263
38264         * lib/uniwidth.h: New file, from GNU libiconv.
38265         * modules/uniwidth/base: New file.
38266
38267 2007-07-07  Bruno Haible  <bruno@clisp.org>
38268
38269         * lib/uniname.h: New file, from GNU gettext.
38270         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38271         * lib/uniname/uninames.h: New file, from GNU gettext.
38272         * lib/uniname/uniname.c: New file, from GNU gettext.
38273         * tests/uniname/test-uninames.sh: New file.
38274         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38275         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38276         * modules/uniname/base: New file.
38277         * modules/uniname/uniname: New file.
38278         * modules/uniname/uniname-tests: New file.
38279         * MODULES.html.sh (Unicode string functions): Add the new modules.
38280
38281 2007-07-06  Bruno Haible  <bruno@clisp.org>
38282
38283         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38284
38285 2007-07-06  Bruno Haible  <bruno@clisp.org>
38286
38287         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38288         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38289         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38290         include <sys/time.h>.
38291         Reported by Eric Blake.
38292
38293 2007-07-06  Eric Blake  <ebb9@byu.net>
38294
38295         Fix testing canonicalize on cygwin.
38296         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38297         Revert patch from 2007-06-19.
38298         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38299         canonicalize module is also in use.
38300         * tests/test-canonicalize.c: New file.
38301         * tests/test-canonicalize.sh: Likewise.
38302         * modules/canonicalize-tests: Likewise.
38303
38304 2007-07-06  Jim Meyering  <jim@meyering.net>
38305
38306         * lib/getugroups.c (getugroups): Detect getgrent failure.
38307         Adjust comment to reflect reality: this function may return -1.
38308
38309 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38310
38311         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38312         the new TP address.
38313         (usage): Fix typo
38314         (gnulib_mk): New variable.
38315
38316 2007-07-05  Jim Meyering  <jim@meyering.net>
38317
38318         Don't let endgrent clobber errno, no matter how improbable.
38319         * lib/getugroups.c (getugroups): Save and restore errno around
38320         endgrent call.
38321
38322         Close the group DB even when failing with 2^31 or more members.
38323         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38324
38325 2007-07-04  Jim Meyering  <jim@meyering.net>
38326
38327         * lib/getugroups.h: New file.
38328         * lib/getugroups.c: Include "getugroups.h".
38329         Remove uses of "register" keyword.
38330         Move local variable, "cp", down into scope where used.
38331         Give "username" parameter the "const" attribute.
38332         * modules/getugroups (Files): Add lib/getugroups.h
38333
38334 2007-07-04  Karl Berry  <karl@gnu.org>
38335
38336         * MODULES.html.sh (func_all_modules): Complete rename of
38337         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38338
38339 2007-07-02  Bruno Haible  <bruno@clisp.org>
38340
38341         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38342         mode, when inttypes.h comes from gnulib.
38343         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38344
38345 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38346
38347         * NEWS: Mention lgpl module name change.
38348
38349         * modules/lgpl-2.1: Renamed from lgpl.
38350
38351         * NEWS: Mention gpl module name change.
38352
38353         * modules/gpl-3.0: New file, based on gpl-2.0.
38354
38355         * modules/gpl-2.0: Renamed from gpl.
38356
38357         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38358         doc/gpl-2.0.texi.
38359
38360 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38361
38362         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38363         #define __STDC_LIMIT_MACROS temporarily while including
38364         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38365         Problem reported by Joel E. Denny in
38366         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38367
38368 2007-07-01  Bruno Haible  <bruno@clisp.org>
38369
38370         * lib/unistdio.h: New file.
38371         * lib/unistdio/u-asnprintf.h: New file.
38372         * lib/unistdio/u-asprintf.h: New file.
38373         * lib/unistdio/u-printf-args.c: New file.
38374         * lib/unistdio/u-printf-args.h: New file.
38375         * lib/unistdio/u-printf-parse.h: New file.
38376         * lib/unistdio/u-snprintf.h: New file.
38377         * lib/unistdio/u-sprintf.h: New file.
38378         * lib/unistdio/u-vasprintf.h: New file.
38379         * lib/unistdio/u-vsnprintf.h: New file.
38380         * lib/unistdio/u-vsprintf.h: New file.
38381         * lib/unistdio/ulc-asnprintf.c: New file.
38382         * lib/unistdio/ulc-asprintf.c: New file.
38383         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38384         * lib/unistdio/ulc-printf-parse.c: New file.
38385         * lib/unistdio/ulc-snprintf.c: New file.
38386         * lib/unistdio/ulc-sprintf.c: New file.
38387         * lib/unistdio/ulc-vasnprintf.c: New file.
38388         * lib/unistdio/ulc-vasprintf.c: New file.
38389         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38390         * lib/unistdio/ulc-vsnprintf.c: New file.
38391         * lib/unistdio/ulc-vsprintf.c: New file.
38392         * lib/unistdio/u8-asnprintf.c: New file.
38393         * lib/unistdio/u8-asprintf.c: New file.
38394         * lib/unistdio/u8-printf-parse.c: New file.
38395         * lib/unistdio/u8-snprintf.c: New file.
38396         * lib/unistdio/u8-sprintf.c: New file.
38397         * lib/unistdio/u8-vasnprintf.c: New file.
38398         * lib/unistdio/u8-vasprintf.c: New file.
38399         * lib/unistdio/u8-vsnprintf.c: New file.
38400         * lib/unistdio/u8-vsprintf.c: New file.
38401         * lib/unistdio/u8-u8-asnprintf.c: New file.
38402         * lib/unistdio/u8-u8-asprintf.c: New file.
38403         * lib/unistdio/u8-u8-snprintf.c: New file.
38404         * lib/unistdio/u8-u8-sprintf.c: New file.
38405         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38406         * lib/unistdio/u8-u8-vasprintf.c: New file.
38407         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38408         * lib/unistdio/u8-u8-vsprintf.c: New file.
38409         * lib/unistdio/u16-asnprintf.c: New file.
38410         * lib/unistdio/u16-asprintf.c: New file.
38411         * lib/unistdio/u16-printf-parse.c: New file.
38412         * lib/unistdio/u16-snprintf.c: New file.
38413         * lib/unistdio/u16-sprintf.c: New file.
38414         * lib/unistdio/u16-vasnprintf.c: New file.
38415         * lib/unistdio/u16-vasprintf.c: New file.
38416         * lib/unistdio/u16-vsnprintf.c: New file.
38417         * lib/unistdio/u16-vsprintf.c: New file.
38418         * lib/unistdio/u16-u16-asnprintf.c: New file.
38419         * lib/unistdio/u16-u16-asprintf.c: New file.
38420         * lib/unistdio/u16-u16-snprintf.c: New file.
38421         * lib/unistdio/u16-u16-sprintf.c: New file.
38422         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38423         * lib/unistdio/u16-u16-vasprintf.c: New file.
38424         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38425         * lib/unistdio/u16-u16-vsprintf.c: New file.
38426         * lib/unistdio/u32-asnprintf.c: New file.
38427         * lib/unistdio/u32-asprintf.c: New file.
38428         * lib/unistdio/u32-printf-parse.c: New file.
38429         * lib/unistdio/u32-snprintf.c: New file.
38430         * lib/unistdio/u32-sprintf.c: New file.
38431         * lib/unistdio/u32-vasnprintf.c: New file.
38432         * lib/unistdio/u32-vasprintf.c: New file.
38433         * lib/unistdio/u32-vsnprintf.c: New file.
38434         * lib/unistdio/u32-vsprintf.c: New file.
38435         * lib/unistdio/u32-u32-asnprintf.c: New file.
38436         * lib/unistdio/u32-u32-asprintf.c: New file.
38437         * lib/unistdio/u32-u32-snprintf.c: New file.
38438         * lib/unistdio/u32-u32-sprintf.c: New file.
38439         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38440         * lib/unistdio/u32-u32-vasprintf.c: New file.
38441         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38442         * lib/unistdio/u32-u32-vsprintf.c: New file.
38443         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38444         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38445         * tests/unistdio/test-ulc-printf1.h: New file.
38446         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38447         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38448         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38449         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38450         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38451         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38452         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38453         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38454         * tests/unistdio/test-u8-asnprintf1.c: New file.
38455         * tests/unistdio/test-u8-asnprintf1.h: New file.
38456         * tests/unistdio/test-u8-printf1.h: New file.
38457         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38458         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38459         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38460         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38461         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38462         * tests/unistdio/test-u8-vasprintf1.c: New file.
38463         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38464         * tests/unistdio/test-u8-vsprintf1.c: New file.
38465         * tests/unistdio/test-u16-asnprintf1.c: New file.
38466         * tests/unistdio/test-u16-asnprintf1.h: New file.
38467         * tests/unistdio/test-u16-printf1.h: New file.
38468         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38469         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38470         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38471         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38472         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38473         * tests/unistdio/test-u16-vasprintf1.c: New file.
38474         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38475         * tests/unistdio/test-u16-vsprintf1.c: New file.
38476         * tests/unistdio/test-u32-asnprintf1.c: New file.
38477         * tests/unistdio/test-u32-asnprintf1.h: New file.
38478         * tests/unistdio/test-u32-printf1.h: New file.
38479         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38480         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38481         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38482         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38483         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38484         * tests/unistdio/test-u32-vasprintf1.c: New file.
38485         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38486         * tests/unistdio/test-u32-vsprintf1.c: New file.
38487         * modules/unistdio/base: New file.
38488         * modules/unistdio/u-printf-args: New file.
38489         * modules/unistdio/ulc-asnprintf: New file.
38490         * modules/unistdio/ulc-asprintf: New file.
38491         * modules/unistdio/ulc-fprintf: New file.
38492         * modules/unistdio/ulc-printf-parse: New file.
38493         * modules/unistdio/ulc-snprintf: New file.
38494         * modules/unistdio/ulc-sprintf: New file.
38495         * modules/unistdio/ulc-vasnprintf: New file.
38496         * modules/unistdio/ulc-vasprintf: New file.
38497         * modules/unistdio/ulc-vfprintf: New file.
38498         * modules/unistdio/ulc-vsnprintf: New file.
38499         * modules/unistdio/ulc-vsprintf: New file.
38500         * modules/unistdio/u8-asnprintf: New file.
38501         * modules/unistdio/u8-asprintf: New file.
38502         * modules/unistdio/u8-printf-parse: New file.
38503         * modules/unistdio/u8-snprintf: New file.
38504         * modules/unistdio/u8-sprintf: New file.
38505         * modules/unistdio/u8-vasnprintf: New file.
38506         * modules/unistdio/u8-vasprintf: New file.
38507         * modules/unistdio/u8-vsnprintf: New file.
38508         * modules/unistdio/u8-vsprintf: New file.
38509         * modules/unistdio/u8-u8-asnprintf: New file.
38510         * modules/unistdio/u8-u8-asprintf: New file.
38511         * modules/unistdio/u8-u8-snprintf: New file.
38512         * modules/unistdio/u8-u8-sprintf: New file.
38513         * modules/unistdio/u8-u8-vasnprintf: New file.
38514         * modules/unistdio/u8-u8-vasprintf: New file.
38515         * modules/unistdio/u8-u8-vsnprintf: New file.
38516         * modules/unistdio/u8-u8-vsprintf: New file.
38517         * modules/unistdio/u16-asnprintf: New file.
38518         * modules/unistdio/u16-asprintf: New file.
38519         * modules/unistdio/u16-printf-parse: New file.
38520         * modules/unistdio/u16-snprintf: New file.
38521         * modules/unistdio/u16-sprintf: New file.
38522         * modules/unistdio/u16-vasnprintf: New file.
38523         * modules/unistdio/u16-vasprintf: New file.
38524         * modules/unistdio/u16-vsnprintf: New file.
38525         * modules/unistdio/u16-vsprintf: New file.
38526         * modules/unistdio/u16-u16-asnprintf: New file.
38527         * modules/unistdio/u16-u16-asprintf: New file.
38528         * modules/unistdio/u16-u16-snprintf: New file.
38529         * modules/unistdio/u16-u16-sprintf: New file.
38530         * modules/unistdio/u16-u16-vasnprintf: New file.
38531         * modules/unistdio/u16-u16-vasprintf: New file.
38532         * modules/unistdio/u16-u16-vsnprintf: New file.
38533         * modules/unistdio/u16-u16-vsprintf: New file.
38534         * modules/unistdio/u32-asnprintf: New file.
38535         * modules/unistdio/u32-asprintf: New file.
38536         * modules/unistdio/u32-printf-parse: New file.
38537         * modules/unistdio/u32-snprintf: New file.
38538         * modules/unistdio/u32-sprintf: New file.
38539         * modules/unistdio/u32-vasnprintf: New file.
38540         * modules/unistdio/u32-vasprintf: New file.
38541         * modules/unistdio/u32-vsnprintf: New file.
38542         * modules/unistdio/u32-vsprintf: New file.
38543         * modules/unistdio/u32-u32-asnprintf: New file.
38544         * modules/unistdio/u32-u32-asprintf: New file.
38545         * modules/unistdio/u32-u32-snprintf: New file.
38546         * modules/unistdio/u32-u32-sprintf: New file.
38547         * modules/unistdio/u32-u32-vasnprintf: New file.
38548         * modules/unistdio/u32-u32-vasprintf: New file.
38549         * modules/unistdio/u32-u32-vsnprintf: New file.
38550         * modules/unistdio/u32-u32-vsprintf: New file.
38551         * modules/unistdio/ulc-asnprintf-tests: New file.
38552         * modules/unistdio/ulc-vasnprintf-tests: New file.
38553         * modules/unistdio/ulc-vasprintf-tests: New file.
38554         * modules/unistdio/ulc-vsnprintf-tests: New file.
38555         * modules/unistdio/ulc-vsprintf-tests: New file.
38556         * modules/unistdio/u8-asnprintf-tests: New file.
38557         * modules/unistdio/u8-vasnprintf-tests: New file.
38558         * modules/unistdio/u8-vasprintf-tests: New file.
38559         * modules/unistdio/u8-vsnprintf-tests: New file.
38560         * modules/unistdio/u8-vsprintf-tests: New file.
38561         * modules/unistdio/u16-asnprintf-tests: New file.
38562         * modules/unistdio/u16-vasnprintf-tests: New file.
38563         * modules/unistdio/u16-vasprintf-tests: New file.
38564         * modules/unistdio/u16-vsnprintf-tests: New file.
38565         * modules/unistdio/u16-vsprintf-tests: New file.
38566         * modules/unistdio/u32-asnprintf-tests: New file.
38567         * modules/unistdio/u32-vasnprintf-tests: New file.
38568         * modules/unistdio/u32-vasprintf-tests: New file.
38569         * modules/unistdio/u32-vsnprintf-tests: New file.
38570         * modules/unistdio/u32-vsprintf-tests: New file.
38571         * MODULES.html.sh (Unicode string functions): Add the new modules.
38572
38573 2007-07-01  Bruno Haible  <bruno@clisp.org>
38574
38575         * lib/sprintf.c (sprintf): Limit the available length estimation,
38576         to avoid address wraparound.
38577         * lib/vsprintf.c (vsprintf): Likewise.
38578         * modules/sprintf-posix (Dependencies): Add stdint.
38579         * modules/vsprintf-posix (Dependencies): Likewise.
38580
38581 2007-07-01  Bruno Haible  <bruno@clisp.org>
38582
38583         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38584         Windows PATH as well. Conservative double-quoting. Comments.
38585
38586 2007-07-01  Bruno Haible  <bruno@clisp.org>
38587             Eric Blake  <ebb9@byu.net>
38588             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38589
38590         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38591         empty components in $PATH, denoting '.'.
38592
38593 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38594
38595         * gnulib-tool: Fix indentation.
38596         (func_create_megatestdir): Likewise.
38597         Report by Bruno Haible.
38598
38599 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38600
38601         Sync from Automake.
38602         * build-aux/gnupload: Fix shell portability issues with for loops.
38603         Report by Karl Berry.
38604
38605 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38606
38607         * build-aux/maint.mk (POURL): Use translationproject.org.
38608
38609 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38610             Bruno Haible  <bruno@clisp.org>
38611
38612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38613         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38614         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38615         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38616         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38617
38618 2007-06-27  Bruno Haible  <bruno@clisp.org>
38619
38620         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38621         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38622
38623 2007-06-26  Karl Berry  <karl@gnu.org>
38624
38625         * MODULES.html.sh: remove xreadlink-with-size.
38626
38627 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38628
38629         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38630         method that I hope also handles the double-include problem noted
38631         by Bruno Haible in
38632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38633
38634 2007-06-23  Bruno Haible  <bruno@clisp.org>
38635
38636         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38637         Don't let the 'mostlyclean' target fail if the last subdirectory could
38638         not be removed.
38639         Reported by Karl Berry.
38640
38641 2007-06-23  Bruno Haible  <bruno@clisp.org>
38642
38643         * gnulib-tool (echo): Add a speedier workaround for ksh.
38644         * tests/test-echo.sh: Likewise.
38645
38646 2007-06-23  Bruno Haible  <bruno@clisp.org>
38647
38648         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38649         * tests/test-echo.sh: Likewise.
38650
38651 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38652
38653         * gnulib-tool (IFS): Initialize early, so we don't set it to
38654         empty later.
38655         (self_abspathname): Rewrite algorithm to set it, reindent.
38656         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38657         (func_create_megatestdir): Merge some sed scripts.
38658
38659 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38660
38661         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38662         exposed by Sun Studio 11 cc on Solaris 8.
38663
38664 2007-06-22  Bruno Haible  <bruno@clisp.org>
38665
38666         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38667         backslashes.
38668         * tests/test-echo.sh: New file.
38669
38670 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38671
38672         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38673         simplify `sed_replace_build_aux' scripts, they are portable but
38674         echoing them with `echo' is not.
38675         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38676
38677 2007-06-21  Karl Berry  <karl@gnu.org>
38678
38679         * config/srclist.txt: guess we can't handle the licenses via
38680         srclist at the moment.
38681
38682 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38683
38684         * MODULES.html.sh: Add include_next.
38685         * modules/include_next: New file.
38686
38687 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38688
38689         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38690         INCLUDE_NEXT.
38691         (gl_CHECK_NEXT_HEADERS): New macro.
38692         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38693         the obsolescent gl_ABSOLUTE_HEADER.
38694         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38695         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38696         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38697         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38698         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38699         * m4/math_h.m4 (gl_MATH_H): Likewise.
38700         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38701         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38702         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38703         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38704         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38705         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38706         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38708         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38709         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38710         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38711         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38712         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38713         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38714         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38715         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38716         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38717         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38718         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38719         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38720         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38721         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38722         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38723         * lib/float_.h: Likewise.
38724         * lib/inttypes_.h: Likewise.
38725         * lib/math_.h: Likewise.
38726         * lib/search_.h: Likewise.
38727         * lib/signal_.h: Likewise.
38728         * lib/stdint_.h: Likewise.
38729         * lib/stdio_.h: Likewise.
38730         * lib/stdlib_.h: Likewise.
38731         * lib/string_.h: Likewise.
38732         * lib/sys_stat_.h: Likewise.
38733         * lib/sys_time_.h: Likewise.
38734         * lib/time_.h: Likewise.
38735         * lib/unistd_.h: Likewise.
38736         * lib/wchar_.h: Likewise.
38737         * lib/wctype_.h: Likewise.
38738         * lib/dirent_.h: Likewise.
38739         * lib/iconv_.h: Likewise.
38740         * lib/locale_.h: Likewise.
38741         * lib/netinet_in_.h: Likewise.
38742         * lib/sys_select_.h: Likewise.
38743         * lib/sys_socket_.h: Likewise.
38744         * lib/sysexits_.h: Likewise.
38745         * modules/fcntl (Depends-on): Depend on include_next, not
38746         absolute_header.
38747         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38748         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38749         * modules/fchdir: Likewise.
38750         * modules/float: Likewise.
38751         * modules/iconv_open: Likewise.
38752         * modules/inttypes: Likewise.
38753         * modules/locale: Likewise.
38754         * modules/math: Likewise.
38755         * modules/netinet_in: Likewise.
38756         * modules/search: Likewise.
38757         * modules/signal: Likewise.
38758         * modules/stdint: Likewise.
38759         * modules/stdio: Likewise.
38760         * modules/stdlib: Likewise.
38761         * modules/string: Likewise.
38762         * modules/sys_select: Likewise.
38763         * modules/sys_socket: Likewise.
38764         * modules/sys_stat: Likewise.
38765         * modules/sys_time: Likewise.
38766         * modules/sysexits: Likewise.
38767         * modules/time: Likewise.
38768         * modules/unistd: Likewise.
38769         * modules/wchar: Likewise.
38770         * modules/wctype: Likewise.
38771         * modules/sys_stat: Change maintainer to "all".
38772         * modules/unistd: Likewise.
38773
38774 2007-06-20  Karl Berry  <karl@gnu.org>
38775
38776         * config/srclist.txt: track www changes in license files.
38777
38778 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38779
38780         * build-aux/bootstrap: Remove stray dot.
38781         Make sure build_aux settings are honored when linking
38782         gnulib_extra_files.
38783
38784 2007-06-19  Eric Blake  <ebb9@byu.net>
38785
38786         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38787         Allow compilation on cygwin.
38788
38789 2007-06-19  Jim Meyering  <jim@meyering.net>
38790
38791         xreadlink-with-size: Remove module.  No longer used.
38792         Ex-callers now use xreadlink or mreadlink-with-size.
38793         * modules/xreadlink-with-size: Remove module.
38794         * lib/xreadlink-with-size.c: Remove file.
38795         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38796         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38797         just before the function definition *is* accurate.
38798
38799         Eliminate one way canonicalize_filename_mode could exit.
38800         * lib/canonicalize.c (canonicalize_filename_mode):
38801         Use mreadlink_with_size, not xreadlink_with_size.
38802
38803 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38804
38805         Detect porting problems to FreeBSD/arm, which has time_t wider than
38806         long int.  Original problem reported for GNU diff by Xin Li in
38807         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38808         * modules/getdate (Depends-on): Add intprops, verify.
38809         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38810         is an integer type no wider than long int.
38811
38812 2007-06-18  Jim Meyering  <jim@meyering.net>
38813
38814         New module: mreadlink-with-size.
38815         * MODULES.html.sh: Add mreadlink-with-size.
38816         * modules/mreadlink-with-size: New module
38817         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38818         not xreadlink-with-size.
38819         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38820
38821 2007-06-16  Bruno Haible  <bruno@clisp.org>
38822
38823         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38824         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38825         Reported by Gary V. Vaughan <gary@gnu.org>.
38826
38827 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38828
38829         Revamp lchown so that it lives in unistd.h where it belongs.
38830         * lib/lchown.h: Remove.
38831         * lib/dirchownmod.c: Don't include lib/lchown.h.
38832         * lib/fchownat.c: Likewise.
38833         * lib/openat.c: Likewise.
38834         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38835         does not follow symlinks.
38836         (EOPNOTSUPP): Define if not defined.
38837         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38838         is defined to 0.
38839         (lchown): New decl.
38840         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38841         Do not check for lchown decl.
38842         Set REPLACE_LCHOWN.
38843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38844         REPLACE_LCHOWN.
38845         * modules/chown: Make it clear it follows symlinks.
38846         * modules/lchown: Make it clear it doesn't follow symlinks.
38847         (Files): Remove lib/lchown.h
38848         (Depends-on): Add unistd.
38849         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38850         (Include): Include <unistd.h>, not "lchown.h".
38851         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38852         REPLACE_LCHOWN.
38853
38854 2007-06-15  Jim Meyering  <jim@meyering.net>
38855
38856         Change license (GPL to LGPL) of fsusage and dependents.
38857         * modules/fsusage (License): Change to LGPL.
38858         * modules/full-read (License): Likewise.
38859         * modules/full-write (License): Likewise.
38860         * modules/safe-read (License): Likewise.
38861         * modules/safe-write (License): Likewise.
38862
38863 2007-06-14  Ben Pfaff  <blp@gnu.org>
38864
38865         Missing part of allocsa -> malloca transition.
38866         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38867         gl_MALLOCA.
38868
38869 2007-06-12  Bruno Haible  <bruno@clisp.org>
38870
38871         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38872         to ia64, x86_64, i386.
38873         Reported by Eric Blake.
38874
38875 2007-06-12  Bruno Haible  <bruno@clisp.org>
38876
38877         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38878         cross-compiling to x86_64.
38879
38880 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38881
38882         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38883         glitch reported by Ralf Wildenhues in
38884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38885
38886         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38887         Vin Shelton.
38888
38889 2007-06-11  Bruno Haible  <bruno@clisp.org>
38890
38891         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38892         replacement string.
38893         Reported by Eric Blake.
38894
38895 2007-06-10  Bruno Haible  <bruno@clisp.org>
38896
38897         Prepare vasnprintf code for use with Unicode strings.
38898         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38899         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38900         TYPE_U32_STRING.
38901         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38902         a_u32_string variants.
38903         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38904         * lib/printf-args.c: Don't include config.h and the specification
38905         header if PRINTF_FETCHARGS is already defined.
38906         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38907         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38908         TYPE_U16_STRING, TYPE_U32_STRING.
38909         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38910         u16_directive, u16_directives, u32_directive, u32_directives): New
38911         types.
38912         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38913         New declarations.
38914         * lib/printf-parse.c: Don't include config.h and the specification
38915         header if PRINTF_PARSE is already defined. Eliminate the set of
38916         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38917         them now. Include c-ctype.h.
38918         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38919         directive and CHAR_T_ONLY_ASCII.
38920         * lib/vasnprintf.c: Don't include config.h and the specification header
38921         if VASNPRINTF is already defined.
38922         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38923         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38924         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38925         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38926         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38927         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38928         code accordingly.
38929         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38930         pad_ourselves also in this case, with the 'c' and 's' directives, and
38931         with a different notion of "width".
38932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38933
38934 2007-06-10  Bruno Haible  <bruno@clisp.org>
38935
38936         * modules/unistr/u32-mbsnlen: New file.
38937         * lib/unistr/u32-mbsnlen.c: New file.
38938
38939         * modules/unistr/u16-mbsnlen: New file.
38940         * lib/unistr/u16-mbsnlen.c: New file.
38941
38942         * modules/unistr/u8-mbsnlen: New file.
38943         * lib/unistr/u8-mbsnlen.c: New file.
38944
38945         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38946         declarations.
38947
38948 2007-06-10  Bruno Haible  <bruno@clisp.org>
38949
38950         * lib/string_.h (mbsnlen): New declaration.
38951         * lib/mbsnlen.c: New file.
38952         * m4/mbsnlen.m4: New file.
38953         * modules/mbsnlen: New file.
38954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38955         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38956         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38957
38958 2007-06-10  Bruno Haible  <bruno@clisp.org>
38959
38960         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38961
38962 2007-06-10  Bruno Haible  <bruno@clisp.org>
38963
38964         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38965         * lib/mbuiter.h: Likewise.
38966
38967 2007-06-10  Bruno Haible  <bruno@clisp.org>
38968
38969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38970         declaration.
38971
38972 2007-06-10  Karl Berry  <karl@gnu.org>
38973
38974         * config/srclist.txt: remove gettext entries, Bruno prefers
38975         to update individually.
38976
38977 2007-06-10  Bruno Haible  <bruno@clisp.org>
38978
38979         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38980         'maxlen'. Ensure only length + width bytes are allocated, not
38981         length + 1 + width.
38982
38983 2007-06-09  Bruno Haible  <bruno@clisp.org>
38984
38985         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38986         (CHAR_T): Remove macro.
38987         (VASNPRINTF): Update.
38988
38989 2007-06-09  Bruno Haible  <bruno@clisp.org>
38990
38991         * MODULES.html.sh (Unicode string functions): Add the new modules.
38992
38993         * modules/uniconv/u32-conv-to-enc: New file.
38994         * lib/uniconv/u32-conv-to-enc.c: New file.
38995         * modules/uniconv/u32-conv-to-enc-tests: New file.
38996         * tests/uniconv/test-u32-conv-to-enc.c: New file.
38997
38998         * modules/uniconv/u16-conv-to-enc: New file.
38999         * lib/uniconv/u16-conv-to-enc.c: New file.
39000         * lib/uniconv/u-conv-to-enc.h: New file.
39001         * modules/uniconv/u16-conv-to-enc-tests: New file.
39002         * tests/uniconv/test-u16-conv-to-enc.c: New file.
39003
39004         * modules/uniconv/u8-conv-to-enc: New file.
39005         * lib/uniconv/u8-conv-to-enc.c: New file.
39006         * modules/uniconv/u8-conv-to-enc-tests: New file.
39007         * tests/uniconv/test-u8-conv-to-enc.c: New file.
39008
39009         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39010         u32_conv_to_encoding): New declarations.
39011
39012 2007-06-09  Bruno Haible  <bruno@clisp.org>
39013
39014         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
39015
39016 2007-06-09  Bruno Haible  <bruno@clisp.org>
39017
39018         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
39019         * modules/malloca: Renamed from modules/allocsa, updated.
39020         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
39021         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
39022         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
39023         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
39024         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
39025         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
39026         * modules/xmalloca: Renamed from modules/xallocsa, updated.
39027         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
39028         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
39029         * modules/c-strcasestr (Depends-on): Update.
39030         * lib/c-strcasestr.c: Update.
39031         * modules/c-strstr (Depends-on): Update.
39032         * lib/c-strstr.c: Update.
39033         * modules/canonicalize-lgpl (Depends-on): Update.
39034         * lib/canonicalize-lgpl.c: Update.
39035         * modules/clean-temp (Depends-on): Update.
39036         * lib/clean-temp.c: Update.
39037         * modules/csharpcomp (Depends-on): Update.
39038         * lib/csharpcomp.c: Update.
39039         * modules/csharpexec (Depends-on): Update.
39040         * lib/csharpexec.c: Update.
39041         * modules/javacomp (Depends-on): Update.
39042         * lib/javacomp.c: Update.
39043         * modules/javaexec (Depends-on): Update.
39044         * lib/javaexec.c: Update.
39045         * modules/mbscasestr (Depends-on): Update.
39046         * lib/mbscasestr.c: Update.
39047         * modules/mbsstr (Depends-on): Update.
39048         * lib/mbsstr.c: Update.
39049         * modules/setenv (Depends-on): Update.
39050         * lib/setenv.c: Update.
39051         * modules/strcasestr (Depends-on): Update.
39052         * lib/strcasestr.c: Update.
39053         * modules/striconveha (Depends-on): Update.
39054         * lib/striconveha.c: Update.
39055         * modules/relocatable-prog-wrapper (Files): Update.
39056         * lib/relocwrapper.c: Update.
39057         * build-aux/install-reloc: Update.
39058         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
39059
39060 2007-06-08  Bruno Haible  <bruno@clisp.org>
39061
39062         Port to uClibc.
39063         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
39064         * lib/fpurge.c (fpurge): Likewise.
39065         * lib/freading.c (freading): Likewise.
39066         * lib/fseeko.c (rpl_fseeko): Likewise.
39067         * lib/fseterr.c (fseterr): Likewise.
39068         * lib/fwriting.c (fwriting): Likewise.
39069         * tests/test-fflush.c (main): Avoid a failure on uClibc.
39070
39071 2007-06-08  Bruno Haible  <bruno@clisp.org>
39072
39073         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
39074         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
39075         * modules/gettext (Files): Add m4/intlmacosx.m4.
39076
39077 2007-06-07  Bruno Haible  <bruno@clisp.org>
39078
39079         * modules/localename-tests: New file.
39080         * tests/test-localename.c: New file.
39081
39082         New module 'localename'.
39083         * lib/localename.h: New file.
39084         * lib/localename.c: New file, from GNU gettext.
39085         * m4/localename.m4: New file.
39086         * modules/localename: New file.
39087
39088 2007-06-07  Bruno Haible  <bruno@clisp.org>
39089
39090         Work around the lack of <wchar.h> on some builds of uClibc.
39091         * doc/headers/wchar.texi: Update.
39092         * lib/wchar_.h: Include <wchar.h> only if it exists.
39093         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
39094         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
39095         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
39096         doesn't exist.
39097         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
39098         * modules/mbfile (Depends-on): Add wchar.
39099         * modules/mbiter (Depends-on): Likewise.
39100         * modules/mbuiter (Depends-on): Likewise.
39101         Reported by Simon Josefsson.
39102
39103 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
39104
39105         Work around problem reported by Steven M. Schweda in
39106         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
39107         Tru64 5.1B with the Compaq compiler environment installed declares
39108         an 'isblank' function but does not define it in the C library.
39109         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
39110         * lib/regex_internal.h (isblank): Likewise.
39111         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
39112         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39113
39114 2007-06-05  Bruno Haible  <bruno@clisp.org>
39115
39116         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
39117         ia64.
39118         * modules/printf-safe: New file.
39119         * modules/fprintf-posix (Depends-on): Add printf-safe.
39120         * modules/printf-posix (Depends-on): Likewise.
39121         * modules/snprintf-posix (Depends-on): Likewise.
39122         * modules/sprintf-posix (Depends-on): Likewise.
39123         * modules/vasnprintf-posix (Depends-on): Likewise.
39124         * modules/vasprintf-posix (Depends-on): Likewise.
39125         * modules/vfprintf-posix (Depends-on): Likewise.
39126         * modules/vprintf-posix (Depends-on): Likewise.
39127         * modules/vsnprintf-posix (Depends-on): Likewise.
39128         * modules/vsprintf-posix (Depends-on): Likewise.
39129         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
39130         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
39131         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
39132         "no" on i386, x86_64, ia64.
39133         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
39134         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39135         on i386, x86_64, ia64.
39136         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
39137         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39138         on i386, x86_64, ia64.
39139         * tests/test-vasnprintf-posix.c: Include float.h.
39140         (LDBL80_WORDS): New macro.
39141         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39142         on i386, x86_64, ia64.
39143         * tests/test-vasprintf-posix.c: Include float.h.
39144         (LDBL80_WORDS): New macro.
39145         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39146         on i386, x86_64, ia64.
39147         * tests/test-snprintf-posix.c: Include float.h.
39148         * tests/test-sprintf-posix.c: Likewise.
39149         * tests/test-vsnprintf-posix.c: Likewise.
39150         * tests/test-vsprintf-posix.c: Likewise.
39151
39152 2007-06-05  Bruno Haible  <bruno@clisp.org>
39153
39154         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39155         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39156         non-IEEE numbers on i386, x86_64, ia64.
39157         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39158         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39159         * tests/test-isnanl.h: Include float.h.
39160         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39161
39162 2007-06-05  Bruno Haible  <bruno@clisp.org>
39163
39164         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39165         also the %a / %A. Handle the %a / %A code before this extra handling.
39166
39167 2007-06-05  Bruno Haible  <bruno@clisp.org>
39168
39169         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39170         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39171
39172 2007-06-05  Bruno Haible  <bruno@clisp.org>
39173
39174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39175         typo in variable name.
39176
39177 2007-06-05  Eric Blake  <ebb9@byu.net>
39178
39179         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39180         Reported by Simon Josefsson.
39181
39182 2007-06-04  Bruno Haible  <bruno@clisp.org>
39183
39184         Avoid test failures on some PowerPC platforms.
39185         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39186         Define differently for PowerPC.
39187         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39188         Reported by Gary V. Vaughan <gary@gnu.org>.
39189
39190 2007-06-02  Bruno Haible  <bruno@clisp.org>
39191
39192         Fix test-stdint failure on FreeBSD/ia64.
39193         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39194         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39195         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39196         * doc/headers/stdint.texi: Update.
39197
39198 2007-06-01  Bruno Haible  <bruno@clisp.org>
39199
39200         * tests/test-binary-io.c (main): Pass a third argument to open().
39201         Reported by Gary V. Vaughan <gary@gnu.org>.
39202
39203 2007-06-01  Bruno Haible  <bruno@clisp.org>
39204
39205         * doc/functions/frexpl.texi: Update for mingw.
39206
39207 2007-06-01  Bruno Haible  <bruno@clisp.org>
39208
39209         * tests/test-lseek.c (main): Disable test of errno for invalid third
39210         argument.
39211         * doc/functions/lseek.texi: Update.
39212         Reported by Gary V. Vaughan <gary@gnu.org>.
39213
39214 2007-05-28  Bruno Haible  <bruno@clisp.org>
39215
39216         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39217
39218 2007-05-31  Eric Blake  <ebb9@byu.net>
39219
39220         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39221         cross compiling.
39222
39223 2007-05-30  Eric Blake  <ebb9@byu.net>
39224         and Bruno Haible  <bruno@clisp.org>
39225
39226         Work around mingw test failures exposed by m4-1.4.9b.
39227         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39228         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39229         moment.
39230
39231 2007-05-30  Bruno Haible  <bruno@clisp.org>
39232
39233         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39234         assuming that they are closed. Needed on HP-UX 11.
39235
39236 2007-05-29  Bruno Haible  <bruno@clisp.org>
39237
39238         Fix a problem with #include_next.
39239         * lib/dirent_.h: Split the double-inclusion guard.
39240         * lib/fcntl_.h: Likewise.
39241         * lib/float_.h: Likewise.
39242         * lib/iconv_.h: Likewise.
39243         * lib/inttypes_.h: Likewise.
39244         * lib/locale_.h: Likewise.
39245         * lib/math_.h: Likewise.
39246         * lib/netinet_in_.h: Likewise.
39247         * lib/search_.h: Likewise.
39248         * lib/signal_.h: Likewise.
39249         * lib/stdint_.h: Likewise.
39250         * lib/stdio_.h: Likewise.
39251         * lib/stdlib_.h: Likewise.
39252         * lib/string_.h: Likewise.
39253         * lib/sys_select_.h: Likewise.
39254         * lib/sys_socket_.h: Likewise.
39255         * lib/sys_stat_.h: Likewise.
39256         * lib/sys_time_.h: Likewise.
39257         * lib/sysexits_.h: Likewise.
39258         * lib/time_.h: Likewise.
39259         * lib/unistd_.h: Likewise.
39260         * lib/wchar_.h: Likewise.
39261         * lib/wctype_.h: Likewise.
39262
39263 2007-05-29  Bruno Haible  <bruno@clisp.org>
39264
39265         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39266         for the moment.
39267
39268 2007-05-29  Bruno Haible  <bruno@clisp.org>
39269
39270         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39271         invocation.
39272         Reported by Eric Blake.
39273
39274 2007-05-29  Bruno Haible  <bruno@clisp.org>
39275
39276         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39277         compiling case.
39278
39279 2007-05-29  Eric Blake  <ebb9@byu.net>
39280             Bruno Haible  <bruno@clisp.org>
39281
39282         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39283         cross compiles.
39284
39285 2007-05-28  Eric Blake  <ebb9@byu.net>
39286
39287         * modules/closein-tests (test_closein_LDADD): Support test on
39288         cygwin with libtool.
39289
39290 2007-05-28  Bruno Haible  <bruno@clisp.org>
39291
39292         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39293         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39294         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39295         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39296         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39297         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39298         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39299         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39300         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39301
39302 2007-05-28  Eric Blake  <ebb9@byu.net>
39303
39304         Unconditionally include <config.h> in unit tests.
39305         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39306         * tests/test-allocsa.c, tests/test-arcfour.c,
39307         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39308         tests/test-array_list.c, tests/test-array_oset.c,
39309         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39310         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39311         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39312         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39313         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39314         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39315         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39316         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39317         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39318         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39319         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39320         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39321         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39322         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39323         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39324         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39325         test-md5.c, test-memmem.c, test-printf-posix.c,
39326         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39327         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39328         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39329         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39330         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39331         test-vasnprintf-posix2.c, test-vasnprintf.c,
39332         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39333         test-vfprintf-posix.c, test-vprintf-posix.c,
39334         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39335         test-xvasprintf.c: Likewise.
39336
39337 2007-05-28  Bruno Haible  <bruno@clisp.org>
39338
39339         * gnulib-tool (func_import): Remember the --with-tests command-line
39340         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39341         Reported by Eric Blake.
39342
39343 2007-05-28  Bruno Haible  <bruno@clisp.org>
39344
39345         * modules/ftell-tests: New file.
39346         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39347         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39348
39349         * lib/ftell.c: New file.
39350         * modules/ftell: New file.
39351         * m4/ftell.m4: New file.
39352         * doc/functions/ftell.texi: Update.
39353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39354         REPLACE_FTELL.
39355         * lib/stdio_.h (rpl_ftell): New declaration.
39356         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39357         REPLACE_FTELL.
39358
39359 2007-05-28  Eric Blake  <ebb9@byu.net>
39360
39361         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39362
39363 2007-05-28  Bruno Haible  <bruno@clisp.org>
39364
39365         * modules/fseek-tests: New file.
39366         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39367         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39368
39369         * lib/fseek.c: New file.
39370         * modules/fseek: New file.
39371         * m4/fseek.m4: New file.
39372         * doc/functions/fseek.texi: Update.
39373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39374         REPLACE_FSEEK.
39375         * lib/stdio_.h (rpl_fseek): New declaration.
39376         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39377         REPLACE_FSEEK.
39378
39379 2007-05-28  Bruno Haible  <bruno@clisp.org>
39380
39381         * lib/stdio_.h (fflush): More comments.
39382
39383 2007-05-28  Bruno Haible  <bruno@clisp.org>
39384
39385         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39386         runtime test.
39387
39388 2007-05-28  Eric Blake  <ebb9@byu.net>
39389
39390         Improve lseek module.
39391         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39392         * lib/unistd_.h (lseek): Scale back link warning message.
39393         * tests/test-lseek.c: Beef up test.
39394         * tests/test-lseek.sh: Exercise more facets of lseek.
39395         Reported by Bruno Haible.
39396
39397 2007-05-28  Bruno Haible  <bruno@clisp.org>
39398
39399         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39400         to define.
39401
39402 2007-05-27  Bruno Haible  <bruno@clisp.org>
39403
39404         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39405
39406 2007-05-27  Bruno Haible  <bruno@clisp.org>
39407
39408         * modules/openmp: New file.
39409         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39410         Noah Misch.
39411
39412 2007-05-26  Bruno Haible  <bruno@clisp.org>
39413
39414         * modules/chdir-long (Depends-on): Add fchdir.
39415         * modules/chdir-safer (Depends-on): Likewise.
39416         * modules/fts (Depends-on): Likewise.
39417         * modules/fts-lgpl (Depends-on): Likewise.
39418         * modules/openat (Depends-on): Likewise.
39419         * modules/savewd (Depends-on): Likewise.
39420
39421 2007-05-24  Eric Blake  <ebb9@byu.net>
39422
39423         Fix lseek on mingw.
39424         * modules/lseek: New module.
39425         * m4/lseek.m4: New file.
39426         * lib/lseek.c: New file.
39427         * modules/lseek-tests: New file.
39428         * tests/test-lseek.c: New file.
39429         * tests/test-lseek.sh: New file.
39430         * MODULES.html.sh: Document lseek module.
39431         * modules/fflush (Depends-on): Add lseek, fseeko.
39432         * modules/fseeko (Depends-on): Likewise.
39433         * modules/ftello (Depends-on): Likewise.
39434         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39435         broken.
39436         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39437         broken.
39438         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39439         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39440         * lib/ftello.c (rpl_ftello): Likewise.
39441         * tests/test-fseeko.c (main): Test this.
39442         * tests/test-fseeko.sh: Likewise.
39443         * tests/test-ftello.c (main): Likewise.
39444         * tests/test-ftello.sh: Likewise.
39445         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39446         implies replacing fseek.
39447         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39448         HAVE_FTELLO.
39449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39450         * modules/unistd (Makefile.am): Likewise.
39451         * lib/unistd_.h (lseek): Declare a replacement.
39452         * doc/functions/lseek.texi (lseek): Document this fix.
39453         * doc/functions/fseek.texi (fseek): Likewise.
39454         * doc/functions/ftell.texi (ftell): Likewise.
39455
39456 2007-05-24  Bruno Haible  <bruno@clisp.org>
39457
39458         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39459         in the printed representation of a NaN.
39460         * tests/test-vasprintf-posix.c (test_function): Likewise.
39461         * tests/test-snprintf-posix.h (test_function): Likewise.
39462         * tests/test-sprintf-posix.h (test_function): Likewise.
39463         Reported by Eric Blake.
39464
39465 2007-05-23  Eric Blake  <ebb9@byu.net>
39466
39467         Fix fseeko/ftello on cygwin 1.5.24.
39468         * doc/functions/fseeko.texi (fseeko): Document the fix.
39469         * doc/functions/ftello.texi (ftello): Document the fix.
39470         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39471         * doc/functions/stdout.text (stdout): New file.
39472         * doc/functions/stderr.text (stderr): New file.
39473         * doc/gnulib.texi (Function Substitutes): Use new files.
39474         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39475         prior to 1.7.0.
39476         * tests/test-ftello.c (main): Likewise for ftello.
39477         * tests/test-fseeko.sh: New file.
39478         * tests/test-ftello.sh: New file.
39479         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39480         with seekable stdin.
39481         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39482         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39483         (gl_REPLACE_FSEEKO): New macro.
39484         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39485         * modules/fseeko (Files): Distribute fseeko.c.
39486         * modules/ftello (Files): Distribute ftello.c.
39487         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39488         mode.
39489         * lib/ftello.c (rpl_ftello): New file.
39490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39491         fseeko, ftello.
39492         (gl_STDIN_LARGE_OFFSET): New macro.
39493         * modules/stdio (Makefile.am): Perform the replacement.
39494         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39495
39496 2007-05-23  Bruno Haible  <bruno@clisp.org>
39497
39498         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39499         GNULIB_POSIXCHECK is defined.
39500
39501 2007-05-21  Bruno Haible  <bruno@clisp.org>
39502
39503         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39504         Check also the output for NaN arguments. When cross-compiling, guess
39505         no on IRIX.
39506         * lib/vasnprintf.c: Update comments.
39507         * tests/test-vasnprintf-posix.c (strisnan): New function.
39508         (test_function): Use it.
39509         * tests/test-vasprintf-posix.c (strisnan): New function.
39510         (test_function): Use it.
39511         * tests/test-snprintf-posix.h (strisnan): New function.
39512         (test_function): Use it.
39513         * tests/test-sprintf-posix.h (strisnan): New function.
39514         (test_function): Use it.
39515         Reported by Eric Blake.
39516
39517 2007-05-20  Bruno Haible  <bruno@clisp.org>
39518
39519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39520         numbers that fails on BeOS.
39521         * doc/functions/frexpl.texi: Update.
39522
39523 2007-05-20  Jim Meyering  <jim@meyering.net>
39524
39525         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39526         forced upon us by glibc-2.6.
39527
39528 2007-05-20  Bruno Haible  <bruno@clisp.org>
39529
39530         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39531         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39532         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39533         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39534         NEED_PRINTF_INFINITE.
39535         (is_infinitel): New function.
39536         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39538         gl_PREREQ_VASNPRINTF_INFINITE.
39539         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39541         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39542         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39543         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39544         gl_PREREQ_VASNPRINTF_INFINITE.
39545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39552         * doc/functions/fprintf.texi: Update.
39553         * doc/functions/printf.texi: Update.
39554         * doc/functions/snprintf.texi: Update.
39555         * doc/functions/sprintf.texi: Update.
39556         * doc/functions/vfprintf.texi: Update.
39557         * doc/functions/vprintf.texi: Update.
39558         * doc/functions/vsnprintf.texi: Update.
39559         * doc/functions/vsprintf.texi: Update.
39560
39561 2007-05-20  Bruno Haible  <bruno@clisp.org>
39562
39563         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39564         was not found in libc.
39565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39566
39567 2007-05-20  Bruno Haible  <bruno@clisp.org>
39568
39569         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39570         printed as "-nan" instead of "nan".
39571         * tests/test-vasprintf-posix.c (test_function): Likewise.
39572         * tests/test-snprintf-posix.h (test_function): Likewise.
39573         * tests/test-sprintf-posix.h (test_function): Likewise.
39574         Needed for HP-UX 11.
39575
39576 2007-05-20  Jim Meyering  <jim@meyering.net>
39577
39578         Fix buggy test for the fchownat-deref bug.
39579         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39580         symlink required for the run-test.  Without it, this test would
39581         always declare that fchownat doesn't work, and client code would
39582         unnecessarily use the replacement function with fixed libc.
39583         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39584         Reported by Greg Schafer.
39585
39586 2007-05-19  Bruno Haible  <bruno@clisp.org>
39587
39588         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39589         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39590         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39591         Needed for IRIX 6.5 and Solaris 2.5.1.
39592
39593 2007-05-19  Bruno Haible  <bruno@clisp.org>
39594
39595         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39596         (test_function): Skip tests involving -0.0 on platforms where
39597         -0.0 = 0.0.
39598         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39599         (test_function): Skip tests involving -0.0 on platforms where
39600         -0.0 = 0.0.
39601         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39602         (test_function): Skip tests involving -0.0 on platforms where
39603         -0.0 = 0.0.
39604         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39605         (test_function): Skip tests involving -0.0 on platforms where
39606         -0.0 = 0.0.
39607         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39608         tests.
39609         * tests/test-printf-posix.h (test_function): Likewise.
39610         * tests/test-printf-posix.output: Remove all -0.0 related results.
39611         Needed for IRIX 6.5.
39612
39613 2007-05-19  Bruno Haible  <bruno@clisp.org>
39614
39615         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39616         printed as "nan0x7fffffff" instead of "nan".
39617         * tests/test-vasprintf-posix.c (test_function): Likewise.
39618         * tests/test-snprintf-posix.h (test_function): Likewise.
39619         * tests/test-sprintf-posix.h (test_function): Likewise.
39620         * tests/test-fprintf-posix.h (NaN): Remove macro.
39621         (test_function): Remove all NaN related tests.
39622         * tests/test-printf-posix.h (NaN): Remove macro.
39623         (test_function): Remove all NaN related tests.
39624         * tests/test-printf-posix.output: Remove all NaN related results.
39625         Needed for IRIX 6.5.
39626
39627 2007-05-19  Bruno Haible  <bruno@clisp.org>
39628
39629         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39630         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39631
39632 2007-05-19  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/float_.h: New file.
39635         * m4/float_h.m4: New file.
39636         * modules/float: New file.
39637         * modules/isnanl (Dependencies): Add float.
39638         * modules/isnanl-nolibm (Dependencies): Likewise.
39639         * modules/mathl (Dependencies): Likewise.
39640         * modules/printf-frexpl (Dependencies): Likewise.
39641         * modules/signbit (Dependencies): Likewise.
39642         * modules/vasnprintf (Dependencies): Likewise.
39643         * doc/headers/float.texi: Update.
39644
39645 2007-05-19  Jim Meyering  <jim@meyering.net>
39646
39647         * lib/utimens.c (gl_futimens): Rename from futimens,
39648         now that glibc-2.6 declares futimens.
39649         * lib/utimens.h: Likewise.
39650
39651 2007-05-19  Bruno Haible  <bruno@clisp.org>
39652
39653         Avoid test failures on mingw.
39654         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39655         * tests/test-printf-posix.sh: Likewise.
39656         * tests/test-vfprintf-posix.sh: Likewise.
39657         * tests/test-vprintf-posix.sh: Likewise.
39658
39659 2007-05-19  Bruno Haible  <bruno@clisp.org>
39660
39661         Fix *printf result for NaN, Inf, -0.0 on mingw.
39662         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39663         * lib/vasnprintf.c: Include math.h and isnan.h.
39664         (is_infinite_or_zero): New function.
39665         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39666         values in the %f, %F, %e, %E, %g, %G directives.
39667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39668         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39669         gl_PRINTF_INFINITE and test its result. Invoke
39670         gl_PREREQ_VASNPRINTF_INFINITE.
39671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39678         * doc/functions/fprintf.texi: Update.
39679         * doc/functions/printf.texi: Update.
39680         * doc/functions/snprintf.texi: Update.
39681         * doc/functions/sprintf.texi: Update.
39682         * doc/functions/vfprintf.texi: Update.
39683         * doc/functions/vprintf.texi: Update.
39684         * doc/functions/vsnprintf.texi: Update.
39685         * doc/functions/vsprintf.texi: Update.
39686
39687 2007-05-19  Bruno Haible  <bruno@clisp.org>
39688
39689         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39690         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39691         Instead of multiplying with 10^k, set extra_zeroes to k.
39692         (scale10_round_long_double): Remove function.
39693
39694 2007-05-18  Bruno Haible  <bruno@clisp.org>
39695
39696         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39697         introduced on 2007-05-06.
39698
39699 2007-05-18  Bruno Haible  <bruno@clisp.org>
39700
39701         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39702         %g directives.
39703         * tests/test-vasprintf-posix.c (test_function): Likewise.
39704         * tests/test-snprintf-posix.h (test_function): Likewise.
39705         * tests/test-sprintf-posix.h (test_function): Likewise.
39706
39707 2007-05-18  Bruno Haible  <bruno@clisp.org>
39708
39709         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39710         (strmatch): New function.
39711         (test_function): Test the %f directive on numbers of various exponents.
39712         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39713         (strmatch): New function.
39714         (test_function): Test the %f directive on numbers of various exponents.
39715         * tests/test-snprintf-posix.h (strmatch): New function.
39716         (test_function): Test the %f directive on numbers of various exponents.
39717         * tests/test-sprintf-posix.h (strmatch): New function.
39718         (test_function): Test the %f directive on numbers of various exponents.
39719         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39720         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39721         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39722         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39723
39724 2007-05-18  Bruno Haible  <bruno@clisp.org>
39725
39726         Add support for 'long double' number output.
39727         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39728         * lib/vasnprintf.c: Include math.h and float+.h.
39729         (mp_limb_t): New type.
39730         (GMP_LIMB_BITS): New macro.
39731         (mp_twolimb_t): New type.
39732         (GMP_TWOLIMB_BITS): New macro.
39733         (mpn_t): New type.
39734         (multiply, divide, convert_to_decimal, decode_long_double,
39735         scale10_round_long_double, scale10_round_decimal_long_double,
39736         floorlog10l): New functions.
39737         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39738         for the %f, %F, %e, %E, %g, %G directives.
39739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39740         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39741         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39742         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39744         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39745         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39746         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39747         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39748         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39749         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39750         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39751         * modules/snprintf-posix (Depends-on): Likewise.
39752         * modules/sprintf-posix (Depends-on): Likewise.
39753         * modules/vasnprintf-posix (Depends-on): Likewise.
39754         * modules/vasprintf-posix (Depends-on): Likewise.
39755         * modules/vfprintf-posix (Depends-on): Likewise.
39756         * modules/vsnprintf-posix (Depends-on): Likewise.
39757         * modules/vsprintf-posix (Depends-on): Likewise.
39758         * modules/vasnprintf (Files): Add lib/float+.h.
39759         * doc/functions/fprintf.texi: Update.
39760         * doc/functions/printf.texi: Update.
39761         * doc/functions/snprintf.texi: Update.
39762         * doc/functions/sprintf.texi: Update.
39763         * doc/functions/vfprintf.texi: Update.
39764         * doc/functions/vprintf.texi: Update.
39765         * doc/functions/vsnprintf.texi: Update.
39766         * doc/functions/vsprintf.texi: Update.
39767
39768 2007-05-18  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39771
39772 2007-05-18  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39775         for printing 64-bit integers. Needed for mingw.
39776
39777 2007-05-18  Bruno Haible  <bruno@clisp.org>
39778
39779         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39780         gl_FUNC_FREXPL_WORKS.
39781         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39782
39783 2007-05-18  Bruno Haible  <bruno@clisp.org>
39784
39785         * modules/frexpl-nolibm-tests: New file.
39786
39787         * modules/frexpl-nolibm: New file.
39788         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39789
39790 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39791
39792         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39793         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39794         GCC 4.2, which otherwise issues a lot of warnings.
39795         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39796         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39797         Likewise.
39798         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39799         * modules/iconv_open (iconv.h): Likewise.
39800         * modules/locale (locale.h): Likewise.
39801         * modules/netinet_in (netinet/in.h): Likewise.
39802         * modules/sys_select (sys_select.h): Likewise.
39803         * modules/sys_socket (sys/socket.h): Likewise.
39804         * modules/sys_stat (sys/stat.h): Likewise.
39805         * modules/sysexits (sysexits.h): Likewise.
39806         * modules/unistd (unistd.h): Likewise.
39807
39808 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39809
39810         * modules/closein-tests (Makefile.am): Distribute
39811         `test-closein.sh'.
39812
39813 2007-05-17  Bruno Haible  <bruno@clisp.org>
39814
39815         * tests/test-printf-posix.output: Renamed from
39816         tests/test-fprintf-posix.out.
39817         * modules/fprintf-posix-tests: Update.
39818         * modules/printf-posix-tests: Update.
39819         * modules/vfprintf-posix-tests: Update.
39820         * modules/vprintf-posix-tests: Update.
39821         * tests/test-fprintf-posix.sh: Update.
39822         * tests/test-printf-posix.sh: Update.
39823         * tests/test-vfprintf-posix.sh: Update.
39824         * tests/test-vprintf-posix.sh: Update.
39825         Reported by Ralf Wildenhues.
39826
39827 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39828
39829         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39830         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39831         GCC 4.2, which otherwise issues a lot of warnings.
39832         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39833         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39834         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39835         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39836         it should no longer be needed.
39837         * lib/string_.h: Likewise.
39838         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39839         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39840         * modules/inttypes (inttypes.h): Likewise.
39841         * modules/math (math.h): Likewise.
39842         * modules/search (search.h): Likewise.
39843         * modules/signal (signal.h): Likewise.
39844         * modules/stdint (stdint.h): Likewise.
39845         * modules/stdio (stdio.h): Likewise.
39846         * modules/stdlib (stdlib.h): Likewise.
39847         * modules/string (string.h): Likewise.
39848         * modules/sys_time (sys/time.h): Likewise.
39849         * modules/time (time.h): Likewise.
39850         * modules/wchar (wchar.h): Likewise.
39851         * modules/wctype (wtype.h): Likewise.
39852
39853 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39854
39855         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39856
39857 2007-05-13  Bruno Haible  <bruno@clisp.org>
39858
39859         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39860         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39861         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39862         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39863         (gl_PREREQ_STRTOK_R): Don't require it here.
39864
39865 2007-05-13  Bruno Haible  <bruno@clisp.org>
39866
39867         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39868         when used in C++ mode.
39869
39870 2007-05-12  Bruno Haible  <bruno@clisp.org>
39871
39872         * lib/linebuffer.h: Tweak doc.
39873         * lib/linebuffer.c: Likewise.
39874
39875 2007-05-12  James Youngman  <jay@gnu.org>
39876
39877         * lib/linebuffer.c (readlinebuffer_delim): New function,
39878         like readlinebuffer, but use a caller-specified delimiter.
39879         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39880         as the delimiter.
39881         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39882
39883 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39884
39885         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39886         * modules/openat (Files): Remove openat-die.c.
39887         (Depends-on): Add openat-die.
39888         * modules/openat-die: New module.
39889
39890 2007-05-06  Bruno Haible  <bruno@clisp.org>
39891
39892         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39893         Update with info about Cygwin.
39894         * doc/functions/fprintf.texi: Update.
39895         * doc/functions/printf.texi: Update.
39896         * doc/functions/snprintf.texi: Update.
39897         * doc/functions/sprintf.texi: Update.
39898         * doc/functions/vfprintf.texi: Update.
39899         * doc/functions/vprintf.texi: Update.
39900         * doc/functions/vsnprintf.texi: Update.
39901         * doc/functions/vsprintf.texi: Update.
39902         Reported by Eric Blake.
39903
39904 2007-05-06  Bruno Haible  <bruno@clisp.org>
39905
39906         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39907         padding ourselves for the floating-point directives.
39908         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39911         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39912         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39914         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39920         * tests/test-snprintf-posix.h (test_function): Also check the width
39921         and some flags in the %f directive.
39922         * tests/test-sprintf-posix.h (test_function): Likewise.
39923         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39924         * tests/test-vasprintf-posix.c (test_function): Likewise.
39925         * doc/functions/fprintf.texi: Update.
39926         * doc/functions/printf.texi: Update.
39927         * doc/functions/snprintf.texi: Update.
39928         * doc/functions/sprintf.texi: Update.
39929         * doc/functions/vfprintf.texi: Update.
39930         * doc/functions/vprintf.texi: Update.
39931         * doc/functions/vsnprintf.texi: Update.
39932         * doc/functions/vsprintf.texi: Update.
39933
39934 2007-05-06  Bruno Haible  <bruno@clisp.org>
39935
39936         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39937         pass the ' flag character to sprintf or snprintf.
39938         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39940         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39941         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39942         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39943         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39944         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39945         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39947         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39948         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39949         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39950         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39951         flag.
39952         * tests/test-sprintf-posix.h (test_function): Likewise.
39953         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39954         * tests/test-vasprintf-posix.c (test_function): Likewise.
39955         * doc/functions/fprintf.texi: Update.
39956         * doc/functions/printf.texi: Update.
39957         * doc/functions/snprintf.texi: Update.
39958         * doc/functions/sprintf.texi: Update.
39959         * doc/functions/vfprintf.texi: Update.
39960         * doc/functions/vprintf.texi: Update.
39961         * doc/functions/vsnprintf.texi: Update.
39962         * doc/functions/vsprintf.texi: Update.
39963
39964 2007-05-01  Bruno Haible  <bruno@clisp.org>
39965
39966         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39967
39968 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39969
39970         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39971         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39972
39973 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39974
39975         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39976         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39978
39979 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39980
39981         * lib/argp-help.c (struct hol_entry): New member `ord'.
39982         (HOL_ENTRY_PTRCMP): Use ord for comparison
39983         (hol_sort): Initialize ord.
39984
39985 2007-05-01  Bruno Haible  <bruno@clisp.org>
39986
39987         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39988         Reported by Eric Blake.
39989         * doc/gnulib.texi (Function Substitutes): Update.
39990
39991 2007-05-01  Bruno Haible  <bruno@clisp.org>
39992
39993         * doc/functions.texi: Remove file, now redundant through
39994         doc/functions/*.texi.
39995
39996 2007-05-01  Bruno Haible  <bruno@clisp.org>
39997
39998         * modules/argp (Depends-on): Add sleep.
39999
40000 2007-05-01  Bruno Haible  <bruno@clisp.org>
40001
40002         * modules/sleep-tests: New file.
40003         * tests/test-sleep.c: New file.
40004
40005         * modules/sleep: New file.
40006         * lib/sleep.c: New file.
40007         * m4/sleep.m4: New file.
40008         * lib/unistd_.h (sleep): New declaration.
40009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
40010         HAVE_SLEEP.
40011         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
40012         * doc/functions/sleep.texi: Document the sleep module.
40013
40014 2007-05-01  Bruno Haible  <bruno@clisp.org>
40015
40016         * lib/sigprocmask.h: Remove file.
40017         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
40018         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
40019         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
40020         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
40021         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
40022         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
40023         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
40024         HAVE_SIGSET_T as a shell variable.
40025         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
40026         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
40027         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
40028         (Depends-on): Add signal. Remove verify.
40029         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
40030         (Include): Mention <signal.h> instead of sigprocmask.h.
40031         * NEWS: Mention the change.
40032         * lib/fatal-signal.c: Don't include sigprocmask.h.
40033
40034 2007-05-01  Bruno Haible  <bruno@clisp.org>
40035
40036         * modules/signal: New file.
40037         * lib/signal_.h: New file.
40038         * m4/signal_h.m4: New file.
40039
40040 2007-05-01  Bruno Haible  <bruno@clisp.org>
40041
40042         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
40043         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
40044         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
40045         HAVE_WCTYPE_CTMP_BUG into wctype.h.
40046
40047 2007-05-01  Bruno Haible  <bruno@clisp.org>
40048
40049         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
40050         configure time.
40051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
40052         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
40053         * modules/sys_stat (Makefile.am): Substitute their values into
40054         sys/stat.h.
40055
40056 2007-05-01  Bruno Haible  <bruno@clisp.org>
40057
40058         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
40059         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
40060         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
40061
40062 2007-05-01  Bruno Haible  <bruno@clisp.org>
40063
40064         * doc/header/assert.texi: Undo last change: don't mention the gnulib
40065         'assert' module here.
40066
40067 2007-05-01  Bruno Haible  <bruno@clisp.org>
40068
40069         * doc/functions/*.texi: New files.
40070         * doc/functions/google-ranking.txt: New file.
40071         * doc/gnulib.texi (Function Substitutes): New chapter.
40072         (ctime, inet_ntoa): Remove sections.
40073         * doc/ctime.texi: Remove file.
40074         * doc/inet_ntoa.texi: Remove file.
40075         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
40076         dependencies.
40077         (%.info): New rule, specifying a --reference-limit.
40078
40079 2007-05-01  Bruno Haible  <bruno@clisp.org>
40080
40081         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
40082
40083 2007-05-01  Bruno Haible  <bruno@clisp.org>
40084
40085         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
40086         the portability of 'mkdir' to mingw systems.
40087
40088 2007-05-01  Bruno Haible  <bruno@clisp.org>
40089
40090         * doc/headers/google-ranking.txt: New file.
40091
40092 2007-04-30  Eric Blake  <ebb9@byu.net>
40093
40094         Prefer fseeko to fseek.
40095         * modules/getpass (Depends-on): Add fseeko.
40096         * lib/getpass.c (getpass): Use fseeko, not fseek.
40097
40098 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
40099
40100         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
40101         assumes the sorting is stable, while most qsort implementations
40102         are not.  Use argument addresses to ensure they never compare as
40103         equal.
40104
40105         * tests/test-argp-2.sh (usage-indent test): Fix output
40106         (func_compare): Restore diff options
40107         * tests/test-argp.c: Restore #include "progname.h"
40108
40109 2007-04-29  Bruno Haible  <bruno@clisp.org>
40110
40111         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
40112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40113         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
40114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40115         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
40116         (configure.ac): Define CHECK_SNPRINTF_POSIX.
40117         (TESTS, check_PROGRAMS): Add test-snprintf.
40118         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
40119         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
40120         (TESTS, check_PROGRAMS): Add test-vsnprintf.
40121         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
40122         assertions that fail on HP-UX, OSF/1, or IRIX.
40123         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
40124
40125 2007-04-29  Bruno Haible  <bruno@clisp.org>
40126
40127         * MODULES.html.sh (posix_functions): Remove 'contents'.
40128
40129 2007-04-29  Karl Berry  <karl@gnu.org>
40130
40131         * config/srclist.txt (gendocs_template_min): new entry.
40132
40133 2007-04-29  Bruno Haible  <bruno@clisp.org>
40134
40135         Work around fpurge bug on BSD systems.
40136         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
40137         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
40138         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
40139         fpurge to rpl_fpurge if the system already has this function.
40140         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
40141         the case where the system already has this function. Correct invariants
40142         on BSD systems.
40143         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
40144         BSD systems.
40145
40146 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40147
40148         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
40149         proposed by Sven Verdoolaege.
40150
40151         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
40152         options.
40153         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
40154         (usage and help tests): Update
40155
40156 2007-04-29  Bruno Haible  <bruno@clisp.org>
40157
40158         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40159         Print more information in case of failure. Disable a test on BeOS.
40160
40161 2007-04-29  Bruno Haible  <bruno@clisp.org>
40162
40163         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40164         This helps debugging on systems on which no gdb is available.
40165
40166 2007-04-29  Bruno Haible  <bruno@clisp.org>
40167
40168         * lib/freading.h: Improve comments.
40169         * lib/fwriting.h: Likewise.
40170         * tests/test-freading.c (main): Don't check freading immediately after
40171         repositioning. Needed for glibc.
40172
40173 2007-04-29  Bruno Haible  <bruno@clisp.org>
40174
40175         * lib/freading.c (freading): Trivial simplification.
40176
40177 2007-04-28  Bruno Haible  <bruno@clisp.org>
40178
40179         * tests/test-fwriting.c (main): Also test the interaction between
40180         fflush and fwriting.
40181         * modules/fwriting-tests (Depends-on): Add fflush.
40182
40183         * tests/test-freading.c (main): Also test the interaction between
40184         fflush and freading.
40185         * modules/freading-tests (Depends-on): Add fflush.
40186
40187 2007-04-28  Bruno Haible  <bruno@clisp.org>
40188
40189         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40190         fseeko and ftello.
40191         Suggested by Eric Blake.
40192
40193 2007-04-28  Jim Meyering  <jim@meyering.net>
40194
40195         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40196         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40197         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40198
40199 2007-04-27  Eric Blake  <ebb9@byu.net>
40200
40201         * doc/headers/assert.texi (assert.h): Document assert module use.
40202
40203 2007-04-27  Bruno Haible  <bruno@clisp.org>
40204
40205         * doc/headers/*.texi: New files.
40206         * doc/gnulib.texi (Header File Substitutes): New chapter.
40207         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40208         dependencies.
40209         (standards.info ,standards.html, standards.dvi): Update dependencies.
40210         (mostlyclean, clean): New targets.
40211
40212 2007-04-27  Bruno Haible  <bruno@clisp.org>
40213
40214         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40215         * modules/sysexits (Files, Makefile.am): Update.
40216
40217         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40218         * modules/sys_socket (Files, Makefile.am): Update.
40219
40220         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40221         * modules/sys_stat (Files, Makefile.am): Update.
40222
40223 2007-04-27  Eric Blake  <ebb9@byu.net>
40224
40225         * lib/freading.h: Improve comments.
40226         * lib/fwriting.h: Likewise.
40227         * lib/fflush.c: Likewise.
40228
40229         Fix closein for mingw.
40230         * modules/closein-tests: Add tests for closein.
40231         * tests/test-closein.c: New file.
40232         * tests/test-closein.sh: Likewise.
40233         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40234         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40235
40236 2007-04-27  Bruno Haible  <bruno@clisp.org>
40237
40238         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40239         version is < 6.
40240         * lib/math_.h [__DECC]: Likewise.
40241         * lib/stdio_.h [__DECC]: Likewise.
40242         * lib/stdlib_.h [__DECC]: Likewise.
40243         * lib/string_.h [__DECC]: Likewise.
40244         * lib/time_.h [__DECC]: Likewise.
40245         * lib/wchar_.h [__DECC]: Likewise.
40246         * lib/wctype_.h [__DECC]: Likewise.
40247
40248 2007-04-27  Bruno Haible  <bruno@clisp.org>
40249
40250         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40251
40252 2007-04-27  Bruno Haible  <bruno@clisp.org>
40253
40254         * lib/fflush.c: Add comments.
40255         * modules/fpurge-tests (Depends-on): Add fflush.
40256         * modules/freadable-tests (Depends-on): Likewise.
40257         * modules/fwritable-tests (Depends-on): Likewise.
40258
40259 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40260
40261         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40262         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40263         Report by Bruno Haible <bruno@clisp.org>.
40264
40265 2007-04-26  Eric Blake  <ebb9@byu.net>
40266
40267         Fix fflush on mingw.
40268         * modules/fflush (Depends-on): Add freading.
40269         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40270         but unread data.
40271
40272 2007-04-26  Eric Blake  <ebb9@byu.net>
40273         and Bruno Haible  <bruno@clisp.org>
40274
40275         Implement freading and fwriting.
40276         * lib/freading.c: New file.
40277         * lib/freading.h: Likewise.
40278         * m4/freading.m4: Likewise.
40279         * modules/freading: Likewise.
40280         * modules/freading-tests: Likewise.
40281         * tests/test-freading.c: Likewise.
40282         * lib/fwriting.c: New file.
40283         * lib/fwriting.h: Likewise.
40284         * m4/fwriting.m4: Likewise.
40285         * modules/fwriting: Likewise.
40286         * modules/fwriting-tests: Likewise.
40287         * tests/test-fwriting.c: Likewise.
40288         * MODULES.html.sh (File stream based Input/Output): Mention them.
40289
40290 2007-04-26  Bruno Haible  <bruno@clisp.org>
40291
40292         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40293         'long' when we assume it.
40294         Suggested by Eric Blake.
40295
40296 2007-04-26  Bruno Haible  <bruno@clisp.org>
40297
40298         Ensure fseeko, ftello are declared on glibc systems.
40299         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40300         * modules/fseeko (configure.ac-early): Likewise.
40301         * modules/ftello (configure.ac-early): Likewise.
40302         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40303         AC_FUNC_FSEEKO for this.
40304         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40305         (gl_CHECK_FSEEKO): Remove macro.
40306
40307 2007-04-26  Bruno Haible  <bruno@clisp.org>
40308
40309         * tests/test-fflush.c (main): Also check the ftell result after
40310         fflush and fseek/fseeko.
40311         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40312         file descriptor position cache in the stream.
40313         * lib/fseeko.c (rpl_fseeko): Likewise.
40314
40315 2007-04-26  Bruno Haible  <bruno@clisp.org>
40316
40317         * modules/fflush-tests (Depends-on): Add fseeko.
40318
40319 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40320             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40321
40322         * lib/argz_.h: ensure error_t definition is obtained in same
40323         mechanism system argz.h would have.
40324         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40325         argz facilities are known bad.  Err on the side of caution if
40326         cross-compiling.
40327
40328 2007-04-25  Eric Blake  <ebb9@byu.net>
40329
40330         * lib/fpurge.c (includes): Use stdlib.h for free.
40331         * tests/test-fflush.c (main): Also test fflush-fseeko.
40332
40333 2007-04-25  Bruno Haible  <bruno@clisp.org>
40334
40335         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40336         * lib/fseeko.c: New file.
40337         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40338         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40339         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40340         gl_FUNC_FSEEKO.
40341         (gl_FUNC_FSEEKO): Invoke it.
40342         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40343         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40344         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40345
40346 2007-04-25  Bruno Haible  <bruno@clisp.org>
40347
40348         * modules/fflush (Depends-on): Add ftello.
40349
40350 2007-04-25  Bruno Haible  <bruno@clisp.org>
40351
40352         * modules/ftello-tests: New file.
40353         * tests/test-ftello.c: New file.
40354
40355         * modules/ftello: New file.
40356         * m4/ftello.m4: New file.
40357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40358         HAVE_FTELLO.
40359         * lib/stdio_.h (ftello): New declaration.
40360         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40361         HAVE_FTELLO.
40362
40363 2007-04-25  Bruno Haible  <bruno@clisp.org>
40364
40365         * modules/fseeko-tests: New file.
40366         * tests/test-fseeko.c: New file.
40367
40368         * modules/fseeko: New file.
40369         * m4/fseeko.m4: New file.
40370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40371         HAVE_FSEEKO.
40372         * lib/stdio_.h (fseeko): New declaration.
40373         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40374         HAVE_FSEEKO.
40375
40376 2007-04-25  Bruno Haible  <bruno@clisp.org>
40377
40378         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40379
40380 2007-04-25  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40383         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40384         * tests/test-unistd.c: Likewise.
40385         * tests/test-fcntl.c: Likewise.
40386
40387 2007-04-23  Eric Blake  <ebb9@byu.net>
40388
40389         * lib/fflush.c: Fix missing include.
40390         Reported by Bruno Haible.
40391
40392 2007-04-23  Bruno Haible  <bruno@clisp.org>
40393
40394         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40395         Reported by Eric Blake.
40396
40397 2007-04-23  Bruno Haible  <bruno@clisp.org>
40398
40399         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40400
40401 2007-04-23  Bruno Haible  <bruno@clisp.org>
40402
40403         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40404
40405 2007-04-23  Bruno Haible  <bruno@clisp.org>
40406
40407         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40408         Needed on HP-UX 11.
40409
40410 2007-04-16  Eric Blake  <ebb9@byu.net>
40411
40412         Make fflush rely on fpurge.
40413         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40414         open coding all variants.
40415         * modules/fflush (Depends-on): Add fpurge and unistd.
40416         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40417         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40418
40419         Fix --with-tests compilation on cygwin.
40420         * modules/argmatch-tests (Makefile.am): List gnulib library first
40421         in LDADD.
40422         * modules/argp-tests (Makefile.am): Likewise.
40423         * modules/array-list-tests (Makefile.am): Likewise.
40424         * modules/array-oset-tests (Makefile.am): Likewise.
40425         * modules/avltree-list-tests (Makefile.am): Likewise.
40426         * modules/avltree-oset-tests (Makefile.am): Likewise.
40427         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40428         * modules/carray-list-tests (Makefile.am): Likewise.
40429         * modules/dirname-tests (Makefile.am): Likewise.
40430         * modules/frexp-tests (Makefile.am): Likewise.
40431         * modules/isnanl-tests (Makefile.am): Likewise.
40432         * modules/linked-list-tests (Makefile.am): Likewise.
40433         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40434         * modules/lock-tests (Makefile.am): Likewise.
40435         * modules/rbtree-list-tests (Makefile.am): Likewise.
40436         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40437         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40438         * modules/tls-tests (Makefile.am): Likewise.
40439         * modules/tsearch-tests (Makefile.am): Likewise.
40440         * modules/xvasprintf-tests (Makefile.am): Likewise.
40441
40442         Fix fpurge for cygwin.
40443         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40444         value.
40445         * modules/fpurge-tests (Depends-on): Clean up trash.
40446
40447 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40448
40449         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40450
40451         * m4/autobuild.m4: Re-indent.
40452
40453 2007-04-13  Bruno Haible  <bruno@clisp.org>
40454
40455         * modules/fpurge-tests: New file.
40456         * tests/test-fpurge.c: New file.
40457
40458         * modules/fpurge: New file.
40459         * lib/fpurge.h: New file.
40460         * lib/fpurge.c: New file.
40461         * m4/fpurge.m4: New file.
40462
40463 2007-04-13  Bruno Haible  <bruno@clisp.org>
40464
40465         * modules/fbufmode-tests: New file.
40466         * tests/test-fbufmode.c: New file.
40467
40468         * modules/fbufmode: New file.
40469         * lib/fbufmode.h: New file.
40470         * lib/fbufmode.c: New file.
40471         * m4/fbufmode.m4: New file.
40472
40473 2007-04-13  Bruno Haible  <bruno@clisp.org>
40474
40475         * modules/fwritable-tests: New file.
40476         * tests/test-fwritable.c: New file.
40477
40478         * modules/fwritable: New file.
40479         * lib/fwritable.h: New file.
40480         * lib/fwritable.c: New file.
40481         * m4/fwritable.m4: New file.
40482
40483 2007-04-13  Bruno Haible  <bruno@clisp.org>
40484
40485         * modules/freadable-tests: New file.
40486         * tests/test-freadable.c: New file.
40487
40488         * modules/freadable: New file.
40489         * lib/freadable.h: New file.
40490         * lib/freadable.c: New file.
40491         * m4/freadable.m4: New file.
40492
40493 2007-04-13  Bruno Haible  <bruno@clisp.org>
40494
40495         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40496         MOSTLYCLEANFILES.
40497
40498 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40499
40500         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40501         gzip bootstrap.conf to avoid dragging in i18n machinery.
40502         (gnulib_tool_option): Use it.
40503
40504 2007-04-13  Bruno Haible  <bruno@clisp.org>
40505
40506         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40507         %F directives.
40508         * tests/test-vasprintf-posix.c (test_function): Likewise.
40509         * tests/test-snprintf-posix.h (test_function): Likewise.
40510         * tests/test-sprintf-posix.h (test_function): Likewise.
40511         * tests/test-fprintf-posix.h (test_function): Likewise.
40512         * tests/test-printf-posix.h (test_function): Likewise.
40513         * tests/test-fprintf-posix.out: Likewise.
40514
40515 2007-04-13  Bruno Haible  <bruno@clisp.org>
40516
40517         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40518         * modules/tls-tests (configure.ac): Likewise.
40519         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40520
40521 2007-04-13  Bruno Haible  <bruno@clisp.org>
40522
40523         * lib/tls.c (glthread_tls_get): Fix return type.
40524         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40525
40526 2007-04-12  Eric Blake  <ebb9@byu.net>
40527
40528         * modules/gettime (Depends-on): Remove gettime.
40529         Reported by Dmitry V. Levin.
40530
40531 2007-04-12  Bruno Haible  <bruno@clisp.org>
40532
40533         * modules/fflush (Include): Mention <stdio.h>.
40534         * modules/strtoimax (Include): Mention <inttypes.h>.
40535         * modules/strtoumax (Include): Likewise.
40536
40537 2007-04-12  Eric Blake  <ebb9@byu.net>
40538
40539         * .cvsignore: New file.
40540         * .gitignore: Likewise.
40541
40542 2007-04-12  Bruno Haible  <bruno@clisp.org>
40543
40544         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40545         not before, since $(LDADD) often contains libgnu.a.
40546         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40547         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40548         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40549         Needed on Cygwin.
40550
40551 2007-04-12  Eric Blake  <ebb9@byu.net>
40552
40553         Work around glibc's failure to flush stdin on fclose.
40554         * lib/closein.c (close_stdin): Flush stdin before closing.
40555
40556         Work around glibc's failure to reset seekable stdin on exit.
40557         * modules/closein: New module.
40558         * lib/closein.c: New file.
40559         * lib/closein.h: Likewise.
40560         * m4/closein.m4: Likewise.
40561         * MODULES.html.sh (File stream based Input/Output): Document it.
40562
40563 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40564
40565         * gnulib-tool: Rename generated 'autobuild' script to
40566         'do-autobuild' in --create-megatestdir output.
40567
40568         * doc/gnulib.texi (Build robot for gnulib): Fix.
40569
40570 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40571
40572         * modules/sysexits (Depends-on): Add absolute-header.
40573
40574 2007-04-12  Eric Blake  <ebb9@byu.net>
40575
40576         No need to preserve errno on success.
40577         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40578         Reported by Bruno Haible.
40579
40580 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40581
40582         * MODULES.html.sh (Support for maintaining and releasing
40583         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40584
40585 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40586
40587         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40588
40589 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40590
40591         * modules/autobuild: New module.
40592
40593         * m4/autobuild.m4: New file.
40594
40595 2007-04-11  Bruno Haible  <bruno@clisp.org>
40596
40597         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40598         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40601         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40602         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40603         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40605         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40606         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40608         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40609         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40610         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40611         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40612         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40614         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40615         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40616         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40617         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40618         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40620         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40621         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40622         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40623         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40624         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40625         Reported by Eric Blake.
40626
40627 2007-04-11  Bruno Haible  <bruno@clisp.org>
40628
40629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40630
40631 2007-04-10  Bruno Haible  <bruno@clisp.org>
40632
40633         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40634         for NaN and Infinity. Needed on FreeBSD 6.1.
40635         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40636         regarding results for "%010a" of Infinity and NaN.
40637         * tests/test-vasprintf-posix.c (test_function): Likewise.
40638         * tests/test-snprintf-posix.h (test_function): Likewise.
40639         * tests/test-sprintf-posix.h (test_function): Likewise.
40640         * tests/test-fprintf-posix.h (test_function): Likewise.
40641         * tests/test-printf-posix.h (test_function): Likewise.
40642         * tests/test-fprintf-posix.out: Likewise.
40643
40644 2007-04-10  Bruno Haible  <bruno@clisp.org>
40645
40646         * modules/locale-tests: New file.
40647         * tests/test-locale.c: New file.
40648
40649         * modules/locale: New file.
40650         * lib/locale_.h: New file.
40651         * m4/locale_h.m4: New file.
40652
40653 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40654             Bruno Haible  <bruno@clisp.org>
40655
40656         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40657         be determined, test for availability of the copysignf, copysign,
40658         copysignl functions.
40659         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40660         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40661         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40662
40663 2007-04-09  Eric Blake  <ebb9@byu.net>
40664
40665         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40666         * modules/stdio (Makefile.am): Support fflush.
40667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40668         * modules/fflush: New file.
40669         * lib/fflush.c: Likewise.
40670         * m4/fflush.m4: Likewise.
40671         * modules/fflush-tests: New test.
40672         * tests/test-fflush.c: Likewise.
40673         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40674
40675 2007-04-06  Bruno Haible  <bruno@clisp.org>
40676
40677         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40678         (VASNPRINTF): Use signbit for faster determination whether to print a
40679         minus sign.
40680         * modules/vasnprintf (Files): Remove lib/float+.h.
40681         * modules/fprintf-posix (Depends-on): Add signbit.
40682         * modules/snprintf-posix (Depends-on): Likewise.
40683         * modules/sprintf-posix (Depends-on): Likewise.
40684         * modules/vasnprintf-posix (Depends-on): Likewise.
40685         * modules/vasprintf-posix (Depends-on): Likewise.
40686         * modules/vfprintf-posix (Depends-on): Likewise.
40687         * modules/vsnprintf-posix (Depends-on): Likewise.
40688         * modules/vsprintf-posix (Depends-on): Likewise.
40689
40690 2007-04-06  Bruno Haible  <bruno@clisp.org>
40691
40692         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40693         * tests/test-frexpl.c (main): Likewise.
40694         * tests/test-ldexpl.c (main): Likewise.
40695         * modules/frexp-tests (Depends-on): Add signbit.
40696         * modules/frexpl-tests (Depdends-on): Likewise.
40697         * modules/ldexpl-tests (Depdends-on): Likewise.
40698
40699 2007-04-06  Bruno Haible  <bruno@clisp.org>
40700
40701         * modules/signbit-tests: New file.
40702         * tests/test-signbit.c: New file.
40703
40704         * modules/signbit: New file.
40705         * lib/signbitf.c: New file.
40706         * lib/signbitd.c: New file.
40707         * lib/signbitl.c: New file.
40708         * m4/signbit.m4: New file.
40709         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40710         (signbit): New macro.
40711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40712         REPLACE_SIGNBIT.
40713         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40714         REPLACE_FREXPL into math.h.
40715
40716 2007-04-06  Bruno Haible  <bruno@clisp.org>
40717
40718         * modules/isnanf-nolibm-tests: New file.
40719         * tests/test-isnanf.c: New file.
40720
40721         * modules/isnanf-nolibm: New file.
40722         * lib/isnanf.h: New file.
40723         * lib/isnanf.c: New file.
40724         * lib/isnan.c: Consider the USE_FLOAT macro.
40725         * m4/isnanf.m4: New file.
40726
40727 2007-04-06  Bruno Haible  <bruno@clisp.org>
40728
40729         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40730         (Link): New section.
40731
40732         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40733
40734 2007-04-06  Bruno Haible  <bruno@clisp.org>
40735
40736         Assume the 'long double' type.
40737         * m4/longdouble.m4: Remove file.
40738         * config/srclist.txt: Don't mention longdouble.m4.
40739         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40740         * lib/float+.h: Likewise.
40741         * lib/frexp.c: Likewise.
40742         * lib/printf-args.h: Likewise.
40743         * lib/printf-args.c: Likewise.
40744         * lib/printf-frexp.c: Likewise.
40745         * lib/printf-parse.c: Likewise.
40746         * lib/vasnprintf.c: Likewise.
40747         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40748         * m4/intl.m4: Likewise.
40749         * m4/isnanl.m4: Likewise.
40750         * m4/printf.m4: Likewise.
40751         * m4/printf-frexpl.m4: Likewise.
40752         * m4/vasnprintf.m4: Likewise.
40753         * modules/allocsa (Files): Remove m4/longdouble.m4.
40754         * modules/gettext (Files): Likewise.
40755         * modules/relocatable-prog-wrapper (Files): Likewise.
40756         * modules/vasnprintf (Files): Likewise.
40757         * modules/isnanl (Files): Likewise.
40758         (Include): Simplify.
40759         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40760         (Include): Simplify.
40761         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40762         (Include): Simplify.
40763         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40764         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40765         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40766         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40767         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40768         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40769         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40770         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40771         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40772         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40773         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40774         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40775         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40776         * tests/test-isnanl.c: Likewise.
40777         * tests/test-snprintf-posix.h: Likewise.
40778         * tests/test-sprintf-posix.h: Likewise.
40779         * tests/test-vasnprintf-posix.c: Likewise.
40780         * tests/test-vasnprintf-posix2.c: Likewise.
40781         * tests/test-vasprintf-posix.c: Likewise.
40782
40783 2007-04-06  Bruno Haible  <bruno@clisp.org>
40784
40785         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40786         * lib/math_.h [__DECC]: Include the overridden include file through
40787         #include_next, outside the double-inclusion guard.
40788         * lib/stdio_.h [__DECC]: Likewise.
40789         * lib/stdlib_.h [__DECC]: Likewise.
40790         * lib/string_.h [__DECC]: Likewise.
40791         * lib/time_.h [__DECC]: Likewise.
40792         * lib/wchar_.h [__DECC]: Likewise.
40793         * lib/wctype_.h [__DECC]: Likewise.
40794         * lib/inttypes_.h [__DECC]: Likewise.
40795         Reported by Albert Chin <china@thewrittenword.com> in
40796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40797
40798 2007-04-04  Eric Blake  <ebb9@byu.net>
40799
40800         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40801         1.5.x.
40802
40803 2007-04-04  Bruno Haible  <bruno@clisp.org>
40804
40805         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40806         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40807
40808 2007-04-04  Bruno Haible  <bruno@clisp.org>
40809
40810         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40811         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): Remove these tests.
40816         * tests/test-printf-posix.h (test_function): Likewise.
40817         * tests/test-fprintf-posix.out: Update.
40818         Needed for FreeBSD 6.1.
40819
40820 2007-04-04  Bruno Haible  <bruno@clisp.org>
40821
40822         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40823         directly used by the gnulib modules nor by gnulib-tool.
40824
40825 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40826
40827         * DEPENDENCIES: Give overall description of version dependency
40828         desirability.  Use more-typical names for apps.
40829         Add shell, coreutils, diffutils, grep, tar, gzip.
40830
40831 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40832
40833         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40834
40835 2007-04-04  Karl Berry  <karl@gnu.org>
40836
40837         * MODULES.html.sh (func_module): missing '.
40838
40839 2007-04-03  Bruno Haible  <bruno@clisp.org>
40840
40841         * modules/argmatch-tests (Makefile.am): New variable
40842         test_argmatch_LDADD.
40843         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40844         * modules/array-list-tests (Makefile.am): New variable
40845         test_array_list_LDADD.
40846         * modules/array-oset-tests (Makefile.am): New variable
40847         test_array_oset_LDADD.
40848         * modules/avltree-list-tests (Makefile.am): New variable
40849         test_avltree_list_LDADD.
40850         * modules/avltree-oset-tests (Makefile.am): New variable
40851         test_avltree_oset_LDADD.
40852         * modules/avltreehash-list-tests (Makefile.am): New variable
40853         test_avltreehash_list_LDADD.
40854         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40855         test_canonicalize_lgpl_LDADD.
40856         * modules/carray-list-tests (Makefile.am): New variable
40857         test_carray_list_LDADD.
40858         * modules/dirname-tests (Makefile.am): New variable
40859         test_dirname_LDADD.
40860         * modules/linked-list-tests (Makefile.am): New variable
40861         test_linked_list_LDADD.
40862         * modules/linkedhash-list-tests (Makefile.am): New variable
40863         test_linkedhash_list_LDADD.
40864         * modules/rbtree-list-tests (Makefile.am): New variable
40865         test_rbtree_list_LDADD.
40866         * modules/rbtree-oset-tests (Makefile.am): New variable
40867         test_rbtree_oset_LDADD.
40868         * modules/rbtreehash-list-tests (Makefile.am): New variable
40869         test_rbtreehash_list_LDADD.
40870         * modules/xvasprintf-tests (Makefile.am): New variable
40871         test_xvasprintf_LDADD.
40872         Reported by Eric Blake.
40873
40874 2007-04-03  Eric Blake  <ebb9@byu.net>
40875
40876         * DEPENDENCIES: Weaken m4 requirements.
40877
40878 2007-04-03  Bruno Haible  <bruno@clisp.org>
40879
40880         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40881         * modules/isnanl-tests (configure.ac): Likewise.
40882
40883 2007-04-03  Ben Pfaff  <blp@gnu.org>
40884
40885         * modules/iconv_open: Add $(srcdir)/ to source directory
40886         references in Makefile fragments that call gperf, to fix VPATH
40887         builds.
40888
40889 2007-04-03  Bruno Haible  <bruno@clisp.org>
40890
40891         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40892         * lib/ldexpl.c: Undo last change.
40893
40894 2007-04-03  Bruno Haible  <bruno@clisp.org>
40895
40896         * modules/printf-frexpl (Depends-on): Undo last change.
40897         (Files): Add m4/ldexpl.m4.
40898
40899 2007-04-03  Bruno Haible  <bruno@clisp.org>
40900
40901         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40902         * modules/isnanl (Link): New section.
40903
40904         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40905         * modules/frexp (Link): New section.
40906
40907         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40908         * modules/frexpl (Link): New section.
40909
40910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40911         * modules/ldexpl (Link): New section.
40912
40913 2007-04-03  Bruno Haible  <bruno@clisp.org>
40914
40915         * modules/TEMPLATE-EXTENDED: New file.
40916         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40917
40918 2007-04-03  Bruno Haible  <bruno@clisp.org>
40919
40920         * DEPENDENCIES: New file.
40921         Suggested by Simon Josefsson.
40922
40923 2007-04-03  Bruno Haible  <bruno@clisp.org>
40924
40925         * doc/gnulib.texi: Escape @.
40926
40927 2007-04-03  James Youngman  <jay@gnu.org>
40928         and Paul Eggert  <eggert@cs.ucla.edu>
40929
40930         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40931         birthtime on all systems that have birthtime, not just those which
40932         use st_birthtimensec rather than st_birthtim.  Putting zero in
40933         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40934         that the birth time is not available for files on an NFS mount.
40935
40936 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40937
40938         * modules/memxor: Move back from crypto/, suggested by Bruno.
40939         * modules/crypto/hmac-sha1: Fix memxor dependency.
40940
40941         * modules/crypto/gc: Moved from ../.
40942
40943 2007-04-02  Eric Blake  <ebb9@byu.net>
40944
40945         * lib/ldexpl.c (includes): Avoid libm.
40946
40947         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40948
40949 2007-04-02  Bruno Haible  <bruno@clisp.org>
40950
40951         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40952         on IRIX.
40953
40954 2007-04-02  Bruno Haible  <bruno@clisp.org>
40955
40956         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40957         x86 or x86_64 platforms running MacOS X.
40958         Reported by Ryan Schmidt <@ryandesign.com>.
40959
40960 2007-04-02  Bruno Haible  <bruno@clisp.org>
40961
40962         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40963         i386.
40964
40965 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40966
40967         * modules/crypto/arcfour: Moved from ../.
40968         * modules/crypto/arcfour-tests: Moved from ../.
40969         * modules/crypto/arctwo: Moved from ../.
40970         * modules/crypto/arctwo-tests: Moved from ../.
40971         * modules/crypto/des: Moved from ../.
40972         * modules/crypto/des-tests: Moved from ../.
40973         * modules/crypto/gc-arcfour: Moved from ../.
40974         * modules/crypto/gc-arcfour-tests: Moved from ../.
40975         * modules/crypto/gc-arctwo: Moved from ../.
40976         * modules/crypto/gc-arctwo-tests: Moved from ../.
40977         * modules/crypto/gc-des: Moved from ../.
40978         * modules/crypto/gc-des-tests: Moved from ../.
40979         * modules/crypto/gc-hmac-md5: Moved from ../.
40980         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40981         * modules/crypto/gc-hmac-sha1: Moved from ../.
40982         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40983         * modules/crypto/gc-md2: Moved from ../.
40984         * modules/crypto/gc-md2-tests: Moved from ../.
40985         * modules/crypto/gc-md4: Moved from ../.
40986         * modules/crypto/gc-md4-tests: Moved from ../.
40987         * modules/crypto/gc-md5: Moved from ../.
40988         * modules/crypto/gc-md5-tests: Moved from ../.
40989         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40990         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40991         * modules/crypto/gc-random: Moved from ../.
40992         * modules/crypto/gc-rijndael: Moved from ../.
40993         * modules/crypto/gc-rijndael-tests: Moved from ../.
40994         * modules/crypto/gc-sha1: Moved from ../.
40995         * modules/crypto/gc-sha1-tests: Moved from ../.
40996         * modules/crypto/gc-tests: Moved from ../.
40997         * modules/crypto/hmac-md5: Moved from ../.
40998         * modules/crypto/hmac-md5-tests: Moved from ../.
40999         * modules/crypto/hmac-sha1: Moved from ../.
41000         * modules/crypto/hmac-sha1-tests: Moved from ../.
41001         * modules/crypto/md2: Moved from ../.
41002         * modules/crypto/md2-tests: Moved from ../.
41003         * modules/crypto/md4: Moved from ../.
41004         * modules/crypto/md4-tests: Moved from ../.
41005         * modules/crypto/md5: Moved from ../.
41006         * modules/crypto/md5-tests: Moved from ../.
41007         * modules/crypto/memxor: Moved from ../.
41008         * modules/crypto/rijndael: Moved from ../.
41009         * modules/crypto/rijndael-tests: Moved from ../.
41010         * modules/crypto/sha1: Moved from ../.
41011
41012 2007-03-30  James Youngman  <jay@gnu.org>
41013
41014         * tests/test-stat-time.c (prepare_test): use chmod() rather than
41015         rename() to change the ctime of a file (because ctime is unaffected
41016         by rename on jfs2 on AIX 5.1).
41017         (main): Start by doing cleanup, in case a previous run failed leaving
41018         test files behind.
41019
41020 2007-03-31  Bruno Haible  <bruno@clisp.org>
41021
41022         Support old proprietary implementations of iconv.
41023         * modules/iconv_open: New file.
41024         * lib/iconv_.h: New file.
41025         * m4/iconv_h.m4: New file.
41026         * lib/iconv_open.c: New file.
41027         * lib/iconv_open-aix.gperf: New file.
41028         * lib/iconv_open-hpux.gperf: New file.
41029         * lib/iconv_open-irix.gperf: New file.
41030         * lib/iconv_open-osf.gperf: New file.
41031         * m4/iconv_open.m4: New file.
41032         * modules/linebreak (Depends-on): Add iconv_open.
41033         * modules/striconv (Depends-on): Likewise.
41034         * modules/striconveh (Depends-on): Likewise.
41035         * modules/unicodeio (Depends-on): Likewise.
41036         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
41037         (iconv_t)(-1).
41038         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
41039         conversion if cd is (iconv_t)(-1).
41040         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
41041         is not possible.
41042
41043 2007-03-31  Bruno Haible  <bruno@clisp.org>
41044
41045         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41046         work on Solaris either. Protect also second use of "autodetect_jp".
41047
41048 2007-03-31  Bruno Haible  <bruno@clisp.org>
41049
41050         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
41051         the function is not present.
41052
41053 2007-03-31  Bruno Haible  <bruno@clisp.org>
41054
41055         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
41056         the function is not present.
41057
41058 2007-03-31  Bruno Haible  <bruno@clisp.org>
41059
41060         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
41061         a bug in HP-UX iconv_open().
41062
41063 2007-03-31  Bruno Haible  <bruno@clisp.org>
41064
41065         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
41066         (Mathematics <math.h>): New section, add fpieee.
41067         (Input/output <stdio.h>): Add fseterr.
41068         (Mathematics <math.h>): New section, add printf-frexp.
41069         (Container data structures): Add sublist.
41070         (Core language properties): Add fpucw, inline.
41071         (Functions for greatest-width integer types <inttypes.h>): Add
41072         imaxabs, imaxdiv, inttypes.
41073         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
41074         isnanl-nolibm, ldexp.
41075         (Mathematics <math.h>): New section, add printf-frexpl.
41076         (Support for systems lacking POSIX:2001): Add fprintf-posix,
41077         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
41078         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
41079         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
41080         (Unicode string functions): Add unistr/u*-mbtoucr.
41081         (Java): Add javacomp-script, javaexec-script.
41082         (C#): Add csharpcomp-script, csharpexec-script.
41083         (Support for building libraries and executables): Add havelib,
41084         relocatable-*.
41085         (Support for maintaining and releasing projects): Renamed from
41086         'Support for maintaining and release projects'. Add announce-gen.
41087
41088 2007-03-31  Bruno Haible  <bruno@clisp.org>
41089
41090         * README: Talk primarily about git.
41091         (git and CVS): Renamed from CVS.
41092         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
41093         gnulib is available through git.
41094         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
41095
41096 2007-03-30  Bruno Haible  <bruno@clisp.org>
41097
41098         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
41099         * lib/poll_.h: Likewise.
41100         * lib/stat_.h: Likewise.
41101         * lib/sys_time_.h: Likewise.
41102         * lib/sysexit_.h: Likewise.
41103         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
41104         * lib/stdbool_.h: Likewise.
41105         * lib/byteswap_.h: Add double-inclusion guard.
41106
41107 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
41108
41109         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
41110
41111 2007-03-30  Karl Berry  <karl@gnu.org>
41112
41113         * config/srclist-update: double space after USA in the license
41114         substitution, since that's how it's usually (?) written.
41115
41116 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41117
41118         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
41119         reported by Bruno Haible.
41120
41121 2007-03-29  Bruno Haible  <bruno@clisp.org>
41122
41123         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
41124         a bug in AIX iconv().
41125
41126 2007-03-29  Bruno Haible  <bruno@clisp.org>
41127
41128         * modules/ldexpl-tests: New file.
41129         * tests/test-ldexpl.c: New file.
41130
41131 2007-03-29  Bruno Haible  <bruno@clisp.org>
41132
41133         * lib/ldexpl.c: Include fpucw.h.
41134         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
41135         multiplication.
41136         * modules/ldexpl (Depends-on): Add fpucw.
41137
41138 2007-03-29  Bruno Haible  <bruno@clisp.org>
41139
41140         * modules/ldexpl: New file.
41141         * m4/ldexpl.m4: New file.
41142         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
41143         set.
41144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
41145         REPLACE_LDEXPL.
41146         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
41147         REPLACE_LDEXPL.
41148         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41149         gl_FUNC_LDEXPL_WORKS.
41150         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
41151         * modules/mathl (Files): Remove lib/ldexpl.c.
41152         (Depends-on): Add ldexpl.
41153
41154 2007-03-29  Bruno Haible  <bruno@clisp.org>
41155
41156         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41157
41158 2007-03-29  Bruno Haible  <bruno@clisp.org>
41159
41160         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41161         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41162         and possibly also HP-UX.
41163         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41164         work on AIX, IRIX, HP-UX, OSF/1.
41165         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41166         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41167         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41168         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41169         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41170         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41171
41172 2007-03-29  Bruno Haible  <bruno@clisp.org>
41173
41174         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41175
41176 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41177
41178         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41179         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41180
41181 2007-03-29  Eric Blake  <ebb9@byu.net>
41182
41183         * lib/acl-internal.h: Remove redundant include.
41184         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41185         Cygwin when a file is locked.
41186
41187 2007-03-29  Bruno Haible  <bruno@clisp.org>
41188
41189         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41190         file.
41191         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41192
41193 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41194
41195         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41196         try to remove a parent directory if the child couldn't be removed
41197         (except for the first rmdir, which could fail because the child
41198         doesn't exist).  Problem reported by Jeff Blaine in
41199         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41200
41201 2007-03-28  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/striconveh.c (utf8conv_carefully): New function.
41204         (mem_cd_iconveh_internal): Invoke it.
41205
41206 2007-03-28  Bruno Haible  <bruno@clisp.org>
41207
41208         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41209         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41210         input.
41211         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41212         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41213         unistr/u8-uctomb.
41214
41215 2007-03-28  Bruno Haible  <bruno@clisp.org>
41216
41217         * modules/unistr/u8-mbtoucr: New file.
41218         * lib/unistr/u8-mbtoucr.c: New file.
41219         * modules/unistr/u16-mbtoucr: New file.
41220         * lib/unistr/u16-mbtoucr.c: New file.
41221         * modules/unistr/u16-mbtoucr: New file.
41222         * lib/unistr/u16-mbtoucr.c: New file.
41223         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41224
41225 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41226             Bruno Haible  <bruno@clisp.org>
41227
41228         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41229         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41230         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41231
41232         * m4/stdio_h.m4: Add stubs for vasprintf too.
41233
41234         * modules/stdio: Support vasprintf in sed command.
41235
41236         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41237         vasprintf.h.  Add stdio module indicator.
41238
41239         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41240         vasprintf.h.
41241
41242         * lib/vasprintf.h: File removed.
41243
41244         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41245         * lib/vasprintf.c: Ditto.
41246         * lib/xvasprintf.c: Ditto.
41247         * tests/test-vasprintf-posix.c: Ditto.
41248         * tests/test-vasprintf.c: Ditto.
41249
41250 2007-03-27  Bruno Haible  <bruno@clisp.org>
41251
41252         Make vasnprintf multithread-safe.
41253         * lib/vasnprintf.c (decimal_point_char): New function.
41254         (VASNPRINTF): Use it.
41255         Suggested by Simon Josefsson.
41256
41257 2007-03-27  Eric Blake  <ebb9@byu.net>
41258
41259         Support sub-second birthtime on cygwin.
41260         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41261         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41262         (get_stat_birthtime): Also work with st_birthtim.
41263
41264 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41265
41266         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41267         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41268         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41269         (get_stat_birthtime_ns): Simplify compile-time tests.
41270         (get_stat_birthtime): Change the API to look like
41271         get_stat_mtime etc., except return a negative tv_nsec on error.
41272         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41273         Don't check for "spare" fields.
41274         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41275         or for struct stat.st_birthtime, as these tests aren't used.
41276         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41277
41278 2007-03-27  Bruno Haible  <bruno@clisp.org>
41279
41280         * lib/stat-time.h: Include <sys/stat.h>.
41281
41282 2007-03-27  James Youngman  <jay@gnu.org>
41283
41284         * lib/stat-time.h (get_stat_birthtime): New function for
41285           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41286         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41287           and its variants.
41288         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41289         * modules/stat-time-test: New file.
41290         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41291
41292 2007-03-26  Bruno Haible  <bruno@clisp.org>
41293
41294         Better support of signalling NaNs.
41295         * lib/atanl.c: Include isnanl.h.
41296         (atanl): Perform test for NaN at the beginning of the function and
41297         through a call to isnanl.
41298         * lib/cosl.c: Include isnanl.h.
41299         (cosl): Perform test for NaN at the beginning of the function and
41300         through a call to isnanl.
41301         * lib/ldexpl.c: Include isnanl.h.
41302         (ldexpl): Perform test for NaN through a call to isnanl.
41303         * lib/logl.c: Include isnanl.h.
41304         (logl): Perform test for NaN at the beginning of the function and
41305         through a call to isnanl.
41306         * lib/sinl.c: Include isnanl.h.
41307         (sinl): Perform test for NaN at the beginning of the function and
41308         through a call to isnanl.
41309         * lib/sqrtl.c: Include isnanl.h.
41310         (sqrtl): Perform test for NaN at the beginning of the function and
41311         through a call to isnanl.
41312         * lib/tanl.c: Include isnanl.h.
41313         (tanl): Perform test for NaN at the beginning of the function and
41314         through a call to isnanl.
41315         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41316         * modules/mathl (Depends-on): Add isnanl.
41317
41318 2007-03-26  Eric Blake  <ebb9@byu.net>
41319
41320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41321         regression in logic sense of previous patch.
41322
41323 2007-03-26  Bruno Haible  <bruno@clisp.org>
41324
41325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41326         unportable shell command "if ! ...".
41327         Reported by Ralf Wildenhues.
41328
41329 2007-03-25  Bruno Haible  <bruno@clisp.org>
41330
41331         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41332         <sysexits.h> file, and only add EX_CONFIG.
41333         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41334         absolute file name and whether it is sufficient. Substitute also
41335         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41336         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41337         ABSOLUTE_SYSEXITS_H into sysexits.h.
41338
41339 2007-03-25  Bruno Haible  <bruno@clisp.org>
41340
41341         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41342         hints is NULL.
41343
41344 2007-03-25  Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41347         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41348
41349 2007-03-25  Bruno Haible  <bruno@clisp.org>
41350
41351         * lib/vasnprintf.c: Include langinfo.h.
41352         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41353         multithread-safe.
41354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41355         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41361         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41362         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41363         Reported by Simon Josefsson.
41364
41365 2007-03-25  Bruno Haible  <bruno@clisp.org>
41366
41367         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41368         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41369         * modules/vasnprintf (Depends-on): Add stdint.
41370
41371 2007-03-25  Bruno Haible  <bruno@clisp.org>
41372
41373         * modules/fpieee: New file.
41374         * m4/fpieee.m4: New file.
41375         * modules/isnan-nolibm (Depends-on): Add fpieee.
41376         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41377         * modules/isnanl (Depends-on): Add fpieee.
41378
41379 2007-03-25  Bruno Haible  <bruno@clisp.org>
41380
41381         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41382
41383 2007-03-25  Bruno Haible  <bruno@clisp.org>
41384
41385         Avoid test failures on IRIX 6.5.
41386         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41387         (main): Use it.
41388         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41389         macros.
41390         (main): Use them.
41391
41392 2007-03-25  Bruno Haible  <bruno@clisp.org>
41393
41394         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41395         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41396         exists but doesn't work.
41397         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41398         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41400         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41401
41402 2007-03-25  Bruno Haible  <bruno@clisp.org>
41403
41404         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41405         returns inf. Needed on IRIX 6.5.
41406
41407 2007-03-25  Bruno Haible  <bruno@clisp.org>
41408
41409         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41410         (main): Use isnanl instead of x != x idiom.
41411         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41412
41413         * tests/test-frexp.c: Include isnan.h.
41414         (main): Use isnan instead of x != x idiom.
41415         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41416
41417 2007-03-25  Bruno Haible  <bruno@clisp.org>
41418
41419         * tests/test-frexp.c (NaN): New function/macro.
41420         (main): Use it instead of 0.0 / 0.0.
41421         * tests/test-isnan.c (NaN): New function/macro.
41422         (main): Use it instead of 0.0 / 0.0.
41423         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41424         (test_function): Use it instead of 0.0 / 0.0.
41425         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41426         (test_function): Use it instead of 0.0 / 0.0.
41427         * tests/test-snprintf-posix.h (NaN): New function/macro.
41428         (test_function): Use it instead of 0.0 / 0.0.
41429         * tests/test-sprintf-posix.h (NaN): New function/macro.
41430         (test_function): Use it instead of 0.0 / 0.0.
41431         * tests/test-fprintf-posix.h (NaN): New function/macro.
41432         (test_function): Use it instead of 0.0 / 0.0.
41433         * tests/test-printf-posix.h (NaN): New function/macro.
41434         (test_function): Use it instead of 0.0 / 0.0.
41435
41436         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41437
41438 2007-03-25  Bruno Haible  <bruno@clisp.org>
41439
41440         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41441
41442 2007-03-25  Bruno Haible  <bruno@clisp.org>
41443
41444         * lib/regexec.c (merge_state_with_log): Make static.
41445
41446 2007-03-25  Bruno Haible  <bruno@clisp.org>
41447
41448         * lib/trigl.c (kernel_rem_pio2): Make static.
41449
41450 2007-03-25  Bruno Haible  <bruno@clisp.org>
41451
41452         * lib/sincosl.c (sincosl_table): Make static.
41453
41454 2007-03-25  Bruno Haible  <bruno@clisp.org>
41455
41456         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41457         if the compiler does not support C99.
41458
41459 2007-03-25  Bruno Haible  <bruno@clisp.org>
41460
41461         * modules/time (Makefile.am): Ensure all rule action lines start with a
41462         tab.
41463
41464 2007-03-24  Bruno Haible  <bruno@clisp.org>
41465
41466         * modules/tsearch-tests: New file.
41467         * tests/test-tsearch.sh: New file.
41468         * tests/test-tsearch.c: New file, mostly copied from glibc.
41469
41470         * modules/search-tests: New file.
41471         * tests/test-search.c: New file.
41472
41473         * modules/search: New file.
41474         * lib/search_.h: New file, incorporating lib/tsearch.h.
41475         * m4/search_h.m4: New file.
41476         * lib/tsearch.h: Remove file.
41477         * lib/tsearch.c: Include search.h instead of tsearch.h.
41478         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41479         HAVE_TSEARCH.
41480         * modules/tsearch (Files): Remove lib/tsearch.h.
41481         (Depends-on): Add search.
41482         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41483         (Include): Change tsearch.h into search.h.
41484
41485 2007-03-24  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/fpucw: New file.
41488         * lib/fpucw.h: New file.
41489         * lib/frexp.c: Include fpucw.h.
41490         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41491         (FUNC): Use them.
41492         * lib/printf-frexp.c: Include fpucw.h.
41493         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41494         (FUNC): Use them.
41495         * lib/vasnprintf.c: Include fpucw.h.
41496         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41497         'long double' calculations.
41498         * tests/test-frexpl.c: Include fpucw.h.
41499         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41500         * tests/test-printf-frexpl.c: Include fpucw.h.
41501         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41502         * modules/frexpl (Depends-on): Add fpucw.
41503         * modules/printf-frexpl (Depends-on): Likewise.
41504         * modules/fprintf-posix (Depends-on): Likewise.
41505         * modules/snprintf-posix (Depends-on): Likewise.
41506         * modules/sprintf-posix (Depends-on): Likewise.
41507         * modules/vasnprintf-posix (Depends-on): Likewise.
41508         * modules/vasprintf-posix (Depends-on): Likewise.
41509         * modules/vfprintf-posix (Depends-on): Likewise.
41510         * modules/vsnprintf-posix (Depends-on): Likewise.
41511         * modules/vsprintf-posix (Depends-on): Likewise.
41512         * modules/frexpl-tests (Depends-on): Likewise.
41513         * modules/printf-frexpl-tests (Depends-on): Likewise.
41514
41515 2007-03-24  Bruno Haible  <bruno@clisp.org>
41516
41517         * lib/float+.h: New file.
41518         * lib/isnan.c: Include float+.h.
41519         (SIZE): New macro.
41520         (FUNC): Compare only SIZE bytes of the value.
41521         * lib/vasnprintf.c: Include float+.h.
41522         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41523         SIZEOF_LDBL or SIZEOF_DBL bytes.
41524         * modules/isnan-nolibm (Files): Add lib/float+.h.
41525         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41526         * modules/isnanl (Files): Add lib/float+.h.
41527         * modules/vasnprintf (Files): Add lib/float+.h.
41528
41529 2007-03-24  Bruno Haible  <bruno@clisp.org>
41530
41531         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41532         include isnanl-nolibm.h.
41533
41534 2007-03-24  Bruno Haible  <bruno@clisp.org>
41535
41536         * tests/test-read-file.c (main): Don't produce spurious output for
41537         expected situations. Make the test fail if it encountered unexpected
41538         results.
41539
41540 2007-03-24  Bruno Haible  <bruno@clisp.org>
41541
41542         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41543         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41544
41545 2007-03-24  Bruno Haible  <bruno@clisp.org>
41546
41547         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41548
41549 2007-03-24  Bruno Haible  <bruno@clisp.org>
41550
41551         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41552         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41553
41554         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41555         * modules/utf8-ucs4: Turn into a symbolic link to module
41556         unistr/u8-mbtouc.
41557
41558         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41559         utf8-ucs4-unsafe.
41560         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41561         unistr/u8-mbtouc-unsafe.
41562
41563         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41564         * modules/utf16-ucs4: Turn into a symbolic link to module
41565         unistr/u16-mbtouc.
41566
41567         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41568         utf16-ucs4-unsafe.
41569         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41570         unistr/u16-mbtouc-unsafe.
41571
41572         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41573         * modules/ucs4-utf8: Turn into a symbolic link to module
41574         unistr/u8-ubtomb.
41575
41576         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41577         * modules/ucs4-utf16: Turn into a symbolic link to module
41578         unistr/u16-ubtomb.
41579
41580 2007-03-24  Bruno Haible  <bruno@clisp.org>
41581
41582         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41583         Enable the function only if HAVE_INLINE.
41584         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41585         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41586         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41587         Enable the function only if HAVE_INLINE.
41588         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41589         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41590         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41591         Enable the function only if HAVE_INLINE.
41592         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41593         Enable the function only if HAVE_INLINE.
41594         * modules/utf8-ucs4: Update.
41595         * modules/utf8-ucs4-unsafe: Update.
41596         * modules/utf16-ucs4: Update.
41597         * modules/utf16-ucs4-unsafe: Update.
41598         * modules/ucs4-utf8: Update.
41599         * modules/ucs4-utf16: Update.
41600
41601 2007-03-24  Bruno Haible  <bruno@clisp.org>
41602
41603         * lib/utf8-ucs4.h: Remove file.
41604         * lib/utf8-ucs4-unsafe.h: Remove file.
41605         * lib/utf16-ucs4.h: Remove file.
41606         * lib/utf16-ucs4-unsafe.h: Remove file.
41607         * lib/ucs4-utf8.h: Remove file.
41608         * lib/ucs4-utf16.h: Remove file.
41609         * lib/unistr.h: Include their previous contents.
41610         * m4/utf-ucs4.m4: Remove file.
41611         * m4/ucs4-utf.m4: Remove file.
41612         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41613         (Depends-on): Add unistr/base.
41614         (configure.ac): Remove gl_UTF_UCS4.
41615         (Makefile.am): Update.
41616         (Include): Change to unistr.h.
41617         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41618         (Depends-on): Add unistr/base.
41619         (configure.ac): Remove gl_UTF_UCS4.
41620         (Makefile.am): Update.
41621         (Include): Change to unistr.h.
41622         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41623         (Depends-on): Add unistr/base.
41624         (configure.ac): Remove gl_UTF_UCS4.
41625         (Makefile.am): Update.
41626         (Include): Change to unistr.h.
41627         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41628         (Depends-on): Add unistr/base.
41629         (configure.ac): Remove gl_UTF_UCS4.
41630         (Makefile.am): Update.
41631         (Include): Change to unistr.h.
41632         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41633         (Depends-on): Add unistr/base.
41634         (configure.ac): Remove gl_UCS4_UTF.
41635         (Makefile.am): Update.
41636         (Include): Change to unistr.h.
41637         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41638         (Depends-on): Add unistr/base.
41639         (configure.ac): Remove gl_UCS4_UTF.
41640         (Makefile.am): Update.
41641         (Include): Change to unistr.h.
41642         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41643         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41644         utf8-ucs4-unsafe.h.
41645         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41646         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41647         utf16-ucs4-unsafe.h.
41648         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41649         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41650         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41651         * lib/unistr/u8-strchr.c: Likewise.
41652         * lib/unistr/u8-strrchr.c: Likewise.
41653         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41654         * lib/unistr/u16-strchr.c: Likewise.
41655         * lib/unistr/u16-strrchr.c: Likewise.
41656         * lib/striconveh.c: Update.
41657         * lib/linebreak.c: Update.
41658
41659 2007-03-24  Bruno Haible  <bruno@clisp.org>
41660
41661         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41662         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41663
41664 2007-03-22  Bruno Haible  <bruno@clisp.org>
41665
41666         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41667
41668 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41669
41670         * MODULES.html.sh (File system functions): New module write-any-file.
41671         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41672         * m4/write-any-file.m4: New files.
41673
41674 2007-03-23  Eric Blake  <ebb9@byu.net>
41675
41676         * gnulib-tool: Rearrange space-tab sequences, since some editors
41677         like to eat them.
41678
41679 2007-03-23  Eric Blake  <ebb9@byu.net>
41680
41681         * lib/version-etc.c (version_etc_va): Update license wording to
41682         be more concise.  Recommended by Richard Stallman.
41683
41684 2007-03-22  Bruno Haible  <bruno@clisp.org>
41685
41686         * lib/poll.c (MSG_PEEK): New fallback definition.
41687
41688 2007-03-22  Bruno Haible  <bruno@clisp.org>
41689
41690         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41691         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41692         (main): Update.
41693         Fixes a compilation error on BeOS.
41694
41695 2007-03-22  Bruno Haible  <bruno@clisp.org>
41696
41697         * modules/frexpl-tests: New file.
41698         * tests/test-frexpl.c: New file.
41699
41700         * modules/frexpl: New file.
41701         * m4/frexpl.m4: New file.
41702         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41703         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41705         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41706         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41707         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41708
41709 2007-03-22  Bruno Haible  <bruno@clisp.org>
41710
41711         * lib/frexpl.c: Share code with lib/frexp.c.
41712         * modules/mathl (Files): Add lib/frexp.c.
41713         (Depends-on): Add isnanl-nolibm.
41714
41715 2007-03-22  Bruno Haible  <bruno@clisp.org>
41716
41717         * modules/printf-frexp (Files): Add m4/frexp.m4.
41718         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41719         only if the found frexp function actually works.
41720
41721 2007-03-22  Bruno Haible  <bruno@clisp.org>
41722
41723         * lib/frexp.c: Remove older implementation that uses divisions.
41724
41725 2007-03-21  Bruno Haible  <bruno@clisp.org>
41726
41727         * modules/frexp-tests: New file.
41728         * tests/test-frexp.c: New file.
41729
41730         * modules/frexp: New file.
41731         * lib/frexp.c: New file.
41732         * m4/frexp.m4: New file.
41733         * lib/math_.h (frexp): New declaration.
41734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41735         REPLACE_FREXP.
41736         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41737
41738 2007-03-21  Bruno Haible  <bruno@clisp.org>
41739
41740         * modules/isnanl-tests: New file.
41741         * tests/test-isnanl.c: New file.
41742
41743         * modules/isnanl: New file.
41744         * lib/isnanl.h: New file.
41745         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41746         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41747         gl_FUNC_ISNANL_WORKS.
41748         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41749         New macros.
41750
41751 2007-03-21  Bruno Haible  <bruno@clisp.org>
41752
41753         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41754         lib/isnanl.h.
41755         (Include): Update.
41756         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41757         * lib/vasnprintf.c: Update.
41758         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41759         tests/test-isnanl.h, remove tests/test-isnanl.c.
41760         (Makefile.am): Update.
41761         * tests/test-isnanl-nolibm.c: New file.
41762         * tests/test-isnanl.h: New file.
41763         * tests/test-isnanl.c: Remove file.
41764
41765 2007-03-21  Jim Meyering  <jim@meyering.net>
41766
41767         When trying to open ".", treat ESTALE like EACCES.
41768         * lib/savewd.c (savewd_save): Resort to forking not just upon
41769         failure with EACCES, but also when errno is ESTALE.
41770
41771 2007-03-20  Bruno Haible  <bruno@clisp.org>
41772
41773         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41774         Needed on AIX 5.1. Reported by Matthew Woehlke.
41775
41776 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41777
41778         Suggestions by Bruno Haible:
41779         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41780         our own.
41781         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41782         * modules/acl (Depends-on): Add gettext.
41783
41784 2007-03-19  Bruno Haible  <bruno@clisp.org>
41785
41786         * modules/iconvme: Remove file.
41787         * lib/iconvme.h: Remove file.
41788         * lib/iconvme.c: Remove file.
41789         * m4/iconvme.m4: Remove file.
41790
41791 2007-03-19  Bruno Haible  <bruno@clisp.org>
41792
41793         * doc/relocatable-maint.texi: Break long shell script line.
41794         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41795
41796 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41797
41798         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41799         handle file_has_acl.
41800         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41801         * lib/acl.c: Move header inclusions and related macro defns into
41802         lib/acl-internal.h.
41803         (S_ISLNK): Remove defn, since that's now done for us.
41804         (file_has_acl): Move to lib/file-has-acl.c.
41805         Call acl_trivial if available.  This is the crucial part of the fix.
41806         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41807         shared within the library.  Rewrite a bit, partly to make it compatible
41808         with the GNU coding style.
41809         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41810         Remove unnecessary double-quotes.
41811         Don't test for acl_to_text; the build will catch that.
41812         Replace acl_entries if it doesn't exist and it is needed.
41813         Check for -lsec and acl_trivial (as used on Solaris 10).
41814         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41815         lib/file-has-acl.c.
41816         (Depends-on): Add sys_stat, for S_ISLNK.
41817
41818 2007-03-19  Ben Pfaff  <blp@gnu.org>
41819
41820         * doc/gnulib.texi: Fix typos.
41821         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41822
41823 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41824
41825         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41826         If size is zero here, buf must be zero.
41827
41828 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41829
41830         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41831         <bruno@clisp.org>.
41832
41833 2007-03-18  Bruno Haible  <bruno@clisp.org>
41834
41835         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41836         Suggested by Eric Blake.
41837
41838 2007-03-18  Ben Pfaff  <blp@gnu.org>
41839
41840         * doc/relocatable.texi: Recommend using as prefix a directory
41841         that does not exist and will never be created.  Based on
41842         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41843         and others.
41844
41845 2007-03-17  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/fchownat.c: Include lchown.h.
41848
41849 2007-03-17  Bruno Haible  <bruno@clisp.org>
41850
41851         Fix endless loop when the given allocated size was > INT_MAX.
41852         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41853         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41854         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41855         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41856         * lib/sprintf.c (sprintf): Likewise.
41857
41858 2007-03-17  Bruno Haible  <bruno@clisp.org>
41859
41860         * tests/test-argp-2.sh (func_compare): Output a context diff.
41861
41862 2007-03-17  Bruno Haible  <bruno@clisp.org>
41863
41864         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41865         locale's decimal-point character.
41866
41867 2007-03-17  Bruno Haible  <bruno@clisp.org>
41868
41869         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41870         before comparing it. Needed because on some platforms (e.g. x86) a
41871         'long double' occupies less bytes than sizeof (long double).
41872
41873 2007-03-17  Bruno Haible  <bruno@clisp.org>
41874
41875         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41876         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41877         * tests/test-getaddrinfo.c (simple): Likewise.
41878         * tests/test-read-file.c (main): Likewise.
41879
41880 2007-03-17  Bruno Haible  <bruno@clisp.org>
41881
41882         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41883
41884 2007-03-17  Bruno Haible  <bruno@clisp.org>
41885
41886         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41887         unused variable.
41888
41889 2007-03-17  Bruno Haible  <bruno@clisp.org>
41890
41891         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41892         * tests/test-c-strncasecmp.c: Likewise.
41893
41894 2007-03-17  Bruno Haible  <bruno@clisp.org>
41895
41896         * modules/stdlib (Depends-on): Add unistd.
41897         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41898         Needed for MacOS X 10.3.
41899
41900 2007-03-17  Bruno Haible  <bruno@clisp.org>
41901
41902         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41903
41904 2007-03-17  Bruno Haible  <bruno@clisp.org>
41905
41906         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41907
41908 2007-03-17  Bruno Haible  <bruno@clisp.org>
41909
41910         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41911         to reflect files copied from gnulib (with or without modifications).
41912         Suggested by Jim Meyering.
41913
41914 2007-03-17  Eric Blake  <ebb9@byu.net>
41915
41916         * NEWS: Document stdlib change from 2007-02-18.
41917
41918 2007-03-17  Jim Meyering  <jim@meyering.net>
41919
41920         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41921         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41922         someone uses a name containing shell meta-characters.
41923         Reported by Alfred M. Szmidt.
41924
41925         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41926
41927 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41928
41929         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41930         and copy gettext configuration files only if configure.ac contains
41931         a use of AM_GNU_GETTEXT_VERSION.
41932
41933 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41934
41935         * build-aux/bootstrap (gnulib_name): New variable.
41936         (gnulib_tool_options): Use it.
41937
41938 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41939
41940         * tests/test-des.c: Use new namespace.
41941
41942 2007-03-15  Bruno Haible  <bruno@clisp.org>
41943
41944         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41945         Reported by James Youngman <jay@gnu.org>.
41946
41947 2007-03-15  Bruno Haible  <bruno@clisp.org>
41948
41949         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41950         declared prototype. Needed with cc on OSF/1 5.1.
41951
41952 2007-03-15  Bruno Haible  <bruno@clisp.org>
41953
41954         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41955         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41956         (struct gl_list_implementation): Add dispose_fn argument to the
41957         'create_empty', 'create' methods.
41958         (struct gl_list_impl_base): Add field 'dispose_fn'.
41959         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41960         argument.
41961         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41962         dispose_fn argument.
41963         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41964         dispose_fn on the dropped values.
41965         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41966         dispose_fn argument.
41967         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41968         dropped values.
41969         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41970         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41971         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41972         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41973         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41974         argument.
41975         (gl_tree_list_free): Call dispose_fn on the dropped values.
41976         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41977         the dropped values.
41978         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41979         Add dispose_fn argument.
41980         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41981         Call dispose_fn on the dropped values.
41982         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41983         Add dispose_fn argument.
41984         (gl_sublist_create): Initialize the 'dispose_fn' field.
41985         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41986         * tests/test-array_list.c (main): Update.
41987         * tests/test-carray_list.c (main): Update.
41988         * tests/test-avltree_list.c (main): Update.
41989         * tests/test-rbtree_list.c (main): Update.
41990         * tests/test-avltreehash_list.c (main): Update.
41991         * tests/test-rbtreehash_list.c (main): Update.
41992         * tests/test-linked_list.c (main): Update.
41993         * tests/test-linkedhash_list.c (main): Update.
41994         * tests/test-array_oset.c (main): Update.
41995
41996 2007-03-15  Bruno Haible  <bruno@clisp.org>
41997
41998         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
41999         (gl_oset_create_empty): Add dispose_fn argument.
42000         (struct gl_oset_implementation): Add dispose_fn argument to
42001         'create_empty' method.
42002         (struct gl_oset_impl_base): Add dispose_fn field.
42003         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
42004         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
42005         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
42006         values.
42007         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
42008         (gl_tree_oset_free): Call dispose_fn on the dropped values.
42009         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42010         dropped value.
42011         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42012         dropped value.
42013         * tests/test-array_oset.c (main): Update.
42014         * tests/test-avltree_oset.c (main): Update.
42015         * tests/test-rbtree_oset.c (main): Update.
42016         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
42017
42018 2007-03-13  Bruno Haible  <bruno@clisp.org>
42019
42020         * tests/test-stdbool.c (i): Update after last patch.
42021
42022 2007-03-12  Bruno Haible  <bruno@clisp.org>
42023
42024         * lib/quotearg.c: Include <wctype.h> early, before the definition of
42025         the iswprint macro. Needed on Solaris 2.5.1.
42026
42027 2007-03-12  Bruno Haible  <bruno@clisp.org>
42028
42029         * tests/test-printf-frexp.c (main): Declare x as volatile.
42030
42031 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42032
42033         * doc/gnulib.texi (Build robot for gnulib): New section.
42034
42035 2007-03-12  Jim Meyering  <jim@meyering.net>
42036
42037         * build-aux/bootstrap: New file.
42038         * build-aux/bootstrap.conf: New file, from coreutils.
42039
42040 2007-03-11  Bruno Haible  <bruno@clisp.org>
42041
42042         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
42043
42044 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42045
42046         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
42047         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
42048         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
42049
42050 2007-03-11  Bruno Haible  <bruno@clisp.org>
42051
42052         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
42053         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
42054
42055 2007-03-11  Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
42058         formula. Needed for SunPRO C 5.0.
42059
42060 2007-03-11  Bruno Haible  <bruno@clisp.org>
42061
42062         * modules/long-options (Depends-on): Add getopt.
42063
42064 2007-03-11  Bruno Haible  <bruno@clisp.org>
42065
42066         * modules/modechange (Depends-on): Add stdbool.
42067
42068 2007-03-11  Bruno Haible  <bruno@clisp.org>
42069
42070         * modules/i-ring (Depends-on): Add stdbool.
42071
42072 2007-03-11  Bruno Haible  <bruno@clisp.org>
42073
42074         * modules/gc-des (Depends-on): Add stdbool.
42075
42076 2007-03-11  Bruno Haible  <bruno@clisp.org>
42077
42078         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
42079
42080 2007-03-11  Bruno Haible  <bruno@clisp.org>
42081
42082         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
42083
42084 2007-03-11  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
42087
42088 2007-03-11  Bruno Haible  <bruno@clisp.org>
42089
42090         * lib/vasnprintf.c (sprintf): Undefine.
42091
42092 2007-03-11  Bruno Haible  <bruno@clisp.org>
42093
42094         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
42095         initializers in SunPRO C and Compaq C compilers.
42096
42097 2007-03-11  Bruno Haible  <bruno@clisp.org>
42098
42099         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
42100         decrementing code ANSI C compliant.
42101
42102 2007-03-11  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
42105         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
42106
42107 2007-03-11  Bruno Haible  <bruno@clisp.org>
42108
42109         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
42110         <stdbool.h> substitute doesn't pass.
42111
42112 2007-03-11  Bruno Haible  <bruno@clisp.org>
42113
42114         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
42115
42116 2007-03-11  Bruno Haible  <bruno@clisp.org>
42117
42118         * gnulib-tool (func_create_megatestdir): Create also an autobuild
42119         script, for submission to autobuild.josefsson.org.
42120
42121 2007-03-10  Bruno Haible  <bruno@clisp.org>
42122
42123         * modules/canonicalize-lgpl-tests: New file.
42124         * tests/test-canonicalize-lgpl.sh: New file.
42125         * tests/test-canonicalize-lgpl.c: New file.
42126
42127         * modules/c-strcase-tests: New file.
42128         * tests/test-c-strcase.sh: New file.
42129         * tests/test-c-strcasecmp.c: New file.
42130         * tests/test-c-strncasecmp.c: New file.
42131
42132         * modules/atexit-tests: New file.
42133         * tests/test-atexit.sh: New file.
42134         * tests/test-atexit.c: New file.
42135
42136 2007-03-10  Bruno Haible  <bruno@clisp.org>
42137
42138         * tests/test-binary-io.sh: Use temporary filenames that are not so
42139         likely to clash with those of other tests (in a parallel make).
42140         * tests/test-binary-io.c: Likewise.
42141
42142 2007-03-10  Bruno Haible  <bruno@clisp.org>
42143
42144         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
42145         fallback; use #error instead.
42146         Suggested by Simon Josefsson.
42147
42148 2007-03-10  Bruno Haible  <bruno@clisp.org>
42149
42150         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
42151         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
42152         first and the last.
42153
42154 2007-03-10  Bruno Haible  <bruno@clisp.org>
42155
42156         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42157
42158 2007-03-10  Bruno Haible  <bruno@clisp.org>
42159
42160         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42161         "make distcheck".
42162         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42163         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42164         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42165
42166 2007-03-10  Bruno Haible  <bruno@clisp.org>
42167
42168         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42169         variable.
42170         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42171         variable.
42172
42173 2007-03-09  Eric Blake  <ebb9@byu.net>
42174         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42175
42176         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42177         types are not being provided by gnulib.
42178         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42179         types are supported.
42180
42181 2007-03-10  Bruno Haible  <bruno@clisp.org>
42182
42183         * lib/stdio_.h (__attribute__): New macro.
42184         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42185         vsprintf): Specify __attribute__ __format__ for GCC.
42186         Suggested by Eric Blake.
42187
42188 2007-03-09  Bruno Haible  <bruno@clisp.org>
42189
42190         * modules/printf-posix-tests: New file.
42191         * tests/test-printf-posix.sh: New file.
42192         * tests/test-printf-posix.c: New file.
42193
42194         * modules/printf-posix: New file.
42195         * lib/printf.c: New file.
42196         * m4/printf-posix-rpl.m4: New file.
42197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42198         REPLACE_PRINTF.
42199         * lib/stdio_.h (printf): New declaration.
42200         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42201         ____strfmon____): New macros.
42202         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42203         REPLACE_PRINTF.
42204
42205 2007-03-09  Bruno Haible  <bruno@clisp.org>
42206
42207         * tests/test-vasnprintf-posix2.sh: New file.
42208         * tests/test-vasnprintf-posix2.c: New file.
42209         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42210         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42211         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42212
42213         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42214         a locale dependent decimal point, rather than always '.'.
42215
42216 2007-03-09  Eric Blake  <ebb9@byu.net>
42217
42218         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42219         spite of platforms like Tandem/NSK that define it to -1.
42220
42221 2007-03-08  Bruno Haible  <bruno@clisp.org>
42222
42223         * modules/vprintf-posix-tests: New file.
42224         * tests/test-vprintf-posix.sh: New file.
42225         * tests/test-vprintf-posix.c: New file.
42226         * tests/test-printf-posix.h: New file.
42227
42228         * modules/vprintf-posix: New file.
42229         * lib/vprintf.c: New file.
42230         * m4/vprintf-posix.m4: New file.
42231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42232         REPLACE_VPRINTF.
42233         * lib/stdio_.h (vprintf): New declaration.
42234         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42235         REPLACE_VPRINTF.
42236
42237 2007-03-08  Bruno Haible  <bruno@clisp.org>
42238
42239         * modules/fprintf-posix-tests: New file.
42240         * tests/test-fprintf-posix.sh: New file.
42241         * tests/test-fprintf-posix.c: New file.
42242
42243         * modules/fprintf-posix: New file.
42244         * lib/fprintf.c: New file.
42245         * m4/fprintf-posix.m4: New file.
42246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42247         REPLACE_FPRINTF.
42248         * lib/stdio_.h (fprintf): New declaration.
42249         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42250         REPLACE_FPRINTF.
42251
42252 2007-03-08  Bruno Haible  <bruno@clisp.org>
42253
42254         * modules/vfprintf-posix-tests: New file.
42255         * tests/test-vfprintf-posix.sh: New file.
42256         * tests/test-vfprintf-posix.c: New file.
42257         * tests/test-fprintf-posix.h: New file.
42258         * tests/test-fprintf-posix.out: New file.
42259
42260         * modules/vfprintf-posix: New file.
42261         * lib/vfprintf.c: New file.
42262         * m4/vfprintf-posix.m4: New file.
42263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42264         REPLACE_VFPRINTF.
42265         * lib/stdio_.h (vfprintf): New declaration.
42266         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42267         REPLACE_VFPRINTF.
42268
42269 2007-03-08  Bruno Haible  <bruno@clisp.org>
42270
42271         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42272
42273 2007-03-08  Bruno Haible  <bruno@clisp.org>
42274
42275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42276         instead of 'expr' invocations.
42277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42280         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42281         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42282         Suggested by Paul Eggert.
42283
42284 2007-03-08  Bruno Haible  <bruno@clisp.org>
42285
42286         * modules/fseterr-tests: New file.
42287         * tests/test-fseterr.c: New file.
42288
42289         * modules/fseterr: New file.
42290         * lib/fseterr.h: New file.
42291         * lib/fseterr.c: New file.
42292
42293 2007-03-08  Bruno Haible  <bruno@clisp.org>
42294
42295         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42296         * lib/getopt_.h: Likewise.
42297         * lib/mbswidth.h: Likewise.
42298         * lib/setenv.h: Likewise.
42299         * lib/vasnprintf.h: Likewise.
42300         * lib/vasprintf.h: Likewise.
42301         * lib/verror.h: Likewise.
42302         * lib/xsetenv.h: Likewise.
42303         * lib/xvasprintf.h: Likewise.
42304
42305 2007-03-08  Jim Meyering  <jim@meyering.net>
42306
42307         * users.txt: Add parted.
42308
42309         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42310
42311 2007-03-07  Bruno Haible  <bruno@clisp.org>
42312
42313         * m4/printf.m4: Make the shell script snippets copy&pastable.
42314
42315 2007-03-02  Bruno Haible  <bruno@clisp.org>
42316
42317         * lib/netinet_in_.h: New file.
42318         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42319         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42320         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42321         (Depends-on): Add absolute-header.
42322         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42323         into netinet/in.h.
42324
42325 2007-03-03  Bruno Haible  <bruno@clisp.org>
42326
42327         * lib/sys_select_.h: New file.
42328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42329         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42330         * modules/sys_select (Files): Add lib/sys_select_.h.
42331         (Depends-on): Add absolute-header.
42332         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42333         into sys/select.h.
42334
42335 2007-03-02  Bruno Haible  <bruno@clisp.org>
42336
42337         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42338         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42339         values.
42340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42341         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42342         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42343         * modules/sys_socket (Depends-on): Add absolute-header.
42344         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42345         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42346         (Include): Remove requirement of inclusion of <sys/types.h>.
42347
42348 2007-03-02  Bruno Haible  <bruno@clisp.org>
42349
42350         * lib/byteswap_.h (bswap_32): Fix formula.
42351
42352 2007-03-06  Bruno Haible  <bruno@clisp.org>
42353
42354         * modules/sprintf-posix-tests: New file.
42355         * tests/test-sprintf-posix.c: New file.
42356
42357         * modules/sprintf-posix: New file.
42358         * lib/sprintf.c: New file.
42359         * m4/sprintf-posix.m4: New file.
42360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42361         REPLACE_SPRINTF.
42362         * lib/stdio_.h (sprintf): New declaration.
42363         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42364         REPLACE_SPRINTF.
42365
42366 2007-03-06  Bruno Haible  <bruno@clisp.org>
42367
42368         * modules/vsprintf-posix-tests: New file.
42369         * tests/test-vsprintf-posix.c: New file.
42370         * tests/test-sprintf-posix.h: New file.
42371
42372         * modules/vsprintf-posix: New file.
42373         * lib/vsprintf.c: New file.
42374         * m4/vsprintf-posix.m4: New file.
42375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42376         REPLACE_VSPRINTF.
42377         * lib/stdio_.h (vsprintf): New declaration.
42378         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42379         REPLACE_VSPRINTF.
42380
42381 2007-03-06  Bruno Haible  <bruno@clisp.org>
42382
42383         * modules/vsnprintf (Depend-on): Remove minmax.
42384
42385 2007-03-06  Bruno Haible  <bruno@clisp.org>
42386
42387         * modules/snprintf-posix-tests: New file.
42388         * tests/test-snprintf-posix.c: New file.
42389
42390         * modules/snprintf-posix: New file.
42391         * m4/snprintf-posix.m4: New file.
42392         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42393         gl_FUNC_SNPRINTF.
42394         (gl_FUNC_SNPRINTF): Invoke it.
42395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42396         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42397         is set.
42398         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42399
42400 2007-03-06  Bruno Haible  <bruno@clisp.org>
42401
42402         * modules/vsnprintf-posix-tests: New file.
42403         * tests/test-vsnprintf-posix.c: New file.
42404         * tests/test-snprintf-posix.h: New file.
42405
42406         * modules/vsnprintf-posix: New file.
42407         * m4/vsnprintf-posix.m4: New file.
42408         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42409         gl_FUNC_VSNPRINTF.
42410         (gl_FUNC_VSNPRINTF): Invoke it.
42411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42412         * lib/stdio_.h (vsnprintf): Define as a replacement if
42413         REPLACE_VSNPRINTF is set.
42414         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42415
42416 2007-03-06  Bruno Haible  <bruno@clisp.org>
42417
42418         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42419         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42420
42421 2007-03-06  Bruno Haible  <bruno@clisp.org>
42422
42423         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42424         (asinl): Declare also if HAVE_DECL_ASINL is set.
42425         (atanl): Declare also if HAVE_DECL_ATANL is set.
42426         (ceill): Declare also if HAVE_DECL_CEILL is set.
42427         (cosl): Declare also if HAVE_DECL_COSL is set.
42428         (expl): Declare also if HAVE_DECL_EXPL is set.
42429         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42430         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42431         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42432         (logl): Declare also if HAVE_DECL_LOGL is set.
42433         (sinl): Declare also if HAVE_DECL_SINL is set.
42434         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42435         (tanl): Declare also if HAVE_DECL_TANL is set.
42436         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42438         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42439         declaration of frexpl, ldexpl.
42440         * modules/printf-frexpl (Depends-on): Add math.
42441         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42442
42443 2007-03-05  Bruno Haible  <bruno@clisp.org>
42444
42445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42446         frexpl and ldexpl are declared.
42447         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42448
42449 2007-03-05  Bruno Haible  <bruno@clisp.org>
42450
42451         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42452         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42453
42454 2007-03-05  Bruno Haible  <bruno@clisp.org>
42455
42456         * lib/stdio_.h: Include <stddef.h>.
42457
42458 2007-03-05  Bruno Haible  <bruno@clisp.org>
42459
42460         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42461
42462 2007-03-05  Bruno Haible  <bruno@clisp.org>
42463
42464         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42465         NetBSD 4, from Ralf Wildenhues.
42466
42467 2007-03-04  Bruno Haible  <bruno@clisp.org>
42468
42469         * lib/vasprintf.h: Update #if logic for the case when the functions
42470         exist but are overridden.
42471
42472 2007-03-04  Bruno Haible  <bruno@clisp.org>
42473
42474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42475         implementations: glibc-2.4 and MacOS X 10.3.
42476         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42477         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42478         * tests/test-vasprintf-posix.c (test_function): Likewise.
42479
42480 2007-03-04  Bruno Haible  <bruno@clisp.org>
42481
42482         * modules/vasprintf-posix-tests: New file.
42483         * tests/test-vasprintf-posix.c: New file.
42484
42485         * modules/vasprintf-posix: New file.
42486         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42487         defined.
42488         * m4/vasprintf-posix.m4: New file.
42489         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42490         gl_FUNC_VASPRINTF.
42491         (gl_FUNC_VASPRINTF): Invoke it.
42492         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42493         here.
42494         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42495
42496 2007-03-04  Bruno Haible  <bruno@clisp.org>
42497
42498         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42499         REPLACE_GETTIMEOFDAY.
42500         * modules/sys_time (Makefile.am): Likewise.
42501         * m4/sys_time_h.m4: Likewise.
42502         * m4/gettimeofday.m4: Likewise.
42503
42504 2007-03-04  Bruno Haible  <bruno@clisp.org>
42505
42506         * modules/vasnprintf-posix-tests: New file.
42507         * tests/test-vasnprintf-posix.c: New file.
42508
42509         * modules/vasnprintf-posix: New file.
42510         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42511         printf-frexpl.h.
42512         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42513         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42514         REPLACE_VASNPRINTF is defined.
42515         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42516         gl_FUNC_VASNPRINTF.
42517         (gl_FUNC_VASNPRINTF): Invoke it.
42518         * m4/vasnprintf-posix.m4: New file.
42519         * m4/printf.m4: New file.
42520
42521 2007-03-04  Bruno Haible  <bruno@clisp.org>
42522
42523         Compile progreloc.c only if --enable-relocatable is specified.
42524         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42525         if --enable-relocatable was specified.
42526         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42527         lib_SOURCES.
42528
42529 2007-03-04  Jim Meyering  <jim@meyering.net>
42530
42531         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42532         Use it consistently, rather than enumerating errno constants.
42533
42534 2007-03-04  Bruno Haible  <bruno@clisp.org>
42535
42536         * modules/xvasprintf-tests: New file.
42537         * tests/test-xvasprintf.c: New file.
42538
42539         * modules/vasprintf-tests: New file.
42540         * tests/test-vasprintf.c: New file.
42541
42542         * modules/vasnprintf-tests: New file.
42543         * tests/test-vasnprintf.c: New file.
42544
42545         * modules/vsnprintf-tests: New file.
42546         * tests/test-vsnprintf.c: New file.
42547
42548         * modules/snprintf-tests: New file.
42549         * tests/test-snprintf.c: New file.
42550
42551 2007-03-04  Bruno Haible  <bruno@clisp.org>
42552
42553         Compile relocatable.c only if --enable-relocatable is specified.
42554         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42555         gl_RELOCATABLE_LIBRARY.
42556         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42557         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42558         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42559         gl_RELOCATABLE_LIBRARY.
42560         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42561         (Makefile.am): Remove lib_SOURCES.
42562         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42563         gl_RELOCATABLE_LIBRARY.
42564         (Makefile.am): Remove lib_SOURCES.
42565         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42566         always.
42567         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42568         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42569
42570 2007-03-04  Bruno Haible  <bruno@clisp.org>
42571
42572         * modules/argmatch-tests: New file.
42573         * tests/test-argmatch.c: New file.
42574
42575         * tests/test-allocsa.c (main): Halve the number of loop runs.
42576
42577         * modules/alloca-opt-tests: New file.
42578         * tests/test-alloca-opt.c: New file.
42579
42580 2007-03-04  Jim Meyering  <jim@meyering.net>
42581
42582         Work around difference between Linux ACLs and Solaris 10 ZFS.
42583         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42584         for EINVAL.
42585
42586 2007-03-03  Bruno Haible  <bruno@clisp.org>
42587
42588         * modules/relocatable-prog (Depends-on): Add back progreloc's
42589         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42590
42591 2007-03-03  Bruno Haible  <bruno@clisp.org>
42592
42593         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42594         * modules/relocatable-lib: New file.
42595
42596 2007-03-03  Bruno Haible  <bruno@clisp.org>
42597
42598         * modules/relocatable-prog: Renamed from modules/relocatable.
42599         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42600
42601 2007-03-03  Bruno Haible  <bruno@clisp.org>
42602
42603         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42604         m4/relocatable-lib.m4.
42605         (Depends-on): Remove 'relocatable'.
42606         (configure.ac): Add gl_RELOCATABLE_NOP.
42607
42608 2007-03-03  Bruno Haible  <bruno@clisp.org>
42609
42610         * modules/relocatable-prog-wrapper: New file.
42611         * modules/relocatable (Depends-on): Add it. Remove all other
42612         dependencies except progname.
42613         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42614
42615         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42616         (gl_FUNC_STRERROR): Nop.
42617         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42618
42619         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42620         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42621
42622         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42623         (gl_FUNC_READLINK): Update.
42624
42625         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42626
42627 2007-03-03  Bruno Haible  <bruno@clisp.org>
42628
42629         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42630         * modules/xreadlink (Depends-on): Add unistd.
42631         * modules/xreadlink-with-size (Depends-on): Likewise.
42632
42633 2007-03-03  Bruno Haible  <bruno@clisp.org>
42634
42635         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42636         extracted from gt_FUNC_SETENV.
42637         (gt_FUNC_SETENV): Remove macro.
42638         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42639         remove gt_FUNC_SETENV.
42640
42641 2007-03-03  Bruno Haible  <bruno@clisp.org>
42642
42643         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42644         ENABLE_RELOCATABLE here.
42645         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42646
42647 2007-03-03  Bruno Haible  <bruno@clisp.org>
42648
42649         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42650         * tests/test-rbtreehash_list.c: Include progname.h.
42651         (main): Call set_program_name.
42652
42653         * modules/rbtree-oset-tests (Depends-on): Add progname.
42654         * tests/test-rbtree_oset.c: Include progname.h.
42655         (main): Call set_program_name.
42656
42657         * modules/rbtree-list-tests (Depends-on): Add progname.
42658         * tests/test-rbtree_list.c: Include progname.h.
42659         (main): Call set_program_name.
42660
42661         * modules/linked-list-tests (Depends-on): Add progname.
42662         * tests/test-linked_list.c: Include progname.h.
42663         (main): Call set_program_name.
42664
42665 2007-03-03  Bruno Haible  <bruno@clisp.org>
42666
42667         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42668         All uses of __restrict changed to _Restrict_.
42669         * lib/glob_.h (__restrict): Remove macro.
42670
42671 2007-03-02  Bruno Haible  <bruno@clisp.org>
42672
42673         * modules/gettext (configure.ac): Require gettext infrastructure
42674         from version 0.16.1.
42675
42676 2007-03-02  Bruno Haible  <bruno@clisp.org>
42677
42678         * modules/linkedhash-list-tests (Depends-on): Add progname.
42679         * tests/test-linkedhash_list.c: Include progname.h.
42680         (main): Call set_program_name.
42681
42682         * modules/carray-list-tests (Depends-on): Add progname.
42683         * tests/test-carray_list.c: Include progname.h.
42684         (main): Call set_program_name.
42685
42686         * modules/avltreehash-list-tests (Depends-on): Add progname.
42687         * tests/test-avltreehash_list.c: Include progname.h.
42688         (main): Call set_program_name.
42689
42690         * modules/avltree-oset-tests (Depends-on): Add progname.
42691         * tests/test-avltree_oset.c: Include progname.h.
42692         (main): Call set_program_name.
42693
42694         * modules/avltree-list-tests (Depends-on): Add progname.
42695         * tests/test-avltree_list.c: Include progname.h.
42696         (main): Call set_program_name.
42697
42698         * modules/array-oset-tests (Depends-on): Add progname.
42699         * tests/test-array_oset.c: Include progname.h.
42700         (main): Call set_program_name.
42701
42702         * modules/array-list-tests (Depends-on): Add progname.
42703         * tests/test-array_list.c: Include progname.h.
42704         (main): Call set_program_name.
42705
42706         * modules/argp-tests (Depends-on): Add progname.
42707         * tests/test-argp.c: Include argp.h first. Include progname.h.
42708         (main): Call set_program_name.
42709
42710 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42711
42712         * doc/gnulib-tool.texi (Initial import): Reword description of
42713         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42714         limited effect even if defined after the first system include.
42715
42716 2007-03-01  Bruno Haible  <bruno@clisp.org>
42717
42718         * build-aux/config.libpath: Update to libtool-1.5.22.
42719         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42720
42721 2007-03-01  Bruno Haible  <bruno@clisp.org>
42722
42723         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42724         foo_CFLAGS.
42725         Reported by Ralf Wildenhues.
42726
42727 2007-03-01  Bruno Haible  <bruno@clisp.org>
42728
42729         * build-aux/install-reloc: Remove object files left over by some
42730         compilers.
42731         Reported by Ralf Wildenhues.
42732
42733 2007-03-01  Bruno Haible  <bruno@clisp.org>
42734
42735         * build-aux/install-reloc: Break long lines.
42736
42737 2007-03-01  Bruno Haible  <bruno@clisp.org>
42738
42739         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42740         Reported by Ralf Wildenhues.
42741
42742 2007-03-01  Bruno Haible  <bruno@clisp.org>
42743
42744         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42745         include ordering constraints.
42746
42747 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42748
42749         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42751         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42752         as another example.
42753         * lib/time_.h: Fix misspelling.
42754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42755         Require gl_HEADER_TIME_H_DEFAULTS.
42756         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42757         * m4/time_r.m4 (gl_TIME_R): Likewise.
42758         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42759
42760 2007-03-01  Bruno Haible  <bruno@clisp.org>
42761
42762         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42763         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42764
42765 2007-03-01  Jim Meyering  <jim@meyering.net>
42766
42767         * modules/xreadlink (Maintainer): Add my name.
42768         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42769
42770 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42771             Bruno Haible  <bruno@clisp.org>
42772
42773         * build-aux/install-reloc: Compile also c-ctype.c.
42774         * build-aux/relocatable.sh.in: New file.
42775         * doc/relocatable.texi: New file.
42776         * doc/relocatable-maint.texi: New file.
42777         * doc/gnulib.texi: Include relocatable-maint.texi.
42778         * lib/progreloc.c: Include unistd.h unconditionally.
42779         * lib/relocwrapper.c: Include unistd.h unconditionally.
42780         Include c-ctype.h.
42781         (add_dotbin): Use c_tolower.
42782         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42783         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42784         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42785         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42786         to m4/relocatable-lib.m4.
42787         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42788         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42789         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42790         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42791         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42792         * modules/relocatable: New file.
42793         * modules/relocatable-lib: New file.
42794         * modules/relocatable-script: New file.
42795
42796 2007-02-28  Bruno Haible  <bruno@clisp.org>
42797
42798         Import --enable-relocatable infrastructure.
42799         * build-aux/config.libpath: New file, from GNU gettext.
42800         * build-aux/install-reloc: New file, from GNU gettext.
42801         * build-aux/reloc-ldflags: New file, from GNU gettext.
42802         * lib/relocatable.h: New file, from GNU gettext.
42803         * lib/relocatable.c: New file, from GNU gettext.
42804         * lib/relocwrapper.c: New file, from GNU gettext.
42805         * m4/relocatable.m4: New file, from GNU gettext.
42806
42807 2007-02-28  Bruno Haible  <bruno@clisp.org>
42808
42809         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42810
42811         * modules/xreadlink: New file, from GNU gettext with modifications.
42812         * lib/xreadlink.c: New file, from GNU gettext.
42813         * lib/xreadlink.h: Add comments.
42814         (xreadlink): New declaration.
42815
42816         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42817         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42818         lib/xreadlink-with-size.c.
42819         (configure.ac): Remove gl_XREADLINK invocation.
42820         (Makefile.am): Augment lib_SOURCES.
42821         * m4/xreadlink.m4: Remove file.
42822         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42823         (xreadlink_with_size): Renamed from xreadink.
42824         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42825         * modules/canonicalize (Depends-on): Replace xreadlink with
42826         xreadlink-with-size.
42827         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42828
42829 2007-02-25  Jim Meyering  <jim@meyering.net>
42830
42831         * build-aux/announce-gen: When complaining about excess arguments,
42832         list them.
42833
42834 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42835
42836         * README: Document signed integer overflow situation more
42837         accurately.
42838
42839 2007-02-25  Bruno Haible  <bruno@clisp.org>
42840
42841         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42842         'a' or 'A' conversion.
42843
42844 2007-02-25  Bruno Haible  <bruno@clisp.org>
42845
42846         * modules/filename: Renamed from modules/pathname.
42847         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42848         lib/concatpath.c with lib/concat-filename.c.
42849         (Makefile.am): Update.
42850         (Include): Replace pathname.h with filename.h.
42851         * lib/filename.h: Renamed from lib/pathname.h.
42852         (concatenated_filename): Renamed from concatenated_pathname.
42853         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42854         (concatenated_filename): Renamed from concatenated_pathname.
42855         * lib/findprog.c: Include filename.h instead of pathname.h.
42856         (find_in_path): Update.
42857         * lib/javacomp.c: Include filename.h instead of pathname.h.
42858         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42859         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42860         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42861         is_oldgcj_14_13_usable, is_javac_usable): Update.
42862         * lib/javaexec.c: Include filename.h instead of pathname.h.
42863         (execute_java_class): Update.
42864         * modules/findprog: Update.
42865         * modules/javacomp: Update.
42866         * modules/javaexec: Update.
42867         * MODULES.html.sh (File system functions): Add 'filename', remove
42868         'pathname'.
42869
42870 2007-02-25  Bruno Haible  <bruno@clisp.org>
42871
42872         * modules/printf-frexpl-tests: New file.
42873         * tests/test-printf-frexpl.c: New file.
42874
42875         * modules/printf-frexpl: New file.
42876         * lib/printf-frexpl.h: New file.
42877         * lib/printf-frexpl.c: New file.
42878         * m4/printf-frexpl.m4: New file.
42879
42880 2007-02-25  Bruno Haible  <bruno@clisp.org>
42881
42882         * modules/printf-frexp-tests: New file.
42883         * tests/test-printf-frexp.c: New file.
42884
42885         * modules/printf-frexp: New file.
42886         * lib/printf-frexp.h: New file.
42887         * lib/printf-frexp.c: New file.
42888         * m4/printf-frexp.m4: New file.
42889
42890 2007-02-25  Bruno Haible  <bruno@clisp.org>
42891
42892         Assume automake >= 1.10 for the tests.
42893         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42894         * modules/arctwo-tests: Likewise.
42895         * modules/argp-tests: Likewise.
42896         * modules/avltree-list-tests: Likewise.
42897         * modules/avltree-oset-tests: Likewise.
42898         * modules/avltreehash-list-tests: Likewise.
42899         * modules/carray-list-tests: Likewise.
42900         * modules/crc-tests: Likewise.
42901         * modules/des-tests: Likewise.
42902         * modules/gc-arcfour-tests: Likewise.
42903         * modules/gc-arctwo-tests: Likewise.
42904         * modules/gc-des-tests: Likewise.
42905         * modules/gc-hmac-md5-tests: Likewise.
42906         * modules/gc-hmac-sha1-tests: Likewise.
42907         * modules/gc-md2-tests: Likewise.
42908         * modules/gc-md4-tests: Likewise.
42909         * modules/gc-md5-tests: Likewise.
42910         * modules/gc-pbkdf2-sha1-tests: Likewise.
42911         * modules/gc-rijndael-tests: Likewise.
42912         * modules/gc-sha1-tests: Likewise.
42913         * modules/gc-tests: Likewise.
42914         * modules/getaddrinfo-tests: Likewise.
42915         * modules/hmac-md5-tests: Likewise.
42916         * modules/hmac-sha1-tests: Likewise.
42917         * modules/linked-list-tests: Likewise.
42918         * modules/linkedhash-list-tests: Likewise.
42919         * modules/lock-tests: Likewise.
42920         * modules/md2-tests: Likewise.
42921         * modules/md4-tests: Likewise.
42922         * modules/md5-tests: Likewise.
42923         * modules/rbtree-list-tests: Likewise.
42924         * modules/rbtree-oset-tests: Likewise.
42925         * modules/rbtreehash-list-tests: Likewise.
42926         * modules/read-file-tests: Likewise.
42927         * modules/rijndael-tests: Likewise.
42928         * modules/stdint-tests: Likewise.
42929         * modules/tls-tests: Likewise.
42930
42931 2007-02-24  Bruno Haible  <bruno@clisp.org>
42932
42933         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42934         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42935         function; instead check whether isnan with a double argument links.
42936         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42937         function; instead check whether isnan with a 'long double' argument
42938         links.
42939         Reported by Eric Blake <ebb9@byu.net>.
42940
42941 2007-02-24  Bruno Haible  <bruno@clisp.org>
42942
42943         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42944         defined.
42945         * lib/isnanl.c: Remove all code. Just include isnan.c.
42946         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42947
42948 2007-02-25  Jim Meyering  <jim@meyering.net>
42949
42950         Avoid conflicting types for 'unsetenv' on FreeBSD.
42951         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42952         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42953         in stdlib.h.
42954
42955 2007-02-24  Bruno Haible  <bruno@clisp.org>
42956
42957         * modules/isnanl-nolibm-tests: New file.
42958         * tests/test-isnanl.c: New file.
42959
42960         * modules/isnanl-nolibm: New file.
42961         * lib/isnanl.h: New file.
42962         * lib/isnanl.c: New file.
42963         * m4/isnanl.m4: New file.
42964
42965 2007-02-24  Bruno Haible  <bruno@clisp.org>
42966
42967         * modules/isnan-nolibm-tests: New file.
42968         * tests/test-isnan.c: New file.
42969
42970         * modules/isnan-nolibm: New file.
42971         * lib/isnan.h: New file.
42972         * lib/isnan.c: New file.
42973         * m4/isnan.m4: New file.
42974
42975 2007-02-24  Bruno Haible  <bruno@clisp.org>
42976
42977         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42978         assume that an exponent fits in 20 bits.
42979
42980 2007-02-24  Jim Meyering  <jim@meyering.net>
42981
42982         * m4/regex.m4: Update the description of the configure-time option,
42983         --without-included-regex, to state accurately what the defaults are,
42984         and perhaps to give people an idea why using this option is risky.
42985
42986 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42987
42988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42989         loops on small arguments.  This attempts to avoid the problem
42990         Bruno Haible reported for AIX 4.3.2 in
42991         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42992
42993 2007-02-23  Bruno Haible  <bruno@clisp.org>
42994
42995         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
42996         Needed for help2man.
42997
42998 2007-02-23  Karl Berry  <karl@gnu.org>
42999
43000         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
43001         exists, foo.h should be cvs-ignored, not committed.
43002
43003 2007-02-23  Eric Blake  <ebb9@byu.net>
43004
43005         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
43006         * lib/stat-time.h (includes): Likewise.
43007         * lib/utimecmp.c (includes): Likewise.
43008         * lib/utimens.h (includes): Likewise.
43009         * lib/getdate.y (includes): Also include "timespec.h" for use
43010         internal to the module.
43011         * modules/utimens (Depends-on): Revert yesterday's patch.
43012         * modules/nanosleep (Depends-on): Add missing dependency.
43013
43014 2007-02-22  Bruno Haible  <bruno@clisp.org>
43015
43016         * lib/glob.c: Don't include getlogin_r.h.
43017
43018 2007-02-22  Jim Meyering  <jim@meyering.net>
43019
43020         * modules/utimens (Depends-on): Add timespec, required for
43021         utimens.h's inclusion of timespec.h.
43022
43023 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
43024
43025         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
43026         long unreadable paths in GNU/Linux.  Problem reported by Andreas
43027         Schwab in
43028         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
43029         I'll try to think of a better way to fix the Solaris problem.
43030
43031         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
43032         like glibc; on Solaris 10, it fails with errno == EINVAL.
43033         POSIX says the behavior is unspecified if the first argument is NULL,
43034         so play it safe and never pass NULL to the system getcwd.
43035
43036 2007-02-21  Jim Meyering  <jim@meyering.net>
43037
43038         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
43039         of gettimeofday.  It would conflict with the one now always
43040         provided via sys_time_.h.  Reported by Matthew Woehlke, as
43041         an IRIX 6.5 build failure.
43042
43043 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43044
43045         Minor fixups to port to Solaris 10 with Sun C 5.8.
43046         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
43047         * modules/getcwd (Depends-on): Add dirfd.
43048         * lib/putenv.c (putenv): #undef it.
43049         (rpl_putenv): New decl.
43050         (malloc, free): Include <stdlib.h> rather than prototyping separately.
43051
43052 2007-02-20  Bruno Haible  <bruno@clisp.org>
43053
43054         * modules/stdio-tests: New file.
43055         * tests/test-stdio.c: New file.
43056
43057         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
43058         (Depends-on): Add stdio.
43059         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43060         (Include): Use <stdio.h> instead of vsnprintf.h.
43061         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43062         HAVE_DECL_VSNPRINTF.
43063         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
43064
43065         * modules/snprintf (Files): Remove lib/snprintf.h.
43066         (Depends-on): Add stdio.
43067         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43068         (Include): Use <stdio.h> instead of snprintf.h.
43069         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43070         HAVE_DECL_SNPRINTF.
43071         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
43072         * lib/getaddrinfo.c: Likewise.
43073
43074         * modules/stdio: New file.
43075         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
43076         * lib/snprintf.h: Remove file.
43077         * lib/vsnprintf.h: Remove file.
43078         * lib/.cppi-disable: Remove snprintf.h.
43079         * m4/stdio_h.m4: New file.
43080         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
43081
43082 2007-02-20  Jim Meyering  <jim@meyering.net>
43083
43084         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
43085         used by e.g., mingw.  From Bruno Haible.
43086
43087 2007-02-19  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
43090         warnings.
43091         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43092
43093 2007-02-19  Bruno Haible  <bruno@clisp.org>
43094
43095         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
43096         from mingw users.
43097
43098 2007-02-19  Bruno Haible  <bruno@clisp.org>
43099
43100         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
43101         warnings.
43102         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
43103
43104 2007-02-19  Jim Meyering  <jim@meyering.net>
43105
43106         Don't use FD after a successful "fdopendir (fd)".
43107         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
43108         Reset it by calling dirfd on the just-obtained DIR*.
43109
43110         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
43111         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
43112
43113 2007-02-18  Bruno Haible  <bruno@clisp.org>
43114
43115         * lib/readlink.c: Include <unistd.h>.
43116         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
43117         HAVE_READLINK.
43118         * modules/readlink (Depends-on): Add unistd.
43119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43120         (Include): Add <unistd.h>.
43121
43122         * lib/getlogin_r.h: Remove file.
43123         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
43124         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
43125         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
43126         HAVE_DECL_GETLOGIN_R.
43127         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
43128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43129         (Include): Use <unistd.h> instead of getlogin_r.h.
43130
43131         * lib/getcwd.h: Remove file.
43132         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
43133         * lib/xgetcwd.c: Likewise.
43134         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
43135         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
43136         * modules/getcwd (Files): Remove lib/getcwd.h.
43137         (Depends-on): Add unistd.
43138         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43139         (Include): Use <unistd.h> instad of getcwd.h.
43140
43141         * lib/ftruncate.c: Include <unistd.h> first.
43142         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
43143         Set HAVE_FTRUNCATE.
43144         * modules/ftruncate (Depends-on): Add unistd.
43145         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43146
43147         * lib/fchdir.c: Include <unistd.h> first.
43148         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
43149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
43150         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
43151         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43152         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
43153
43154         * lib/dup2.c: Include <unistd.h> first.
43155         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43156         HAVE_DUP2.
43157         * modules/dup2 (Depends-on): Add unistd.
43158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43159
43160         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43161         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43162         REPLACE_CHOWN. Don't define chown as a macro here.
43163         * modules/chown (Depends-on): Add unistd.
43164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43165
43166         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43167         Add definition for GL_LINK_WARNING.
43168         (chown, dup2): New declarations.
43169         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43170         link warning.
43171         (ftruncate): New declaration.
43172         (getcwd): New declaration, taken from old getcwd.h.
43173         (getlogin_r): New declaration, taken from old getlogin_r.h.
43174         (readlink): New declaration.
43175         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43176         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43177         (gl_PREREQ_UNISTD): Remove macro.
43178         (gl_UNISTD_MODULE_INDICATOR): New macro.
43179         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43180         many new variables. Don't set UNISTD_H.
43181         * modules/unistd (Description): Change.
43182         (Depends-on): Add link-warning.
43183         (configure.ac): Update.
43184         (Makefile.am): Create unistd.h always. Substitute many new variables
43185         into it.
43186
43187 2007-02-18  Bruno Haible  <bruno@clisp.org>
43188
43189         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43190         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43191         HAVE_GETSUBOPT.
43192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43193         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43194         * lib/getsubopt.h: Remove file.
43195         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43196         (Depends-on): Add stdlib.
43197         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43198         (Includes): Use <stdlib.h> instead of getsubopt.h.
43199         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43200         Set HAVE_GETSUBOPT.
43201         * lib/getsubopt.c: Don't include getsubopt.h.
43202
43203 2007-02-18  Bruno Haible  <bruno@clisp.org>
43204
43205         * modules/fchdir (Depends-on): Add dup2.
43206
43207 2007-02-18  Bruno Haible  <bruno@clisp.org>
43208
43209         * lib/stdlib_.h: Handle glibc's special invocation convention
43210         specially.
43211
43212 2007-02-18  Bruno Haible  <bruno@clisp.org>
43213
43214         * modules/stdlib-tests: New file.
43215         * tests/test-stdlib.c: New file.
43216
43217         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43218         (Depends-on): Add stdlib.
43219         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43220         (Includes): Use <stdlib.h> instead of mkstemp.h.
43221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43222         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43223         * lib/mkstemp.c: Don't include mkstemp.h.
43224         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43225         * lib/stdlib--.h: Don't include mkstemp.h.
43226
43227         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43228         (Depends-on): Add stdlib.
43229         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43230         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43231         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43232         HAVE_MKDTEMP.
43233         * lib/mkdtemp.c: Don't include mkdtemp.h.
43234         * lib/clean-temp.c: Don't include mkdtemp.h.
43235
43236         * modules/exit (Files): Remove lib/exit.h.
43237         (Depends-on): Add stdlib.
43238         (Makefile.am): Remove lib_SOURCES.
43239         (Include): Use <stdlib.h> instead of exit.h.
43240         * lib/argmatch.c: Don't include exit.h.
43241         * lib/execute.c: Likewise.
43242         * lib/pagealign_alloc.c: Likewise.
43243         * lib/pipe.c: Likewise.
43244         * lib/wait-process.c: Likewise.
43245         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43246         * lib/exitfail.c: Likewise.
43247         * lib/savewd.c: Likewise.
43248         * lib/xsetenv.c: Likewise.
43249
43250         * modules/stdlib: New file.
43251         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43252         and extra comments about mkstemp().
43253         * lib/exit.h: Remove file.
43254         * lib/mkdtemp.h: Remove file.
43255         * lib/mkstemp.h: Remove file.
43256         * m4/stdlib_h.m4: New file.
43257         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43258
43259 2007-02-18  Bruno Haible  <bruno@clisp.org>
43260
43261         * modules/math-tests: New file.
43262         * tests/test-math.c: New file.
43263
43264         * modules/math: New file.
43265         * modules/mathl (Files): Remove lib/mathl.h.
43266         (Depends-on): Add math.
43267         (Makefile.am): Don't mention mathl.h.
43268         (Include): Use <math.h> instead of mathl.h.
43269         * lib/math_.h: New file.
43270         * lib/mathl.h: Remove file.
43271         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43272         mathl.h.
43273         * lib/asinl.c: Likewise.
43274         * lib/atanl.c: Likewise.
43275         * lib/ceill.c: Likewise.
43276         * lib/cosl.c: Likewise.
43277         * lib/expl.c: Likewise.
43278         * lib/floorl.c: Likewise.
43279         * lib/frexpl.c: Likewise.
43280         * lib/ldexpl.c: Likewise.
43281         * lib/logl.c: Likewise.
43282         * lib/sincosl.c: Likewise.
43283         * lib/sinl.c: Likewise.
43284         * lib/sqrtl.c: Likewise.
43285         * lib/tanl.c: Likewise.
43286         * lib/trigl.c: Likewise.
43287         * m4/math_h.m4: New file.
43288         * MODULES.html.sh (Mathematics): Add math.
43289
43290 2007-02-17  Bruno Haible  <bruno@clisp.org>
43291
43292         * modules/wctype-tests: New file.
43293         * tests/test-wctype.c: New file.
43294
43295         * modules/wchar-tests: New file.
43296         * tests/test-wchar.c: New file.
43297
43298         * modules/unistd-tests: New file.
43299         * tests/test-unistd.c: New file.
43300
43301         * modules/time-tests: New file.
43302         * tests/test-time.c: New file.
43303
43304         * modules/sysexits-tests: New file.
43305         * tests/test-sysexits.c: New file.
43306
43307         * modules/sys_time-tests: New file.
43308         * tests/test-sys_time.c: New file.
43309
43310         * modules/sys_stat-tests: New file.
43311         * tests/test-sys_stat.c: New file.
43312
43313         * modules/sys_socket-tests: New file.
43314         * tests/test-sys_socket.c: New file.
43315
43316         * modules/sys_select-tests: New file.
43317         * tests/test-sys_select.c: New file.
43318
43319         * modules/string-tests: New file.
43320         * tests/test-string.c: New file.
43321
43322         * modules/stdbool-tests: New file.
43323         * tests/test-stdbool.c: New file.
43324
43325         * modules/netinet_in-tests: New file.
43326         * tests/test-netinet_in.c: New file.
43327
43328         * modules/inttypes-tests: New file.
43329         * tests/test-inttypes.c: New file.
43330
43331         * modules/fcntl-tests: New file.
43332         * tests/test-fcntl.c: New file.
43333
43334         * modules/byteswap-tests: New file.
43335         * tests/test-byteswap.c: New file.
43336
43337         * modules/arpa_inet-tests: New file.
43338         * tests/test-arpa_inet.c: New file.
43339
43340 2007-02-17  Bruno Haible  <bruno@clisp.org>
43341
43342         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43343         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43344         if the corresponding module is not enabled. Emit link warnings if
43345         the function is used nevertheless.
43346         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43347         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43348         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43349         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43350         * modules/inttypes (Depends-on): Add link-warning.
43351         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43352         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43353         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43354         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43355         * modules/imaxdiv (configure.ac): Likewise.
43356         * modules/strtoimax (configure.ac): Likewise.
43357         * modules/strtoumax (configure.ac): Likewise.
43358
43359 2007-02-17  Bruno Haible  <bruno@clisp.org>
43360
43361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43362         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43363         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43364         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43365
43366 2007-02-17  Bruno Haible  <bruno@clisp.org>
43367
43368         * modules/link-warning: New file.
43369         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43370         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43371         * modules/string (Depends-on): Add link-warning.
43372         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43373         string.h.
43374         * MODULES.html.sh (Support for building libraries and executables): Add
43375         link-warning.
43376
43377 2007-02-17  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43380         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43381         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43382         long lines.
43383
43384 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43385             Bruno Haible  <bruno@clisp.org>
43386
43387         * modules/tmpfile: New file.
43388         * lib/tmpfile.c: New file.
43389         * m4/tmpfile.m4: New file.
43390         * MODULES.html.sh (func_all_modules): New section "Input/output".
43391
43392 2007-02-15  Bruno Haible  <bruno@clisp.org>
43393
43394         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43395         (supports_delete_on_close): New function.
43396         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43397
43398 2007-02-14  Bruno Haible  <bruno@clisp.org>
43399
43400         * modules/mbspcasecmp-tests: New file.
43401         * tests/test-mbspcasecmp.sh: New file.
43402         * tests/test-mbspcasecmp.c: New file.
43403
43404         New module mbspcasecmp.
43405         * modules/mbspcasecmp: New file.
43406         * lib/mbspcasecmp.c: New file.
43407         * lib/string_.h (strncasecmp): Change warning message.
43408         (mbspcasecmp): New declaration.
43409         * m4/mbspcasecmp.m4: New file.
43410         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43411         GNULIB_MBSPCASECMP.
43412         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43413         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43414
43415 2007-02-14  Bruno Haible  <bruno@clisp.org>
43416
43417         * modules/mbsncasecmp-tests: New file.
43418         * tests/test-mbsncasecmp.sh: New file.
43419         * tests/test-mbsncasecmp.c: New file.
43420
43421         New module mbsncasecmp.
43422         * modules/mbsncasecmp: New file.
43423         * lib/mbsncasecmp.c: New file.
43424         * lib/string_.h (mbsncasecmp): New declaration.
43425         * m4/mbsncasecmp.m4: New file.
43426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43427         GNULIB_MBSNCASECMP.
43428         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43429         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43430
43431 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43432
43433         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43434         Verify that it doesn't overlap with our flags.
43435         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43436         do not have the desired effect in multibyte locales; instead, use
43437         mbscasecmp.
43438         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43439         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43440         we don't require GNU fnmatch ourselves (if our users require it, they
43441         should do so explicitly).
43442
43443         Fix regex code so it doesn't rely on strcasecmp.
43444         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43445         Otherwise, include gnulib's langinfo.h.
43446         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43447         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43448         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43449         * modules/regex (FILES): Remove m4/codeset.m4.
43450         (Depends-on): Add localcharset.  Remove strcase.
43451
43452 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43453
43454         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43455         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43456
43457 2007-02-13  Bruno Haible  <bruno@clisp.org>
43458
43459         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43461
43462 2007-02-12  Bruno Haible  <bruno@clisp.org>
43463
43464         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43465         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43466         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43467         time warning rather than a link error.
43468
43469 2007-02-12  Bruno Haible  <bruno@clisp.org>
43470
43471         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43472         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43473         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43474
43475 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43476
43477         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43478         args, not 2.
43479
43480 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43481
43482         New module 'time', so that apps can include <time.h> as per
43483         POSIX and GNU instead of separate include files like time_r.h
43484         and timegm.h.  This implementation tries out a simpler approach
43485         for replacing decls in standard include files (as compared to
43486         the string module), somewhat as an experiment.
43487
43488         * config/srclist.txt: Comment out mktime.c for now.
43489         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43490         since it doesn't apply any more.  Use generic wording instead.
43491         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43492         'time'.
43493         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43494         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43495         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43496         Don't include <sys/types.h>; no longer needed since we assume C89.
43497         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43498         * lib/strftime.c: Likewise.
43499         * lib/time_r.c: Likewise.
43500         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43501         * lib/nanosleep.c: Include <time.h> first, to check interface.
43502         * lib/strptime.c: Likewise.
43503         * lib/time_r.c: Likewise.
43504         * lib/timegm.c: Likewise.
43505         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43506         needed.
43507         * lib/timegm.c: Don't include timegm.h; no longer needed.
43508         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43509         time.h now handles any problems in that area.
43510         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43511         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43512         that time.h defines struct timespec.
43513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43514         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43515         handles that.
43516         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43517         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43518         needed.  Set REPLACE_LOCALTIME.
43519         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43520         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43521         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43522         nanosleep; time_h.m4 now does that.  Don't require
43523         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43524         module handles this now.
43525         * modules/getdate (Depends-on): Remove timespec.  Add time.
43526         * modules/nanosleep (Depends-on): Likewise.
43527         * modules/stat-time (Depends-on): Likewise.
43528         * modules/nanosleep (Include): Include time.h, not timespec.h.
43529         * modules/strptime (Files): Remove lib/strptime.h.
43530         (Depends-on): Add extensions, time.
43531         (Include): Include time.h, not strptime.h.
43532         * modules/time_r (Files): Remove lib/time_r.h.
43533         (Depends-on): Add time.
43534         (Include): Include time.h, not time_r.h.
43535         * modules/timegm: Likewise.
43536         * modules/timespec (Description): Now does timespec-related decls
43537         of our own, instead of struct timespec itself.
43538         (Depends-on): Add time; remove extensions.
43539         (Maintainer): Add self.
43540         * modules/utimecmp (Depends-on): Add time; remove timespec.
43541         * modules/utimens (Depends-on): Likewise.
43542         * modules/xnanosleep (Depends-on): Likewise.
43543
43544 2007-02-11  Bruno Haible  <bruno@clisp.org>
43545
43546         * lib/c-strstr.c: Include allocsa.h.
43547         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43548         * lib/c-strcasestr.c: Include allocsa.h.
43549         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43550         * lib/strcasestr.c: Include allocsa.h.
43551         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43552         * lib/mbsstr.c: Include allocsa.h.
43553         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43554         allocsa/freesa instead of malloc/free.
43555         * lib/mbscasestr.c: Include allocsa.h.
43556         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43557         allocsa/freesa instead of malloc/free.
43558         * modules/c-strstr (Depends-on): Add allocsa.
43559         * modules/c-strcasestr (Depends-on): Likewise.
43560         * modules/strcasestr (Depends-on): Likewise.
43561         * modules/mbsstr (Depends-on): Likewise.
43562         * modules/mbscasestr (Depends-on): Likewise.
43563
43564 2007-02-11  Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43567
43568         * modules/mbsspn-tests: New file.
43569         * tests/test-mbsspn.sh: New file.
43570         * tests/test-mbsspn.c: New file.
43571
43572 2007-02-11  Bruno Haible  <bruno@clisp.org>
43573
43574         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43575
43576         * modules/mbspbrk-tests: New file.
43577         * tests/test-mbspbrk.sh: New file.
43578         * tests/test-mbspbrk.c: New file.
43579
43580 2007-02-11  Bruno Haible  <bruno@clisp.org>
43581
43582         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43583         unneeded cast.
43584
43585         * modules/mbscspn-tests: New file.
43586         * tests/test-mbscspn.sh: New file.
43587         * tests/test-mbscspn.c: New file.
43588
43589 2007-02-11  Bruno Haible  <bruno@clisp.org>
43590
43591         * modules/mbscasecmp-tests: New file.
43592         * tests/test-mbscasecmp.sh: New file.
43593         * tests/test-mbscasecmp.c: New file.
43594
43595 2007-02-11  Bruno Haible  <bruno@clisp.org>
43596
43597         Ensure O(n) worst-case complexity of mbscasestr.
43598         * lib/mbscasestr.c: Include stdbool.h.
43599         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43600         functions.
43601         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43602         the bookkeeping indicates that it's worth it.
43603         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43604
43605         * modules/mbscasestr-tests: New file.
43606         * tests/test-mbscasestr1.c: New file.
43607         * tests/test-mbscasestr2.sh: New file.
43608         * tests/test-mbscasestr2.c: New file.
43609         * tests/test-mbscasestr3.sh: New file.
43610         * tests/test-mbscasestr3.c: New file.
43611         * tests/test-mbscasestr4.sh: New file.
43612         * tests/test-mbscasestr4.c: New file.
43613         * m4/locale-tr.m4: New file.
43614
43615 2007-02-11  Bruno Haible  <bruno@clisp.org>
43616
43617         Ensure O(n) worst-case complexity of mbsstr.
43618         * lib/mbsstr.c: Include stdbool.h.
43619         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43620         functions.
43621         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43622         bookkeeping indicates that it's worth it.
43623         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43624
43625         * modules/mbsstr-tests: New file.
43626         * tests/test-mbsstr1.c: New file.
43627         * tests/test-mbsstr2.sh: New file.
43628         * tests/test-mbsstr2.c: New file.
43629         * tests/test-mbsstr3.sh: New file.
43630         * tests/test-mbsstr3.c: New file.
43631         * m4/locale-fr.m4: New file.
43632
43633 2007-02-11  Bruno Haible  <bruno@clisp.org>
43634
43635         * lib/mbsrchr.c (mbsrchr): Fix bug.
43636
43637         * modules/mbsrchr-tests: New file.
43638         * tests/test-mbsrchr.sh: New file.
43639         * tests/test-mbsrchr.c: New file.
43640
43641 2007-02-11  Bruno Haible  <bruno@clisp.org>
43642
43643         * lib/mbschr.c (mbschr): Fix bug.
43644
43645         * modules/mbschr-tests: New file.
43646         * tests/test-mbschr.sh: New file.
43647         * tests/test-mbschr.c: New file.
43648         * m4/locale-zh.m4: New file.
43649
43650 2007-02-11  Bruno Haible  <bruno@clisp.org>
43651
43652         Support for copying multibyte string iterators.
43653         * lib/mbiter.h: Include <string.h>.
43654         (mbiter_multi_copy): New function.
43655         (mbi_copy): New macro.
43656         * lib/mbuiter.h: Include <string.h>.
43657         (mbuiter_multi_copy): New function.
43658         (mbui_copy): New macro.
43659
43660 2007-02-11  Bruno Haible  <bruno@clisp.org>
43661
43662         New module mbslen.
43663         * modules/mbslen: New file.
43664         * lib/mbslen.c: New file.
43665         * lib/string_.h (mbslen): New declaration.
43666         * m4/mbslen.m4: New file.
43667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43668         GNULIB_MBSLEN.
43669         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43670         * MODULES.html.sh (Internationalization functions): Add mbslen.
43671
43672 2007-02-11  Bruno Haible  <bruno@clisp.org>
43673
43674         Ensure O(n) worst-case complexity of strcasestr substitute.
43675         * lib/strcasestr.c: Include stdbool.h.
43676         (knuth_morris_pratt): New function.
43677         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43678         bookkeeping indicates that it's worth it.
43679         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43680
43681         * modules/strcasestr-tests: New file.
43682         * tests/test-strcasestr.c: New file.
43683
43684 2007-02-11  Bruno Haible  <bruno@clisp.org>
43685
43686         Ensure O(n) worst-case complexity of c_strcasestr.
43687         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43688         (knuth_morris_pratt): New function.
43689         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43690         the bookkeeping indicates that it's worth it.
43691         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43692
43693         * modules/c-strcasestr-tests: New file.
43694         * tests/test-c-strcasestr.c: New file.
43695
43696 2007-02-11  Bruno Haible  <bruno@clisp.org>
43697
43698         Ensure O(n) worst-case complexity of c_strstr.
43699         * lib/c-strstr.c: Include stdbool.h, string.h.
43700         (knuth_morris_pratt): New function.
43701         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43702         bookkeeping indicates that it's worth it.
43703         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43704
43705         * lib/c-strstr.c: Complete rewrite for maintainability.
43706
43707         * modules/c-strstr-tests: New file.
43708         * tests/test-c-strstr.c: New file.
43709
43710 2007-02-11  Bruno Haible  <bruno@clisp.org>
43711
43712         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43713         5.2.1 and earlier, whereby \055 was treated just like the range
43714         delimiter '-'.
43715         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43716
43717 2007-02-08  Bruno Haible  <bruno@clisp.org>
43718
43719         * modules/regex (Depends-on): Add stdbool.
43720         Reported by Dalibor Topic <robilad@kaffe.org>.
43721
43722 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43723
43724         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43725         Prefer returning from main to exiting from it.
43726         Remove unnecessary parens after sizeof.
43727
43728 2007-02-05  Bruno Haible  <bruno@clisp.org>
43729
43730         New module mbssep.
43731         * modules/mbssep: New file.
43732         * lib/mbssep.c: New file.
43733         * lib/string_.h (strsep): Add a conditional link warning.
43734         (mbssep): New declaration.
43735         * m4/mbssep.m4: New file.
43736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43737         GNULIB_MBSSEP.
43738         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43739         * MODULES.html.sh (Internationalization functions): Add mbssep.
43740
43741 2007-02-05  Bruno Haible  <bruno@clisp.org>
43742
43743         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43744         Optimize search in case of 1 delimiter.
43745
43746 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43747
43748         * lib/acl.h: Include sys/types.h before sys/acl.h.
43749
43750 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43751
43752         Merge upstream fix for glibc bugzilla #3957:
43753
43754         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43755
43756         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43757         bit for RE_HAT_LISTS_NOT_NEWLINE.
43758         (build_charclass_op): Remove bogus comment.
43759
43760 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43761
43762         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43763
43764 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43765
43766         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43767         * lib/memmem.c [!defined _LIBC]: Include config.h.
43768
43769 2007-02-04  Bruno Haible  <bruno@clisp.org>
43770
43771         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43772         warning message.
43773
43774 2007-02-04  Bruno Haible  <bruno@clisp.org>
43775
43776         New module mbstok_r.
43777         * modules/mbstok_r: New file.
43778         * lib/mbstok_r.c: New file.
43779         * lib/string_.h (strtok_r): Change argument names to match the
43780         comments. Add a conditional link warning.
43781         (mbstok_r): New declaration.
43782         * m4/mbstok_r.m4: New file.
43783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43784         GNULIB_MBSTOK_R.
43785         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43786         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43787
43788 2007-02-04  Bruno Haible  <bruno@clisp.org>
43789
43790         New module mbsspn.
43791         * modules/mbsspn: New file.
43792         * lib/mbsspn.c: New file.
43793         * lib/string_.h (strspn): Add a conditional link warning.
43794         (mbsspn): New declaration.
43795         * m4/mbsspn.m4: New file.
43796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43797         GNULIB_MBSSPN.
43798         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43799         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43800
43801 2007-02-04  Bruno Haible  <bruno@clisp.org>
43802
43803         New module mbspbrk.
43804         * modules/mbspbrk: New file.
43805         * lib/mbspbrk.c: New file.
43806         * lib/string_.h (strpbrk): Add a conditional link warning.
43807         (mbspbrk): New declaration.
43808         * m4/mbspbrk.m4: New file.
43809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43810         GNULIB_MBSPBRK.
43811         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43812         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43813
43814 2007-02-04  Bruno Haible  <bruno@clisp.org>
43815
43816         New module mbscspn.
43817         * modules/mbscspn: New file.
43818         * lib/mbscspn.c: New file.
43819         * lib/string_.h (strcspn): Add a conditional link warning.
43820         (mbscspn): New declaration.
43821         * m4/mbscspn.m4: New file.
43822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43823         GNULIB_MBSCSPN.
43824         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43825         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43826
43827 2007-02-04  Bruno Haible  <bruno@clisp.org>
43828
43829         New module mbscasestr, reduced goal of strcasestr.
43830         * modules/mbscasestr: New file.
43831         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43832         (mbscasestr): Renamed from strcasestr.
43833         * lib/strcasestr.c: Don't include mbuiter.h.
43834         (strcasestr): Remove support for multibyte locales.
43835         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43836         Change the conditional link warning.
43837         (mbscasestr): New declaration.
43838         * m4/mbscasestr.m4: New file.
43839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43840         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43841         REPLACE_STRCASESTR.
43842         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43844         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43845         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43846         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43847         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43848         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43849         (Depends-on): Remove mbuiter.
43850         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43851
43852 2007-02-04  Bruno Haible  <bruno@clisp.org>
43853
43854         Simplify handling of strncasecmp.
43855         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43856         the conditional link warning.
43857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43858         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43859         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43860         * modules/strcase (configure.ac): Don't invoke
43861         gl_STRING_MODULE_INDICATOR.
43862         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43863
43864 2007-02-04  Bruno Haible  <bruno@clisp.org>
43865
43866         New module mbscasecmp, reduced goal of strcasecmp.
43867         * modules/mbscasecmp: New file.
43868         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43869         (mbscasecmp): Renamed from strcasecmp.
43870         * lib/strcasecmp.c: Don't include mbuiter.h.
43871         (strcasecmp): Remove support for multibyte locales.
43872         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43873         Change the conditional link warning.
43874         (mbscasecmp): New declaration.
43875         * m4/mbscasecmp.m4: New file.
43876         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43877         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43878         REPLACE_STRCASECMP.
43879         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43880         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43881         GNULIB_MBSCASECMP.
43882         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43883         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43884         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43885         (Depends-on): Remove mbuiter.
43886         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43887
43888 2007-02-04  Bruno Haible  <bruno@clisp.org>
43889
43890         New module mbsstr. Remove module strstr.
43891         * modules/mbsstr: New file.
43892         * modules/strstr: Remove file.
43893         * lib/mbsstr.c: Renamed from lib/strstr.c.
43894         (mbsstr): Renamed from strstr.
43895         * lib/string_.h (strstr): Remove declaration. Change the conditional
43896         link warning.
43897         (mbsstr): New declaration.
43898         * m4/mbsstr.m4: New file.
43899         * m4/strstr.m4: Remove file.
43900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43901         REPLACE_STRSTR.
43902         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43903         Don't initialize GNULIB_STRSTR.
43904         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43905         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43906         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43907         (Support for systems lacking ANSI C 89): Remove strstr.
43908
43909 2007-02-04  Bruno Haible  <bruno@clisp.org>
43910
43911         New module mbsrchr.
43912         * modules/mbsrchr: New file.
43913         * lib/mbsrchr.c: New file.
43914         * lib/string_.h (strrchr): Add a conditional link warning.
43915         (mbsrchr): New declaration.
43916         * m4/mbsrchr.m4: New file.
43917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43918         GNULIB_MBSRCHR.
43919         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43920         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43921
43922 2007-02-04  Bruno Haible  <bruno@clisp.org>
43923
43924         New module mbschr.
43925         * modules/mbschr: New file.
43926         * lib/mbschr.c: New file.
43927         * lib/string_.h (strchr): Add a conditional link warning.
43928         (mbschr): New declaration.
43929         * m4/mbschr.m4: New file.
43930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43931         GNULIB_MBSCHR.
43932         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43933         * MODULES.html.sh (Internationalization functions): Add mbschr.
43934
43935 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43936
43937         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43938
43939         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43940
43941 2007-02-04  Bruno Haible  <bruno@clisp.org>
43942
43943         New module description section 'configure.ac-early'.
43944         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43945         (func_get_autoconf_early_snippet): New function.
43946         (func_import, func_create_testdir): Use it. Remove special cases for
43947         modules 'extensions' and 'lock'.
43948         * modules/extensions (configure.ac-early): Require
43949         gl_USE_SYSTEM_EXTENSIONS.
43950         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43951
43952 2007-02-04  Bruno Haible  <bruno@clisp.org>
43953
43954         Make use of gcj-4.3's -fsource and -ftarget option.
43955         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43956         and if so try the options -fsource and -ftarget.
43957         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43958         source_version, ftarget_option, target_version arguments.
43959         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43960         (is_envjavac_oldgcj_14_14_usable): Renamed from
43961         is_envjavac_gcj_14_14_usable.
43962         (is_envjavac_oldgcj_14_13_usable): Renamed from
43963         is_envjavac_gcj_14_13_usable.
43964         (is_gcj_present): Update.
43965         (is_gcj_43, is_gcj43_usable): New functions.
43966         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43967         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43968         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43969         try the options -fsource and -ftarget.
43970
43971 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43972
43973         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43974         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43975         larger value.
43976
43977 2007-02-03  Jim Meyering  <jim@meyering.net>
43978
43979         Give tools a better chance to allocate space for very large buffers.
43980         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43981
43982         Make pwd and readlink work also when run with an unreadable parent dir
43983         on systems with openat support.
43984         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43985         provided getcwd function, even when we have openat support.
43986         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43987
43988 2007-02-02  Bruno Haible  <bruno@clisp.org>
43989
43990         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43991         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43992         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43993         portability problems if one of these functions is only used on specific
43994         platforms.
43995         Reported by Paul Eggert.
43996
43997 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
43998
43999         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
44000         is causing more trouble than it's curing.
44001         * lib/regex_internal.h (__mempcpy): Remove.
44002         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
44003         (and make the code a tad smaller to boot).
44004         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
44005
44006 2007-02-02  Jim Meyering  <jim@meyering.net>
44007
44008         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
44009         section, not in the Makefile.am: one.
44010
44011 2007-02-02  Eric Blake  <ebb9@byu.net>
44012
44013         * lib/strchrnul.c: Always include config.h first.
44014
44015         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
44016         gnulib strstr is not necessary here.
44017
44018 2007-02-02  Simon Josefsson  <simon@josefsson.org>
44019
44020         * m4/socklen.m4: Fix typo.
44021
44022 2007-02-02  Eric Blake  <ebb9@byu.net>
44023
44024         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
44025         * modules/netinet_in (Makefile.am): Likewise.
44026
44027 2007-02-01  Bruno Haible  <bruno@clisp.org>
44028
44029         * lib/string_.h (GL_LINK_WARNING): New macro.
44030         (strcasecmp, strstr, strcasestr): If provided by the system,
44031         conditionally define as a macro that leads to a warning instead of to
44032         an error.
44033         (strncasecmp): Conditionally define as a macro that leads to a warning.
44034
44035 2007-02-01  Karl Berry  <karl@gnu.org>
44036
44037         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
44038
44039 2007-02-01  Bruno Haible  <bruno@clisp.org>
44040
44041         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
44042         renamings.
44043
44044 2007-02-01  Eric Blake  <ebb9@byu.net>
44045
44046         * modules/regex (Depends-on): Revert dependence on mempcpy.
44047         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
44048         module's definition of mempcpy.
44049         Reported by Paul Eggert.
44050
44051 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
44052
44053         * lib/string_.h: If the gnulib module XYZ is not present, undefine
44054         the symbol XYZ before redefining it.  This fixes a problem with
44055         programs that don't use XYZ, when compiled on systems that define
44056         XYZ to something else.
44057
44058 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
44059
44060         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
44061         occurs when "mkdir -m foo" creates a setgid directory that is (1)
44062         writeable to group or other and (2) is intended to have a special
44063         mode bit that is set or cleared.  In such a case, the directory
44064         should be neither group- nor other-writeable until the special
44065         mode bits are right.
44066
44067 2007-01-31  Eric Blake  <ebb9@byu.net>
44068
44069         * modules/mountlist (Depends-on): Add strstr.
44070
44071         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
44072         bug.
44073         * modules/string (Makefile.am): Remove redundant replacement.
44074         * modules/regex (Depends-on): Add mempcpy.
44075
44076 2007-01-31  Bruno Haible  <bruno@clisp.org>
44077
44078         New module description field 'Link'.
44079         * gnulib-tool (func_usage): Document --extract-link-directive.
44080         (sed_extract_prog): Recognize 'Link' directive.
44081         (func_get_link_directive): New function.
44082         (func_import): Show summary of link directives.
44083         Handle --extract-link-directive option.
44084         * modules/acl (Link): New section.
44085         * modules/clock-time (Link): New section.
44086         * modules/euidaccess (Link): New section.
44087         * modules/gettext (Link): New section.
44088         * modules/iconv (Link): New section.
44089         * modules/lock (Link): New section.
44090         * modules/nanosleep (Link): New section.
44091         * modules/readline (Link): New section.
44092
44093 2007-01-27  Bruno Haible  <bruno@clisp.org>
44094
44095         Enforce the use of gnulib modules for unportable <string.h> functions.
44096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
44097         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
44098         (gl_HEADER_STRING_H_BODY): Require it.
44099         * lib/string_.h: If the gnulib module XYZ is not present, redefine
44100         the symbol XYZ to one that gives a link error.
44101         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
44102         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
44103         * modules/mempcpy (configure.ac): Likewise.
44104         * modules/memrchr (configure.ac): Likewise.
44105         * modules/stpcpy (configure.ac): Likewise.
44106         * modules/stpncpy (configure.ac): Likewise.
44107         * modules/strcase (configure.ac): Likewise.
44108         * modules/strcasestr (configure.ac): Likewise.
44109         * modules/strchrnul (configure.ac): Likewise.
44110         * modules/strdup (configure.ac): Likewise.
44111         * modules/strndup (configure.ac): Likewise.
44112         * modules/strnlen (configure.ac): Likewise.
44113         * modules/strpbrk (configure.ac): Likewise.
44114         * modules/strsep (configure.ac): Likewise.
44115         * modules/strstr (configure.ac): Likewise.
44116         * modules/strtok_r (configure.ac): Likewise.
44117
44118 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
44119
44120         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
44121
44122 2007-01-30  Jim Meyering  <jim@meyering.net>
44123
44124         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
44125
44126 2007-01-29  Bruno Haible  <bruno@clisp.org>
44127
44128         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
44129         * lib/execute.c: Likewise.
44130         * lib/pipe.c: Likewise.
44131         * lib/printf-args.h: Likewise.
44132         * lib/printf-args.c: Likewise.
44133         * lib/printf-parse.c: Likewise.
44134         * lib/vasnprintf.c: Likewise.
44135
44136 2007-01-29  Eric Blake  <ebb9@byu.net>
44137
44138         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
44139         declaration.
44140
44141 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44142
44143         * lib/strptime.h (strptime): Use 'restrict' for args where
44144         POSIX requires this.
44145         * lib/strptime.c (strptime): Likewise.
44146         Change license notice from LGPL to GPL, since gnulib-tool will
44147         change this as needed.
44148         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
44149         defined.
44150         Include "strptime.h" first, to check interface.
44151         Do not #undef _LIBC and _NL_CURRENT.
44152         Do not include <stdlib.h>; no longer needed.
44153         Include "time_r.h" and declare ptime_locale_status
44154         only if _LIBC is not defined.
44155         (__P): Remove unused macro.
44156         (match_string): Bring back glibc version, but use it only if _LIBC
44157         is defined.
44158         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44159         Remove unnecessary assertion and abort() call.
44160         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44161         * m4/strptime.m4: Fix serial number comment.
44162         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44163         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44164         (Depends-on): Add time_r.
44165
44166 2007-01-29  Bruno Haible  <bruno@clisp.org>
44167
44168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44169         strptime.
44170         * modules/strptime (Depends-on): Add stdbool.
44171         * lib/strptime.h: Include <time.h> always. Add comments.
44172
44173 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44174
44175         * modules/strptime: New file.
44176         * lib/strptime.h: New file.
44177         * lib/strptime.c: New file.
44178         * m4/strptime.m4: New file.
44179
44180 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44181
44182         * MODULES.html.sh: New module mpsort.
44183         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44184
44185         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44186         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44187         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44188         All uses changed.
44189         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44190         All uses changed.
44191         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44192         to _Restrict_.
44193         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44194         the parameter matches the prototype.
44195
44196 2007-01-28  Jim Meyering  <jim@meyering.net>
44197
44198         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44199         sys/time.h here, reverting that part of the previous patch:
44200         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44201
44202 2007-01-28  Bruno Haible  <bruno@clisp.org>
44203
44204         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44205         value of $(SYS_TIME_H).
44206         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44207         remove it conditionally, too. [added by Jim Meyering]
44208         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44209         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44210         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44211         GETTIMEOFDAY_REPLACEMENT to 1.
44212
44213 2007-01-28  Bruno Haible  <bruno@clisp.org>
44214
44215         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44216         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44218         Set UNISTD_H instead of UNISTD_H2.
44219         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44220
44221 2007-01-28  Bruno Haible  <bruno@clisp.org>
44222
44223         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44224         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44225
44226 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44227
44228         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44229         (func_create_testdir): Ensure C locale for `grep' and `tr'
44230         character ranges.
44231         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44232         ACLOCAL_AMFLAGS parsing state machine.
44233
44234 2007-01-27  Bruno Haible  <bruno@clisp.org>
44235
44236         * modules/unistr/base: Update.
44237
44238 2007-01-27  Bruno Haible  <bruno@clisp.org>
44239
44240         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44241         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44242         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44243         modules/unistr/u32-mbtouc.
44244         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44245         * lib/unistr.h: Update.
44246         * lib/linebreak.c: Update.
44247         * modules/unistr/u32-mbtouc: Renamed from
44248         modules/unistr/u32-mbtouc-safe.
44249         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44250         * lib/unistr.h: Update.
44251         * lib/unistr/u32-to-u8.c: Update.
44252         * lib/unistr/u32-to-u16.c: Update.
44253
44254 2007-01-27  Bruno Haible  <bruno@clisp.org>
44255
44256         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44257         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44258         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44259         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44260         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44261         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44262         modules/unistr/u16-mbtouc.
44263         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44264         * lib/unistr.h: Update.
44265         * lib/linebreak.c: Update.
44266         * modules/linebreak: Update.
44267         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44268         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44269         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44270         * modules/unistr/u16-mbtouc: Renamed from
44271         modules/unistr/u16-mbtouc-safe.
44272         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44273         * lib/unistr.h: Update.
44274         * lib/unistr/u16-to-u8.c: Update.
44275         * modules/unistr/u16-to-u8: Update.
44276         * lib/unistr/u16-to-u32.c: Update.
44277         * modules/unistr/u16-to-u32: Update.
44278
44279 2007-01-27  Bruno Haible  <bruno@clisp.org>
44280
44281         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44282         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44283         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44284         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44285         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44286         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44287         modules/unistr/u8-mbtouc.
44288         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44289         * lib/unistr.h: Update.
44290         * lib/striconveh.c: Update.
44291         * modules/striconveh: Update.
44292         * lib/linebreak.c: Update.
44293         * modules/linebreak: Update.
44294         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44295         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44296         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44297         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44298         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44299         * lib/unistr.h: Update.
44300         * lib/striconveh.c: Update.
44301         * modules/striconveh: Update.
44302         * lib/unistr/u8-to-u16.c: Update.
44303         * modules/unistr/u8-to-u16: Update.
44304         * lib/unistr/u8-to-u32.c: Update.
44305         * modules/unistr/u8-to-u32: Update.
44306
44307 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44308
44309         Sync from Libtool.
44310         * lib/argz.c: Do not include strings.h nor memory.h, include
44311         string.h unconditionally.  Patch by Simon Josefsson.
44312
44313 2007-01-27  Bruno Haible  <bruno@clisp.org>
44314
44315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44316         from gl_HEADER_STRING_H_BODY.
44317         (gl_HEADER_STRING_H_BODY): Require it.
44318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44319         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44320         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44321         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44322         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44323         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44325         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44326         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44327         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44328         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44329         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44330         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44331         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44332         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44333
44334 2007-01-27  Bruno Haible  <bruno@clisp.org>
44335
44336         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44337         check_PROGRAMS into noinst_PROGRAMS.
44338         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44339         check_PROGRAMS in this case.
44340         (func_import): Set for_test to false.
44341         (func_create_testdir): Set for_test to true.
44342
44343 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44344             Bruno Haible  <bruno@clisp.org>
44345
44346         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44347         (Depends-on): Add string.
44348         (Includes): Use <string.h> instead of strcasestr.h.
44349         * modules/string (Makefile.am): Also substitute the value of
44350         REPLACE_STRCASESTR.
44351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44352         assume strcasestr is declared in <string.h> not <strings.h>. Also
44353         set REPLACE_STRCASESTR.
44354         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44355         REPLACE_STRCASESTR.
44356         * lib/strcasestr.h: Remove file.
44357         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44358         * lib/string_.h (strcasestr): New declaration.
44359
44360 2007-01-27  Bruno Haible  <bruno@clisp.org>
44361
44362         * lib/string_.h: Use 'extern'.
44363
44364 2007-01-27  Jim Meyering  <jim@meyering.net>
44365
44366         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44367         of set-but-not-used local, "q".
44368
44369         * lib/mempcpy.c: Include <config.h> before <string.h>.
44370         This fixes a compilation error on HP-UX, due to the system's
44371         "restrict"-using mempcpy prototype.
44372
44373 2007-01-26  Bruno Haible  <bruno@clisp.org>
44374
44375         Small optimization.
44376         * lib/javacomp.c: Include c-strstr.h.
44377          (is_envjavac_gcj): Use c_strstr instead of strstr.
44378         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44379
44380 2007-01-26  Bruno Haible  <bruno@clisp.org>
44381
44382         * MODULES.html.sh (Unicode string functions): Add the new modules.
44383
44384         * modules/uniconv/u32-strconv-to-locale: New file.
44385         * lib/uniconv/u32-strconv-to-locale.c: New file.
44386
44387         * modules/uniconv/u16-strconv-to-locale: New file.
44388         * lib/uniconv/u16-strconv-to-locale.c: New file.
44389
44390         * modules/uniconv/u8-strconv-to-locale: New file.
44391         * lib/uniconv/u8-strconv-to-locale.c: New file.
44392
44393         * modules/uniconv/u32-strconv-from-locale: New file.
44394         * lib/uniconv/u32-strconv-from-locale.c: New file.
44395
44396         * modules/uniconv/u16-strconv-from-locale: New file.
44397         * lib/uniconv/u16-strconv-from-locale.c: New file.
44398
44399         * modules/uniconv/u8-strconv-from-locale: New file.
44400         * lib/uniconv/u8-strconv-from-locale.c: New file.
44401
44402         * modules/uniconv/u32-strconv-to-enc: New file.
44403         * lib/uniconv/u32-strconv-to-enc.c: New file.
44404         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44405         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44406
44407         * modules/uniconv/u16-strconv-to-enc: New file.
44408         * lib/uniconv/u16-strconv-to-enc.c: New file.
44409         * lib/uniconv/u-strconv-to-enc.h: New file.
44410         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44411         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44412
44413         * modules/uniconv/u8-strconv-to-enc: New file.
44414         * lib/uniconv/u8-strconv-to-enc.c: New file.
44415         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44416         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44417
44418         * modules/uniconv/u32-strconv-from-enc: New file.
44419         * lib/uniconv/u32-strconv-from-enc.c: New file.
44420         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44421         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44422
44423         * modules/uniconv/u16-strconv-from-enc: New file.
44424         * lib/uniconv/u16-strconv-from-enc.c: New file.
44425         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44426         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44427
44428         * modules/uniconv/u8-strconv-from-enc: New file.
44429         * lib/uniconv/u8-strconv-from-enc.c: New file.
44430         * lib/uniconv/u-strconv-from-enc.h: New file.
44431         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44432         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44433
44434         * modules/uniconv/u32-conv-from-enc: New file.
44435         * lib/uniconv/u32-conv-from-enc.c: New file.
44436         * modules/uniconv/u32-conv-from-enc-tests: New file.
44437         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44438
44439         * modules/uniconv/u16-conv-from-enc: New file.
44440         * lib/uniconv/u16-conv-from-enc.c: New file.
44441         * lib/uniconv/u-conv-from-enc.h: New file.
44442         * modules/uniconv/u16-conv-from-enc-tests: New file.
44443         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44444
44445         * modules/uniconv/u8-conv-from-enc: New file.
44446         * lib/uniconv/u8-conv-from-enc.c: New file.
44447         * modules/uniconv/u8-conv-from-enc-tests: New file.
44448         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44449
44450         * modules/uniconv/base: New file.
44451         * lib/uniconv.h: New file.
44452
44453 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44454
44455         * doc/gnulib-tool.texi (Initial import): Update to match current
44456         behavior with strdup module.
44457         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44458         * lib/memmem.h: Remove; all uses removed.  This is now done
44459         by <string.h>.
44460         * lib/mempcpy.h: Likewise.
44461         * lib/memrchr.h: Likewise.
44462         * lib/stpcpy.h: Likewise.
44463         * lib/stpncpy.h: Likewise.
44464         * lib/strcase.h: Likewise.
44465         * lib/strchrnul.h: Likewise.
44466         * lib/strdup.h: Likewise.
44467         * lib/strndup.h: Likewise.
44468         * lib/strnlen.h: Likewise.
44469         * lib/strpbrk.h: Likewise.
44470         * lib/strsep.h: Likewise.
44471         * lib/strstr.h: Likewise.
44472         * lib/strtok_r.h: Likewise.
44473         * lib/string_.h: New file.
44474         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44475         Rely on <string.h> instead.
44476         * lib/canon-host.c: Likewise.
44477         * lib/chdir-long.c: Likewise.
44478         * lib/concatpath.c: Likewise.
44479         * lib/exclude.c: Likewise.
44480         * lib/fchdir.c: Likewise.
44481         * lib/getaddrinfo.c: Likewise.
44482         * lib/getcwd.c: Likewise.
44483         * lib/getsubopt.c: Likewise.
44484         * lib/glob.c: Likewise.
44485         * lib/hard-locale.c: Likewise.
44486         * lib/iconvme.c: Likewise.
44487         * lib/javacomp.c: Likewise.
44488         * lib/mempcpy.c: Likewise.
44489         * lib/memrchr.c: Likewise.
44490         * lib/regex_internal.h: Likewise.
44491         * lib/stpncpy.c: Likewise.
44492         * lib/strcasecmp.c: Likewise.
44493         * lib/strchrnul.c: Likewise.
44494         * lib/strdup.c: Likewise.
44495         * lib/striconv.c: Likewise.
44496         * lib/striconveh.c: Likewise.
44497         * lib/striconveha.c: Likewise.
44498         * lib/strncasecmp.c: Likewise.
44499         * lib/strndup.c: Likewise.
44500         * lib/strnlen.c: Likewise.
44501         * lib/strsep.c: Likewise.
44502         * lib/strstr.c: Likewise.
44503         * lib/strtok_r.c: Likewise.
44504         * lib/userspec.c: Likewise.
44505         * lib/w32spawn.h: Likewise.
44506         * lib/xstrndup.c: Likewise.
44507         * lib/mountlist.c (strstr): Remove decl.
44508         * m4/string_h.m4: New file.
44509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44510         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44511         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44512         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44513         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44514         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44515         Set REPLACE_STRCASECMP if necessary.
44516         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44517         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44518         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44519         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44520         HAVE_DECL_STRDUP if necessary.
44521         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44522         since gl_FUNC_STRNDUP does that now.
44523         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44524         Check for decl here...
44525         (gl_PREREQ_STRNLEN): ... not here.
44526         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44527         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44528         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44529         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44530         necessary.
44531         * modules/string: New file.
44532         * modules/memmem (Files): Remove special-purpose include file.
44533         (Depends-on): Add string.
44534         (Include): Include <string.h>, not the removed file.
44535         * modules/mempcpy: Likewise.
44536         * modules/memrchr: Likewise.
44537         * modules/stpcpy: Likewise.
44538         * modules/stpncpy: Likewise.
44539         * modules/strcase: Likewise.
44540         * modules/strchrnul: Likewise.
44541         * modules/strdup: Likewise.
44542         * modules/strndup: Likewise.
44543         * modules/strnlen: Likewise.
44544         * modules/strpbrk: Likewise.
44545         * modules/strsep: Likewise.
44546         * modules/strstr: Likewise.
44547         * modules/strtok_r: Likewise.
44548         * tests/test-dirname.c: Don't include "strdup.h", since
44549         <string.h> now suffices.
44550         * tests/test-memmem.c: Don't include "memmem.h", since
44551         <string.h> now suffices.
44552
44553 2007-01-25  Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44556         *resultp is 0.
44557
44558         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44559         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44560         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44561         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44562
44563         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44564         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44565         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44566         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44567         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44568         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44569
44570 2007-01-24  Bruno Haible  <bruno@clisp.org>
44571
44572         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44574         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44575         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44576         gl_FUNC_FTS_CORE.
44577         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44578         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44579         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44580         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44581         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44582         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44583         gl_FUNC_FCHOWNAT.
44584         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44585         gl_FUNC_STRFTIME.
44586         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44587         Reported by Ralf Wildenhues.
44588
44589 2007-01-24  Bruno Haible  <bruno@clisp.org>
44590
44591         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44592         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44593         gl_GETADDRINFO.
44594         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44595         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44596         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44597
44598 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44599
44600         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44601         Don't use 'exit'; just return from 'main'.
44602         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44603
44604         * lib/fnmatch_.h: Readjust white space and comments to match
44605         glibc, to avoid spurious diffs.
44606
44607 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44608
44609         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44610         2004-12-01 change by Jakub Jelinek, since this code won't compile
44611         if !LIBC.  Problem reported by Bob Proulx.
44612
44613 2007-01-23  Bruno Haible  <bruno@clisp.org>
44614
44615         * lib/striconveh.c: Include c-strcaseeq.h.
44616         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44617         * modules/striconveh (Depends-on): Add c-strcaseeq.
44618
44619 2007-01-23  Bruno Haible  <bruno@clisp.org>
44620
44621         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44622
44623         * modules/c-strcaseeq: New file.
44624         * lib/c-strcaseeq.h: New file.
44625
44626         * modules/streq: New file.
44627         * lib/streq.h: New file.
44628
44629 2007-01-23  Bruno Haible  <bruno@clisp.org>
44630
44631         * modules/striconveha-tests: New file.
44632         * tests/test-striconveha.c: New file.
44633
44634         * lib/striconveha.h: Include <stdbool.h>.
44635         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44636         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44637         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44638         (mem_iconveha): New function.
44639         (str_iconveha_notranslit): Renamed from str_iconveha.
44640         (str_iconveha): New function.
44641         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44642         c-strcase.
44643
44644 2007-01-23  Bruno Haible  <bruno@clisp.org>
44645
44646         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44647         encodings without forgiving before trying any encoding with handler.
44648         (str_iconveha): Try all encodings without forgiving before trying any
44649         encoding with handler.
44650
44651 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44652
44653         Import the following changes from libc.
44654
44655         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44656
44657         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44658
44659         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44660
44661         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44662         normal_bracket label.
44663
44664         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44665
44666         [BZ #361]
44667         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44668         to normal_bracket after fetching the next character.
44669
44670 2007-01-22  Bruno Haible  <bruno@clisp.org>
44671
44672         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44673         argument.
44674         * lib/striconveh.c (iconv_carefully_1): New function.
44675         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44676         argument.
44677         (str_cd_iconveh): Update.
44678         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44679         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44680         * tests/test-striconveh.c (MAGIC): New macro.
44681         (new_offsets): New function.
44682         (main): Test call with and without offsets.
44683
44684 2007-01-22  Bruno Haible  <bruno@clisp.org>
44685
44686         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44687         * modules/sys_select (Makefile.am): Likewise.
44688         * modules/sys_socket (Makefile.am): Likewise.
44689         * modules/sys_time (Makefile.am): Likewise.
44690
44691 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44692
44693         * modules/gettimeofday (License): Change from GPL to LGPL, since
44694         gettimeofday is a library function.
44695
44696 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44697
44698         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44699
44700 2007-01-21  Bruno Haible  <bruno@clisp.org>
44701
44702         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44703
44704 2007-01-21  Bruno Haible  <bruno@clisp.org>
44705
44706         * modules/striconveha: New file.
44707         * lib/striconveha.h: New file.
44708         * lib/striconveha.c: New file.
44709         * MODULES.html.sh (Internationalization functions): Add striconveha.
44710         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44711         string.
44712         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44713
44714 2007-01-21  Bruno Haible  <bruno@clisp.org>
44715
44716         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44717         * lib/striconveh.c (str_iconveh): Likewise.
44718
44719 2007-01-21  Bruno Haible  <bruno@clisp.org>
44720
44721         * lib/striconveh.h (mem_iconveh): New declaration.
44722         * lib/striconveh.c (mem_iconveh): New function.
44723         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44724
44725 2007-01-21  Bruno Haible  <bruno@clisp.org>
44726
44727         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44728
44729         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44730         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44731         original result buffer.
44732         (str_cd_iconveh): Update.
44733         * tests/test-striconveh.c (main): Update.
44734
44735         * lib/striconv.h (mem_cd_iconv): Change specification.
44736         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44737         result buffer.
44738         (str_cd_iconv): Update.
44739         * tests/test-striconv.c (main): Update.
44740
44741 2007-01-21  Bruno Haible  <bruno@clisp.org>
44742
44743         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44744
44745 2007-01-20  Jim Meyering  <jim@meyering.net>
44746
44747         * lib/userspec.c (parse_with_separator): If a user or group string
44748         starts with "+", skip the corresponding name-to-ID look-up, since
44749         such a look-up must fail: user and group names may not include "+".
44750
44751 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44752
44753         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44754         since we now assume the sys_time module.
44755         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44756         check for sys/time.h; no longer needed.
44757         * modules/poll (Depends-on): Depend on sys_time.
44758
44759 2007-01-18  Bruno Haible  <bruno@clisp.org>
44760
44761         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44762         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44763
44764         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44765         gettimeofday.
44766
44767         * tests/test-gettimeofday.c: Include <time.h>.
44768         (dummy): Remove variable.
44769
44770         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44771         gl_HEADER_SYS_TIME_H.
44772         (gl_HEADER_SYS_TIME_H): New macro.
44773
44774         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44775         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44776         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44777         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44778         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44779         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44780         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44781         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44782         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44783         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44784         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44785
44786         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44787         last change; it caused a compilation error when cross-compiling to
44788         Cygwin.
44789
44790 2007-01-18  Jim Meyering  <jim@meyering.net>
44791
44792         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44793         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44794         than the race-prone "test -d sys || mkdir sys".
44795         (configure.ac): Use AC_PROG_MKDIR_P.
44796         * modules/sys_select: Likewise.
44797         * modules/sys_socket: Likewise.
44798         * modules/sys_time: Likewise.
44799
44800 2007-01-18  Eric Blake  <ebb9@byu.net>
44801
44802         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44803         replace gettimeofday.
44804         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44805         name, to avoid infinite recursion.
44806
44807 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44808
44809         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44810         module sys_time.
44811         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44812         assume timespec.h defines struct timeval.
44813         * lib/settime.c: Likewise.
44814         * lib/utimens.c: Likewise.
44815         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44816         since we now assume the gettimeofday module.
44817         * lib/tempname.c (__gen_tempname): Likewise.
44818         * lib/gettimeofday.h: Remove.
44819         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44820         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44821         Include <time.h>, for 'time()'.
44822         (localtime_buffer_addr): Also use this workaround if
44823         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44824         to simplify the uses.  All uses changed.
44825         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44826         that #undef is inside {}, and 'const' follows type name consistently.
44827         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44828         (gettimeofday): Do not use the maximum possible value for
44829         tv->tv_usec, since that might break usages other than ls.c.
44830         Instead, we'll leave ls.c alone.  This undoes today's patch
44831         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44832         we've never observed the problem but might as well keep the
44833         canary.
44834         * lib/nanosleep.c: Include timespec.h first, for interface check.
44835         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44836         now assume the sys_time module.
44837         * lib/tempname.c: Likewise.
44838         * lib/timespec.h: Likewise.
44839         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44840         needed.
44841         * lib/strftime.c: Likewise.
44842         * lib/timespec.h: Likewise.
44843         * lib/posixtm.c: Include posixtm.h first, for interface check.
44844         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44845         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44846         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44847         * lib/sys_time_.h: New file.
44848         * lib/timespec.h (struct timespec): Use long int, not long.
44849         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44850         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44851         Remove obsolescent call to AC_HEADER_TIME.
44852         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44854         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44855         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44856         Likewise.
44857         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44858         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44859         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44860         into the sys_time module.  Check for gettimeofday just once.
44861         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44862         for gettimeofday signature to just check the signature.  Merely
44863         compile it, since linking doesn't test signature.  Improve test for
44864         whether gettimeofday.o is actually needed.
44865         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44866         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44867         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44868         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44869         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44870         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44871         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44872         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44873         than worrying about sys/time.h.
44874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44875         Don't bother worrying about TIME_WITH_SYS_TIME.
44876         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44877         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44878         * m4/sys_time_h.m4: New file.
44879         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44880         Don't include sys/time.h.  Return from main rather than exiting.
44881         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44882         all uses changed.
44883         * modules/gethrxtime (Depends-on): Add sys_time.
44884         * modules/gettime (Depends-on): Likewise.
44885         * modules/gettimeofday (Depends-on): Likewise.
44886         * modules/nanosleep (Depends-on): Likewise.
44887         * modules/settime (Depends-on): Likewise.
44888         * modules/tempname (Depends-on): Likewise.
44889         * modules/utimens (Depends-on): Likewise.
44890         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44891         (Include:) Change back to <sys/time.h>.
44892         (Maintainer:) Add self.
44893         * modules/sys_time: New file.
44894         * modules/tempname (Depends-on): Add gettimeofday.
44895         * tests/test-gettimeofday.c: Include <sys/time.h>
44896         rather than gettimeofday.h.
44897
44898 2007-01-17  Bruno Haible  <bruno@clisp.org>
44899
44900         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44901         the license default to GPL.
44902         (func_create_testdir): Don't complain if a module is LGPL and its
44903         tests module depends on GPLed modules.
44904
44905 2007-01-17  Bruno Haible  <bruno@clisp.org>
44906
44907         * lib/gettimeofday.c (gettimeofday): Add code for the case
44908         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44909         maximum possible value for tv->tv_usec, rather than the minimum one.
44910
44911 2005-10-08  Martin Lambers  <marlam@marlam.de>
44912 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44913 2007-01-16  Bruno Haible  <bruno@clisp.org>
44914
44915         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44916         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44917         gl_FUNC_GETTIMEOFDAY.
44918         (Include): Add gettimeofday.h.
44919         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44920         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44921         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44922         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44923         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44924         * lib/gettimeofday.h: New file.
44925         * lib/gettimeofday.c: Include <sys/timeb.h>.
44926         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44927         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44928         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44929         fall back on time().
44930
44931         * tests/test-gettimeofday.c: New file.
44932         * modules/gettimeofday-tests: New file.
44933
44934 2007-01-16  Eric Blake  <ebb9@byu.net>
44935
44936         * modules/fnmatch (Depends-on): Depend on wchar.
44937         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44938         * m4/fnmatch.m4: Likewise.
44939         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44940         * m4/mbchar.m4: Likewise.
44941         * modules/mbswidth (Depends-on): Depend on wchar.
44942         * lib/mbswidth.c: Assume <wchar.h>.
44943         * m4/mbswidth.m4: Likewise.
44944         * modules/quotearg (Depends-on): Depend on wchar.
44945         * lib/quotearg.c: Assume <wchar.h>.
44946         * m4/quotearg.m4: Likewise.
44947         * modules/regex (Depends-on): Depend on wchar.
44948         * lib/regex_internal.h: Assume <wchar.h>.
44949         * m4/regex.m4: Likewise.
44950         * modules/stdint (Depends-on): Depend on wchar.
44951         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44952         * m4/stdint.m4: Likewise.
44953         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44954         * modules/strftime (Depends-on): Depend on wchar.
44955         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44956         * modules/strtol (Depends-on): Depend on wchar.
44957         * lib/strtol.c: Assume <wchar.h>.
44958         * modules/wcwidth (Depends-on): Depend on wchar.
44959         * lib/wcwidth.h: Assume <wchar.h>.
44960         * m4/wcwidth.m4: Likewise.
44961
44962 2007-01-16  Bruno Haible  <bruno@clisp.org>
44963
44964         * modules/csharpexec-script: New, created from...
44965         * modules/csharpexec: ... this.
44966
44967 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44968
44969         * modules/javaexec-script: New, created from...
44970         * modules/javaexec: ... this.
44971
44972 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44973
44974         * modules/poll (Dependencies): Add sys_select.
44975
44976 2007-01-15  Jim Meyering  <jim@meyering.net>
44977
44978         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44979         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44980         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44981         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44982
44983 2007-01-15  Bruno Haible  <bruno@clisp.org>
44984
44985         * modules/striconveh: New file.
44986         * lib/striconveh.h: New file.
44987         * lib/striconveh.c: New file.
44988         * MODULES.html.sh (Internationalization functions): Add striconveh.
44989
44990         * modules/striconveh-tests: New file.
44991         * tests/test-striconveh.c: New file.
44992
44993 2007-01-15  Bruno Haible  <bruno@clisp.org>
44994
44995         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
44996         not from GNU libiconv or GNU libc.
44997
44998 2007-01-15  Bruno Haible  <bruno@clisp.org>
44999
45000         * doc/gnulib-intro.texi (Copyright): Explain the different license
45001         terms for module descriptions, autoconf macros, tests, documentation.
45002
45003 2007-01-14  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/striconv-tests: New file.
45006         * tests/test-striconv.c: New file.
45007
45008 2007-01-14  Bruno Haible  <bruno@clisp.org>
45009
45010         * modules/iconv-tests: New file.
45011         * tests/test-iconv.c: New file.
45012
45013 2007-01-14  Bruno Haible  <bruno@clisp.org>
45014
45015         * gnulib-tool (func_get_license): For test modules, use the license of
45016         the main module.
45017
45018 2007-01-14  Bruno Haible  <bruno@clisp.org>
45019
45020         * modules/iconv (Include): Clarify that <iconv.h> can only be included
45021         if iconv is found to exist.
45022
45023 2007-01-14  Bruno Haible  <bruno@clisp.org>
45024
45025         * modules/c-ctype-tests: New file.
45026         * tests/test-c-ctype.c: New file.
45027
45028 2007-01-14  Bruno Haible  <bruno@clisp.org>
45029
45030         * modules/binary-io-tests: New file.
45031         * tests/test-binary-io.sh: New file.
45032         * tests/test-binary-io.c: New file.
45033
45034 2007-01-14  Bruno Haible  <bruno@clisp.org>
45035
45036         * modules/array-oset-tests: New file.
45037         * tests/test-array_oset.c: New file.
45038
45039 2007-01-14  Bruno Haible  <bruno@clisp.org>
45040
45041         * modules/array-list-tests: New file.
45042         * tests/test-array_list.c: New file.
45043
45044 2007-01-14  Bruno Haible  <bruno@clisp.org>
45045
45046         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
45047         and make.
45048         Reported by Simon Josefsson in
45049         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
45050
45051 2007-01-14  Bruno Haible  <bruno@clisp.org>
45052
45053         * modules/allocsa-tests: New file.
45054         * tests/test-allocsa.c: New file.
45055
45056 2007-01-14  Bruno Haible  <bruno@clisp.org>
45057
45058         * modules/fchdir (Depends-on): Add absolute-header.
45059         * modules/unistd (Depends-on): Likewise.
45060
45061 2006-12-30  Bruno Haible  <bruno@clisp.org>
45062
45063         * modules/fchdir: New file.
45064         * modules/unistd (Files): Add lib/unistd_.h.
45065         (Makefile.am): Generate unistd.h from unistd_.h.
45066         * lib/fchdir.c: New file.
45067         * lib/dirent_.h: New file.
45068         * lib/unistd_.h: New file.
45069         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
45070         * m4/fchdir.m4: New file.
45071         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
45072         (gl_HEADER_UNISTD): Invoke it.
45073         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
45074         function.
45075         * lib/backupfile.c (opendir, closedir): Undefine.
45076         * lib/chown.c (open, close): Undefine.
45077         * lib/clean-temp.c (open, close): Undefine.
45078         * lib/copy-file.c (open, close): Undefine.
45079         * lib/execute.c (open, close): Undefine.
45080         * lib/fsusage.c (open, close): Undefine.
45081         * lib/gc-gnulib.c (open, close): Undefine.
45082         * lib/getcwd.c (opendir, closedir): Undefine.
45083         * lib/glob.c (opendir, closedir): Undefine.
45084         * lib/javacomp.c (open, close): Undefine.
45085         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
45086         * lib/openat-proc.c (open, close): Undefine.
45087         * lib/pagealign_alloc.c (open, close): Undefine.
45088         * lib/pipe.c (open, close): Undefine.
45089         * lib/progreloc.c (open, close): Undefine.
45090         * lib/savedir.c (opendir, closedir): Undefine.
45091         * lib/utime.c (open, close): Undefine.
45092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
45093
45094 2007-01-10  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
45097
45098 2007-01-12  Eric Blake  <ebb9@byu.net>
45099
45100         Provide a robust <wchar.h>.  Further simplifications are now
45101         possible in other modules, but not included here.
45102         * modules/wchar: New module.
45103         * m4/wchar.m4: New file.
45104         * lib/wchar_.h: Likewise.
45105         * modules/mbchar (Depends-on): Depend on wchar, as the first use
45106         of the new module.
45107         * MODULES.html.sh (Extended multibyte and wide character utilities):
45108         New section.
45109
45110 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
45111
45112         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
45113         to a reasonable default for memory allocation.
45114         (xreadlink): Don't allocate a huge buffer, to work around a buggy
45115         file system that reports garbage st_size values for symlinks.
45116         Problem reported by Liyang Hu.
45117
45118 2007-01-11  Simon Josefsson  <simon@josefsson.org>
45119
45120         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
45121         Emacs .#* auto-save files).
45122
45123 2007-01-11  Bruno Haible  <bruno@clisp.org>
45124
45125         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
45126         directory.
45127
45128 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45129
45130         Use @...@ consistently in lib/wctype_.h.
45131         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
45132         on it being set to 1 or 0.
45133         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
45134         go back to AC_SUBSTing it.
45135         * modules/wctype (Makefile.am): Undo previous change.
45136
45137 2007-01-10  Eric Blake  <ebb9@byu.net>
45138
45139         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
45140         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
45141         * modules/wctype (Makefile.am): Likewise.
45142         Reported by Chris McGuire.
45143
45144 2007-01-10  Jim Meyering  <jim@meyering.net>
45145
45146         fts.c: a small readability/maintainability improvement
45147         * lib/fts.c (fts_read): Make this code slightly more readable and
45148         maintainable by hoisting the "sp->fts_cur = p" assignments to
45149         immediately follow the statements that set P.  Derived from
45150         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
45151
45152 2007-01-10  Eric Blake  <ebb9@byu.net>
45153
45154         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45155         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45157         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45158         Reported by Chris McGuire.
45159
45160 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45161
45162         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45163         in sed script.
45164
45165 2007-01-09  Bruno Haible  <bruno@clisp.org>
45166
45167         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45168         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45169         variables.
45170         (func_module): Use them.
45171
45172 2007-01-09  Bruno Haible  <bruno@clisp.org>
45173
45174         * modules/unistr/base: New file.
45175         * lib/unistr.h: New file.
45176
45177         * modules/unistr/u8-to-u16: New file.
45178         * lib/unistr/u8-to-u16.c: New file.
45179
45180         * modules/unistr/u8-to-u32: New file.
45181         * lib/unistr/u8-to-u32.c: New file.
45182
45183         * modules/unistr/u16-to-u8: New file.
45184         * lib/unistr/u16-to-u8.c: New file.
45185
45186         * modules/unistr/u16-to-u32: New file.
45187         * lib/unistr/u16-to-u32.c: New file.
45188
45189         * modules/unistr/u32-to-u8: New file.
45190         * lib/unistr/u32-to-u8.c: New file.
45191
45192         * modules/unistr/u32-to-u16: New file.
45193         * lib/unistr/u32-to-u16.c: New file.
45194
45195         * modules/unistr/u8-check: New file.
45196         * modules/unistr/u16-check: New file.
45197         * modules/unistr/u32-check: New file.
45198         * lib/unistr/u8-check.c: New file.
45199         * lib/unistr/u16-check.c: New file.
45200         * lib/unistr/u32-check.c: New file.
45201
45202         * modules/unistr/u8-chr: New file.
45203         * modules/unistr/u16-chr: New file.
45204         * modules/unistr/u32-chr: New file.
45205         * lib/unistr/u8-chr.c: New file.
45206         * lib/unistr/u16-chr.c: New file.
45207         * lib/unistr/u32-chr.c: New file.
45208
45209         * modules/unistr/u8-cmp: New file.
45210         * modules/unistr/u16-cmp: New file.
45211         * modules/unistr/u32-cmp: New file.
45212         * lib/unistr/u8-cmp.c: New file.
45213         * lib/unistr/u16-cmp.c: New file.
45214         * lib/unistr/u32-cmp.c: New file.
45215
45216         * modules/unistr/u8-cpy: New file.
45217         * modules/unistr/u16-cpy: New file.
45218         * modules/unistr/u32-cpy: New file.
45219         * lib/unistr/u8-cpy.c: New file.
45220         * lib/unistr/u16-cpy.c: New file.
45221         * lib/unistr/u32-cpy.c: New file.
45222         * lib/unistr/u-cpy.h: New file.
45223
45224         * modules/unistr/u8-cpy-alloc: New file.
45225         * modules/unistr/u16-cpy-alloc: New file.
45226         * modules/unistr/u32-cpy-alloc: New file.
45227         * lib/unistr/u8-cpy-alloc.c: New file.
45228         * lib/unistr/u16-cpy-alloc.c: New file.
45229         * lib/unistr/u32-cpy-alloc.c: New file.
45230         * lib/unistr/u-cpy-alloc.h: New file.
45231
45232         * modules/unistr/u8-endswith: New file.
45233         * modules/unistr/u16-endswith: New file.
45234         * modules/unistr/u32-endswith: New file.
45235         * lib/unistr/u8-endswith.c: New file.
45236         * lib/unistr/u16-endswith.c: New file.
45237         * lib/unistr/u32-endswith.c: New file.
45238         * lib/unistr/u-endswith.h: New file.
45239
45240         * modules/unistr/u8-mblen: New file.
45241         * modules/unistr/u16-mblen: New file.
45242         * modules/unistr/u32-mblen: New file.
45243         * lib/unistr/u8-mblen.c: New file.
45244         * lib/unistr/u16-mblen.c: New file.
45245         * lib/unistr/u32-mblen.c: New file.
45246
45247         * modules/unistr/u8-mbtouc: New file.
45248         * modules/unistr/u16-mbtouc: New file.
45249         * modules/unistr/u32-mbtouc: New file.
45250         * lib/unistr/u8-mbtouc.c: New file.
45251         * lib/unistr/u16-mbtouc.c: New file.
45252         * lib/unistr/u32-mbtouc.c: New file.
45253
45254         * modules/unistr/u8-mbtouc-safe: New file.
45255         * modules/unistr/u16-mbtouc-safe: New file.
45256         * modules/unistr/u32-mbtouc-safe: New file.
45257         * lib/unistr/u8-mbtouc-safe.c: New file.
45258         * lib/unistr/u16-mbtouc-safe.c: New file.
45259         * lib/unistr/u32-mbtouc-safe.c: New file.
45260
45261         * modules/unistr/u8-move: New file.
45262         * modules/unistr/u16-move: New file.
45263         * modules/unistr/u32-move: New file.
45264         * lib/unistr/u8-move.c: New file.
45265         * lib/unistr/u16-move.c: New file.
45266         * lib/unistr/u32-move.c: New file.
45267         * lib/unistr/u-move.h: New file.
45268
45269         * modules/unistr/u8-next: New file.
45270         * modules/unistr/u16-next: New file.
45271         * modules/unistr/u32-next: New file.
45272         * lib/unistr/u8-next.c: New file.
45273         * lib/unistr/u16-next.c: New file.
45274         * lib/unistr/u32-next.c: New file.
45275
45276         * modules/unistr/u8-prev: New file.
45277         * modules/unistr/u16-prev: New file.
45278         * modules/unistr/u32-prev: New file.
45279         * lib/unistr/u8-prev.c: New file.
45280         * lib/unistr/u16-prev.c: New file.
45281         * lib/unistr/u32-prev.c: New file.
45282
45283         * modules/unistr/u8-set: New file.
45284         * modules/unistr/u16-set: New file.
45285         * modules/unistr/u32-set: New file.
45286         * lib/unistr/u8-set.c: New file.
45287         * lib/unistr/u16-set.c: New file.
45288         * lib/unistr/u32-set.c: New file.
45289         * lib/unistr/u-set.h: New file.
45290
45291         * modules/unistr/u8-startswith: New file.
45292         * modules/unistr/u16-startswith: New file.
45293         * modules/unistr/u32-startswith: New file.
45294         * lib/unistr/u8-startswith.c: New file.
45295         * lib/unistr/u16-startswith.c: New file.
45296         * lib/unistr/u32-startswith.c: New file.
45297         * lib/unistr/u-startswith.h: New file.
45298
45299         * modules/unistr/u8-stpcpy: New file.
45300         * modules/unistr/u16-stpcpy: New file.
45301         * modules/unistr/u32-stpcpy: New file.
45302         * lib/unistr/u8-stpcpy.c: New file.
45303         * lib/unistr/u16-stpcpy.c: New file.
45304         * lib/unistr/u32-stpcpy.c: New file.
45305         * lib/unistr/u-stpcpy.h: New file.
45306
45307         * modules/unistr/u8-stpncpy: New file.
45308         * modules/unistr/u16-stpncpy: New file.
45309         * modules/unistr/u32-stpncpy: New file.
45310         * lib/unistr/u8-stpncpy.c: New file.
45311         * lib/unistr/u16-stpncpy.c: New file.
45312         * lib/unistr/u32-stpncpy.c: New file.
45313         * lib/unistr/u-stpncpy.h: New file.
45314
45315         * modules/unistr/u8-strcat: New file.
45316         * modules/unistr/u16-strcat: New file.
45317         * modules/unistr/u32-strcat: New file.
45318         * lib/unistr/u8-strcat.c: New file.
45319         * lib/unistr/u16-strcat.c: New file.
45320         * lib/unistr/u32-strcat.c: New file.
45321         * lib/unistr/u-strcat.h: New file.
45322
45323         * modules/unistr/u8-strchr: New file.
45324         * modules/unistr/u16-strchr: New file.
45325         * modules/unistr/u32-strchr: New file.
45326         * lib/unistr/u8-strchr.c: New file.
45327         * lib/unistr/u16-strchr.c: New file.
45328         * lib/unistr/u32-strchr.c: New file.
45329
45330         * modules/unistr/u8-strcmp: New file.
45331         * modules/unistr/u16-strcmp: New file.
45332         * modules/unistr/u32-strcmp: New file.
45333         * lib/unistr/u8-strcmp.c: New file.
45334         * lib/unistr/u16-strcmp.c: New file.
45335         * lib/unistr/u32-strcmp.c: New file.
45336
45337         * modules/unistr/u8-strcpy: New file.
45338         * modules/unistr/u16-strcpy: New file.
45339         * modules/unistr/u32-strcpy: New file.
45340         * lib/unistr/u8-strcpy.c: New file.
45341         * lib/unistr/u16-strcpy.c: New file.
45342         * lib/unistr/u32-strcpy.c: New file.
45343         * lib/unistr/u-strcpy.h: New file.
45344
45345         * modules/unistr/u8-strcspn: New file.
45346         * modules/unistr/u16-strcspn: New file.
45347         * modules/unistr/u32-strcspn: New file.
45348         * lib/unistr/u8-strcspn.c: New file.
45349         * lib/unistr/u16-strcspn.c: New file.
45350         * lib/unistr/u32-strcspn.c: New file.
45351         * lib/unistr/u-strcspn.h: New file.
45352
45353         * modules/unistr/u8-strdup: New file.
45354         * modules/unistr/u16-strdup: New file.
45355         * modules/unistr/u32-strdup: New file.
45356         * lib/unistr/u8-strdup.c: New file.
45357         * lib/unistr/u16-strdup.c: New file.
45358         * lib/unistr/u32-strdup.c: New file.
45359         * lib/unistr/u-strdup.h: New file.
45360
45361         * modules/unistr/u8-strlen: New file.
45362         * modules/unistr/u16-strlen: New file.
45363         * modules/unistr/u32-strlen: New file.
45364         * lib/unistr/u8-strlen.c: New file.
45365         * lib/unistr/u16-strlen.c: New file.
45366         * lib/unistr/u32-strlen.c: New file.
45367         * lib/unistr/u-strlen.h: New file.
45368
45369         * modules/unistr/u8-strmblen: New file.
45370         * modules/unistr/u16-strmblen: New file.
45371         * modules/unistr/u32-strmblen: New file.
45372         * lib/unistr/u8-strmblen.c: New file.
45373         * lib/unistr/u16-strmblen.c: New file.
45374         * lib/unistr/u32-strmblen.c: New file.
45375
45376         * modules/unistr/u8-strmbtouc: New file.
45377         * modules/unistr/u16-strmbtouc: New file.
45378         * modules/unistr/u32-strmbtouc: New file.
45379         * lib/unistr/u8-strmbtouc.c: New file.
45380         * lib/unistr/u16-strmbtouc.c: New file.
45381         * lib/unistr/u32-strmbtouc.c: New file.
45382
45383         * modules/unistr/u8-strncat: New file.
45384         * modules/unistr/u16-strncat: New file.
45385         * modules/unistr/u32-strncat: New file.
45386         * lib/unistr/u8-strncat.c: New file.
45387         * lib/unistr/u16-strncat.c: New file.
45388         * lib/unistr/u32-strncat.c: New file.
45389         * lib/unistr/u-strncat.h: New file.
45390
45391         * modules/unistr/u8-strncmp: New file.
45392         * modules/unistr/u16-strncmp: New file.
45393         * modules/unistr/u32-strncmp: New file.
45394         * lib/unistr/u8-strncmp.c: New file.
45395         * lib/unistr/u16-strncmp.c: New file.
45396         * lib/unistr/u32-strncmp.c: New file.
45397
45398         * modules/unistr/u8-strncpy: New file.
45399         * modules/unistr/u16-strncpy: New file.
45400         * modules/unistr/u32-strncpy: New file.
45401         * lib/unistr/u8-strncpy.c: New file.
45402         * lib/unistr/u16-strncpy.c: New file.
45403         * lib/unistr/u32-strncpy.c: New file.
45404         * lib/unistr/u-strncpy.h: New file.
45405
45406         * modules/unistr/u8-strnlen: New file.
45407         * modules/unistr/u16-strnlen: New file.
45408         * modules/unistr/u32-strnlen: New file.
45409         * lib/unistr/u8-strnlen.c: New file.
45410         * lib/unistr/u16-strnlen.c: New file.
45411         * lib/unistr/u32-strnlen.c: New file.
45412         * lib/unistr/u-strnlen.h: New file.
45413
45414         * modules/unistr/u8-strpbrk: New file.
45415         * modules/unistr/u16-strpbrk: New file.
45416         * modules/unistr/u32-strpbrk: New file.
45417         * lib/unistr/u8-strpbrk.c: New file.
45418         * lib/unistr/u16-strpbrk.c: New file.
45419         * lib/unistr/u32-strpbrk.c: New file.
45420         * lib/unistr/u-strpbrk.h: New file.
45421
45422         * modules/unistr/u8-strrchr: New file.
45423         * modules/unistr/u16-strrchr: New file.
45424         * modules/unistr/u32-strrchr: New file.
45425         * lib/unistr/u8-strrchr.c: New file.
45426         * lib/unistr/u16-strrchr.c: New file.
45427         * lib/unistr/u32-strrchr.c: New file.
45428
45429         * modules/unistr/u8-strspn: New file.
45430         * modules/unistr/u16-strspn: New file.
45431         * modules/unistr/u32-strspn: New file.
45432         * lib/unistr/u8-strspn.c: New file.
45433         * lib/unistr/u16-strspn.c: New file.
45434         * lib/unistr/u32-strspn.c: New file.
45435         * lib/unistr/u-strspn.h: New file.
45436
45437         * modules/unistr/u8-strstr: New file.
45438         * modules/unistr/u16-strstr: New file.
45439         * modules/unistr/u32-strstr: New file.
45440         * lib/unistr/u8-strstr.c: New file.
45441         * lib/unistr/u16-strstr.c: New file.
45442         * lib/unistr/u32-strstr.c: New file.
45443         * lib/unistr/u-strstr.h: New file.
45444
45445         * modules/unistr/u8-strtok: New file.
45446         * modules/unistr/u16-strtok: New file.
45447         * modules/unistr/u32-strtok: New file.
45448         * lib/unistr/u8-strtok.c: New file.
45449         * lib/unistr/u16-strtok.c: New file.
45450         * lib/unistr/u32-strtok.c: New file.
45451         * lib/unistr/u-strtok.h: New file.
45452
45453         * modules/unistr/u8-uctomb: New file.
45454         * modules/unistr/u16-uctomb: New file.
45455         * modules/unistr/u32-uctomb: New file.
45456         * lib/unistr/u8-uctomb.c: New file.
45457         * lib/unistr/u16-uctomb.c: New file.
45458         * lib/unistr/u32-uctomb.c: New file.
45459
45460         * MODULES.html.sh (Unicode string functions): Add the new modules.
45461
45462 2007-01-08  Bruno Haible  <bruno@clisp.org>
45463
45464         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45465         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45466         subdirectories.
45467
45468 2007-01-08  Karl Berry  <karl@gnu.org>
45469
45470         * doc/error.texi: mention that main() fns must set program_name
45471         when progname is used.
45472
45473 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45474
45475         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45476         WCTYPE_H is empty, for the benefit of builds from non-distclean
45477         directories.  Problem reported by Eric Blake in
45478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45479
45480 2007-01-08  Bruno Haible  <bruno@clisp.org>
45481
45482         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45483         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45484         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45485         PROVIDE_CANONICALIZE_FILENAME_MODE.
45486         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45487
45488 2007-01-08  Bruno Haible  <bruno@clisp.org>
45489
45490         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45491         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45492         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45493         * lib/fts.c: Likewise.
45494         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45495
45496 2006-12-25  Bruno Haible  <bruno@clisp.org>
45497
45498         * modules/utf8-ucs4-safe: New file.
45499         * lib/utf8-ucs4-safe.h: New file.
45500         * lib/unistr/utf8-ucs4-safe.c: New file.
45501
45502         * modules/utf16-ucs4-safe: New file.
45503         * lib/utf16-ucs4-safe.h: New file.
45504         * lib/unistr/utf16-ucs4-safe.c: New file.
45505
45506         * MODULES.html.sh (Unicode string functions): Add the new modules.
45507
45508 2007-01-08  Bruno Haible  <bruno@clisp.org>
45509
45510         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45511         (Depends-on): Add unitypes.
45512         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45513         (u8_mbtouc_aux): Move out to separate file.
45514         (u8_mbtouc): Use ucs4_t, uint8_t types.
45515         * lib/unistr/utf8-ucs4.c: New file.
45516
45517         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45518         (Depends-on): Add unitypes.
45519         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45520         (u16_mbtouc_aux): Move out to separate file.
45521         (u16_mbtouc): Use ucs4_t, uint16_t types.
45522         * lib/unistr/utf16-ucs4.c: New file.
45523
45524         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45525         (Depends-on): Add unitypes.
45526         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45527         (u8_uctomb_aux): Move out to separate file.
45528         (u8_uctomb): Use ucs4_t, uint8_t types.
45529         * lib/unistr/ucs4-utf8.c: New file.
45530
45531         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45532         (Depends-on): Add unitypes.
45533         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45534         (u16_uctomb_aux): Move out to separate file.
45535         (u16_uctomb): Use ucs4_t, uint16_t types.
45536         * lib/unistr/ucs4-utf16.c: New file.
45537
45538 2006-12-25  Bruno Haible  <bruno@clisp.org>
45539
45540         * modules/unitypes: New file.
45541         * lib/unitypes.h: New file.
45542         * MODULES.html.sh (func_all_modules): New section "Unicode string
45543         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45544         this section. Add unitypes.
45545
45546 2007-01-08  Bruno Haible  <bruno@clisp.org>
45547
45548         Avoid variable names that conflict with those from libtool.
45549         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45550         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45551         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45552         library_names_spec to acl_library_names_spec, hardcode_* to
45553         acl_hardcode_*.
45554         Reported by Ralf Wildenhues.
45555
45556 2007-01-08  Bruno Haible  <bruno@clisp.org>
45557
45558         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45559         definition.
45560         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45561         definition.
45562         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45563         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45564         definition.
45565         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45566         definition.
45567         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45568         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45569         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45570         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45571         definition.
45572         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45573         definition.
45574         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45575         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45576         GC_USE_<algorithm>.
45577         * lib/gc-libgcrypt.c: Likewise.
45578         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45579         * modules/gc-arctwo (configure.ac): Likewise.
45580         * modules/gc-des (configure.ac): Likewise.
45581         * modules/gc-hmac-md5 (configure.ac): Likewise.
45582         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45583         * modules/gc-md2 (configure.ac): Likewise.
45584         * modules/gc-md4 (configure.ac): Likewise.
45585         * modules/gc-md5 (configure.ac): Likewise.
45586         * modules/gc-random (configure.ac): Likewise.
45587         * modules/gc-rijndael (configure.ac): Likewise.
45588         * modules/gc-sha1 (configure.ac): Likewise.
45589
45590 2007-01-08  Bruno Haible  <bruno@clisp.org>
45591
45592         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45593         macro definition.
45594         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45595         definition.
45596         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45597         definition.
45598         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45599         * modules/fcntl-safer (configure.ac): Likewise.
45600         * modules/fopen-safer (configure.ac): Likewise.
45601         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45602         GNULIB_FWRITEERROR macro definition.
45603
45604 2007-01-08  Bruno Haible  <bruno@clisp.org>
45605
45606         * m4/gnulib-common.m4: New file.
45607         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45608         (func_get_filelist): Add m4/gnulib-common.m4.
45609
45610 2007-01-08  Bruno Haible  <bruno@clisp.org>
45611
45612         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45613         command.
45614
45615 2007-01-08  Jim Meyering  <jim@meyering.net>
45616
45617         Use a more robust test for a "can't happen" condition.
45618         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45619         narrowed the st_size value.  Presuming the "can't happen" condition
45620         is true, that narrowing could conceivably convert an invalid st_size
45621         value into a valid one.  Instead, use a change based on Matthew
45622         Woehlke's original patch.
45623
45624         Slight readability improvement: use an assert-like macro
45625         in place of literal "abort ()" uses.
45626         * lib/fts.c (fts_assert): Define.
45627         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45628         Use this macro instead of a bare 'abort'.
45629
45630 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45631
45632         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45633         simply work around them.
45634         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45635         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45636         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45637         declaring.
45638         Don't bother to define as macros, since the standard doesn't require it.
45639         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45640         longer worry about IRIX 5.3.
45641         (HAVE_WCTYPE_CTMP_BUG): Remove.
45642
45643 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45644
45645         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45646         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45647         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45648         Problems reported by Georg Schwarz for IRIX 5.3.
45649
45650         * gnulib-tool (autoconf_minversion): Take the maximum version number
45651         found, not the minimum.  Problem reported by James Youngman.
45652
45653 2007-01-03  Karl Berry  <karl@gnu.org>
45654
45655         * doc/error.texi: new file, explaining interaction with progname.
45656         * doc/gnulib.texi: include it.  Update copyright.
45657
45658 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45659
45660         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45661         AC_CANONICAL_HOST, to improve autobuild outputs.
45662
45663 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45664             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45665
45666         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45667         sockets, server sockets, and other file descriptors.  Count errors
45668         to compute the return value.  Reorder the code a bit to be easier
45669         to follow.  Don't set event bits that were not requested (except
45670         POLLERR and POLLHUP).
45671
45672 2007-01-01  Bruno Haible  <bruno@clisp.org>
45673
45674         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45675
45676 2007-01-03  Jim Meyering  <jim@meyering.net>
45677
45678         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45679
45680 2007-01-02  Bruno Haible  <bruno@clisp.org>
45681
45682         * modules/settime (Include): Require timespec.h.
45683         * modules/nanosleep (Include): Likewise.
45684
45685 2007-01-01  Bruno Haible  <bruno@clisp.org>
45686
45687         * gnulib-tool (func_emit_copyright_notice): Bump year.
45688         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45689
45690 2007-01-01  Bruno Haible  <bruno@clisp.org>
45691
45692         Improve support for OpenBSD.
45693         * build-aux/config.rpath (libname_spec): Export.
45694         (library_names_spec): New variable. Export.
45695         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45696         library_names_spec from the config.rpath output. Locate shared library
45697         through the name pattern in library_names_spec.
45698
45699 2007-01-01  Eric Blake  <ebb9@byu.net>
45700
45701         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45702
45703 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45704
45705         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45706         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45707         assume the C locale, and avoid an "eval" that could cause trouble.
45708         Problem with SORT reported by Bob Proulx.
45709
45710         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45711         Define.  Trivial patch from Henning Nielsen Lund, originally
45712         sent to bug-grep@gnu.org today.
45713
45714 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45715
45716         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45717         struct stat.  Problem reported by Henning Nielsen Lund.
45718         * lib/acl.c: Include acl.h first, to check interface.  Don't
45719         bother to include sys/types.h and sys/stat.h again.
45720
45721 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45722
45723         Import the following change from libc; problem reported by
45724         Sven Verdoolaege.
45725
45726         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45727
45728         [BZ #1373]
45729         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45730
45731 2006-12-28  Jim Meyering  <jim@meyering.net>
45732
45733         * build-aux/announce-gen: Do not assume that the package
45734         builds any of tar.gz, tar.bz2, and .xdelta files.
45735         Suggestion from Simon Josefsson.
45736
45737 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45738
45739         * modules/announce-gen: New file.
45740
45741 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45742
45743         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45744         handles its gotchas now.
45745         * lib/mbswidth.c: Likewise.
45746         * lib/wcwidth.h: Likewise.
45747         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45748         and iswcntrl; the wctype module does this stuff now.
45749         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45751         * modules/mbchar (Depends-on): Add wctype.
45752         * modules/mbswidth (Depends-on): Likewise.
45753         * modules/wcwidth (Depends-on): Likewise.
45754
45755 2006-12-27  Eric Blake  <ebb9@byu.net>
45756
45757         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45758         module uses more than what <wctype.h> is required to provide.
45759
45760 2006-12-26  Eric Blake  <ebb9@byu.net>
45761
45762         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45763
45764 2006-12-26  Eric Blake  <ebb9@byu.net>
45765
45766         * modules/absolute-header: New module.
45767         * modules/fcntl (Depends-on): Depend on it.
45768         * modules/inttypes (Depends-on): Likewise.
45769         * modules/stdint (Depends-on): Likewise.
45770         * modules/sys_stat (Depends-on): Likewise.
45771         * modules/wctype (Depends-on): Likewise.
45772         * MODULES.html.sh (Support for building libraries and
45773         executables): Document it.
45774
45775 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45776
45777         * gnulib-tool (SED): Remove, undoing previous change.
45778         The problem was that it broke coreutils on Solaris, because
45779         "sed --posix" leaked into a makefile.
45780         (sed): New alias, if 'alias' and GNU sed.
45781
45782 2006-12-24  Jim Meyering  <jim@meyering.net>
45783
45784         Work around an fchownat bug in glibc-2.4:
45785         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45786         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45787         in spite of the -P option.
45788         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45789         New macros.
45790         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45791         * modules/openat (Files): Add lib/fchownat.c.
45792         * lib/openat.c (fchownat): Don't define here.  Move to...
45793         * lib/fchownat.c: ...this new file.
45794
45795 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45796
45797         Fix bug reported by Bruno Haible in
45798         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45799         where quotearg.c didn't compile on Mac OS X 10.2 because it
45800         lacks <wchar.h> and wint_t.
45801         * lib/wctype_.h (__wctype_wint_t): New type.
45802         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45803         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45804         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45805         Arg is now of type __wctype_wint_t, not wint_t.
45806         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45807         substitute HAVE_WINT_T.
45808         * modules/wctype (Files): Add m4/wint_t.m4.
45809         (wctype.h): Substitute HAVE_WINT_T.
45810
45811 2006-12-23  Bruno Haible  <bruno@clisp.org>
45812
45813         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45814
45815 2006-12-23  Bruno Haible  <bruno@clisp.org>
45816
45817         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45818         S_ISLNK.
45819         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45820         mingw.
45821
45822 2006-12-22  Bruno Haible  <bruno@clisp.org>
45823
45824         * lib/copy-file.c: Include acl.h.
45825         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45826         Close the file descriptors only after being done with copy_acl.
45827         * modules/copy-file (Depends-on): Add acl.
45828
45829 2006-12-22  Bruno Haible  <bruno@clisp.org>
45830
45831         * gnulib-tool (SED): New variable.
45832         Use $SED instead of sed everywhere.
45833
45834 2006-12-22  Bruno Haible  <bruno@clisp.org>
45835
45836         * modules/no-c++: New file.
45837         * m4/no-c++.m4: New file.
45838         * MODULES.html.sh (Support for building libraries and executables):
45839         Add no-c++.
45840
45841 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45842
45843         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45844         Include <limits.h>, and use its INT_MAX to rewrite the
45845         j loop so that it does not overflow 'int'.  Problem reported by
45846         Ralf Wildenhues in
45847         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45848         Play it safe by shifting left by 1 rather than multiplying by 2,
45849         as GCC is less likely to optimize this away when the value
45850         is signed (when it assumes overflow leads to undefined behavior).
45851         Also, don't assume time_t uses two's complement.
45852
45853 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45854
45855         * MODULES.html.sh: New module wctype.
45856         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45857         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45858         <wctype.h>, since the new wctype module should fix this.
45859         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45860         the wctype module should arrange for it.
45861         * lib/regex_internal.h: Likewise.
45862         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45863         since the wctype module should handle this now.
45864         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45865         * modules/fnmatch (Depends-on): Add wctype.
45866         * modules/quotearg (Depends-on): Likewise.
45867         * modules/regex (Depends-on): Likewise.
45868
45869 2006-12-19  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45872         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45873
45874 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45875
45876         * modules/savewd (Depends-on): Fix dependency on fcntl.
45877
45878 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45879
45880         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45881         conforms to C99, rather than relying on the user's environment
45882         setting of STDINT_H.
45883
45884 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45885         and Eric Blake  <ebb9@byu.net>
45886
45887         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45888         This is more consistent with the other defines here.
45889         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45890         Port to z/OS.  Problem reported by Paul Gilmartin.
45891         Change local vars to use gl_ prefix rather than ac_.
45892         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45893         with other defines.
45894         * modules/double-slash-root: New module.
45895         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45896         (Depends-on): Add double-slash-root.
45897         * MODULES.html.sh (File system functions): Mention new module.
45898
45899 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45900
45901         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45902         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45903         This is for the benefit of gzip, which doesn't do i18n.
45904
45905 2006-12-12  Jim Meyering  <jim@meyering.net>
45906
45907         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45908         Reported by Andreas Schwab <schwab@suse.de>.
45909
45910 2006-12-12  Bruno Haible  <bruno@clisp.org>
45911
45912         Merge these changes.
45913         2006-09-05  Bruno Haible  <bruno@clisp.org>
45914         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45915         iconv_alloc succeeded.
45916         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45917         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45918         test for " && dest " at the end - dest is always != NULL there. Call
45919         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45920         with 2xNULL arguments, also to flush the state storage. Handle the
45921         IRIX iconv behaviour. Realloc the final result, to throw away unused
45922         memory.
45923
45924 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45925
45926         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45927         and fchmodat unconditionally, since glibc 2.4 has them.
45928         Problem reported by Arkadiusz Miskiewicz.
45929
45930 2006-12-10  Bruno Haible  <bruno@clisp.org>
45931
45932         * gnulib-tool (func_import): Show the include files only for those
45933         modules that are copied and specified.
45934         Reported by Karl Berry.
45935
45936 2006-12-08  Jim Meyering  <jim@meyering.net>
45937
45938         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45939         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45940
45941         * build-aux/announce-gen: Add two new options, both optional:
45942         --bootstrap-tools=TOOL_LIST
45943               a comma-separated list of tools, e.g.,
45944               autoconf,automake,bison,gnulib
45945         --gnulib-snapshot-date=DATE
45946               if gnulib is in the bootstrap tool list,
45947               then report this as the snapshot date.
45948               If not specified, use the current date/time.
45949               If you specify a date here, be sure it's UTC.
45950
45951 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45952
45953         * tests/test-argp-2.sh: Fix test to match actual output.
45954         (func_compare): Fix sed script to be portable.
45955
45956 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45957
45958         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45959         workaround for this case.  It is not autoconfigured now; offhand
45960         it's hard to see how to autoconfigure it.
45961
45962 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45963
45964         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45965         a directory that is about to be chowned.  Such a directory's
45966         initial file permissions should permit the owner only and this
45967         should not be changed until after the chown, since the group and
45968         other bits would be incorrect if they granted permission before
45969         the chown.
45970
45971         Fix porting problem for iswctype reported by Georg Schwarz in:
45972         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45973         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45974         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45975         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45976         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45977
45978 2006-12-03  Jim Meyering  <jim@meyering.net>
45979
45980         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45981         p->fts_statp may not yet be defined.
45982         (fts_read): Instead, set it in the caller, once p->fts_statp is
45983         sure to be defined, and corresponds to a top-level directory.
45984         This bug made du -x fail.  Here's the coreutils test case:
45985         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45986         Reported by Mike Frysinger.
45987
45988 2006-12-01  Jim Meyering  <jim@meyering.net>
45989
45990         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45991         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45992         Reported by Simon Josefsson.
45993
45994 2006-11-30  Jim Meyering  <jim@meyering.net>
45995
45996         * m4/warning.m4: Use the all-permissive copyright notice
45997         recommended by RMS (rather than LGPL).
45998         * m4/vararrays.m4: Likewise.
45999         * m4/flexmember.m4: Likewise.
46000
46001 2006-11-29  Bruno Haible  <bruno@clisp.org>
46002
46003         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46004         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
46005         using +=.
46006         Reported by Simon Josefsson <simon@josefsson.org>.
46007
46008 2006-11-28  James Youngman <jay@gnu.org>
46009
46010         * README: Advise users that they might find the bug-gnulib@gnu.org
46011         and autotools-announce@gnu.org mailing lists useful.
46012
46013 2006-11-28  Bruno Haible  <bruno@clisp.org>
46014
46015         * m4/ptrdiff_max.m4: Remove file.
46016
46017 2006-11-21  Bruno Haible  <bruno@clisp.org>
46018
46019         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
46020         _AC_COMPUTE_INT.
46021         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46022         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
46023         _AC_COMPUTE_INT.
46024         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46025         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
46026         _AC_COMPUTE_INT.
46027         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46028
46029 2006-11-28  Jim Meyering  <jim@meyering.net>
46030
46031         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
46032         warning from "gcc -Wshadow" about shadowing the builtin.
46033
46034 2006-11-27  Bruno Haible  <bruno@clisp.org>
46035
46036         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
46037         _AC_COMPUTE_INT.
46038         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46039
46040 2006-11-27  Bruno Haible  <bruno@clisp.org>
46041             Paul Eggert  <eggert@cs.ucla.edu>
46042
46043         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
46044
46045 2006-11-26  Bruno Haible  <bruno@clisp.org>
46046
46047         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46048         noinst_LTLIBRARIES.
46049
46050 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
46051             Bruno Haible  <bruno@clisp.org>
46052
46053         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
46054         if compiling with "gcc -ansi".
46055
46056 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
46057
46058         Fix some incompatibilities with gcc -ansi -pedantic.
46059         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
46060         if compiling pedantically with GCC, unless it's C99 or later.
46061         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
46062         it mishandles gcc -ansi -pedantic as well.
46063         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
46064         if gcc -pedantic.
46065         * lib/regexec.c (check_node_accept_bytes): Don't use auto
46066         initializers for struct if -pedantic, unless it's C99 or later.
46067
46068 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
46069
46070         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
46071         Don't close an fd more than once. Identical atimes indicate
46072         success, not failure.
46073
46074 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
46075
46076         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
46077
46078 2006-11-23  Jim Meyering  <jim@meyering.net>
46079
46080         * build-aux/announce-gen: New file.  From coreutils.
46081
46082 2006-11-22  Jim Meyering  <jim@meyering.net>
46083
46084         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
46085         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
46086         (fts_read): Use a temporary to narrow the overused st_size member
46087         before using it in a switch statement.  Reported by Matthew Woehlke.
46088
46089         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
46090         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
46091
46092 2006-11-20  Bruno Haible  <bruno@clisp.org>
46093
46094         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
46095         changequote instead of pairs of brackets.
46096         Reported by Andreas Schwab <schwab@suse.de>.
46097
46098 2006-11-21  Jim Meyering  <jim@meyering.net>
46099
46100         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
46101         so as to remain compatible with older compilers.
46102         Patch from Michael Deutschmann.
46103
46104 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46105
46106         * MODULES.html.sh (File system functions): Add openat.
46107
46108         * lib/openat.h (rpl_fstatat): New macro, if
46109         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
46110         (fstatat): Define to rpl_fstatat under the same conditions,
46111         unless COMPILING_FSTATAT.
46112         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
46113         seems to have the bug.
46114         * lib/fstatat.c: New file.
46115         * modules/openat (Files): Add it.
46116
46117 2006-11-20  Bruno Haible  <bruno@clisp.org>
46118
46119         * Makefile: New file.
46120
46121 2006-11-20  Jim Meyering  <jim@meyering.net>
46122
46123         The beginnings of syntax-related checks for gnulib.
46124         * lib/Makefile: New file.
46125         * lib/t-idcache: New script.  Ensure that the two halves of
46126         idcache.c stay in sync.
46127
46128         * lib/idcache.c: Adjust comments in user- and group- portions to
46129         be more accurate, and to be consistent with one another.
46130
46131 2006-11-20  Jim Meyering  <jim@meyering.net>
46132
46133         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
46134         continue using the flexible array member (thus, this module performs
46135         half as many malloc calls), with the addition that...
46136         (getgroup, getuser): Consistently record a non-match via an empty
46137         "name" string, and map an empty string match to a NULL return value.
46138         * modules/idcache (Depends-on): Re-add flexmember.
46139
46140         * lib/idcache.c (getuser): Remove all uses of the register keyword.
46141         (getuidbyname, getgroup, getgidbyname): Likewise.
46142
46143         Use cleaner syntax: NULL rather than 0.
46144         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
46145
46146 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46147
46148         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
46149         It mishandled the case where the group was missing.
46150         Problem reported by Greg Schafer.
46151         * modules/idcache: Likewise.
46152
46153 2006-11-18  Jim Meyering  <jim@meyering.net>
46154
46155         * check-module (%exempt_header): Add exception for some
46156         conditionally-included headers.
46157
46158         * modules/i-ring (Depends-on): Add verify.
46159         (License): Change to LGPL.
46160
46161 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46162
46163         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46164         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46165         and inttostr.h.  Use snprintf rather than uinttostr, so that
46166         LGPLed code doesn't depend on GPLed.
46167
46168 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46169
46170         * modules/inline (License): Change from GPL to LGPL.
46171
46172 2006-11-17  Jim Meyering  <jim@meyering.net>
46173
46174         * modules/d-type (License): Switch to LGPL.
46175
46176 2006-11-15  Bruno Haible  <bruno@clisp.org>
46177
46178         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46179
46180 2006-11-15  Eric Blake  <ebb9@byu.net>
46181
46182         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46183         the module dependency.
46184
46185 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46186             Bruno Haible  <bruno@clisp.org>
46187
46188         * gnulib-tool (func_create_testdir): Add license consistency check.
46189
46190 2006-11-15  Eric Blake  <ebb9@byu.net>
46191
46192         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46193         random "(cached)" in configure output.
46194
46195 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46196
46197         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46198         test for conforming inttypes.h is both announced and cached.
46199
46200         * MODULES.html.sh (seen_modules, seen_files): New variables.
46201         (func_module): Rewrite to use a few less gnulib-tool and sed
46202         invocations.  Avoid a couple of quadratic algorithms for ...
46203         (missed_modules, missed_files): ... these, with ...
46204         (func_append, func_tmpdir): ... these new functions, from
46205         gnulib-tool.  Analogously, install traps for cleanup.
46206
46207         * tests/test-gc.c (main): Remove unused variables.
46208         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46209
46210 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46211
46212         * modules/inttostr (License): Change to LGPL.
46213
46214 2006-11-14  Eric Blake  <ebb9@byu.net>
46215
46216         * modules/tempname (License): Change to LGPL.
46217
46218 2006-11-14  Eric Blake  <ebb9@byu.net>
46219
46220         * doc/functions.texi (Function Portability): *printf functions on
46221         Cygwin now understand all POSIX size specifiers.
46222
46223 2006-11-14  Bruno Haible  <bruno@clisp.org>
46224
46225         * modules/c-ctype (License): Change to LGPL.
46226
46227 2006-11-12  Bruno Haible  <bruno@clisp.org>
46228
46229         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46230         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46231         for GNOME libraries, for which the include files are installed in
46232         subdirectories of $prefix/include.
46233
46234 2006-11-12  Bruno Haible  <bruno@clisp.org>
46235
46236         * m4/lib-link.m4: Require at least autoconf-2.54.
46237         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46238         name to underscores for the --with option.
46239
46240 2006-11-13  Bruno Haible  <bruno@clisp.org>
46241
46242         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46243         the tests directory.
46244         Reported by Ralf Wildenhues.
46245
46246 2006-11-13  Bruno Haible  <bruno@clisp.org>
46247
46248         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46249         (func_emit_initmacro_end): Undo the override here.
46250         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46251         Works around the famous automake error in coreutils.
46252
46253 2006-11-13  Eric Blake  <ebb9@byu.net>
46254
46255         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46256         element, not its node.
46257
46258 2006-11-12  Bruno Haible  <bruno@clisp.org>
46259
46260         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46261         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46262
46263 2006-11-12  Bruno Haible  <bruno@clisp.org>
46264
46265         * gnulib-tool: New option --local-symlink.
46266         (func_usage): Document it.
46267         (lsymbolic): New variable.
46268         (func_import, func_create_testdir): If --symlink was not specified,
46269         test whether --local-symlink was specified and the file comes from
46270         the local_gnulib_dir.
46271
46272 2006-11-12  Bruno Haible  <bruno@clisp.org>
46273
46274         * gnulib-tool (func_ln): New function.
46275         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46276
46277 2006-11-12  Bruno Haible  <bruno@clisp.org>
46278
46279         Finish support for source files in subdirectories.
46280         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46281         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46282         AUTOMAKE_OPTIONS.
46283         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46284
46285 2006-11-12  Bruno Haible  <bruno@clisp.org>
46286
46287         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46288         EXTRA_lib_SOURCES augmentation.
46289         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46290
46291 2006-11-12  Jim Meyering  <jim@meyering.net>
46292
46293         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46294         file descriptors.  This also averts a failure on systems with
46295         native openat support when a traversed directory lacks "x" access.
46296         * lib/fts_.h: Include "i-ring.h"
46297         (struct FTS) [fts_fd_ring]: New member.
46298         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46299         (FCHDIR): Add parentheses.
46300         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46301         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46302         When descending, rather than simply closing the previous
46303         fts_cwd_fd value, push that file descriptor onto the ring.
46304         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46305         (fts_open): Initialize the new fd_ring member.
46306         (fts_close): Clear the ring.
46307         (fts_safe_changedir): When possible, use our new fd_ring to skip
46308         the diropen and fstat and dev/ino comparison that would normally
46309         accompany a virtual `chdir ("..")'.
46310
46311         * modules/fts (Depends-on): Add i-ring.
46312         * modules/i-ring: New module.
46313         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46314         * m4/i-ring.m4: New file.
46315
46316 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46317
46318         * gnulib-tool (func_create_testdir): Fix replacement of
46319         `build-aux' in configure.ac.  Run autotools in gltests
46320         subdirectory.
46321         (func_create_testdir, func_create_megatestdir, test): There is
46322         no need for '--force' in most autotool invocations in a new
46323         tree.  Actually fail the whole test if any of the tools, or the
46324         configure or make stages fail.
46325
46326         Sync from Automake.
46327         * build-aux/gnupload: Revert last change.  Add pointer to upload
46328         instructions of the GNU Maintenance Instructions.
46329         Suggestion by Karl Berry.
46330
46331 2006-11-10  Jim Meyering  <jim@meyering.net>
46332
46333         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46334
46335 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46336
46337         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46338         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46339         (bind_textdomain_codeset) [! ENABLE_NLS]:
46340         Evaluate all the arguments.  That way, callers get compatible behavior
46341         if the arguments have side effects.  Also, it avoids some GCC
46342         diagnostics in some cases; Joel E. Denny reported problems when Bison
46343         was configured with --enable-gcc-warnigs.
46344
46345 2006-11-10  Jim Meyering  <jim@meyering.net>
46346
46347         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46348         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46349         account.
46350
46351 2006-11-10  Jim Meyering  <jim@meyering.net>
46352
46353         * modules/inline: New file/module.
46354         * modules/xalloc (Files): Remove m4/inline.m4.
46355         (Depends-on): Add inline, instead.
46356         * modules/oset: Likewise.
46357         * modules/list: Likewise.
46358
46359 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46360
46361         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46362         Problem reported by Matthew Woehlke.
46363
46364 2006-11-09  Bruno Haible  <bruno@clisp.org>
46365
46366         * lib/tempname.c (gen_tempname): Remove variant that invokes
46367         __gen_tempname.
46368         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46369         __gen_tempname.
46370
46371 2006-11-08  Bruno Haible  <bruno@clisp.org>
46372
46373         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46374         to 'yes' instead of 'cross-compiling'.
46375
46376 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46377
46378         * lib/quotearg.h (quotearg_free): New decl.
46379         * lib/quotearg.c (quotearg_free): New function.
46380         (slot0, nslots, slotvec0, slotvec):
46381         Now file-scope so that quotearg_free can get at them.
46382
46383 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46384
46385         Sync from Automake.
46386         * build-aux/gnupload: Add missing 'gnu' to example URL.
46387         Report by Karl Berry.
46388
46389 2006-11-08  Bruno Haible  <bruno@clisp.org>
46390
46391         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46392         Suggested by Paul Eggert.
46393
46394 2006-11-08  Jim Meyering  <jim@meyering.net>
46395
46396         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46397         It's already included if !_LIBC.
46398         (fts_safe_changedir): Add a comment.
46399
46400 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46401
46402         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46403         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46404         Matthew Woehlke.
46405
46406         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46407         definitions up, to avoid colliding with change below.
46408         (static_inline) [HAVE_INLINE]: New macro.
46409         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46410         Provide extern decls when !HAVE_INLINE.  Do not define unless
46411         static_inline is defined, either by us or by xmalloc.c.  Use
46412         static_inline rather than static inline.
46413         (XCALLOC): Optimize sizeof(T) = 1 case.
46414         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46415
46416 2006-11-07  Bruno Haible  <bruno@clisp.org>
46417
46418         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46419         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46420         AC_C_INLINE.
46421         * modules/xalloc (Files): Add m4/inline.m4.
46422
46423 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46424
46425         * README: Fix typo.
46426         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46427         (Miscellanous Notes): ...from this.
46428
46429 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46430
46431         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46432         Mention that offsetof should be used instead of sizeof.
46433         From Bruno Haible.
46434
46435 2006-11-07  Bruno Haible  <bruno@clisp.org>
46436
46437         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46438
46439 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46440
46441         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46442         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46443         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46444         (gl_tree_add_before, gl_tree_add_after):
46445         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46446         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46447         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46448         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46449         (gl_linked_add_after, gl_linked_add_at): Likewise.
46450         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46451         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46452         (gl_tree_add_before, gl_tree_add_after): Likewise.
46453         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46454         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46455         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46456
46457 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46458
46459         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46460
46461 2006-11-06  Bruno Haible  <bruno@clisp.org>
46462
46463         * m4/inline.m4: New file.
46464         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46465         * modules/list (Files): Add m4/inline.m4.
46466         * modules/oset (Files): Likewise.
46467
46468 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46469
46470         * lib/idcache.c: Include <stddef.h>, for offsetof.
46471         (struct userid.name): Change from char * to a flexible array member.
46472         All uses changed.
46473         * modules/idcache (Depends-on): Add flexmember.
46474
46475         * MODULES.html.sh (Core language properties): New module flexmember.
46476         * modules/flexmember, m4/flexmember.m4: New files.
46477
46478         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46479         inline functions that are identical with the old xnmalloc_inline,
46480         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46481         that we can avoid some unnecessary integer multiplications and
46482         divisions in the common case where the element size is known at
46483         compile time.
46484         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46485         needed.
46486         (xnboundedmalloc): Remove.
46487         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46488         arguments, for consistency with rest of this header.
46489         (xcharalloc): Rewrite using XNMALLOC.
46490         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46491         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46492         versions have been moved to lib/xalloc.h and renamed to be the
46493         non-*_inline versions.
46494         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46495         and xnrealloc functions, since those functions are now inline and
46496         now call us.
46497         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46498         renaming described above.
46499         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46500         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46501         captures the dependency in AC_C_INLINE.
46502
46503         New module canonicalize-lgpl, proposed by Charles Wilson in
46504         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46505         with a few small changes afterwards.
46506         * MODULES.html.sh (File system functions): New module
46507         canonicalize-lgpl.
46508         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46509         and canonicalize_file_name.
46510         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46511         * modules/canonicalize-lgpl: New files.
46512
46513 2006-11-05  Bruno Haible  <bruno@clisp.org>
46514
46515         * gnulib-tool (func_import, func_create_testdir): Create directories
46516         also for files in subdirectories of lib/.
46517
46518 2006-11-05  Bruno Haible  <bruno@clisp.org>
46519
46520         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46521         ANSI C compliant.
46522
46523 2006-11-03  Bruno Haible  <bruno@clisp.org>
46524
46525         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46526         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46527         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46528         (xnboundedmalloc): New inline function.
46529         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46530         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46531         xmalloc.
46532         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46533         xmalloc.
46534         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46535         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46536         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46537         xmalloc.
46538         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46539         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46540         xmalloc.
46541         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46542         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46543         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46544         xmalloc.
46545         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46546         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46547         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46548         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46549         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46550         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46551         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46552
46553 2006-11-03  Bruno Haible  <bruno@clisp.org>
46554
46555         * lib/c-ctype.h [C++]: Define functions without name mangling.
46556         * lib/fwriteerror.h [C++]: Likewise.
46557         * lib/gcd.h [C++]: Likewise.
46558         * lib/linebreak.h [C++]: Likewise.
46559
46560 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46561
46562         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46563         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46564         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46565         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46566         Check for functions and headers just once.
46567         Check for declaration of canonicalize_file_name.
46568         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46569
46570 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46571
46572         * gnulib-tool (func_import): Fix typo in actioncmd.
46573
46574 2006-11-02  Bruno Haible  <bruno@clisp.org>
46575
46576         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46577         newline sequence in the Makefile.am snippet as a space, like "make"
46578         does.
46579         Reported by Roger Persson <perrog@gmail.com>.
46580
46581 2006-11-01  Bruno Haible  <bruno@clisp.org>
46582
46583         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46584         already declared in <string.h>.
46585         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46586
46587 2006-11-01  Bruno Haible  <bruno@clisp.org>
46588
46589         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46590         * lib/strcase.h: Include <string.h>.
46591         (strcasecmp): Define to rpl_strcasecmp here.
46592
46593 2006-11-01  Bruno Haible  <bruno@clisp.org>
46594
46595         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46596
46597 2006-11-01  Eric Blake  <ebb9@byu.net>
46598
46599         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46600
46601         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46602
46603 2006-10-29  Bruno Haible  <bruno@clisp.org>
46604
46605         Make it compile in C++ mode.
46606         * lib/full-write.c (full_rw): Add a cast.
46607
46608 2006-11-01  Bruno Haible  <bruno@clisp.org>
46609
46610         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46611         be POSIX compliant.
46612         Reported by Roger Persson <perrog@gmail.com>.
46613
46614 2006-11-01  Eric Blake  <ebb9@byu.net>
46615
46616         * lib/getopt_.h: Fix comments.
46617
46618 2006-10-31  Eric Blake  <ebb9@byu.net>
46619
46620         * modules/tmpdir (Depends-on): Add sys_stat.
46621         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46622         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46623         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46624         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46625         tempname.
46626
46627 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46628
46629         Avoid some C++ diagnostics reported by Bruno Haible.
46630         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46631         xmalloc.
46632         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46633         (struct slotvec): Move to top level.
46634         (quotearg_n_options): Rewrite to avoid xmalloc.
46635         * lib/xalloc.h (xcharalloc): New function.
46636         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46637         [defined __cplusplus]: Add function template that provides result
46638         type propagation.  This part of the change is from Bruno Haible.
46639
46640 2006-10-29  Bruno Haible  <bruno@clisp.org>
46641
46642         Make it compile in C++ mode.
46643         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46644         * lib/strnlen1.c (strnlen1): Cast memchr result.
46645         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46646         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46647         (create_temp_dir): Rename local variable 'template'.
46648         (compile_csharp_using_sscli): Add cast.
46649         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46650         * lib/findprog.c (find_in_path): Likewise.
46651         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46652         * lib/wait-process.c (register_slave_subprocess): Likewise.
46653
46654 2006-10-22  Bruno Haible  <bruno@clisp.org>
46655
46656         * modules/tsearch: New file.
46657         * lib/tsearch.h: New file.
46658         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46659         * m4/tsearch.m4: New file.
46660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46661
46662 2006-10-29  Eric Blake  <ebb9@byu.net>
46663
46664         * lib/arcfour.c: Assume config.h.
46665         * lib/arctwo.c: Likewise.
46666         * lib/base64.c: Likewise.
46667         * lib/check-version.c: Likewise.
46668         * lib/crc.c: Likewise.
46669         * lib/des.c: Likewise.
46670         * lib/gc-gnulib.c: Likewise.
46671         * lib/gc-libgcrypt.c: Likewise.
46672         * lib/gc-pbkdf2-sha1.c: Likewise.
46673         * lib/getaddrinfo.c: Likewise.
46674         * lib/getdelim.c: Likewise.
46675         * lib/getline.c: Likewise.
46676         * lib/hmac-md5.c: Likewise.
46677         * lib/hmac-sha1.c: Likewise.
46678         * lib/iconvme.c: Likewise.
46679         * lib/md2.c: Likewise.
46680         * lib/md4.c: Likewise.
46681         * lib/memxor.c: Likewise.
46682         * lib/read-file.c: Likewise.
46683         * lib/readline.c: Likewise.
46684         * lib/rijndael-alg-fst.c: Likewise.
46685         * lib/rijndael-api-fst.c: Likewise.
46686         * lib/xgetdomainname.c: Likewise.
46687
46688 2006-10-28  Eric Blake  <ebb9@byu.net>
46689
46690         * lib/xstrndup.c: Assume config.h.
46691
46692 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46693
46694         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46695         stat-macros.h is now for our own macros, whereas stat_h is for
46696         macros in the <sys/stat.h> name space.
46697         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46698         (STAT_MACROS_H): Remove.
46699         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46700         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46701         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46702         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46703         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46704         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46705         Move these macros to ...
46706         * lib/stat_.h: here.  Don't include stat-macros.h.
46707         * lib/canonicalize.c: Don't include stat-macros.h.
46708         * lib/chown.c: Likewise.
46709         * lib/euidaccess.c: Likewise.
46710         * lib/file-type.c: Likewise.
46711         * lib/filemode.c: Likewise.
46712         * lib/glob.c: Likewise.
46713         * lib/isapipe.c: Likewise.
46714         * lib/lchown.c: Likewise.
46715         * lib/lstat.c: Likewise.
46716         * lib/mkdir-p.c: Likewise.
46717         * lib/rmdir.c: Likewise.
46718         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46720         unless mkdir isn't declared, to speed up 'configure'.
46721         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46722         would define all the S_* symbols.
46723         * modules/canonicalize (Depends-on):
46724         Depend on sys_stat, not stat-macros.
46725         * modules/chown: Likewise.
46726         * modules/euidaccess: Likewise.
46727         * modules/filemode: Likewise.
46728         * modules/file-type: Likewise.
46729         * modules/glob: Likewise.
46730         * modules/isapipe: Likewise.
46731         * modules/lchown: Likewise.
46732         * modules/lstat: Likewise.
46733         * modules/mkancesdirs: Likewise.
46734         * modules/rmdir: Likewise.
46735         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46736         * modules/modechange: Likewise.
46737         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46738         (configure.ac): Remove gl_STAT_MACROS.
46739         * modules/sys_stat (Depends-on): Remove stat-macros.
46740
46741 2006-10-27  Bruno Haible  <bruno@clisp.org>
46742
46743         * m4/signed.m4: Remove file.
46744         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46745         invocation.
46746         * modules/vasnprintf (Files): Remove m4/signed.m4.
46747
46748 2006-10-27  Bruno Haible  <bruno@clisp.org>
46749
46750         Update to GNU gettext 0.16.
46751         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46752         m4/inttypes-h.m4, m4/signed.m4.
46753         * m4/gettext.m4: Update to GNU gettext 0.16.
46754         * m4/intl.m4: New file, from GNU gettext.
46755         * m4/intldir.m4: New file, from GNU gettext.
46756         * config/srclist.txt: Update
46757
46758 2006-10-27  Eric Blake  <ebb9@byu.net>
46759
46760         * MODULES.html.sh: Document tempname.
46761         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46762         dependencies.
46763         (Files): Move lib/tempname.c...
46764         * modules/tempname: ...to this new module.
46765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46766         (gl_PREREQ_TEMPNAME): Move...
46767         * m4/tempname.m4: ...to this new file.
46768         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46769         * modules/sys_stat (Depends-on): Add stat-macros.
46770         * lib/stat_.h (includes): Pick up stat macros.
46771         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46772         if stat macros are broken.
46773         * lib/tempname.c (includes): No need to include "stat-macros.h".
46774         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46775         (direxists, __path_search) [!_LIBC]: Don't compile these in
46776         gnulib; the tmpdir module covers that.
46777         * lib/tempname.h: New file.
46778
46779 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46780
46781         * COPYING: Explain how gnulib-tool converts licence headers.
46782         Almost all wording by Eric Blake.
46783
46784 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46785
46786         * lib/mbchar.h (is_basic_table): Make read-only.
46787         * lib/mbchar.c (is_basic_table): Likewise.
46788         Reported by John Darrington.
46789
46790 2006-10-25  Bruno Haible  <bruno@clisp.org>
46791
46792         * lib/progname.h (set_program_name): Undefine before defining.
46793
46794 2006-10-25  Bruno Haible  <bruno@clisp.org>
46795
46796         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46797         false for non-gcc C++ compilers.
46798         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46799
46800 2006-10-24  Bruno Haible  <bruno@clisp.org>
46801
46802         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46803         iconv implementations like Irix iconv.
46804
46805 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46806
46807         * modules/vararrays: New file.
46808         * m4/vararrays.m4: New file, taken from diffutils.
46809         * MODULES.html.sh: New module vararrays.
46810
46811 2006-10-24  Karl Berry  <karl@gnu.org>
46812
46813         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46814         Don't call GNU Unix.
46815
46816 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46817
46818         * users.txt: Add Libtool.
46819
46820         Sync from Libtool:
46821
46822         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46823
46824         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46825         to gnulib's policy of including config.h unconditionally.
46826
46827 2006-10-24  Bruno Haible  <bruno@clisp.org>
46828
46829         * modules/wcwidth (Files): Add m4/wint_t.m4.
46830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46831         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46832
46833 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46834
46835         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46836         to pacify GCC with some -W flags enabled.  Problem reported by
46837         Bruno Haible.
46838
46839 2006-10-24  Jim Meyering  <jim@meyering.net>
46840
46841         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46842         Reported by Karl Berry.
46843
46844 2006-10-23  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46847
46848 2006-10-24  Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/gl_list.h: Use C comment style, not C++ comment style.
46851
46852 2006-10-23  Eric Blake  <ebb9@byu.net>
46853
46854         * lib/getaddrinfo.c (includes): Add missing include.
46855
46856 2006-10-23  Bruno Haible  <bruno@clisp.org>
46857             Paul Eggert  <eggert@cs.ucla.edu>
46858
46859         Ability to rename obstack_free.
46860         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46861         obstack_free.
46862         (obstack_free): Invoke the __obstack_free macro.
46863         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46864
46865 2006-10-23  Bruno Haible  <bruno@clisp.org>
46866             Paul Eggert  <eggert@cs.ucla.edu>
46867
46868         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46869         __argc, __argv from the declaration. (They are defined as macros on
46870         mingw.)
46871
46872 2006-10-22  Bruno Haible  <bruno@clisp.org>
46873
46874         * doc/gnulib-intro.texi: New file.
46875         * doc/gnulib.texi: Include it.
46876
46877 2006-10-21  Bruno Haible  <bruno@clisp.org>
46878
46879         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46880         "Introduction", "Miscellanous Notes", "Particular Modules".
46881
46882 2006-10-21  Bruno Haible  <bruno@clisp.org>
46883
46884         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46885         Change mostlyclean-local rule to avoid sh syntax error from bash
46886         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46887
46888 2006-10-23  Jim Meyering  <jim@meyering.net>
46889
46890         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46891         in place of snprintf.
46892
46893         * modules/inttostr (Files): Add lib/uinttostr.c.
46894         * lib/uinttostr.c (inttostr): New file/function.
46895         * lib/inttostr.h (uinttostr): Declare.
46896         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46897         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46898         Add uinttostr.
46899         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46900
46901 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46902
46903         * lib/canonicalize.c (ELOOP): Define if not already defined.
46904         Problem reported by Bruno Haible in
46905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46906
46907 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46908
46909         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46910         Problem reported by Perry Smith and Ville Laurikari.
46911
46912         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46913         uses.
46914
46915 2006-10-19  Bruno Haible  <bruno@clisp.org>
46916
46917         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46918         for mingw.
46919
46920 2006-10-19  Bruno Haible  <bruno@clisp.org>
46921
46922         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46923         Needed for mingw.
46924
46925 2006-10-19  Bruno Haible  <bruno@clisp.org>
46926
46927         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46928
46929 2006-10-19  Bruno Haible  <bruno@clisp.org>
46930
46931         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46932         it.
46933
46934 2006-10-19  Bruno Haible  <bruno@clisp.org>
46935
46936         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46937         invocation.
46938
46939 2006-10-19  Bruno Haible  <bruno@clisp.org>
46940
46941         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46942         mountlist by default.
46943
46944 2006-10-16  Bruno Haible  <bruno@clisp.org>
46945
46946         * lib/c-strstr.c: Include c-strstr.h.
46947
46948 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46949
46950         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46951         in a slash.
46952
46953 2006-10-18  Bruno Haible  <bruno@clisp.org>
46954
46955         * lib/lock.h [C++]: Wrap definitions in extern "C".
46956
46957 2006-10-18  Bruno Haible  <bruno@clisp.org>
46958
46959         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46960         gl_LIBOBJS list.
46961
46962 2006-10-18  Bruno Haible  <bruno@clisp.org>
46963
46964         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46965
46966 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46967
46968         * lib/xstrtol.h: Include gettext.h.
46969         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46970         Problem reported by Eric Blake.
46971         * modules/xstrtol (Depends-on): Add gettext-h.
46972
46973 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46974
46975         * lib/strftime.c (advance): New macro.
46976         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46977         incomplete type, so you can't add 0 to it.  Problem and patch
46978         reported by Eelco Dolstra for dietlibc.
46979
46980 2006-10-18  Jim Meyering  <jim@meyering.net>
46981
46982         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46983         type for a local, and rename it: s/up/user_proc/.
46984
46985 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46986
46987         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46988         READ_UTMP_USER_PROCESS.
46989         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46990
46991 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46992
46993         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46994         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46995
46996 2006-10-17  Eric Blake  <ebb9@byu.net>
46997
46998         * lib/sigprocmask.c (sigprocmask): Fix typo.
46999
47000         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
47001
47002         * modules/clean-temp (Makefile.am): Don't add to make output...
47003         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
47004         config.h.
47005
47006 2006-10-17  Bruno Haible  <bruno@clisp.org>
47007
47008         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
47009         differently if DEFAULT_TEXT_DOMAIN is set.
47010
47011 2006-10-16  Bruno Haible  <bruno@clisp.org>
47012
47013         * lib/clean-temp.c: Include fwriteerror.h.
47014
47015 2006-10-16  Bruno Haible  <bruno@clisp.org>
47016
47017         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
47018
47019 2006-10-16  Bruno Haible  <bruno@clisp.org>
47020
47021         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
47022         * lib/sigprocmask.h: Include <sys/types.h>.
47023         (sigset_t): Use the system's definition if present.
47024
47025 2006-10-17  Eric Blake  <ebb9@byu.net>
47026
47027         * lib/xvasprintf.c (includes): Assume config.h.
47028         * lib/xasprintf.c (includes): Likewise.
47029
47030 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47031
47032         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
47033         at least as wide as intmax_t.
47034
47035 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
47036
47037         (Imported from Automake.)
47038         * build-aux/gnupload: Update to version 1.1 of directive file.
47039
47040 2006-10-16  Eric Blake  <ebb9@byu.net>
47041
47042         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
47043         match Automake 1.10a.
47044
47045 2006-10-14  Bruno Haible  <bruno@clisp.org>
47046
47047         * modules/sigprocmask: New file.
47048         * lib/sigprocmask.h: New file.
47049         * lib/sigprocmask.c: New file.
47050         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
47051         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
47052         request sigprocmask.o.
47053         (gl_PREREQ_SIGPROCMASK): New macro.
47054         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
47055         (Depends-on): Add sigprocmask.
47056         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
47057         gt_SIGNALBLOCKING. Test for 'raise' only once.
47058         * lib/fatal-signal.c: Include sigprocmask.h.
47059         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
47060         unblock_fatal_signals): Define always.
47061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47062         sigprocmask.
47063
47064 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47065
47066         Sync from Automake.
47067         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
47068         which incorrectly sets the mode of an existing destination
47069         directory.  In some cases the unpatched install-sh could do the
47070         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
47071         system.  We hope this is rare in practice, but it's clearly worth
47072         fixing.  Problem reported by Alex Unleashed in
47073         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
47074         Also, don't bother to check for -m bugs unless we're using -m;
47075         suggested by Stepan Kasal.
47076
47077 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47078
47079         Sync from Automake.
47080         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
47081         `-c' flag, so they appear at the same position as in %FASTDEP%
47082         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
47083         which ignores unknown options only after the first non-option.
47084         Bug report against M4 by Nelson H. F. Beebe.
47085
47086 2006-10-13  Jim Meyering  <jim@meyering.net>
47087
47088         Fix a bug in yesterday's change.
47089         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
47090         p->fts_statp->st_dev would be used uninitialized.
47091         Ensures that we always call fts_stat on the very first entry.
47092         Miklos Szeredi reported that find -xdev stopped working.
47093
47094 2006-10-12  Bruno Haible  <bruno@clisp.org>
47095
47096         * gnulib-tool (func_get_automake_snippet): Append an automatically
47097         computed EXTRA_DIST augmentation.
47098         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
47099         * modules/alloca-opt (Makefile.am): Likewise.
47100         * modules/allocsa (Makefile.am): Likewise.
47101         * modules/arcfour (Makefile.am): Likewise.
47102         * modules/arctwo (Makefile.am): Likewise.
47103         * modules/argmatch (Makefile.am): Likewise.
47104         * modules/argz (Makefile.am): Likewise.
47105         * modules/atexit (Makefile.am): Likewise.
47106         * modules/backupfile (Makefile.am): Likewise.
47107         * modules/byteswap (Makefile.am): Likewise.
47108         * modules/c-strtod (Makefile.am): Likewise.
47109         * modules/c-strtold (Makefile.am): Likewise.
47110         * modules/calloc (Makefile.am): Likewise.
47111         * modules/canon-host (Makefile.am): Likewise.
47112         * modules/canonicalize (Makefile.am): Likewise.
47113         * modules/chdir-long (Makefile.am): Likewise.
47114         * modules/chdir-safer (Makefile.am): Likewise.
47115         * modules/check-version (Makefile.am): Likewise.
47116         * modules/chown (Makefile.am): Likewise.
47117         * modules/cloexec (Makefile.am): Likewise.
47118         * modules/close-stream (Makefile.am): Likewise.
47119         * modules/closeout (Makefile.am): Likewise.
47120         * modules/crc (Makefile.am): Likewise.
47121         * modules/csharpexec (Makefile.am): Likewise.
47122         * modules/cycle-check (Makefile.am): Likewise.
47123         * modules/des (Makefile.am): Likewise.
47124         * modules/dev-ino (Makefile.am): Likewise.
47125         * modules/dirfd (Makefile.am): Likewise.
47126         * modules/dirname (Makefile.am): Likewise.
47127         * modules/dup2 (Makefile.am): Likewise.
47128         * modules/eealloc (Makefile.am): Likewise.
47129         * modules/error (Makefile.am): Likewise.
47130         * modules/euidaccess (Makefile.am): Likewise.
47131         * modules/exclude (Makefile.am): Likewise.
47132         * modules/exitfail (Makefile.am): Likewise.
47133         * modules/fcntl-safer (Makefile.am): Likewise.
47134         * modules/fcntl (Makefile.am): Likewise.
47135         * modules/file-type (Makefile.am): Likewise.
47136         * modules/fileblocks (Makefile.am): Likewise.
47137         * modules/filemode (Makefile.am): Likewise.
47138         * modules/filenamecat (Makefile.am): Likewise.
47139         * modules/fnmatch (Makefile.am): Likewise.
47140         * modules/fopen-safer (Makefile.am): Likewise.
47141         * modules/fpending (Makefile.am): Likewise.
47142         * modules/fprintftime (Makefile.am): Likewise.
47143         * modules/free (Makefile.am): Likewise.
47144         * modules/fsusage (Makefile.am): Likewise.
47145         * modules/ftruncate (Makefile.am): Likewise.
47146         * modules/fts (Makefile.am): Likewise.
47147         * modules/gc-arcfour (Makefile.am): Likewise.
47148         * modules/gc-des (Makefile.am): Likewise.
47149         * modules/gc-hmac-md5 (Makefile.am): Likewise.
47150         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
47151         * modules/gc-md4 (Makefile.am): Likewise.
47152         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47153         * modules/gc-sha1 (Makefile.am): Likewise.
47154         * modules/gc (Makefile.am): Likewise.
47155         * modules/getaddrinfo (Makefile.am): Likewise.
47156         * modules/getcwd (Makefile.am): Likewise.
47157         * modules/getdelim (Makefile.am): Likewise.
47158         * modules/getdomainname (Makefile.am): Likewise.
47159         * modules/getgroups (Makefile.am): Likewise.
47160         * modules/gethostname (Makefile.am): Likewise.
47161         * modules/gethrxtime (Makefile.am): Likewise.
47162         * modules/getline (Makefile.am): Likewise.
47163         * modules/getloadavg (Makefile.am): Likewise.
47164         * modules/getlogin_r (Makefile.am): Likewise.
47165         * modules/getndelim2 (Makefile.am): Likewise.
47166         * modules/getopt (Makefile.am): Likewise.
47167         * modules/getpagesize (Makefile.am): Likewise.
47168         * modules/getpass-gnu (Makefile.am): Likewise.
47169         * modules/getpass (Makefile.am): Likewise.
47170         * modules/getsubopt (Makefile.am): Likewise.
47171         * modules/gettime (Makefile.am): Likewise.
47172         * modules/gettimeofday (Makefile.am): Likewise.
47173         * modules/getugroups (Makefile.am): Likewise.
47174         * modules/getusershell (Makefile.am): Likewise.
47175         * modules/glob (Makefile.am): Likewise.
47176         * modules/group-member (Makefile.am): Likewise.
47177         * modules/hard-locale (Makefile.am): Likewise.
47178         * modules/hash (Makefile.am): Likewise.
47179         * modules/hmac-md5 (Makefile.am): Likewise.
47180         * modules/hmac-sha1 (Makefile.am): Likewise.
47181         * modules/human (Makefile.am): Likewise.
47182         * modules/idcache (Makefile.am): Likewise.
47183         * modules/imaxabs (Makefile.am): Likewise.
47184         * modules/imaxdiv (Makefile.am): Likewise.
47185         * modules/inet_ntop (Makefile.am): Likewise.
47186         * modules/inet_pton (Makefile.am): Likewise.
47187         * modules/intprops (Makefile.am): Likewise.
47188         * modules/inttostr (Makefile.am): Likewise.
47189         * modules/inttypes (Makefile.am): Likewise.
47190         * modules/isapipe (Makefile.am): Likewise.
47191         * modules/javaversion (Makefile.am): Likewise.
47192         * modules/lchmod (Makefile.am): Likewise.
47193         * modules/lchown (Makefile.am): Likewise.
47194         * modules/localcharset (Makefile.am): Likewise.
47195         * modules/long-options (Makefile.am): Likewise.
47196         * modules/lstat (Makefile.am): Likewise.
47197         * modules/malloc (Makefile.am): Likewise.
47198         * modules/mathl (Makefile.am): Likewise.
47199         * modules/mbchar (Makefile.am): Likewise.
47200         * modules/md2 (Makefile.am): Likewise.
47201         * modules/md4 (Makefile.am): Likewise.
47202         * modules/md5 (Makefile.am): Likewise.
47203         * modules/memcasecmp (Makefile.am): Likewise.
47204         * modules/memchr (Makefile.am): Likewise.
47205         * modules/memcmp (Makefile.am): Likewise.
47206         * modules/memcoll (Makefile.am): Likewise.
47207         * modules/memcpy (Makefile.am): Likewise.
47208         * modules/memmem (Makefile.am): Likewise.
47209         * modules/memmove (Makefile.am): Likewise.
47210         * modules/mempcpy (Makefile.am): Likewise.
47211         * modules/memrchr (Makefile.am): Likewise.
47212         * modules/memset (Makefile.am): Likewise.
47213         * modules/memxor (Makefile.am): Likewise.
47214         * modules/mkancesdirs (Makefile.am): Likewise.
47215         * modules/mkdir-p (Makefile.am): Likewise.
47216         * modules/mkdir (Makefile.am): Likewise.
47217         * modules/mkdtemp (Makefile.am): Likewise.
47218         * modules/mkstemp (Makefile.am): Likewise.
47219         * modules/mktime (Makefile.am): Likewise.
47220         * modules/modechange (Makefile.am): Likewise.
47221         * modules/mountlist (Makefile.am): Likewise.
47222         * modules/nanosleep (Makefile.am): Likewise.
47223         * modules/obstack (Makefile.am): Likewise.
47224         * modules/openat (Makefile.am): Likewise.
47225         * modules/pagealign_alloc (Makefile.am): Likewise.
47226         * modules/pathmax (Makefile.am): Likewise.
47227         * modules/physmem (Makefile.am): Likewise.
47228         * modules/poll (Makefile.am): Likewise.
47229         * modules/posixtm (Makefile.am): Likewise.
47230         * modules/posixver (Makefile.am): Likewise.
47231         * modules/putenv (Makefile.am): Likewise.
47232         * modules/quote (Makefile.am): Likewise.
47233         * modules/quotearg (Makefile.am): Likewise.
47234         * modules/raise (Makefile.am): Likewise.
47235         * modules/read-file (Makefile.am): Likewise.
47236         * modules/readline (Makefile.am): Likewise.
47237         * modules/readlink (Makefile.am): Likewise.
47238         * modules/readtokens (Makefile.am): Likewise.
47239         * modules/readutmp (Makefile.am): Likewise.
47240         * modules/realloc (Makefile.am): Likewise.
47241         * modules/regex (Makefile.am): Likewise.
47242         * modules/rename-dest-slash (Makefile.am): Likewise.
47243         * modules/rename (Makefile.am): Likewise.
47244         * modules/rijndael (Makefile.am): Likewise.
47245         * modules/rmdir (Makefile.am): Likewise.
47246         * modules/rpmatch (Makefile.am): Likewise.
47247         * modules/safe-read (Makefile.am): Likewise.
47248         * modules/safe-write (Makefile.am): Likewise.
47249         * modules/same-inode (Makefile.am): Likewise.
47250         * modules/same (Makefile.am): Likewise.
47251         * modules/save-cwd (Makefile.am): Likewise.
47252         * modules/savedir (Makefile.am): Likewise.
47253         * modules/setenv (Makefile.am): Likewise.
47254         * modules/settime (Makefile.am): Likewise.
47255         * modules/sha1 (Makefile.am): Likewise.
47256         * modules/sig2str (Makefile.am): Likewise.
47257         * modules/snprintf (Makefile.am): Likewise.
47258         * modules/stat-macros (Makefile.am): Likewise.
47259         * modules/stat-time (Makefile.am): Likewise.
47260         * modules/stdbool (Makefile.am): Likewise.
47261         * modules/stdint (Makefile.am): Likewise.
47262         * modules/stdlib-safer (Makefile.am): Likewise.
47263         * modules/stpcpy (Makefile.am): Likewise.
47264         * modules/stpncpy (Makefile.am): Likewise.
47265         * modules/strcase (Makefile.am): Likewise.
47266         * modules/strcasestr (Makefile.am): Likewise.
47267         * modules/strchrnul (Makefile.am): Likewise.
47268         * modules/strcspn (Makefile.am): Likewise.
47269         * modules/strdup (Makefile.am): Likewise.
47270         * modules/strerror (Makefile.am): Likewise.
47271         * modules/strftime (Makefile.am): Likewise.
47272         * modules/strndup (Makefile.am): Likewise.
47273         * modules/strnlen (Makefile.am): Likewise.
47274         * modules/strpbrk (Makefile.am): Likewise.
47275         * modules/strsep (Makefile.am): Likewise.
47276         * modules/strstr (Makefile.am): Likewise.
47277         * modules/strtod (Makefile.am): Likewise.
47278         * modules/strtoimax (Makefile.am): Likewise.
47279         * modules/strtok_r (Makefile.am): Likewise.
47280         * modules/strtol (Makefile.am): Likewise.
47281         * modules/strtoll (Makefile.am): Likewise.
47282         * modules/strtoul (Makefile.am): Likewise.
47283         * modules/strtoull (Makefile.am): Likewise.
47284         * modules/strtoumax (Makefile.am): Likewise.
47285         * modules/strverscmp (Makefile.am): Likewise.
47286         * modules/sys_socket (Makefile.am): Likewise.
47287         * modules/sys_stat (Makefile.am): Likewise.
47288         * modules/sysexits (Makefile.am): Likewise.
47289         * modules/time_r (Makefile.am): Likewise.
47290         * modules/timegm (Makefile.am): Likewise.
47291         * modules/timespec (Makefile.am): Likewise.
47292         * modules/tmpfile-safer (Makefile.am): Likewise.
47293         * modules/trim (Makefile.am): Likewise.
47294         * modules/unistd-safer (Makefile.am): Likewise.
47295         * modules/unlinkdir (Makefile.am): Likewise.
47296         * modules/unlocked-io (Makefile.am): Likewise.
47297         * modules/userspec (Makefile.am): Likewise.
47298         * modules/utime (Makefile.am): Likewise.
47299         * modules/utimecmp (Makefile.am): Likewise.
47300         * modules/utimens (Makefile.am): Likewise.
47301         * modules/vasnprintf (Makefile.am): Likewise.
47302         * modules/vasprintf (Makefile.am): Likewise.
47303         * modules/vsnprintf (Makefile.am): Likewise.
47304         * modules/xalloc (Makefile.am): Likewise.
47305         * modules/xgetcwd (Makefile.am): Likewise.
47306         * modules/xnanosleep (Makefile.am): Likewise.
47307         * modules/xreadlink (Makefile.am): Likewise.
47308         * modules/xstrtod (Makefile.am): Likewise.
47309         * modules/xstrtol (Makefile.am): Likewise.
47310         * modules/xstrtold (Makefile.am): Likewise.
47311         * modules/yesno (Makefile.am): Likewise.
47312         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47313
47314 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47315
47316         * modules/error (Makefile.am): Distribute files through
47317         EXTRA_DIST, not lib_SOURCES.
47318
47319 2006-10-12  Eric Blake  <ebb9@byu.net>
47320
47321         * modules/error (Makefile.am): Distribute files in /lib.
47322         * modules/obstack (Makefile.am): Likewise.
47323
47324 2006-10-12  Bruno Haible  <bruno@clisp.org>
47325
47326         * modules/acl (Makefile.am): Distribute all files in lib/ through
47327         EXTRA_DIST.
47328         * modules/arcfour (Makefile.am): Likewise.
47329         * modules/arctwo (Makefile.am): Likewise.
47330         * modules/argmatch (Makefile.am): Likewise.
47331         * modules/argz (Makefile.am): Likewise.
47332         * modules/atexit (Makefile.am): Likewise.
47333         * modules/backupfile (Makefile.am): Likewise.
47334         * modules/c-strtod (Makefile.am): Likewise.
47335         * modules/c-strtold (Makefile.am): Likewise.
47336         * modules/calloc (Makefile.am): Likewise.
47337         * modules/canon-host (Makefile.am): Likewise.
47338         * modules/canonicalize (Makefile.am): Likewise.
47339         * modules/chdir-long (Makefile.am): Likewise.
47340         * modules/chdir-safer (Makefile.am): Likewise.
47341         * modules/check-version (Makefile.am): Likewise.
47342         * modules/chown (Makefile.am): Likewise.
47343         * modules/cloexec (Makefile.am): Likewise.
47344         * modules/close-stream (Makefile.am): Likewise.
47345         * modules/closeout (Makefile.am): Likewise.
47346         * modules/crc (Makefile.am): Likewise.
47347         * modules/cycle-check (Makefile.am): Likewise.
47348         * modules/des (Makefile.am): Likewise.
47349         * modules/dirfd (Makefile.am): Likewise.
47350         * modules/dirname (Makefile.am): Likewise.
47351         * modules/dup2 (Makefile.am): Likewise.
47352         * modules/euidaccess (Makefile.am): Likewise.
47353         * modules/exclude (Makefile.am): Likewise.
47354         * modules/exitfail (Makefile.am): Likewise.
47355         * modules/fcntl-safer (Makefile.am): Likewise.
47356         * modules/file-type (Makefile.am): Likewise.
47357         * modules/fileblocks (Makefile.am): Likewise.
47358         * modules/filemode (Makefile.am): Likewise.
47359         * modules/filenamecat (Makefile.am): Likewise.
47360         * modules/fnmatch (Makefile.am): Likewise.
47361         * modules/fopen-safer (Makefile.am): Likewise.
47362         * modules/fpending (Makefile.am): Likewise.
47363         * modules/fprintftime (Makefile.am): Likewise.
47364         * modules/free (Makefile.am): Likewise.
47365         * modules/fsusage (Makefile.am): Likewise.
47366         * modules/ftruncate (Makefile.am): Likewise.
47367         * modules/fts (Makefile.am): Likewise.
47368         * modules/gc (Makefile.am): Likewise.
47369         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47370         * modules/getaddrinfo (Makefile.am): Likewise.
47371         * modules/getcwd (Makefile.am): Likewise.
47372         * modules/getdelim (Makefile.am): Likewise.
47373         * modules/getdomainname (Makefile.am): Likewise.
47374         * modules/getgroups (Makefile.am): Likewise.
47375         * modules/gethostname (Makefile.am): Likewise.
47376         * modules/gethrxtime (Makefile.am): Likewise.
47377         * modules/getline (Makefile.am): Likewise.
47378         * modules/getloadavg (Makefile.am): Likewise.
47379         * modules/getlogin_r (Makefile.am): Likewise.
47380         * modules/getopt (Makefile.am): Likewise.
47381         * modules/getpass (Makefile.am): Likewise.
47382         * modules/getpass-gnu (Makefile.am): Likewise.
47383         * modules/getsubopt (Makefile.am): Likewise.
47384         * modules/gettime (Makefile.am): Likewise.
47385         * modules/gettimeofday (Makefile.am): Likewise.
47386         * modules/getugroups (Makefile.am): Likewise.
47387         * modules/getusershell (Makefile.am): Likewise.
47388         * modules/glob (Makefile.am): Likewise.
47389         * modules/group-member (Makefile.am): Likewise.
47390         * modules/hard-locale (Makefile.am): Likewise.
47391         * modules/hash (Makefile.am): Likewise.
47392         * modules/hmac-md5 (Makefile.am): Likewise.
47393         * modules/hmac-sha1 (Makefile.am): Likewise.
47394         * modules/human (Makefile.am): Likewise.
47395         * modules/idcache (Makefile.am): Likewise.
47396         * modules/imaxabs (Makefile.am): Likewise.
47397         * modules/imaxdiv (Makefile.am): Likewise.
47398         * modules/inet_ntop (Makefile.am): Likewise.
47399         * modules/inet_pton (Makefile.am): Likewise.
47400         * modules/inttostr (Makefile.am): Likewise.
47401         * modules/isapipe (Makefile.am): Likewise.
47402         * modules/lchown (Makefile.am): Likewise.
47403         * modules/long-options (Makefile.am): Likewise.
47404         * modules/lstat (Makefile.am): Likewise.
47405         * modules/malloc (Makefile.am): Likewise.
47406         * modules/mathl (Makefile.am): Likewise.
47407         * modules/mbchar (Makefile.am): Likewise.
47408         * modules/md2 (Makefile.am): Likewise.
47409         * modules/md4 (Makefile.am): Likewise.
47410         * modules/md5 (Makefile.am): Likewise.
47411         * modules/memcasecmp (Makefile.am): Likewise.
47412         * modules/memchr (Makefile.am): Likewise.
47413         * modules/memcmp (Makefile.am): Likewise.
47414         * modules/memcoll (Makefile.am): Likewise.
47415         * modules/memcpy (Makefile.am): Likewise.
47416         * modules/memmem (Makefile.am): Likewise.
47417         * modules/memmove (Makefile.am): Likewise.
47418         * modules/mempcpy (Makefile.am): Likewise.
47419         * modules/memrchr (Makefile.am): Likewise.
47420         * modules/memset (Makefile.am): Likewise.
47421         * modules/memxor (Makefile.am): Likewise.
47422         * modules/mkancesdirs (Makefile.am): Likewise.
47423         * modules/mkdir (Makefile.am): Likewise.
47424         * modules/mkdir-p (Makefile.am): Likewise.
47425         * modules/mkdtemp (Makefile.am): Likewise.
47426         * modules/mkstemp (Makefile.am): Likewise.
47427         * modules/mktime (Makefile.am): Likewise.
47428         * modules/modechange (Makefile.am): Likewise.
47429         * modules/mountlist (Makefile.am): Likewise.
47430         * modules/nanosleep (Makefile.am): Likewise.
47431         * modules/openat (Makefile.am): Likewise.
47432         * modules/pagealign_alloc (Makefile.am): Likewise.
47433         * modules/physmem (Makefile.am): Likewise.
47434         * modules/poll (Makefile.am): Likewise.
47435         * modules/posixtm (Makefile.am): Likewise.
47436         * modules/posixver (Makefile.am): Likewise.
47437         * modules/putenv (Makefile.am): Likewise.
47438         * modules/quote (Makefile.am): Likewise.
47439         * modules/quotearg (Makefile.am): Likewise.
47440         * modules/raise (Makefile.am): Likewise.
47441         * modules/read-file (Makefile.am): Likewise.
47442         * modules/readline (Makefile.am): Likewise.
47443         * modules/readlink (Makefile.am): Likewise.
47444         * modules/readtokens (Makefile.am): Likewise.
47445         * modules/readutmp (Makefile.am): Likewise.
47446         * modules/realloc (Makefile.am): Likewise.
47447         * modules/regex (Makefile.am): Likewise.
47448         * modules/rename (Makefile.am): Likewise.
47449         * modules/rename-dest-slash (Makefile.am): Likewise.
47450         * modules/rijndael (Makefile.am): Likewise.
47451         * modules/rmdir (Makefile.am): Likewise.
47452         * modules/rpmatch (Makefile.am): Likewise.
47453         * modules/safe-read (Makefile.am): Likewise.
47454         * modules/safe-write (Makefile.am): Likewise.
47455         * modules/same (Makefile.am): Likewise.
47456         * modules/save-cwd (Makefile.am): Likewise.
47457         * modules/savedir (Makefile.am): Likewise.
47458         * modules/setenv (Makefile.am): Likewise.
47459         * modules/settime (Makefile.am): Likewise.
47460         * modules/sha1 (Makefile.am): Likewise.
47461         * modules/sig2str (Makefile.am): Likewise.
47462         * modules/snprintf (Makefile.am): Likewise.
47463         * modules/stdlib-safer (Makefile.am): Likewise.
47464         * modules/stpcpy (Makefile.am): Likewise.
47465         * modules/stpncpy (Makefile.am): Likewise.
47466         * modules/strcase (Makefile.am): Likewise.
47467         * modules/strcasestr (Makefile.am): Likewise.
47468         * modules/strchrnul (Makefile.am): Likewise.
47469         * modules/strcspn (Makefile.am): Likewise.
47470         * modules/strdup (Makefile.am): Likewise.
47471         * modules/strerror (Makefile.am): Likewise.
47472         * modules/strftime (Makefile.am): Likewise.
47473         * modules/strndup (Makefile.am): Likewise.
47474         * modules/strnlen (Makefile.am): Likewise.
47475         * modules/strpbrk (Makefile.am): Likewise.
47476         * modules/strsep (Makefile.am): Likewise.
47477         * modules/strstr (Makefile.am): Likewise.
47478         * modules/strtod (Makefile.am): Likewise.
47479         * modules/strtoimax (Makefile.am): Likewise.
47480         * modules/strtok_r (Makefile.am): Likewise.
47481         * modules/strtol (Makefile.am): Likewise.
47482         * modules/strtoll (Makefile.am): Likewise.
47483         * modules/strtoul (Makefile.am): Likewise.
47484         * modules/strtoull (Makefile.am): Likewise.
47485         * modules/strtoumax (Makefile.am): Likewise.
47486         * modules/strverscmp (Makefile.am): Likewise.
47487         * modules/time_r (Makefile.am): Likewise.
47488         * modules/timegm (Makefile.am): Likewise.
47489         * modules/tmpfile-safer (Makefile.am): Likewise.
47490         * modules/unistd-safer (Makefile.am): Likewise.
47491         * modules/unlinkdir (Makefile.am): Likewise.
47492         * modules/userspec (Makefile.am): Likewise.
47493         * modules/utime (Makefile.am): Likewise.
47494         * modules/utimecmp (Makefile.am): Likewise.
47495         * modules/utimens (Makefile.am): Likewise.
47496         * modules/vasnprintf (Makefile.am): Likewise.
47497         * modules/vasprintf (Makefile.am): Likewise.
47498         * modules/vsnprintf (Makefile.am): Likewise.
47499         * modules/xalloc (Makefile.am): Likewise.
47500         * modules/xgetcwd (Makefile.am): Likewise.
47501         * modules/xnanosleep (Makefile.am): Likewise.
47502         * modules/xreadlink (Makefile.am): Likewise.
47503         * modules/xstrtod (Makefile.am): Likewise.
47504         * modules/xstrtol (Makefile.am): Likewise.
47505         * modules/xstrtold (Makefile.am): Likewise.
47506         * modules/yesno (Makefile.am): Likewise.
47507
47508 2006-10-12  Jim Meyering  <jim@meyering.net>
47509
47510         * m4/getloadavg.m4: Revert the change below.
47511
47512         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47513         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47514         fail with a symlink, which is what coreutils' ./bootstrap now
47515         creates by default.
47516
47517 2006-10-12  Bruno Haible  <bruno@clisp.org>
47518
47519         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47520         mingw.
47521         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47522         MSVC and mingw explicitly.
47523
47524 2006-10-11  Simon Josefsson  <jas@extundo.com>
47525             Bruno Haible  <bruno@clisp.org>
47526
47527         Add support for multiple gnulib-tool invocations in the scope of a
47528         single configure.ac file.
47529         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47530         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47531         with the same contents as the _LIBADD variable.
47532         (func_emit_initmacro_start, func_emit_initmacro_end,
47533         func_emit_initmacro_done): New functions.
47534         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47535         gl_LIBOBJS and gl_LTLIBOBJS.
47536
47537 2006-10-11  Bruno Haible  <bruno@clisp.org>
47538
47539         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47540         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47541         autoreconf. Instead, invoke autopoint explicitly but move back the
47542         *.m4 files from gnulib.
47543
47544 2006-10-11  Bruno Haible  <bruno@clisp.org>
47545
47546         * gnulib-tool (func_usage): Make module names after --create-testdir
47547         optional.
47548         (func_create_testdir): If no module was specified, use nearly all
47549         modules.
47550
47551 2006-10-12  Jim Meyering  <jim@meyering.net>
47552
47553         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47554         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47555         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47556         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47557         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47558         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47559         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47560         (fts_set_stat_required): New function.
47561         (fts_open): Defer the calls to fts_stat, if possible or requested.
47562         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47563         into fts_stat itself.
47564         (fts_read): Perform any required (deferred) fts_stat call.
47565         (fts_build): Likewise, for the directory we're about to open and read.
47566         In the readdir loop, carefully decide whether each entry will require
47567         an eventual call to fts_stat, using dirent.d_type info if available.
47568         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47569         a command line argument into this function.  Update all callers.
47570         Map a return value of FTS_DOT to FTS_D for a command line argument.
47571         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47572         Thanks to Miklos Szeredi for his tenacity and for the initial
47573         bug report about "find" failing on a FUSE-based file system.
47574
47575         * lib/fts.c (fts_open): Use consistent indentation.
47576
47577 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47578
47579         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47580         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47581         reported by Jim Meyering.  All uses of cache variables renamed
47582         to match Autoconf's.
47583         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47584         the other one.
47585
47586         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47587         Fix misspelling in diagnostic.
47588
47589 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47590
47591         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47592         defined.  Problem reported by Matthew Woehlke.
47593
47594         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47595         Add support for Tandem NonStop R series.
47596         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47597         Use new macro.
47598
47599         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47600         (has_trailing_slash): Omit size arg; all callers changed.
47601         Omit 'inline', since it doesn't help performance and we'd
47602         need to configure it.
47603         Don't count //, ///, etc. as having a trailing slash.
47604         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47605         (rpl_rename_dest_slash): On failure, use rename's errno rather
47606         than (in some cases) an incorrect or junk errno.
47607         Simplify code by removing need to compute length; this does
47608         cause it to make two passes instead of one over the file name,
47609         but it's worth it.
47610
47611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47612         change, since Autoconf's version may no longer be appropriate now
47613         that we are using CVS Autoconf's version.  Add support for Tandem.
47614
47615 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47616             Bruno Haible  <bruno@clisp.org>
47617
47618         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47619         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47620         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47621         gl_AC_TYPE_LONG_LONG.
47622
47623         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47624         instead of HAVE_LONG_LONG.
47625         * lib/printf-args.c (printf_fetchargs): Likewise.
47626         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47627         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47628         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47629         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47630         gl_AC_TYPE_LONG_LONG.
47631
47632 2006-10-11  Bruno Haible  <bruno@clisp.org>
47633
47634         * m4/longlong.m4: Add comments.
47635         * m4/ulonglong.m4: Likewise.
47636
47637 2006-10-10  Bruno Haible  <bruno@clisp.org>
47638
47639         Make it possible to #define stpcpy, strdup to aliases.
47640         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47641         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47642
47643 2006-10-10  Bruno Haible  <bruno@clisp.org>
47644
47645         Make it possible to #define gcd to an alias.
47646         * lib/gcd.c: Include config.h.
47647
47648 2006-10-10  Bruno Haible  <bruno@clisp.org>
47649
47650         Make it possible to #define c_isascii to an alias.
47651         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47652         defined. Undefine the macros before defining them, to avoid gcc
47653         warnings.
47654         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47655         define NO_C_CTYPE_MACROS early.
47656
47657 2006-10-10  Bruno Haible  <bruno@clisp.org>
47658
47659         Make it possible to #define set_program_name to an alias.
47660         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47661         ENABLE_RELOCATABLE early.
47662
47663 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47664
47665         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47666         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47667         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47668         More generally, don't assume that 64-bit signed int is available
47669         if unsigned int is, and vice versa.
47670         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47671         unsigned symbols, not on their signed counterparts.
47672         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47673         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47674         (UINT64_C, UINTMAX_C):
47675         Likewise.
47676         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47677         unsigned counterparts.
47678         (Have_long_long, Unsigned): New macros.
47679         (Int): Renamed from INT.
47680         (strtoimax): Use the new macros.
47681         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47682         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47683         * modules/inttypes (inttypes.h): Substitute
47684         HAVE_UNSIGNED_LONG_LONG_INT.
47685         * modules/stdint (stdint.h): Likewise.
47686         (Files): Add m4/ulonglong.m4.
47687
47688 2006-10-10  Bruno Haible  <bruno@clisp.org>
47689
47690         Fix a gcc -Wshadow warning.
47691         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47692         to 'bucket'.
47693         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47694         gl_linked_indexof_from_to): Likewise.
47695         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47696         Likewise.
47697         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47698         Likewise.
47699         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47700         Reported by Eric Blake.
47701
47702 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47703
47704         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47705         for NetBSD.  Problem reported by Bruno Haible.
47706
47707 2006-10-09  Jim Meyering  <jim@meyering.net>
47708
47709         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47710         Patch from Bruno Haible.
47711
47712 2006-10-09  Jim Meyering  <jim@meyering.net>
47713
47714         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47715         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47716         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47717
47718 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47719
47720         Don't include <config.h> twice; this doesn't work in some cases,
47721         e.g., when config.h has "#define intmax_t long long int" and
47722         we include <config.h>, <inttypes.h>, <config.h> in that order.
47723         Problem reported by Matthew Woehlke in:
47724         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47725         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47726         * lib/fts-cycle.c: Don't include config.h.
47727         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47728         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47729         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47730         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47731         inttypes.h.
47732         * lib/xstrtoumax.c: Likewise.
47733         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47734         __strtol and the like, so that this module is more like its siblings.
47735         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47736         Remove; no longer needed now that we assume gnulib inttypes.h.
47737
47738 2006-10-08  Bruno Haible  <bruno@clisp.org>
47739
47740         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47741         option.
47742
47743 2006-10-07  Jim Meyering  <jim@meyering.net>
47744
47745         * modules/inttypes (inttypes.h): Revert what seems to have been
47746         an inadvertent part of today's change: use "|", not "/" in the
47747         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47748
47749 2006-10-07  Bruno Haible  <bruno@clisp.org>
47750
47751         * modules/sublist: New file.
47752
47753 2006-10-07  Bruno Haible  <bruno@clisp.org>
47754
47755         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47756         * modules/argz (argz.h): Likewise.
47757         * modules/arpa_inet (arpa/inet.h): Likewise.
47758         * modules/byteswap (byteswap.h): Likewise.
47759         * modules/configmake (configmake.h): Likewise.
47760         * modules/fcntl (fcntl.h): Likewise.
47761         * modules/fnmatch (fnmatch.h): Likewise.
47762         * modules/getopt (getopt.h): Likewise.
47763         * modules/glob (glob.h): Likewise.
47764         * modules/inttypes (inttypes.h): Likewise.
47765         * modules/netinet_in (netinet/in.h): Likewise.
47766         * modules/poll (poll.h): Likewise.
47767         * modules/stdbool (stdbool.h): Likewise.
47768         * modules/stdint (stdint.h): Likewise.
47769         * modules/sys_select (sys/select.h): Likewise.
47770         * modules/sys_socket (sys/socket.h): Likewise.
47771         * modules/sys_stat (sys/stat.h): Likewise.
47772         * modules/sysexits (sysexits.h): Likewise.
47773         * modules/unistd (unistd.h): Likewise.
47774         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47775         Add a "DO NOT EDIT" comment to the generated file.
47776         (func_import): Likewise for gnulib-comp.m4.
47777
47778 2006-10-07  Bruno Haible  <bruno@clisp.org>
47779
47780         * lib/gl_sublist.h: New file.
47781         * lib/gl_sublist.c: New file.
47782
47783 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47784
47785         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47786         name (relative to the original working directory) and the file
47787         name component (relative to the temporary working directory).  All
47788         callers changed.
47789         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47790         * lib/mkdir-p.c (make_dir_parents): Likewise.
47791         * lib/mkdir-p.h (make_dir_parents): Likewise.
47792
47793 2006-10-06  Eric Blake  <ebb9@byu.net>
47794
47795         Define several macros for use by the clean-temp module.
47796         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47797         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47798         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47799
47800         * lib/clean-temp.h (close_stream_temp): New declaration.
47801         * lib/clean-temp.c (includes): Pull in headers according to what
47802         other modules are in use.
47803         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47804
47805 2006-10-06  Bruno Haible  <bruno@clisp.org>
47806
47807         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47808         instead of fopen, fwriteerror.
47809
47810 2006-10-06  Bruno Haible  <bruno@clisp.org>
47811
47812         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47813         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47814         int.
47815         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47816         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47817         Return an error indicator.
47818         Suggested by Eric Blake.
47819
47820 2006-10-06  Bruno Haible  <bruno@clisp.org>
47821
47822         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47823         Reported by Eric Blake.
47824
47825 2006-10-06  Bruno Haible  <bruno@clisp.org>
47826
47827         * modules/closeout (Description): Mention stderr too.
47828
47829 2006-10-06  Bruno Haible  <bruno@clisp.org>
47830         and Paul Eggert  <eggert@cs.ucla.edu>
47831
47832         * lib/closeout.c (close_stdout): Also close stderr.
47833         * lib/closeout.h: Update comment.
47834
47835 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47836
47837         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47838         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47839         * lib/dirchownmod.c: Include lchown.h.
47840         * lib/lchown.c: Don't include files that lchown.h now includes.
47841         Don't declare chown, since lchown.h now does that.
47842         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47843         (lchown): Define to rpl_chown if lchown is declared but
47844         does not exist.  Declare using a prototype if lchown is not
47845         declared.  Add a copyright notice.
47846         * lib/mkstemp.h: Include <unistd.h>.
47847         * lib/openat.c: Include lchown.h.
47848
47849         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47850         we now test for that separately.
47851         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47852         rather than O_NOFOLLOW, when testing whether it's possible to
47853         avoid a race condition reliably.
47854         * lib/savewd.c (savewd_chdir): Likewise.
47855
47856         Remove macros that are no longer needed now that stdint.h is
47857         reliable.
47858         * lib/fsusage.c (UINTMAX_MAX): Remove.
47859         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47860         * lib/utimecmp.c (SIZE_MAX): Remove.
47861
47862         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47863
47864         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47865         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47866         O_NOATIME works.
47867
47868 2006-10-05  Bruno Haible  <bruno@clisp.org>
47869
47870         * lib/gl_list.h (gl_sortedlist_search_from_to,
47871         gl_sortedlist_indexof_from_to): New declarations.
47872         (gl_list_implementation): New fields sortedlist_search_from_to,
47873         sortedlist_indexof_from_to.
47874         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47875         inline functions.
47876         * lib/gl_list.c (gl_sortedlist_search_from_to,
47877         gl_sortedlist_indexof_from_to): New functions.
47878         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47879         function.
47880         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47881         (gl_array_sortedlist_search_from_to): New function.
47882         (gl_array_list_implementation): Update.
47883         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47884         function.
47885         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47886         (gl_carray_sortedlist_search_from_to): New function.
47887         (gl_carray_list_implementation): Update.
47888         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47889         gl_linked_sortedlist_indexof_from_to): New functions.
47890         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47891         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47892         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47893         gl_tree_sortedlist_indexof_from_to): New functions.
47894         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47895         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47896         Update.
47897         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47898         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47899         Update.
47900
47901 2006-10-05  Bruno Haible  <bruno@clisp.org>
47902
47903         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47904         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47905         (struct gl_list_implementation): Add fields search_from_to,
47906         indexof_from_to. Remove fields search, indexof.
47907         (gl_list_search): Use the search_from_to method.
47908         (gl_list_search_from, gl_list_search_from_to): New functions.
47909         (gl_list_indexof): Use the indexof_from_to method.
47910         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47911         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
47912         (gl_list_search_from, gl_list_search_from_to): New functions.
47913         (gl_list_indexof): Use the indexof_from_to method.
47914         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47915         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47916         gl_array_indexof. Add start_index, end_index arguments.
47917         (gl_array_search_from_to): Renamed from gl_array_search. Add
47918         start_index, end_index arguments.
47919         (gl_array_remove, gl_array_list_implementation): Update.
47920         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47921         gl_carray_indexof. Add start_index, end_index arguments.
47922         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47923         start_index, end_index arguments.
47924         (gl_carray_remove, gl_carray_list_implementation): Update.
47925         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47926         gl_linked_search. Add start_index, end_index arguments.
47927         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47928         start_index, end_index arguments.
47929         (gl_linked_remove): Update.
47930         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47931         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47932         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47933         field to 'size_t'.
47934         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47935         gl_tree_search. Add start_index, end_index arguments.
47936         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47937         start_index, end_index arguments.
47938         (gl_tree_remove): Update.
47939         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47940         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47941         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47942         function.
47943         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47944         gl_tree_search. Add start_index, end_index arguments.
47945         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47946         start_index, end_index arguments.
47947         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47948         Update.
47949         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47950
47951 2006-10-05  Bruno Haible  <bruno@clisp.org>
47952
47953         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47954
47955         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47956         fwriteerror_temp): New declarations.
47957         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47958         (descriptors): New variable.
47959         (cleanup): First, close the descriptors.
47960         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47961         fclose_temp, fwriteerror_temp): New functions.
47962
47963 2006-10-04  Jim Meyering  <jim@meyering.net>
47964
47965         * lib/fts.c (fts_open): Tiny comment change.
47966
47967 2006-10-04  Bruno Haible  <bruno@clisp.org>
47968
47969         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47970         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47971         gl_LOCK_BODY.
47972         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47973         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47974         gl_LOCK_EARLY_BODY.
47975         (gl_LOCK): Require gl_LOCK_BODY.
47976
47977 2006-10-04  Bruno Haible  <bruno@clisp.org>
47978
47979         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47980         (gl_oset_search_atleast): New declaration.
47981         (struct gl_oset_implementation): Add field 'search_atleast'.
47982         (gl_oset_search_atleast): New inline function.
47983         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47984         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47985         (gl_array_oset_implementation): Update.
47986         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47987         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47988         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47989
47990 2006-10-04  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47993
47994 2006-10-03  Bruno Haible  <bruno@clisp.org>
47995
47996         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
47997         from gl_avltreehash_list_implementation.
47998
47999 2006-10-03  Bruno Haible  <bruno@clisp.org>
48000
48001         * lib/gl_oset.c (gl_oset_add): Fix return type.
48002
48003 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
48004
48005         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
48006
48007 2006-10-02  Eric Blake  <ebb9@byu.net>
48008
48009         * modules/strnlen (Depends-on): Add extensions.
48010
48011 2006-10-02  Eric Blake  <ebb9@byu.net>
48012
48013         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
48014         definition in 2.60+.
48015
48016 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
48017
48018         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
48019         checks.
48020
48021 2006-10-02  Bruno Haible  <bruno@clisp.org>
48022
48023         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
48024         to the AUTOMAKE_OPTIONS.
48025         Reported by Jim Meyering.
48026
48027 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48028
48029         Work around bug in Solaris 10 /proc file system:
48030         /proc/self/fd/NNN/.. isn't the parent directory of
48031         the directory whose file descriptor is NNN.  This needs to
48032         be worked around at run time, not compile time, since a
48033         program might be built on Solaris 8, where things work, and
48034         run on Solaris 10.
48035         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
48036         to use the following interface instead:
48037         (OPENAT_BUFFER_SIZE): New macro.
48038         (openat_proc_name): New function.
48039         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
48040         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
48041         Likewise.
48042         * lib/openat-proc.c: New file.
48043         * modules/openat (Files): Add lib/openat-proc.c.
48044         (Depends-on): Add same-inode, stdbool.
48045         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
48046
48047 2006-09-29  Bruno Haible  <bruno@clisp.org>
48048
48049         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
48050         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
48051         argument. Set stdout_closed before testing for ferror, not after.
48052         (fwriteerror, fwriteerror_no_ebadf): New functions.
48053
48054 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48055
48056         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
48057
48058 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
48059
48060         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
48061         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
48062
48063 2006-09-28  Jim Meyering  <jim@meyering.net>
48064
48065         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
48066         Include <unistd.h>.
48067
48068 2006-09-28  Bruno Haible  <bruno@clisp.org>
48069
48070         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
48071         * modules/linkedhash-list (Depends-on): Likewise.
48072         * modules/rbtreehash-list (Depends-on): Likewise.
48073
48074 2006-09-28  Bruno Haible  <bruno@clisp.org>
48075
48076         * lib/strndup.h: Simplify the redefinition of strndup.
48077         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
48078         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
48079
48080 2006-09-28  Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
48083         * lib/gl_linkedhash_list.c: Likewise.
48084         * lib/gl_rbtreehash_list.c: Likewise.
48085
48086 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48087
48088         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
48089         getaddrinfo.
48090
48091         * lib/__fpending.h: Don't include <stdio_ext.h> unless
48092         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
48093         it causes <stdio_ext.h> to cause a compile-time error.
48094         Problem reported by Nelson H. F. Beebe.
48095         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
48096         of HAVE_DECL___PENDING.
48097
48098         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
48099         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
48100         declaration.
48101
48102 2006-09-27  Jim Meyering  <jim@meyering.net>
48103
48104         This file could end up with a definition for a function
48105         named __strndup, rather than rpl_strndup on a system with
48106         incomplete weak_alias support.
48107         * lib/strndup.c (strndup): Rename from __strndup.
48108         Remove #defines that used to map __strndup to strndup.
48109         Don't use K&R prototypes.
48110         Remove LIBC-related code, since this file is not sync'd with glibc.
48111         * lib/strndup.h: Revamp, accordingly.
48112         * m4/strndup.m4: Modernize.
48113
48114 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48115
48116         * modules/savewd (Depends-on): Add 'raise'.
48117         * lib/savewd.c: Include <signal.h>, for 'raise'.
48118
48119 2006-09-26  Jim Meyering  <jim@meyering.net>
48120
48121         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
48122         when we detect Darwin 8.7.0's acl_get_file bug.
48123         Rearrange to perform the new (below) run-test while $LIBS
48124         contains any acl-related library.  Set USE_ACL at the end.
48125         (gl_ACL_GET_FILE): New function.
48126
48127 2006-09-26  Eric Blake  <ebb9@byu.net>
48128
48129         * lib/verror.c: Include <config.h> unconditionally.
48130
48131 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
48132
48133         * modules/clock-time (Maintainer): Add self.
48134         * modules/getlogin_r (Depends-on): Add extensions.
48135
48136 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48137
48138         * modules/clock-time: New module.
48139         * modules/nanosleep (Depends-on): Add clock-time.
48140         * modules/gethrxtime (Depends-on): Likewise.
48141         * modules/gettime (Depends-on): Likewise.
48142         * modules/settime (Depends-on): Likewise.
48143
48144         * modules/fts-lgpl: Depend on openat.
48145         * modules/mkancesdirs: Depend on savewd.
48146         * modules/mkdir-p: Likewise.
48147
48148 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48149
48150         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
48151
48152         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
48153         `gl_have_arbitrary_file_name_length_limit' to
48154         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48155         actually works between configure runs.
48156
48157 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48158             Bruno Haible  <bruno@clisp.org>
48159
48160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48161
48162 2006-09-25  Jim Meyering  <jim@meyering.net>
48163
48164         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48165         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48166
48167 2006-09-25  Eric Blake  <ebb9@byu.net>
48168
48169         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48170         exec's in 2006-09-18 patch when shuffling fds.
48171
48172 2006-09-25  Bruno Haible  <bruno@clisp.org>
48173
48174         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48175         Reported by Jim Meyering.
48176
48177 2006-09-24  Jim Meyering  <jim@meyering.net>
48178
48179         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48180         compare a pointer against a literal "0".  That caused failures with
48181         at least HP-UX's hpcc.
48182
48183 2006-09-22  Simon Josefsson  <jas@extundo.com>
48184
48185         * modules/gc-sha1:
48186         * modules/gc-md4:
48187         * modules/gc-hmac-sha1:
48188         * modules/gc-hmac-md5:
48189         * modules/gc-des:
48190         * modules/gc-arcfour: Distribute more files.
48191
48192 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48193
48194         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48195         (gl_linked_iterator_from_to): Initialize struct completely.
48196         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48197         (gl_tree_iterator_from_to): Likewise
48198         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48199         * lib/gl_array_list.c [lint] (gl_array_iterator)
48200         (gl_array_iterator_from_to): Likewise.
48201         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48202         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48203         (gl_carray_iterator_from_to): Likewise.
48204
48205         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48206         * lib/md4.c (md4_process_block): Remove unused variable.
48207         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48208         parentheses for clarity.
48209
48210 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48211
48212         * modules/bison-i18n (Depends-on): Add gettext.
48213
48214 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48215
48216         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48217         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48218         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48219         also add missing comma that caused broken test.
48220         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48221         stdlib.h, for `abort'.
48222         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48223         variables.
48224         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48225         include unistd.h if present, for `rmdir'.
48226         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48227         variables.
48228         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48229         in the process include standard headers for prototypes.
48230         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48231         gets declared on GNU/Linux.
48232         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48233         unistd.h, for `rmdir'.
48234         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48235
48236         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48237         always true.
48238         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48239
48240         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48241
48242 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48243
48244         * gnulib-tool (func_version): Create output all at once.  This
48245         may help avoid triggering unnecessary SIGPIPEs, and at any
48246         rate it doesn't hurt.
48247
48248 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48249             Bruno Haible  <bruno@clisp.org>
48250
48251         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48252         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48253         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48254
48255         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48256         (gl_FUNC_VASPRINTF): Invoke it.
48257
48258 2006-09-22  Bruno Haible  <bruno@clisp.org>
48259
48260         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48261         getloadavg.c as first argument.
48262
48263 2006-09-22  Bruno Haible  <bruno@clisp.org>
48264
48265         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48266         at the beginning of the gl_INIT macro.
48267         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48268         gl_GETLOADAVG.
48269
48270 2006-09-22  Bruno Haible  <bruno@clisp.org>
48271
48272         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48273         module.
48274         Suggested by Ralf Wildenhues.
48275
48276 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48277
48278         Import this patch from libc:
48279
48280         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48281
48282         * lib/regex_internal.c (re_string_reconstruct): Handle
48283         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48284         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48285         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48286         re_string_context_at.
48287
48288         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48289         now requires it.
48290         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48291         gl_REGEX now does it for us.
48292         (gl_REGEX): Add test taken from
48293         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48294
48295         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48296         Check that large offsets work.  Modernize Autoconf usages.
48297         Prefer "yes" to mean a good thing rather than a bad.
48298         Don't put "#define mkstemp" in config.h, as this might interfere
48299         with standard system headers that "#define mkstemp mkstemp64".
48300
48301         * modules/mkstemp (Depends-on): Add extensions, so that
48302         mkstemp is visible on some platforms.
48303         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48304         (Include): Change to "mkstemp.h" from <stdlib.h>.
48305         (Files): Add mkstemp.h.
48306
48307         * lib/mkstemp.h: New file, since some standard headers
48308         #define mkstemp.
48309         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48310         Include "mkstemp.h".
48311         Make the _LIBC code resemble glibc original more,
48312         e.g., use K&R style.
48313         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48314         (mkstemp): Remove, since mkstemp.h does this for us.
48315         * lib/stdlib--.h: Include mkstemp.h.
48316
48317         Import this patch from libc:
48318
48319         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48320
48321         * lib/tempname.c (__gen_tempname): Change attempts_min
48322         into a macro.  Use preprocessor to decide how to initialize
48323         attempts [Coverity CID 67].
48324
48325 2006-09-20  Bruno Haible  <bruno@clisp.org>
48326
48327         * lib/mkdtemp.c: Import from libc.
48328         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48329                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48330                 attempts_min into a macro.  Use preprocessor to decide how to
48331                 initialize attempts [Coverity CID 67].
48332         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48333                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48334                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48335
48336 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48337
48338         * gnulib-tool (func_exit): New function, to allow to pass the
48339         exit status portably through the trap.  Use everywhere.
48340         (--help, --version): Signal a write error.
48341         (trap): catch SIGPIPE, for write errors.
48342         Exit at the end of the trap, with the correct exit status.
48343
48344 2006-09-19  Karl Berry  <karl@gnu.org>
48345
48346         * doc/gnulib.texi: note about the license texinfo files.
48347
48348 2006-09-19  Eric Blake  <ebb9@byu.net>
48349
48350         * gnulib-tool: Avoid space-tab.
48351
48352 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48353
48354         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48355         that prevented coreutils 6.1 from building.  Problem reported
48356         by Petter Reinholdtsen.
48357
48358 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48359
48360         * gnulib-tool (avoidlist): Fix typo that broke options like
48361         --avoid=lock that are used by coreutils bootstrap.
48362
48363 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48364
48365         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48366         more systematically.
48367
48368 2006-09-18  Jim Meyering  <jim@meyering.net>
48369
48370         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48371
48372 2006-09-18  Bruno Haible  <bruno@clisp.org>
48373
48374         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48375
48376 2006-09-18  Bruno Haible  <bruno@clisp.org>
48377
48378         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48379         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48380         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48381         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48382         * m4/gettext.m4: Require autoconf >= 2.52.
48383         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48384         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48385         of gl_cv_header_inttypes_h.
48386
48387 2006-09-18  Bruno Haible  <bruno@clisp.org>
48388
48389         * lib/javaversion.c: Include configmake.h.
48390
48391 2006-09-18  Bruno Haible  <bruno@clisp.org>
48392
48393         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48394         avoid that the while loops be executed in a subshell.
48395
48396 2006-09-18  Bruno Haible  <bruno@clisp.org>
48397
48398         * MODULES.html.sh (func_module): Break long lines.
48399         Suggested by Bruce Korb <bkorb@gnu.org>.
48400
48401 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48402
48403         Speed up by a factor of 1.12.
48404         * gnulib-tool (nl): New variable.
48405         (func_import): Rewrite include directive extraction to only read each
48406         directive once.
48407
48408 2006-09-17  Bruno Haible  <bruno@clisp.org>
48409
48410         * modules/javaversion (Makefile.am): Remove DEFS setting.
48411         (Depends-on): Add configmake, for PKGDATADIR definition.
48412
48413 2006-09-17  Bruno Haible  <bruno@clisp.org>
48414
48415         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48416
48417 2006-09-17  Bruno Haible  <bruno@clisp.org>
48418
48419         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48420         (func_modules_transitive_closure, func_modules_add_dummy,
48421         func_modules_to_filelist, func_import, func_create_testdir,
48422         func_create_megatestdir, ...): Use it wherever possible.
48423         Suggested by Ralf Wildenhues.
48424
48425 2006-09-16  Karl Berry  <karl@gnu.org>
48426
48427         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48428         to avoid sectioning errors.
48429         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48430         [ifinfo]: blank line after @center-ed titles.
48431         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48432         Spell FSF address consistently with others.
48433         (These changes approved by rms.)
48434
48435 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48436
48437         Speed up by a factor of 1.61.
48438         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48439         already checked module names again.
48440
48441 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48442
48443         Speed up by a factor of 1.13.
48444         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48445         for new_files, and the input to func_add_or_update.
48446
48447 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48448
48449         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48450         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48451
48452 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48453
48454         * modules/mkancesdirs (Depends-on): Add fcntl.
48455         * modules/savewd: New file.
48456         * MODULES.html.sh (File system functions): Add savewd.
48457
48458         * modules/configmake (Makefile.am): Add support for the
48459         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48460
48461 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48462
48463         * m4/savewd.m4: New file.
48464
48465 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48466
48467         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48468         (dirchownmod): New arg FD.  All callers changed.
48469         Use FD rather than opening the directory ourself, as opening is
48470         now the caller's responsibility.
48471         * lib/dirchownmod.h: Likewise.
48472         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48473         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48474         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48475         (test_dir): Remove.
48476         (mkancesdirs): Return length of prefix of FILE that has already
48477         been made, or -2 if there is a child doing the work.  Redo
48478         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48479         ".", and treat ".." specially since it might stray back into
48480         already-created areas.  Use a subprocess if necessary.  New arg
48481         WD; all users changed.  MAKE_DIR function should now return 1
48482         if it creates a directory that is not readable.  Return -2 if
48483         a child process is spun off.
48484         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48485         Adjust signature to match code.
48486         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48487         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48488         all users changed.
48489         * lib/savewd.c, lib/savewd.h: New files.
48490
48491 2006-09-15  Jim Meyering  <jim@meyering.net>
48492
48493         * modules/rename-dest-slash: New module.
48494         * MODULES.html.sh (posix_compat): Add it here.
48495
48496         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48497
48498 2006-09-15  Jim Meyering  <jim@meyering.net>
48499
48500         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48501         file.
48502
48503         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48504
48505 2006-09-15  Jim Meyering  <jim@meyering.net>
48506
48507         * lib/rename-dest-slash.c (has_trailing_slash): Use
48508         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48509         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48510         test before testing whether SRC is a directory.
48511         Suggestions from Bruno Haible.
48512
48513         Avoid a warning about an unused variable.
48514         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48515         into the #ifdef block where it's used.
48516
48517         * lib/rename-dest-slash.c: New file.
48518
48519 2006-09-14  Bruno Haible  <bruno@clisp.org>
48520
48521         * lib/allocsa.c: Include <config.h> unconditionally.
48522         * lib/asnprintf.c: Likewise.
48523         * lib/asprintf.c: Likewise.
48524         * lib/c-strcasecmp.c: Likewise.
48525         * lib/c-strcasestr.c: Likewise.
48526         * lib/c-strncasecmp.c: Likewise.
48527         * lib/c-strstr.c: Likewise.
48528         * lib/classpath.c: Likewise.
48529         * lib/clean-temp.c: Likewise.
48530         * lib/concatpath.c: Likewise.
48531         * lib/copy-file.c: Likewise.
48532         * lib/csharpcomp.c: Likewise.
48533         * lib/csharpexec.c: Likewise.
48534         * lib/execute.c: Likewise.
48535         * lib/fatal-signal.c: Likewise.
48536         * lib/findprog.c: Likewise.
48537         * lib/fwriteerror.c: Likewise.
48538         * lib/gl_array_list.c: Likewise.
48539         * lib/gl_array_oset.c: Likewise.
48540         * lib/gl_avltree_list.c: Likewise.
48541         * lib/gl_avltree_oset.c: Likewise.
48542         * lib/gl_avltreehash_list.c: Likewise.
48543         * lib/gl_carray_list.c: Likewise.
48544         * lib/gl_linked_list.c: Likewise.
48545         * lib/gl_linkedhash_list.c: Likewise.
48546         * lib/gl_list.c: Likewise.
48547         * lib/gl_oset.c: Likewise.
48548         * lib/gl_rbtree_list.c: Likewise.
48549         * lib/gl_rbtree_oset.c: Likewise.
48550         * lib/gl_rbtreehash_list.c: Likewise.
48551         * lib/imaxabs.c: Likewise.
48552         * lib/imaxdiv.c: Likewise.
48553         * lib/javacomp.c: Likewise.
48554         * lib/javaexec.c: Likewise.
48555         * lib/javaversion.c: Likewise.
48556         * lib/linebreak.c: Likewise.
48557         * lib/localcharset.c: Likewise.
48558         * lib/lock.c: Likewise.
48559         * lib/mbchar.c: Likewise.
48560         * lib/mbswidth.c: Likewise.
48561         * lib/mkdtemp.c: Likewise.
48562         * lib/pipe.c: Likewise.
48563         * lib/printf-args.c: Likewise.
48564         * lib/printf-parse.c: Likewise.
48565         * lib/progname.c: Likewise.
48566         * lib/progreloc.c: Likewise.
48567         * lib/readlink.c: Likewise.
48568         * lib/sh-quote.c: Likewise.
48569         * lib/stpcpy.c: Likewise.
48570         * lib/stpncpy.c: Likewise.
48571         * lib/strcasecmp.c: Likewise.
48572         * lib/strcasestr.c: Likewise.
48573         * lib/strcspn.c: Likewise.
48574         * lib/striconv.c: Likewise.
48575         * lib/strncasecmp.c: Likewise.
48576         * lib/strnlen1.c: Likewise.
48577         * lib/strstr.c: Likewise.
48578         * lib/strtok_r.c: Likewise.
48579         * lib/tls.c: Likewise.
48580         * lib/tmpdir.c: Likewise.
48581         * lib/unicodeio.c: Likewise.
48582         * lib/unsetenv.c: Likewise.
48583         * lib/vasnprintf.c: Likewise.
48584         * lib/vasprintf.c: Likewise.
48585         * lib/wait-process.c: Likewise.
48586         * lib/xallocsa.c: Likewise.
48587         * lib/xsetenv.c: Likewise.
48588         * lib/xstriconv.c: Likewise.
48589
48590 2006-09-13  Simon Josefsson  <jas@extundo.com>
48591
48592         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48593         that internally, suggested by Ralf Wildenhues
48594         <Ralf.Wildenhues@gmx.de>.
48595
48596 2006-09-13  Simon Josefsson  <jas@extundo.com>
48597
48598         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48599         @LIBOBJS@.
48600         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48601
48602 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48603
48604         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48605         longer worry about uses that don't define HAVE_CONFIG_H.
48606         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48607         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48608         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48609         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48610         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48611         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48612         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48613         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48614         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48615         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48616         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48617         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48618         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48619         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48620         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48621         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48622         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48623         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48624         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48625         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48626         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48627         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48628         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48629         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48630         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48631         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48632         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48633         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48634         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48635         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48636         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48637         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48638         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48639         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48640         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48641         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48642         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48643         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48644         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48645         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48646         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48647         Likewise.
48648
48649 2006-09-13  Eric Blake  <ebb9@byu.net>
48650
48651         * lib/getopt.c: Fix typo in last commit.
48652
48653 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48654
48655         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48656         dgettext.
48657
48658 2006-09-12  Jim Meyering  <jim@meyering.net>
48659
48660         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48661         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48662         Reported by Nelson H. F. Beebe.
48663
48664 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48665
48666         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48667         program_invocation_name and program_invocation_short_name are
48668         initialized.
48669         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48670         and program_invocation_short_name to argp.h, so they are visible
48671         to user programs.
48672         * lib/argp.h: Likewise
48673
48674 2006-09-10  Bruno Haible  <bruno@clisp.org>
48675
48676         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48677         m4/inttypes_h.m4, m4/uintmax_t.m4.
48678
48679 2006-09-10  Bruno Haible  <bruno@clisp.org>
48680
48681         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48682         gl_AC_TYPE_UINTMAX_T.
48683
48684 2006-09-10  Bruno Haible  <bruno@clisp.org>
48685
48686         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48687
48688 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48689
48690         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48691         convention.  Text proposed by Bruno Haible.
48692         (struct argp_option): Document the use of N_() wrappers.
48693
48694         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48695         '\v', and translate the two parts separately, instead of feeding
48696         the whole string to gettext.  This allows to exclude
48697         '\v' from the strings visible to the translator by writing doc
48698         strings as N_("..") "\v" N_("..").
48699
48700 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48701
48702         * config/srclist.txt: Undo latest change; the bug was fixed.
48703
48704 2006-09-09  Bruno Haible  <bruno@clisp.org>
48705
48706         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48707         assignments if building a library without libtool.
48708         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48709         in func_emit_lib_Makefile_am.
48710         (func_import): When building a static library libfoo.a, arrange to
48711         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48712         (func_create_testdir): Likewise.
48713         * modules/gc (configure.ac, Makefile.am): If building statically,
48714         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48715         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48716         * modules/striconv (configure.ac, Makefile.am): Likewise.
48717         Based on a suggestion by Ralf Wildenhues.
48718
48719 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48720
48721         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48722         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48723         Also:
48724
48725         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48726         Add year_2050_test to catch glibc bug 2821
48727         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48728
48729         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48730         Prefer #ifdef to #if.
48731
48732         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48733         Return from 'main' instead of calling 'exit'.
48734
48735 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48736
48737         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48738         returned the maximum time_t value rather than (time_t) -1.
48739         Problem originally reported by William Bardwell
48740         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48741
48742         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48743         Moved to here ...
48744         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48745         ... from here.
48746
48747 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48748
48749         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48750         2821 is fixed.
48751
48752 2006-09-08  Jim Meyering  <jim@meyering.net>
48753
48754         Don't make generated files read-only.  That would bother too many
48755         people.  However, do retain the ability to work when targets are
48756         read-only: remove the destination and temporary files before writing
48757         them (when generated via sed or echo), or by using the -f option for
48758         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48759         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48760         * modules/byteswap, modules/configmake, modules/fcntl:
48761         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48762         * modules/localcharset, modules/netinet_in, modules/poll:
48763         * modules/stdbool, modules/stdint, modules/sys_select:
48764         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48765
48766 2006-09-08  Jim Meyering  <jim@meyering.net>
48767
48768         Avoid new build failure on FreeBSD 6.0.
48769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48770         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48771         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48772
48773 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48774
48775         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48776
48777 2006-09-07  Jim Meyering  <jim@meyering.net>
48778
48779         Fix global typo in last change: use chmod u-w, not chmod u-x.
48780         Spotted by Paul Eggert and Bruce Korb.
48781         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48782         * modules/byteswap, modules/configmake, modules/fcntl:
48783         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48784         * modules/localcharset, modules/netinet_in, modules/poll:
48785         * modules/stdbool, modules/stdint, modules/sys_select:
48786         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48787
48788 2006-09-06  Jim Meyering  <jim@meyering.net>
48789
48790         Make generated files be read-only.
48791         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48792         Ensure that each generated file is now read-only.
48793         * modules/argz: Likewise.
48794         * modules/arpa_inet: Likewise.
48795         * modules/byteswap: Likewise.
48796         * modules/configmake: Likewise.
48797         * modules/fcntl: Likewise.
48798         * modules/fnmatch: Likewise.
48799         * modules/getopt: Likewise.
48800         * modules/glob: Likewise.
48801         * modules/inttypes: Likewise.
48802         * modules/netinet_in: Likewise.
48803         * modules/poll: Likewise.
48804         * modules/stdbool: Likewise.
48805         * modules/stdint: Likewise.
48806         * modules/sys_select: Likewise.
48807         * modules/sys_socket: Likewise.
48808         * modules/sys_stat: Likewise.
48809         * modules/sysexits: Likewise.
48810         * modules/localcharset: Same as above, but continue using temporary
48811         file named "t-$@" (why different?) rather than the "$@-t" used
48812         everywhere else.
48813
48814         * modules/sysexits (Makefile.am): Replace literal occurrences
48815         of "sysexit.h" more readable, and more consistent, "$@".
48816
48817 2006-09-06  Bruno Haible  <bruno@clisp.org>
48818
48819         * modules/striconv: New file.
48820         * modules/xstriconv: New file.
48821         * MODULES.html.sh (Internationalization functions): Add striconv,
48822         xstriconv.
48823
48824 2006-09-06  Bruno Haible  <bruno@clisp.org>
48825
48826         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48827         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48828         not using libtool correctly.
48829
48830 2006-09-06  Bruno Haible  <bruno@clisp.org>
48831
48832         * lib/striconv.h: New file.
48833         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48834         iconvstring.c.
48835         * lib/xstriconv.h: New file.
48836         * lib/xstriconv.c: New file.
48837
48838 2006-09-06  Bruno Haible  <bruno@clisp.org>
48839
48840         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48841         lib_..._LDFLAGS.
48842
48843 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48844
48845         * lib/argz_.h: Sync from Libtool.
48846
48847         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48848                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48849
48850         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48851
48852 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48853
48854         * modules/trim: New file.
48855
48856 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48857
48858         * lib/trim.h: New file.
48859         * lib/trim.c: New file.
48860
48861 2006-09-05  Bruno Haible  <bruno@clisp.org>
48862
48863         * MODULES.html.sh (String handling): Add trim.
48864
48865 2006-09-04  Karl Berry  <karl@gnu.org>
48866
48867         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48868         until next release.
48869
48870 2006-09-03  Bruno Haible  <bruno@clisp.org>
48871
48872         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48873         correctly.
48874
48875 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48876
48877         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48878         not gl_GETLOADAVG.  Omit unneeded semicolons.
48879         Problems reported by Ralf Wildenhues in
48880         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48881         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48882         at the end, which is the usual gnulib style.
48883
48884         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48885         of doing all the work ourselves.
48886         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48887         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48888
48889 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48890
48891         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48892         Problem reported by Ralf Wildenhues in
48893         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48894
48895         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48896         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48897
48898 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48899
48900         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48901         yesterday's patch by changing test -n to test -z.
48902
48903 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48904
48905         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48906         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48907         the former is now obsolescent.
48908
48909         * modules/chdir-long (Depends-on): Add fcntl.
48910
48911 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48912
48913         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48914         obsolescent, and programs should use gnulib instead.
48915         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48916         but with prefixes changed.
48917
48918 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48919
48920         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48921         or stdbool.h, because they might not exist while configuring.
48922
48923         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48924         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48925         does that for us.
48926         (O_DIRECTORY): Remove.
48927
48928 2006-08-31  Eric Blake  <ebb9@byu.net>
48929
48930         * gnulib-tool: Don't let emacs change spaces to TAB.
48931
48932 2006-08-31  Bruno Haible  <bruno@clisp.org>
48933
48934         * gnulib-tool: When calling func_import more than once, do it in a
48935         subshell.
48936         Reported by Eric Blake <ebb9@byu.net>.
48937
48938 2006-08-31  Bruno Haible  <bruno@clisp.org>
48939
48940         * gnulib-tool (nl): Remove variable.
48941         (sed_transform_lib_file): Use more robust test for config-h module.
48942         (func_import): Fix typo in 2006-08-25 patch.
48943
48944 2006-08-31  Bruno Haible  <bruno@clisp.org>
48945
48946         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48947         specified, augment Makefile.am variables instead of assigning them.
48948
48949 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48950
48951         Work around a bug in both the Linux and SunOS 64-bit kernels:
48952         nanosleep mishandles sleeps for longer than 2**31 seconds.
48953         Problem reported by Frank v Waveren in
48954         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48956         Check for nanosleep bug.
48957         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48958
48959 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48960
48961         Work around a bug in both the Linux and SunOS 64-bit kernels:
48962         nanosleep mishandles sleeps for longer than 2**31 seconds.
48963         Problem reported by Frank v Waveren in
48964         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48965         * lib/nanosleep.c (BILLION): New constant.
48966         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48967         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48968         implementation.
48969
48970 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48971
48972         * modules/nanosleep (Depends-on): Add gettime.
48973
48974 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48975         and Simon Josefsson  <jas@extundo.com>
48976         and Oskar Liljeblad  <oskar@osk.mine.nu>
48977
48978         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48979         * gnulib-tool (func_import): New license type 'unmodifiable license
48980         text'.
48981         * modules/fdl: Use it.  Longer description.
48982         * module/gpl, module/lgpl: New files.
48983
48984 2006-08-30  Jim Meyering  <jim@meyering.net>
48985
48986         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48987         shadowing the parameter.
48988
48989 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48990
48991         Sync from Libtool:
48992
48993         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48994
48995         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
48996         sharing with gnulib.  Report by Eric Blake.
48997
48998 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
48999
49000         * modules/isapipe: New file.
49001         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
49002
49003 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49004
49005         * modules/configmake (Makefile.am): Add a comment, and omit
49006         the CONFIGMAKE_ prefix from generated macro names.  Suggested
49007         by Bruno Haible.
49008
49009 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49010
49011         * m4/isapipe.m4: New file.
49012
49013 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49014
49015         * lib/isapipe.c, lib/isapipe.h: New files.
49016
49017 2006-08-29  Jim Meyering  <jim@meyering.net>
49018
49019         * modules/configmake (Makefile.am): Make configmake.h depend on
49020         Makefile.  Otherwise, a stale configmake.h could hang around.
49021
49022 2006-08-29  Eric Blake  <ebb9@byu.net>
49023
49024         * lib/error.c (error_at_line, print_errno_message): Match libc, after
49025         resolution of upstream bug 3044.
49026
49027 2006-08-29  Bruno Haible  <bruno@clisp.org>
49028
49029         * modules/localcharset (Depends-on): Add configmake.
49030         (Makefile.am): Remove setting of LIBDIR through DEFS.
49031
49032 2006-08-29  Bruno Haible  <bruno@clisp.org>
49033
49034         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
49035         defined.
49036
49037 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49038
49039         * modules/fcntl: New file.
49040         * modules/chdir-safer (Depends-on): Add fcntl.
49041         * modules/fts: Likewise.
49042         * modules/mkdir-p: Likewise.
49043
49044         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
49045         This undoes the most recent change, since we're now addressing the
49046         problem in a different way.
49047
49048         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
49049         into output, since the output might be called Makefile.am even
49050         if $makefile_name is something different.
49051         (func_import): Use $makefile_am rather than
49052         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
49053         empty.
49054
49055         * modules/inttypes (Files): Add m4/inttypes-h.m4.
49056
49057 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49058
49059         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
49060         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
49061         recent change to stdint.m4, since we're now addressing the problem in a
49062         different way.
49063
49064 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49065
49066         * m4/fcntl_h.m4: New file.
49067
49068 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49069
49070         * lib/fcntl_.h: New file.
49071         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
49072         the fcntl module.
49073         * lib/dirchownmod.c: Likewise.
49074         * lib/fts.c: Likewise.
49075
49076         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
49077         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
49078         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
49079         just before including <inttypes.h>, to avoid circular inclusion.
49080
49081 2006-08-28  Jim Meyering  <jim@meyering.net>
49082
49083         * doc/visibility.texi: Actually read and correct the grammar of the
49084         sentence affected by yesterday's change.
49085
49086 2006-08-28  Eric Blake  <ebb9@byu.net>
49087
49088         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
49089         needs wrapper.
49090
49091 2006-08-28  Eric Blake  <ebb9@byu.net>
49092
49093         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
49094
49095 2006-08-28  Eric Blake  <ebb9@byu.net>
49096
49097         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
49098
49099 2006-08-28  Bruno Haible  <bruno@clisp.org>
49100
49101         * modules/c-strstr: New file, from GNU gettext.
49102         * MODULES.html.sh (String handling): Add c-strstr.
49103
49104 2006-08-28  Bruno Haible  <bruno@clisp.org>
49105
49106         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
49107         macros.
49108         Reported by Eric Blake.
49109
49110 2006-08-28  Bruno Haible  <bruno@clisp.org>
49111
49112         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
49113         (VASNPRINTF): Return a string of length > INT_MAX without failing.
49114         * lib/vasprintf.c: Include errno.h, limits.h.
49115         (EOVERFLOW): New fallback definition.
49116         (vasprintf): Test here whether the string length is > INT_MAX.
49117         * lib/vsnprintf.c: Include errno.h, limits.h.
49118         (EOVERFLOW): New fallback definition.
49119         (vsnprintf): Fix bug when generated string was too long for the buffer.
49120         Test here whether the string length is > INT_MAX.
49121
49122 2006-08-28  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/inttypes_.h (SCNX*): Remove definitions.
49125         Reported by Eric Blake.
49126
49127 2006-08-28  Bruno Haible  <bruno@clisp.org>
49128
49129         * lib/c-strstr.h: New file, from GNU gettext.
49130         * lib/c-strstr.c: New file, from GNU gettext.
49131
49132 2006-08-28  Bruno Haible  <bruno@clisp.org>
49133
49134         * gnulib-tool: Reorder some statements.
49135
49136 2006-08-28  Bruno Haible  <bruno@clisp.org>
49137
49138         * gnulib-tool: New option --makefile-name.
49139         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
49140         $makefile_name.
49141         (func_import): Write $makefile_name to the cache file, and read it from
49142         there unless explicitly specified. Use $makefile_name as file name
49143         instead of Makefile.am. Adjust the recommendations accordingly.
49144
49145 2006-08-28  Bruno Haible  <bruno@clisp.org>
49146
49147         * gnulib-tool (func_verify_module): Check against misapplying patch.
49148
49149 2006-08-28  Bruno Haible  <bruno@clisp.org>
49150
49151         * gnulib-tool (func_relativize, func_relconcat): New functions.
49152         Give an error if --local-dir is given with --update.
49153         Remove trailing slashes from $local_gnulib_dir.
49154         (func_import): Store the relativized $local_gnulib_dir in
49155         gnulib-cache.m4, and read it from there if not specified explicitly.
49156
49157 2006-08-28  Bruno Haible  <bruno@clisp.org>
49158
49159         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49160         is the current directory. Respect also $local_gnulib_dir.
49161
49162 2006-08-28  Bruno Haible  <bruno@clisp.org>
49163             Simon Josefsson  <jas@extundo.com>
49164
49165         BeOS portability.
49166         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49167
49168 2006-08-27  Jim Meyering  <jim@meyering.net>
49169
49170         * doc/visibility.texi: Remove duplicate word: "pointer".
49171
49172 2006-08-26  Bruno Haible  <bruno@clisp.org>
49173
49174         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49175         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49176         (Makefile.am): Create inttypes.h from inttypes_.h.
49177         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49178
49179         * modules/imaxabs: New file.
49180
49181         * modules/imaxdiv: New file.
49182
49183 2006-08-26  Bruno Haible  <bruno@clisp.org>
49184
49185         * m4/inttypes.m4: New file.
49186         * m4/_inttypes_h.m4: Remove file.
49187         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49188         PRI_MACROS_BROKEN.
49189         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49190
49191         * m4/imaxabs.m4: New file.
49192
49193         * m4/imaxdiv.m4: New file.
49194
49195 2006-08-26  Bruno Haible  <bruno@clisp.org>
49196
49197         * lib/inttypes_.h: New file.
49198         * lib/inttypes.h: Remove file.
49199         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49200
49201         * lib/imaxabs.c: New file.
49202
49203         * lib/imaxdiv.c: New file.
49204
49205 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49206
49207         New config-h module, so that "make" output needn't be cluttered
49208         by -DHAVE_CONFIG_H.
49209         * MODULES.html.sh (Support for building libraries and executables):
49210         Add config-h.
49211         * modules/config-h: New file.
49212         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49213         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49214         the config-h module is used.
49215
49216         New configmake module, so that "make" output needn't be cluttered
49217         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49218         * MODULES.html.sh (Support for building libraries and executables):
49219         Add configmake.
49220         * modules/configmake: New file.
49221
49222 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49223
49224         * m4/config-h.m4: New file.
49225
49226 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49227
49228         * config/srclist.txt: Add elisp-comp.
49229
49230 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         * MODULES.html.sh (Support for building libraries and executables):
49233         Add elisp-comp.
49234         * build-aux/elisp-comp: New file.
49235         * modules/elisp-comp: New file.
49236
49237 2006-08-24  Bruno Haible  <bruno@clisp.org>
49238
49239         * gnulib-tool (func_create_testdir): Use non-default values of
49240         sourcebase and m4base.
49241
49242 2006-08-24  Bruno Haible  <bruno@clisp.org>
49243
49244         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49245         HTML structure.
49246
49247 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49248
49249         * modules/openat (Depends-on): Add lchown.
49250
49251 2006-08-23  Bruno Haible  <bruno@clisp.org>
49252
49253         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49254         of gl_LOCK_EARLY instead of gl_LOCK.
49255
49256 2006-08-23  Bruno Haible  <bruno@clisp.org>
49257
49258         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49259         on OSF/1 to no.
49260         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49261
49262 2006-08-23  Bruno Haible  <bruno@clisp.org>
49263
49264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49265         as unusable.
49266
49267         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49268         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49269         (gl_LOCK): New macro.
49270
49271 2006-08-22  Simon Josefsson  <jas@extundo.com>
49272
49273         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49274         to md5 module.
49275
49276 2006-08-22  Simon Josefsson  <jas@extundo.com>
49277
49278         * MODULES.html.sh: Add "Support for maintaining and release
49279         projects".
49280
49281         * build-aux/gnupload: New file, from coreutils.
49282
49283 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49284
49285         Avoid the need for AC_LIBSOURCES in m4 macros.
49286         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49287         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49288         * modules/check-version (EXTRA_DIST): Add check-version.h.
49289         * modules/crc (EXTRA_DIST): Add crc.h.
49290         * modules/des (EXTRA_DIST): Add des.h.
49291         * modules/gc (EXTRA_DIST): Add gc.h.
49292         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49293         * modules/getline (EXTRA_DIST): Add getline.h.
49294         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49295         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49296         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49297         * modules/md2 (EXTRA_DIST): Add md2.h.
49298         * modules/md4 (EXTRA_DIST): Add md4.h.
49299         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49300         * modules/read-file (EXTRA_DIST): Add read-file.h.
49301         * modules/readline (EXTRA_DIST): Add readline.h.
49302         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49303         rijndael-api-fst.h.
49304
49305 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49306
49307         * m4/rijndael.m4 (gl_ARCFOUR):
49308         * m4/arctwo.m4 (gl_ARCTWO):
49309         * m4/check-version.m4 (gl_CHECK_VERSION):
49310         * m4/crc.m4 (gl_CRC):
49311         * m4/des.m4 (gl_DES):
49312         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49313         * m4/gc.m4 (gl_GC):
49314         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49315         * m4/getline.m4 (gl_FUNC_GETLINE):
49316         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49317         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49318         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49319         * m4/md2.m4 (gl_MD2):
49320         * m4/md4.m4 (gl_MD4):
49321         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49322         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49323         * m4/readline.m4 (gl_FUNC_READLINE):
49324         * m4/rijndael.m4 (gl_RIJNDAEL):
49325         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49326         to get the necessary .h files and whatnot.
49327
49328 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49329
49330         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49331         gnulib rather than the other way around.
49332         * config/srclistvars.sh (COREUTILS): Remove.
49333
49334 2006-08-22  Jim Meyering  <jim@meyering.net>
49335
49336         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49337
49338         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49339
49340 2006-08-22  Eric Blake  <ebb9@byu.net>
49341
49342         * modules/regexprops-generic: New file.
49343         * MODULES.html.sh (Support for building documentation): List it.
49344
49345 2006-08-22  Eric Blake  <ebb9@byu.net>
49346
49347         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49348         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49349         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49350         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49351
49352 2006-08-22  Bruno Haible  <bruno@clisp.org>
49353
49354         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49355         and lib_LTLIBRARIES like the other lib_* variables.
49356
49357 2006-08-22  Bruno Haible  <bruno@clisp.org>
49358
49359         * build-aux/x-to-1.in: New file, from GNU gettext.
49360
49361 2006-08-22  Bruno Haible  <bruno@clisp.org>
49362
49363         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49364         <utmpx.h> exists.
49365
49366 2006-08-22  Bruno Haible  <bruno@clisp.org>
49367
49368         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49369         <utmpx.h> exists.
49370
49371 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49372
49373         BeOS portability.
49374         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49375         exist.
49376         Problem reported by Bruno Haible.
49377
49378 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49379
49380         Avoid the need for AC_LIBSOURCES in m4 macros.
49381         * modules/acl (EXTRA_DIST): Add acl.h.
49382         * modules/argmatch (Files): Add m4/argmatch.m4.
49383         (configure.ac): Add gl_ARGMATCH.
49384         (EXTRA_DIST): Renamed from lib_SOURCES, for
49385         consistency with the other modules.  Remove argmatch.c.
49386         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49387         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49388         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49389         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49390         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49391         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49392         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49393         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49394         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49395         * modules/closeout (EXTRA_DIST): Add closeout.h.
49396         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49397         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49398         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49399         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49400         dirname.h; remove basename.c and stripslash.c.
49401         * modules/exclude (EXTRA_DIST): Add exclude.h.
49402         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49403         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49404         * modules/file-type (EXTRA_DIST): Add file-type.h.
49405         * modules/filemode (EXTRA_DIST): Add filemode.h.
49406         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49407         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49408         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49409         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49410         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49411         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49412         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49413         * modules/getdate (EXTRA_DIST): Add getdate.c.
49414         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49415         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49416         * modules/getpass (EXTRA_DIST): Add getpass.h.
49417         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49418         * modules/group-member (EXTRA_DIST): Add group-member.h.
49419         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49420         * modules/hash (EXTRA_DIST): Add hash.h.
49421         * modules/human (EXTRA_DIST): Add human.h.
49422         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49423         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49424         * modules/lchown (EXTRA_DIST): Add lchown.h.
49425         * modules/long-options (EXTRA_DIST): Add long-options.h.
49426         * modules/lstat (EXTRA_DIST): Add lstat.h.
49427         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49428         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49429         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49430         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49431         * modules/memxor (EXTRA_DIST): Add memxor.h.
49432         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49433         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49434         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49435         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49436         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49437         * modules/physmem (EXTRA_DIST): Add physmem.h.
49438         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49439         * modules/posixver (EXTRA_DIST): Add posixver.h.
49440         * modules/quote (EXTRA_DIST): Add quote.h.
49441         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49442         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49443         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49444         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49445         regex_internal.h regexec.c.
49446         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49447         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49448         * modules/same (EXTRA_DIST): Add same.h.
49449         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49450         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49451         * modules/savedir (EXTRA_DIST): Add savedir.h.
49452         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49453         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49454         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49455         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49456         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49457         * modules/strdup (EXTRA_DIST): Add strdup.h.
49458         * modules/strftime (EXTRA_DIST): Add strftime.h.
49459         * modules/strndup (EXTRA_DIST): Add strndup.h.
49460         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49461         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49462         * modules/time_r (EXTRA_DIST): Add time_r.h.
49463         * modules/timespec (EXTRA_DIST): Add timespec.h.
49464         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49465         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49466         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49467         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49468         * modules/userspec (EXTRA_DIST): Add userspec.h.
49469         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49470         * modules/utimens (EXTRA_DIST): Add utimens.h.
49471         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49472         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49473         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49474         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49475         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49476         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49477         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49478         * modules/yesno (EXTRA_DIST): Add yesno.h.
49479
49480 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49481
49482         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49483
49484         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49485         * m4/dev-ino.m4, same-inode.m4: Remove.
49486
49487         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49488         * m4/acl.m4 (AC_FUNC_ACL):
49489         * m4/backupfile.m4 (gl_BACKUPFILE):
49490         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49491         * m4/canon-host.m4 (gl_CANON_HOST):
49492         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49493         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49494         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49495         * m4/cloexec.m4 (gl_CLOEXEC):
49496         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49497         * m4/closeout.m4 (gl_CLOSEOUT):
49498         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49499         * m4/dirname.m4 (gl_DIRNAME):
49500         * m4/exclude.m4 (gl_EXCLUDE):
49501         * m4/exitfail.m4 (gl_EXITFAIL):
49502         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49503         * m4/file-type.m4 (gl_FILE_TYPE):
49504         * m4/filemode.m4 (gl_FILEMODE):
49505         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49506         * m4/fpending.m4 (gl_FUNC_FPENDING):
49507         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49508         * m4/fts.m4 (gl_FUNC_FTS):
49509         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49510         * m4/getdate.m4 (gl_GETDATE):
49511         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49512         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49513         * m4/getpass.m4 (gl_FUNC_GETPASS):
49514         * m4/gettime.m4 (gl_GETTIME):
49515         * m4/getugroups.m4 (gl_GETUGROUPS):
49516         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49517         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49518         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49519         * m4/hash.m4 (gl_HASH):
49520         * m4/idcache.m4 (gl_IDCACHE):
49521         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49522         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49523         * m4/long-options.m4 (gl_LONG_OPTIONS):
49524         * m4/lstat.m4 (gl_FUNC_LSTAT):
49525         * m4/md5.m4 (gl_MD5):
49526         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49527         * m4/memcoll.m4 (gl_MEMCOLL):
49528         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49529         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49530         * m4/memxor.m4 (gl_MEMXOR):
49531         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49532         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49533         * m4/modechange.m4 (gl_MODECHANGE):
49534         * m4/mountlist.m4 (gl_MOUNTLIST):
49535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49536         * m4/openat.m4 (gl_FUNC_OPENAT):
49537         * m4/pathmax.m4 (gl_PATHMAX):
49538         * m4/physmem.m4 (gl_PHYSMEM):
49539         * m4/posixtm.m4 (gl_POSIXTM):
49540         * m4/posixver.m4 (gl_POSIXVER):
49541         * m4/quote.m4 (gl_QUOTE):
49542         * m4/quotearg.m4 (gl_QUOTEARG):
49543         * m4/readtokens.m4 (gl_READTOKENS):
49544         * m4/readutmp.m4 (gl_READUTMP):
49545         * m4/regex.m4 (gl_REGEX):
49546         * m4/safe-read.m4 (gl_SAFE_READ):
49547         * m4/safe-write.m4 (gl_SAFE_WRITE):
49548         * m4/same.m4 (gl_SAME):
49549         * m4/save-cwd.m4 (gl_SAVE_CWD):
49550         * m4/savedir.m4 (gl_SAVEDIR):
49551         * m4/settime.m4 (gl_SETTIME):
49552         * m4/sha1.m4 (gl_SHA1):
49553         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49554         * m4/stat-macros.m4 (gl_STAT_MACROS):
49555         * m4/stat-time.m4 (gl_STAT_TIME):
49556         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49557         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49558         * m4/strdup.m4 (gl_FUNC_STRDUP):
49559         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49560         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49561         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49562         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49563         * m4/time_r.m4 (gl_TIME_R):
49564         * m4/timespec.m4 (gl_TIMESPEC):
49565         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49566         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49567         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49568         * m4/userspec.m4 (gl_USERSPEC):
49569         * m4/utimecmp.m4 (gl_UTIMECMP):
49570         * m4/utimens.m4 (gl_UTIMENS):
49571         * m4/xalloc.m4 (gl_XALLOC):
49572         * m4/xgetcwd.m4 (gl_XGETCWD):
49573         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49574         * m4/xreadlink.m4 (gl_XREADLINK):
49575         * m4/xstrtod.m4 (gl_XSTRTOD):
49576         * m4/yesno.m4 (gl_YESNO):
49577         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49578         to get the necessary .h files and whatnot.
49579
49580 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49581             Bruno Haible  <bruno@clisp.org>
49582
49583         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49584         /bin/sh understanding of '!' conditional negation.
49585
49586 2006-08-21  Jim Meyering  <jim@meyering.net>
49587
49588         * modules/openat (Depends-on): Really alphabetize.
49589
49590         * modules/acl (Depends-on): Add error and quote.
49591
49592         * check-module (find_included_lib_files): Add at-func.c to the
49593         ok-to-include-more-than-once white list.
49594
49595         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49596
49597 2006-08-21  Bruno Haible  <bruno@clisp.org>
49598
49599         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49600         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49601         Reported by Martin Lambers <marlam@marlam.de>.
49602
49603 2006-08-21  Bruno Haible  <bruno@clisp.org>
49604
49605         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49606         specify an installation location, don't emit a noinst_LIBRARIES or
49607         noinst_LTLIBRARIES assignment.
49608
49609 2006-08-21  Bruno Haible  <bruno@clisp.org>
49610
49611         BeOS portability.
49612         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49613         BeOS has mbrtowc() but no <wctype.h>.
49614
49615 2006-08-21  Bruno Haible  <bruno@clisp.org>
49616
49617         BeOS portability.
49618         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49619         exist.
49620
49621 2006-08-21  Bruno Haible  <bruno@clisp.org>
49622
49623         BeOS portability.
49624         * lib/mbchar.h: Include <wctype.h> only if it exists.
49625
49626 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49627
49628         Remove files that are no longer needed by their respective modules.
49629         * m4/obstack.m4: Remove.
49630         * m4/strerror_r.m4: Remove.
49631         * m4/uint32_t.m4: Remove.
49632         * m4/uintptr_t.m4: Remove.
49633         * m4/ullong_max.m4: Remove.
49634         * m4/xstrtoimax.m4: Remove.
49635         * m4/xstrtoumax.m4: Remove.
49636
49637         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49638         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49639         dependencies now capture this.
49640
49641         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49642         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49643         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49644         * m4/human.m4 (gl_HUMAN): Likewise.
49645         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49646         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49647
49648         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49649
49650         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49651         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49652         stdint.
49653         * m4/human.m4 (gl_HUMAN): Likewise.
49654         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49655         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49656         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49657         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49658         * m4/xstrtol (gl_XSTRTOL): Likewise.
49659
49660         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49661         AC_TYPE_LONG_LONG_INT.
49662         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49663         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49664         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49665         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49666
49667         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49668         on stdbool.
49669
49670         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49671         (gl_PREREQ_XSTRTOUL): Remove.
49672
49673         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49674
49675         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49676         mode.
49677
49678 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49679
49680         Add and change modules to make it easier for coreutils to use
49681         gnulib-tool.
49682         * modules/backupfile (Files): Remove m4/d-ino.m4.
49683         (Depends-on): Add d-ino.
49684         * modules/cycle-check (Depends-on): Add stdint.
49685         (lib_SOURCES): Add cycle-check.h.
49686         * modules/d-ino: New module.
49687         * modules/d-type: New module.
49688         * modules/error (Files): Remove m4/strerror_r.m4.
49689         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49690         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49691         m4/inttypes_h.m4, m4/uintmax_t.m4.
49692         (Depends-on): Add stdint.
49693         (lib_SOURCES): Add fsusage.h.
49694         * modules/getcwd (Files): Remove d-ino.m4.
49695         (Depends-on): Add d-ino.
49696         * modules/getndelim2 (Depends-on): Add stdint.
49697         * modules/glob (Files): Remove m4/d-type.m4.
49698         (Depends-on): Add d-type.
49699         * modules/host-os: New module.
49700         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49701         m4/inttypes_h.m4, m4/uintmax_t.m4.
49702         * Depends-on: Add stdint.
49703         (lib_SOURCES): Add human.h.
49704         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49705         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49706         m4/uintmax_t.m4, m4/ulonglong.m4.
49707         (Depends-on): Add stdint.
49708         (EXTRA_DIST): Add inttostr.h.
49709         * modules/lchmod: New module.
49710         * modules/link-follow: New module.
49711         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49712         (Depends-on): Add lchmod.
49713         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49714         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49715         (Depends-on): Add stdint.
49716         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49717         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49718         (Depends-on): Add stdint.
49719         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49720         * modules/perl: New module.
49721         * modules/regex (Depends-on): Add stdint.
49722         * modules/rmdir-errno: New module.
49723         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49724         m4/intmax_t.m4.
49725         (Depends-on): Add stdint.
49726         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49727         m4/uintmax_t.m4.
49728         (Depends-on): Add stdint.
49729         * modules/unlink-busy: New module.
49730         * modules/utimecmp (Depends-on): Add stdint.
49731         * modules/uptime: New module.
49732         * modules/winsz-ioctl: New module.
49733         * modules/winsz-termios: New module.
49734         * modules/xnanosleep (Depends-on): Add nanosleep.
49735         * modules/ullong_max: Remove.
49736         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49737         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49738         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49739         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49740         (Depends-on): Add inttypes.
49741         (lib_SOURCES): Add xstrtol.h.
49742         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49743         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49744         * MODULES.html.sh: Move 'assert' into the assert section.
49745         Move 'dummy' into the linking section.
49746         Remove ullong_max.
49747         Add section for compatibility checks for POSIX:2001 functions,
49748         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49749         winsz-ioctl, and winsz-termios into it.
49750         Add lchmod.
49751         Add top-level Misc section and put host-os, perl, and uptime
49752         into it.
49753
49754 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49755
49756         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49757         now assume the stdint module.  Do not include inttypes.h.
49758         * lib/fsusage.h: Likewise.
49759         * lib/getndelim2.c: Likewise.
49760         * lib/human.h: Likewise.
49761         * lib/inttostr.h: Likewise.
49762         * lib/obstack.c: Likewise.
49763         * lib/regex_internal.h: Likewise.
49764         * lib/tempname.c: Likewise.
49765         * lib/utimecmp.c: Likewise.
49766         * lib/xstrtol.h: Likewise.
49767
49768         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49769
49770         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49771         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49772         * lib/xtime.h: Likewise.
49773
49774 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49775
49776         * modules/openat (Files): Add lib/fchmodat.c.
49777         Fixes problem reported by Jay Youngman.
49778
49779 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49780
49781         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49782         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49783
49784 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49785             Bruno Haible  <bruno@clisp.org>
49786
49787         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49788         and is a script that invokes bison. Tighten the code. Add comments.
49789
49790 2006-08-18  Jim Meyering  <jim@meyering.net>
49791
49792         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49793         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49794         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49795         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49796
49797 2006-08-18  Bruno Haible  <bruno@clisp.org>
49798
49799         * modules/bison-i18n: New file.
49800         * MODULES.html.sh (Internationalization functions): Add it.
49801
49802 2006-08-18  Bruno Haible  <bruno@clisp.org>
49803
49804         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49805         sys/statvfs.h. When getmntinfo was found, check its declaration and
49806         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49807
49808 2006-08-18  Bruno Haible  <bruno@clisp.org>
49809
49810         * m4/bison-i18n.m4: New file, from bison.
49811
49812 2006-08-18  Bruno Haible  <bruno@clisp.org>
49813
49814         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49815         (ME_DUMMY): Treat "kernfs" as a dummy.
49816         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49817
49818 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49819
49820         Update from coreutils.
49821
49822         2006-08-15  Jim Meyering  <jim@meyering.net>
49823
49824         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49825
49826         2006-01-17  Jim Meyering  <jim@meyering.net>
49827
49828         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49829
49830         2006-01-11  Jim Meyering  <jim@meyering.net>
49831
49832         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49833         Check for the lchmod function.
49834
49835 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49836
49837         Update from coreutils.
49838
49839         * lib/__fpending.h: Add copyright notice.
49840         * lib/fprintftime.h: Likewise.
49841         * lib/savedir.c: Use (C) in copyright notice.
49842         * lib/savedir.h: Likewise.
49843
49844         2006-08-15  Jim Meyering  <jim@meyering.net>
49845
49846         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49847         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49848         in support of the EXPECTED_ERRNO macro.
49849         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49850         definitions.  Instead, define the appropriate symbols and include
49851         "at-func.c".
49852         * lib/mkdirat.c (mkdirat): Likewise.
49853         * lib/fchmodat.c (fchmodat): Likewise.
49854         (ENOSYS): Remove definition.
49855         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49856         it.  Don't include "unistd--.h" -- it wasn't ever used.
49857
49858         2006-01-17  Jim Meyering  <jim@meyering.net>
49859
49860         Rewrite fts.c not to change the current working directory,
49861         by using openat, fstatat, fdopendir, etc..
49862
49863         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49864         (HAVE_OPENAT_SUPPORT): Define.
49865         [_LIBC] (fchdir): Don't undef or define; no longer used.
49866         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49867         Now, this `function' always succeeds, and consumes its file descriptor
49868         parameter -- so callers must not close such FDs.  Update callers.
49869         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49870         (diropen): Add parameter, SP.  Adjust all callers.
49871         Implement using diropen_fd, rather than open.
49872         (fts_open): Initialize new member, fts_cwd_fd.
49873         Remove fts_rft-setting code.
49874         (fts_close): Close fts_cwd_fd, if necessary.
49875         (__opendir2): Define in terms of opendir or opendirat,
49876         depending on whether the FST_NOCHDIR flag is set.
49877         (fts_build): Since fts_safe_changedir consumes its FD, and since
49878         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49879         and close the dup'd file descriptor upon failure.
49880         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49881         (fts_safe_changedir): Tweak semantics to reflect that this function
49882         now calls cwd_advance_fd and hence consumes its FD argument.
49883         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49884         [struct FTS] (fts_rft): Remove now-unused member.
49885         [struct FTS] (fts_cycle.state): Improve comment.
49886
49887         * lib/openat.c (openat_needs_fchdir): New function.
49888         * lib/openat.h (openat_needs_fchdir): Declare it.
49889
49890 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49891
49892         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49893         Problem and fix reported by Pádraig Brady in
49894         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49895
49896 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49897
49898         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49899
49900 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49901
49902         * lib/memcoll.c (memcoll): Optimize for the common case where the
49903         arguments are bytewise equal.
49904
49905 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49906
49907         * doc/regexprops-generic.texi: Add a copyright notice.
49908
49909 2006-08-15  Bruno Haible  <bruno@clisp.org>
49910
49911         * modules/tmpdir (License): Change to LGPL.
49912
49913 2006-08-15  Bruno Haible  <bruno@clisp.org>
49914
49915         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49916         module.
49917
49918 2006-08-14  Simon Josefsson  <jas@extundo.com>
49919
49920         * config/srclist.txt: Add gnupload.
49921
49922 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         Change copyright notice from LGPL 2 to GPL 2, since that's the
49925         standard form used in the gnulib repository.
49926         * tests/test-lock.c: Likewise.
49927         * tests/test-stdint.c: Likewise.
49928         * tests/test-tls.c: Likewise.
49929
49930         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49931         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49932         Add copyright notice.
49933
49934         * check-module: Add copyright notice.  Output a copyright
49935         notice if "--version" is specified.
49936         * modules/COPYING: New file.
49937         * tests/test-getaddrinfo.c: Add copyright notice.
49938         * tests/test-verify.c: Likewise.
49939
49940 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49941
49942         Change copyright notice from LGPL 2 to GPL 2, since that's the
49943         standard form used in the gnulib repository.
49944         * lib/lock.c: LGPL -> GPL.
49945         * lib/lock.h: Likewise.
49946         * lib/strnlen1.c: Likewise.
49947         * lib/strnlen1.h: Likewise.
49948         * lib/tls.c: Likewise.
49949         * lib/tls.h: Likewise.
49950         * lib/tmpdir.c: Likewise.
49951
49952         * lib/TODO: Remove; this belongs only in coreutils.
49953
49954 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49955
49956         Add copyright notices to long-enough files that lack them, since
49957         otherwise the files aren't clearly free.  Use the same notice that
49958         getdate.texi already uses.
49959         * doc/alloca-opt.texi: Add copyright notice.
49960         * doc/alloca.texi: Likewise.
49961         * doc/ctime.texi: Likewise.
49962         * doc/functions.texi: Likewise.
49963         * doc/gcd.texi: Likewise.
49964         * doc/gnulib-tool.texi: Likewise.
49965         * doc/inet_ntoa.texi: Likewise.
49966         * doc/visibility.texi: Likewise.
49967
49968         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49969         * doc/quote.texi: Add copyright notice.
49970
49971         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49972         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49973         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49974         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49975         is now obsolete, and give a pointer to the Sun list.
49976         Add copyright notice.
49977
49978 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49979
49980         * config/srclistvars.sh: Add copyright notice.
49981
49982 2006-08-14  Eric Blake  <ebb9@byu.net>
49983
49984         Import the following change from libc:
49985
49986         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49987
49988         Upstream bug 2997.
49989         * lib/misc/error.c: Add space between program name and message if file
49990         name is missing.
49991
49992 2006-08-12  Karl Berry  <karl@gnu.org>
49993
49994         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49995         remove, these originate in gnulib now.
49996
49997 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49998
49999         * doc/Makefile (standards.info standards.html standards.dvi):
50000         Also depend on make-stds.texi.
50001
50002 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50003
50004         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
50005         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
50006
50007         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
50008         in wchar_t.  Problem reported by Eric Blake.
50009
50010         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
50011         LEN is smaller than SIZE.  Suggested by Bruno Haible.
50012         Also, help the compiler to keep LEN in a register.
50013
50014 2006-08-11  Eric Blake  <ebb9@byu.net>
50015
50016         * users.txt: Sort.  Add tar.
50017
50018 2006-08-11  Bruno Haible  <bruno@clisp.org>
50019
50020         * users.txt: New file.
50021
50022 2006-08-11  Bruno Haible  <bruno@clisp.org>
50023
50024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
50025         before <wchar.h>. Needed for OSF/1 and BSD/OS.
50026
50027 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50028
50029         * modules/snprintf (Depends-on): Remove minmax.
50030         (Maintainer): Add self and Bruno.
50031
50032 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50033
50034         * lib/.cppi-disable: Add snprintf.h, socket_.h.
50035         * lib/snprintf.c: Include <errno.h> and <limits.h>.
50036         (EOVERFLOW): Define if the system does not.
50037         Do not include "minmax.h"; it wasn't used.
50038         (snprintf): Don't assume size_t promotes to an unsigned type.
50039         Fix bug when generated string was too long for the buffer: the
50040         buffer's contents are supposed to be the initial prefix of the
50041         output.  Don't assume vasnprintf returns EOVERFLOW if the size
50042         exceeds INT_MAX; do the check ourselves.
50043
50044         Import the following changes from libc:
50045
50046         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
50047
50048         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
50049         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
50050         set wc to the byte which couldn't be converted.
50051         (re_string_reconstruct): Don't clear valid_raw_len before calling
50052         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
50053         tip_context using re_string_context_at.
50054
50055         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
50056
50057         * lib/posix/regex.h: g++ still cannot handled [restrict].
50058
50059         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
50060
50061         * lib/posix/regex.h: Remove special handling for VMS.
50062
50063 2006-08-10  Jim Meyering  <jim@meyering.net>
50064
50065         * modules/same-inode: New module.
50066         * modules/dev-ino: New module.
50067         * modules/cycle-check: Depend on these modules, rather than simply
50068         including their .h files.
50069         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
50070         required via m4/cycle-check.m4.
50071         * modules/same: Depend on new same-inode module, rather than
50072         including same-inode.h.
50073         * modules/chdir-safer: New file.
50074
50075         * modules/chown (Depends-on): Add stat-macros.
50076
50077 2006-08-10  Jim Meyering  <jim@meyering.net>
50078
50079         * m4/cycle-check.m4: New file.
50080         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
50081         * m4/dev-ino.m4, m4/same-inode.m4: New files.
50082
50083 2006-08-10  Eric Blake  <ebb9@byu.net>
50084
50085         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
50086         in from original proposal.
50087
50088 2006-08-10  Eric Blake  <ebb9@byu.net>
50089         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50090
50091         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
50092         namespace.
50093
50094 2006-08-10  Bruno Haible  <bruno@clisp.org>
50095
50096         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
50097         as well.
50098
50099 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50100
50101         Sync from coreutils.
50102
50103         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
50104
50105         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
50106         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
50107
50108 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50109
50110         * modules/restrict: Remove; no longer needed now that we assume
50111         Autoconf 2.59 or later.
50112         * MODULES.html.sh: Remove 'restrict'.
50113         * modules/argp (Depends-on): Remove 'restrict'.
50114         * modules/base64 (Depends-on): Likewise.
50115         * modules/gc (Depends-on): Likewise.
50116         * modules/getaddrinfo (Depends-on): Likewise.
50117         * modules/glob (Depends-on): Likewise.
50118         * modules/inet_ntop (Depends-on): Likewise.
50119         * modules/inet_pton (Depends-on): Likewise.
50120         * modules/memxor (Depends-on): Likewise.
50121         * modules/regex (Depends-on): Likewise.
50122         * modules/strtok_r (Depends-on): Likewise.
50123         * modules/time_r (Depends-on): Likewise.
50124
50125 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50126
50127         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
50128         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
50129         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50130         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
50131         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
50132         * m4/memxor.m4 (gl_MEMXOR): Likewise.
50133         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
50134         gl_C_RESTRICT replaced by AC_C_RESTRICT.
50135
50136         Merge from coreutils.
50137         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
50138         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
50139         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50140         * m4/time_r.m4 (gl_TIME_R): Likewise.
50141
50142 2006-08-09  Karl Berry  <karl@gnu.org>
50143
50144         * config/srclist.txt: no more gettext-tools, per Bruno.
50145
50146 2006-08-08  Eric Blake  <ebb9@byu.net>
50147
50148         * modules/verror: New module.
50149         * MODULES.html.sh: Document it.
50150
50151 2006-08-08  Eric Blake  <ebb9@byu.net>
50152
50153         * lib/verror.h, lib/verror.c: New files.
50154
50155 2006-08-08  Eric Blake  <ebb9@byu.net>
50156
50157         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50158         verror_at_line output complies with GNU Coding Standards even when
50159         file is NULL.
50160
50161 2006-08-07  Bruno Haible  <bruno@clisp.org>
50162
50163         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50164         versions of AIX.
50165         Reported by Ralf Wildenhues.
50166
50167 2006-08-07  Bruno Haible  <bruno@clisp.org>
50168
50169         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50170         in an AC_DEFUN. Needed so that the autoconf snippets can use
50171         AC_REQUIRE.
50172
50173 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50174
50175         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50176         Initialize pkgdata_DATA.
50177         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50178         overriding it.
50179
50180 2006-08-06  Eric Blake  <ebb9@byu.net>
50181
50182         * lib/error.h: Fold in some upstream changes from glibc.
50183         * lib/error.c: Likewise.
50184
50185 2006-08-04  Bruno Haible  <bruno@clisp.org>
50186
50187         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50188         Make the mostlyclean-local rule depend on mostlyclean-generic.
50189         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50190
50191 2006-07-31  Bruno Haible  <bruno@clisp.org>
50192
50193         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50194         <stdlib.h>, <string.h>.
50195
50196 2006-07-30  Bruno Haible  <bruno@clisp.org>
50197
50198         * modules/readlink (License): Change to LGPL.
50199
50200 2006-07-30  Bruno Haible  <bruno@clisp.org>
50201
50202         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50203         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50204         set PKGDATADIR to point to it.
50205
50206 2006-07-30  Bruno Haible  <bruno@clisp.org>
50207
50208         * modules/csharpexec (configure.ac): Comment out macro invocation.
50209         * modules/javaexec (configure.ac): Likewise.
50210         * modules/javacomp-script (configure.ac): Likewise.
50211
50212         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50213
50214 2006-07-30  Bruno Haible  <bruno@clisp.org>
50215
50216         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50217         linked-list.
50218
50219 2006-07-30  Bruno Haible  <bruno@clisp.org>
50220
50221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50222
50223 2006-07-30  Bruno Haible  <bruno@clisp.org>
50224
50225         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50226         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50227         get removed.
50228
50229 2006-07-29  Bruno Haible  <bruno@clisp.org>
50230
50231         Make it possible for gnulib-tool to work with locally modified or
50232         augmented gnulib repositories.
50233         * gnulib-tool (func_usage): Document --local-dir option.
50234         (local_gnulib_dir): New variable.
50235         Handle --local-dir option.
50236         (func_lookup_file): New function.
50237         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50238         (func_get_description, func_get_filelist, func_get_description,
50239         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50240         func_get_automake_snippet, func_get_include_directive,
50241         func_get_license, func_get_maintainer): Use func_lookup_file.
50242         (func_import, func_create_testdir): Use func_lookup_file.
50243
50244 2006-07-29  Bruno Haible  <bruno@clisp.org>
50245
50246         * modules/setenv (Depends-on): Add unistd.
50247
50248 2006-07-29  Bruno Haible  <bruno@clisp.org>
50249
50250         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50251
50252 2006-07-29  Bruno Haible  <bruno@clisp.org>
50253
50254         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50255
50256 2006-07-29  Bruno Haible  <bruno@clisp.org>
50257
50258         * gnulib-tool (import, update): If there is no Makefile.am, look at
50259         aclocal.m4, instead of bailing out.
50260
50261 2006-07-29  Bruno Haible  <bruno@clisp.org>
50262
50263         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50264         Categorize the options by when they are useful.
50265
50266 2006-07-29  Bruno Haible  <bruno@clisp.org>
50267
50268         * gnulib-tool (func_usage): Document option --no-libtool.
50269         Handle option --no-libtool.
50270         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50271         for changed semantics of $libtool variable.
50272         (func_import): Likewise. If libtool is not used, show this through
50273         an option --no-libtool.
50274         (func_create_testdir): Update.
50275
50276 2006-07-29  Bruno Haible  <bruno@clisp.org>
50277
50278         * gnulib-tool (func_import): Extend error message about missing
50279         --doc-base.
50280
50281 2006-07-29  Bruno Haible  <bruno@clisp.org>
50282
50283         * gnulib-tool (func_import): Don't create the $docbase directory if
50284         there is no file to store there.
50285
50286 2006-07-29  Bruno Haible  <bruno@clisp.org>
50287
50288         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50289         relevant, look for configure.ac there, not in the current directory.
50290         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50291
50292 2006-07-29  Bruno Haible  <bruno@clisp.org>
50293
50294         * gnulib-tool (SORT): New variable.
50295         (func_usage): Undocument --assume-autoconf option.
50296         Remove --assume-autoconf option handling.
50297         (autoconf_minversion): Determine from the contents of configure.ac.
50298         (func_import): Remove autoconf_minversion handling.
50299         Suggested by Eric Blake.
50300
50301 2006-07-29  Bruno Haible  <bruno@clisp.org>
50302
50303         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50304
50305 2006-07-29  Bruno Haible  <bruno@clisp.org>
50306
50307         * config/srclist.txt (*setenv.[ch]): Remove rules.
50308
50309 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50310
50311         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50312
50313 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50314
50315         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50316         arpa/inet.h.
50317
50318 2006-07-28  Simon Josefsson  <jas@extundo.com>
50319
50320         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50321         * modules/inet_pton (Depends-on): Likewise.
50322
50323 2006-07-28  Simon Josefsson  <jas@extundo.com>
50324
50325         * m4/netinet_in_h.m4: New file.
50326
50327 2006-07-28  Simon Josefsson  <jas@extundo.com>
50328
50329         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50330         #include's.
50331
50332 2006-07-28  Simon Josefsson  <jas@extundo.com>
50333
50334         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50335         #include's.
50336
50337 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50338
50339         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50340         setgid on directories only if they set these bits.
50341         * lib/modechange.h: Remove obsolete comment about masks.
50342
50343 2006-07-28  Eric Blake  <ebb9@byu.net>
50344
50345         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50346         macro expansion.
50347
50348 2006-07-28  Bruno Haible  <bruno@clisp.org>
50349
50350         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50351
50352 2006-07-28  Bruno Haible  <bruno@clisp.org>
50353
50354         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50355
50356 2006-07-28  Bruno Haible  <bruno@clisp.org>
50357
50358         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50359         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50360         Define fallbacks.
50361         Avoids link error on FreeBSD 4.x.
50362         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50363
50364         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50365         encoding.
50366         * lib/mbswidth.c (iswcntrl): Likewise.
50367
50368 2006-07-27  Bruno Haible  <bruno@clisp.org>
50369
50370         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50371         test.
50372
50373 2006-07-27  Bruno Haible  <bruno@clisp.org>
50374
50375         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50376         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50377         defined.
50378
50379 2006-07-26  Eric Blake  <ebb9@byu.net>
50380
50381         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50382
50383 2006-07-26  Eric Blake  <ebb9@byu.net>
50384
50385         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50386         like mingw that lack mkstemp.
50387         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50388         avoid compilation warning on mingw.
50389
50390 2006-07-26  Bruno Haible  <bruno@clisp.org>
50391
50392         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50393         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50394         INT_FAST*_MIN, INTPTR_MIN.
50395
50396 2006-07-25  Bruno Haible  <bruno@clisp.org>
50397
50398         * modules/version-etc (Depends-on): Add stdarg.
50399
50400 2006-07-25  Bruno Haible  <bruno@clisp.org>
50401
50402         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50403         complex commands.
50404
50405 2006-07-25  Bruno Haible  <bruno@clisp.org>
50406
50407         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50408         defined in <stdarg.h> or config.h.
50409
50410 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50411
50412         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50413         (gl_STDIO_SAFER): Remove.
50414
50415 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50416
50417         * MODULES.html.sh (File stream based Input/Output):
50418         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50419         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50420         * modules/fopen-safer, modules/tmpfile-safer: New files.
50421         * modules/stdio-safer: Remove.
50422
50423 2006-07-24  Bruno Haible  <bruno@clisp.org>
50424
50425         * modules/tmpdir: New file.
50426         * MODULES.html.sh (File system functions): Add it.
50427
50428 2006-07-24  Bruno Haible  <bruno@clisp.org>
50429
50430         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50431         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50432
50433 2006-07-24  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/clean-temp: New file.
50436
50437 2006-07-24  Bruno Haible  <bruno@clisp.org>
50438
50439         * m4/tmpdir.m4: New file, from GNU gettext.
50440
50441 2006-07-24  Bruno Haible  <bruno@clisp.org>
50442
50443         * lib/tmpdir.h: New file, from GNU gettext.
50444         * lib/tmpdir.c: New file, from GNU gettext.
50445
50446 2006-07-24  Bruno Haible  <bruno@clisp.org>
50447
50448         * lib/clean-temp.h: New file, from GNU gettext.
50449         * lib/clean-temp.c: New file, from GNU gettext.
50450
50451 2006-07-23  Eric Blake  <ebb9@byu.net>
50452
50453         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50454         (Depends-on): Add binary-io.
50455
50456 2006-07-23  Eric Blake  <ebb9@byu.net>
50457
50458         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50459
50460 2006-07-23  Eric Blake  <ebb9@byu.net>
50461
50462         * lib/tmpfile-safer.c: New file.
50463         * lib/stdio-safer.h (fopen_safer): Add prototype.
50464         * lib/stdio--.h (tmpfile): Make safer.
50465
50466 2006-07-23  Bruno Haible  <bruno@clisp.org>
50467
50468         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50469         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50470         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50471         gl_linked_remove_at): Use it.
50472
50473 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50474         and Simon Josefsson <jas@extundo.com>
50475
50476         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50477
50478         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50479
50480 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50481
50482         * modules/close-stream: New file.
50483         * modules/closeout (Description): Make it clear that it exits
50484         with a diagnostic on error.
50485         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50486         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50487
50488 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50489
50490         * m4/close-stream.m4: New file.
50491
50492 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50493
50494         * lib/close-stream.c, lib/close-stream.h: New files.
50495
50496 2006-07-22  Bruno Haible  <bruno@clisp.org>
50497
50498         Merge from GNU gettext 0.15.
50499
50500         2006-05-01  Bruno Haible  <bruno@clisp.org>
50501
50502                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50503
50504         2006-07-22  Bruno Haible  <bruno@clisp.org>
50505
50506                 * modules/javaversion: New file.
50507                 * MODULES.html.sh (Java): Add javaversion.
50508
50509         2006-03-12  Bruno Haible  <bruno@clisp.org>
50510
50511                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50512
50513         2005-12-04  Bruno Haible  <bruno@clisp.org>
50514
50515                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50516                 (untested).
50517
50518         2006-06-21  Bruno Haible  <bruno@clisp.org>
50519
50520                 Avoid warnings from recent versions of mcs.
50521                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50522                 -o, -L, -r any more. Use options documented since mcs-1.0
50523                 instead. Similarly for -g.
50524
50525         2005-12-04  Bruno Haible  <bruno@clisp.org>
50526
50527                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50528                 .resources, not .resource.
50529
50530         2005-07-09  Bruno Haible  <bruno@clisp.org>
50531
50532                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50533                 add a .dll suffix.
50534                 Reported by Mark Junker <mjscod@gmx.de>.
50535
50536         2006-07-22  Bruno Haible  <bruno@clisp.org>
50537
50538                 * modules/gettext: Upgrade to gettext-0.15.
50539                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50540                 m4/visibility.m4.
50541                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50542
50543 2006-07-22  Bruno Haible  <bruno@clisp.org>
50544
50545         Merge from GNU gettext 0.15.
50546
50547         2006-03-25  Bruno Haible  <bruno@clisp.org>
50548
50549                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50550
50551         2006-07-21  Bruno Haible  <bruno@clisp.org>
50552
50553                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50554                 "1.1".
50555
50556         2006-05-09  Bruno Haible  <bruno@clisp.org>
50557
50558                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50559                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50560                 for the conftestver execution.
50561
50562         2006-05-01  Bruno Haible  <bruno@clisp.org>
50563
50564                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50565                 optional target-version argument. Verify that the compiler
50566                 groks source of the specified source-version, or add -source
50567                 option as necessary. Verify that the compiler produces
50568                 bytecode in the specified target-version, or add -target and
50569                 -source options as necessary. Make the result of the test
50570                 available as variable CONF_JAVAC. Also log error output in
50571                 config.log.
50572
50573         2006-03-11  Bruno Haible  <bruno@clisp.org>
50574
50575                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50576
50577         2006-05-09  Bruno Haible  <bruno@clisp.org>
50578
50579                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50580                 CLASSPATH_SEPARATOR to a semicolon.
50581
50582         2006-03-12  Bruno Haible  <bruno@clisp.org>
50583
50584                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50585                 available as variable CONF_JAVA, for subsequent autoconf
50586                 tests. Also log error output in config.log.
50587
50588         2006-07-19  Bruno Haible  <bruno@clisp.org>
50589
50590                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50591                 that getline works on glibc2 systems. Needed to avoid trouble
50592                 in relocatable.c.
50593                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50594
50595         2005-12-04  Bruno Haible  <bruno@clisp.org>
50596
50597                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50598                 launcher (untested).
50599
50600         2005-12-04  Bruno Haible  <bruno@clisp.org>
50601
50602                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50603
50604         2006-07-22  Bruno Haible  <bruno@clisp.org>
50605
50606                 * gettext.m4: Update from GNU gettext-0.15.
50607                 * nls.m4: Likewise.
50608                 * po.m4: Likewise.
50609                 * inttypes-pri.m4: Likewise.
50610                 * inttypes-h.m4: Renamed from inttypes.m4.
50611                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50612
50613 2006-07-22  Bruno Haible  <bruno@clisp.org>
50614
50615         Merge from GNU gettext 0.15.
50616
50617         2005-07-05  Bruno Haible  <bruno@clisp.org>
50618
50619                 * printf-args.c (printf_fetchargs): Work around broken
50620                 definition of wint_t on mingw.
50621
50622         2005-02-12  Bruno Haible  <bruno@clisp.org>
50623
50624                 * xallocsa.h: Add extern "C" for C++.
50625
50626         2006-05-17  Bruno Haible  <bruno@clisp.org>
50627
50628                 Cygwin portability.
50629                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50630
50631         2006-04-30  Bruno Haible  <bruno@clisp.org>
50632
50633                 * progreloc.c: Include <mach-o/dyld.h> if available.
50634                 (find_executable): Use _NSGetExecutablePath when possible.
50635
50636         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50637
50638                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50639                 function.
50640
50641         2005-12-29  Bruno Haible  <bruno@clisp.org>
50642
50643                 * progreloc.c (set_program_name_and_installdir): Fix
50644                 compilation error.
50645
50646         2005-12-04  Bruno Haible  <bruno@clisp.org>
50647
50648                 Cygwin portability.
50649                 * progreloc.c: Include <windows.h> also on Cygwin.
50650                 (find_executable): Add support for Cygwin.
50651                 (set_program_name_and_installdir): Handle also platforms with
50652                 nonempty EXEEXT.
50653
50654         2006-07-11  Bruno Haible  <bruno@clisp.org>
50655
50656                 * javacomp.c: Fix a comment.
50657                 Reported by Jim Meyering.
50658
50659         2006-04-30  Bruno Haible  <bruno@clisp.org>
50660
50661                 * javacomp.h (compile_java_class): Add source_version,
50662                 target_version arguments.
50663                 * javacomp.c: Rewritten to choose only a compiler that
50664                 respects the specified source_version and target_version.
50665
50666         2006-06-27  Bruno Haible  <bruno@clisp.org>
50667
50668                 Assume correct S_ISDIR macro.
50669                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50670
50671         2006-07-22  Bruno Haible  <bruno@clisp.org>
50672
50673                 * javaversion.h: New file, from GNU gettext.
50674                 * javaversion.c: New file, from GNU gettext.
50675                 * javaversion.java: New file, from GNU gettext.
50676                 * javaversion.class: New file, from GNU gettext.
50677
50678         2006-05-17  Bruno Haible  <bruno@clisp.org>
50679
50680                 Cygwin portability.
50681                 * javaexec.c (execute_java_class): Test for jview program
50682                 also on Cygwin.
50683
50684         2006-04-09  Bruno Haible  <bruno@clisp.org>
50685
50686                 * fatal-signal.c: Don't include string.h.
50687                 (at_fatal_signal): Use a copying loop instead of memcpy.
50688
50689         2005-12-04  Bruno Haible  <bruno@clisp.org>
50690
50691                 * csharpexec.c: Add support for 'clix' launcher (untested).
50692                 (execute_csharp_using_sscli): New function.
50693                 (execute_csharp_program): Call it.
50694
50695         2006-06-21  Bruno Haible  <bruno@clisp.org>
50696
50697                 Avoid warnings from recent versions of mcs.
50698                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50699                 -o, -L, -r any more. Use options documented since mcs-1.0
50700                 instead. Similarly for -g.
50701
50702         2005-07-09  Bruno Haible  <bruno@clisp.org>
50703
50704                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50705                 add a .dll suffix.
50706                 Reported by Mark Junker <mjscod@gmx.de>.
50707
50708         2006-06-17  Bruno Haible  <bruno@clisp.org>
50709
50710                 * config.charset: Update for NetBSD 3.0.
50711
50712         2006-05-17  Bruno Haible  <bruno@clisp.org>
50713
50714                 Cygwin portability.
50715                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50716
50717         2006-05-16  Bruno Haible  <bruno@clisp.org>
50718
50719                 * localcharset.c [CYGWIN]: Include <windows.h>.
50720                 (get_charset_aliases): For Cygwin, return the same CPxxx
50721                 aliases list as under WIN32.
50722                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50723                 the environment variables. Fall back to GetACP().
50724
50725         2006-04-05  Bruno Haible  <bruno@clisp.org>
50726
50727                 * config.charset: Update Juan Manuel Guerrero's address.
50728
50729         2005-02-12  Bruno Haible  <bruno@clisp.org>
50730
50731                 * allocsa.h: Add extern "C" for C++.
50732
50733         2005-02-10  Bruno Haible  <bruno@clisp.org>
50734
50735                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50736                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50737
50738         2006-07-22  Bruno Haible  <bruno@clisp.org>
50739
50740                 * gettext.h: Update to GNU gettext-0.15.
50741
50742 2006-07-22  Bruno Haible  <bruno@clisp.org>
50743
50744         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50745         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50746         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50747
50748 2006-07-21  Eric Blake  <ebb9@byu.net>
50749
50750         * modules/stdlib-safer: New file.
50751         * MODULES.html.sh (File stream based Input/Output): Add
50752         stdlib-safer.
50753
50754 2006-07-21  Eric Blake  <ebb9@byu.net>
50755
50756         * lib/stdlib-safer.h: New file from coreutils, required by
50757         stdlib--.h.
50758
50759 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50760
50761         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50762
50763 2006-07-20  Bruno Haible  <bruno@clisp.org>
50764
50765         * gnulib-tool: Recognize new option --assume-autoconf.
50766         (autoconf_minversion): New variable.
50767         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50768
50769 2006-07-20  Bruno Haible  <bruno@clisp.org>
50770
50771         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50772
50773 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50774
50775         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50776         Reindent and repaginate.
50777
50778 2006-07-19  Derek Price  <derek@ximbiot.com>
50779
50780         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50781         Correct grammar.
50782
50783 2006-07-17  Bruno Haible  <bruno@clisp.org>
50784
50785         * modules/list: New file.
50786         * modules/array-list: New file.
50787         * modules/carray-list, modules/carray-list-tests: New files.
50788         * modules/linked-list, modules/linked-list-tests: New files.
50789         * modules/avltree-list, modules/avltree-list-tests: New files.
50790         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50791         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50792         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50793         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50794         * modules/oset: New file.
50795         * modules/array-oset: New file.
50796         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50797         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50798         * tests/test-carray_list.c: New file.
50799         * tests/test-linked_list.c: New file.
50800         * tests/test-avltree_list.c: New file.
50801         * tests/test-rbtree_list.c: New file.
50802         * tests/test-linkedhash_list.c: New file.
50803         * tests/test-avltreehash_list.c: New file.
50804         * tests/test-rbtreehash_list.c: New file.
50805         * tests/test-avltree_oset.c: New file.
50806         * tests/test-rbtree_oset.c: New file.
50807         * MODULES.html.sh (Container data structures): New section.
50808
50809 2006-07-17  Bruno Haible  <bruno@clisp.org>
50810
50811         * m4/gl_list.m4: New file.
50812
50813 2006-07-17  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/gl_list.h: New file.
50816         * lib/gl_list.c: New file.
50817         * lib/gl_array_list.h: New file.
50818         * lib/gl_array_list.c: New file.
50819         * lib/gl_carray_list.h: New file.
50820         * lib/gl_carray_list.c: New file.
50821         * lib/gl_linked_list.h: New file.
50822         * lib/gl_linked_list.c: New file.
50823         * lib/gl_anylinked_list1.h: New file.
50824         * lib/gl_anylinked_list2.h: New file.
50825         * lib/gl_avltree_list.h: New file.
50826         * lib/gl_avltree_list.c: New file.
50827         * lib/gl_anyavltree_list1.h: New file.
50828         * lib/gl_anyavltree_list2.h: New file.
50829         * lib/gl_rbtree_list.h: New file.
50830         * lib/gl_rbtree_list.c: New file.
50831         * lib/gl_anyrbtree_list1.h: New file.
50832         * lib/gl_anyrbtree_list2.h: New file.
50833         * lib/gl_anytree_list1.h: New file.
50834         * lib/gl_anytree_list2.h: New file.
50835         * lib/gl_linkedhash_list.h: New file.
50836         * lib/gl_linkedhash_list.c: New file.
50837         * lib/gl_anyhash_list1.h: New file.
50838         * lib/gl_anyhash_list2.h: New file.
50839         * lib/gl_avltreehash_list.h: New file.
50840         * lib/gl_avltreehash_list.c: New file.
50841         * lib/gl_rbtreehash_list.h: New file.
50842         * lib/gl_rbtreehash_list.c: New file.
50843         * lib/gl_anytreehash_list1.h: New file.
50844         * lib/gl_anytreehash_list2.h: New file.
50845
50846         * lib/gl_oset.h: New file.
50847         * lib/gl_oset.c: New file.
50848         * lib/gl_array_oset.h: New file.
50849         * lib/gl_array_oset.c: New file.
50850         * lib/gl_avltree_oset.h: New file.
50851         * lib/gl_avltree_oset.c: New file.
50852         * lib/gl_rbtree_oset.h: New file.
50853         * lib/gl_rbtree_oset.c: New file.
50854         * lib/gl_anytree_oset.h: New file.
50855
50856 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50857
50858         * m4/mkancesdirs.m4: New file.
50859         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50860         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50861         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50862         it.
50863
50864 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50865
50866         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50867         * lib/mkancesdirs.h: New files.
50868         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50869         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50870         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50871         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50872         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50873         callers changed.  Revamp internals significantly, by not
50874         attempting to create directories that are temporarily more
50875         permissive than the final results.  Do not attempt to use
50876         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50877         This removes some race conditions, fixes some bugs, and simplifies
50878         things.  Use new dirchownmod function to do owner and mode changes.
50879         * lib/mkdir-p.h: Likewise.
50880         * lib/modechange.c (octal_to_mode): New function.
50881         (struct mode_change): New member mentioned.
50882         (make_node_op_equals): New arg mentioned.  All callers changed.
50883         (mode_compile): Keep track of which mode bits the user has explicitly
50884         mentioned.
50885         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50886         New arg PMODE_BITS, to keep track of which mode bits the user
50887         mentioned; it treats S_ISUID and S_ISGID speciall.
50888         All callers changed.
50889         * lib/modechange.h: Likewise.
50890
50891 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50892
50893         * MODULES.html.sh: Add mkancestors.
50894         * modules/mkancesdirs: New module.
50895         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50896         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50897         The chdir-safer and afs files are now orphans; I'll remove them
50898         unless someone speaks up.
50899         Add lib/dirchownmod.c, lib/dirchownmod.h.
50900         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50901         Add lchown, mkancesdirs.
50902         (Maintainer): Add self.
50903
50904 2006-07-15  Karl Berry  <karl@gnu.org>
50905
50906         * gnulib-tool: help message wording/arrangement.
50907
50908 2006-07-14  Simon Josefsson  <jas@extundo.com>
50909
50910         * doc/gnulib.texi (Libtool and Windows): New section.
50911
50912 2006-07-12  Simon Josefsson  <jas@extundo.com>
50913
50914         * modules/gendocs (License): Fix license, approved by Karl.
50915
50916 2006-07-12  Eric Blake  <ebb9@byu.net>
50917
50918         * MODULES.html.sh: Add gendocs.
50919
50920 2006-07-11  Eric Blake  <ebb9@byu.net>
50921
50922         * modules/fdl: New module, to install doc/fdl.texi.
50923         * MODULES.html.sh: Add new section for documentation modules.
50924         * gnulib-tool: Avoid space-tab.
50925         (--doc-base): New option, to manage files from doc.
50926
50927 2006-07-11  Eric Blake  <ebb9@byu.net>
50928
50929         * m4/absolute-header.m4: Fix comments to match recent change.
50930
50931 2006-07-11  Eric Blake  <ebb9@byu.net>
50932
50933         * gnulib-tool: List --doc-base before --tests-base.
50934
50935 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50936
50937         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50938
50939 2006-07-11  Bruno Haible  <bruno@clisp.org>
50940
50941         * README: Mention where to put documentation.
50942
50943 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50944
50945         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50946
50947 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50948
50949         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50950         to stdint.m4.
50951
50952 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50953
50954         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50955         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50956         "no/such/file/stdint.h" when there is no such file, so that
50957         the resulting C code can be parsed by dodgy compilers.
50958         Problems reported by Bob Proulx.
50959
50960 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50961
50962         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50963         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50964         macros into the GNU _D_EXACT_NAMLEN.
50965         * lib/savedir.c:  Likewise.
50966         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50967
50968 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50969         and Paul Eggert  <eggert@cs.ucla.edu>
50970
50971         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50972         * m4/savedir.m4:
50973         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50974         macros into the GNU _D_EXACT_NAMLEN.
50975
50976 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50977
50978         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50979         around the absolute name, to work around a problem with the HP-UX
50980         11.23 native C compiler, reported by Bob Proulx.
50981
50982 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         * doc/maintain.texi, make-stds.texi: Sync from
50985         <http://savannah.gnu.org/projects/gnustandards>.
50986
50987 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50988
50989         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50990
50991 2006-07-09  Jim Meyering  <jim@meyering.net>
50992
50993         * m4/glob.m4: Remove a doubled word in a comment.
50994
50995 2006-07-09  Jim Meyering  <jim@meyering.net>
50996
50997         * lib/argp-pv.c: Remove a doubled word in a comment.
50998         * lib/check-version.c (check_version): Likewise.
50999         * lib/javacomp.c (compile_java_class): Likewise.
51000
51001 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51002
51003         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
51004         for the benefit of people using Autoconf 2.60.  If you want to
51005         support older Autoconf versions you can copy m4/onceonly_2_57.m4
51006         (or m4/onceonly.m4, if pre-2.57) manually.
51007
51008 2006-07-08  Jim Meyering  <jim@meyering.net>
51009
51010         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
51011         comment.
51012         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
51013         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
51014         comment.
51015
51016 2006-07-08  Jim Meyering  <jim@meyering.net>
51017
51018         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
51019
51020 2006-07-07  Simon Josefsson  <jas@extundo.com>
51021
51022         * tests/test-crc.c: Change expected crc value, the test vector
51023         were probably computed using the old broken crc.c?
51024
51025 2006-07-06  Simon Josefsson  <jas@extundo.com>
51026
51027         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
51028         now the canonical place for the M4 file).
51029
51030         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
51031         from the sys_socket dependency now.
51032
51033         * modules/inet_pton (Files): Ditto.
51034
51035         * modules/inet_ntop (Files): Ditto.
51036
51037 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51038
51039         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
51040         not gl_PREREQ_GETUSERSHELL.
51041
51042 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51043
51044         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
51045         with only one argument, for Autoconf 2.60.
51046         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
51047         expand to nothing, so add a shell command to avoid syntax error.
51048         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
51049
51050 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51051
51052         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
51053
51054 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51055
51056         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
51057         no longer needed.  Check for isblank decl.
51058         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
51059         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
51060         of existence.
51061
51062 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51063
51064         * lib/getloadavg.c: Use __VMS, not VMS.
51065         * lib/getopt.c: Likewise.
51066         * lib/getpagesize.h: Likewise.
51067         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
51068         and probably does not work.
51069
51070 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51071
51072         * lib/.cppi-disable: Add wcwidth.
51073         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
51074         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
51075         (ISGRAPH): Remove.  All uses changed to isgraph.
51076         (FOLD) [!defined _LIBC]: Remove special case.
51077         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
51078         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
51079         HAVE_ISBLANK.
51080         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
51081         case.
51082
51083 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51084
51085         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
51086         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
51087         brackets.  Other minor changes to suppress some compiler
51088         warnings.
51089
51090 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51091         and Paul Eggert  <eggert@cs.ucla.edu>
51092
51093         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
51094         of invoking obsolescent AC_HEADER_DIRENT macro.
51095         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
51096         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
51097         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
51098         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
51099         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
51100         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51101         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
51102         * m4/readdir.m4: Remove; no longer needed.
51103
51104 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51105         and Paul Eggert  <eggert@cs.ucla.edu>
51106
51107         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
51108         Don't worry about this obsolete case any more.
51109         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
51110         directories.
51111         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
51112         worry about this obsolete case any more.
51113         * lib/fts.c: Likewise.
51114         * lib/getcwd.c: Likewise.
51115         * lib/glob.h: Likewise.
51116         * lib/savedir.c: Likewise.
51117
51118 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51119
51120         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
51121         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
51122         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
51123         needed.
51124         All uses removed.
51125         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51126         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51127         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
51128         needed.
51129         * m4/getdate.m4 (gl_GETDATE): Likewise.
51130         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51131         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51132         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51133         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51134         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51135         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51136         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
51137         needed.
51138
51139 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51140
51141         * lib/memcasecmp.c: Include <limits.h>.
51142         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
51143         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
51144         Don't assume isdigit succeeds only on '0' through '9'.
51145
51146 2006-07-05  Eric Blake  <ebb9@byu.net>
51147
51148         * modules/getaddrinfo (Depends-on): Add snprintf.
51149
51150 2006-07-05  Eric Blake  <ebb9@byu.net>
51151
51152         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
51153         to avoid 'header present but could not be compiled' on cygwin.
51154
51155 2006-07-05  Eric Blake  <ebb9@byu.net>
51156
51157         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51158         missing from netdb.h.
51159         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51160
51161 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51162
51163         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51164         no longer needed.
51165         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51166         * m4/getdate.m4 (gl_GETDATE): Likewise.
51167         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51168         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51169         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51170         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51171         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51172
51173 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51174
51175         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51176         All uses of is_space replaced by isspace.
51177         * lib/exit.h: Don't talk about STDC_HEADERS.
51178         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51179         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51180         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51181         replaced by isprint etc.
51182         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51183         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51184         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51185         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51186         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51187         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51188
51189 2006-07-05  Bruno Haible  <bruno@clisp.org>
51190
51191         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51192         the function exists, before testing against AIX.
51193         Reported by Martin Lambers <marlam@marlam.de>.
51194
51195 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51196
51197         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51198         From Mark D. Baushke.
51199
51200 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51201
51202         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51203         to the absolute name, not just one, to bypass Sun C 5.8's
51204         "warning: #include of /usr/include/... may be non-portable".
51205
51206 2006-07-04  Eric Blake  <ebb9@byu.net>
51207
51208         * modules/dirname-tests: New test module.
51209         * tests/test-dirname.c: New file, replacing dirname.c
51210         TEST_DIRNAME section that was recently deleted.
51211
51212 2006-07-04  Bruno Haible  <bruno@clisp.org>
51213
51214         Assume ANSI C header files and <ctype.h> functions.
51215         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51216         (mbsnwidth): Use isprint, iscntrl instead.
51217
51218 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         Merge from coreutils.
51221         * MODULES.html.sh: Add xstrtold.
51222         * modules/xstrtold: New file.
51223         * modules/cycle-check (Files): Add lib/same-inode.h.
51224         * modules/dirname (Files): Add m4/double-slash-root.m4.
51225         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51226         * modules/mkdir-p (Files): Add lib/same-inode.h.
51227         * modules/same (Files): Add lib/same-inode.h.
51228
51229 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51230
51231         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51232         This is to keep the terminology clean; POSIX talks about
51233         "absolute pathnames", not "full pathnames", but the GNU
51234         Coding Standards say to use "path" for something else;
51235         so use "absolute" to keep both sides happy.
51236         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51237         Set gl_absolute_header, not gl_full_header_path.
51238         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51239         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51240         All uses changed.
51241
51242         Merge from coreutils.
51243
51244         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51245
51246         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51247         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51248         want to require the building of c-strtod.o.
51249         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51250         needs -lm directly.
51251         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51252
51253         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51254
51255         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51256         --as-needed option if available.  Problem reported by Albert Chin in
51257         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51258         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51259         cc merely issues a bunch of annoying warnings for --as-needed
51260         (this problem was reported by Bob Proulx).  Also, try linking with
51261         -lm to detect a bug in binutils 2.16 (this problem was reported
51262         by Ralf Wildenhues).
51263
51264         2006-06-18  Jim Meyering  <jim@meyering.net>
51265
51266         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51267         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51268         macro.
51269         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51270         also check for glibc-2.4's abort-inducing bug.
51271
51272         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51273         Low-probability clean-up should be to use rmdir to get rid of
51274         the just-created directory, not unlink.
51275
51276         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51277         configure fail, and request a bug report to inform us about it.
51278         Add a comment that, barring reports to the contrary, in 2007 we'll
51279         assume ftruncate is universally available.
51280
51281         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51282
51283         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51284
51285         2006-03-12  Jim Meyering  <jim@meyering.net>
51286
51287         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51288         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51289         * m4/same.m4 (gl_SAME): Likewise.
51290         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51291
51292         2006-03-11  Eric Blake  <ebb9@byu.net>
51293
51294         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51295         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51296         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51297         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51298
51299 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51300
51301         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51302         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51303         reported by Mark D. Baushke, one in
51304         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51305
51306         Merge from coreutils.
51307
51308         * lib/.cppi-disable: Add stdint_.h.
51309         * lib/.cvsignore: Add stdint.h.
51310
51311         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51312
51313         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51314         both double and long double versions.
51315         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51316         * lib/xstrtold.c: New file.
51317         * lib/xstrtod.h (xstrtold): New decl.
51318
51319         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51320
51321         * lib/filemode.c (setst): Remove.
51322         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51323         (arguably) clearer, and the generated code is a bit smaller on my
51324         Debian GNU/Linux stable x86 host.
51325
51326         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51327
51328         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51329         Assume that filemode.h includes sys/types.h and sys/stat.h.
51330         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51331         (ftypelet): Reorder to put common cases first, for efficiency.
51332         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51333         to do 'M'.
51334         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51335         of 10, for compatibility with FreeBSD.  All callers changed.
51336         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51337         types that can't be deduced solely from st_mode.  First arg is now a
51338         const pointer.
51339         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51340         (strmode): Renamed from mode_string.
51341         (filemodestring): New decl.
51342         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51343         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51344         needed.
51345         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51346
51347         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51348
51349         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51350         fsusage.h now does that.  Include fsusage.h first, to test interface.
51351         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51352         at most one method (the old code could have generated decls that
51353         didn't conform to C89, not that this was ever exercised).
51354         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51355
51356         2006-03-19  Jim Meyering  <jim@meyering.net>
51357
51358         Work even in a chroot where d_ino values for entries in "/"
51359         don't match the stat.st_ino values for the same names.
51360         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51361         number, iterate through all entries again, using lstat instead.
51362         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51363         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51364
51365         * lib/getcwd.c (__getcwd): Clarify a comment.
51366         Use memcpy in place of a call to strcpy.
51367
51368         2006-03-12  Jim Meyering  <jim@meyering.net>
51369
51370         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51371         matches that of the current directory (which we're about to chdir ".."
51372         out of), then save the dev-ino of the parent, instead.
51373
51374         * lib/same-inode.h (SAME_INODE): New file/macro.
51375         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51376         Include "same-inode.h", instead.
51377         * lib/same.c: Likewise.
51378         * lib/cycle-check.h: Include "same-inode.h".
51379         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51380         * lib/cycle-check.c (SAME_INODE): Remove definition.
51381         * lib/root-dev-ino.h: Include "same-inode.h".
51382
51383         2006-03-11  Eric Blake  <ebb9@byu.net>
51384
51385         * lib/same.c (same_name): s/base_name/last_component/
51386         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51387         * lib/filenamecat.c (file_name_concat): Likewise.
51388
51389         2006-03-11  Eric Blake  <ebb9@byu.net>,
51390                     Paul Eggert  <eggert@cs.ucla.edu>
51391
51392         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51393         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51394         drive prefix.
51395         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51396         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51397         (last_component): New method.
51398         * lib/dirname.c (dir_len): Determine when drive letters need a
51399         subsequent slash.  Preserve // when it is special.
51400         (dir_name): Don't append dot when drive letter is absolute.
51401         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51402         * lib/basename.c (base_name): New semantics - malloc the result.
51403         Preserve // when it is special.  Preserve relative files that look
51404         like drive letters.
51405         (base_len): Preserve // when it is special.
51406         (last_component): New method, similar to old base_name semantics.
51407         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51408         base_name.  Strip redundant slashes from ///.
51409
51410 2006-07-03  Jim Meyering  <jim@meyering.net>
51411
51412         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51413         macro is used before the first cycle_check call.
51414
51415 2006-07-03  Eric Blake  <ebb9@byu.net>
51416
51417         * modules/dirname (Depends-on): Add xstrndup.
51418
51419 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51420
51421         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51422         test cases, so that config.log is a bit easier to follow.
51423
51424 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51425
51426         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51427         both are 64 bits, since this seems to be the tradition, and this
51428         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51429         we ever run into a host that prefers long long to long in this
51430         case, we'll need another configure-time test.  Problem reported by
51431         Jim Meyering.
51432
51433 2006-07-02  Eric Blake  <ebb9@byu.net>
51434
51435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51436
51437 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51438
51439         * modules/inttypes (Depends-on): No longer depends on stdint.
51440         * modules/stdint (Description): Say more about assumptions.
51441         Say that the fast types might differ.  Say macros are used.
51442         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51443         (Makefile.am): Revise list of substituted symbols to match
51444         new stdint.m4.
51445         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51446         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51447         * tests/test-stdint.c (verify_same_types)
51448         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51449         the code conforms to C99/C89.
51450         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51451         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51452
51453 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51454
51455         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51456         but fix a bug, by requiring at least 64 bits.
51457         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51458         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51459         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51460         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51461
51462         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51463         changes.  Make 2.59 a prerequisite.  Check and substitute for
51464         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51465         inttypes.h.  Do not use special include files; just use the
51466         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51467         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51468         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51469         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51470         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51471         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51472         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51473         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51474         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51475         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51476         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51477         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51478         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51479         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51480         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51481         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51482         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51483         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51484         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51485         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51486         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51487         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51488         not check for things that C99 does not require, e.g., int8_t.  If
51489         a test isn't needed unless <stdint.h> isn't working, and is
51490         unlikely to be needed for any other reason, then don't do it
51491         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51492         size_t, since we assume C89 freestanding at least.  Do not check
51493         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51494         the right thing even if the types are not defined.  Instead use:
51495         (gl_STDINT_TYPE_PROPERTIES): New macro.
51496         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51497         testing whether <sys/types.h> clashes, as Autoconf does this for
51498         us now.  All uses removed.
51499         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51500         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51501         (gl_CHECK_TYPE_SAME):
51502         Remove; no longer needed.
51503         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51504         exists, since we'll return 0 anyway in that case.
51505         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51506
51507 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51508
51509         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51510         possible collision with system files.
51511         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51512         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51513         WCHAR_MIN and WCHAR_MAX in this case.
51514         (<stddef.h>): Do not include; no longer needed.
51515         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51516         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51517         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51518         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51519         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51520         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51521         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51522         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51523         !defined(__c99))]: Include in this case too, since it's harmless
51524         now.
51525         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51526         dangerous to do so.
51527         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51528         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51529         (_STDINT_MIN, _STDINT_MAX): New macros.
51530         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51531         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51532         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51533         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51534         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51535         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51536         macros, not typedefs; this simplifies things quite a bit.
51537         Use long int for all types narrower than int64_t.
51538         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51539         Define in terms of long long int or int64_t or long int,
51540         not int64_t or int32_t.  This saves some compile-time testing.
51541         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51542         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51543         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51544         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51545         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51546         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51547         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51548         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51549         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51550         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51551         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51552         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51553         undef any previous version and define our own version, for
51554         simplicity and consistency with the new macros for types.
51555         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51556         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51557         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51558         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51559         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51560         @WINT_T_SUFFIX@ to keep things simple here.
51561         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51562         Simplify by assuming typical 8/16/32/64 host, since we're
51563         already doing that elsewhere anyway.
51564         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51565         and assume long long int is 64 bits if available.  This
51566         speeds up 'configure'.
51567
51568 2006-07-01  Eric Blake  <ebb9@byu.net>
51569
51570         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51571         Reported by Andreas Buening.
51572
51573 2006-07-01  Eric Blake  <ebb9@byu.net>
51574
51575         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51576
51577 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51578
51579         * lib/getaddrinfo.c: fixed typo
51580
51581 2006-06-29  Jim Meyering  <jim@meyering.net>
51582
51583         * modules/strftime (Maintainer): Add my name, since with the
51584         FPRINTFTIME changes strftime.c has forked from glibc.
51585
51586 2006-06-29  Eric Blake  <ebb9@byu.net>
51587
51588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51589
51590 2006-06-29  Eric Blake  <ebb9@byu.net>
51591
51592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51593
51594 2006-06-29  Eric Blake  <ebb9@byu.net>
51595
51596         * lib/stat_.h: New file.
51597
51598 2006-06-29  Eric Blake  <ebb9@byu.net>
51599
51600         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51601         unused static function.
51602
51603 2006-06-29  Eric Blake  <ebb9@byu.net>
51604
51605         * doc/functions.texi (Function Portability): Document missing lstat
51606         on mingw.
51607
51608 2006-06-29  Eric Blake  <ebb9@byu.net>
51609
51610         * MODULES.html.sh: Add sys_stat.
51611         * modules/sys_stat: New module.
51612         * modules/mkstemp (Depends-on): Add sys_stat.
51613
51614 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51615
51616         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51617
51618 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51619
51620         * m4/c-bs-a.m4: Removed.
51621
51622 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51623
51624         * lib/strftime.c: Assume strftime() exists.
51625
51626 2006-06-29  Derek Price  <derek@ximbiot.com>
51627
51628         * modules/c-bs-a: Removed - \a is C89.
51629         * MODULES.html.sh: Remove c-bs-a.
51630
51631 2006-06-29  Bruno Haible  <bruno@clisp.org>
51632
51633         * modules/wcwidth (License): Change to LGPL.
51634
51635 2006-06-28  Simon Josefsson  <jas@extundo.com>
51636
51637         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51638         on _WIN32.
51639
51640         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51641         getnameinfo.
51642
51643 2006-06-28  Simon Josefsson  <jas@extundo.com>
51644
51645         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51646
51647 2006-06-28  Simon Josefsson  <jas@extundo.com>
51648
51649         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51650         functions there.  It will succeed on Windows XP, but on Windows
51651         2000 and (presumably) earlier, it will fail, and use the internal
51652         re-implementation.
51653         (use_win32_p): New function.
51654         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51655         Support AI_NUMERICSERV to disable getservbyname.
51656         (getnameinfo): New function, only supports
51657         NI_NUMERICHOST|NI_NUMERICSERV for now.
51658
51659         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51660         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51661         getnameinfo.
51662
51663 2006-06-28  Eric Blake  <ebb9@byu.net>
51664
51665         * modules/wcwidth: New file.
51666         * modules/mbchar (Depends-on): Add wcwidth.
51667         * modules/mbswidth (Depends-on): Add wcwidth.
51668         * MODULES.html.sh: Add wcwidth.
51669
51670 2006-06-28  Eric Blake  <ebb9@byu.net>
51671
51672         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51674
51675 2006-06-28  Eric Blake  <ebb9@byu.net>
51676
51677         * lib/xvasprintf.h: Fix comments.
51678
51679 2006-06-28  Eric Blake  <ebb9@byu.net>
51680
51681         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51682         * lib/mbswidth.c (wcwidth): Move from here...
51683         * lib/wcwidth.h: ...to this new file.
51684
51685 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51686
51687         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51688
51689         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51690         it's obsolete.
51691         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51692
51693 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51694
51695         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51696         Autoconf 2.60 says this stuff was obsolete.
51697
51698 2006-06-28  Bruno Haible  <bruno@clisp.org>
51699
51700         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51701
51702 2006-06-28  Bruno Haible  <bruno@clisp.org>
51703
51704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51705         gt_TYPE_WCHAR_T.
51706
51707 2006-06-28  Bruno Haible  <bruno@clisp.org>
51708
51709         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51710         declaration for wcwidth.
51711         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51712
51713 2006-06-28  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51716         (mkdir): Define using _mkdir.
51717
51718 2006-06-28  Bruno Haible  <bruno@clisp.org>
51719
51720         * lib/getaddrinfo.h: Fix POSIX URL.
51721         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51722         _WIN32.
51723         (use_win32_p): Make static.
51724         (getaddrinfo): Reject service name if it is empty or does not consist
51725         solely of decimal digits, or if its value is > 65535.
51726         (getnameinfo): Remove useless casts.
51727
51728 2006-06-27  Simon Josefsson  <jas@extundo.com>
51729
51730         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51731         Eggert and Martin Lambers.
51732
51733 2006-06-27  Simon Josefsson  <jas@extundo.com>
51734
51735         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51736         Eggert and Martin Lambers.
51737
51738 2006-06-27  Bruno Haible  <bruno@clisp.org>
51739
51740         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51741         result to 0, not to empty.
51742         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51743
51744 2006-06-27  Bruno Haible  <bruno@clisp.org>
51745
51746         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51747
51748 2006-06-26  Simon Josefsson  <jas@extundo.com>
51749
51750         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51751         present.
51752
51753 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51754
51755         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51756         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51757         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51758
51759 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51760
51761         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51762
51763 2006-06-26  Bruno Haible  <bruno@clisp.org>
51764
51765         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51766
51767 2006-06-26  Bruno Haible  <bruno@clisp.org>
51768
51769         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51770
51771 2006-06-26  Bruno Haible  <bruno@clisp.org>
51772
51773         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51774         SGI C compiler in pre-C99 mode.
51775         Suggested by Mark D. Baushke and Larry Jones.
51776
51777 2006-06-26  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51780         WCHAR_MAX.
51781         Reported by Mark D. Baushke and Larry Jones.
51782
51783 2006-06-26  Bruno Haible  <bruno@clisp.org>
51784
51785         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51786         in pre-C99 mode.
51787         Suggested by Mark D. Baushke and Larry Jones.
51788
51789 2006-06-23  Simon Josefsson  <jas@extundo.com>
51790             Bruno Haible  <bruno@clisp.org>
51791
51792         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51793         Emit mostlyclean-local rule.
51794         (func_emit_tests_Makefile_am): Likewise.
51795         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51796
51797 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51798
51799         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51800
51801 2006-06-23  Bruno Haible  <bruno@clisp.org>
51802
51803         * tests/test-stdint.c: Update to match ISO C 99 Technical
51804         Corrigendum 1.
51805
51806 2006-06-23  Bruno Haible  <bruno@clisp.org>
51807
51808         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51809
51810 2006-06-23  Bruno Haible  <bruno@clisp.org>
51811
51812         * lib/stdint_.h: Treat IRIX like OpenBSD.
51813
51814 2006-06-23  Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51817         ISO C 99 Technical Corrigendum 1.
51818
51819 2006-06-22  Simon Josefsson  <jas@extundo.com>
51820
51821         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51822         MinGW.
51823
51824 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51825
51826         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51827         needed.  Some compiler complained about some of them.  Problem reported
51828         by Larry Jones in
51829         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51830
51831 2006-06-21  Simon Josefsson  <jas@extundo.com>
51832
51833         * tests/test-getaddrinfo.c: New file.
51834
51835         * modules/getaddrinfo-tests: New file.
51836
51837         * MODULES.html.sh: Add inet_pton.
51838
51839         * modules/inet_pton: New file.
51840
51841 2006-06-21  Simon Josefsson  <jas@extundo.com>
51842
51843         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51844         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51845         of using the (limited) gnulib implementation on Windows XP.
51846
51847         * m4/inet_pton.m4: New file.
51848
51849 2006-06-21  Simon Josefsson  <jas@extundo.com>
51850
51851         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51852         variable.
51853
51854         * lib/socket_.h: Don't define WINVER.
51855
51856         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51857         slightly modified to work in gnulib.
51858
51859 2006-06-21  Simon Josefsson  <jas@extundo.com>
51860
51861         * doc/gnulib.texi (Windows sockets): Add.
51862
51863 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51864
51865         * lib/read-file.c (fread_file): Start with buffer allocation of
51866         0 bytes rather than 1 byte; this simplifies the code.
51867         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51868         code to free buffer and save/restore errno.
51869         (internal_read_file): Remove unused local.
51870
51871 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51872
51873         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51874         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51875         Problem reported by Denis Excoffier in
51876         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51877
51878 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51879
51880         * modules/sys_socket, modules/socklen: Include sys/types since
51881         FreeBSD 4.x's sys/socket.h needs it.
51882
51883 2006-06-19  Simon Josefsson  <jas@extundo.com>
51884
51885         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51886
51887 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51888
51889         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51890
51891 2006-06-19  Bruno Haible  <bruno@clisp.org>
51892
51893         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51894         and FULL_PATH_INTTYPES_H in angle brackets.
51895         Reported by Mark D. Baushke <mdb@gnu.org>.
51896
51897 2006-06-17  Eric Blake  <ebb9@byu.net>
51898
51899         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51900         errno.
51901
51902 2006-06-17  Bruno Haible  <bruno@clisp.org>
51903
51904         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51905         <sys/inttypes.h>.
51906
51907 2006-06-17  Bruno Haible  <bruno@clisp.org>
51908
51909         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51910         whether errno is declared. Assume <errno.h> declares errno.
51911
51912 2006-06-17  Bruno Haible  <bruno@clisp.org>
51913
51914         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51915
51916 2006-06-17  Bruno Haible  <bruno@clisp.org>
51917
51918         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51919         problem on Solaris 2.5.1.
51920
51921 2006-06-16  Eric Blake  <ebb9@byu.net>
51922
51923         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51924         * lib/unicodeio.c [!defined errno]: Likewise.
51925         * lib/strtol.c [!defined errno]: Likewise.
51926         * lib/strtod.c [!defined errno]: Likewise.
51927
51928 2006-06-15  Eric Blake  <ebb9@byu.net>
51929
51930         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51931
51932 2006-06-15  Eric Blake  <ebb9@byu.net>
51933
51934         * config/srclist.txt (ssize_t.m4): Lose sync.
51935
51936 2006-06-15  Bruno Haible  <bruno@clisp.org>
51937
51938         * modules/stdint (Files): Include m4/full-header-path.m4,
51939         m4/size_max.m4, m4/wchar_t.m4.
51940         (Makefile.am): Many more substitutions.
51941         * modules/stdint-tests: New file.
51942         * tests/test-stdint.c: New file.
51943
51944 2006-06-15  Bruno Haible  <bruno@clisp.org>
51945
51946         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51947         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51948         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51949         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51950         gl_CHECK_TYPE_SAME): New macros.
51951
51952 2006-06-15  Bruno Haible  <bruno@clisp.org>
51953
51954         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51955
51956 2006-06-15  Bruno Haible  <bruno@clisp.org>
51957
51958         * lib/stdint_.h: Rewritten to be fully auto-configured.
51959         Fixes bug on HP-UX/IA64.
51960
51961 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51962
51963         * lib/getdate.y (__attribute__): Don't define if already defined.
51964         Problem reported by Larry Jones.
51965         * lib/utimens.c (__attribute__): Likewise.
51966
51967 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51968
51969         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51970         reported by Andreas Schwab.
51971
51972 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51973             Bruno Haible  <bruno@clisp.org>
51974
51975         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51976         check for the declaration of strnlen and a run test that exposes the
51977         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51978         rpl_strndup.
51979
51980 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51981             Bruno Haible  <bruno@clisp.org>
51982
51983         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51984
51985 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51986
51987         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51988         compile test, for Tru64 4.0D.
51989
51990 2006-05-28  Karl Berry  <karl@gnu.org>
51991
51992         * config/srclist.txt (printf-args.c): lose sync.
51993
51994 2006-05-26  Martin Lambers  <marlam@marlam.de>
51995
51996         * lib/getpass.c: Updates the test for the native W32 API, and adds
51997         missing includes, thus fixing compilation warnings.
51998
51999 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52000
52001         * lib/exclude.c (exclude_fnmatch): New function.
52002         (excluded_file_name): Call exclude_fnmatch.
52003         * lib/exclude.h (excluded_file_name): New prototype
52004
52005 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
52006
52007         * lib/tempname.c (small_open, large_open): New macros.
52008         (__open, __open64) [!_LIBC]: Remove.
52009         (__gen_tempname): Use small_open and large_open instead of __open
52010         and __open64.  This fixes a portability bug on HP-UX 11.11i
52011         reported by Simon Wing-Tang in
52012         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
52013
52014 2006-05-24  Bruno Haible  <bruno@clisp.org>
52015
52016         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
52017         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
52018         Reported by Thorsten Maerz <torte@netztorte.de> via
52019         Aaron Stone <aaron@serendipity.cx>.
52020
52021 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52022
52023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
52024         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
52025         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
52026         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
52027         not really conditional on the cache.
52028         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
52029
52030 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52031
52032         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
52033         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
52034         (my_usleep): Don't mishandle maximum value.
52035
52036 2006-05-19  Jim Meyering  <jim@meyering.net>
52037
52038         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
52039
52040 2006-05-17  Bruno Haible  <bruno@clisp.org>
52041
52042         Cygwin portability.
52043         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
52044
52045 2006-05-17  Bruno Haible  <bruno@clisp.org>
52046
52047         * lib/stdint_.h: Fix recognition of Cygwin.
52048
52049 2006-05-15  Bruno Haible  <bruno@clisp.org>
52050
52051         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
52052         on libtool patch by Ralf Wildenhues.
52053
52054 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52055
52056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
52057         test for C99 conformance; (bool) 0.5 is an integer constant
52058         expression, but (bool) -0.5 is not.  Problem reported by Fedor
52059         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
52060
52061 2006-05-11  Simon Josefsson  <jas@extundo.com>
52062
52063         * m4/xvasprintf.m4: Fix obvious typo.
52064
52065 2006-05-11  Jim Meyering  <jim@meyering.net>
52066
52067         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
52068         James Lemley.
52069
52070 2006-05-10  Simon Josefsson  <jas@extundo.com>
52071
52072         * lib/md4.c: Typo fix, update copyright years.
52073         (K1, K2): Don't use L because it turn computations into 64-bit on
52074         64-bit platforms.
52075
52076 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
52079         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
52080         unwanted sign propagation, e.g., on hosts with 64-bit int.
52081         There still are some problems with reeelly weird theoretical hosts
52082         (e.g., 33-bit int) but it's not worth worrying about now.
52083         * lib/sha1.c (rol): Likewise.
52084         (K1, K2, K3, K4): Remove unnecessary L suffix.
52085
52086 2006-05-10  Bruno Haible  <bruno@clisp.org>
52087
52088         * lib/des.c: Cast to avoid warnings.
52089
52090 2006-05-09  Bruno Haible  <bruno@clisp.org>
52091
52092         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
52093         (Depends-on): Depend also on xsize, stdarg.
52094         (configure.ac): Add gl_XVASPRINTF.
52095
52096 2006-05-09  Bruno Haible  <bruno@clisp.org>
52097
52098         * m4/xvasprintf.m4: New file.
52099
52100 2006-05-09  Bruno Haible  <bruno@clisp.org>
52101
52102         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
52103         (EOVERFLOW): Define fallback value.
52104         (xstrcat): New function.
52105         (xvasprintf): Recognize the special case of a string concatenation.
52106
52107 2006-05-08  Eric Blake  <ebb9@byu.net>
52108
52109         * gnulib-tool (func_version): Base copyright year on CVS date.
52110         (func_emit_copyright_notice): New function.
52111         (func_emit_lib_Makefile_am): Use it.
52112         (func_emit_tests_Makefile_am): Likewise.
52113         (func_import): Likewise.
52114
52115 2006-05-08  Bruno Haible  <bruno@clisp.org>
52116
52117         * modules/stdarg: New file.
52118         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
52119
52120 2006-05-08  Bruno Haible  <bruno@clisp.org>
52121
52122         * m4/stdarg.m4: New file, from GNU gettext.
52123
52124 2006-05-08  Bruno Haible  <bruno@clisp.org>
52125
52126         * config/srclist.txt (build-aux/config.rpath): different from latest
52127         release.
52128
52129 2006-05-08  Bruno Haible  <bruno@clisp.org>
52130
52131         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
52132
52133 2006-05-05  Jim Meyering  <jim@meyering.net>
52134
52135         * m4/warning.m4: New file, derived from bison's file by the same name.
52136
52137 2006-05-03  Bruno Haible  <bruno@clisp.org>
52138
52139         * lib/stdint_.h: Shorter URL.
52140         * lib/inttypes.h: Likewise.
52141
52142 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52143
52144         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
52145
52146 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52147
52148         * lib/verify.h: Document the internals better.  Most of this change
52149         was written by Bruno Haible.
52150
52151 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         * doc/verify.texi: New file, partly based on a proposal by
52154         Bruno Haible.
52155
52156 2006-05-02  Bruno Haible  <bruno@clisp.org>
52157
52158         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52159         test from here...
52160         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52161
52162 2006-04-29  Bruno Haible  <bruno@clisp.org>
52163
52164         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52165         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52166
52167 2006-04-29  Bruno Haible  <bruno@clisp.org>
52168
52169         * gnulib-tool: Make --update option actually work.
52170
52171 2006-04-29  Bruno Haible  <bruno@clisp.org>
52172
52173         * doc/gcd.texi: New file.
52174         * doc/gnulib.texi: Include it.
52175
52176 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52177
52178         * lib/getdate.y (get_date): When adding relative date, start with the
52179         initial time, not with the result of the first mktime call.
52180
52181 2006-04-25  Bruno Haible  <bruno@clisp.org>
52182
52183         * gnulib-tool (func_import): Output the include directives in three
52184         blocks, sorted separately.
52185         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52186
52187 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52188
52189         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52190         to define main with arguments, for C++.  Reported by Eric Blake.
52191         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52192         Prefer 'int main ()' to 'int main (void)', for C++.
52193         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52194         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52195         for 'main', for C99 and C++.
52196
52197 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52198
52199         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52200         Don't assume that exit status -1 is valid.
52201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52202         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52203         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52204         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52205         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52206         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52207         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52208         functions can be used without declaring them, or that you can
52209         exit with status -1.
52210         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52211
52212 2006-04-24  Karl Berry  <karl@gnu.org>
52213
52214         * config/srclist.txt (longdouble.m4): sync lost.
52215
52216 2006-04-24  Eric Blake  <ebb9@byu.net>
52217
52218         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52219
52220 2006-04-24  Bruno Haible  <bruno@clisp.org>
52221
52222         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52223         poll() implementation in AIX.
52224         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52225
52226 2006-04-24  Bruno Haible  <bruno@clisp.org>
52227
52228         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52229         assigned exactly once.
52230
52231 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52232             Bruno Haible  <bruno@clisp.org>
52233
52234         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52235         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52236         for AM_CPPFLAGS.
52237
52238 2006-04-23  Bruno Haible  <bruno@clisp.org>
52239
52240         * modules/copy-file: Depend on unistd.
52241         * modules/execute: Likewise.
52242         * modules/fatal-signal: Likewise.
52243         * modules/findprog: Likewise.
52244         * modules/mkdtemp : Likewise.
52245         * modules/pipe: Likewise.
52246         * modules/wait-process: Likewise.
52247
52248 2006-04-23  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52251         condition was already detected.
52252         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52253
52254 2006-04-23  Bruno Haible  <bruno@clisp.org>
52255
52256         * lib/copy-file.c: Include <unistd.h> unconditionally.
52257         * lib/execute.c: Likewise.
52258         * lib/fatal-signal.c: Likewise.
52259         * lib/findprog.c: Likewise.
52260         * lib/mkdtemp.c: Likewise.
52261         * lib/pipe.h: Likewise.
52262         * lib/pipe.c: Likewise.
52263         * lib/wait-process.h: Likewise.
52264
52265 2006-04-23  Bruno Haible  <bruno@clisp.org>
52266
52267         * gnulib-tool (func_usage): Fix --import description. Document
52268         --update.
52269         (func_import): Create temporary file in a temporary directory, if
52270         --dry-run is specified. Silence errors from 'grep' when there are no
52271         m4 files in $m4dir.
52272         (func_create_testdir): Silence errors from 'grep' when there are no
52273         m4 files in $m4dir.
52274         Reported by Karl Berry <karl@freefriends.org>.
52275
52276 2006-04-20  Bruno Haible  <bruno@clisp.org>
52277
52278         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52279         one argument, so that the code will be portable to Autoconf 2.60.
52280         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52281         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52282         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52283
52284 2006-04-19  Derek Price  <derek@ximbiot.com>
52285             Eric Blake  <ebb9@byu.net>
52286
52287         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52288         rather than "/full/path.h".  Update comment to match.  Shorten &
52289         generalize m4_translit call via AS_TR_CPP.
52290
52291 2006-04-19  Derek Price  <derek@ximbiot.com>
52292             Eric Blake  <ebb9@byu.net>
52293
52294         * lib/inttypes.h: Correct grammar in comment.
52295
52296 2006-04-18  Derek Price  <derek@ximbiot.com>
52297             Paul Eggert  <eggert@cs.ucla.edu>
52298
52299         * modules/inttypes: New file.
52300         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52301
52302 2006-04-18  Derek Price  <derek@ximbiot.com>
52303             Paul Eggert  <eggert@cs.ucla.edu>
52304
52305         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52306         New files.
52307
52308 2006-04-18  Derek Price  <derek@ximbiot.com>
52309             Paul Eggert  <eggert@cs.ucla.edu>
52310
52311         * lib/inttypes.h: New file.
52312         * lib/strtoimax.c: Assume <inttypes.h>.
52313
52314 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52315
52316         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52317         isn't mounted.  Problem reported by Kir Kolyshkin.
52318
52319 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52320
52321         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52322         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52323         Derek R. Price.
52324         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52325         implementation.
52326
52327 2006-04-12  Eric Blake  <ebb9@byu.net>
52328
52329         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52330         is now done automatically by the corresponding Autoconf macro.
52331
52332 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52333
52334         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52335         time_r.h.
52336
52337 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52338
52339         Merge regex changes from libc, removing some of our
52340         POSIX-conformance changes that were rejected and redoing them in a
52341         less-intrusive way.
52342
52343         * lib/regcomp.c (re_compile_internal, init_dfa):
52344         Length arg is now size_t, not Idx.  All uses changed.
52345         (peek_token): Forward decl now says internal_function.
52346         (__re_error_msgid, __re_error_msgid_idx):
52347         Now static rather than extern with attribute_hidden.
52348         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52349         For some reason libc prefers K&R style defns for external functions.
52350         (regerror) [!defined _LIBC]: Likewise.
52351         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52352         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52353         (build_range_exp, build_collating_symbol):
52354         Use K&R-style defn.
52355         (re_compile_fastmap): Use '\0' to memset, not 0.
52356         (utf8_sb_map): Make the calculations more obvious.
52357         (init_dfa, parse_bracket_exp, build_charclass_op):
52358         Call calloc and cast result, as glibc does.
52359         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52360         (build_range_exp, build_collating_symbol):
52361         Now internal functions.
52362
52363         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52364
52365         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52366         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52367         Don't depend on VMS; depend on __VMS instead, for POSIX
52368         namespace cleanness.
52369         (regoff_t): Define to ssize_t, not long int.
52370
52371         Remove the REG_ macros named below.  Instead, make the old names
52372         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52373         __USE_GNU_REGEX.
52374         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52375         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52376         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52377         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52378         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52379         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52380         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52381         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52382         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52383         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52384         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52385         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52386         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52387         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52388         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52389         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52390         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52391         (REG_NREGS):
52392         Remove.  All uses replaced by the old RE_* names.
52393         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52394         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52395         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52396         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52397         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52398         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52399         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52400         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52401         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52402         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52403         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52404         Don't bother having these macros be independent of each others'
52405         values, since they no longer exist in the POSIX name space.
52406
52407         Rename the following member names back to their old names,
52408         unless !__USE_GNU_REGEX.  All uses changed back.
52409         (buffer): Renamed from re_buffer.
52410         (allocated): Renamed from re_allocated.
52411         (used): Renamed from re_used.
52412         (syntax): Renamed from re_syntax.
52413         (fastmap): Renamed from re_fastmap.
52414         (translate): Renamed from re_translate.
52415         (can_be_null): Renamed from re_can_be_null.
52416         (regs_allocated): Renamed from re_regs_allocated.
52417         (fastmap_accurate): Renamed from re_fastmap_accurate.
52418         (no_sub): Renamed from re_no_sub.
52419         (not_bol): Renamed from re_not_bol.
52420         (not_eol): Renamed from re_not_eol.
52421         (newline_anchor): Renamed from re_newline_anchor.
52422         (num_regs): Renamed from rm_num_regs.
52423         (start): Renamed from rm_start.
52424         (end): Renamed from rm_end.
52425
52426         (free_state): Move up a bit.
52427
52428         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52429         #define to be empty.
52430         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52431         when that is what is intended.
52432         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52433         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52434         (MAX): New macro.
52435         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52436         All uses changed back to re_malloc, etc.  It's now the caller's
52437         responsibility to check for overflow; all callers changed.
52438         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52439         (re_x2nrealloc): Remove.
52440         (free_state): Remove decl.
52441
52442         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52443         (re_set_registers, re_exec):
52444         Use K&R-style defn.
52445
52446         2006-01-31  Roland McGrath  <roland@redhat.com>
52447
52448         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52449         Reported by Mike Frysinger <vapier@gentoo.org>.
52450
52451         2006-01-15  Andreas Jaeger  <aj@suse.de>
52452
52453         [BZ #1950]
52454         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52455         build_wcs_upper_buffer change.
52456         (build_wcs_upper_buffer): Change return type.
52457
52458         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52459
52460         * lib/regex_internal.h: Include <stdint.h> if available.
52461
52462         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52463
52464         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52465
52466         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52467
52468         * lib/regcomp.c: Adjust for changed secondary hash function.
52469
52470         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52471
52472         * lib/regex.h: Pretty printing.
52473         Clean up namespace a bit.
52474
52475         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52476
52477         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52478         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52479
52480         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52481                     Ulrich Drepper  <drepper@redhat.com>
52482
52483         [BZ #1302]
52484         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52485         changed.
52486         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52487
52488         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52489
52490         [BZ #281]
52491         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52492         * lib/regcomp.c: Remove unnecessary uses of
52493         unsigned RE_TRANSLATE_TYPE.
52494         * lib/regex_internal.h: Likewise.
52495         * lib/regex_internal.c: Likewise.
52496         * lib/regexec.c: Likewise.
52497         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52498
52499         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52500
52501         * lib/regexec.c (find_recover_state): Remove unnecessary
52502         initialization.
52503         (transit_state_bkref): Make DFA a const pointer.
52504         (get_subexp): Likewise.
52505         (check_arrival): Likewise.
52506         (update_cur_sifted_state): Likewise.
52507         (re_search_internal): Likewise.
52508         (prune_impossible_nodes): Likewise.
52509         (acquire_init_state_context): Likewise.
52510         (proceed_next_node): Likewise.
52511         (set_regs): Likewise.
52512         (free_fail_stack_return): Likewise.
52513         (check_arrival_expand_ecl): Mark DFA parameter as const.
52514         (check_arrival_expand_ecl_sub): Likewise.
52515         (check_subexp_limits): Likewise.
52516         (sub_epsilon_src_nodes):  Likewise.
52517         (add_epsilon_src_nodes):  Likewise.
52518         (merge_state_array): Likewise.
52519         (update_regs): Likewise.
52520         (build_trtable): Likewise.
52521         (sift_states_backward): Mark MCTX parameter as const.
52522         (build_sifted_states): Likewise.
52523         (update_cur_sifted_state): Likewise.
52524         (sift_states_mkref): Likewise.
52525         (check_arrival_expand_ecl): Mark eclosure as const.
52526         (check_dst_limits_calc_pos_1): Likewise.
52527         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52528         pointer.
52529
52530         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52531
52532         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52533         (transit_state_sb): Likewise.
52534         (transit_state_mb): Likewise.
52535         (sift_states_iter_mb): Likewise.
52536         (check_arrival_add_next_nodes): Likewise.
52537         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52538         [_LIBC] (re_search_2_stub): Use mempcpy.
52539
52540         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52541         mbrtowc for very simple UTF-8 case.
52542
52543         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52544         a pointer-to-const.
52545         (re_acquire_state_context): Likewise.
52546         * lib/regex_internal.h: Adjust prototypes.
52547
52548         * lib/regex.c: Prevent using C++ compilers.
52549
52550         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52551         (re_acquire_state_context): Likewise.
52552
52553 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52554
52555         * modules/regex (Depends-on): Add ssize_t.
52556
52557 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52558
52559         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52560         translation table.
52561
52562 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52565
52566 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52567             Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52570         <sys/types.h> and <inttypes.h>.
52571
52572 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52573
52574         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52575         `__error_t_defined', so argp.h will not typedef the former.
52576
52577 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52578
52579         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52580         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52581         glibc names.  Even if glibc is changed to conform to POSIX, the
52582         traditional names will be available anyway, since regex depends on
52583         the extensions module.  Also, fix a longstanding typo in the
52584         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52585         reported by Emanuele Giaquinta.  Also, change sense of cached
52586         variable, so that the message makes sense.
52587
52588 2006-03-24  Simon Josefsson  <jas@extundo.com>
52589
52590         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52591         including some doc fixes.
52592         (base64_encode_alloc): Fix +1 bug on allocation failures.
52593
52594 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52595
52596         * lib/base64.c (base64_encode): Do not read past end of array with
52597         unsanitized input on systems with CHAR_BIT > 8.
52598
52599 2006-03-24  Eric Blake  <ebb9@byu.net>
52600
52601         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52602
52603 2006-03-22  Karl Berry  <karl@gnu.org>
52604
52605         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52606         * config/srclistvars.sh (COREUTILS): new var.
52607
52608 2006-03-17  Jim Meyering  <jim@meyering.net>
52609
52610         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52611         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52612
52613 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52614
52615         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52616         no longer needs it.  Instead, check that regoff_t is as least
52617         as wide as ptrdiff_t.
52618
52619         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52620         so that our regex.h stays compatible with the installed regex.
52621         This is helpful for installers who configure --without-included-regex.
52622         Problem reported by Emanuele Giaquinta.
52623
52624 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52625
52626         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52627         Typedef to long int, not to off_, as POSIX will likely change
52628         in that direction.
52629
52630 2006-03-15  Eric Blake  <ebb9@byu.net>
52631
52632         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52633
52634 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52635
52636         * lib/argp-help.c (validate_uparams): Fix typo
52637         * lib/argp-parse.c (argp_default_options): Consistently begin help
52638         messages with a lowercase letter.
52639
52640 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52641
52642         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52643         overrun buffers and shouldn't be used (much as gets shouldn't be
52644         used).
52645         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52646
52647 2006-03-08  Simon Josefsson  <jas@extundo.com>
52648
52649         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52650         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52651
52652 2006-03-08  Simon Josefsson  <jas@extundo.com>
52653
52654         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52655         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52656
52657 2006-03-08  Simon Josefsson  <jas@extundo.com>
52658
52659         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52660         signal that configure disabled the device.
52661
52662 2006-03-08  Simon Josefsson  <jas@extundo.com>
52663
52664         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52665         languages.
52666
52667 2006-03-07  Simon Josefsson  <jas@extundo.com>
52668
52669         * modules/getopt (Depends-on): Add unistd.
52670
52671         * modules/unistd: New file.
52672
52673 2006-03-07  Simon Josefsson  <jas@extundo.com>
52674
52675         * modules/gc-random: New file.
52676
52677 2006-03-07  Simon Josefsson  <jas@extundo.com>
52678
52679         * m4/unistd_h.m4: New file.
52680
52681 2006-03-07  Simon Josefsson  <jas@extundo.com>
52682
52683         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52684         test to be side-effect free by storing the result in the cache
52685         variable gl_cv_lib_readline, and moving the assignment of
52686         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52687         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52688
52689 2006-03-07  Simon Josefsson  <jas@extundo.com>
52690
52691         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52692         error on missing devices (the functions will return an error).
52693
52694         * m4/gc.m4: Move random stuff to gc-random.m4
52695
52696 2006-03-07  Simon Josefsson  <jas@extundo.com>
52697
52698         * lib/unistd_.h: New file.
52699
52700 2006-03-07  Simon Josefsson  <jas@extundo.com>
52701
52702         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52703
52704 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52705
52706         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52707         Problem reported by Juan Manuel Guerrero.
52708
52709 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52710
52711         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52712         the unistd module.
52713         * lib/getlogin_r.c: Likewise.
52714         * lib/getlogin_r.h: Likewise.
52715         * lib/glob.c: Likewise.
52716         * lib/pagealign_alloc.c: Likewise.
52717         * lib/unistd_.h: Remove; no longer needed.
52718
52719 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52720
52721         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52722         Add unistd.
52723         * modules/c-stack (Depends-on): Add unistd.
52724         * modules/getlogin_r: Likewise.
52725         * modules/glob: Likewise.
52726         * modules/pagealign_alloc: Likewise.
52727         * modules/unistd (Files): Remove lib/unistd_.h.
52728         (EXTRA_DIST): Remove.
52729         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52730         need unistd_.h.
52731         (MOSTLYCLEANFILES): Remove unistd.h-t.
52732
52733 2006-03-03  Simon Josefsson  <jas@extundo.com>
52734
52735         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52736
52737 2006-03-03  Simon Josefsson  <jas@extundo.com>
52738
52739         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52740         libidn and bison.
52741
52742 2006-03-03  Simon Josefsson  <jas@extundo.com>
52743
52744         * build-aux/maint.mk: Add indent target.
52745
52746 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52747
52748         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52749         our replacement poll.h in any case, to avoid a differing
52750         declaration from a system header.  Seen on AIX.
52751
52752 2006-03-01  Simon Josefsson  <jas@extundo.com>
52753
52754         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52755         <kasal@ucw.cz>.
52756
52757 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52758
52759         * modules/gettime (Depends-on): Add extensions module.
52760         * modules/nanosleep (Depends-on): Likewise.
52761         * modules/settime (Depends-on): Likewise.
52762
52763 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52764
52765         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52766         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52767         pedantically.
52768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52769         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52770
52771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52772         not "==".  Reported by Ralf Wildenhues.
52773
52774 2006-03-01  Karl Berry  <karl@gnu.org>
52775
52776         * doc/Copyright/request-*: new files, synced from gnuorg.
52777
52778 2006-03-01  Karl Berry  <karl@gnu.org>
52779
52780         * config/srclist.txt (Copyright/*): new entries.
52781
52782 2006-02-28  Simon Josefsson  <jas@extundo.com>
52783
52784         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52785
52786 2006-02-27  Simon Josefsson  <jas@extundo.com>
52787
52788         * lib/base64.h: Indent #define's.  From Jim Meyering
52789         <jim@meyering.net>.
52790
52791 2006-02-27  Jim Meyering  <jim@meyering.net>
52792
52793         Revert the change of 2006-02-24, so these files can continue
52794         to be sync'd from gettext.
52795         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52796         of `config.h'.
52797
52798 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52799
52800         * modules/intprops: New file.
52801         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52802         Add intprops.
52803         * modules/getloadavg (Files): Remove lib/intprops.h.
52804         (Depends-on): Add intprops.
52805         * modules/human: Likewise.
52806         * modules/inttostr: Likewise.
52807         * modules/openat: Likewise.
52808         * modules/sig2str: Likewise.
52809         * modules/userspec: Likewise.
52810         * modules/utimecmp: Likewise.
52811         * modules/xnanosleep: Likewise.
52812         * modules/xstrtol: Likewise.
52813
52814 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52815
52816         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52817         * modules/lock-tests (TESTS): Use $(EXEEXT).
52818         * modules/tls-tests: Likewise.
52819         * modules/argp-tests: Likewise.
52820         (check_PROGRAMS): New var, replacing...
52821         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52822
52823 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52824
52825         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52826         `config.h'.
52827
52828 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52829
52830         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52831
52832 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52833
52834         Sync from coreutils.
52835         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52836         gl_CHDIR_SAFER.
52837
52838 2006-02-22  Jim Meyering  <jim@meyering.net>
52839
52840         Sync from coreutils.
52841         * m4/chdir-safer.m4: New file.
52842
52843 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52844
52845         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52846         AT_FDCWD exceeds INT_MAX.
52847         * lib/openat.h (AT_FDCWD): Likewise.
52848
52849 2006-02-17  Eric Blake  <address@hidden>
52850
52851         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52852
52853 2006-02-16  Simon Josefsson  <jas@extundo.com>
52854
52855         * modules/getaddrinfo (Depends-on): Add sys_socket.
52856
52857 2006-02-15  Simon Josefsson  <jas@extundo.com>
52858
52859         * build-aux/maint.mk: Add dsyntax-check rule.
52860
52861 2006-02-15  Eric Blake  <ebb9@byu.net>
52862
52863         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52864         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52865         'present but cannot compile' warnings on cygwin.
52866         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52867         use ws2tcpip.h if sys/socket.h works.
52868         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52869         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52870
52871 2006-02-14  Simon Josefsson  <jas@extundo.com>
52872
52873         * modules/maintainer-makefile (Files): Rename.
52874
52875         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52876         and (the local) Makefile.cfg to maint-cfg.mk.
52877
52878         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52879         to the latter.
52880
52881         * modules/maintainer-makefile: New module.
52882
52883         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52884         severaly stripped to make it possible to build it up from scratch
52885         with reliable tests.
52886
52887         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52888         fixes to permit overriding the default actions when configure and
52889         makefile are not available.
52890
52891 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52892
52893         Sync from coreutils.
52894         * modules/lstat (Depends-on): Don't depend on xalloc.
52895         (License): Change from GPL to LGPL, since this is now simply a
52896         replacement for a libc function.
52897
52898 2006-02-14  Jim Meyering  <jim@meyering.net>
52899
52900         Sync from coreutils.
52901
52902         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52903         failure on deficient systems, and simplify gnulib lgpl dependencies.
52904         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52905         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52906
52907         * lib/xalloc-die.c: Remove unused definition of N_.
52908
52909 2006-02-14  Jim Meyering  <jim@meyering.net>
52910
52911         Sync from coreutils.
52912         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52913         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52914         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52915         double-quote uses of that variable, to accommodate the rare case in
52916         which getmntent is available in none of the libraries checked.  This
52917         happens at least on FreeBSD 5.0.
52918
52919 2006-02-13  Simon Josefsson  <jas@extundo.com>
52920
52921         * gnulib-tool (Usage): Fix --import, from
52922         karl@freefriends.org (Karl Berry).
52923
52924 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52925
52926         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52927
52928 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52929
52930         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52931         "autoupdate" on 2005-12-12.
52932
52933 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52934
52935         * modules/closeout (Depends-on): Remove atexit.
52936
52937 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52938
52939         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52940         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52941
52942 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52945         __EXTENSIONS__ if this causes compilation to fail.  Problem
52946         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52947         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52948
52949 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52950
52951         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52952         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52953         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52954         All uses changed.
52955
52956 2006-01-26  Simon Josefsson  <jas@extundo.com>
52957
52958         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52959         prototype is visible on mingw32.
52960
52961         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52962         for mingw32.
52963
52964         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52965         mingw32).
52966
52967 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52968
52969         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52970         attempt to open for write; this always fails, at least on POSIX
52971         hosts.  This reinstates the 2006-01-09 change, which was
52972         inadvertently removed.
52973
52974 2006-01-26  Bruno Haible  <bruno@clisp.org>
52975
52976         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52977         Reported by Paul Eggert.
52978
52979 2006-01-26  Bruno Haible  <bruno@clisp.org>
52980             Paul Eggert  <eggert@cs.ucla.edu>
52981
52982         * lib/stdbool_.h (_Bool)
52983         [(! (defined __cplusplus || defined __BEOS__)
52984           && !defined __GNUC__
52985           && !(defined __HP_cc || defined __xlc__
52986                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52987                || defined __sgi))]:
52988         #define to signed char in these cases too; this simplifies
52989         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52990         etc., separately) and makes it more conservative.
52991
52992 2006-01-25  Simon Josefsson  <jas@extundo.com>
52993
52994         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52995         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
52996         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
52997
52998 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52999
53000         * lib/argp-namefrob.h: Bugfix. Remove stray #
53001
53002 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53003
53004         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
53005         so that we test the test.
53006         Check for yet another HP-UX cc bug involving *bool |= bool.
53007
53008 2006-01-25  Karl Berry  <karl@gnu.org>
53009
53010         * config/srclist.txt (vasnprintf.c): sync lost.
53011
53012 2006-01-25  Jim Meyering  <jim@meyering.net>
53013
53014         Sync from the stable (b5) branch of coreutils:
53015
53016         * lib/fts.c (fts_children): Don't let close() clobber errno from
53017         failed fchdir().
53018
53019         * lib/fts.c (fts_stat): When following a symlink-to-directory,
53020         don't necessarily interpret stat-fails+lstat-succeeds as indicating
53021         a dangling symlink.  That can also happen at least for ELOOP.
53022         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
53023         FYI, this bug predates the inclusion of fts.c in coreutils.
53024
53025         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
53026         in their own block, so pre-c99 compilers don't object.
53027
53028         Avoid the double-free (first in fts_read, second in fts_close) that
53029         would occur when an `active' directory is made inaccessible (e.g.,
53030         via chmod a-x) during a traversal.
53031         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53032         before returning.  Reproduce this failure by
53033         mkdir -p a/b; cd a; chmod a-x . b
53034         Reported by Stavros Passas.
53035
53036 2006-01-25  Jim Meyering  <jim@meyering.net>
53037
53038         * lib/fileblocks.c: Remove more useless parentheses.
53039         * lib/readutmp.h: Likewise.
53040
53041 2006-01-25  Bruno Haible  <bruno@clisp.org>
53042
53043         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
53044         warnings.
53045         Reported by Paul Eggert.
53046
53047 2006-01-25  Bruno Haible  <bruno@clisp.org>
53048
53049         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
53050         rid of a trap command. For Solaris sh.
53051         Reported by Mark D. Baushke <mdb@gnu.org>.
53052
53053 2006-01-24  Simon Josefsson  <jas@extundo.com>
53054
53055         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
53056         Bruno.
53057
53058 2006-01-24  Karl Berry  <karl@gnu.org>
53059
53060         * config/srclist.txt (argp-namefrob.h): sync lost.
53061
53062 2006-01-24  Jim Meyering  <jim@meyering.net>
53063
53064         * modules/openat (Files): Add lib/intprops.h.
53065         From Mark D. Baushke.
53066
53067 2006-01-24  Jim Meyering  <jim@meyering.net>
53068
53069         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
53070         Reported by Mark D. Baushke.
53071
53072 2006-01-24  Jim Meyering  <jim@meyering.net>
53073
53074         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
53075
53076 2006-01-24  Bruno Haible  <bruno@clisp.org>
53077
53078         * modules/strnlen (Maintainer): Change from glibc to all.
53079
53080 2006-01-24  Bruno Haible  <bruno@clisp.org>
53081
53082         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
53083         Patch by Paul Eggert.
53084
53085 2006-01-24  Bruno Haible  <bruno@clisp.org>
53086
53087         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
53088         already has it.
53089         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
53090         2005-11-26.
53091
53092         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
53093         'signed char' to avoid problems with the built-in _Bool type.
53094         Reported by Paul Eggert on 2005-11-26.
53095
53096 2006-01-24  Bruno Haible  <bruno@clisp.org>
53097
53098         * gnulib-tool (func_import): Avoid constructing complicated sed
53099         expressions inside backquote.
53100         Report and solution by Mark D. Baushke <mdb@gnu.org>.
53101
53102 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
53103
53104         These changes imported from libc.
53105         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
53106         test and two separate function calls.
53107         * lib/strndup.c (__strndup): Add libc_hidden_def.
53108
53109 2006-01-23  Simon Josefsson  <jas@extundo.com>
53110
53111         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
53112         Remove the test_*_SOURCES variable: automake infers it by default.
53113         * modules/tls-tests: Likewise.
53114
53115 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53116
53117         Work around porting bugs reported by Dieter in
53118         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
53119         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
53120         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
53121         Include "getopt.h" first, to check interface.
53122         (getenv): Declare only if defined HAVE_DECL_GETENV &&
53123         !HAVE_DECL_GETENV.
53124         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
53125         (__strndup): Revert to K&R-style function dfns, the glibc style.
53126         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
53127         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
53128         Include strnlen.h first, to get prototype properly.
53129         (strnlen): Renamed from __strnlen.
53130         Remove weak alias.
53131
53132 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53133
53134         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
53135
53136 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53137
53138         * config/srclist.txt: Adjust to reflect glibc reorganization.
53139         This affects only comments.
53140
53141 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53142
53143          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
53144          Reported by Bruce Korb <bkorb@gnu.org>.
53145
53146 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53147
53148         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
53149         to pacify gcc -Wswitch-default.
53150
53151 2006-01-22  Bruno Haible  <bruno@clisp.org>
53152
53153         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
53154         temporary buffer for sprintf, take into account the precision also
53155         for 'd', 'i', 'u', 'o', 'x', 'X'.
53156
53157 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53158
53159         * modules/argp-tests: New module
53160         * tests/test-argp.c: New file
53161         * tests/test-argp-2.sh: New file
53162
53163 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53164
53165         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53166         (__argp_base_name): Removed
53167         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53168         typo.
53169         (__argp_base_name): Provide macro definition or extern declaration
53170         depending on the configuration
53171
53172 2006-01-20  Simon Josefsson  <jas@extundo.com>
53173
53174         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53175
53176 2006-01-20  Simon Josefsson  <jas@extundo.com>
53177
53178         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53179
53180 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53181
53182         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53183         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53184         Suggested by Bruno Haible.
53185
53186 2006-01-20  Karl Berry  <karl@gnu.org>
53187
53188         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53189         until changes propagate, I guess.
53190
53191 2006-01-19  Simon Josefsson  <jas@extundo.com>
53192
53193         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53194
53195 2006-01-19  Simon Josefsson  <jas@extundo.com>
53196
53197         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53198
53199 2006-01-19  Simon Josefsson  <jas@extundo.com>
53200
53201         * gnulib-tool: Set check_PROGRAMS.
53202
53203         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53204         modules/des-tests, modules/gc-arcfour-tests,
53205         modules/gc-arctwo-tests, modules/gc-des-tests,
53206         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53207         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53208         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53209         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53210         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53211         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53212         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53213         test_*_SOURCES.
53214
53215 2006-01-18  Simon Josefsson  <jas@extundo.com>
53216
53217         * modules/socklen (Depends-on): Depend on sys_socket.
53218
53219 2006-01-18  Simon Josefsson  <jas@extundo.com>
53220
53221         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53222         modules/des-tests, modules/gc-arcfour-tests,
53223         modules/gc-arctwo-tests, modules/gc-des-tests,
53224         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53225         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53226         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53227         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53228         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53229         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53230         $(EXEEXT) to automake TESTS variable, for mingw32.
53231
53232 2006-01-17  Simon Josefsson  <jas@extundo.com>
53233
53234         * modules/socklen (Include): Need sys/socket.h.
53235
53236 2006-01-17  Bruno Haible  <bruno@clisp.org>
53237
53238         * modules/ssize_t (Include): Add <sys/types.h>.
53239
53240 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53241
53242         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53243         it's not portable and it doesn't work with cross-compiles.
53244         Problem reported by Bruno Haible.  Fix missing-$ typo in
53245         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53246         -zignore from being used with Sun's C compiler.
53247
53248 2006-01-12  Simon Josefsson  <jas@extundo.com>
53249
53250         * lib/base64.c: Fix warning, reported by Bruno Haible
53251         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53252
53253 2006-01-12  Bruno Haible  <bruno@clisp.org>
53254
53255         * modules/ldd: New file.
53256         * build-aux/ldd.sh.in: New file.
53257         * MODULES.html.sh (Support for building libraries and executables): Add
53258         ldd.
53259
53260 2006-01-12  Bruno Haible  <bruno@clisp.org>
53261
53262         * m4/ldd.m4: New file.
53263
53264 2006-01-12  Bruno Haible  <bruno@clisp.org>
53265
53266         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53267         endless loop while replacing $auxdir with build-aux.
53268
53269 2006-01-11  Simon Josefsson  <jas@extundo.com>
53270
53271         * lib/stdint_.h (SIZE_MAX): Add missing (.
53272
53273 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53274
53275         Sync from coreutils.
53276         * lib/md5.c: Fix commentary typos.
53277         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53278         * lib/md5.h (__attribute__): Remove; unused.
53279         * lib/sha1.c: Fix commentary to match md5 better.
53280         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53281         so that we don't need to worry about alignment.  All uses changed.
53282         This merges the 2005-10-28 md5 change into sha1.
53283
53284 2006-01-11  Jim Meyering  <jim@meyering.net>
53285
53286         Sync from coreutils.
53287         * lib/md5.c (OP): Fix spacing.
53288
53289 2006-01-11  Bruno Haible  <bruno@clisp.org>
53290
53291         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53292         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53293         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53294
53295 2006-01-11  Bruno Haible  <bruno@clisp.org>
53296
53297         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53298         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53299         the "early" section as well.
53300
53301 2006-01-11  Bruno Haible  <bruno@clisp.org>
53302
53303         Avoid "ar: no archive members specified" error on MacOS X.
53304         * gnulib-tool (func_modules_add_dummy): New function.
53305         (func_import, func_create_testdir): Invoke it.
53306
53307 2006-01-11  Bruno Haible  <bruno@clisp.org>
53308
53309         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53310         with $auxdir in AC_CONFIG_FILES statements.
53311
53312 2006-01-11  Bruno Haible  <bruno@clisp.org>
53313
53314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53315         Initialize also noinst_HEADERS to empty.
53316
53317 2006-01-11  Bruno Haible  <bruno@clisp.org>
53318
53319         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53320         variables.
53321         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53322         autoreconf.
53323
53324 2006-01-11  Bruno Haible  <bruno@clisp.org>
53325
53326         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53327         overridable by the user.
53328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53329
53330 2006-01-10  Simon Josefsson  <jas@extundo.com>
53331
53332         * modules/sys_socket: New file.
53333
53334 2006-01-10  Simon Josefsson  <jas@extundo.com>
53335
53336         * m4/sys_socket_h.m4: New file.
53337
53338 2006-01-10  Simon Josefsson  <jas@extundo.com>
53339
53340         * lib/socket_.h: New file.
53341
53342 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53343
53344         * modules/readutmp (Maintainer): Add myself.
53345
53346 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53347
53348         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53349         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53350         People who are still concerned with buggy memcmp implementations
53351         can invoke gl_FUNC_MEMCMP themselves.
53352
53353 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53354
53355         * lib/regex_internal.h (BITSET_WORD_BITS):
53356         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53357         preprocessor mishandles large unsigned values as if they were signed.
53358         Problem reported by Claudio Fontana in
53359         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53360
53361 2006-01-10  Jim Meyering  <jim@meyering.net>
53362
53363         Avoid the double-free (first in fts_read, second in fts_close) that
53364         would occur when an `active' directory is made inaccessible (e.g.,
53365         via chmod a-x) during a traversal.
53366         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53367         before returning.  Reproduce this failure by
53368         mkdir -p a/b; cd a; chmod a-x . b
53369         Reported by Stavros Passas.
53370
53371         Sync from coreutils.
53372         * lib/sha1.c: Tweak grammar in a comment.
53373
53374 2006-01-10  Jim Meyering  <jim@meyering.net>
53375
53376         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53377         Patch by Joerg Sonnenberger.
53378
53379 2006-01-10  Bruno Haible  <bruno@clisp.org>
53380
53381         * modules/readutmp: Depend on module free.
53382         * modules/strtok_r: Depend on module restrict.
53383
53384 2006-01-10  Bruno Haible  <bruno@clisp.org>
53385
53386         * modules/gettext (configure.ac): Add an invocation of
53387         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53388
53389 2006-01-10  Bruno Haible  <bruno@clisp.org>
53390
53391         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53392         Reported by Werner Lemberg <wl@gnu.org>.
53393
53394 2006-01-10  Bruno Haible  <bruno@clisp.org>
53395
53396         * lib/localcharset.c: Update from GNU gettext.
53397
53398 2006-01-10  Bruno Haible  <bruno@clisp.org>
53399
53400         * lib/argp.h (__const): Remove macro. Use const instead.
53401         * lib/argp-fmtstream.h (__const): Likewise.
53402         * lib/glob_.h (__const): Remove macro.
53403         * lib/glob-libc.h: Use const instead of __const.
53404
53405 2006-01-10  Bruno Haible  <bruno@clisp.org>
53406
53407         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53408         variable.
53409         Needed to avoid an automake error regarding the 'gettext' module.
53410
53411 2006-01-09  Simon Josefsson  <jas@extundo.com>
53412
53413         * modules/inet_ntop (Depends-on): Add restrict.
53414
53415 2006-01-09  Simon Josefsson  <jas@extundo.com>
53416
53417         * modules/gc-rijndael-tests (License): Put under LGPL.
53418
53419         * modules/gc-des-tests (License): Likewise.
53420
53421         * modules/gc-arcfour-tests (License): Likewise.
53422
53423         * modules/gc-arctwo-tests (License): Likewise.
53424
53425         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53426
53427         * modules/gc-hmac-sha1-tests (Files): Likewise.
53428
53429         * modules/gc-hmac-md5-tests (License): Likewise.
53430
53431         * modules/gc-sha1-tests (License): Likewise.
53432
53433         * modules/gc-md5-tests (License): Likewise.
53434
53435         * modules/gc-md4-tests (License): Likewise.
53436
53437         * modules/gc-md2-tests (License): Likewise.
53438
53439         * modules/gc-tests (License): Likewise.
53440
53441         * modules/des-tests (License): Likewise.
53442
53443         * modules/md4-tests (License): Likewise.
53444
53445         * modules/md2-tests (License): Likewise.
53446
53447 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53448
53449         Sync from coreutils:
53450
53451         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53452         * modules/lib-ignore: New file.
53453         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53454         chdir-safer.m4, lchmod.m4.
53455         * modules/openat: Add mkdirat.c, openat-priv.h.
53456
53457 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53458
53459         Sync from coreutils.
53460         * m4/lib-ignore.m4: New file.
53461         * m4/lchmod.m4: New file.
53462
53463 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         Sync from coreutils.
53466         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53467         for write access: POSIX says that must fail.
53468         * lib/fts.c (diropen): Likewise.
53469         * lib/save-cwd.c (save_cwd): Likewise.
53470         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53471         well, for minor improvements on hosts that lack O_DIRECTORY.
53472         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53473         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53474         Fall back on chown if open failed with EACCES.
53475
53476         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53477         Report an error at compile-time if only a 1-second nominal clock
53478         resolution is found.
53479
53480         * lib/lchmod.h: New file.
53481         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53482         (make_dir_parents): Use lchown rather than chown, and
53483         lchmod rather than chmod.
53484
53485         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53486         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53487         "proc" reported by n0dalus.
53488
53489         * lib/mountlist.c: Include <limits.h>.
53490         (dev_from_mount_options)
53491         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53492         New function.  It no longer assumes "dev=" has the System V meaning
53493         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53494         (read_file_system_list)
53495         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53496         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53497         dev= in that case.
53498
53499         * lib/posixtm.h (PDS_PRE_2000): New macro.
53500         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53501         allow_century.  All usages changed.  Reject dates outside the range
53502         1969-1999 if PDS_PRE_2000 is used.
53503
53504 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53505
53506         Sync from coreutils.
53507         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53508         (Time of day items): Mention the possibility of leap seconds.
53509         Problem reported by Dr. David Alan Gilbert.
53510
53511 2006-01-09  Jim Meyering  <jim@meyering.net>
53512
53513         Sync from coreutils.
53514
53515         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53516
53517         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53518
53519         * lib/modechange.c (mode_compile): Reject an invalid mode string
53520         that starts with an octal digit.  From Andreas Gruenbacher.
53521
53522         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53523         and dup to open_safer and dup_safer, respectively.
53524         (openat_permissive): Fix typo in comment.
53525
53526         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53527         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53528         (_): Remove; no longer needed.
53529         (openat): Renamed from rpl_openat; no need for rpl_openat
53530         since openat.h renames openat for us.
53531         Replace most of the body with a call to openat_permissive,
53532         to avoid duplicate code.
53533         Port to (probably hypothetical) environments were mode_t is
53534         wider than int.
53535         (openat_permissive): Require mode arg, so that we can check
53536         types better.  Put it just after flags.  Change cwd failure
53537         indicator from pointer-to-bool to pointer-to-errno-value.
53538         All callers changed.
53539         Invoke openat_save_fail and/or openat_restore_fail if
53540         cwd_errno is null, so that openat can call us.
53541         (openat_permissive, fdopendir, fstatat, unlinkat):
53542         Simplify errno handling to avoid some duplicate code,
53543         as it's OK to set errno on success.
53544         * lib/openat.h: Revamp code so that function macros depend on
53545         __OPENAT_PREFIX only, not also on AT_FDCWD.
53546         (openat_ro): Remove.  Caller changed to use openat_permissive.
53547         (openat_permissive): Now a macro, if not a function.
53548         (openat_restore_fail, openat_save_fail): Now always functions,
53549         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53550
53551         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53552         and openat.c.
53553         * lib/mkdirat.c: Include openat-priv.h.
53554         Remove definitions of macros defined therein.
53555         * lib/openat.c: Likewise.
53556
53557         * lib/mkdirat.c (mkdirat): New file and function.
53558         * lib/openat.h (mkdirat): Declare.
53559
53560         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53561
53562         * lib/openat.h (openat_permissive): Declare.
53563         (openat_ro): Define.
53564
53565         * lib/openat.c (EXPECTED_ERRNO): New macro.
53566         (openat_permissive): New function -- used in remove.c rewrite.
53567         (all functions): Set errno just before returning, only if there
53568         was an actual failure.
53569         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53570
53571         Emulate openat-family functions using Linux's procfs, if possible.
53572         Idea and some code based on Ulrich Drepper's glibc changes.
53573
53574         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53575         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53576         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53577         before falling back on save_cwd and restore_cwd.
53578         (fdopendir, fstatat, unlinkat): Likewise.
53579
53580         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53581         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53582
53583         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53584         as second argument to va_arg.  Otherwise, some versions of gcc
53585         warn that `if this code is reached, the program will abort'.
53586
53587 2006-01-09  Jim Meyering  <jim@meyering.net>
53588
53589         Sync from coreutils.
53590         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53591         Require openat-priv.h.
53592
53593 2006-01-09  Bruno Haible  <bruno@clisp.org>
53594
53595         * modules/strnlen (Include): Use strnlen.h.
53596
53597 2006-01-09  Bruno Haible  <bruno@clisp.org>
53598
53599         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53600
53601 2006-01-09  Bruno Haible  <bruno@clisp.org>
53602
53603         * lib/sysexit_.h (EX_OK): New macro.
53604         Suggested by Martin Lambers <marlam@marlam.de>.
53605
53606 2006-01-09  Bruno Haible  <bruno@clisp.org>
53607
53608         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53609         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53610
53611 2006-01-09  Bruno Haible  <bruno@clisp.org>
53612
53613         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53614         numbers.
53615
53616 2006-01-09  Bruno Haible  <bruno@clisp.org>
53617
53618         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53619         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53620         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53621         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53622
53623 2006-01-09  Bruno Haible  <bruno@clisp.org>
53624
53625         * build-aux/javacomp.sh.in: New file, moved from lib/.
53626         * modules/javacomp-script (Files): Update.
53627         (configure.ac): Add AC_CONFIG_FILES invocation.
53628         (EXTRA_DIST): Remove variable.
53629
53630         * build-aux/javaexec.sh.in: New file, moved from lib/.
53631         * modules/javaexec (Files): Update.
53632         (configure.ac): Add AC_CONFIG_FILES invocation.
53633         (EXTRA_DIST): Remove javaexec.sh.in.
53634
53635         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53636         * modules/csharpcomp-script (Files): Update.
53637         (configure.ac): Add AC_CONFIG_FILES invocation.
53638         (EXTRA_DIST): Remove variable.
53639
53640         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53641         * modules/csharpexec (Files): Update.
53642         (configure.ac): Add AC_CONFIG_FILES invocation.
53643         (EXTRA_DIST): Remove csharpexec.sh.in.
53644
53645 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53646
53647         Sync from coreutils.
53648
53649         Add POSIX ACL support
53650         * lib/acl.h (copy_acl, set_acl): Add declarations.
53651         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53652         systems other than Linux.
53653         (chmod_or_fchmod): New function: use fchmod when possible,
53654         and chmod otherwise.
53655         (file_has_acl): Add a POSIX ACL implementation, with a
53656         Linux-specific subcase.
53657         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53658         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53659         acls are unsupported.
53660         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53661         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53662         are unsupported.
53663
53664 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53665
53666         Sync from coreutils.
53667         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53668
53669 2006-01-07  Bruno Haible  <bruno@clisp.org>
53670
53671         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53672         gl_EARLY.
53673
53674 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53677         Problem reported for Mingw by Mark Junker.
53678
53679 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * README: Gnulib normally doesn't generate a tarball.
53682
53683 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53684
53685         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53686         long int, not int, for nanosecond counts, so that people who are
53687         used to POSIX struct timespec won't be surprised.  Reported by Jim
53688         Meyering.
53689
53690 2005-12-28  Bruno Haible  <bruno@clisp.org>
53691
53692         * build-aux/config.rpath: Update from GNU gettext.
53693
53694 2005-12-16  Jim Meyering  <jim@meyering.net>
53695
53696         * modules/fprintftime: New module.
53697         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53698
53699 2005-12-16  Jim Meyering  <jim@meyering.net>
53700
53701         * m4/fprintftime.m4: New file.
53702
53703 2005-12-16  Jim Meyering  <jim@meyering.net>
53704
53705         * lib/fprintftime.c, lib/fprintftime.h: New files.
53706
53707 2005-12-15  Simon Josefsson  <jas@extundo.com>
53708
53709         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53710         new m4/socklen.m4.
53711
53712 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53713
53714         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53715         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53716
53717 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53718
53719         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53720         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53721         struct uparams is valid. Fall back to the default values if it is
53722         not.
53723
53724 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53725
53726         * modules/argp (Files): Add argp-pin.c
53727         (Depends-on): dirname
53728         (lib_SOURCES): Add argp-pin.c
53729
53730 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53731
53732         * m4/argp.m4:  Check if program_invocation_name and
53733         program_invocation_short_name are declared and define appropriate
53734         macros if they are not.
53735
53736 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53737
53738         * lib/argp-help.c (__argp_base_name): New function
53739         (__argp_short_program_name): Rewrite using __argp_base_name
53740         * lib/argp-namefrob.h: Define program_invocation_name and
53741         program_invocation_short_name if requested
53742         (__argp_base_name): Add prototype
53743         * lib/argp-parse.c (argp_def): Use gettext wrappers
53744         (argp_default_parser): Use __argp_base_name
53745         * lib/argp-pin.c: New file. Defines program_invocation_name and
53746         program_invocation_short_name on systems that lack them.
53747
53748 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53749
53750         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53751         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53752         porting problem reported by Georg Schwarz in
53753         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53754
53755 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53756
53757         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53758         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53759         porting problem reported by Georg Schwarz in
53760         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53761
53762 2005-12-05  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53765         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53766         Reported by Mark Junker <mjscod@gmx.de>.
53767
53768 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53769
53770         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53771         Use implementation from Albert Chin, with some
53772         comments/corrections by Stepan Kasal and myself.
53773
53774 2005-12-02  Bruno Haible  <bruno@clisp.org>
53775
53776         * gnulib-tool (func_import): Accept GPLed build tool modules when
53777         --lgpl is given.
53778         * modules/csharpcomp-script: New file.
53779         * modules/csharpcomp: Depend on it.
53780         * modules/javacomp-script: New file.
53781         * modules/javacomp: Depend on it.
53782         Suggested by Simon Josefsson.
53783
53784 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53785
53786         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53787         statement, to work around an HP-UX 10.20 compiler bug reported by
53788         Peter O'Gorman.
53789
53790 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53791
53792         * modules/savedir (Depends-on): Add openat.
53793
53794 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53795
53796         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53797         (uintmax_t) [defined uintmax_t]: Do not declare.
53798         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53799         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53800         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53801         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53802         sake of portability to weird hosts that C allows (though we don't
53803         know of any practical examples).
53804
53805         * lib/savedir.h (fdsavedir): New decl.
53806         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53807         contains most of the former guts of savedir.
53808         (savedir): Use savedirstream.
53809         Include "openat.h".
53810
53811 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53812
53813         * modules/obstack (Files): Add m4/ulonglong.m4.
53814         Problem reported by Davide Angelocola.
53815
53816 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53817
53818         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53819         coreutils no longer futzes with rounding modes.
53820
53821 2005-11-14  Jim Meyering  <jim@meyering.net>
53822
53823         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53824         replacement of mkstemp.
53825
53826 2005-11-10  Simon Josefsson  <jas@extundo.com>
53827
53828         * lib/readline.c: Remove EOL.
53829
53830 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53831
53832         * modules/gethrxtime (Depends-on): Add gettime.
53833
53834 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53835
53836         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53837         or gettimeofday; no longer needed.
53838
53839 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53840
53841         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53842         time business.
53843         (gethrxtime) [! (HAVE_NANOUPTIME
53844         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53845         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53846         our own approximation.
53847
53848 2005-11-08  Eric Blake  <ebb9@byu.net>
53849
53850         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53851
53852 2005-11-08  Eric Blake  <ebb9@byu.net>
53853
53854         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53855
53856 2005-11-04  Bruno Haible  <bruno@clisp.org>
53857
53858         * gnulib-tool: Implement --update mode.
53859
53860 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         Fix porting problem reported by Theodoros V. Kalamatianos.
53863         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53864         Don't assume that futimes failing means we must fail.
53865
53866 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53867
53868         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53869         variables to suggest the intended function of the PATH_MAX check.
53870
53871 2005-10-30  Kean Johnston  <jkj@sco.com>
53872
53873         Trivial changes to support SCO systems.
53874         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53875         as PATH_MAX.
53876         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53877         where __ptr is null when no I/O is pending.
53878
53879 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53880
53881         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53882         leave errno alone.  Problem reported by Dmitry V. Levin.
53883
53884 2005-10-28  Simon Josefsson  <jas@extundo.com>
53885
53886         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53887         Test more.
53888
53889         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53890
53891         * modules/md2, modules/md2-tests: New files.
53892
53893 2005-10-28  Simon Josefsson  <jas@extundo.com>
53894
53895         * m4/inet_ntop.m4: More tests.
53896
53897         * m4/gc-md2.m4, md2.m4: New file.
53898
53899 2005-10-28  Simon Josefsson  <jas@extundo.com>
53900
53901         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53902         "restrict" keywords, as per POSIX.  Protect the function
53903         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53904         Don't use K&R prototypes.  Check the sprintf return values.
53905         Re-define EAFNOSUPPORT if not present.  Indent.
53906
53907         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53908         suggested by Bruno Haible <bruno@clisp.org>.
53909
53910         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53911
53912         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53913
53914         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53915         libgcrypt).
53916
53917         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53918
53919         * lib/md2.h, lib/md2.c: New files.
53920
53921 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53922
53923         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53924         errno alone.  Problem reported by Frederic Jolliton.
53925
53926 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53927
53928         * modules/verify (License): Change from GPL to LGPL.  This is a
53929         tiny module and there are apparently near-equivalents that are
53930         under the BSD license.
53931
53932 2005-10-24  Simon Josefsson  <jas@extundo.com>
53933
53934         * modules/sha1: Relicense to LGPL.
53935
53936 2005-10-24  Simon Josefsson  <jas@extundo.com>
53937
53938         * lib/md4.h: Shrink buffer size, now that we changed the type.
53939
53940 2005-10-23  Simon Josefsson  <jas@extundo.com>
53941
53942         * gnulib-tool (func_import): Fix --tests-base.
53943
53944 2005-10-22  Simon Josefsson  <jas@extundo.com>
53945
53946         * modules/arcfour (Depends-on): Need stdint.
53947
53948 2005-10-22  Simon Josefsson  <jas@extundo.com>
53949
53950         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53951         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53952
53953 2005-10-22  Simon Josefsson  <jas@extundo.com>
53954
53955         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53956         suggested by Bruno Haible <bruno@clisp.org>.
53957
53958 2005-10-22  Simon Josefsson  <jas@extundo.com>
53959
53960         * lib/crc.h: Include stddef.h, for size_t.
53961
53962 2005-10-22  Simon Josefsson  <jas@extundo.com>
53963
53964         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53965         arcfour_context struct (simplify test vector testing in GNU
53966         Shishi).
53967
53968 2005-10-21  Simon Josefsson  <jas@extundo.com>
53969
53970         * modules/des, modules/des-tests: New files.
53971
53972         * modules/gc-des, modules/gc-des-tests: New files.
53973
53974         * tests/test-des.c, tests/test-gc-des.c: New file.
53975
53976 2005-10-21  Simon Josefsson  <jas@extundo.com>
53977
53978         * modules/arctwo, modules/arctwo-tests: New files.
53979
53980         * tests/test-arctwo.c: New file.
53981
53982         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53983
53984         * tests/test-gc-arctwo.c: New file.
53985
53986 2005-10-21  Simon Josefsson  <jas@extundo.com>
53987
53988         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53989         Bruno Haible <bruno@clisp.org>.
53990
53991         * m4/gc-des.m4: New file.
53992
53993 2005-10-21  Simon Josefsson  <jas@extundo.com>
53994
53995         * m4/arctwo.m4: New file.
53996
53997         * m4/gc-arctwo.m4: New file.
53998
53999 2005-10-21  Simon Josefsson  <jas@extundo.com>
54000
54001         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
54002         block.
54003
54004 2005-10-21  Simon Josefsson  <jas@extundo.com>
54005
54006         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
54007         <bruno@clisp.org>.
54008
54009         * lib/hmac-sha1.c (hmac_sha1): Likewise.
54010
54011         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
54012         Bruno Haible <bruno@clisp.org>.
54013
54014         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
54015         <bruno@clisp.org>.
54016
54017 2005-10-21  Simon Josefsson  <jas@extundo.com>
54018
54019         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
54020
54021 2005-10-21  Simon Josefsson  <jas@extundo.com>
54022
54023         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
54024
54025 2005-10-21  Simon Josefsson  <jas@extundo.com>
54026
54027         * lib/des.h, lib/des.c: New files.
54028
54029         * lib/gc-gnulib.c: Support DES.c
54030
54031 2005-10-21  Simon Josefsson  <jas@extundo.com>
54032
54033         * lib/arctwo.h, lib/arctwo.c: New files.
54034
54035         * lib/gc-gnulib.c: Support ARCTWO.
54036
54037 2005-10-21  Simon Josefsson  <jas@extundo.com>
54038
54039         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
54040         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54041
54042 2005-10-21  Simon Josefsson  <jas@extundo.com>
54043
54044         * gnulib-tool (func_import, func_create_testdir): Define automake
54045         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
54046         Makefile.am snippet),
54047         suggested by Bruno Haible <bruno@clisp.org>.
54048
54049         * modules/gc (Makefile.am): Use it.
54050
54051 2005-10-21  Bruno Haible  <bruno@clisp.org>
54052
54053         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
54054         patch.
54055
54056 2005-10-19  Simon Josefsson  <jas@extundo.com>
54057
54058         * tests/test-gc-rijndael.c: New file.
54059
54060         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
54061
54062 2005-10-19  Simon Josefsson  <jas@extundo.com>
54063
54064         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
54065         interface too.
54066
54067 2005-10-19  Simon Josefsson  <jas@extundo.com>
54068
54069         * tests/test-gc-arcfour.c: New file.
54070
54071         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
54072
54073 2005-10-19  Simon Josefsson  <jas@extundo.com>
54074
54075         * modules/gc-md4, modules/gc-md4-tests: New file.
54076
54077         * tests/test-gc-md4.c: New file.
54078
54079 2005-10-19  Simon Josefsson  <jas@extundo.com>
54080
54081         * m4/gc-md4.m4: New file.
54082
54083 2005-10-19  Simon Josefsson  <jas@extundo.com>
54084
54085         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
54086         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
54087         <kasal@ucw.cz>.
54088
54089 2005-10-19  Simon Josefsson  <jas@extundo.com>
54090
54091         * m4/gc-arcfour.m4: New file.
54092
54093         * m4/gc-rijndael.m4: New file.
54094
54095 2005-10-19  Simon Josefsson  <jas@extundo.com>
54096
54097         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
54098
54099 2005-10-19  Simon Josefsson  <jas@extundo.com>
54100
54101         * lib/gc-gnulib.c: Support ARCFOUR.
54102
54103 2005-10-19  Simon Josefsson  <jas@extundo.com>
54104
54105         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
54106         support.
54107
54108         * lib/gc.h: Add ECB enum type.
54109
54110         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
54111
54112 2005-10-18  Simon Josefsson  <jas@extundo.com>
54113
54114         * tests/test-md5.c: New file.
54115
54116         * modules/md5-tests: New file.
54117
54118 2005-10-18  Simon Josefsson  <jas@extundo.com>
54119
54120         * tests/test-md4.c: New file.
54121
54122         * modules/md4, modules/md4-tests: New files.
54123
54124 2005-10-18  Simon Josefsson  <jas@extundo.com>
54125
54126         * m4/md4.m4: New file.
54127
54128 2005-10-18  Simon Josefsson  <jas@extundo.com>
54129
54130         * lib/md4.h, lib/md4.c: New files, based on md5.?.
54131
54132 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
54133
54134         * gnulib-tool (func_create_testdir): Omit the second check whether
54135         BUILT_SOURCES in nonempty.
54136
54137 2005-10-17  Simon Josefsson  <jas@extundo.com>
54138
54139         * tests/test-rijndael.c: New file.
54140
54141 2005-10-17  Simon Josefsson  <jas@extundo.com>
54142
54143         * modules/sha1: Depend on stdint instead of md5.
54144
54145         * modules/md5: Depend on stdint, remove uint32_t.
54146
54147 2005-10-17  Simon Josefsson  <jas@extundo.com>
54148
54149         * modules/gc-sha1-tests: New file.
54150
54151         * tests/test-gc-sha1.c: New file.
54152
54153 2005-10-17  Simon Josefsson  <jas@extundo.com>
54154
54155         * m4/md5.m4: Remove call to uint32_t.m4.
54156
54157 2005-10-17  Simon Josefsson  <jas@extundo.com>
54158
54159         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54160
54161         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54162         md5.h.
54163
54164         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54165
54166         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54167
54168 2005-10-17  Simon Josefsson  <jas@extundo.com>
54169
54170         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54171
54172 2005-10-17  Simon Josefsson  <jas@extundo.com>
54173
54174         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54175
54176 2005-10-17  Simon Josefsson  <jas@extundo.com>
54177
54178         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54179
54180         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54181
54182 2005-10-17  Bruno Haible  <bruno@clisp.org>
54183
54184         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54185         that it can also be used in a test.
54186
54187 2005-10-16  Bruno Haible  <bruno@clisp.org>
54188
54189         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54190         TESTS_ENVIRONMENT, so that individual tests can augment it.
54191
54192         * gnulib-tool (func_create_testdir): Use an intermediate target for
54193         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54194         macros, like $(ALLOCA_H), which cannot be passed through the command
54195         line.
54196
54197 2005-10-15  Simon Josefsson  <jas@extundo.com>
54198
54199         * modules/rijndael-tests: New file.
54200
54201         * modules/rijndael: New file.
54202
54203 2005-10-15  Simon Josefsson  <jas@extundo.com>
54204
54205         * m4/rijndael.m4: New file.
54206
54207 2005-10-15  Simon Josefsson  <jas@extundo.com>
54208
54209         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54210
54211         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54212
54213 2005-10-14  Simon Josefsson  <jas@extundo.com>
54214
54215         * tests/test-arcfour.c: New file.
54216
54217         * modules/arcfour, modules/arcfour-tests: New files.
54218
54219 2005-10-14  Simon Josefsson  <jas@extundo.com>
54220
54221         * m4/arcfour.m4: New file.
54222
54223 2005-10-14  Simon Josefsson  <jas@extundo.com>
54224
54225         * lib/arcfour.h, lib/arcfour.c: New files.
54226
54227 2005-10-14  Roland McGrath  <roland@redhat.com>
54228
54229         Import from libc.  [BZ #1331]
54230         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54231         macro argument.
54232         Reported by Matej Vela <vela@debian.org>.
54233
54234 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54235
54236         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54237         include <wchar.h>; no longer needed.
54238
54239 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54242
54243 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54244         and  Ulrich Drepper  <drepper@redhat.com>
54245
54246         Import from libc.
54247         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54248         instead of inline stream orientation test and two separate
54249         function calls.  Pay no attention to USE_IN_LIBIO.
54250
54251 2005-10-13  Simon Josefsson  <jas@extundo.com>
54252
54253         * modules/gc-hmac-md5-tests: New file.
54254
54255         * tests/test-gc-hmac-sha1.c: New file.
54256
54257         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54258
54259         * modules/gc-hmac-md5-tests: New file.
54260
54261         * tests/test-gc-md5.c: New file.
54262
54263         * modules/gc-md5-tests: New file.
54264
54265 2005-10-13  Simon Josefsson  <jas@extundo.com>
54266
54267         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54268         Move memory allocation outside of loop.
54269
54270 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54271
54272         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54273         intermediate directory is in a read-only file system.  Problem
54274         reported by Eric Blake.
54275
54276 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54277
54278         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54279
54280 2005-10-12  Simon Josefsson  <jas@extundo.com>
54281
54282         * tests/test-hmac-sha1.c: New file.
54283
54284         * modules/hmac-sha1-tests: New file.
54285
54286         * modules/hmac-sha1: New file.
54287
54288 2005-10-12  Simon Josefsson  <jas@extundo.com>
54289
54290         * modules/gc-sha1: New file.
54291
54292 2005-10-12  Simon Josefsson  <jas@extundo.com>
54293
54294         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54295
54296         * tests/test-gc-pbkdf2-sha1.c: New file.
54297
54298 2005-10-12  Simon Josefsson  <jas@extundo.com>
54299
54300         * modules/gc-md5, modules/gc-hmac-md5: New files.
54301
54302         * modules/gc (Files): Remove md5, memxor and hmac files.
54303
54304 2005-10-12  Simon Josefsson  <jas@extundo.com>
54305
54306         * m4/gc-pbkdf2-sha1.m4: New file.
54307
54308         * m4/gc-hmac-sha1.m4: New file.
54309
54310         * m4/gc-sha1: New file.
54311
54312         * m4/hmac-sha1.m4: New file.
54313
54314 2005-10-12  Simon Josefsson  <jas@extundo.com>
54315
54316         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54317
54318         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54319
54320 2005-10-12  Simon Josefsson  <jas@extundo.com>
54321
54322         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54323         suggested by Bruno Haible <bruno@clisp.org>.
54324
54325 2005-10-12  Simon Josefsson  <jas@extundo.com>
54326
54327         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54328
54329 2005-10-12  Simon Josefsson  <jas@extundo.com>
54330
54331         * lib/gc-pbkdf2-sha1.c: New file.
54332
54333         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54334
54335 2005-10-12  Simon Josefsson  <jas@extundo.com>
54336
54337         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54338
54339         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54340
54341 2005-10-12  Simon Josefsson  <jas@extundo.com>
54342
54343         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54344         GC_USE_HMAC_MD5, respectively.
54345
54346         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54347         (gc_md5): Fix typo.
54348
54349         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54350
54351         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54352
54353         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54354
54355 2005-10-12  Bruno Haible  <bruno@clisp.org>
54356
54357         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54358         Reported by Stepan Kasal <kasal@ucw.cz>.
54359
54360 2005-10-11  Simon Josefsson  <jas@extundo.com>
54361
54362         * tests/test-crc.c: New file.
54363
54364         * modules/crc, modules/crc-tests: New files.
54365
54366 2005-10-11  Simon Josefsson  <jas@extundo.com>
54367
54368         * m4/crc.m4: New file.
54369
54370 2005-10-11  Simon Josefsson  <jas@extundo.com>
54371
54372         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54373
54374         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54375
54376         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54377
54378 2005-10-11  Simon Josefsson  <jas@extundo.com>
54379
54380         * lib/crc.h, lib/crc.c: New files.
54381
54382         * lib/gc.h (gc_hash_buffer): Add doc.
54383
54384 2005-10-11  Bruno Haible  <bruno@clisp.org>
54385
54386         * modules/c-strcasestr: New file.
54387         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54388
54389 2005-10-11  Bruno Haible  <bruno@clisp.org>
54390
54391         * modules/c-strcase: New file.
54392         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54393
54394 2005-10-11  Bruno Haible  <bruno@clisp.org>
54395
54396         * lib/strcasecmp.c: Include limits.h.
54397         (strcasecmp): Avoid integer overflow on exotic platforms.
54398         * lib/strncasecmp.c: Include limits.h.
54399         (strncasecmp): Avoid integer overflow on exotic platforms.
54400         Reported by Paul Eggert.
54401
54402 2005-10-11  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/c-strcasestr.h: New file, from GNU gettext.
54405         * lib/c-strcasestr.c: New file, from GNU gettext.
54406
54407 2005-10-11  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/c-strcase.h: New file, from GNU gettext.
54410         * lib/c-strcasecmp.c: New file, from GNU gettext.
54411         * lib/c-strncasecmp.c: New file, from GNU gettext.
54412
54413 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54414
54415         * modules/mempcpy (License): GPL -> LGPL.
54416         * modules/strchrnul (License): Likewise.
54417         * modules/sysexits (License): Likewise.
54418
54419 2005-10-08  Simon Josefsson  <jas@extundo.com>
54420
54421         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54422
54423 2005-10-07  Simon Josefsson  <jas@extundo.com>
54424
54425         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54426
54427 2005-10-06  Simon Josefsson  <jas@extundo.com>
54428
54429         * tests/test-hmac-md5.c: New file.
54430
54431         * modules/hmac-md5-tests: New file.
54432
54433         * modules/hmac-md5: New file.
54434
54435 2005-10-06  Simon Josefsson  <jas@extundo.com>
54436
54437         * m4/hmac-md5.m4: New file.
54438
54439         * m4/memxor.m4: Require gl_C_RESTRICT.
54440
54441 2005-10-06  Simon Josefsson  <jas@extundo.com>
54442
54443         * lib/memxor.c (memxor): Avoid casts and warnings.
54444
54445 2005-10-06  Simon Josefsson  <jas@extundo.com>
54446
54447         * lib/hmac-md5.c: New file.
54448
54449         * lib/hmac.h: New file.
54450
54451 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54452
54453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54454         promotes to int, not unsigned int, to catch the AIX 5.3
54455         compiler bug.
54456
54457 2005-10-05  Simon Josefsson  <jas@extundo.com>
54458
54459         * modules/memxor: New file.
54460
54461         * modules/iconv (Files): Move config.rpath to havelib, it is used
54462         there.
54463
54464         * modules/havelib (Files): Add config.rpath.
54465
54466 2005-10-05  Simon Josefsson  <jas@extundo.com>
54467
54468         * m4/memxor.m4: New file.
54469
54470 2005-10-05  Simon Josefsson  <jas@extundo.com>
54471
54472         * lib/memxor.c (memxor): Fix compiler error.
54473
54474         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54475         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54476
54477         * lib/memxor.h, lib/memxor.c: New files.
54478
54479         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54480         we assume all systems have it, suggested by Jim Meyering
54481         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54482         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54483         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54484         same reasons.
54485
54486 2005-10-05  Simon Josefsson  <jas@extundo.com>
54487
54488         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54489
54490 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54491
54492         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54493         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54494         needed, since the source code now assumes these .h files.
54495
54496 2005-10-05  Derek Price  <derek@ximbiot.com>
54497
54498         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54499
54500 2005-10-05  Bruno Haible  <bruno@clisp.org>
54501
54502         * modules/stdint (License): Change to LGPL.
54503
54504 2005-10-04  Simon Josefsson  <jas@extundo.com>
54505
54506         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54507         D. Baushke" <mdb@gnu.org>.
54508
54509 2005-10-04  Bruno Haible  <bruno@clisp.org>
54510
54511         * lib/verify.h (verify_true): Provide alternative definition for C++.
54512
54513 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54514
54515         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54516         (SSIZE_MAX): New macro, if not already defined.
54517         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54518         than 2 GiB.
54519
54520 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54521
54522         Sync from coreutils.
54523         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54524         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54525         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54526         ULLONG_MAX doesn't work with 2.7.2.1.
54527
54528 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54529
54530         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54531         From Ben Pfaff.
54532
54533         * modules/exclude (Depends-on): Depend on verify.
54534         * modules/strtoimax (Depends-on): Likewise.
54535         * modules/utimecmp (Depends-on): Likewise.
54536
54537 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54538
54539         * lib/exclude.c: Include verify.h.
54540         (verify): Remove.  All callers changed to use verify.h's version.
54541         * lib/strtoimax.c: Likewise.
54542         * lib/utimecmp.c: Likewis.e
54543
54544         Sync from coreutils.
54545         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54546         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54547         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54548         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54549         bother returning ENOSYS if settimeofday or stime fails; just let
54550         them return whatever errno they want to return.
54551         * lib/utimens.c: Include unistd.h, for dup2.
54552         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54553         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54554
54555 2005-10-02  Jim Meyering  <jim@meyering.net>
54556
54557         Sync from coreutils.
54558         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54559         from glibc-2.2.5 that fails for read-only files.
54560
54561 2005-10-02  Jim Meyering  <jim@meyering.net>
54562
54563         Sync from coreutils.
54564         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54565         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54566         `#if HAVE_CONFIG_H'.
54567         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54568         Remove AT_FDCWD test.
54569         Do not consume the fd unless successful.
54570         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54571         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54572         block, so that we don't even try to compile it if settimeofday is
54573         available.  This works around a compilation failure on OSF1 V5.1,
54574         due to stime requiring a `long int*' while tv_sec is `int'.
54575
54576 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54577
54578         Sync from coreutils.
54579         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54580         against `yes', rather than just testing for nonempty.
54581
54582 2005-10-01  Simon Josefsson  <jas@extundo.com>
54583
54584         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54585         and Darwin.
54586
54587         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54588         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54589         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54590         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54591         Check if struct addrinfo is declared.
54592
54593 2005-10-01  Simon Josefsson  <jas@extundo.com>
54594
54595         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54596         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54597         AI_* and EAI_* definitions.  Protect function declarations.
54598
54599 2005-10-01  Jim Meyering  <jim@meyering.net>
54600
54601         Sync from coreutils.
54602
54603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54604         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54605         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54606         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54607         in the inet and nsl libraries.  Required on Solaris 5.7.
54608
54609 2005-10-01  Jim Meyering  <jim@meyering.net>
54610
54611         Sync from coreutils.
54612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54613         in the inet and nsl libraries.  Required on Solaris 5.7.
54614
54615 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54616
54617         * lib/getdelim.c (getdelim): Remove unused variables.
54618
54619 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54620
54621         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54622         so that the code works even with ancient cpp.  Portability problem
54623         with GCC 2.7.2.1 reported by Thomas M.Ott.
54624
54625 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54626
54627         * modules/regex (Depends-on): Add strcase.
54628
54629         * modules/gethostname (Licence): Change from GPL to LGPL, since
54630         gethostname.c is a trivial implementation of a standard library
54631         function.
54632         * modules/poll (License): Change from GPL to LGPL, since it's
54633         derived from LGPL code.
54634
54635 2005-09-27  Jim Meyering  <jim@meyering.net>
54636
54637         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54638         HAVE_CONFIG_H.
54639
54640         * lib/intprops.h (signed_type_or_expr__): Define.
54641         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54642         for unsigned types.
54643
54644 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54645
54646         * lib/verify.h (verify_expr): Remove, replacing with:
54647         (verify_true): New macro that returns true instead of void.
54648         (verify_type__): Remove.
54649         (verify): Use verify_true rather than verify_type__.
54650
54651 2005-09-26  Bruno Haible  <bruno@clisp.org>
54652
54653         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54654         is necessary.
54655         (lib_SOURCES): Remove mbchar.c.
54656         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54657         (Files): Add m4/mbrtowc.m4.
54658         * modules/mbiter: Likewise.
54659         * modules/mbuiter: Likewise.
54660
54661 2005-09-26  Bruno Haible  <bruno@clisp.org>
54662
54663         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54664         compile mbchar.c if they are not both present.
54665         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54666         * m4/mbiter.m4 (gl_MBITER): Likewise.
54667         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54668         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54669         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54670
54671 2005-09-25  Jim Meyering  <jim@meyering.net>
54672
54673         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54674         also uses socklen_t.
54675
54676 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54677
54678         * lib/utimens.c (ENOSYS): Define if not already defined.
54679         (futimens): Support having a null PATH if the file descriptor
54680         is nonnegative.
54681
54682         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54683         Remove.
54684         (__attribute): Define to empty unless GCC 3.1 or later.
54685         This works around a core dump on OpenBSD 3.4, which has GCC
54686         2.95.3, which dumps core when given __attribute__(()).  It also
54687         simplifies other tests, since we really don't want to bother with
54688         worrying about which ancient version of GCC supported what.
54689         Original problem reported by Yoann Vandoorselaere, with part of
54690         the fix suggested by Derek Price.
54691
54692 2005-09-24  Jim Meyering  <jim@meyering.net>
54693
54694         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54695         so we can once again use a positive bitfield width of 1 -- now we
54696         don't have to explain why we were using a bitfield width of 2.
54697
54698 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54699
54700         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54701         and similarly for the other external symbols.  Problem reported
54702         by James Gallager.
54703
54704         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54705         bug reported by Jim Meyering.
54706
54707         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54708         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54709         not needed, since socklen is a prerequisite module.
54710
54711 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54712
54713         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54714         Problem reported by Eric Blake.
54715         (getaddrinfo): Initialize se so that it's not garbage.
54716         Redo internal storage allocation so that it doesn't make unportable
54717         assumptions about alignment.
54718         Fix a memory leak.
54719
54720         * lib/utimens.c (futimens): Use futimesat if available.
54721         Prefer it to futimes since it doesn't have the futimes bug.
54722
54723         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54724         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54725         Instead, declare a function that returns a pointer to an array,
54726         and use verify_type__ to declare the size of the array.
54727         Problem and germ of a solution reported by Bruno Haible.
54728         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54729         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54730
54731 2005-09-23  Jim Meyering  <jim@meyering.net>
54732
54733         Sync from coreutils.
54734         Correct build failure (socklen_t not defined) on at least
54735         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54736         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54737
54738 2005-09-23  Jim Meyering  <jim@meyering.net>
54739
54740         * modules/getaddrinfo (Depends-on): Add socklen.
54741
54742 2005-09-23  Bruno Haible  <bruno@clisp.org>
54743
54744         * tests/test-verify.c: New file.
54745
54746 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54747
54748         Sync from coreutils.
54749
54750         * modules/argmatch (Depends-on): Add verify.
54751         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54752         unistd-safer.
54753         * modules/save-cwd (Depends-on): Likewise.
54754
54755         * modules/openat (Files): Add lib/openat-die.c.
54756         (Depends-on): Remove error, exitfail.
54757         Add dirname.
54758
54759         * modules/verify: New file.
54760         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54761         with "verify" module.
54762
54763 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54764
54765         Sync from coreutils.
54766
54767         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54768         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54769         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54770         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54771         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54772         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54773         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54774         Don't bother checking for string.h, stdlib.h, unistd.h.
54775         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54776         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54777         module's job.
54778         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54779         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54780
54781         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54782         (gl_GETDATE): Use it.
54783
54784         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54785
54786 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54787
54788         Sync from coreutils.
54789
54790         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54791         stat-time.h.
54792         * lib/argmatch.h: Include verify.h
54793         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54794         (ARGMATCH_ASSERT): Remove; unused.
54795         * lib/canonicalize.c: Assume STDC_HEADERS.
54796         * lib/exclude.c: Include "strcase.h".
54797         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54798         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54799         and stdio-safer.h.
54800         (getusershell): Call fopen, not fopen_safer.
54801         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54802         Do not include unistd-safer.h.
54803         (save_cwd): Don't call fd_safer; no longer needed
54804         now that we include fcntl--.h.
54805
54806         * lib/getdate.y (relative_time): New type.
54807         (RELATIVE_TIME_0): New constant.
54808         (parser_control): Use relative_time instead of doing it ourselves.
54809         (%union): Add new relative_time rel member.
54810         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54811         Now typeless.
54812         (relunit, relunit_snumber): Now of type rel.
54813         (zone, rel, relunit, get_date): Adjust to above changes.
54814
54815         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54816         Do not include unistd-safer.h.
54817         (getloadavg): Don't call fd_safer; no longer needed
54818         now that we include fcntl--.h.
54819
54820         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54821         (make_dir_parents): Treat ENOSYS like EEXIST.
54822
54823         Improve quality of diagnostics on restore_cwd failure.
54824         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54825         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54826         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54827         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54828         each time through the loop.  Do not diagnose restore_cwd failure;
54829         that is the caller's job (and perhaps the caller does not care).
54830
54831         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54832         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54833         If the file already exists but is not a directory, don't bother
54834         to try to make its parents.
54835         Close potential file descriptor leak if we can't chdir("/") (!).
54836         Don't always return true if chdir($PWD) fails; return true only
54837         if the requested action was done successfully (except for the
54838         chdir($PWD)).
54839         Don't log final directory unless we actually made it.
54840         Refactor to avoid duplicate code to fix up permissions.
54841         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54842
54843         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54844         to make it a bit faster and (I hope) clearer.
54845         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54846         Fix bug in formats like %2N.
54847
54848         * lib/verify.h: New file.
54849
54850 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54851
54852         Sync from coreutils.
54853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54854
54855 2005-09-22  Jim Meyering  <jim@meyering.net>
54856
54857         Sync from coreutils.
54858
54859         * m4/lstat.m4 (gl_FUNC_LSTAT):
54860         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54861         Remove obsolete comment.
54862         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54863         * m4/xstrtod.m4: Likewise.
54864
54865         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54866
54867 2005-09-22  Jim Meyering  <jim@meyering.net>
54868
54869         Sync from coreutils.
54870
54871         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54872
54873         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54874         the .tm_year member, since otherwise gcc-4.0 would now warn about
54875         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54876
54877         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54878         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54879
54880         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54881         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54882         when run in a time zone for which daylight savings time is in effect
54883         for the starting date.
54884
54885         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54886         stop us from restricting permissions of just-created absolute-named
54887         directories.
54888         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54889         to restore initial working directory.
54890         * lib/mkdir-p.c (make_dir_parents): New parameter:
54891         different_working_dir, to tell caller if/when we change the working
54892         directory and are unable to return to the initial one.
54893         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54894         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54895         `return false'.  This fixes a bug introduced on 2004-07-30.
54896
54897         * lib/openat.c (fdopendir): Be sure to close the supplied
54898         file descriptor before returning.  This makes our replacement
54899         implementation a little closer to Solaris's, where fdopendir
54900         ties the file descriptor to the returned DIR* pointer.
54901         * lib/openat.c (unlinkat): New function.
54902         * lib/openat.h (unlinkat): Add prototype.
54903         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54904         (openat_restore_fail): Rename from openat_restore_die.
54905         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54906
54907         Provide an alternative to exiting immediately upon save_cwd or
54908         restore_cwd failure.  Now, an application can arrange e.g.,
54909         to perform a longjump in that case.
54910         * lib/openat.c: Include dirname.h.
54911         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54912         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54913         and openat_restore_die rather than calling error directly.
54914         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54915
54916         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54917         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54918         define.
54919
54920         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54921         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54922                             int utc, int nanoseconds);
54923         Background:
54924         date should not have to allocate a megabyte of virtual memory to
54925         handle a format argument like +%1048575T.  When implemented with
54926         strftime, it must allocate such a buffer, use strftime to fill it
54927         in, print it, then free it.
54928         With fprintftime, it simply prints everything and exits.
54929         With no need for memory allocation, that's one fewer way to fail.
54930         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54931         optional field width, not before, so we accept %9:z, not %:9z.
54932         (my_strftime): Be sure to use L_('x') for literals.
54933
54934         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54935         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54936         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54937         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54938         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54939         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54940         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54941         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54942         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54943         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54944         * lib/xgethostname.c, lib/xreadlink.c:
54945         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54946
54947         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54948         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54949         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54950         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54951         and don't include <sys/file.h>).
54952
54953 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54954
54955         Sync from coreutils.
54956
54957         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54958         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54959         [!LDAV_DONE]: Avoid unused variable warning.
54960
54961 2005-09-21  Bruno Haible  <bruno@clisp.org>
54962
54963         * lib/unicodeio.h (unicode_to_mb): New declaration.
54964
54965 2005-09-20  Derek Price  <derek@ximbiot.com>
54966
54967         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54968         getaddrinfo.h.
54969
54970 2005-09-20  Bruno Haible  <bruno@clisp.org>
54971
54972         * gnulib-tool: Remove trailing slashes from the values specified for
54973         --source-base, --m4-base, --tests-base, --aux-dir.
54974         Suggested by Simon Josefsson <jas@extundo.com>.
54975
54976 2005-09-20  Bruno Haible  <bruno@clisp.org>
54977
54978         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54979         func_modules_to_filelist, func_import, func_create_testdir): Make all
54980         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54981         change when gnulib-tool is invoked in a different locale.
54982
54983 2005-09-19  Simon Josefsson  <jas@extundo.com>
54984
54985         * m4/socklen.m4: Fix typo.
54986
54987 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54988
54989         Use a consistent style for including <config.h>.
54990         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54991         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54992         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54993         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54994         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54995         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
54996         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
54997         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
54998         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
54999         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
55000         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
55001         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
55002         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
55003         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
55004         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
55005         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
55006         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
55007         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
55008         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
55009         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
55010         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
55011         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
55012         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
55013         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
55014         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
55015         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
55016         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
55017         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
55018         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
55019         lib/xstrtoumax.c, lib/yesno.c:
55020         Standardize inclusion of config.h.
55021         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
55022         lib/inttostr.h:  Removed inclusion of config.h from header files.
55023         * lib/inttostr.c:  Adjusted in-tree users.
55024         * lib/timespec.h: Remove superfluous warning to include config.h.
55025         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
55026         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
55027         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
55028         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
55029         config.h with HAVE_CONFIG_H.
55030
55031 2005-09-19  Jim Meyering  <jim@meyering.net>
55032
55033         * modules/pathmax (License): Change to LGPL.
55034
55035 2005-09-19  Derek Price  <derek@ximbiot.com>
55036
55037         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
55038
55039 2005-09-19  Bruno Haible  <bruno@clisp.org>
55040
55041         * gnulib-tool (import): Provide default for --tests-base.
55042
55043 2005-09-19  Bruno Haible  <bruno@clisp.org>
55044
55045         * doc/quote.texi: New file, extracted from gnulib.texi.
55046         * doc/ctime.texi: New file, extracted from gnulib.texi.
55047         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
55048         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
55049         * doc/gnulib.texi: Include them.
55050
55051 2005-09-18  Bruno Haible  <bruno@clisp.org>
55052
55053         Portability fix.
55054         * gnulib-tool (func_readlink): New function.
55055         (func_ln_if_changed): Use it.
55056
55057 2005-09-18  Bruno Haible  <bruno@clisp.org>
55058
55059         * gnulib-tool: Support --with-tests also with --import.
55060         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
55061         (func_import): Use variables $testsbase and $inctests. Emit a
55062         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
55063         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
55064         SUBDIRS += $testsdir.
55065         (func_create_testdir): Update.
55066
55067 2005-09-18  Bruno Haible  <bruno@clisp.org>
55068
55069         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
55070         instead of $dry_run.
55071         (func_cp_if_changed, func_mv_if_changed): Remove functions.
55072         (func_ln_if_changed): Don't handle dry-run here.
55073         (func_import): In dry-run mode, detect more precisely which actions
55074         would be performed, and don't use "...ing" verbs.
55075
55076 2005-09-18  Bruno Haible  <bruno@clisp.org>
55077
55078         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
55079         (func_import): Use join on two temporary files instead of three nested
55080         loops, in order to determine which files are new or old.
55081
55082 2005-09-18  Bruno Haible  <bruno@clisp.org>
55083
55084         * gnulib-tool (func_import): Comment out code that spits out the
55085         new files with --dry-run.
55086
55087 2005-09-18  Bruno Haible  <bruno@clisp.org>
55088
55089         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
55090
55091 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55092
55093         * lib/stat-time.h: New file.
55094         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
55095         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
55096         in a different way.
55097         (timespec_cmp): New function.
55098         * lib/utimecmp.c: Include stat-time.h.
55099         (SYSCALL_RESOLUTION): Depend on whether various struct stat
55100         members exist, not on the obsolescent ST_MTIM_NSEC.
55101         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
55102
55103 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55104
55105         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
55106
55107 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55108
55109         * MODULES.html.sh (File system functions): Add stat-time.
55110         * modules/stat-time: New file.
55111         * modules/timespec (Files): Remove m4/st_mtim.m4; this
55112         is now done in a different way, by the stat-time module.
55113         * modules/utimecmp (Depends-on): Add stat-time.
55114
55115 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55116
55117         * m4/st_mtim.m4: Remove.  Superseded by...
55118         * m4/stat-time.m4: New file.
55119         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
55120         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
55121
55122 2005-09-15  Derek Price  <derek@ximbiot.com>
55123
55124         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
55125
55126 2005-09-15  Derek Price  <derek@ximbiot.com>
55127
55128         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
55129         * lib/regex_internal.c: Ditto, using this...
55130         (__GNUC_PREREQ): ...new macro.
55131         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
55132         using...
55133         (__GNUC_PREREQ): ...this new macro.
55134
55135         * lib/strstr.h: Include string.h. Define strstr as a macro here.
55136
55137 2005-09-15  Derek Price  <derek@ximbiot.com>
55138             Paul Eggert  <eggert@cs.ucla.edu>
55139
55140         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
55141         changes, consolidating in...
55142         * lib/regex_internal.h: ...this file.
55143
55144 2005-09-13  Jim Meyering  <jim@meyering.net>
55145
55146         * lib/canon-host.c: Filter through gnu indent and reword comments
55147         slightly.
55148         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
55149
55150 2005-09-13  Derek Price  <derek@ximbiot.com>
55151
55152         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
55153         failure.
55154         Reported by Jim Meyering  <jim@meyering.net>.
55155
55156 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55157
55158         * lib/base64.c: Typo.
55159         (base64_encode): Put b64str in initialized data section.
55160
55161 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55162
55163         Merge glibc and coreutils changes into gnulib, plus a few
55164         extra fixes.
55165         * lib/md5.c: Use #error rather than a string.
55166         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55167         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55168         (__attribute__): Define to empty for non recent-GCC.
55169         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55170         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55171         Renamed from their non-__ counterparts, with new macros replacing
55172         them if not _LIBC.  Add __THROW attribute.
55173         (rol): Remove.
55174         (struct md5_ctx): Align buffer if using GCC.
55175         * lib/sha1.h (struct sha1_ctx): Likewise.
55176         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55177         The old name was backwards.
55178         (NOTSWAP): Remove; not used.
55179         (rol): New macro, moved here from md5.h.
55180         (sha1_process_block): Remove a FIXME that doesn't make sense.
55181
55182 2005-09-12  Derek Price  <derek@ximbiot.com>
55183
55184         Return usable errors from canon-host.
55185         * lib/canon-host.h: New file.
55186         * lib/canon-host.c (canon_host): Wrap...
55187         (canon_host_r): ...this new function, which now relies exclusively on
55188         getaddrinfo.
55189         (ch_strerror): New function.
55190         (last_cherror): New global.
55191         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55192         interface.
55193         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55194         void *.
55195         (freeaddrinfo): Free ai->ai_canonname when set.
55196
55197 2005-09-12  Derek Price  <derek@ximbiot.com>
55198
55199         Make canon-host require getaddrinfo.
55200         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55201         AC_LIBSOURCE canon-host.h.  Call...
55202         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55203         gl_GETADDRINFO.
55204         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55205
55206 2005-09-12  Derek Price  <derek@ximbiot.com>
55207
55208         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55209         LGPL.
55210         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55211
55212 2005-09-12  Derek Price  <derek@ximbiot.com>
55213
55214         * lib/gai_strerror.c: Include config.h when available.  Include
55215         getaddrinfo.h before other headers to test interface.
55216         Reported by Larry Jones <lawrence.jones@ugs.com>.
55217
55218 2005-09-12  Derek Price  <derek@ximbiot.com>
55219             Paul Eggert  <eggert@cs.ucla.edu>
55220
55221         * modules/glob (Files): Add glob-libc.h.
55222
55223 2005-09-12  Derek Price  <derek@ximbiot.com>
55224             Paul Eggert  <eggert@cs.ucla.edu>
55225
55226         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55227         glob_.h, glob-libc.h.
55228         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55229
55230 2005-09-12  Derek Price  <derek@ximbiot.com>
55231             Paul Eggert  <eggert@cs.ucla.edu>
55232
55233         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55234         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55235         protecting things that should be done only in gnulib contexts.
55236         * lib/glob_.h: New file, containing only the glob things needed for
55237         gnulib.
55238         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55239         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55240         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55241         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55242         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55243         and to respect the namespace rules better.
55244
55245 2005-09-08  Simon Josefsson  <jas@extundo.com>
55246
55247         * modules/socklen: New file.
55248
55249 2005-09-08  Simon Josefsson  <jas@extundo.com>
55250
55251         * m4/socklen.m4: New file.
55252
55253 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55254
55255         * modules/utimens (Files): Add m4/utimbuf.m4, since
55256         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55257         Reported by Sergey Poznyakoff.
55258
55259 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55260
55261         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55262         definitions, since that's the preferred style in glibc.
55263         Fix a minor spacing issue, and update copyright notice to match
55264         glibc's.
55265
55266 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55267
55268         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55269
55270 2005-09-06  Simon Josefsson  <jas@extundo.com>
55271
55272         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55273         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55274
55275 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55276
55277         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55278         warning.
55279
55280 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55281
55282         * config/srclist.txt: Add glibc bug 1302.
55283
55284 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55285
55286         Change bitset word type from unsigned int to unsigned long int,
55287         as this has better performance on typical 64-bit hosts.
55288         Port bitset code to hosts with unusual word sizes.
55289         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55290         (build_collating_symbol):
55291         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55292         argument is a bitset.  This is merely a style issue, but it makes
55293         it clearer that an entire array is expected.
55294         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55295         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55296         Port to the case where bitset_word is not the same as unsigned int.
55297         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55298         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55299         Likewise.
55300         * lib/regexec.c (check_dst_limits_calc_pos_1,
55301         check_subexp_matching_top):
55302         (build_trtable, group_nodes_into_DFAstates):
55303         Likewise.
55304         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55305         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55306         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55307         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55308         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55309         * lib/regcomp.c (optimize_subexps, lower_subexp):
55310         Work even if bitset_word has holes in its bitwise representation.
55311         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55312         * lib/regexec.c (check_dst_limits_calc_pos_1,
55313         check_subexp_matching_top):
55314         Likewise.
55315         * lib/regex_internal.c (re_string_reconstruct):
55316         Don't assume UCHAR_MAX == 255.
55317         * lib/regex_internal.h (bitset_set_all): Likewise.
55318         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55319         All uses changed.
55320         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55321         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55322         All uses changed.
55323         (BITSET_WORD_MAX): New macro.
55324         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55325         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55326         (bitset_empty, bitset_copy):
55327         Prefer sizeof (bitset) to multiplying it out ourselves.
55328         (bitset_not_merge): Remove; unused.
55329         (bitset_contain): Return bool, not unsigned int with one bit on.
55330         All callers changed.
55331         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55332         alignment than re_node_set; do this by defining a new internal
55333         type struct dests_alloc and using it to allocate memory.
55334
55335 2005-09-05  Bruno Haible  <bruno@clisp.org>
55336
55337         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55338         links.
55339
55340 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55341
55342         * modules/size_max (Makefile.am): Add size_max.h
55343
55344 2005-09-04  Derek Price  <derek@ximbiot.com>
55345
55346         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55347
55348 2005-09-03  Simon Josefsson  <jas@extundo.com>
55349
55350         * gnulib-tool: Fix typo.
55351
55352 2005-09-03  Simon Josefsson  <jas@extundo.com>
55353
55354         * config/srclist.txt: Add glibc bug 1293.
55355
55356 2005-09-03  Derek Price  <derek@ximbiot.com>
55357
55358         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55359         From Larry Jones <lawrence.jones@ugs.com>.
55360
55361 2005-09-02  Simon Josefsson  <jas@extundo.com>
55362
55363         * modules/socklen: New file.
55364
55365 2005-09-02  Simon Josefsson  <jas@extundo.com>
55366
55367         * modules/havelib: New module.
55368
55369         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55370         Use havelib.
55371
55372 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55373
55374         Check for arithmetic overflow when calculating sizes, to prevent
55375         some buffer-overflow issues.  These patches are conservative, in the
55376         sense that when I couldn't determine whether an overflow was possible,
55377         I inserted a run-time check.
55378         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55379         macros.
55380         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55381         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55382         (re_xnrealloc, re_x2nrealloc): New inline functions.
55383         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55384         parse_bracket_exp):
55385         (build_equiv_class, build_charclass): Check for arithmetic overflow
55386         in size expression calculations.
55387         * lib/regex_internal.c (re_string_realloc_buffers):
55388         (build_wcs_upper_buffer, re_node_set_add_intersect):
55389         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55390         (re_dfa_add_node, register_state): Likewise.
55391         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55392         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55393         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55394         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55395
55396 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55397
55398         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55399         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55400
55401 2005-09-02  Bruno Haible  <bruno@clisp.org>
55402
55403         Support for lib vs. lib64 distinction on biarch platforms.
55404         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55405         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55406         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55407
55408 2005-09-02  Bruno Haible  <bruno@clisp.org>
55409
55410         * gnulib-tool (import): In the other first-use case, provide defaults
55411         as well.
55412
55413 2005-09-02  Bruno Haible  <bruno@clisp.org>
55414
55415         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55416         patches not yet found in the latest gettext release.
55417
55418 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55419
55420         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55421         to avoid a collision with bits/local_lim.h in glibc.
55422         All uses changed.  Problem reported by Dmitry V. Levin in
55423         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55424
55425         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55426         bugs in int versus size_t comparisons.
55427         (re_string_context_at): Fix bug where the code assumed that
55428         Idx is signed.
55429
55430         Use bool where appropriate.
55431         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55432         All callers changed.
55433         (calc_eclosure_iter): Likewise, for ROOT arg.
55434         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55435         (build_charclass_op): Likewise, for NON_MATCH arg.
55436         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55437         (re_string_construct_common): Likewise, for ICASE arg.
55438         * lib/regexec.c (re_search_2_stub, re_search_stub):
55439         Likewise, for RET_LEN arg.
55440         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55441         (set_regs): Likewise, for FL_BACKTRACK arg.
55442         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55443         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55444         (calc_eclosure_iter, parse_bracket_exp):
55445         Use bool for internal variables that are booleans.
55446         * lib/regexec.c (re_search_internal, check_matching,
55447         proceed_next_node):
55448         (set_regs, build_sifted_states, sift_states_bkref):
55449         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55450         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55451         (find_collation_sequence_value):
55452         Likewise.
55453         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55454         (re_node_set_compare):
55455         Return bool, not int. All callers changed.
55456         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55457         (build_trtable, check_node_accept): Likewise.
55458         * lib/regex_internal.h: Include stdbool.h.
55459
55460         Fix bugs uncovered when converting to bool.
55461         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55462         failure instead of charging ahead blindly.
55463         * lib/regex_internal.c (register_state): Likewise.
55464         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55465         for freeing internal storage.
55466         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55467         bitset pieces used as boolean, to avoid undefined behavior
55468         on hosts that do int overflow checking.
55469
55470 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * config/srclist.txt: Add glibc bugs 1285-1287.
55473
55474 2005-09-01  Jim Meyering  <jim@meyering.net>
55475
55476         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55477         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55478         Require gl_STAT_MACROS, too.
55479
55480 2005-09-01  Bruno Haible  <bruno@clisp.org>
55481
55482         * gnulib-tool (import): In the first-use case, provide defaults.
55483
55484 2005-09-01  Bruno Haible  <bruno@clisp.org>
55485
55486         * gnulib-tool (func_import): Remove the .tmp files.
55487
55488 2005-09-01  Bruno Haible  <bruno@clisp.org>
55489
55490         * gnulib-tool (func_import): Fix handling of symbolic links.
55491
55492 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55493
55494         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55495         old glibc regex code mishandles strings longer than 2**31 bytes.
55496         This patch fixes this when the regex code is used in gnulib
55497         (i.e., outside glibc).
55498
55499         This patch should not affect the use of the regex code inside
55500         glibc.  No doubt this problem also needs to be handled for glibc
55501         as well, but the result will be an incompatible change to the
55502         glibc ABI, and the old ABI will have to be supported too.  That
55503         can be the the subject for another patch.
55504
55505         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55506         governing whether the rest of this patch is active.  By default,
55507         the macro is disabled and the patch has no effect.
55508         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55509         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55510         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55511         (re_match_2, re_set_registers): Use the new types.
55512         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55513         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55514         New macros.
55515         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55516         (re_string_context_at, bin_tree_t, re_dfastate_t):
55517         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55518         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55519         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55520         (re_string_char_size_at, re_string_wchar_at):
55521         (re_string_elem_size_at):
55522         Use the new types and macros to port to 64-bit hosts.
55523         Use unsigned types for internal values, so that the code
55524         mostly works even for arrays larger than SSIZE_MAX.
55525         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55526         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55527         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55528         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55529         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55530         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55531         (calc_inveclosure, parse_dup_op, build_range_exp):
55532         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55533         (fetch_number, create_token_tree, mark_opt_subexp):
55534         Likewise.
55535         * lib/regex_internal.c (re_string_construct_common,
55536         create_ci_newstate):
55537         (create_cd_newstate, re_string_allocate, re_string_construct):
55538         (re_string_realloc_buffers, build_wcs_upper_buffer):
55539         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55540         (re_string_reconstruct, re_string_peek_byte_case):
55541         (re_string_fetch_byte_case, re_string_context_at):
55542         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55543         (re_node_set_init_copy, re_node_set_add_intersect):
55544         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55545         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55546         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55547         (re_acquire_state, re_acquire_state_context, register_state):
55548         Likewise.
55549         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55550         search_cur_bkref_entry):
55551         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55552         (re_search_internal, re_search_2_stub, re_search_stub)
55553         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55554         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55555         (update_cur_sifted_state, check_dst_limits):
55556         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55557         (check_subexp_limits, sift_states_bkref, merge_state_array):
55558         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55559         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55560         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55561         (expand_bkref_cache, check_node_accept_bytes):
55562         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55563         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55564         (acquire_init_state_context, check_halt_node_context):
55565         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55566         (sift_states_backward, clean_state_log_if_needed):
55567         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55568         (find_recover_state, transit_state_sb, transit_state_mb):
55569         (transit_state_bkref, build_trtable, match_ctx_clean):
55570         Likewise.
55571         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55572         to work around an assumption that REG_MISSING is negative.
55573
55574         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55575         (seek_collating_symbol_entry) [defined _LIBC]:
55576         (lookup_collation_sequence_value) [defined _LIBC]:
55577         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55578         Use prototypes rather than old-style function definitions.
55579         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55580         (transit_state_sb) [0]:
55581         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55582
55583         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55584         rm_eo.
55585
55586         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55587         (optimize_subexps, lower_subexp):
55588         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55589         since the signed shift might overflow.  Use 1u<<31 instead.
55590         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55591         Likewise.
55592         * lib/regexec.c (check_dst_limits_calc_pos_1,
55593         check_subexp_matching_top): Likewise.
55594
55595         * lib/regcomp.c (optimize_subexps, lower_subexp):
55596         Use CHAR_BIT rather than 8, for clarity.
55597         * lib/regexec.c (check_dst_limits_calc_pos_1):
55598         (check_subexp_matching_top): Likewise.
55599         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55600         have to worry about portability issues when shifting it left.
55601         Remove no-longer-needed test for table_size > 0.
55602         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55603         in a word, as the resulting behavior is undefined.
55604         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55605         in one case, a <= should have been an <, and in another case the
55606         whole test was missing.
55607         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55608         the standard name CHAR_BIT.
55609         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55610         this is not true on one's complement and signed-magnitude hosts.
55611
55612         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55613         next_last_offset.
55614         (struct re_dfa_t): Remove unused member states_alloc.
55615         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55616
55617 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55618
55619         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55620         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55621         and large-file glibc and in 32-bit large-file Solaris.
55622
55623 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55624
55625         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55626         lengths fit in regoff_t; this isn't true if regoff_t is the same
55627         width as size_t.
55628         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55629         (= START + RANGE) instead of RANGE.  This avoids overflow
55630         problems when regoff_t is the same width as size_t.
55631         All callers changed.
55632         (re_search_2_stub): Check for overflow when adding the
55633         sizes of the two strings.
55634         (re_search_stub): Check for overflow when adding START
55635         to RANGE; if it occurs, substitute the extreme value.
55636
55637 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55638
55639         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55640
55641 2005-08-31  Jim Meyering  <jim@meyering.net>
55642
55643         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55644         a pointer-to-const.
55645         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55646         (register_state): Likewise.
55647         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55648         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55649         (group_nodes_into_DFAstates): Likewise.
55650
55651 2005-08-31  Jim Meyering  <jim@meyering.net>
55652
55653         * check-module: Add a FIXME comment.
55654
55655 2005-08-31  Eric Blake  <ebb9@byu.net>
55656
55657         * modules/unistd-safer (Files): Add unistd--.h.
55658         * modules/stdio-safer (Files): Add stdio--.h.
55659
55660 2005-08-31  Derek Price  <derek@ximbiot.com>
55661
55662         * lib/getdelim.c (getdelim): Return EOF on EOF.
55663         Reported by Larry Jones <lawrence.jones@ugs.com>.
55664
55665 2005-08-31  Bruno Haible  <bruno@clisp.org>
55666
55667         Avoid unnecessary diffs in the generated lib/Makefile.am.
55668         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55669         the generated files.
55670         (func_import): Don't set cmd.
55671
55672 2005-08-31  Bruno Haible  <bruno@clisp.org>
55673
55674         * lib/strstr.c: Include <stddef.h>, for NULL.
55675         * lib/strcasestr.c: Likewise.
55676         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55677
55678 2005-08-31  Bruno Haible  <bruno@clisp.org>
55679
55680         * gnulib-tool: New option --macro-prefix.
55681         (func_import): Use macro_prefix.
55682         (import): Handle option --macro-prefix.
55683
55684 2005-08-31  Bruno Haible  <bruno@clisp.org>
55685
55686         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55687         Also use new variables cached_lgpl, cached_libtool.
55688
55689 2005-08-31  Bruno Haible  <bruno@clisp.org>
55690
55691         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55692         always instantiating them.
55693
55694 2005-08-31  Bruno Haible  <bruno@clisp.org>
55695
55696         * gnulib-tool (func_import): Read the previous cached settings
55697         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55698         earlier added by gnulib but are now dropped. Warn when a gnulib file
55699         overwrites a non-gnulib file.
55700
55701 2005-08-31  Bruno Haible  <bruno@clisp.org>
55702
55703         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55704         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55705         projects that don't keep autogenerated files in CVS. Put into
55706         actioncmd only the specified modules, not the transitive closure.
55707
55708 2005-08-31  Bruno Haible  <bruno@clisp.org>
55709
55710         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55711         Create directories that shall be filled.
55712         (import): Don't look for gl_* macros in configure.ac. Recurse across
55713         all directories containing a gnulib-cache.m4 files, if meaningful.
55714
55715 2005-08-31  Bruno Haible  <bruno@clisp.org>
55716
55717         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55718         (import): Set seen_libtool when we see gl_LIBTOOL.
55719
55720 2005-08-31  Bruno Haible  <bruno@clisp.org>
55721
55722         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55723         declaration macro definitions from generated gnulib.m4.
55724
55725 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55726
55727         * lib/iconvme.h: Add prototype for iconv_alloc.
55728
55729 2005-08-29  Simon Josefsson  <jas@extundo.com>
55730
55731         * lib/iconvme.c: Fix errno.
55732
55733 2005-08-29  Bruno Haible  <bruno@clisp.org>
55734
55735         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55736         that it works when the directory contains spaces.
55737
55738 2005-08-29  Bruno Haible  <bruno@clisp.org>
55739
55740         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55741
55742 2005-08-29  Bruno Haible  <bruno@clisp.org>
55743
55744         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55745         Emit more advice.
55746
55747 2005-08-29  Bruno Haible  <bruno@clisp.org>
55748         and Stepan Kasal  <kasal@ucw.cz>
55749
55750         * check-module: If more parameters are given, check each of them
55751         separately; add more exceptions, as noted by Jim Meyering.
55752         (check_module): New procedure.
55753         (%exempt_header): Now contains all exceptions.
55754
55755 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55756
55757         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55758
55759 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55760
55761         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55762
55763 2005-08-28  Bruno Haible  <bruno@clisp.org>
55764
55765         * m4/gnulib-tool.m4: New file.
55766
55767 2005-08-27  Jim Meyering  <jim@meyering.net>
55768
55769         * modules/unistd-safer (Files): Add pipe-safer.c.
55770         * modules/fcntl-safer (Files): Add creat-safer.c.
55771
55772 2005-08-27  Jim Meyering  <jim@meyering.net>
55773
55774         * m4/stdlib-safer.m4: New file.  From coreutils.
55775         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55776         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55777         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55778         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55779         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55780
55781 2005-08-27  Jim Meyering  <jim@meyering.net>
55782
55783         * lib/fopen-safer.c: Merge minor changes from coreutils.
55784         * lib/dup-safer.c: Likewise.
55785         * lib/fd-safer.c: Likewise.
55786
55787         Merge from coreutils.
55788         * lib/stdio--.h: New file.
55789         * lib/stdlib--.h: New file.
55790         * lib/mkstemp-safer.c: New file.
55791
55792         GNU tar needs these.
55793         * lib/pipe-safer.c: New file.
55794         * lib/creat-safer.c: New file.
55795         * lib/fcntl--.h (creat): Define to creat_safer.
55796         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55797         * lib/unistd--.h (pipe): Define to pipe_safer.
55798         * lib/unistd-safer.h: Declare pipe_safer.
55799
55800 2005-08-26  Simon Josefsson  <jas@extundo.com>
55801
55802         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55803         Haible <bruno@clisp.org>.
55804
55805 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55806
55807         * lib/regex_internal.h: Remove all references to
55808         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55809         or better.
55810         (bitset_not, bitset_merge, bitset_not_merge):
55811         (bitset_mask, re_string_allocate, re_string_construct):
55812         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55813         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55814         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55815         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55816         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55817         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55818         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55819         (re_acquire_state_context):
55820         Remove unnecessary forward decls.
55821         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55822         Put __attribute at function definition,
55823         now that the function decl has been removed.
55824         * lib/regex_internal.c (re_string_peek_byte_case):
55825         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55826         Likewise.
55827
55828 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55829
55830         * m4/regex.m4: Add AC_PREREQ(2.50).
55831         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55832
55833 2005-08-25  Simon Josefsson  <jas@extundo.com>
55834
55835         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55836         __fsetlocking.
55837
55838 2005-08-25  Simon Josefsson  <jas@extundo.com>
55839
55840         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55841         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55842         GLIBC specific code.
55843
55844 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55845
55846         Make regex safe for g++.  This fixes one real bug (an "err"
55847         that should have been "*err").  g++ problem reported by
55848         Sam Steingold.
55849         * lib/regex_internal.h (re_calloc): New macro, consistent with
55850         re_malloc etc.  All callers of calloc changed to use re_calloc.
55851         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55852         not int.  All callers changed.
55853         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55854         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55855         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55856         (find_recover_state): Change "err" to "*err"; this fixes what
55857         appears to be a real bug.
55858         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55859         versus int.
55860
55861 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55862
55863         * modules/regex (Depends-on): Add malloc, since the code
55864         assumes that !malloc(0) means failure.
55865
55866 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55867
55868         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55869
55870         alloca modernization/simplification for regex.
55871         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55872         needs to be at the start of the file, and can be moved into
55873         regex_internal.h and simplified.
55874         * lib/regex_internal.h: Include <alloca.h>.
55875         (__libc_use_alloca) [!defined _LIBC]: New macro.
55876         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55877         now works outside glibc.
55878
55879 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55880
55881         * config/srclist.txt: Add glibc bugs 1241, 1245.
55882
55883 2005-08-25  Jim Meyering  <jim@meyering.net>
55884
55885         * lib/open-safer.c: Include <config.h>.
55886         Otherwise, we'd lose LARGEFILE support in any file using
55887         e.g. "fcntl--.h"
55888
55889 2005-08-25  Bruno Haible  <bruno@clisp.org>
55890
55891         * m4/minmax.m4: Require autoconf 2.52.
55892         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55893         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55894         alternatives of translit over the alphabet.
55895         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55896
55897 2005-08-24  Simon Josefsson  <jas@extundo.com>
55898
55899         * tests/test-getpass.c: New file.
55900
55901 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55902
55903         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55904         for GNU regex features.
55905
55906 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55907
55908         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55909         * lib/regex.h (regerror): Likewise.
55910
55911         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55912         requires this.  (The code never needed it.)
55913
55914         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55915         All uses of recently-renamed identifiers changed to use the new,
55916         POSIX-compliant names.  The code will build and run just fine
55917         without these changes, but it's better to eat our own dog food
55918         and use the standard-conforming names.
55919
55920         * lib/regex.h: Fix a multitude of POSIX name space violations.
55921         These changes have an effect only for programs that define
55922         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55923         do not change anything for programs compiled in the normal way.
55924         Also, there is no effect on the ABI.
55925
55926         (_REGEX_SOURCE): New macro.
55927         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55928         defined and _GNU_SOURCE is not; this fixes a name space violation.
55929
55930         Rename the following macros to obey POSIX requirements.
55931         The old names are still visible as macros if _REGEX_SOURCE is defined.
55932         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55933         RE_BACKSLASH_ESCAPE_IN_LISTS.
55934         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55935         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55936         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55937         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55938         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55939         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55940         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55941         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55942         (REG_INTERVALS): renamed from RE_INTERVALS.
55943         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55944         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55945         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55946         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55947         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55948         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55949         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55950         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55951         RE_UNMATCHED_RIGHT_PAREN_ORD.
55952         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55953         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55954         (REG_DEBUG): renamed from RE_DEBUG.
55955         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55956         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55957         unusual, since we can't clash with the POSIX REG_ICASE.
55958         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55959         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55960         (REG_NO_SUB): renamed from RE_NO_SUB.
55961         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55962         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55963         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55964         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55965         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55966         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55967         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55968         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55969         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55970         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55971         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55972         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55973         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55974         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55975         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55976         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55977         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55978         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55979         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55980         (REG_FIXED): Renamed from REGS_FIXED.
55981         (REG_NREGS): Renamed from RE_NREGS.
55982
55983         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55984         of other REG_* macros, since POSIX says the user is allowed to
55985         #undef these macros selectively.
55986
55987         (reg_errcode_t): Update comment stating what other tables need
55988         to be consistent.
55989
55990         Rename the following enum values to obey POSIX requirements.
55991         The old names are still visible as macros.
55992         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55993         is not defined, since GNU is supposed to be a superset of POSIX as
55994         much as possible, and since we want reg_errcode_t to be a signed
55995         type for implementation consistency.
55996         (_REG_NOERROR): Renamed from REG_NOERROR.
55997         (_REG_NOMATCH): Renamed from REG_NOMATCH.
55998         (_REG_BADPAT): Renamed from REG_BADPAT.
55999         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
56000         (_REG_ECTYPE): Renamed from REG_ECTYPE.
56001         (_REG_EESCAPE): Renamed from REG_EESCAPE.
56002         (_REG_ESUBREG): Renamed from REG_ESUBREG.
56003         (_REG_EBRACK): Renamed from REG_EBRACK.
56004         (_REG_EPAREN): Renamed from REG_EPAREN.
56005         (_REG_EBRACE): Renamed from REG_EBRACE.
56006         (_REG_BADBR): Renamed from REG_BADBR.
56007         (_REG_ERANGE): Renamed from REG_ERANGE.
56008         (_REG_ESPACE): Renamed from REG_ESPACE.
56009         (_REG_BADRPT): Renamed from REG_BADRPT.
56010         (_REG_EEND): Renamed from REG_EEND.
56011         (_REG_ESIZE): Renamed from REG_ESIZE.
56012         (_REG_ERPAREN): Renamed from REG_ERPAREN.
56013         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
56014         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
56015         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
56016         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
56017
56018         (_REG_RE_NAME, _REG_RM_NAME): New macros.
56019         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
56020         changed.  But support the old name if the new one is not defined
56021         and if _REGEX_SOURCE.
56022
56023         Change the following member names in struct re_pattern_buffer.
56024         The old names are still supported if !_REGEX_SOURCE.
56025         The new names are always supported, regardless of _REGEX_SOURCE.
56026         (re_buffer): Renamed from buffer.
56027         (re_allocated): Renamed from allocated.
56028         (re_used): Renamed from used.
56029         (re_syntax): Renamed from syntax.
56030         (re_fastmap): Renamed from fastmap.
56031         (re_translate): Renamed from translate.
56032         (re_can_be_null): Renamed from can_be_null.
56033         (re_regs_allocated): Renamed from regs_allocated.
56034         (re_fastmap_accurate): Renamed from fastmap_accurate.
56035         (re_no_sub): Renamed from no_sub.
56036         (re_not_bol): Renamed from not_bol.
56037         (re_not_eol): Renamed from not_eol.
56038         (re_newline_anchor): Renamed from newline_anchor.
56039
56040         Change the following member names in struct re_registers.
56041         The old names are still supported if !_REGEX_SOURCE.
56042         The new names are always supported, regardless of _REGEX_SOURCE.
56043         (rm_num_regs): Renamed from num_regs.
56044         (rm_start): Renamed from start.
56045         (rm_end): Renamed from end.
56046
56047         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
56048         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
56049         Prepend __ to parameter names.
56050
56051         Undo yesterday's changes.
56052
56053 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56054
56055         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
56056         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
56057         lib/regex.c.
56058
56059 2005-08-24  Jim Meyering  <jim@meyering.net>
56060
56061         Sync from coreutils.
56062         * m4/fcntl-safer.m4: New file.
56063
56064         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
56065         and object files for this module.
56066
56067 2005-08-24  Jim Meyering  <jim@meyering.net>
56068
56069         Sync from coreutils.
56070         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
56071
56072 2005-08-24  Jim Meyering  <jim@meyering.net>
56073
56074         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
56075         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
56076
56077 2005-08-24  Jim Meyering  <jim@meyering.net>
56078
56079         * modules/fcntl-safer: New module.
56080         * modules/fts (Depends-on): Add fcntl-safer.
56081         * MODULES.html.sh (File descriptor based Input/Output):
56082         Add fcntl-safer.
56083
56084 2005-08-24  Bruno Haible  <bruno@clisp.org>
56085
56086         Support for unit test modules.
56087         * modules/README: Mention tests modules.
56088         * modules/TEMPLATE-TESTS: New file.
56089         * gnulib-tool: New options --extract-tests-module, --with-tests and
56090         --tests-base (unused for the moment).
56091         (testsbase, inctests): New variables.
56092         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
56093         (func_verify_module): Exclude TEMPLATE-TESTS.
56094         (func_verify_nontests_module, func_verify_tests_module): New functions.
56095         (func_get_dependencies): Add implicit dependency for tests modules.
56096         (func_get_tests_module): New function.
56097         (func_modules_transitive_closure): When --with-tests was specified,
56098         include the unit tests as well, unless explicitly avoided.
56099         (func_emit_lib_Makefile_am): Ignore the tests modules here.
56100         (func_emit_tests_Makefile_am): New function.
56101         (func_create_testdir): When --with-tests was specified, emit a
56102         tests/ directory.
56103         * MODULES.html.sh (Future developments): Update.
56104
56105 2005-08-24  Bruno Haible  <bruno@clisp.org>
56106
56107         * modules/tls-tests: New file.
56108         * tests/test-tls.c: New file, from GNU gettext.
56109
56110 2005-08-24  Bruno Haible  <bruno@clisp.org>
56111
56112         * modules/lock-tests: New file.
56113         * tests/test-lock.c: New file, from GNU gettext.
56114
56115 2005-08-24  Bruno Haible  <bruno@clisp.org>
56116
56117         * lib/lock.h: Add multiple inclusion guard.
56118         * lib/tls.h: Add multiple inclusion guard.
56119
56120 2005-08-24  Bruno Haible  <bruno@clisp.org>
56121
56122         * gnulib-tool: Add support for the --aux-dir option to
56123         --create-testdir, --create-megatestdir, --test, --megatest.
56124         (func_create_testdir, func_create_megatestdir): Optionally emit a
56125         AC_CONFIG_AUX_DIR directive.
56126         (create-testdir, create-megatestdir, test, megatest): Provide a
56127         default value for $auxdir.
56128
56129 2005-08-24  Bruno Haible  <bruno@clisp.org>
56130
56131         * gnulib-tool (import): Use compound statement instead of subshell
56132         where possible.
56133
56134 2005-08-24  Bruno Haible  <bruno@clisp.org>
56135
56136         * gnulib-tool (import): Change --aux-dir default to "build-aux".
56137
56138 2005-08-24  Bruno Haible  <bruno@clisp.org>
56139
56140         * gnulib-tool (func_version): Update.
56141
56142 2005-08-24  Bruno Haible  <bruno@clisp.org>
56143
56144         * gnulib-tool (func_import, func_create_testdir,
56145         func_create_megatestdir): Quote all autoconf macro arguments.
56146
56147 2005-08-24  Bruno Haible  <bruno@clisp.org>
56148
56149         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
56150         option --force, because --force causes the aclocal.m4 of each
56151         subdirectory to be newer than the corresponding config.h.in.
56152
56153 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56154
56155         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56156         All contents moved to gl_REGEX.
56157         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56158         assume that it does.
56159
56160 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56161
56162         * lib/regex.h (REG_NOSYS)
56163         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56164         Define, since POSIX requires it as of 2001.
56165         (_REG_ENOSYS)
56166         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56167         New private symbol, used to keep the enum signed in all cases.
56168         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56169         Youngman in
56170         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56171
56172         * lib/regex_internal.c (re_string_skip_chars, register_state):
56173         (calc_state_hash):
56174         Remove forward decls; no longer needed now that we use prototypes.
56175         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56176         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56177         (clean_state_log_if_needed): Likewise.
56178
56179 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56180
56181         * config/srclist.txt: Add glibc bugs 1231-1233.
56182
56183 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         Fix problems reported by Sam Steingold in
56186         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56187         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56188         assumed that reg_errcode_t is a signed type, which is not
56189         necessarily true if _XOPEN_SOURCE is not defined.
56190         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56191         since some compilers warn about it otherwise.
56192
56193 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56194
56195         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56196         (init_word_char, create_initial_state, duplicate_node_closure):
56197         (fetch_token, peek_token_bracket, build_range_exp):
56198         (build_collating_symbol): Remove forward decls; no longer needed
56199         now that we use prototypes.
56200
56201         * lib/regcomp.c:
56202         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56203         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56204         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56205         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56206         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56207         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56208         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56209         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56210         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56211         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56212         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56213         (build_charclass, build_charclass_op, fetch_number, create_tree):
56214         (create_token_tree, mark_opt_subexp, duplicate_tree):
56215         Use prototypes rather than old-style definitions.
56216
56217         * lib/regex_internal.c:
56218         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56219         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56220         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56221         (re_string_reconstruct, re_string_peek_byte_case):
56222         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56223         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56224         (re_node_set_init_copy, re_node_set_add_intersect):
56225         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56226         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56227         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56228         (re_acquire_state, re_acquire_state_context, register_state):
56229         (create_ci_newstate, create_cd_newstate, free_state):
56230         Likewise.
56231         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56232         re_search_2):
56233         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56234         (re_search_internal, prune_impossible_nodes):
56235         (acquire_init_state_context, check_matching, static):
56236         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56237         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56238         (update_regs, sift_states_backward, build_sifted_states):
56239         (clean_state_log_if_needed, merge_state_array):
56240         (update_cur_sifted_state, add_epsilon_src_nodes):
56241         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56242         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56243         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56244         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56245         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56246         (check_arrival, check_arrival_add_next_nodes):
56247         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56248         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56249         (check_node_accept_bytes, check_node_accept, extend_buffers):
56250         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56251         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56252         (sift_ctx_init):
56253         Likewise.
56254
56255         * lib/regex_internal.h:
56256         (re_string_allocate, re_string_construct, re_string_reconstruct):
56257         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56258         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56259         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56260         (re_string_context_at, re_string_peek_byte_case):
56261         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56262         is defined, since we now use prototypes always.
56263
56264         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56265         C89 or better.  All uses removed.
56266
56267 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56268
56269         * config/srclist.txt: Add glibc bugs 1220-1227.
56270
56271 2005-08-20  Jim Meyering  <jim@meyering.net>
56272
56273         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56274         of unused local, dfa.
56275
56276 2005-08-20  Bruno Haible  <bruno@clisp.org>
56277
56278         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56279
56280 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56281
56282         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56283         (re_node_set_insert_last, re_dfa_add_node):
56284         Rename local variables to avoid GCC shadowing warnings.
56285
56286 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56287
56288         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56289         [defined lint]: Suppress bogus uninitialized-variable warnings.
56290
56291         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56292         and let the caller return REG_ESPACE if out of space.  This
56293         removes an uninitialied-variable warning with GCC 4.0.1, and also
56294         avoids taking the address of a local variable.  All callers
56295         changed.
56296
56297 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56298
56299         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56300         $LIBCSRC/posix/regexec.c.
56301         Add glibc bug 1217 for regcomp.c.
56302
56303 2005-08-19  Jim Meyering  <jim@meyering.net>
56304
56305         * lib/regexec.c (proceed_next_node): Redo local variables to
56306         avoid GCC shadowing warnings.
56307
56308 2005-08-18  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/strstr.c (strstr): Fix return value in multibyte case.
56311         * lib/strcasestr.c (strcasestr): Likewise.
56312
56313 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56314
56315         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56316
56317 2005-08-17  Jim Meyering  <jim@meyering.net>
56318
56319         Make the %s format (seconds since the epoch) work for a negative
56320         number and when used with a zero-padded field width, e.g. %015s.
56321
56322         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56323         label so that it precedes the code to set `digits'.  Otherwise,
56324         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56325         print `00-22'.  Now, it prints `-0022', as it should.
56326
56327 2005-08-17  Bruno Haible  <bruno@clisp.org>
56328
56329         * modules/strstr (Files): Add m4/mbrtowc.m4.
56330         (Depends-on): Add mbuiter.
56331
56332 2005-08-17  Bruno Haible  <bruno@clisp.org>
56333
56334         * modules/strcasestr: New file.
56335         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56336         strcasestr.
56337
56338 2005-08-17  Bruno Haible  <bruno@clisp.org>
56339
56340         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56341
56342 2005-08-17  Bruno Haible  <bruno@clisp.org>
56343
56344         * modules/mbuiter: New file.
56345         * MODULES.html.sh (Extended multibyte and wide character utilities):
56346         Add mbuiter.
56347
56348 2005-08-17  Bruno Haible  <bruno@clisp.org>
56349
56350         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56351         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56352
56353 2005-08-17  Bruno Haible  <bruno@clisp.org>
56354
56355         * m4/strcasestr.m4: New file.
56356
56357 2005-08-17  Bruno Haible  <bruno@clisp.org>
56358
56359         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56360         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56361
56362 2005-08-17  Bruno Haible  <bruno@clisp.org>
56363
56364         * lib/strcasestr.h: New file.
56365         * lib/strcasestr.c: New file.
56366
56367 2005-08-17  Bruno Haible  <bruno@clisp.org>
56368
56369         * lib/strcasecmp.c: Use mbuiter.h.
56370
56371 2005-08-17  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/mbuiter.h: New file.
56374
56375 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56376
56377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56378         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56379         and gl_GETOPT are both invoked via different paths (as happens
56380         with GNU tar CVS because it uses both argp and getopt), the former
56381         wins.
56382
56383 2005-08-16  Bruno Haible  <bruno@clisp.org>
56384
56385         * modules/tls: New file.
56386         * MODULES.html.sh (Multithreading): Add tls.
56387
56388 2005-08-16  Bruno Haible  <bruno@clisp.org>
56389
56390         * modules/strnlen1: New file.
56391         * MODULES.html.sh (String handling): Add strnlen1.
56392
56393 2005-08-16  Bruno Haible  <bruno@clisp.org>
56394
56395         * modules/strcase (Files): Add m4/mbrtowc.m4.
56396         (Depends-on): Add strnlen1, mbchar.
56397
56398 2005-08-16  Bruno Haible  <bruno@clisp.org>
56399
56400         * modules/mbiter: New file.
56401         * MODULES.html.sh (Extended multibyte and wide character utilities):
56402         Add mbiter.
56403
56404 2005-08-16  Bruno Haible  <bruno@clisp.org>
56405
56406         * modules/mbfile: New file.
56407         * MODULES.html.sh (Extended multibyte and wide character utilities):
56408         Add mbfile.
56409
56410 2005-08-16  Bruno Haible  <bruno@clisp.org>
56411
56412         * modules/mbchar: New file.
56413         * MODULES.html.sh (Extended multibyte and wide character utilities):
56414         New section.
56415
56416 2005-08-16  Bruno Haible  <bruno@clisp.org>
56417
56418         * m4/tls.m4: New file, from GNU gettext.
56419
56420 2005-08-16  Bruno Haible  <bruno@clisp.org>
56421
56422         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56423         always.
56424         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56425
56426 2005-08-16  Bruno Haible  <bruno@clisp.org>
56427
56428         * m4/mbiter.m4: New file.
56429
56430 2005-08-16  Bruno Haible  <bruno@clisp.org>
56431
56432         * m4/mbfile.m4: New file.
56433
56434 2005-08-16  Bruno Haible  <bruno@clisp.org>
56435
56436         * m4/mbchar.m4: New file.
56437
56438 2005-08-16  Bruno Haible  <bruno@clisp.org>
56439
56440         * lib/tls.h: New file, from GNU gettext.
56441         * lib/tls.c: New file, from GNU gettext.
56442
56443 2005-08-16  Bruno Haible  <bruno@clisp.org>
56444
56445         * lib/strnlen1.h: New file.
56446         * lib/strnlen1.c: New file.
56447
56448 2005-08-16  Bruno Haible  <bruno@clisp.org>
56449
56450         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56451         (mbi_init): Update.
56452         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56453         NUL byte, not after it.
56454
56455 2005-08-16  Bruno Haible  <bruno@clisp.org>
56456
56457         * lib/strcase.h (strcasecmp): Add note in comments.
56458         * lib/strncasecmp.c: Use code from strcasecmp.c.
56459         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56460         (strcasecmp): Work correctly in multibyte locales.
56461
56462 2005-08-16  Bruno Haible  <bruno@clisp.org>
56463
56464         * lib/mbiter.h: New file.
56465
56466 2005-08-16  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/mbfile.h: New file.
56469
56470 2005-08-16  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/mbchar.h: New file.
56473         * lib/mbchar.c: New file.
56474
56475 2005-08-16  Bruno Haible  <bruno@clisp.org>
56476
56477         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56478         the valid ones. Makes the comparison operations transitive:
56479         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56480         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56481
56482 2005-08-15  Simon Josefsson  <jas@extundo.com>
56483
56484         * modules/ssize_t (License): Change to 'unlimited'.
56485
56486         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56487
56488 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56489
56490         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56491         Add comments for each pending glibc patch.
56492
56493 2005-08-15  Bruno Haible  <bruno@clisp.org>
56494
56495         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56496         __cplusplus is defined.
56497
56498 2005-08-14  Jim Meyering  <jim@meyering.net>
56499
56500         Sync from coreutils.
56501
56502         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56503         Use the hash-table-based cycle-detection code not just when
56504         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56505         Reported by James Youngman in
56506         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56507         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56508         FTS_TIGHT_CYCLE_CHECK.
56509         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56510         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56511         once again.
56512         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56513         * lib/fts.c (fd_safer): Remove decl.
56514         Include fcntl--.h rather than unistd-safer.h
56515         (fts_safe_changedir): Don't call fd_safer; no longer needed
56516         now that we include fcntl--.h.
56517
56518 2005-08-12  Simon Josefsson  <jas@extundo.com>
56519
56520         * modules/getndelim2: Use ssize_t module.
56521         * modules/getnline: Likewise.
56522         * modules/safe-read: Likewise.
56523         * modules/xreadlink: Likewise.
56524
56525         * modules/ssize_t: New file.
56526
56527 2005-08-12  Simon Josefsson  <jas@extundo.com>
56528
56529         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56530
56531 2005-08-12  Simon Josefsson  <jas@extundo.com>
56532
56533         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56534         ssize_t.
56535
56536 2005-08-12  Simon Josefsson  <jas@extundo.com>
56537
56538         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56539         readline, getdelim and check_version.
56540         (Support for systems lacking ISO C 99: Sizes of integer types):
56541         Add size_max.
56542
56543 2005-08-12  Bruno Haible  <bruno@clisp.org>
56544
56545         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56546
56547 2005-08-11  Simon Josefsson  <jas@extundo.com>
56548
56549         * modules/readline: New file.
56550
56551         * modules/strnlen (Files): Add strnlen.h.
56552
56553 2005-08-11  Simon Josefsson  <jas@extundo.com>
56554
56555         * m4/readline.m4: New file.
56556
56557 2005-08-11  Simon Josefsson  <jas@extundo.com>
56558
56559         * lib/readline.h, readline.c: New file.
56560
56561 2005-08-11  Simon Josefsson  <jas@extundo.com>
56562
56563         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56564         gl_AVOID.
56565
56566 2005-08-11  Bruno Haible  <bruno@clisp.org>
56567
56568         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56569
56570 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56571
56572         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56573
56574 2005-08-10  Simon Josefsson  <jas@extundo.com>
56575
56576         * tests/test-iconvme.c: New file.
56577
56578 2005-08-10  Simon Josefsson  <jas@extundo.com>
56579
56580         * m4/strnlen.m4: New file.
56581
56582         * m4/strndup.m4: Don't check for strnlen declaration, done in
56583         strnlen.m4.
56584
56585 2005-08-10  Simon Josefsson  <jas@extundo.com>
56586
56587         * lib/strndup.c: Use strnlen.h.
56588
56589         * lib/strnlen.h: New file.
56590
56591 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56592
56593         * README: Typos.
56594
56595 2005-08-02  Simon Josefsson  <jas@extundo.com>
56596
56597         * modules/readline: New file.
56598
56599 2005-08-02  Simon Josefsson  <jas@extundo.com>
56600
56601         * modules/getdelim: New file.
56602
56603         * modules/getline: Rewrite, don't use getndelim2.
56604
56605 2005-08-02  Simon Josefsson  <jas@extundo.com>
56606
56607         * m4/getline.m4: Separate out getdelim stuff into separate module.
56608
56609         * m4/getdelim.m4: New file.
56610
56611 2005-08-02  Simon Josefsson  <jas@extundo.com>
56612
56613         * lib/getline.h, getline.c: Rewrite.
56614
56615         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56616
56617 2005-07-31  Bruno Haible  <bruno@clisp.org>
56618
56619         * lib/lock.h (gl_lock_initializer): New macro.
56620         (gl_lock_define_initialized): Use it.
56621         (gl_rwlock_initializer): New macro.
56622         (gl_rwlock_define_initialized): Use it.
56623         (gl_recursive_lock_initializer): New macro.
56624         (gl_recursive_lock_define_initialized): Use it.
56625
56626 2005-07-30  Karl Berry  <karl@gnu.org>
56627
56628         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56629         Report from Ben Pfaff, regarding getopt.
56630
56631 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56632
56633         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56634         normal way.
56635         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56636         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56637         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56638         (gl_GETOPT): Use the new macros.  Most of the implementation
56639         is moved to the new macros.  This is for programs like Emacs
56640         that don't want all the functionality of gl_GETOPT.
56641
56642 2005-07-26  Bruno Haible  <bruno@clisp.org>
56643
56644         * m4/lock.m4: Update from GNU gettext.
56645
56646 2005-07-26  Bruno Haible  <bruno@clisp.org>
56647
56648         * lib/lock.h: Update from GNU gettext.
56649         * lib/lock.c: Update from GNU gettext.
56650
56651 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56652
56653         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56654         obsolescent AC_TRY_RUN.  Include the default includes files, for
56655         'exit'.
56656
56657 2005-07-24  Bruno Haible  <bruno@clisp.org>
56658
56659         * modules/visibility: New file.
56660         * MODULES.html.sh (Misc): Add visibility.
56661
56662 2005-07-24  Bruno Haible  <bruno@clisp.org>
56663
56664         * m4/visibility.m4: New file.
56665
56666 2005-07-24  Bruno Haible  <bruno@clisp.org>
56667
56668         * doc/visibility.texi: New file.
56669
56670 2005-07-22  Bruno Haible  <bruno@clisp.org>
56671
56672         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56673         $(ALLOCA_H), redundant through BUILT_SOURCES.
56674         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56675         redundant through BUILT_SOURCES.
56676         * modules/byteswap (Makefile.am): Remove explicit dependency on
56677         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56678         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56679         $(FNMATCH_H), redundant through BUILT_SOURCES.
56680         * modules/getopt (Makefile.am): Remove explicit dependency on
56681         $(GETOPT_H), redundant through BUILT_SOURCES.
56682         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56683         redundant through BUILT_SOURCES.
56684         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56685         redundant through BUILT_SOURCES.
56686         * modules/stdbool (Makefile.am): Remove explicit dependency on
56687         $(STDBOOL_H), redundant through BUILT_SOURCES.
56688         * modules/stdint (Makefile.am): Remove explicit dependency on
56689         $(STDINT_H), redundant through BUILT_SOURCES.
56690         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56691         Remove explicit dependency on $(SYSEXITS_H).
56692         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56693
56694 2005-07-18  Simon Josefsson  <jas@extundo.com>
56695
56696         * lib/check-version.c (check_version): Accept identical versions too.
56697
56698 2005-07-18  Bruno Haible  <bruno@clisp.org>
56699
56700         * modules/lock: New file.
56701         * MODULES.html.sh (Multithreading): New section.
56702
56703 2005-07-18  Bruno Haible  <bruno@clisp.org>
56704
56705         * m4/lock.m4: New file, from GNU gettext.
56706
56707 2005-07-18  Bruno Haible  <bruno@clisp.org>
56708
56709         * lib/lock.h: New file, from GNU gettext.
56710         * lib/lock.c: New file, from GNU gettext.
56711
56712 2005-07-18  Bruno Haible  <bruno@clisp.org>
56713
56714         * lib/lock.h (gl_once_t): New type.
56715         (gl_once_define, gl_once): New macros.
56716         * lib/lock.c (fresh_once): New variable.
56717         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56718         functions.
56719
56720 2005-07-16  Simon Josefsson  <jas@extundo.com>
56721
56722         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56723         workaround, suggested by Bruno.
56724
56725 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56726
56727         * modules/xalloc (Depends-on): Add xalloc-die.
56728         * modules/xvasprintf (Depends-on): Add xalloc-die.
56729
56730 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56731
56732         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56733         with a minor change.
56734
56735 2005-07-15  Bruno Haible  <bruno@clisp.org>
56736
56737         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56738         When using lib/poll.c, define poll as rpl_poll.
56739
56740 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56741
56742         * modules/argp (Depends-on): Remove unlocked-io.
56743
56744 2005-07-14  Derek Price  <derek@ximbiot.com>
56745
56746         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56747         for glob symlink bug.
56748
56749 2005-07-14  Bruno Haible  <bruno@clisp.org>
56750
56751         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56752         Instead, test for *_unlocked function declarations directly.
56753
56754 2005-07-11  Simon Josefsson  <jas@extundo.com>
56755
56756         * modules/size_max: New file.
56757
56758         * modules/xsize: Depend on size_max module for size_max.m4.
56759
56760 2005-07-11  Simon Josefsson  <jas@extundo.com>
56761
56762         * lib/size_max.h: New file.
56763
56764 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56765
56766         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56767         copyright symbol and the year.
56768         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56769         (version_etc_va): Use parameterized copyright notice.
56770         Reword to conform to the current GNU coding standards.
56771
56772 2005-07-11  Karl Berry  <karl@gnu.org>
56773
56774         * doc/gnulib.texi (Quoting): new node.
56775         (Initial import): more info, from Patrice.
56776
56777 2005-07-11  Bruno Haible  <bruno@clisp.org>
56778
56779         * gnulib-tool (func_usage): Document option --avoid.
56780         (Command line options): Handle --avoid.
56781         (func_acceptable): New function.
56782         (func_modules_transitive_closure): Use it.
56783
56784 2005-07-11  Bruno Haible  <bruno@clisp.org>
56785
56786         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56787         Reported by Jim Meyering.
56788
56789 2005-07-10  Bruno Haible  <bruno@clisp.org>
56790
56791         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56792         Needed when size_t is smaller than 'unsigned int'.
56793         Reported by Paul Eggert.
56794
56795 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56796
56797         * modules/argp (Depends-on): Add unlocked-io
56798
56799 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56800
56801         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56802         block of defines.
56803
56804 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56805
56806         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56807         fix now.
56808
56809 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56810         and Paul Eggert  <eggert@cs.ucla.edu>
56811
56812         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56813         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56814
56815 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56816
56817         * modules/regex (Files): Add lib/regex_internal.c,
56818         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56819         (Depends-on): Add extensions.
56820         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56821
56822 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56825         pathconf.
56826         * m4/same.m4 (gl_SAME): Likewise.
56827         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56828
56829         * m4/regex.m4: Adjust to new libc regex implementation.
56830         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56831         all the .c and .h parts of (the new) regex.
56832         Quote the m4 stuff better.
56833         Check for RE_ICASE bug of old gnulib.
56834         Check for REG_STARTEND of recent libc.
56835         Rename local variables from jm_* to gl_*.
56836         Quote operand of "test -f".
56837         Say "recent enough" version of libc, not "version 2".
56838         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56839         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56840         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56841         Remove check for btowc, isascii.
56842         Require AM_LANGINFO_CODESET.
56843
56844 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56845
56846         * lib/regex.c, regex.h: Sync from libc.
56847         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56848         * lib/regexec.c:
56849         New files, synced from libc, except that regex_internal.h
56850         currently has a small porting fix.
56851
56852 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56853
56854         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56855         regex_internal.c, regexec.c.
56856         Add regex_internal.h too, but as a comment, since the libc version
56857         is currently broken in gnulib mode.
56858
56859 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56860
56861         Support programs like Emacs that use gnulib but not gettext.
56862         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56863         * modules/gettext-h: New file.
56864         * modules/gettext (Files): Remove lib/gettext.h.
56865         (Depends-on): Add gettext-h.
56866         (Makefile.am): Remove lib_SOURCES.
56867         * modules/argmatch, modules/c-stack, modules/closeout:
56868         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56869         * modules/execute, modules/file-type, modules/getaddrinfo:
56870         * modules/getopt, modules/human, modules/javacomp:
56871         * modules/javaexec, modules/mkdir-p, modules/obstack:
56872         * modules/openat, modules/pagealign_alloc, modules/pipe:
56873         * modules/quotearg, modules/regex, modules/rpmatch:
56874         * modules/unicodeio, modules/userspec, modules/version-etc:
56875         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56876         * modules/xsetenv:
56877         Depend on gettext-h, not gettext.
56878
56879 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56880
56881         * gnulib-tool (func_import): Add support for 'public domain' license.
56882         * modules/alloca, modules/atexit, modules/memmove:
56883         Now public domain, not GPL.
56884         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56885         * modules/realloc, modules/strerror, modules/strtod:
56886         Now LGPL, not GPL.
56887
56888 2005-07-05  Bruno Haible  <bruno@clisp.org>
56889
56890         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56891         autoconf CVS. Needed for mingw.
56892
56893 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56894
56895         Remove the dependency of the strftime module on the tzset module.
56896         * modules/strftime (Depends-on): Remove dependency on tzset.
56897
56898 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56899
56900         Remove the dependency of the strftime module on the tzset module.
56901         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56902         gl_FUNC_TZSET_CLOBBER.
56903
56904 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56905
56906         Remove the dependency of the strftime module on the tzset module.
56907         * lib/strftime.c (my_strftime)
56908         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56909         Copy the input structure, to work around some of the bug with
56910         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56911         Solaris releases, you should also use the tzset module, but we won't
56912         require it as a dependency any more since we don't want LGPLed code
56913         to depend on GPLed code.
56914
56915 2005-07-02  Jim Meyering  <jim@meyering.net>
56916
56917         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56918         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56919         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56920         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56921
56922 2005-07-02  Jim Meyering  <jim@meyering.net>
56923
56924         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56925
56926 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56927
56928         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56929         declares only 'struct timespec;' (!).
56930
56931 2005-07-01  Jim Meyering  <jim@meyering.net>
56932
56933         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56934         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56935         * lib/save-cwd.c, tempname.c:
56936         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56937         and don't include <sys/file.h>).
56938
56939 2005-06-29  Jim Meyering  <jim@meyering.net>
56940
56941         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56942         type name.  Use the variable name instead.
56943         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56944         Likewise.
56945
56946 2005-06-28  Simon Josefsson  <jas@extundo.com>
56947
56948         * modules/check-version (Files): Add check-version.m4.
56949
56950 2005-06-28  Simon Josefsson  <jas@extundo.com>
56951
56952         * m4/check-version.m4: New file, suggested by Jim Meyering
56953         <jim@meyering.net>.
56954
56955 2005-06-28  Simon Josefsson  <jas@extundo.com>
56956
56957         * lib/check-version.h, lib/check-version.c: New files.
56958
56959 2005-06-28  Simon Josefsson  <jas@extundo.com>
56960
56961         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56962         collision with global variable.  Better indentation.  Don't
56963         increment buffer pointer beyond buffer end.  Based on comments
56964         from Paul Eggert <eggert@cs.ucla.edu>.
56965
56966         * lib/base64.h: Indent.
56967
56968 2005-06-28  Simon Josefsson  <jas@extundo.com>
56969
56970         * doc/gnulib.texi (Library version handling): New section.
56971
56972 2005-06-28  Jim Meyering  <jim@meyering.net>
56973
56974         * check-module (find_included_lib_files): Hard-code another
56975         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56976         but modules/fts-lgpl (correctly) does not list those files.
56977
56978         * modules/canonicalize (Files): Add lib/pathmax.h.
56979
56980 2005-06-25  Simon Josefsson  <jas@extundo.com>
56981
56982         * modules/check-version: New file.
56983
56984 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56985
56986         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56987         initializer of struct addrinfo, as an indication that we don't
56988         care how many members the structure has.
56989
56990 2005-06-24  Derek Price  <derek@ximbiot.com>
56991         and Bruno Haible  <bruno@clisp.org>
56992
56993         Remove stat module & update lstat.
56994         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56995         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56996         * m4/stat.m4: Remove this file.
56997
56998 2005-06-24  Derek Price  <derek@ximbiot.com>
56999         and Bruno Haible  <bruno@clisp.org>
57000
57001         Remove stat module & update lstat.
57002         * lib/stat.c: Remove this file...
57003         (slash_aware_lstat): ...moving this content and its support...
57004         * lib/lstat.c (rpl_lstat): ...into here.
57005         * lib/lstat.h: New file.
57006
57007 2005-06-24  Derek Price  <derek@ximbiot.com>
57008         and Bruno Haible  <bruno@clisp.org>
57009
57010         Remove stat module & update lstat.
57011         * config/srclist.txt (libc sources): Remove stat.
57012
57013 2005-06-24  Derek Price  <derek@ximbiot.com>
57014         and Bruno Haible  <bruno@clisp.org>
57015
57016         Remove stat module & update lstat.
57017         * MODULES.html.sh (stat): Remove.
57018         * MODULES.html: Regenerated.
57019         * modules/lstat (Description): Correct function name.
57020         (Files): Add "lstat.h".
57021         (Depends-on): Remove stat, add xalloc, stat-macros.
57022         * modules/stat: Remove this file.
57023         (Include): Add "lstat.h", remove <sys/stat.h>.
57024
57025 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57026
57027         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
57028         (ranged_convert): Don't save conversion in a temporary struct.
57029         This causes a warning with GCC 4.0.0, and anyway in the typical
57030         case it's not worth the extra 100 bytes or so of code.
57031         (ranged_convert, __mktime_internal): When calling a function via a
57032         pointer P, use P () rather than (*P) (), as we now assume C89 or
57033         better.
57034
57035 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57036
57037         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
57038         "who -r" failed to give output.  Problem reported by Tim Waugh.
57039
57040         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
57041         (xcalloc): Use it to avoid needless tests.
57042         Problem reported by Jim Meyering.
57043
57044 2005-06-20  Derek Price  <derek@ximbiot.com>
57045
57046         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
57047         unnecessary for Autoconfs > 2.59c.
57048
57049 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57050
57051         * lib/argp.h (__option_is_short): Check upper limit of
57052         __key. Isprint() requires its argument to have the value
57053         of an unsigned char or EOF.
57054
57055 2005-06-16  Jim Meyering  <jim@meyering.net>
57056
57057         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
57058         when either N or S is zero.
57059
57060 2005-06-16  Derek Price  <derek@ximbiot.com>
57061
57062         * m4/bison.m4: Declare YACC & YFLAGS precious.
57063
57064 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
57065
57066         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
57067         multibyte string or pattern, fall back on unibyte matching.
57068         Problem reported by James Youngman.
57069
57070 2005-06-08  Bruno Haible  <bruno@clisp.org>
57071
57072         * modules/csharpcomp: New file.
57073         * MODULES.html.sh (C#): Add csharpcomp.
57074
57075 2005-06-08  Bruno Haible  <bruno@clisp.org>
57076
57077         * m4/csharpcomp.m4: New file, from GNU gettext.
57078
57079 2005-06-08  Bruno Haible  <bruno@clisp.org>
57080
57081         * lib/csharpcomp.h: New file, from GNU gettext.
57082         * lib/csharpcomp.c: New file, from GNU gettext.
57083         * lib/csharpcomp.sh.in: New file, from GNU gettext.
57084
57085 2005-06-08  Bruno Haible  <bruno@clisp.org>
57086
57087         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
57088         warning on mingw.
57089
57090 2005-06-07  Derek Price  <derek@ximbiot.com>
57091
57092         Sync from CVS.
57093         * lib/glob_.h: Indent nested #ifdef.
57094
57095 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         Sync from coreutils.
57098         Use "file name" when talking about file names, instead of "filename"
57099         or "path", as per the GNU coding standards.
57100         * lib/mkdir-p.c: Renamed from makepath.c.
57101         (make_dir_parents): Renamed from make_path.  All callers changed.
57102         * lib/mkdir-p.h: Likewise.  All includers changed.
57103         * lib/filenamecat.c: Renamed from path-concat.c.
57104         (file_name_concat): Renamed from path_concat.  All callers changed.
57105         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
57106         * lib/filenamecat.h: Likewise.  All includers changed.
57107         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
57108         in comments or local variable names.
57109         * lib/basename.c: Likewise.
57110         * lib/canonicalize.c, canonicalize.h: Likewise.
57111         * lib/dirname.c, dirname.h: Likewise.
57112         * lib/euidaccess.c: Likewise.
57113         * lib/exclude.c: Likewise
57114         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
57115         * lib/fsusage.c, fsuage.h: Likewise.
57116         * lib/fts.c, fts_.h: Likewise.
57117         * lib/getcwd.c: Likewise.
57118         * lib/getloadavg.c: Likewise.
57119         * lib/mkstemp.c: Likewise.
57120         * lib/mountlist.c, mountlist.h: Likewise.
57121         * lib/openat.c, openat.h: Likewise.
57122         * lib/readlink-stub.c: Likewise.
57123         * lib/readutmp.c, readutmp.h: Likewise.
57124         * lib/rename.c: Likewise.
57125         * lib/rmdir.c: Likewise.
57126         * lib/same.c: Likewise.
57127         * lib/savedir.c: Likewise.
57128         * lib/stripslash.c: Likewise.
57129         * lib/tempname.c: Likewise.
57130         * lib/xreadlink.c: Likewise.
57131         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
57132         All uses changed.
57133         * lib/exclude.h: Likewise.
57134
57135         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
57136         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57137         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
57138         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57139         * lib/pathmax.h: Include <limits.h> unconditionally, since other
57140         files have been getting away with it for years (MORE/BSD 4.3
57141         is extinct now).
57142         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
57143         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57144
57145         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
57146         Define to 256, not 255, as per modern POSIX.
57147
57148 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57149
57150         Sync from coreutils.
57151         Use "file name" when talking about file names, instead of "filename"
57152         or "path", as per the GNU coding standards.
57153         * MODULES.html.sh: mkdir-p renamed from makepath.
57154         filenamecat renamed from path-concat.
57155         * modules/filenamecat: Renamed from modules/path-concat.
57156         (Files): filenamecat.h and filenamecat.c renamed from
57157         path-concat.h and path-concat.c.
57158         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57159         (Include): filenamecat.h, not path-concat.h.
57160         * modules/mkdir-p: Renamed from modules/makepath.
57161         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57162         makepath.c.
57163         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57164         (Include): mkdir-p.h, not makepath.h.
57165
57166 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57167
57168         Sync from coreutils.
57169         * m4/mkdir-p.m4: Renamed from makepath.m4.
57170         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57171         Rename files from makepath.c to mkdir-p.c, and from
57172         makepath.h to mkdir-p.h.
57173         * m4/filenamecat.m4: Renamed from path-concat.m4.
57174         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57175         Rename files from path-concat.c to filenamecat.c,
57176         and from path-concat.h to filenamecat.h.
57177         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57178         "file name" in local variables or comments.
57179         * m4/rename.m4: Likewise.
57180
57181 2005-06-01  Bruno Haible  <bruno@clisp.org>
57182
57183         * modules/csharpexec: New file.
57184         * MODULES.html.sh (C#): New section.
57185
57186 2005-06-01  Bruno Haible  <bruno@clisp.org>
57187
57188         * m4/csharp.m4: New file, from GNU gettext.
57189         * m4/csharpexec.m4: New file, from GNU gettext.
57190
57191 2005-06-01  Bruno Haible  <bruno@clisp.org>
57192
57193         * lib/csharpexec.h: New file, from GNU gettext.
57194         * lib/csharpexec.c: New file, from GNU gettext.
57195         * lib/csharpexec.sh.in: New file, from GNU gettext.
57196
57197 2005-05-31  Derek Price  <derek@ximbiot.com>
57198             Paul Eggert  <eggert@cs.ucla.edu>
57199
57200         Sync from cvs.
57201         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57202
57203 2005-05-31  Derek Price  <derek@ximbiot.com>
57204             Paul Eggert  <eggert@cs.ucla.edu>
57205
57206         Sync from cvs.
57207         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57208
57209 2005-05-29  Derek Price  <derek@ximbiot.com>
57210
57211         * config/srclist.txt (glob_.h, glob.c): Add these files.
57212
57213 2005-05-29  Derek Price  <derek@ximbiot.com>
57214
57215         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57216         * modules/glob: New file.
57217         * modules/getlogin_r: Add link to POSIX spec in description.
57218
57219 2005-05-29  Derek Price  <derek@ximbiot.com>
57220             Paul Eggert  <eggert@cs.ucla.edu>
57221
57222         * m4/glob.m4: New file.
57223
57224 2005-05-29  Derek Price  <derek@ximbiot.com>
57225             Paul Eggert  <eggert@cs.ucla.edu>
57226
57227         * lib/glob_.h, lib/glob.c: New files.
57228
57229 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57230
57231         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57232         * modules/fts-lgpl (Depends-on): Remove gettext.
57233
57234 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57235
57236         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57237         and don't require gt_INTTYPES_PRI.
57238
57239 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57240
57241         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57242
57243         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57244         the configuration hassle isn't worth it.
57245         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57246         (LONGEST_MODIFIER, PRIuMAX): Remove.
57247
57248 2005-05-27  Bruno Haible  <bruno@clisp.org>
57249
57250         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57251
57252 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57253
57254         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57255         _POSIX_PTHREAD_SEMANTICS for Solaris.
57256
57257 2005-05-25  Derek Price  <derek@ximbiot.com>
57258
57259         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57260
57261 2005-05-25  Derek Price  <derek@ximbiot.com>
57262             Paul Eggert  <eggert@cs.ucla.edu>
57263
57264         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57265         * lib/getlogin_r.c, getlogin_r.h: New files.
57266
57267 2005-05-25  Bruno Haible  <bruno@clisp.org>
57268             Derek Price  <derek@ximbiot.com>
57269
57270         * lib/getlogin_r.h: Simplify API documentation.
57271
57272 2005-05-23  Derek Price  <derek@ximbiot.com>
57273
57274         * modules/minmax (Files): Add m4/minmax.m4.
57275         (configure.ac): Add gl_MINMAX.
57276
57277 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57278
57279         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57280         so that unistd-safer.h (GPL'ed code) need not be included.
57281
57282 2005-05-22  Bruno Haible  <bruno@clisp.org>
57283
57284         * m4/minmax.m4: New file.
57285         Based on a patch by Derek Price <derek@ximbiot.com>.
57286
57287 2005-05-22  Bruno Haible  <bruno@clisp.org>
57288
57289         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57290         (INT64_MIN): Fix definition.
57291         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57292
57293         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57294         NEED_SIGNED_INT_TYPES.
57295
57296         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57297         HAVE_SYSTEM_INTTYPES.
57298
57299 2005-05-22  Bruno Haible  <bruno@clisp.org>
57300
57301         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57302         Also include <sys/param.h> if it defines MIN, MAX.
57303         Based on a patch by Derek Price <derek@ximbiot.com>.
57304
57305 2005-05-21  Jim Meyering  <jim@meyering.net>
57306
57307         * modules/fts (Files): Add m4/inttypes-pri.m4.
57308         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57309
57310 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57311
57312         New fts module.
57313         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57314         (setup_dir, free_dir): New functions.
57315         (enter_dir, leave_dir): Define trivial
57316         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57317         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57318         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57319         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57320         Move to fts-cycle.c.
57321         (fts_open): Use setup_dir.
57322         (fts_close): Use free_dir.
57323         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57324         This adds a label and some gotos, but the alternatives were messier.
57325         Check for memory allocation failure when entering a dir.
57326         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57327         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57328         (FTS): New member fts_cycle, that is a union that contains the
57329         old active_dir_ht and cycle_state.  All uses changed to mention
57330         fts_cycle.ht and fts_cycle.state.
57331         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57332         fts.c, with the following changes:
57333         (setup_dir, free_dir): New functions.
57334         (enter_dir): Now returns bool.  Return true if successful, false
57335         if memory exhausted.  All callers changed.
57336         Do not bother partly cleaning up on
57337         memory allocation failure; that is free_dir's job.
57338         However, free ad if hash_insert fails, to avoid memory leak.
57339         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57340         fts->fts_options to see which union member to use.
57341
57342 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57343
57344         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57345         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57346
57347 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57348
57349         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57350
57351 2005-05-20  Jim Meyering  <jim@meyering.net>
57352
57353         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57354         Now a macro, to pacify GCC.
57355
57356 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57357
57358         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57359         of -1.
57360
57361 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57362
57363         * lib/chown.c (rpl_chown): Return -1 on failure.
57364
57365 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57366
57367         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57368         Don't check for stddef.h.
57369         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57370         don't use its results.
57371         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57372         since we include them unconditionally.  Don't require
57373         AM_STDBOOL_H, since stdbool is a prerequisite.
57374         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57375         since we assume C89 or better.
57376         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57377         as we don't use their results.
57378         Don't check for fchdir, memmove, memset, strrchr, as we use
57379         them unconditionally.
57380         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57381         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57382
57383 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57384
57385         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57386         Include <stddef.h> unconditionally, since we assume C89 now.
57387         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57388         * lib/fts.c: Include fts_.h first, to check interface.
57389         Do not include intprops.h; no longer needed.
57390         Include cycle-check.h and hash.h, since fts_.h no longer does.
57391         Remove unnecessary casts of closedir to void.
57392         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57393         decide whether to decrement nlinks.
57394         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57395         (FTS): Use struct hash_table * instead of Hash_table, so that
57396         we no longer need to include hash.h here.
57397
57398 2005-05-18  Jim Meyering  <jim@meyering.net>
57399
57400         * modules/dirfd (License): Change to LGPL.  Most of the code
57401         is already in the public domain.
57402
57403 2005-05-18  Jim Meyering  <jim@meyering.net>
57404
57405         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57406         Reported by Yoann Vandoorselaere.
57407
57408 2005-05-17  Jim Meyering  <jim@meyering.net>
57409
57410         * m4/fts.m4: New file, from coreutils.
57411
57412 2005-05-17  Jim Meyering  <jim@meyering.net>
57413
57414         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57415
57416 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57417
57418         Sync from coreutils.
57419         * m4/unlinkdir.m4: New file.
57420
57421 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57422
57423         Sync from coreutils.
57424         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57425         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57426         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57427         White space changes only.
57428         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57429         special.
57430         * lib/yesno.c: Include getline.h, not ctype.h.
57431         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57432         Use getline to remove arbitrary restriction on response length.
57433
57434 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57435
57436         * config/srclist-update: Spell out "Street" in FSF postal
57437         mail address; this is the style the FSF seems to prefer.
57438
57439         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57440         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57441         this updates FSF postal mail address.
57442
57443         Sync from coreutils.
57444         * modules/unlinkdir: New file.
57445         * modules/yesno (Depends-on): Add getline.
57446         * MODULES.html.sh (File system functions): Add unlinkdir.
57447
57448 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57449
57450         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57451         lib/strsep.h:
57452         Change the initial comment to refer to GPL, not LGPL.
57453         gnulib-tool will change it to LGPL as needed.
57454
57455         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57456         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57457         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57458         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57459         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57460         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57461         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57462         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57463         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57464         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57465         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57466         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57467         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57468         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57469         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57470         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57471         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57472         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57473         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57474         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57475         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57476         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57477         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57478         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57479         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57480         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57481         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57482         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57483         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57484         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57485         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57486         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57487         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57488         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57489         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57490         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57491         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57492         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57493         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57494         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57495         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57496         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57497         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57498         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57499         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57500         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57501         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57502         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57503         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57504         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57505         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57506         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57507         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57508         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57509         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57510         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57511         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57512         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57513         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57514         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57515         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57516         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57517         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57518         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57519         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57520         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57521         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57522         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57523         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57524         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57525         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57526         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57527         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57528         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57529         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57530         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57531         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57532         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57533         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57534         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57535         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57536         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57537         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57538         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57539         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57540         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57541         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57542         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57543         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57544         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57545         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57546         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57547         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57548         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57549         lib/yesno.c, lib/yesno.h:
57550         Update FSF postal mail address.
57551
57552 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57553
57554         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57555         tests/test-memmem.c, tests/test-stpncpy.c:
57556         Update FSF postal mail address.
57557
57558 2005-05-13  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57561         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57562         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57563         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57564         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57565         Add support for 64-bit integers in the MSVC compiler.
57566
57567 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57568
57569         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57570
57571 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57572
57573         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57574
57575 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57576
57577         * doc/getdate.texi (General date syntax): Don't say that date
57578         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57579         Problem reported by Nic Ferrier.
57580
57581 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57582
57583         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57584         specified in ai_socktype. Fix invalid ai_protocol
57585         check. ai_protocol is usually set to 0 or depending on
57586         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57587         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57588         ai_socktype / ai_protocol in the returned addrinfo structure.
57589
57590 2005-05-10  Simon Josefsson  <jas@extundo.com>
57591
57592         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57593         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57594
57595 2005-05-10  Karl Berry  <karl@gnu.org>
57596
57597         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57598         (from http://www.gnu.org/licenses).
57599         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57600         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57601         fdl.texi suffices.
57602
57603 2005-05-10  Karl Berry  <karl@gnu.org>
57604
57605         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57606         (COPYING.DOC): remove.
57607
57608         * config/srclist-update: new FSF address.
57609
57610 2005-05-10  Derek Price  <derek@ximbiot.com>
57611
57612         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57613         possible.
57614
57615 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57616             Bruno Haible  <bruno@clisp.org>
57617
57618         * modules/inet_ntop: New file.
57619         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57620         inet_ntop.
57621
57622 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57623             Bruno Haible  <bruno@clisp.org>
57624
57625         * m4/inet_ntop.m4: New file.
57626
57627 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57628             Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/inet_ntop.h: New file.
57631         * lib/inet_ntop.c: New file, from glibc with modifications.
57632
57633 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57634
57635         * modules/time_r (License): Change to LGPL.
57636         * modules/extensions (License): Change to LGPL.  Actually,
57637         the license is more permissive than that, but currently gnulib-tool
57638         doesn't know how to handle more-permissive licenses.
57639
57640         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57641         Problem reported by Dave Love.
57642
57643 2005-05-08  Jim Meyering  <jim@meyering.net>
57644
57645         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57646         blank.
57647
57648 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57649
57650         * modules/argmatch (Depends-on): Add stdbool.
57651         * modules/backupfile (Depends-on): Likewise.
57652         * modules/chdir-long (Depends-on): Likewise.
57653         * modules/closeout (Depends-on): Likewise.
57654         * modules/cycle-check (Depends-on): Likewise.
57655         * modules/dirname (Depends-on): Likewise.
57656         * modules/fnmatch (Depends-on): Likewise.
57657         * modules/fsusage (Depends-on): Likewise.
57658         * modules/fwriteerror (Depends-on): Likewise.
57659         * modules/getcwd (Depends-on): Likewise.
57660         * modules/getloadavg (Depends-on): Likewise.
57661         * modules/hard-locale (Depends-on): Likewise.
57662         * modules/makepath (Depends-on): Likewise.
57663         * modules/mountlist (Depends-on): Likewise.
57664         * modules/nanosleep (Depends-on): Likewise.
57665         * modules/posixtm (Depends-on): Likewise.
57666         * modules/quotearg (Depends-on): Likewise.
57667         * modules/readtokens (Depends-on): Likewise.
57668         * modules/readtokens0 (Depends-on): Likewise.
57669         * modules/readutmp (Depends-on): Likewise.
57670         * modules/save-cwd (Depends-on): Likewise.
57671         * modules/strftime (Depends-on): Likewise.
57672         * modules/userspec (Depends-on): Likewise.
57673         * modules/utimecmp (Depends-on): Likewise.
57674         * modules/xgetcwd (Depends-on): Likewise.
57675         * modules/xnanosleep (Depends-on): Likewise.
57676         * modules/xstrtod (Depends-on): Likewise.
57677         * modules/yesno (Depends-on): Likewise.
57678
57679 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57680
57681         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57682         needless checks.
57683
57684 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57685
57686         Merge from coreutils.  Among other things,
57687         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57688         * lib/fd-safer.c: New file.
57689         * lib/fcntl-safer.h, open-safer.c: Remove.
57690         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57691         * lib/dup-safer.c: Include unistd-safer.h first.
57692         Don't include errno.h.
57693         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57694         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57695         * lib/file-type.c: Rely on file-type.h change.
57696         * lib/getloadavg.c: Include unistd-safer.h.
57697         (getloadavg): Use safer open.
57698         * lib/getusershell.c: Include "stdio-safer.h".
57699         (getusershell): Use safer fopen.
57700         * lib/long-options.c (long_options): Use NULL rather than 0.
57701         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57702         'free'.
57703         * lib/modechange.c: Likewise.
57704         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57705         (MODE_DONE): New constant.
57706         (struct mode_change): Remove 'next' member.
57707         (make_node_op_equals): New function; like the old one of the
57708         same name, except it allocates an array.
57709         (mode_compile, mode_create_from_ref): Use it.
57710         (mode_compile): Allocate result as an array, not a linked list.
57711         Parse octal string ourself, so that we catch mistakes like "+0".
57712         (mode_adjust): Arg is an array, not a linked list.
57713         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57714         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57715         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57716         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57717         Remove.  This is now stat-macros.h's job.
57718         (talloc): Remove.  All callers replaced by xalloc, so that
57719         our invokers don't have to worry about reporting memory failures.
57720         (make_node_op_equals): Remove.
57721         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57722         New constants.
57723         (struct mode_change): Moved here from modechange.h.
57724         (mode_append_entry): Remove.
57725         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57726         apps to have incorrect behavior.  Use simpler algorithm for head
57727         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57728         Detect more invalid usages rather than having somewhat-random behavior.
57729         Don't insert an "a=" action, as that leads to incorrect behavior.
57730         (mode_compile, mode_create_from_ref): Return NULL on error instead
57731         of an enum, since now there's only one way to have an error.  All
57732         callers changed.
57733         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57734         at the correct time.  Simplify calculation of "+u" and its ilk.
57735         Don't mishandle "+X".
57736         (mode_free): Remove "register" and localize decls.
57737         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57738         (struct mode_change): Move to modechange.c; callers don't
57739         need to see this stuff.
57740         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57741         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57742         (mode_change, mode_adjust): Reflect the new signatures noted above.
57743         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57744         that might redefine system include files.
57745         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57746         (my_usleep): Use NULL rather than (void *) 0.
57747         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57748         Use siginterrupt to specify that system calls should be interrupted.
57749         (rpl_nanosleep): Move initialization of suspended closer to call of
57750         my_usleep.
57751         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57752         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57753         (desirable_utmp_entry): New function.
57754         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57755         using x2nrealloc, to simplify logic.
57756         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57757         size calculation.  Do not assume utmp file is a regular file.
57758         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57759         (READ_UTMP_CHECK_PIDS): New constant.
57760         * lib/save-cwd.c: Include unistd-safer.h.
57761         (save_cwd): Use fd_safer.
57762         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57763         [!_LIBC] Include "stat-macros.h" instead.
57764         * lib/unistd-safer.h (fd_safer): New decl.
57765
57766 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57767
57768         * modules/getloadavg (Depends-on): Add unistd-safer.
57769         * modules/getusershell (Depends-on): Add stdio-safer.
57770         * modules/lstat (Depends-on): Remove xalloc.
57771         * modules/mkstemp (Depends-on): Add stat-macros.
57772         * modules/modechange (Depends-on): Remove xstrtol.
57773         Add stat-macros, xalloc.
57774         * modules/save-cwd (Depends-on): Add unistd-safer.
57775         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57776         * modules/unistd-safer (Files): Add lib/fd-safer.c
57777         (Makefile.am): Remove lib_SOURCES.
57778
57779         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57780         Remove fcntl-safer; unistd-safer supersedes it.
57781
57782 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57783
57784         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57785         AC_HEADER_STAT.
57786         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57787         (gl_PREREQ_CHOWN): Remove.
57788         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57789         it.  Don't require AC_HEADER_STAT.
57790         (gl_PREREQ_LSTAT): Remove.
57791         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57792         Don't require AC_HEADER_STAT.
57793         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57794         (gl_PREREQ_RMDIR): Remove.
57795         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57796         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57797         the stat-macros module a prerequisite.
57798         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57799         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57800         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57801         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57802         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57803         variable names.
57804         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57805         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57806         variable prefixes.
57807         * m4/fcntl-safer.m4: Remove.
57808         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57809         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57810         Invoke gl_PREREQ_FD_SAFER.
57811         (gl_PREREQ_FD_SAFER): New macro.
57812         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57813         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57814         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57815         Remove duplicate call to AC_LIBOBJ(readutmp).
57816         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57817
57818         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57819         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57820
57821 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57822
57823         * MODULES.html.sh (Misc): Add byteswap.
57824
57825 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57826
57827         * modules/getcwd (Depends-on): Add extensions.
57828         * modules/openat (Depends-on): Likewise.
57829
57830 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57831
57832         * modules/byteswap: New file.
57833
57834 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57835
57836         * m4/byteswap.m4: New file.
57837
57838 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57839
57840         * lib/byteswap_.h: New file.
57841
57842 2005-04-25  Karl Berry  <karl@gnu.org>
57843
57844         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57845
57846 2005-04-25  Albert Chin  <china@thewrittenword.com>
57847
57848         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57849         Toolkit C bug.
57850
57851 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57852
57853         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57854         (func_ln_if_changed) Remove forcibly for no error message
57855         in case file does not exist.
57856
57857 2005-04-19  Simon Josefsson  <jas@extundo.com>
57858
57859         * gnulib-tool (Options): Make --symlink mean --symbolic.
57860
57861 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57862
57863         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57864
57865 2005-04-16  Simon Josefsson  <jas@extundo.com>
57866
57867         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57868
57869 2005-04-15  Simon Josefsson  <jas@extundo.com>
57870
57871         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57872
57873 2005-04-15  Simon Josefsson  <jas@extundo.com>
57874
57875         * gnulib-tool: Rename --symlink to --symbolic.
57876
57877 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57878
57879         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57880         symbolic links to files instead of copying/moving.  Add --aux-dir,
57881         specifying directory relative --dir where auxiliary build tools
57882         are placed.
57883
57884 2005-04-14  Bruno Haible  <bruno@clisp.org>
57885
57886         * modules/allocsa (License): Change to LGPL.
57887         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57888
57889 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57890
57891         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57892         that "UTC +1 second" continues to work.  Problem reported
57893         by Dmitry V. Levin.
57894         (relunit_snumber): New rule.
57895         (relunit): Use it.
57896
57897 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57898
57899         * lib/getdate.y (universal_time_zone_table): New constant.
57900         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57901         universal_time_zone_table.
57902         (lookup_zone): Prefer universal_time_zone_table to
57903         local_time_zone_table, so that "GMT" time stamps are allowed in
57904         London during the summer.  Problem reported by Ian Abbott.
57905
57906 2005-04-12  Jim Meyering  <jim@meyering.net>
57907
57908         * lib/human.c (humblock): Set *options even when returning due to
57909         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57910         warning from gcc-4.
57911
57912 2005-04-09  Jim Meyering  <jim@meyering.net>
57913
57914         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57915         -Wuninitialized: initialize tm0.tm_year.
57916
57917 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57918
57919         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57920         count, since there's no maximum.  All uses changed.
57921         Add member dsts_seen.
57922         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57923         not being INT_MAX.
57924         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57925         Use pc_rels_seen to decide whther a date is absolute.
57926
57927         * lib/getdate.y (number): Don't overwrite year.
57928         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57929         check.
57930
57931 2005-04-02  Simon Josefsson  <jas@extundo.com>
57932
57933         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57934         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57935
57936 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57937
57938         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57939         where no absolute path name can be longer than PATH_MAX.
57940
57941 2005-03-27  Jim Meyering  <jim@meyering.net>
57942
57943         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57944
57945 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57946
57947         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57948         "one's complement" -> "ones' complement" in comment, as per Knuth.
57949         "value of type" -> "type or expression" in comment.
57950         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57951
57952 2005-03-26  Jim Meyering  <jim@meyering.net>
57953
57954         Comment nits.
57955         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57956         Correct typos: s/or/of/.
57957
57958 2005-03-26  Jim Meyering  <jim@meyering.net>
57959
57960         * modules/check-include-files: Move to ../ and rename to...
57961         * check-module: ...this.
57962
57963 2005-03-25  Jim Meyering  <jim@meyering.net>
57964
57965         * modules/xvasprintf (Files): Add xalloc.h.
57966
57967 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * modules/gettext (Files): config/config.rpath ->
57970         build-aux/config.rpath
57971         * modules/iconv (Files): Likewise.
57972         Problem reported by Oskar Liljeblad.
57973
57974 2005-03-23  Jim Meyering  <jim@meyering.net>
57975
57976         * modules/check-include-files: New script to check for
57977         missing dependencies, multiple includes, etc.
57978
57979         * modules/c-strtold (Depends-on): Add xalloc.
57980         * modules/c-strtod (Depends-on): Add xalloc.
57981         * modules/hash (Depends-on): Add xalloc.
57982         (Files): Remove lib/xalloc.h.
57983
57984         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57985         * modules/userspec (Files): Add lib/inttostr.h.
57986
57987 2005-03-23  Jim Meyering  <jim@meyering.net>
57988
57989         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57990
57991 2005-03-22  Jim Meyering  <jim@meyering.net>
57992
57993         * modules/stat-macros: New module.
57994         * modules/canonicalize, modules/euidaccess, modules/file-type,
57995         * modules/filemode, modules/lchown, modules/makepath,
57996         * modules/rmdir, modules/stat: Depend on new stat-macros module
57997         rather than listing lib/stat-macros.h manually.
57998         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
57999
58000 2005-03-22  Jim Meyering  <jim@meyering.net>
58001
58002         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
58003
58004 2005-03-22  Bruno Haible  <bruno@clisp.org>
58005
58006         * config/srclist.txt: Replace target directory 'config' with
58007         'build-aux'.
58008         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
58009         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
58010         ../build-aux/.
58011
58012 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
58013
58014         * modules/chdir-long (Depends-on): Add mempcpy.
58015
58016         * modules/acl, modules/backupfile, modules/c-strtod,
58017         modules/c-strtold, modules/canon-host, modules/canonicalize,
58018         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
58019         modules/exclude, modules/exitfail, modules/file-type,
58020         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
58021         modules/getdate, modules/getline, modules/getpagesize,
58022         modules/getpass, modules/getugroups, modules/group-member,
58023         modules/hard-locale, modules/hash, modules/human, modules/idcache,
58024         modules/inttostr, modules/long-options, modules/makepath,
58025         modules/md5, modules/memcasecmp, modules/memcoll,
58026         modules/modechange, modules/mountlist, modules/path-concat,
58027         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
58028         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
58029         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
58030         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
58031         modules/strftime, modules/strndup, modules/strverscmp,
58032         modules/timespec, modules/unlocked-io, modules/userspec,
58033         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
58034         modules/yesno:
58035         Remove lib_SOURCES line from Makefile.am section, as this is now
58036         done automatically by the corresponding Autoconf macro.
58037
58038 2005-03-21  Jim Meyering  <jim@meyering.net>
58039
58040         Changes imported from coreutils.
58041
58042         * lib/cycle-check.c: Don't include xalloc.h.
58043
58044         * lib/path-concat.c: Don't include assert.h.
58045         (path_concat): Remove assertion that would have triggered
58046         for ABASE starting with more than one slash.
58047         Reported by Andreas Schwab.
58048
58049         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
58050         properly when ABASE is an absolute file name.
58051         Correct the description of this function.
58052         Include <assert.h>.
58053         Add an assertion and a test driver.
58054         This fixes a bug introduced on 2004-07-02.
58055         Andreas Schwab reported the resulting failure of cp --parents:
58056         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
58057
58058 2005-03-21  Jim Meyering  <jim@meyering.net>
58059
58060         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
58061         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
58062
58063 2005-03-21  Jim Meyering  <jim@meyering.net>
58064         and  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
58067         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
58068         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
58069         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
58070         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
58071         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
58072         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
58073         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
58074         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
58075         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
58076         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
58077         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
58078         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
58079         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
58080         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
58081         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
58082         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
58083         for these modules.
58084
58085 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
58086
58087         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
58088         (which shouldn't happen), generate nothing instead of returning 0
58089         immediately, so that nstrftime (NULL, ...) doesn't return 0.
58090
58091 2005-03-16  Bruno Haible  <bruno@clisp.org>
58092
58093         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
58094         HAVE_LONGLONG_64BIT.
58095
58096 2005-03-16  Bruno Haible  <bruno@clisp.org>
58097
58098         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
58099         HAVE_LONGLONG_64BIT.
58100
58101 2005-03-16  Bruno Haible  <bruno@clisp.org>
58102
58103         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
58104         HAVE_LONGLONG_64BIT.
58105
58106 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58107
58108         * lib/strftime.c (my_strftime): Prepend space to format so that we can
58109         reliably distinguish strftime failure from empty output on POSIX
58110         hosts.
58111
58112 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58113
58114         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
58115         (iconv_string): Don't guess a size-zero buffer, as that might cause
58116         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
58117         result would be 'too large', where 'too large' is (heuristically)
58118         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
58119         overflow concerns.  This will prevent some unwanted malloc failures
58120         when the inputs are very large.
58121
58122 2005-03-15  Karl Berry  <karl@gnu.org>
58123
58124         * config/srclist.txt (config.rpath): from gettext.
58125         * config/config.rpath: update.
58126
58127 2005-03-15  Bruno Haible  <bruno@clisp.org>
58128
58129         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
58130         to 'negate'.
58131
58132         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
58133         variable.
58134
58135         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
58136         results.
58137
58138 2005-03-14  Simon Josefsson  <jas@extundo.com>
58139
58140         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
58141         <fx@gnu.org>.
58142
58143 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
58144
58145         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
58146         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
58147         intprops.h.
58148         * lib/strtol.c: Likewise.
58149
58150 2005-03-14  Jim Meyering  <jim@meyering.net>
58151
58152         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
58153         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
58154         to be nonzero so that we (and caller) can detect the difference
58155         between a valid zero-length expansion and an error return, even
58156         when the underlying strftime fails before writing anything into
58157         that location.
58158
58159 2005-03-14  Bruno Haible  <bruno@clisp.org>
58160
58161         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58162         Update from GNU gettext 0.14.3.
58163
58164 2005-03-10  Jim Meyering  <jim@meyering.net>
58165
58166         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58167
58168 2005-03-10  Jim Meyering  <jim@meyering.net>
58169
58170         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58171         so that this module works on systems without fchdir.
58172
58173 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58174
58175         Factor int-properties macros into a single file, except for
58176         glibc-related files.
58177         * lib/intprops.h: New file.
58178         * lib/getloadavg.c: Include it instead of limits.h.
58179         (INT_STRLEN_BOUND): Remove.
58180         * lib/human.c: Include intprops.h.
58181         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58182         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58183         302/1000.
58184         * lib/inttostr.h: Include intprops.h instead of limits.h.
58185         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58186         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58187         for consistency with intprops.h.
58188         (time_t_is_integer, twos_complement_arithmetic): Use them.
58189         * lib/sig2str.h: Include <signal.h>, intprops.h.
58190         (INT_STRLEN_BOUND): Remove.
58191         * lib/strftime.c (TYPE_SIGNED): Remove.
58192         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58193         * lib/strtol.c: Adjust comments to match intprops.h.
58194         * lib/userspec.c: Include intprops.h.
58195         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58196         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58197         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58198         instead of rolling our own expressions.
58199         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58200
58201         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58202         instead of int.
58203         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58204         the right thing even if adding 1900 would overflow.  Similarly
58205         for tm_mon + 1 and tm_yday + 1.
58206         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58207         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58208         (DO_SIGNED_NUMBER): New macro.
58209         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58210
58211 2005-03-07  Bruno Haible  <bruno@clisp.org>
58212
58213         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58214
58215 2005-03-07  Bruno Haible  <bruno@clisp.org>
58216
58217         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58218
58219 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58220
58221         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58222         (func_import): Only replace files via --import when they have actually
58223         changed.
58224
58225 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58226
58227         * m4/mmap-anon.m4: New file.
58228         * m4/pagealign_alloc.m4: New file.
58229
58230 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58231             Bruno Haible  <bruno@clisp.org>
58232
58233         * modules/pagealign_alloc: New file.
58234         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58235
58236 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58237             Bruno Haible  <bruno@clisp.org>
58238
58239         * lib/pagealign_alloc.h: New file.
58240         * lib/pagealign_alloc.c: New file.
58241
58242 2005-03-03  Bruno Haible  <bruno@clisp.org>
58243
58244         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58245         Use an all-permissive copyright notice, recommended by RMS.
58246
58247 2005-03-02  Bruno Haible  <bruno@clisp.org>
58248
58249         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58250         of AIX, the replacement has to be done only after <string.h> is
58251         included, therefore not in config.h. stpncpy.h does the replacement,
58252         and stpncpy.c uses it.
58253
58254 2005-03-02  Bruno Haible  <bruno@clisp.org>
58255
58256         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58257         stpncpy.c uses it.
58258
58259 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58260
58261         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58262         The workaround isn't strictly needed for POSIX conformance, and
58263         it's too much of a pain to configure and maintain.  We'll ask
58264         people to fix their kernels instead.
58265         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58266         (NANOSLEEP_BUG_WORKAROUND): Remove.
58267         (xnanosleep): Remove the workaround.
58268
58269 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58270
58271         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58272         Reported by Derek Price.
58273         (Include): Add "timespec.h".
58274
58275         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58276
58277 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58278
58279         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58280         to detect nanosleep bug.
58281
58282 2005-03-01  Bruno Haible  <bruno@clisp.org>
58283
58284         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58285
58286 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58287
58288         * modules/gethrxtime: New file.
58289         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58290         (Depends-on): Add gethrxtime.
58291         (configure.ac): Add gl_XNANOSLEEP.
58292         (Makefile.am): Remove lib_SOURCES line.
58293
58294 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58295
58296         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58297         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58298
58299 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58300
58301         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58302         * lib/timespec.h (gettime): Return void, since it always
58303         succeeds now.  All uses changed.
58304         * lib/gettime.c (gettime) Likewise.
58305         [HAVE_NANOTIME]: Prefer nanotime.
58306         Assume gettimeofday succeeds, as POSIX requires.
58307         Assime time () succeeds, since other code already does.
58308         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58309         (timespec_subtract): Remove.
58310         (NANOSLEEP_BUG_WORKAROUND): New constant.
58311         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58312         things considerably.  Use it only on GNU/Linux hosts, since the
58313         workaround shouldn't be needed elsewhere.
58314
58315 2005-02-24  Bruno Haible  <bruno@clisp.org>
58316
58317         * modules/gettext (Files): Add m4/glibc2.m4.
58318
58319 2005-02-24  Bruno Haible  <bruno@clisp.org>
58320
58321         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58322         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58323         * m4/progtest.m4:
58324         Update from GNU gettext 0.14.2.
58325         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58326
58327 2005-02-24  Bruno Haible  <bruno@clisp.org>
58328
58329         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58330         * lib/config.charset: Update from GNU gettext 0.14.2.
58331
58332 2005-02-24  Bruno Haible  <bruno@clisp.org>
58333
58334         * lib/gettext.h: Update from GNU gettext 0.14.2.
58335
58336 2005-02-23  Simon Josefsson  <jas@extundo.com>
58337
58338         * m4/iconvme.m4: New file.
58339
58340 2005-02-23  Jim Meyering  <jim@meyering.net>
58341
58342         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58343         change.
58344         Thanks to Bruno Haible for catching it.
58345
58346 2005-02-22  Simon Josefsson  <jas@extundo.com>
58347
58348         * modules/iconvme: New file.
58349
58350         * MODULES.html.sh: Add iconvme.
58351
58352 2005-02-22  Simon Josefsson  <jas@extundo.com>
58353
58354         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58355
58356 2005-02-22  Simon Josefsson  <jas@extundo.com>
58357
58358         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58359
58360 2005-02-22  Jim Meyering  <jim@meyering.net>
58361
58362         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58363         s/ifndef/ifdef/.
58364
58365 2005-02-20  Neil Conway  <neilc@samurai.com>
58366
58367         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58368         returned by OSX/Darwin if the specified buffer is not large
58369         enough for the hostname.
58370
58371 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58372
58373         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58374         pass it to _help, otherwise the latter coredumps trying to
58375         dereference state.root_argp.
58376
58377 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58378
58379         * modules/chdir-long (Depends-on): Add memrchr.
58380         * modules/memrchr (Files): Add lib/memrchr.h.
58381         (Include): "memrchr.h".
58382
58383 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58386
58387 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         * lib/memrchr.h: New file.
58390         * lib/chdir-long.c: Include it.
58391         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58392         Don't bother including stddef.h.
58393
58394 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58395
58396         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58397         inclusion.
58398         Include <sys/types.h>, for dev_t.
58399         (ME_DUMMY, ME_REMOTE): Move from here....
58400         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58401         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58402         Dmitry V. Levin.
58403         Include mountlist.h first, to test the interface.
58404
58405 2005-01-29  Bruno Haible  <bruno@clisp.org>
58406
58407         * lib/progname.c (program_name): Initialize.
58408         Needed when linking statically on MacOS X.
58409
58410 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         Sync from coreutils.
58413         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58414         (Depends-on): Add c-strtod.
58415         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58416
58417 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58418
58419         Sync from coreutils.
58420         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58421
58422         Remove files that are specific to coreutils.
58423         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58424
58425 2005-01-28  Bruno Haible  <bruno@clisp.org>
58426
58427         * modules/javacomp: New file.
58428         * MODULES.html.sh (Java): Add javacomp.
58429
58430 2005-01-28  Bruno Haible  <bruno@clisp.org>
58431
58432         * m4/javacomp.m4: New file, from GNU gettext.
58433
58434 2005-01-28  Bruno Haible  <bruno@clisp.org>
58435
58436         * lib/javacomp.sh.in: New file, from GNU gettext.
58437         * lib/javacomp.h: New file, from GNU gettext.
58438         * lib/javacomp.c: New file, from GNU gettext.
58439
58440 2005-01-26  Simon Josefsson  <jas@extundo.com>
58441
58442         * lib/gai_strerror.c: Use GPL in header.
58443
58444 2005-01-26  Bruno Haible  <bruno@clisp.org>
58445
58446         * modules/javaexec: New file.
58447         * MODULES.html.sh (Java): Add javaexec.
58448
58449 2005-01-26  Bruno Haible  <bruno@clisp.org>
58450
58451         * m4/javaexec.m4: New file, from GNU gettext.
58452
58453 2005-01-26  Bruno Haible  <bruno@clisp.org>
58454
58455         * lib/javaexec.sh.in: New file, from GNU gettext.
58456         * lib/javaexec.h: New file, from GNU gettext.
58457         * lib/javaexec.c: New file, from GNU gettext.
58458
58459 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58460
58461         * modules/lchown (Depends-on): Remove lchown.h
58462
58463 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58464
58465         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58466         must be defined if the header file was not found, in order
58467         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58468
58469 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58470
58471         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58472         initializers for struct pentry_state.
58473         (__argp_error): Check return value of __asprintf
58474         (__argp_failure): Translate error message
58475
58476         * lib/argp-parse.c: Removed braces around the expansion of N_()
58477
58478 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58479
58480         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58481         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58482         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58483         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58484         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58485         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58486         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58487         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58488         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58489         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58490         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58491         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58492         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58493         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58494         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58495         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58496         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58497         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58498         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58499         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58500         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58501         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58502         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58503         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58504         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58505         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58506         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58507         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58508         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58509         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58510         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58511         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58512         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58513         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58514         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58515         Use an all-permissive copyright notice, recommended by RMS.
58516
58517 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58518
58519         * modules/chdir-long (Depends-on): Remove mempcpy.
58520
58521 2005-01-21  Jim Meyering  <jim@meyering.net>
58522
58523         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58524         same value as for Solaris 9.
58525
58526         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58527         component length.  This included changing the parameter to be
58528         of type `char *' rather than `char const *'.
58529         * lib/chdir-long.h (chdir_long): Update prototype.
58530
58531         * lib/openat.c (fdopendir, fstatat): New functions.
58532         * lib/openat.h: Include headers required for use of DIR and struct
58533         stat.
58534         [AT_SYMLINK_NOFOLLOW]: Define.
58535         (fdopendir, fstatat): Add prototypes.
58536
58537 2005-01-21  Bruno Haible  <bruno@clisp.org>
58538
58539         * modules/classpath: New file.
58540         * MODULES.html.sh (Java): Add classpath.
58541
58542 2005-01-21  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/classpath.h: New file, from GNU gettext.
58545         * lib/classpath.c: New file, from GNU gettext.
58546
58547 2005-01-20  Simon Josefsson  <jas@extundo.com>
58548
58549         * modules/version-etc-fsf: New file.
58550
58551 2005-01-20  Simon Josefsson  <jas@extundo.com>
58552
58553         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58554         * lib/version-etc.c: Remove version_etc_copyright.
58555         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58556         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58557
58558 2005-01-20  Simon Josefsson  <jas@extundo.com>
58559
58560         * lib/base64.h (isbase64): Add.
58561
58562         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58563         using a unsigned prototype, don't inline.
58564         (base64_decode): Use it.
58565
58566 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58567
58568         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58569         it.
58570
58571 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58572
58573         * lib/save-cwd.c (save_cwd): Remove code to support the case
58574         where fchdir is missing or flaky.
58575
58576 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58579
58580 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58581
58582         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58583         AC_LIBSOURCES now does this.
58584         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58585         with new ullong_max module.
58586
58587 2005-01-19  Bruno Haible  <bruno@clisp.org>
58588
58589         * modules/sh-quote: New file.
58590         * MODULES.html.sh (Executing programs): Add sh-quote.
58591
58592 2005-01-19  Bruno Haible  <bruno@clisp.org>
58593
58594         * lib/sh-quote.h: New file, from GNU gettext.
58595         * lib/sh-quote.c: New file, from GNU gettext.
58596
58597 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58598
58599         Merge from coreutils.
58600         * m4/ullong_max.m4: New file.
58601         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58602         (gl_MACROS): Assume localeconv exists.
58603
58604 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58605
58606         Merge changes from coreutils, as described below in several
58607         changelogs dated today.
58608
58609         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58610         (O_DIRECTORY): Remove; not needed here, since "." must be
58611         a directory.  All uses removed.
58612         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58613         universal on Suns, and we also need to test for IRIX.
58614         Revamp code to use 'if' rather than '#if'.
58615         Avoid unnecessary comparison of cwd->desc to 0.
58616
58617         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58618         for known valid error numbers rather than observed invalid ones.
58619
58620 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58621
58622         * modules/ullong_max: New file.
58623
58624         * modules/chdir-long, modules/openat: New files.
58625         * modules/save-cwd (Depends-on): Depend on chdir-long.
58626         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58627
58628 2005-01-18  Jim Meyering  <jim@meyering.net>
58629
58630         Merge from coreutils.
58631         * m4/chdir-long.m4, m4/openat.m4: New files.
58632         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58633         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58634         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58635         is sane and DOES follow symlinks.  Besides, testing 20 different
58636         systems found no broken chown implementations.
58637         Prompted by a change in rsync's copy of this macro.
58638         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58639
58640         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58641
58642         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58643         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58644         NULL-means-set-to-current-time semantics.
58645         Remove temporary file immediately, rather than waiting
58646         for configure's at-exit trap code to do it.
58647
58648 2005-01-18  Jim Meyering  <jim@meyering.net>
58649
58650         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58651
58652         * lib/utimens.c (futimens): Account for the fact that futimes
58653         can also fail with errno == ENOSYS or errno == ENOENT.
58654         Patch from Dmitry V. Levin.
58655
58656         Change the name of the robust chdir function from chdir to chdir_long.
58657         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58658         (restore_cwd): Use chdir_long, not chdir.
58659         * lib/chdir-long.c: Renamed from chdir.c.
58660         * lib/chdir-long.h: Renamed from chdir.h.
58661         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58662         Hurd.
58663
58664 2005-01-18  Bruno Haible  <bruno@clisp.org>
58665
58666         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58667         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58668         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58669         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58670         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58671         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58672         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58673         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58674         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58675         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58676         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58677         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58678         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58679         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58680         Use an all-permissive copyright notice, recommended by RMS.
58681
58682 2005-01-18  Bob Proulx  <bob@proulx.com>
58683
58684         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58685         simplify offsetof() macro construct to avoid compile failure with
58686         native HP-UX 11.0 ANSI C compiler.
58687
58688 2005-01-17  Bruno Haible  <bruno@clisp.org>
58689
58690         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58691         redundant because stpncpy.m4 takes care of it.
58692
58693 2005-01-17  Bruno Haible  <bruno@clisp.org>
58694
58695         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58696
58697 2005-01-17  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58700         used.
58701
58702 2005-01-17  Bruno Haible  <bruno@clisp.org>
58703
58704         * lib/fwriteerror.h (fwriteerror): Change specification to include
58705         fclose.
58706         * lib/fwriteerror.c: Include <stdbool.h>.
58707         (fwriteerror): At the end, close the file stream. Record whether
58708         stdout was already closed.
58709
58710 2005-01-17  Bruno Haible  <bruno@clisp.org>
58711
58712         * lib/execute.c (environ): Declare if needed.
58713         * lib/pipe.c (environ): Likewise.
58714         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58715
58716 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58717
58718         * modules/argp: Depend on vsnprintf
58719
58720 2005-01-10  Jim Meyering  <jim@meyering.net>
58721
58722         * modules/closeout (Depends-on): Add atexit.
58723
58724 2005-01-06  Bruno Haible  <bruno@clisp.org>
58725
58726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58727
58728 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58729
58730         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58731         definitions to be after all include files, to avoid collisions.
58732         Problem reported by Bob Proulx.
58733
58734 2005-01-04  Jim Meyering  <jim@meyering.net>
58735
58736         Changes imported from coreutils.
58737         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58738         as the mkstemp template, use a temporary directory and an
58739         8.3-friendly template to avoid trouble on systems like DJGPP.
58740         Reported by Juan M. Guerrero via Stepan Kasal.
58741         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58742         close. Remove the temporary directory right away, rather than waiting
58743         for configure's at-exit trap code to do it.
58744         Suggestion from Stepan Kasal.
58745
58746 2005-01-01  Simon Josefsson  <jas@extundo.com>
58747
58748         * gnulib-tool: Print #include directives when --import'ing.
58749
58750 2004-12-28  Simon Josefsson  <jas@extundo.com>
58751
58752         * tests/test-base64.c: Include required header files.  Remove
58753         unused variables.
58754
58755 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * modules/error (Depends-on): Remove gettext.
58758
58759 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58760
58761         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58762         not needed.  This removes a dependency on the gettext module.
58763         [defined _LIBC]: Do not include <libintl.h>; not needed.
58764
58765 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58766
58767         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58768         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58769
58770 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58771
58772         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58773         HAVE_DECL_STRTOLD.
58774
58775 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58776
58777         * modules/getdate (Depends-on): Remove alloca-opt.
58778
58779 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58782
58783 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * lib/argp-parse.c: Include <stddef.h>.
58786         (alignof, alignto): New macros.
58787         (parser_init): Don't assume that void * is aligned sufficiently
58788         for struct option.
58789
58790         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58791         need to extend the stack.
58792         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58793         large.
58794
58795 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58796
58797         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58798
58799 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58800
58801         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58802         (2004-10-24) change.  Apparently this was a false alarm.
58803
58804         * modules/getdate: Depend on alloca-opt, not alloca.
58805
58806 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58807
58808         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58809         Remove now-obsolete comment about AIX.
58810         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58811         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58812         (YYMAXDEPTH): New macro.
58813
58814 2004-12-18  Simon Josefsson  <jas@extundo.com>
58815
58816         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58817
58818 2004-12-18  Bruno Haible  <bruno@clisp.org>
58819
58820         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58821
58822 2004-12-18  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/fatal-signal.c (fatal_signals): Make non-const.
58825         (init_fatal_signals): New function.
58826         (uninstall_handlers, install_handlers): Ignore signals that were set to
58827         SIG_IGN.
58828         (at_fatal_signal): Call init_fatal_signals.
58829         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58830         SIG_IGN.
58831         Reported by Paul Eggert.
58832
58833 2004-12-18  Bruno Haible  <bruno@clisp.org>
58834
58835         * doc/alloca.texi: New file.
58836         * doc/alloca-opt.texi: New file.
58837
58838 2004-12-17  Jim Meyering  <jim@meyering.net>
58839
58840         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58841         Otherwise, install-sh could exit with improper exit status when
58842         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58843
58844 2004-12-16  Simon Josefsson  <jas@extundo.com>
58845
58846         * tests/test-base64.c: Add license.
58847
58848 2004-12-15  Stepan Kasal  <address@hidden>
58849
58850         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58851
58852 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58853
58854         * modules/getcwd (Files): Add m4/d-ino.m4.
58855         Suggested by Mark D. Baushke.
58856
58857 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58858
58859         * lib/getdate.y (textint): New member "negative".
58860         (time_zone_hhmm): New function.
58861         Expect 14 shift-reduce conflicts, not 13.
58862         (o_colon_minutes): New rule.
58863         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58864         (yylex): Set the "negative" member of signed numbers.
58865
58866 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58867
58868         * doc/getdate.texi (Time of day items, Time zone items):
58869         Describe new formats +00:00, UTC+00:00.
58870
58871 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58872
58873         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58874         spurious "-l"s.  Problem reported by Stepan Kasal.
58875
58876 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58877
58878         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58879         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58880
58881 2004-12-04  Simon Josefsson  <jas@extundo.com>
58882
58883         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58884         Vandoorselaere <yoann@prelude-ids.org>.
58885
58886 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         Changes imported from coreutils.
58889         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58890         exist.
58891         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58892
58893 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58894
58895         Changes imported from coreutils.
58896         * lib/hard-locale.c: Assume <locale.h> exists.
58897         Include "strdup.h".
58898         (GLIBC_VERSION): New macro.
58899         (hard_locale): Assume setlocale exists.
58900         Rewrite to avoid #ifdef.
58901         Use strdup rather than malloc + strcpy.
58902         * lib/human.c: Assume <locale.h> exists.
58903         (human_readable): Assume localeconv exists.
58904
58905 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58906
58907         * modules/hard-locale (Depends-on): Add strdup.
58908
58909 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58910
58911         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58912         convert T2, not T.  (Imported from libc.)
58913
58914 2004-11-30  Simon Josefsson  <jas@extundo.com>
58915
58916         * modules/restrict (License): Change to LGPL.
58917
58918 2004-11-30  Simon Josefsson  <jas@extundo.com>
58919
58920         * m4/restrict.m4: Add copyright and copying conditions.
58921
58922 2004-11-30  Simon Josefsson  <jas@extundo.com>
58923
58924         * m4/base64.m4: New file.
58925
58926 2004-11-30  Simon Josefsson  <jas@extundo.com>
58927
58928         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58929         base64.
58930
58931         * tests/test-base64.c: New file.
58932
58933         * modules/base64: New file.
58934
58935 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58936
58937         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58938         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58939
58940         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58941
58942 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58943
58944         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58945         (__getcwd.c): Don't restore errno; glibc doesn't.
58946         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58947         first, falling back to our code only if its results look suspicious.
58948         Ensure that the resulting buffer is only as large as necessary.
58949
58950         * lib/readutmp.c: Include readutmp.h first.
58951         Include <errno.h>, since readutmp.h no longer does that.
58952         * lib/readutmp.h: Don't include <errno.h>,
58953         <sys/param.h>, <time.h>; not needed to establish interface.
58954         (errno): Remove decl.
58955         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58956         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58957         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58958
58959 2004-11-28  Simon Josefsson  <jas@extundo.com>
58960
58961         * lib/base64.h, base64.c: New file.
58962
58963 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58964
58965         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58966
58967 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58970         (Depends-on): Remove pathmax, same.  Add mempcpy.
58971         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58972         (Makefile.am): Append getcwd.h to lib_SOURCES.
58973         (Include): Add getcwd.h.
58974         (Maintainer): Change from Jim Meyering to "all, glibc",
58975         since getdate now uses intended-for-glibc code.
58976         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58977         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58978
58979 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58980
58981         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58982         HP's ANSI C compiler.
58983         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58984         Declaring int functions causes warnings on some modern systems and
58985         shouldn't be needed to compile on ancient ones.
58986         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58987         defined.
58988
58989         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58990         with the following changes.
58991         (__set_errno): Parenthesize properly.
58992         Include <stdbool.h>.
58993         (MIN, MAX, MATCHING_INO): New macros.
58994         (__getcwd): Define with prototype, not K&R form.
58995         Use heuristics to allocate default buffer on stack if possible.
58996         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
58997         behavior, and to avoid the PATH_MAX limit when computing
58998         ../../../../...
58999         Use MATCHING_INO to compare inode number to file.
59000         Check for arithmetic overflow in size calculations.
59001         Fix bug in reallocation of dot array that caused getcwd to fail
59002         on directories nested deeper than 75.
59003         Be more careful about saving errno on error.
59004         Do not use realloc; use only free+malloc, as this is a bit
59005         more flexible and avoids a needless copy operation.
59006         Do not inspect st_dev and st_ino for symbolic links; POSIX
59007         doesn't specify the latter.
59008         Check for closedir errors.
59009         Avoid needless casts.
59010         Use "#ifdef weak_alias" around weak_alias, to be like other
59011         glibc code.
59012         The following changes to getcwd.c have effect only when used in
59013         gnulib; they have no effect inside glibc proper.
59014         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
59015         as alloca isn't used.
59016         (alloca, __alloca): Likewise.
59017         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
59018         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
59019         unconditionally, as gnulib assumes C89 or better.
59020         Do not include <sys/param.h>.
59021         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
59022         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
59023         better.
59024         (NULL) [!defined NULL]: Remove; we assume C89 or better.
59025         Include <dirent.h> in a way that is compatible with modern Autoconf.
59026         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
59027         New macros, if not already defined.
59028         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
59029         Use "_LIBC", not "defined _LIBC", for consistency.
59030         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
59031         a mempcpy module.
59032         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
59033         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
59034         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
59035         credit only to Jim Meyering and adjust the copyright dates.
59036         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
59037         <stdlib.h>, <unistd.h>, "pathmax.h".
59038         Instead, include "xgetcwd.h" (first) and "getcwd.h".
59039         (INITIAL_BUFFER_SIZE): Remove.
59040         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
59041
59042 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59043
59044         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
59045         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
59046         Use the _ONCE methods, for efficiency.
59047         Check for fcntl.h.  In test program, include <errno.h>
59048         and <fcntl.h> if available.  Remove old K&R cruft from
59049         test program.  Check for common errors in GNU/Linux,
59050         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
59051         don't do AC_LIBOBJ, as that's getcwd.m4's job.
59052         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
59053         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
59054         name accordingly.
59055         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
59056         accommodate new getcwd.c.
59057         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
59058         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
59059         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
59060         that's all we need now.
59061
59062 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59063
59064         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
59065         argp-parse.c depends on getopt internals, that means we should
59066         always use our getopt, to be on the safe side.
59067         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
59068         order not to spoil the result of an eventual previous invocation
59069         of gl_GETOPT_SUBSTITUTE.
59070
59071 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59072
59073         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
59074         redefinition warnings. To avoid them, include the defines
59075         in `#if !defined __need_getopt ... #endif'. The only place
59076         where __getopt_argv_const is used is in definitions
59077         of getopt_long and getopt_long_only below, which are as well
59078         protected by `#ifndef __need_getopt'.
59079         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
59080         __need_getopt after including <stdio.h> and <unistd.h> These
59081         headers might have defined it.
59082
59083 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59084
59085         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
59086
59087 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
59090         (futimens): New function, which uses futimes if available.
59091         (futimens, utimens): Support timespec==NULL, with same semantics
59092         as utime and utimens.
59093         * lib/utimens.h (futimens): New decl.
59094
59095 2004-11-23  Jim Meyering  <jim@meyering.net>
59096
59097         * lib/getopt_.h: Remove trailing blanks.
59098
59099 2004-11-23  Jim Meyering  <jim@meyering.net>
59100
59101         * lib/__fpending.c: Add comment.
59102
59103 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
59104
59105         * modules/canonicalize (Depends-on): Add xreadlink.
59106         Problem reported by James Youngman.
59107
59108 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59109
59110         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
59111         New macros.
59112         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
59113         optopt): Use them instead of invoking ## directly; otherwise, the
59114         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
59115
59116 2004-11-19  Bruno Haible  <bruno@clisp.org>
59117
59118         * lib/strtok_r.c: Move comments from here...
59119         * lib/strtok_r.h: ... to here.
59120
59121 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59122
59123         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
59124         implementations that mishandle size_t overflow.
59125
59126 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59127
59128         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
59129         might fail.  Problem reported by Yoann Vandoorselaere.
59130         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
59131         implementations that mishandle size_t overflow.
59132
59133 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59134
59135         * modules/canon-host (Depends-on): Add strdup.
59136
59137 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
59140
59141 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59142
59143         * lib/canon-host.c: Include "strdup.h".
59144         (canon_host): Use getaddrinfo if available, so that IPv6 works.
59145         Use strdup instead of malloc/strcpy to duplicate strings.
59146
59147         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
59148         (human_space_before_unit): New constant.
59149         * lib/human.c (human_readable): Support it.
59150
59151         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
59152         (xgetcwd): Set errno correctly when failing.
59153         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
59154         the failure is actually due to a PATH_MAX problem.
59155
59156         Further getopt changes to make it more likely that glibc will
59157         buy the changes back.
59158         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59159         (getopt): Use it, so to preserve glibc semantic
59160         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59161         when compiling for libc.
59162         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59163         (getopt_long, getopt_long_only): Use it.
59164
59165         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59166         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59167         (getopt): Argv is now char * const *, as per standard.
59168         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59169         not char *__getopt_argv_const *.
59170         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59171         _getopt_long_only_r): Likewise.
59172         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59173         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59174         _getopt_long_r, _getopt_long_only_r): Likewise.
59175         * lib/getopt_.h (__getopt_argv_const): Remove.
59176         (getopt): Argv is now char * const *, as per standard.
59177
59178         * lib/getdate.y (tORDINAL): New token.
59179         (day, relunit): Allow it for relative times.
59180         (relative_time_table): Use tORDINAL for ordinals.
59181
59182 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59183
59184         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59185         Document that "second" isn't allowed as an ordinal number.
59186
59187 2004-11-16  Jim Meyering  <jim@meyering.net>
59188
59189         * modules/closeout (Depends-on): Add fpending.
59190
59191 2004-11-15  Jim Meyering  <jim@meyering.net>
59192
59193         * lib/closeout.c: Include "__fpending.h" once again.
59194         Include <stdbool.h>.
59195         (close_stdout): Don't fail just because stdout was closed initially,
59196         since some programs don't write to stdout in the normal course of
59197         operation (other than --version and --help), and we don't want this
59198         function to make e.g. `touch file >&-' fail.
59199         But do fail if it was closed and someone has tried to write to it.
59200         E.g., `printf foo >&-' must fail.
59201
59202 2004-11-13  Jim Meyering  <jim@meyering.net>
59203
59204         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59205
59206 2004-11-12  Simon Josefsson  <jas@extundo.com>
59207
59208         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59209         small doc fix is still pending.
59210
59211 2004-11-11  Simon Josefsson  <jas@extundo.com>
59212
59213         * modules/strtok_r: New file.
59214
59215         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59216         strtok_r.
59217
59218 2004-11-11  Simon Josefsson  <jas@extundo.com>
59219
59220         * m4/strtok_r.m4: New file.
59221
59222         * m4/getopt.m4: Replace opterr.
59223
59224 2004-11-11  Simon Josefsson  <jas@extundo.com>
59225
59226         * lib/strtok_r.h, strtok_r.c: New file.
59227
59228 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59229
59230         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59231         of replacing opterr, getopt, etc.  This should handle the
59232         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59233
59234 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59235
59236         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59237         we can stop lying to compilers about the constness of argv when we
59238         are compiled outside glibc.
59239         (getopt, getopt_long, getopt_long_only): Use it.
59240         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59241         _getopt_internal, getopt): Likewise.
59242         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59243         _getopt_long_only_r): Likewise.
59244         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59245         _getopt_long_r, _getopt_long_only_r): Likewise.
59246
59247         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59248         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59249         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59250         the other external symbols.
59251         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59252         declaration, since the above renaming now works around collisions.
59253
59254 2004-11-11  Jim Meyering  <jim@meyering.net>
59255
59256         * lib/linebreak.c: Remove trailing blanks.
59257         * lib/alloca_.h: Likewise.
59258         * lib/acosl.c: Likewise.
59259         * lib/euidaccess.c: Likewise.
59260         * lib/allocsa.h: Likewise.
59261
59262 2004-11-10  Simon Josefsson  <jas@extundo.com>
59263
59264         * m4/getaddrinfo.m4: New file.
59265
59266 2004-11-10  Simon Josefsson  <jas@extundo.com>
59267
59268         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59269
59270 2004-11-10  Simon Josefsson  <jas@extundo.com>
59271
59272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59273         getaddrinfo.
59274
59275         * modules/getaddrinfo: New file.
59276
59277 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59278
59279         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59280
59281 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         * lib/mktime.c (SHR): New macro, which is a portable
59284         substitute for >> that should work even on Crays.
59285         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59286         Problem reported by Mark D. Baushke in
59287         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59288         * lib/getdate.y (SHR): Likewise.
59289         (tm_diff): Use it.
59290         * lib/strftime.c (SHR): Likewise.
59291         (tm_diff): Use it.
59292         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59293         quote_these_too, so that right shifts are well defined.  All uses
59294         changed.
59295
59296 2004-11-10  Jim Meyering  <jim@meyering.net>
59297
59298         Ensure that no close failure goes unreported.
59299         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59300         return early when it seems there's nothing to flush.
59301         Don't include __fpending.h.
59302
59303 2004-11-10  Jim Meyering  <jim@meyering.net>
59304
59305         * modules/closeout (Depends-on): Remove fpending.
59306
59307 2004-11-10  Jim Meyering  <jim@meyering.net>
59308
59309         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59310
59311 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59312
59313         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59314         gl_FUNC_STRFTIME.
59315         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59316         and AC_REQUIRE when possible, to avoid duplicate checks.
59317         Check for <wchar.h>.
59318
59319 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59320
59321         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59322
59323 2004-11-09  Bruno Haible  <bruno@clisp.org>
59324
59325         * m4/sockpfaf.m4: New file.
59326
59327 2004-11-05  Bruno Haible  <bruno@clisp.org>
59328
59329         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59330         Reported by Mark D. Baushke <mdb@cvshome.org>.
59331
59332 2004-11-04  Bruno Haible  <bruno@clisp.org>
59333
59334         2004-09-11  Bruno Haible  <bruno@clisp.org>
59335                 * allocsa.valgrind: New file.
59336         2004-02-06  Bruno Haible  <bruno@clisp.org>
59337                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59338                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59339                 Reported by Christopher Seip <chris.seip@hp.com>.
59340
59341 2004-11-04  Bruno Haible  <bruno@clisp.org>
59342
59343         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59344         (Makefile.am): Distribute it.
59345
59346 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59347
59348         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59349         with errno == ERANGE if the buffer is too small.
59350         Problem reported by Mark D. Baushke.
59351
59352 2004-11-03  Albert Chin  <china@thewrittenword.com>
59353             Paul Eggert  <eggert@cs.ucla.edu>
59354
59355         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59356         equivalent, substitute $ac_type for equivalent type rather than
59357         blindly using uint32_t *always* which won't work if uint32_t is not
59358         available.  Define _UINT32_T to work around typedef of uint32_t if
59359         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59360         2.5.1.
59361
59362 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59363
59364         * m4/jm-macros.m4: Sync from coreutils.
59365         (gl_MACROS): Check for mbrlen, for pathchk.
59366         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59367
59368 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59369
59370         * lib/xreadlink.c (MAXSIZE): New macro.
59371         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59372         size does not exceed MAXSIZE.  Avoid cast.
59373         As suggested by Mark D. Baushke in
59374         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59375         if readlink fails with buffer size just under MAXSIZE, try again
59376         with MAXSIZE.
59377
59378 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59379
59380         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59381
59382 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59383         and  Paul Eggert  <eggert@cs.ucla.edu>
59384
59385         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59386         (get_date): Overparenthesize to avoid GCC warning.
59387
59388 2004-11-02  Bruno Haible  <bruno@clisp.org>
59389
59390         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59391         returns void.
59392
59393 2004-11-02  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59396         function returns void.
59397
59398 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59399
59400         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59401         fflush_unlocked, flockfile, funlockfile, funlockfile,
59402         fputs_unlocked, putc_unlocked.
59403
59404 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59407         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59408         already declared.
59409
59410 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59411
59412         * modules/getdate (Files): Add doc/getdate.texi.
59413         (Depends-on): Add setenv, xalloc.
59414
59415 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59416
59417         * lib/getdate.y: Add support for TZ="foo" within a date string.
59418         Fix some bugs near time_t boundaries.  Reject dates with
59419         out-of-range components, e.g., "Sept 31".
59420         Include <stdlib.h>, "setenv.h", "xalloc.h".
59421         (ISDIGIT_LOCALE): Remove; unused.
59422         Note that the TZ and time functions used here are not reentrant.
59423         (mktime_ok, get_tz): New functions.
59424         (TZBUFSIZE): New constant.
59425         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59426         This requires that we sometimes generate our own TZ="XXX..." setting.
59427
59428 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59429
59430         * doc/getdate.texi: New file, from coreutils with modifications for
59431         the new TZ parsing.
59432
59433 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59434
59435         * lib/mktime.c (not_equal_tm): Remove redundant check.
59436
59437 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59438
59439         * modules/regex (lib_SOURCES): Add regex.c.
59440         Reported by James Youngman in
59441         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59442
59443 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59444
59445         * lib/getdate.y: Use Bison 1.875 features, and some minor
59446         code cleanups.  This change does not affect semantics.
59447         Don't include <stdlib.h>; no longer needed.
59448         Don't include unlocked-io.h; only the "#if TEST" code uses
59449         stdio, and performance isn't crucial there.
59450         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59451         Bison 1.875 features as described below.
59452         All uses of "PC." replaced by "pc->".
59453         (YYSTYPE): Add a forward declaration.
59454         (yylex, yyerror): Use full prototypes in forward decls.
59455         Use "%pure-parser" rather than obsolescent "%pure_parser".
59456         Use %parse-param and %lex-param instead of obsolescent
59457         YYPARSE_PARAM and YYLEX_PARAM.
59458         (meridian_table, month_and_day_table, time_units_table,
59459         relative_time_table, time_zone_table, military_table,
59460         lookup_zone, lookup_word, get_date):
59461         Use NULL instead of 0 where appropriate.
59462         (to_hour): Avoid abort (), to avoid a dependency on
59463         stdlib.h.
59464         (yyerror, yylex): Now accepts parser_control * arg.
59465         (main) [TEST]: Use '\0' rather than 0 for char.
59466
59467 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59468
59469         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59470
59471 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59472
59473         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59474         It's now the caller's responsibility to handle the case where
59475         !HAVE_GETPAGESIZE && !defined getpagesize.
59476
59477         * lib/mktime.c (leapyear): Arg is long int, not int.
59478
59479 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59480
59481         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59482
59483 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59486         missing.  Problem reported by James Youngman.
59487
59488 2004-10-16  Simon Josefsson  <jas@extundo.com>
59489
59490         * gnulib-tool: Fix comments.  Fix parse problem.
59491         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59492
59493 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59496         implementation of getopt_long.  Problem reported by Alexander Taler in:
59497         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59498
59499 2004-10-15  Bruno Haible  <bruno@clisp.org>
59500
59501         * gnulib-tool: Untabify. Initialize supplied_libname.
59502         (func_usage): More homogenous output.
59503         (func_modules_transitive_closure, func_modules_to_filelist,
59504         func_emit_lib_Makefile_am): New functions.
59505         (func_import): New function, extracted from big case statement. Use
59506         func_get_license, func_modules_transitive_closure,
59507         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59508         opt_lgpl. Don't use test -a, as it's not portable.
59509         (func_create_testdir): Use func_modules_transitive_closure,
59510         func_modules_to_filelist, func_emit_lib_Makefile_am.
59511
59512 2004-10-15  Bruno Haible  <bruno@clisp.org>
59513
59514         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59515
59516 2004-10-15  Bruno Haible  <bruno@clisp.org>
59517
59518         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59519         the portions belonging to each module.
59520         Suggested by Derek Robert Price <derek@ximbiot.com>.
59521
59522 2004-10-12  Simon Josefsson  <jas@extundo.com>
59523
59524         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59525         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59526         to real functions.
59527
59528 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59529
59530         * modules/vsnprintf: New file.
59531
59532 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59533
59534         * m4/vsnprintf.m4: New file.
59535
59536 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59537
59538         * lib/vsnprintf.h: New file.
59539         * lib/vsnprintf.c: New file.
59540
59541 2004-10-11  Bruno Haible  <bruno@clisp.org>
59542
59543         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59544         vsnprintf.
59545
59546 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59547
59548         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59549
59550 2004-10-07  Bruno Haible  <bruno@clisp.org>
59551
59552         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59553         fits into the provided buffer.
59554
59555 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59556
59557         * lib/diacrit.c, diacrit.h: Add GPL notice.
59558
59559         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59560         notice.
59561         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59562         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59563         This avoids a potential constant-folding bug.
59564
59565 2004-10-05  Bruno Haible  <bruno@clisp.org>
59566
59567         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59568         for the declaration of strsep.
59569
59570 2004-10-05  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59573
59574 2004-10-04  Simon Josefsson  <jas@extundo.com>
59575
59576         * modules/memmem: New file.
59577         * tests/test-memmem.c: New file.
59578         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59579
59580 2004-10-04  Simon Josefsson  <jas@extundo.com>
59581
59582         * m4/memmem.m4: New file.
59583
59584 2004-10-04  Simon Josefsson  <jas@extundo.com>
59585
59586         * lib/memmem.h: New file.
59587         * lib/memmem.c: New file, taken from glibc.
59588
59589 2004-10-04  Simon Josefsson  <jas@extundo.com>
59590
59591         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59592         '#ifdef USE_UNLOCKED_IO'.
59593
59594 2004-10-04  Simon Josefsson  <jas@extundo.com>
59595
59596         * config/srclist.txt: Add memmem from glibc.
59597
59598 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59599
59600         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59601
59602         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59603         modules/exclude, modules/getdate, modules/getline,
59604         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59605         modules/getusershell, modules/linebuffer, modules/md5,
59606         modules/mountlist, modules/posixtm, modules/readtokens,
59607         modules/readutmp, modules/regex, modules/sha1,
59608         modules/version-etc, modules/yesno:
59609         Remove dependency on unlocked-io.
59610
59611 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59612
59613         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59614
59615         * m4/unlocked-io.m4: Add copyright notice.
59616         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59617
59618 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59619
59620         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59621         * lib/xmalloc.c (xmemdup): Likewise.
59622         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59623         XFREE): Remove these long-obsolescent macros.
59624         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59625         * lib/xstrdup.c: Remove.
59626
59627         * lib/regex.c (re_comp): Cast gettext return value to char *,
59628         Problem reported by Martin Neitzel via Mark D. Baushke.
59629
59630 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59633         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59634         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59635         regex.c, sha1.c, version-etc.c, yesno.c:
59636         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59637         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59638         the includer's responsibility.
59639
59640         Sync from coreutils.
59641
59642         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59643         points to the start of a string, as the C Standard says the
59644         resulting behavior is undefined.
59645
59646         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59647         simple -> simple_backups, numbered_existing ->
59648         numbered_existing_backups, numbered -> numbered_backups
59649         to avoid shadowing problems.  All uses changed.
59650         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59651         * lib/backupfile.c (check_extension, numbered_backup):
59652         Rename locals to avoid shadowing 'basename'.
59653         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59654         once.
59655
59656         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59657         * lib/.cvsignore: Add getopt.h.
59658
59659 2004-10-04  Bruno Haible  <bruno@clisp.org>
59660
59661         * modules/README: New file.
59662         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59663         not a module.
59664
59665 2004-10-02  Jim Meyering  <jim@meyering.net>
59666
59667         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59668
59669 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59670
59671         * modules/strsep: New file.
59672
59673 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59674
59675         * m4/strsep.m4: New file.
59676
59677 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59678
59679         * lib/strsep.h: New file.
59680         * lib/strsep.c: New file.
59681
59682 2004-10-01  Simon Josefsson  <jas@extundo.com>
59683
59684         * lib/snprintf.c (snprintf): Handle size==0.
59685
59686 2004-10-01  Simon Josefsson  <jas@extundo.com>
59687             Bruno Haible  <bruno@clisp.org>
59688
59689         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59690         (snprintf): Declare 'args'.
59691
59692 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59693
59694         * lib/snprintf.c: Remove comments as to why each header is needed.
59695
59696 2004-10-01  Bruno Haible  <bruno@clisp.org>
59697
59698         * MODULES.html.sh: Add strsep.
59699
59700 2004-09-30  Simon Josefsson  <jas@extundo.com>
59701
59702         * modules/snprintf: New file.
59703
59704 2004-09-30  Simon Josefsson  <jas@extundo.com>
59705
59706         * m4/snprintf.m4: New file.
59707
59708 2004-09-30  Simon Josefsson  <jas@extundo.com>
59709
59710         * lib/snprintf.h, lib/snprintf.c: New files.
59711
59712 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59713
59714         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59715         (hol_entry_help): Never translate an empty string.
59716         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59717         * lib/argp.h (OPTION_NO_TRANS): New option.
59718
59719 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59720
59721         * modules/argp (Maintainer): Replace Simon Josefsson
59722         by Sergey Poznyakoff.
59723
59724 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59725
59726         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59727         changes merged back into glibc.
59728
59729 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59730
59731         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59732
59733 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59734
59735         * lib/xvasprintf.c: Include xalloc.h.
59736         (xvasprintf): Use xalloc_die, not xmalloc_die.
59737
59738 2004-09-29  Bruno Haible  <bruno@clisp.org>
59739
59740         * modules/alloca-opt: New file, derived from modules/alloca.
59741         * modules/allocsa: Depend on alloca-opt instead of alloca.
59742         * modules/setenv: Likewise.
59743         * modules/vasnprintf: Likewise.
59744         * MODULES.html.sh: Add alloca-opt.
59745
59746 2004-09-28  Simon Josefsson  <jas@extundo.com>
59747
59748         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59749         LGPL, and to replace license template from GPL to LGPL.
59750
59751 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59752
59753         * modules/dummy: Change license to LGPL.
59754
59755 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59756
59757         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59758
59759 2004-09-24  Simon Josefsson  <jas@extundo.com>
59760
59761         * modules/minmax (License): Change from GPL to LGPL.
59762
59763 2004-09-23  Simon Josefsson  <jas@extundo.com>
59764
59765         * gnulib-tool (--import): Typo.
59766
59767 2004-09-23  Simon Josefsson  <jas@extundo.com>
59768
59769         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59770
59771 2004-09-22  Bruno Haible  <bruno@clisp.org>
59772
59773         * modules/*: Add 'License' field.
59774         * gnulib-tool: Accept --extract-license option.
59775         (func_get_license): New function.
59776
59777 2004-09-21  Bruno Haible  <bruno@clisp.org>
59778
59779         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59780         Reported by Simon Josefsson.
59781
59782 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59783
59784         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59785         gl_AC_TYPE_LONG_LONG.
59786
59787 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59788
59789         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59790
59791 2004-09-18  Simon Josefsson  <jas@extundo.com>
59792         and  Paul Eggert  <eggert@cs.ucla.edu>
59793
59794         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59795         calls with autoreconf.  Define GL_LIB.
59796
59797 2004-09-14  Karl Berry  <karl@gnu.org>
59798
59799         * config/srclist.txt: unsync setenv.c, sigh.
59800
59801 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59804         Problem reported by Bruno Haible in:
59805         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59806
59807 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59808
59809         * config/srclist.txt: Comment out argp-pvh.c.
59810
59811 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59812
59813         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59814         in case some system header has #define'd it.  Problem reported by
59815         Soeren D. Schulze in
59816         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59817
59818 2004-09-09  Karl Berry  <karl@gnu.org>
59819
59820         * regex.[ch]: delete from the root.  These were supposed to be
59821                 synced with emacs cvs, but this has not happened for about
59822                 a year, and anyway nothing else uses emacs regex.[ch].
59823                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59824                 lib/regex[.ch] is untouched.
59825
59826 2004-09-09  Bruno Haible  <bruno@clisp.org>
59827
59828         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59829
59830 2004-09-09  Bruno Haible  <bruno@clisp.org>
59831
59832         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59833         modifications.
59834         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59835
59836 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59837
59838         * modules/xvasprintf: New file.
59839         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59840
59841 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59842
59843         * lib/xvasprintf.h: New file.
59844         * lib/xvasprintf.c: New file.
59845         * lib/xasprintf.c: New file.
59846
59847 2004-09-08  Bruno Haible  <bruno@clisp.org>
59848
59849         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59850
59851 2004-09-08  Bruno Haible  <bruno@clisp.org>
59852
59853         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59854         length is > INT_MAX.
59855         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59856         more.
59857
59858 2004-09-08  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/stdint_.h: New file, taken from GNU clisp.
59861
59862 2004-09-08  Bruno Haible  <bruno@clisp.org>
59863             Oskar Liljeblad  <oskar@osk.mine.nu>
59864
59865         * modules/stdint: New file.
59866         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59867
59868 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59869
59870         Import from coreutils.
59871         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59872         strings on unbounded length.  alloca's performance benefits aren't
59873         that important here.
59874         (V_STRDUP): Remove.
59875         (parse_with_separator): New function, with most of the internals
59876         of the old parse_user_spec.  Allow user to omit both user and group,
59877         for compatibility with FreeBSD.
59878         Clone only the user name, not the entire spec.
59879         Do not set *uid, *gid unless entirely successful.
59880         Avoid memory leak in some failing cases.
59881         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59882         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59883         (parse_user_spec): Rewrite to use parse_with_separator.
59884
59885 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59886
59887         * modules/userspec: Don't depend on alloca.
59888
59889 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59890
59891         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59892
59893 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59894
59895         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59896         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59897         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59898
59899 2004-08-16  Simon Josefsson  <jas@extundo.com>
59900
59901         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59902         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59903         Add --dry-run for --import.
59904         Let user provided command line parameters override configure.ac
59905         settings.
59906
59907 2004-08-12  Simon Josefsson  <jas@extundo.com>
59908
59909         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59910         as discussed with Paul Eggert in threads rooted at
59911         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59912         and
59913         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59914         Before, the test was empty, and relied on ELIDE_CODE in source
59915         code.)
59916         (gl_PREREQ_GETOPT): New macro.
59917         (gl_GETOPT): Use them.
59918
59919 2004-08-12  Simon Josefsson  <jas@extundo.com>
59920
59921         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59922         * lib/getopt_.h: Renamed from getopt.h.
59923
59924 2004-08-12  Simon Josefsson  <jas@extundo.com>
59925
59926         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59927         Change default library name from libfoo to libgnu.
59928         Now, if you have a configure.ac that says:
59929                 gl_SOURCE_BASE(gl)
59930                 gl_M4_BASE(gl/m4)
59931                 gl_MODULES(error getopt etcetera)
59932                 gl_INIT
59933         you can import all you need by running:
59934                 ../gnulib/gnulib-tool --import
59935
59936         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59937         (Makefile.am): Rewrite, use logic from argz.
59938         (Include): Use <getopt.h> instead of "getopt.h".
59939
59940 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59941
59942         * modules/argp (Files): Add m4/unlocked-io.m4.
59943         (Depends-on): Add extensions.
59944
59945 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59946
59947         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59948         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59949         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59950         Check for program_invocation_name, program_invocation_short_name,
59951         flockfile, funlockfile, features.h, _getopt_long_only_r.
59952
59953 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59954
59955         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59956         its complicated substitute.
59957         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59958         and program_invocation_name.
59959         (__argp_basename) [!_LIBC]: Remove; the only use was
59960         replaced by its body.
59961         (__argp_short_program_name): Change condition from
59962         !defined __argp_short_program_name to
59963         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59964         to match argp-namefrob.h.
59965         (__argp_failure): Don't assume strerror_r returns char *.
59966         * lib/argp-parse.c (N_): Define unconditionally.
59967         (argp_default_options): Fill out initializers with 0 to avoid
59968         gcc warnings.
59969
59970 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59971
59972         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59973         getopt1.c.
59974
59975 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59976
59977         Merge from coreutils.
59978
59979         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59980
59981         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59982         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59983
59984 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59985
59986         Merge from coreutils.
59987
59988         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59989         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59990         for Reliant Unix 5.43.
59991
59992         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59993         (union fooround): Use uintmax_t, not long int.
59994         The rest is a merge from libc:
59995         [defined _LIBC]: Include <shlib-compat.h>.
59996         (_obstack) [defined _LIBC]: Remove after 2.3.4.
59997
59998         * lib/settime.c (settime): Recode to avoid warning with
59999         Sun Forte C 6U2.
60000
60001         * lib/strverscmp.c: Convert to UTF-8.
60002
60003 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60004
60005         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60006         m4/uintmax_t.m4.
60007
60008 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60009
60010         * modules/xalloc-die: New file.
60011         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
60012
60013         * modules/md5 (Files): Add m4/uint32_t.m4.
60014         * modules/sha1: Renamed from modules/sha.
60015         (Files):
60016         Rename lib/sha.h to lib/sha1.h.
60017         Rename lib/sha.c to lib/sha1.c.
60018         Rename m4/sha.m4 to m4/sha1.m4.
60019         (lib_SOURCES): Likewise.
60020         (configure.ac): Rename gl_SHA to gl_SHA1.
60021         (Include): sha.h -> sha1.h.
60022
60023 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60024
60025         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
60026         * m4/sha1.m4: Renamed from sha.m4.
60027         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
60028
60029 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60030
60031         * lib/obstack.h (obstack_empty_p):
60032         Don't assume that chunk->contents is suitably aligned.
60033         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
60034         Likewise. Problem reported by Benno in
60035         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
60036
60037         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
60038         readable.  This could be improved further but it'd take some work.
60039
60040 2004-08-08  Simon Josefsson  <jas@extundo.com>
60041
60042         * modules/xgethostname (Depends-on): Remove exit and error (not
60043         used).
60044
60045         * modules/getpass-gnu: Add getpass.h.
60046         (Depends-on): Add stdbool.
60047         * modules/getpass: Add getpass.h.
60048
60049 2004-08-08  Simon Josefsson  <jas@extundo.com>
60050
60051         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
60052         Check getpass declaration.
60053
60054 2004-08-08  Simon Josefsson  <jas@extundo.com>
60055
60056         * lib/xgethostname.c: Don't include error.h (not used).
60057
60058         * lib/getpass.h: Add.
60059         * lib/getpass.c: Include getpass.h first.
60060
60061 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
60062
60063         * lib/xalloc-die.c: New file.
60064         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
60065         All uses removed.
60066         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
60067         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
60068         xalloc-die.c.
60069         (_, N_, xalloc_die): Move to xalloc-die.c.
60070         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
60071         so that we needn't mess with xalloc_msg_memory_exhausted.
60072
60073         * lib/sha1.h: Renamed from sha.h.
60074         (SHA1_H): Renamed from _SHA_H.
60075         (sha1_ctx): Renamed from sha_ctx.
60076         (sha1_init_ctx): Renamed from sha_init_ctx.
60077         (sha1_process_block): Renamed from sha_process_block.
60078         (sha1_process_bytes): Renamed from sha_process_bytes.
60079         (sha1_finish_ctx): Renamed from sha_finish_ctx.
60080         (sha1_read_ctx): Renamed from sha_read_ctx.
60081         (sha1_stream): Renamed from sha_stream.
60082         (sha1_buffer): Renamed from sha_buffer.
60083         * lib/sha1.c: Likewise; renamed from sha.c.
60084         Do not include <sys/types.h>.
60085         Include <stddef.h> rather than <stdlib.h>.
60086
60087 2004-08-08  Bruno Haible  <bruno@clisp.org>
60088
60089         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
60090         FILESYSTEM_PREFIX_LEN.
60091         * lib/progreloc.c: Likewise.
60092         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
60093
60094 2004-08-06  Simon Josefsson  <jas@extundo.com>
60095
60096         * modules/progname (Depends-on): Don't depend on stdbool.
60097
60098 2004-08-06  Simon Josefsson  <jas@extundo.com>
60099
60100         * modules/getsubopt: New file.
60101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60102         getsubopt.
60103
60104 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60105
60106         More merge from coreutils.
60107
60108         * m4/utimens.m4, m4/utimecmp.m4: New files.
60109         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
60110         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
60111         prereq.m4, sha.m4: Import changes from coreutils.
60112
60113 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60114
60115         More merge from coreutils.
60116         * modules/raise, modules/readtokens0, modules/utimens:
60117         * modules/utimecmp, module/xnanosleep: New files.
60118         * modules/strftime: Add lib/strftime.h.
60119         Change include from <time.h> to "strftime.h".
60120         * modules/yesno: Add lib/yesno.h.
60121         * modules/backupfile: Remove lib/addext.c.
60122         * modules/euidaccess: Add stat-macros.h.
60123         * modules/canonicalize, modules/euidaccess,
60124         modules/filemode, modules/lchown, modules/makepath,
60125         modules/rmdir, modules/stat: Likewise.
60126
60127 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         Merge from tar.
60130         * lib/argp-help.c (make_hol, hol_append): Don't assume that
60131         SIZE_MAX is a valid preprocessor constant.
60132         (__argp_basename): Change from "#ifndef _LIBC"
60133         to "#ifndef __argp_short_program_name", so that
60134         we don't compile these functions for tar.
60135
60136         More merges from coreutils.
60137         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
60138         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
60139         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
60140         * lib/addext.c: Remove; no longer needed.
60141         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
60142         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
60143         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
60144         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
60145         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
60146         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
60147         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
60148         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
60149         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
60150         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60151         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
60152         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
60153         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
60154         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60155         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60156         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60157         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60158         Import changes from coreutils.
60159
60160 2004-08-05  Simon Josefsson  <jas@extundo.com>
60161
60162         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60163
60164 2004-08-05  Simon Josefsson  <jas@extundo.com>
60165
60166         * m4/getsubopt.m4: New file.
60167
60168 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60169
60170         Merge from coreutils.
60171
60172         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60173         * m4/getcwd-path-max.m4: New files.
60174
60175         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60176         FILESYSTEM_PREFIX_LEN ->
60177         FILE_SYSTEM_PREFIX_LEN.
60178         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60179         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60180         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60181         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60182
60183         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60184         prerequisite modules now handle the DOS stuff.
60185         Don't check for unistd.h.
60186
60187 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         Merge from coreutils.
60190
60191         * lib/.gdb-history: Remove; this doesn't belong here.
60192
60193         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60194         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60195         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60196         * lib/getcwd.c: New files.
60197
60198         * lib/dirname.h: Include <stdbool.h>.
60199         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60200         for consistency with POSIX terminology.  All uses changed.
60201         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60202         (strip_trailing_slashes): Use bool for booleans.
60203         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60204
60205         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60206         sometimes returns a positive errno value even when it succeeds.
60207         (print_errno_message) [!LIBC]: Fall back on strerror if
60208         __strerror_r fails.
60209
60210         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60211         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60212         (longest_relative_suffix): New function.
60213         (path_concat): Use it.  Assume first argument is not NULL.
60214         Port to DOS.  Omit redundant separators.
60215         Report an error instead of returning NULL.
60216         Use mempcpy instead of memcpy.
60217         (xpath_concat): Remove: not declared or used.
60218
60219         * lib/same.h: Include <stdbool.h>
60220         (same_name): Return bool, not int.
60221         * lib/same.c (same_name): Likewise.
60222         (errno): Don't declare; we assume C89 or better now.
60223
60224         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60225         if not already defined.
60226
60227         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60228         * lib/dup-safer.c (errno): Likewise.
60229
60230 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60231
60232         Merge from coreutils.
60233         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60234         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60235         * modules/path-concat: Don't depend on strdup.
60236
60237 2004-08-03  Simon Josefsson  <jas@extundo.com>
60238
60239         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60240         * lib/progname.h: Don't include stdbool.h.
60241
60242 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60245         * MODULES.html.sh (func_all_modules): Remove fatal.
60246
60247 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60248
60249         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60250
60251 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60254         working.
60255
60256 2004-08-02  Simon Josefsson  <jas@extundo.com>
60257
60258         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60259         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60260         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60261
60262 2004-08-01  Simon Josefsson  <jas@extundo.com>
60263
60264         * lib/xgetdomainname.c: Include stdlib.h, for free().
60265
60266 2004-07-19  Bruno Haible  <bruno@clisp.org>
60267
60268         * MODULES.html.sh (func_all_modules): Add dummy.
60269
60270 2004-07-16  Simon Josefsson  <jas@extundo.com>
60271
60272         * modules/dummy: New file.
60273
60274 2004-07-16  Simon Josefsson  <jas@extundo.com>
60275
60276         * lib/dummy.c: New file.
60277
60278 2004-07-16  Bruno Haible  <bruno@clisp.org>
60279
60280         * lib/backupfile.h: Add extern "C" for C++.
60281         * lib/closeout.h: Likewise.
60282         * lib/copy-file.h: Likewise.
60283         * lib/findprog.h: Likewise.
60284         * lib/full-write.h: Likewise.
60285         * lib/pathname.h: Likewise.
60286         * lib/progname.h: Likewise.
60287         * lib/stpcpy.h: Likewise.
60288         * lib/stpncpy.h: Likewise.
60289         * lib/strcase.h: Likewise.
60290         * lib/strstr.h: Likewise.
60291         * lib/xalloc.h: Likewise.
60292
60293         * lib/mbswidth.h: Add extern "C" for C++.
60294         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60295
60296 2004-07-13  Robert Millan  <robertmh@gnu.org>
60297
60298         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60299
60300 2004-07-09  Simon Josefsson  <jas@extundo.com>
60301
60302         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60303         failed without this.)
60304
60305 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60306
60307         * modules/chown (Files): Add lib/fchown-stub.c, since
60308         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60309
60310 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60311
60312         * lib/fchown-stub.c: New file.
60313
60314 2004-06-24  Jim Meyering  <jim@meyering.net>
60315
60316         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60317
60318 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60319
60320         * modules/argz: Omit "#include".
60321
60322         * MODULES.html.sh (func_all_modules): Add calloc, to match
60323         2004-06-01 addition of calloc module.
60324
60325 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60326
60327         * m4/argz.m4: New file, which is autoupdated from libtool.
60328
60329 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60332         libtool.
60333
60334 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60335
60336         * config/srclist-update: Don't insist on "USA." before the
60337         close-comment, as libtool omits the period and puts the */ on a
60338         separate line.
60339         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60340         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60341
60342 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60343
60344         * modules/argz: New file.
60345         * MODULES.html.sh (func_all_modules): Add argz.
60346
60347 2004-06-12  Jim Meyering  <jim@meyering.net>
60348         and  Paul Eggert  <eggert@cs.ucla.edu>
60349
60350         * modules/hash (Files): Add lib/xalloc.h.
60351         * modules/pipe (Depends-on): Add wait-process.
60352         * modules/stat (Depends-on): Add xalloc.
60353         * modules/userspec (Files): Add lib/userspec.h.
60354         * modules/xstrto
60355
60356         Upgrade from gettext-0.13.
60357         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60358         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60359         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60360
60361 2004-06-10  Jim Meyering  <jim@meyering.net>
60362
60363         * lib/calloc.c: New file.
60364
60365 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60366
60367         * lib/getdate.y (yylex): Allow space between sign and number.
60368         Problem reported by Dan Jacobson.
60369
60370 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60371
60372         Merge from coreutils CVS.
60373
60374         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60375         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60376         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60377         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60378         xstrtol.m4: Fix copyright date and/or serial number.
60379
60380         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60381         See if we need an fchown replacement.
60382         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60383         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60384         and use the replacement function if we detect either defect.
60385
60386         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60387         gl_UTIMECMP.
60388
60389 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60390         and  Jim Meyering  <jim@meyering.net>
60391
60392         Merge from coreutils CVS.
60393
60394         * lib/stat-macros.h: New file, with contents from file-type.h
60395         and coreutils' system.h.
60396         * lib/file-type.c: Include "stat-macros.h".
60397         * lib/file-type.h (file_type): Move all macro definitions to new file,
60398         stat-macros.h.
60399
60400         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60401         Wrap old code with this conditional.
60402         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60403         function that does not dereference symlinks.
60404         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60405
60406         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60407         dependency problems.
60408         (xreadlink): Accept new arg SIZE, for efficiency.
60409         All decls and uses changed.
60410         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60411
60412         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60413         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60414
60415         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60416         sysexits.h.
60417
60418 2004-06-01  Jim Meyering  <jim@meyering.net>
60419
60420         * m4/calloc.m4: New file.
60421
60422 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60423
60424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60425         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60426         Also, fix a typo in a diagnostic.
60427
60428 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60429
60430         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60431         or AC_FUNC_REALLOC.
60432
60433 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60434
60435         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60436         macros to be defined.
60437         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60438         the allocator returns NULL because the requested size is zero.
60439
60440 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60441
60442         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60443         var.  Add comment explaining why libc still defines it.  This
60444         merges the following patch from glibc:
60445         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60446
60447 2004-05-20  Andreas Schwab  <schwab@suse.de>
60448
60449         * m4/free.m4: Replace free if it not known to work, not the other
60450         way round.
60451
60452 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60455         present in glibc since revision 1.1 of this file.
60456         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60457         obstack_alignment_mask, obstack_alloc, obstack_base,
60458         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60459         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60460         obstack_grow0, obstack_init, obstack_int_grow,
60461         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60462         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60463         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60464         nonexistent functions.
60465
60466 2004-05-18  Karl Berry  <karl@gnu.org>
60467
60468         * config/srclist.txt: break link for vasnprintf.c.
60469
60470 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60471
60472         Port obstack to the AS/400, where pointers are 16 bytes wide and
60473         you cannot cast an integer to a valid pointer.  This patch is
60474         currently waiting to be integrated into glibc; see
60475         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60476
60477         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60478         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60479         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60480         (struct obstack): temp member is now a union of a pointer and
60481         an integer, instead of an integer.  All integer uses changed.
60482         This does not affect the physical layout of struct obstack,
60483         except on hosts (like the AS/400) where the size or alignment of
60484         void * is greater than that of ptrdiff_t.
60485         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60486         __STDC__)]: Store temporary in pointer member of union, not
60487         integer member.
60488         * lib/obstack.c: Include <stddef.h>, for offsetof.
60489         (struct fooalign): Remove; it doesn't need a name.
60490         (union fooround): Change double to long double, and add void *.
60491         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60492         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60493         not a macro.  Hence the values are always int; so remove all
60494         casts-to-int in uses.
60495
60496 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60497
60498         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60499         we can get this patch merged into glibc.
60500
60501 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60502             Paul Eggert  <eggert@cs.ucla.edu>
60503
60504         * m4/argp: Depend on alloca.
60505
60506 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60507             Paul Eggert  <eggert@cs.ucla.edu>
60508
60509         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60510         freecoding.
60511
60512 2004-05-17  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60515         precision that consists of a '.' followed by an empty digit string.
60516         Patch by Tor Lillqvist <tml@iki.fi>.
60517
60518 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60519
60520         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60521         for backward compatibility with older code.  We need our own
60522         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60523         it under some other name, and our alloca.h will define it.
60524
60525 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60526             Derek Price  <derek@ximbiot.com>
60527
60528         * lib/alloca.c: Include <alloca.h>, to get our interface.
60529         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60530         include <alloca.h> first.  Use C89 prototype for alloca; this
60531         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60532         Use #elif for simplicity, since we can assume C89 now.
60533         Don't try to source the system alloca.h since it will not be found
60534         and to prevent recursively including its replacement.
60535         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60536         * lib/regex.c: Likewise.
60537
60538 2004-05-16  Derek Price  <derek@ximbiot.com>
60539             Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         getline cleanup.  This changes the getndelim2 API: both order of
60542         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60543         no delimiter).
60544
60545         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60546         interface does that.
60547         (getline): Always use getdelim, so that we don't have two
60548         copies of this code.
60549         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60550         if available.
60551         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60552         (GETNDELIM2_MAXIMUM): New macro.
60553         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60554         instead of the old practice of delim2==0.  All callers changed.
60555         Return -1 on overflow, instead of returning junk.
60556         Do not set *linesize unless allocation succeeds.
60557         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60558         that we include sys/types.h.
60559         * lib/getnline.h: Likewise.
60560         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60561         (getndelim2): Reorder arguments.
60562         * lib/getnline.c (getnline, getndelim):
60563         Don't discard the NMAX argument.
60564         (getnline): Invoke getndelim, to avoid code duplication.
60565         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60566         of (size_t) -1 by callers of the getnline family.
60567
60568 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60569
60570         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60571         Check for gettimeofday.
60572         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60573         Check for settimeofday, stime.
60574
60575 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60576
60577         * lib/nanosleep.c (suspended): Change its type from int to
60578         sig_atomic_t volatile.
60579         (first_call): Make it private to rpl_nanosleep, and have it
60580         be zero initially as that's a bit faster.
60581         (my_usleep): Round up fractional times instead of truncating them,
60582         as this is the usual meaning for 'sleep'.
60583
60584         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60585         doesn't work.
60586         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60587         (ENOSYS): Define if not defined.
60588         (settime): Fall back on stime if it exists and settimeofday fails.
60589         But don't bother with fallbacks if a method fails with errno == EPERM.
60590
60591 2004-05-11  Jim Meyering  <jim@meyering.net>
60592
60593         Prior to this change, the save_cwd caller required read access to the
60594         current directory on most systems (ones with the fchdir function).
60595
60596         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60597         fails, try write-only, and finally, resort to using xgetcwd.
60598
60599 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         * lib/obstack.c, obstack.h: Import changes from libc.
60602
60603 2004-04-28  Bruno Haible  <bruno@clisp.org>
60604
60605         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60606         also implicitly appends .exe to executables.
60607         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60608         accepts Windows pathnames.
60609         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60610         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60611         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60612         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60613         Reported by Derek Robert Price <derek@ximbiot.com>.
60614
60615 2004-04-21  Karl Berry  <karl@gnu.org>
60616
60617         * config/srclist.txt (localcharset.c): break sync.
60618
60619 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60620
60621         * m4/host-os.m4: Add a copyright notice.
60622
60623 2004-04-20  Jim Meyering  <jim@meyering.net>
60624
60625         Change UTILS_ to gl_ in AC_DEFINE'd names.
60626         Change utils_- and jm_-prefixed variables, too.
60627         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60628         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60630
60631         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60632         Don't emit trailing blanks.
60633         Also rename jm_-prefixed variables to have gl_ prefix.
60634
60635         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60636         Also rename jm_-prefixed variables to have gl_ prefix.
60637
60638         * m4/jm-macros.m4: Reflect the renamings.
60639         * m4/prereq.m4: Likewise.
60640
60641 2004-04-20  Jim Meyering  <jim@meyering.net>
60642
60643         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60644         memory.
60645
60646 2004-04-20  Jim Meyering  <jim@meyering.net>
60647             Bruno Haible  <bruno@clisp.org>
60648
60649         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60650         memory when realloc fails.
60651
60652 2004-04-19  Jim Meyering  <jim@meyering.net>
60653
60654         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60655         now that readutmp.c may call `free (0)'.
60656
60657 2004-04-19  Bruno Haible  <bruno@clisp.org>
60658
60659         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60660         * m4/inttypes_h.m4: Likewise.
60661         * m4/stdint_h.m4: Likewise.
60662         * m4/intmax_t.m4: Likewise.
60663         * m4/uintmax_t.m4: Likewise.
60664
60665 2004-04-18  Jim Meyering  <jim@meyering.net>
60666
60667         * m4/prereq.m4: Don't forbid jm_ prefix.
60668
60669         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60670         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60671         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60672         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60673         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60674         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60675         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60676         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60677         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60678         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60679         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60680         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60681         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60682         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60683         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60684         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60685         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60686         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60687         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60688
60689 2004-04-18  Jim Meyering  <jim@meyering.net>
60690
60691         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60692         failure, don't leak memory and do call END_UTMP_ENT.
60693
60694 2004-04-16  Jim Meyering  <jim@meyering.net>
60695
60696         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60697         coreutils' stat program.
60698         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60699
60700 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60701
60702         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60703         C89.
60704         (CHAR_BIT): Remove, since we assume C89.
60705         Include <stdint.h> if available, as per current Autoconf CVS advice.
60706
60707 2004-03-31  Jim Meyering  <jim@meyering.net>
60708
60709         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60710         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60711         * m4/xalloc.m4: Likewise.
60712
60713 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60714
60715         Merge from coreutils.
60716
60717         * m4/inttostr.m4: New file.
60718         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60719         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60720         Require gl_CLOCK_TIME.
60721         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60722
60723 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60724
60725         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60726         not bool, to be more consistent with Unix conventions.
60727         Suggested by Bruno Haible.
60728
60729         Merge from coreutils.
60730
60731         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60732         * lib/umaxtostr.c: New files.
60733
60734         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60735         the usual <time.h> dance.
60736         (get_date): Change signature to support fractional time stamps.
60737         All callers changed.
60738         * lib/getdate.y: Include "getdate.h" first, as we can now
60739         assume C89 and don't need to worry about 'const'.
60740         Similarly, include "unlocked-io.h" near start, not in middle.
60741         Include <limits.h>.
60742         (textint.value): Use long int rather than int.
60743         (textint.digits): Use size_t rather than int.
60744         (BILLION, LOG10_BILLION): New constants.
60745         (parser_control): New member rel_ns.  Members day_ordinal,
60746         time_zone, month, day, hour, minutes, rel_year, rel_month,
60747         rel_day, rel_hour, rel_minutes, rel_seconds
60748         are now long int, not int.  Member seconds is now struct timespec,
60749         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60750         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60751         not int.
60752         (%union.intval): Now long int, not int.
60753         New member timespec.
60754         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60755         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60756         (spec): Now is a timespec or an item list.
60757         (timespec, items): New nonterminals.
60758         (time, rel, relunit, number, get_date):
60759         Add support for fractional seconds.
60760         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60761         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60762         (to_hour): First arg is now long int, not int.
60763         (to_year): Returns long int, not int.
60764         Don't treat year -70 like 70.
60765         (tm_diff): Returns long int, not int.
60766         (lookup_word): Use bool instead of int when appropriate.
60767         (yylex): Use size_t for count, not int.
60768         Detect overflow when parsing large integer constants.
60769         Add support for fractions.
60770         (get_date): Make pointers 'const' if possible.
60771         Use more-portable code to detect integer overflow.
60772         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60773         Don't use ctime; it's not reliable if the year has >4 digits.
60774
60775         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60776         This is for compatibility with BSD.
60777
60778         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60779         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60780         From coreutils' system.h.
60781
60782         * lib/userspec.c: Don't include "posixver.h".
60783         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60784         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60785         compatible extension.  Simplify code by removing a boolean int
60786         that was always nonzero if a string was nonnull.
60787
60788 2004-03-30  Jim Meyering  <jim@meyering.net>
60789
60790         Merge from coreutils.
60791
60792         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60793         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60794         on some systems one must include <grp.h> before it.
60795         Reported by Christian Krackowizer.
60796
60797 2004-03-30  Jim Meyering  <jim@meyering.net>
60798
60799         Merge from coreutils.
60800
60801         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60802
60803         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60804         an empty input stream.
60805
60806         * lib/readtokens.c: Include <stdbool.h>.
60807         (readtoken): Use `size_t' rather than int/long.
60808         All callers adjusted.
60809         Use `bool' rather than `int' where appropriate.
60810         Use memset rather than an explicit loop.
60811         Use x2nrealloc rather than xrealloc.
60812         Allow the use of `\0' as a delimiter.
60813         (readtokens): Likewise.
60814         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60815
60816 2004-03-30  Jim Meyering  <jim@meyering.net>
60817
60818         * m4/realloc.m4: Remove file, since now it does no more than
60819         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60820         the `configure.ac' section of module/realloc.
60821         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60822
60823 2004-03-30  Bruno Haible  <bruno@clisp.org>
60824
60825         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60826         nonnull.
60827
60828 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60829
60830         Merge changes to getloadavg.c from coreutils and Emacs.
60831
60832         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60833         Define to an expression, not to the empty string.
60834         Include cloexec.h and xalloc.h.
60835         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60836         Use set_cloexec_flag rather than rolling our own.
60837         * lib/cloexec.c, lib/cloexec.h: New files.
60838
60839 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60840
60841         * m4/cloexec.m4: New file.
60842
60843 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60844
60845         * lib/getopt.h: Sync with libc CVS.
60846
60847 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60848             Bruno Haible  <bruno@clisp.org>
60849
60850         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60851         mbswidth.
60852
60853 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60854             Bruno Haible  <bruno@clisp.org>
60855
60856         * lib/mbswidth.h: Include <wchar.h> only if
60857         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60858         <wchar.h>.
60859         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60860
60861 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60862
60863         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60864         Sync with libc CVS.
60865         * lib/getopt_int.h: New file, also synced from libc.
60866
60867 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60868
60869         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60870         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60871         Bring back getopt.c, getopt.h, getopt1.c.
60872
60873 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60874
60875         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60876         All uses changed.  Check for sa_sigaction member; this fixes
60877         a bug first reported by Jason Andrade in
60878         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60879
60880 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60881
60882         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60883         '#if' expressions.  Unlike the code it replaces, it does not
60884         depend on (defined _SC_PAGESIZE).  However, it does depend on
60885         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60886         first reported by Jason Andrade in
60887         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60888
60889 2004-02-25  Simon Josefsson  <jas@extundo.com>
60890
60891         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60892
60893 2004-02-25  Simon Josefsson  <jas@extundo.com>
60894
60895         * lib/strdup.h: New file.
60896         * lib/strdup.c: Include it.
60897         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60898         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60899
60900 2004-02-23  Karl Berry  <karl@gnu.org>
60901
60902         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60903         (from fencepost.gnu.org:/gd/gnuorg).
60904
60905 2004-02-23  Karl Berry  <karl@gnu.org>
60906
60907         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60908         * config/srclist.txt: add maintain/standards documents.
60909
60910 2004-02-18  Bruno Haible  <bruno@clisp.org>
60911
60912         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60913         Reported by Derek Robert Price <derek@ximbiot.com>.
60914
60915 2004-02-16  Karl Berry  <karl@gnu.org>
60916
60917         * config/mkinstalldirs, install-sh: update from automake.
60918
60919 2004-02-06  Karl Berry  <karl@gnu.org>
60920
60921         * m4/po.m4: update from gettext 0.14.1.
60922
60923 2004-02-06  Karl Berry  <karl@gnu.org>
60924
60925         * lib/config.charset: update from gettext 0.14.1.
60926
60927 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60928
60929         Add comments and code, prompted by suggestions from Bruno Haible
60930         for sh-quote.
60931         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60932         describing the enum quoting_style values.
60933         * lib/quotearg.c (quotearg_alloc): New function.
60934         (quotearg_buffer_restyled): Treat lone { and } as special.
60935         Treat = as special.  Work around bug with older shells
60936         that "see" a '\' that is really the 2nd byte of a multibyte char.
60937         Quote empty string with shell_quoting_style.
60938
60939 2004-02-03  Bruno Haible  <bruno@clisp.org>
60940
60941         * m4/pipe.m4: New file, from GNU gettext.
60942
60943 2004-02-03  Bruno Haible  <bruno@clisp.org>
60944
60945         * lib/pipe.h: New file, from GNU gettext.
60946         * lib/pipe.c: New file, from GNU gettext.
60947
60948 2004-01-27  Bruno Haible  <bruno@clisp.org>
60949
60950         * m4/execute.m4: New file, from GNU gettext.
60951
60952 2004-01-27  Bruno Haible  <bruno@clisp.org>
60953
60954         * lib/execute.h: New file, from GNU gettext.
60955         * lib/execute.c: New file, from GNU gettext.
60956         * lib/w32spawn.h: New file, from GNU gettext.
60957
60958 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60959
60960         Merge from diffutils.
60961
60962         * lib/file-type.c (file_type): Add typed memory objects.
60963         * lib/file-type.h (S_TYPEISTMO): New macro.
60964
60965         * lib/c-stack.h (c_stack_action): Remove argv argument.
60966         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60967         (die): Don't calculate message unless segv_action returns.
60968         (get_stack_location, min_address_from_argv, max_address_from_argv,
60969         volatile stack_base, volatile_stack_size): Remove.
60970         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60971         that every segmentation violation is a stack overflow.  (Ouch!)
60972         See Debian bug 136249 (still outstanding) for more info about why
60973         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60974
60975 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60976
60977         Exit-status fix from coreutils.
60978
60979         Use exit_failure consistently in place of EXIT_FAILURE,
60980         so that program exit statuses are consistent on failure.
60981
60982         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60983         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60984         * lib/argmatch.h: Comment fix to match the above.
60985         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60986         Now a macro referring to exit_failure, instead of a separate
60987         variable.  Include "exitfail.h" to get it.
60988         * lib/xstrtol.h: Include "exitfail.h".
60989         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60990
60991         * lib/long-options.c (parse_long_options): Use prototype
60992         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60993         for clarity.
60994
60995 2004-01-21  Jim Meyering  <jim@meyering.net>
60996
60997         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
60998         so as not to conflict with a different-sized __mktime_internal
60999         function in GNU libc.
61000         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
61001         Problem building statically-linked `ls' reported by Michael Brunnbauer.
61002
61003 2004-01-20  Karl Berry  <karl@gnu.org>
61004
61005         * config/config.guess: update from config.
61006
61007         * config/srclistvars.sh: GNUWWWLICENSES for karl.
61008
61009 2004-01-20  Bruno Haible  <bruno@clisp.org>
61010
61011         Safer stack allocation.
61012         * lib/setenv.c: Include allocsa.h.
61013         (alloca): Remove fallback definition.
61014         (freea): Remove macro.
61015         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
61016         instead of freea.
61017
61018 2004-01-20  Bruno Haible  <bruno@clisp.org>
61019
61020         * m4/eealloc.m4: New file, from GNU gettext.
61021
61022 2004-01-20  Bruno Haible  <bruno@clisp.org>
61023
61024         * m4/allocsa.m4: New file, from GNU gettext.
61025
61026 2004-01-20  Bruno Haible  <bruno@clisp.org>
61027
61028         * lib/xallocsa.h: New file, from GNU gettext.
61029         * lib/xallocsa.c: New file, from GNU gettext.
61030
61031 2004-01-20  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
61034
61035 2004-01-20  Bruno Haible  <bruno@clisp.org>
61036
61037         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
61038         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
61039         specially.
61040
61041 2004-01-20  Bruno Haible  <bruno@clisp.org>
61042
61043         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
61044         patch.
61045
61046 2004-01-20  Bruno Haible  <bruno@clisp.org>
61047
61048         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
61049
61050 2004-01-20  Bruno Haible  <bruno@clisp.org>
61051
61052         * lib/eealloc.h: New file.
61053
61054 2004-01-20  Bruno Haible  <bruno@clisp.org>
61055
61056         * lib/binary-io.h: Avoid warnings on Cygwin.
61057
61058 2004-01-20  Bruno Haible  <bruno@clisp.org>
61059
61060         * lib/allocsa.h: New file, from GNU gettext.
61061         * lib/allocsa.c: New file, from GNU gettext.
61062
61063 2004-01-18  Karl Berry  <karl@gnu.org>
61064
61065         * doc/gpl.texi, doc/lgpl.texi: new files.
61066
61067 2004-01-18  Karl Berry  <karl@gnu.org>
61068
61069         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
61070         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
61071
61072 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61073
61074         Merge from coreutils.
61075
61076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
61077         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
61078         (gl_DEFAULT_POSIX2_VERSION): Move
61079         the documentation from 'configure' into 'config.hin',
61080         so that 'configure --help' isn't burdened by it and
61081         we don't have to worry about its formatting there.
61082         Reword the documentation so that it's more succinct
61083         and can be run together into a single paragraph.
61084         * m4/same.m4 (gl_SAME): Check for pathconf.
61085
61086 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61087
61088         Merge from coreutils.
61089
61090         * lib/posixver.c: Include posixver.h.
61091
61092         * lib/same.c: Include <stdbool.h>, <limits.h>.
61093         (_POSIX_NAME_MAX): Define if not defined.
61094         (MIN): New macro.
61095         (same_name): If file names are silently truncated, report
61096         that the file names are the same if they are the same after
61097         the silent truncation.
61098
61099         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
61100         conversion function.
61101         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
61102         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
61103         longer needed.
61104
61105 2004-01-15  Jim Meyering  <jim@meyering.net>
61106
61107         Merge from coreutils.
61108
61109         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
61110         if no library is required.
61111         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
61112         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
61113         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
61114         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
61115         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
61116         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
61117         value, $ac_cv_search_crypt, if it's "none required".
61118         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
61119         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
61120         not gl_FUNC_GETLOADAVG.
61121         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
61122         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
61123
61124 2004-01-15  Jim Meyering  <jim@meyering.net>
61125
61126         Merge from coreutils.
61127
61128         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
61129         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
61130         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
61131
61132         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
61133         optional configure-time default.
61134
61135         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61136
61137         * lib/xreadlink.c (xreadlink): Correct outdated comment.
61138
61139 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
61140
61141         Merge from coreutils.
61142
61143         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
61144         value, $ac_cv_search_nanosleep, if it's "none required".
61145
61146 2004-01-14  Paul Eggert  <eggert@twinsun.com>
61147
61148         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
61149         with like-named macro in fnmatch.c.
61150         (EXT): Use an internal constant instead.
61151
61152         Merge fnmatch patches from glibc.
61153         * lib/fnmatch.c (mbsinit): Remove define.
61154         Add libc_hidden_ver (__fnmatch, fnmatch).
61155         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61156         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61157
61158 2004-01-14  Karl Berry  <karl@gnu.org>
61159
61160         * config/install-sh: update from automake.
61161
61162 2004-01-13  Karl Berry  <karl@gnu.org>
61163
61164         * config/install-sh: update from automake.
61165
61166 2004-01-09  Karl Berry  <karl@gnu.org>
61167
61168         * config/install-sh: update from automake.
61169
61170 2004-01-05  Karl Berry  <karl@gnu.org>
61171
61172         * config/config.{sub,guess}: update from config.
61173
61174 2003-12-31  Karl Berry  <karl@gnu.org>
61175
61176         * config/depcomp: update from automake.
61177
61178 2003-12-14  Karl Berry  <karl@gnu.org>
61179
61180         * lib/config.charset: update from gettext-runtime.
61181
61182 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61183
61184         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61185         Bug reported by Alfred M. Szmidt.
61186
61187 2003-12-03  Bruno Haible  <bruno@clisp.org>
61188
61189         * m4/gettext.m4: Upgrade from gettext-0.13.
61190         * m4/po.m4: Upgrade from gettext-0.13.
61191         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61192         * m4/intmax.m4: New file, from gettext-0.13.
61193         * m4/printf-posix.m4: New file, from gettext-0.13.
61194
61195 2003-11-29  Karl Berry  <karl@gnu.org>
61196
61197         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61198
61199 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61200             Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/printf-parse.h: Don't include sys/types.h.
61203         (ARG_NONE): New macro.
61204         (char_directive): Change type of *arg_index fields to size_t.
61205         * lib/printf-parse.c: Don't include sys/types.h.
61206         (SSIZE_MAX): Remove macro.
61207         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61208         Remove unnecessary overflow check.
61209         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61210         fields.
61211
61212 2003-11-25  Bruno Haible  <bruno@clisp.org>
61213
61214         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61215
61216 2003-11-25  Bruno Haible  <bruno@clisp.org>
61217
61218         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61219         gt_TYPE_SSIZE_T.
61220
61221 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61222
61223         * modules/alloca: Remove dependency on xalloc.
61224
61225 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61226
61227         * lib/alloca.c: Remove dependency on xalloc module.
61228         (xalloc_die): Remove.
61229         (memory_full) [!defined emacs]: New macro.
61230         [!defined emacs]: Don't include xalloc.h.
61231         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61232         address arithmetic overflows.  Change datatypes a bit to avoid
61233         unnecessary casts.
61234
61235 2003-11-22  Jim Meyering  <jim@meyering.net>
61236
61237         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61238         s/size/size_t/.
61239
61240 2003-11-21  Karl Berry  <karl@gnu.org>
61241
61242         * config/config.{sub,guess}: update from config.
61243
61244 2003-11-18  Karl Berry  <karl@gnu.org>
61245
61246         * config/config.{sub,guess}: update from config.
61247
61248         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61249
61250 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61251
61252         * README: Mention that S+T cannot overflow if S is the size of
61253         an existing object and T is sufficiently small.
61254
61255 2003-11-17  Jim Meyering  <jim@meyering.net>
61256
61257         On systems without utime and without a utimes function capable of
61258         dealing with a NULL struct utimbuf* argument, this utime replacement
61259         could -- in unusual circumstances -- leak a file descriptor.
61260         * lib/utime.c: Include <unistd.h> and <errno.h>.
61261         (utime_null): Be sure to close `fd' and to preserve errno.
61262         Reported by Geoff Collyer via Arnold Robbins.
61263
61264 2003-11-17  Bruno Haible  <bruno@clisp.org>
61265
61266         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61267         (Depends-on): Add xsize.
61268
61269 2003-11-17  Bruno Haible  <bruno@clisp.org>
61270
61271         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61272
61273 2003-11-17  Bruno Haible  <bruno@clisp.org>
61274
61275         * lib/vasnprintf.c (alloca): Remove fallback definition.
61276         (freea): Remove definition.
61277         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61278         Reported by Paul Eggert.
61279
61280 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61281             Bruno Haible  <bruno@clisp.org>
61282
61283         Protect against address arithmetic overflow.
61284         * lib/printf-args.h: Include stddef.h.
61285         (arguments): Change type of field 'count' to size_t.
61286         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61287         'unsigned int' where appropriate.
61288         * lib/printf-parse.h: Include sys/types.h.
61289         (char_directive): Change type of *arg_index fields to ssize_t.
61290         (char_directives): Change type of fields 'count', max_*_length to
61291         size_t.
61292         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61293         (SSIZE_MAX): Define fallback value.
61294         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61295         instead of 'int' where appropriate. Check a_allocated, d_allocated
61296         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61297         * lib/vasnprintf.c: Include xsize.h.
61298         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61299         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61300         overflow. Avoid wraparound when converting a width or precision from
61301         decimal to binary.
61302
61303 2003-11-16  Bruno Haible  <bruno@clisp.org>
61304
61305         Update from GNU gettext.
61306         * lib/printf-parse.c: Generalize to it can be compiled for wide
61307         strings.
61308         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61309         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61310         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61311         SNPRINTF): New macros.
61312         Don't include <alloca.h> if the file is used inside libintl.
61313         (local_wcslen): New function, for Solaris 2.5.1.
61314         (VASNPRINTF): Use it instead of wcslen.
61315
61316 2003-11-16  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/xsize.h (xmax): New function.
61319         (xsum, xsum3, xsum4): Declare as "pure" functions.
61320
61321 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61322
61323         * modules/xalloc (Files): Undo latest change, since xalloc.h
61324         no longer needs SIZE_MAX or PTRDIFF_MAX.
61325
61326 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61327
61328         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61329         gl_PTRDIFF_MAX.
61330
61331 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61332
61333         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61334         "return", to pacify some unknown compiler.  Problem reported
61335         by Joerg Schilling.
61336
61337 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61338
61339         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61340         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61341         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61342         heuristic is just as accurate as far as we know, and it removes a
61343         dependency on size_max.m4 and ptrdiff_max.m4.
61344
61345 2003-11-11  Bruno Haible  <bruno@clisp.org>
61346
61347         * modules/xsize (Files): Add m4/size_max.m4.
61348         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61349
61350 2003-11-11  Bruno Haible  <bruno@clisp.org>
61351
61352         * m4/size_max.m4: New file.
61353         * m4/ptrdiff_max.m4: New file.
61354         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61355         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61356         (gl_XALLOC): Invoke it.
61357
61358 2003-11-11  Bruno Haible  <bruno@clisp.org>
61359
61360         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61361         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61362         defined.
61363
61364 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61365
61366         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61367         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61368         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61369         From Bruno Haible.
61370         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61371         not (size_t) -1, since it's defined here.
61372
61373 2003-11-09  Karl Berry  <karl@gnu.org>
61374
61375         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61376
61377 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61378
61379         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61380         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61381         Reject sizes of exactly SIZE_MAX bytes.
61382         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61383         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61384
61385 2003-11-05  Bruno Haible  <bruno@clisp.org>
61386
61387         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61388         SIZE_MAX defined in <limits.h> on Solaris.
61389
61390 2003-11-04  Jim Meyering  <jim@meyering.net>
61391
61392         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61393         variable names, rather than @VAR@.
61394         * modules/poll: Likewise.
61395
61396 2003-11-04  Bruno Haible  <bruno@clisp.org>
61397
61398         * modules/xsize: New file.
61399         * modules/linebreak: Depend on xsize.
61400         * MODULES.html.sh (func_all_modules): Add xsize.
61401
61402 2003-11-04  Bruno Haible  <bruno@clisp.org>
61403
61404         * m4/xsize.m4: New file.
61405
61406 2003-11-04  Bruno Haible  <bruno@clisp.org>
61407
61408         * lib/xsize.h: New file.
61409         * lib/linebreak.c: Include xsize.h.
61410         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61411         argument for overflow.
61412         Suggested by Paul Eggert.
61413
61414 2003-11-03  Karl Berry  <karl@gnu.org>
61415
61416         * config/config.{guess,sub}: update from config.
61417
61418 2003-11-03  Jim Meyering  <jim@meyering.net>
61419
61420         * modules/userspec (lib_SOURCES): Add userspec.h.
61421         (Include): Add "userspec.h".
61422         Improve description.
61423
61424 2003-11-03  Jim Meyering  <jim@meyering.net>
61425
61426         * lib/userspec.c: Include "userspec.h".
61427         * lib/userspec.h: New file.
61428
61429 2003-11-03  Bruno Haible  <bruno@clisp.org>
61430
61431         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61432
61433 2003-11-03  Bruno Haible  <bruno@clisp.org>
61434
61435         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61436         available, to avoid (extremely rare) race condition.
61437         Suggested by Paul Eggert.
61438
61439 2003-11-02  Karl Berry  <karl@gnu.org>
61440
61441         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61442
61443 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61444
61445         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61446         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61447         (read_filesystem_list): Set and use me_type_malloced.
61448         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61449         whatever the type happens to be), for brevity and consistency.
61450         Check for size calculation overflow on Alphas running OSF/1.
61451
61452 2003-10-31  Jim Meyering  <jim@meyering.net>
61453
61454         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61455
61456         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61457
61458 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61459             Bruno Haible  <bruno@clisp.org>
61460
61461         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61462         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61463
61464 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61467         netbsd*-gnu*.  Suggested by Robert Millan.
61468
61469 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61470
61471         * modules/group-member: Depend on stdbool.
61472
61473 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61474
61475         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61476
61477 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61478
61479         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61480         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61481         after the 'gnu' in these cases.  This fixes some bugs in the
61482         previous change, and is based on suggestions by Robert Millan.
61483
61484 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61485
61486         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61487         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61488         no longer needed.
61489         * lib/quotearg.c (quotearg_n_options): Use it.
61490         * lib/group-member.c: Include <stdbool.h>.
61491         (free_group_info): Arg is now const *; don't free arg.
61492         (get_group_info): Now returns bool and accepts struct group_info *,
61493         rather than returning a malloc'ed struct group_info *.
61494         All uses changed.  Check for overflow in internal size calculation.
61495
61496         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61497         rather than xmalloc/xrealloc.
61498         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61499         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61500         conformance bug: the old code used a pointer after freeing the
61501         storage that it addressed.
61502         * lib/hash.c (hash_initialize): Simplify the code by using
61503         xalloc_oversized rather than doing it by hand.
61504         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61505         the buffer preserved.  Use free and xmalloc instead.
61506         * lib/quotearg.c (quotearg_n_options): Likewise.
61507         Use a simpler test for size overflow.  Don't use xalloc_oversized
61508         because unsigned int might be wider than size_t (!); this suggests
61509         that we should switch from unsigned int to size_t for slot numbers.
61510
61511 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61512
61513         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61514         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61515         NetBSD kernels.  Requested by Richard Stallman.
61516
61517 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61518
61519         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61520         to allocate the returned structure.  Do not allocate a subarray,
61521         as x2nrealloc will do that.
61522         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61523         instead of xnrealloc.
61524         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61525
61526 2003-10-27  Bruno Haible  <bruno@clisp.org>
61527
61528         * lib/stdbool_.h: Better support for BeOS.
61529
61530 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61531
61532         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61533         now uses inline.
61534
61535 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61536
61537         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61538         callers that want to do their own size-overflow checking.  Include
61539         <stdbool.h>, since xalloc_oversized returns bool.
61540         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61541         to use xalloc_oversized.
61542
61543         Add two functions x2realloc, x2nrealloc, for programs that grow
61544         arrays dynamically by doubling their sizes.
61545         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61546         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61547         New functions.
61548
61549         Port to C99 semantics for 'inline' of external functions.
61550         Bug reported by Bruno Haible.
61551         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61552         with the old contents of xnmalloc.
61553         (xnmalloc, xmalloc): Use it.
61554         (xnrealloc_inline): New static inline function,
61555         with the old contents of xnrealloc.
61556         (xnrealloc, xrealloc): Use it.
61557
61558         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61559         that.
61560
61561 2003-10-26  Karl Berry  <karl@gnu.org>
61562
61563         * config/srclist.txt (COPYING.DOC): no longer available from
61564         /gd/gnuorg; don't know where the ultimate source is.
61565
61566 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61567
61568         Fix several address-calculation bugs in the hash modules,
61569         plus some minor code cleanup.
61570
61571         * lib/hash.h: Include <stdbool.h>, for bool.
61572         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61573         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61574         hash_get_n_entries, hash_get_max_bucket_length,
61575         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61576         hash_rehash): Use size_t rather than unsigned.
61577         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61578         hash_get_n_buckets_used, hash_get_n_entries,
61579         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61580         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61581         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61582         Likewise.
61583         (SIZE_MAX): Define if not defined.
61584         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61585         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61586         hash_print):
61587         Use const * when possible.
61588         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61589         (check_tuning): Fix bug: if tuning parameters were very close to
61590         0 or 1, rounding errors could have caused subscript violations.
61591         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61592         (hash_initialize): Add 'fail:' label
61593         to free table and return NULL, and use it to simplify code.
61594         Use calloc rather than clearing the storage ourself.
61595         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61596         buffer size calculations.
61597         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61598         Include <stddef.h>, for size_t.
61599         * lib/hash-pjw.c (hash_pjw): Likewise.
61600         Switch to method described by Bruno Haible.
61601         Include <limits.h>, for CHAR_BIT.
61602         (SIZE_BITS): New macro.
61603
61604 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61605
61606         * m4/getline.m4 (AM_FUNC_GETLINE):
61607         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61608         hosts.  Problem reported by Derek Robert Price in
61609         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61610         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61611         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61612
61613 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61614
61615         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61616         ceiling the allocation at NMAX bytes rather than silently
61617         discarding input bytes before NMAX is reached.  This makes
61618         a difference only if NMAX exceeds SIZE_MAX / 2.
61619
61620         * lib/obstack.c: Merge from glibc.
61621         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61622         Add libc_hidden_def (_obstack_newchunk).
61623         (_obstack_free) [! defined _LIBC]: Remove.
61624         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61625         a clone of the function body.
61626         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61627         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61628
61629         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61630         glibc.
61631         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61632         arg to memcpy.
61633
61634         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61635         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61636         Don't use lvalue casts, as GCC plans to remove support for them
61637         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61638         was also present in the non-GCC version, indicating that this
61639         code had always been buggy and had never been widely used.
61640         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61641         Use the fast variant of each macro, rather than copying the
61642         definiens of the fast variant; that way, we'll be more likely to
61643         catch future bugs in the fast variants.
61644
61645 2003-10-20  Bruno Haible  <bruno@clisp.org>
61646
61647         * modules/wait-process: New file.
61648         * MODULES.html.sh (func_all_modules): Add wait-process.
61649
61650 2003-10-20  Bruno Haible  <bruno@clisp.org>
61651
61652         * m4/wait-process.m4: New file.
61653
61654 2003-10-20  Bruno Haible  <bruno@clisp.org>
61655
61656         * lib/wait-process.h: New file, from GNU gettext.
61657         * lib/wait-process.c: New file, from GNU gettext.
61658
61659 2003-10-19  Jim Meyering  <jim@meyering.net>
61660
61661         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61662         HPUX 10.20.
61663
61664 2003-10-18  Karl Berry  <karl@gnu.org>
61665
61666         * config/config.guess: update from config.
61667
61668 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61669
61670         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61671         (getgroups): First arg is int, not size_t.
61672         Don't let 'free' mangle errno.
61673
61674 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61675
61676         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61677
61678 2003-10-16  Karl Berry  <karl@gnu.org>
61679
61680         * config/config.{guess,sub}: update from config.
61681
61682 2003-10-16  Jim Meyering  <jim@meyering.net>
61683
61684         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61685         memcpy.
61686
61687 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61688
61689         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61690         (SIZE_MAX): Remove.
61691         (new_exclude, add_exclude_file): Initial size no longer needs to
61692         be a power of 2.
61693         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61694         our own address arithmetic overflow checking.
61695
61696         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61697         (fnmatch): Do not alloca more than 2000 wide characters;
61698         instead, use malloc for large buffers.
61699         Check for address arithmetic overflow, and return -1
61700         with errno set to ENOMEM in that case.
61701         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61702         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61703         instead, return -1.  Check for address arithmetic overflow.
61704
61705 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61706
61707         Handle invalid suffixes and overflow independently, so that
61708         callers can treat them independently as needed.  Fix some bugs in
61709         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61710         suffix for a human-readable blocksize.  The major caller-visible
61711         change is the addition of a new
61712         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61713         that both overflow and suffix chars were found.
61714
61715         * lib/human.c (humblock): Don't check separately for invalid suffix
61716         char; that is xstrtoumax's job (now that its bug is fixed).
61717         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61718         INTMAX_MAX]: New macros.
61719         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61720         TYPE_MAXIMUM): New macros.
61721         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61722         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61723         if overflow occurs, as it's what __strtol does and it's more useful
61724         in practice.
61725         (__xstrtol): If __strtol reports some error other than ERANGE,
61726         reflect it to the caller as LONGINT_INVALID.  If it reports
61727         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61728         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61729         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61730         value.
61731         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61732         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61733         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61734         [defined UINTMAX_MAX]: New macros.
61735
61736 2003-10-14  Bruno Haible  <bruno@clisp.org>
61737
61738         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61739
61740 2003-10-14  Bruno Haible  <bruno@clisp.org>
61741
61742         * m4/sig_atomic_t: New file, from GNU gettext.
61743         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61744
61745 2003-10-14  Bruno Haible  <bruno@clisp.org>
61746
61747         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61748         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61749         Also use volatile where needed.
61750
61751 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61752
61753         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61754         Change maintainer from Bruno Haible to 'all'.
61755
61756 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61757
61758         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61759
61760 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61761
61762         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61763         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61764         and define in terms of the other primitives.
61765         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61766         (SIZE_MAX): Define if not already defined.
61767         (array_size_overflow): New function.
61768         (xalloc_die): Abort instead of exiting if 'error' returns.
61769         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61770         (xmalloc, xrealloc): Use them.
61771         (xcalloc): Check for address arithmetic overflow.
61772         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61773         a bit faster than strcpy.
61774
61775 2003-10-10  Simon Josefsson  <jas@extundo.com>
61776
61777         * modules/argp (Depends-on): Add restrict and strcase.
61778
61779 2003-10-10  Simon Josefsson  <jas@extundo.com>
61780
61781         * m4/argp.m4: Add AC_C_INLINE.
61782
61783 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61784
61785         Merge getpass from libc, plus a few fixes.
61786
61787         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61788         Include <stdbool.h>.
61789         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61790         __fsetlocking to empty.
61791         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61792         do include <bits/libc-lock.h>.
61793         Do not include <fcntl.h>; not needed.
61794         [_LIBC]: Include <wchar.h>.
61795         (NOTCANCEL_MODE): New macro.
61796         (flockfile, funlockfile) [_LIBC]: New macros.
61797         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61798         [!_LIBC]: New macros.
61799         (call_fclose): New function.
61800         (getpass): Use it.  Save tty stream separately; this simplifies the
61801         code and makes it more reliable if stdin happens to equal stdout.
61802         Invoke __fsetlocking on tty.
61803         Handle thread cancellation if needed.
61804         Namespace cleanup (use __tcgetattr, __getline).
61805         Use bool for Booleans.
61806         [USE_IN_LIBIO]: Handle wide streams.
61807         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61808         stream might go where.
61809
61810         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61811         doesn't have to include <stdio.h> before us.
61812         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61813         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61814         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61815         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61816         if not declared, so that we can use getpass.c code from libc without
61817         rewriting it.
61818         (flockfile, ftrylockfile, funlockfile): New macros.
61819
61820 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61821
61822         * modules/getpass: Depend on stdbool.
61823
61824 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61825
61826         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61827
61828 2003-10-07  Karl Berry  <karl@gnu.org>
61829
61830         * config/config.{guess,sub}: update from config.
61831
61832 2003-10-06  Jim Meyering  <jim@meyering.net>
61833             Bruno Haible  <bruno@clisp.org>
61834
61835         This lets translators provide better translations for the
61836         "Written by ..." part of --version output.
61837         * lib/version-etc.h: Include stdarg.h.
61838         (version_etc_copyright): Declare as readonly.
61839         (version_etc): Make this function variadic with a NULL-terminated list
61840         of author name strings.
61841         (version_etc_va): New declaration.
61842         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61843         (version_etc_copyright): Declare as readonly.
61844         (version_etc_va): New function. Provide a different translatable string
61845         for each possible number of authors < 10. Abbreviate when there are 10
61846         authors or more.
61847         (version_etc): Make this function variadic. Call version_etc_va.
61848         Suggestion from Gary V. Vaughan.
61849
61850         * lib/long-options.h (parse_long_options): Change prototype: the
61851         authors string is moved to the end and becomes variadic.
61852         * lib/long-options.c: Include stdarg.h.
61853         (parse_long_options): Make this function variadic, too.
61854         Call version_etc_va, not version_etc.
61855
61856 2003-10-06  Bruno Haible  <bruno@clisp.org>
61857
61858         * modules/version-etc-2: Remove file.
61859         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61860
61861 2003-10-06  Bruno Haible  <bruno@clisp.org>
61862
61863         * modules/fatal-signal: New file.
61864         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61865
61866 2003-10-06  Bruno Haible  <bruno@clisp.org>
61867
61868         * m4/fatal-signal.m4: New file.
61869         * m4/signalblocking.m4: New file, from GNU gettext.
61870
61871 2003-10-06  Bruno Haible  <bruno@clisp.org>
61872
61873         * lib/version-etc-2.h: Remove file.
61874         * lib/version-etc-2.c: Remove file.
61875
61876 2003-10-06  Bruno Haible  <bruno@clisp.org>
61877
61878         * lib/fatal-signal.h: New file, from GNU gettext.
61879         * lib/fatal-signal.c: New file, from GNU gettext.
61880
61881 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61882
61883         * README: Rework advice for preventing empty .o files.
61884         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61885         not <sys/types.h>.
61886
61887 2003-10-04  Karl Berry  <karl@gnu.org>
61888
61889         * lib/argp*: update from libc.
61890
61891 2003-10-04  Karl Berry  <karl@gnu.org>
61892
61893         * config/config.{guess,sub}: update from config.
61894
61895 2003-10-02  Bruno Haible  <bruno@clisp.org>
61896
61897         * modules/lchown (Include): Add lchown.h.
61898         * modules/time_r (Include): Use "..." syntax.
61899         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61900
61901 2003-10-01  Simon Josefsson  <jas@extundo.com>
61902
61903         * MODULES.html.sh (func_all_modules): Move gethostname from section
61904         'based on' to section 'lacking' POSIX:2001.
61905
61906 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61907
61908         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61909         to output mode on the same stream.
61910
61911 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61912
61913         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61914         Fix arg typo in previous patch.
61915
61916 2003-09-28  Jim Meyering  <jim@meyering.net>
61917
61918         * lib/error.c: Correct cpp indentation.
61919
61920 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61921
61922         * modules/free: New file.
61923
61924 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61925
61926         * m4/free.m4: New file.
61927
61928 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61929
61930         * lib/minmax.h (MIN, MAX)
61931         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61932         Omit the special code that used __typeof__, since we worry that
61933         it could be more trouble than it's worth.  See:
61934         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61935         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61936
61937         * lib/free.c: New file.
61938
61939 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61940
61941         Trivial fixes to Makefile.am parts of module listings.
61942         * modules/strstr: Append strstr.h to lib_SOURCES.
61943         * modules/strcase: Likewise, for strcase.h.
61944
61945 2003-09-27  Karl Berry  <karl@gnu.org>
61946
61947         * config/mkinstalldirs: update from automake.
61948
61949 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61950
61951         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61952         (error_tail): Do not loop, reallocating temporary buffer, since
61953         the output cannot contain more wide characters than the input
61954         contains bytes, the size must be big enough already.  This avoids
61955         one potential size overflow calculation.  Check for size overflow
61956         when calculating temporary buffer size.  Free temporary buffer
61957         when done, if it was allocated with malloc; this plugs a memory
61958         leak.  Remove casts from void * to pointers, that are no longer
61959         needed now that we're assuming C89 or better.
61960
61961         Merge error changes from glibc.
61962
61963         * lib/error.c, error.h: Update copyright notice header to match glibc.
61964         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61965         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61966         Disable cancellation while printing error.
61967         * lib/error.h: Prepend __ to parameter names.
61968
61969 2003-09-26  Jim Meyering  <jim@meyering.net>
61970
61971         * lib/error.c (error_tail): Move some declarations
61972         into inner scope where the local variables are used.
61973
61974 2003-09-26  Bruno Haible  <bruno@clisp.org>
61975
61976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61977         stpncpy().
61978         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61979
61980 2003-09-26  Bruno Haible  <bruno@clisp.org>
61981
61982         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61983         (stpncpy): Define as alias for gnu_stpncpy.
61984         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61985
61986 2003-09-25  Simon Josefsson  <jas@extundo.com>
61987
61988         * lib/xgetdomainname.h: New file.
61989         * lib/xgetdomainname.c: New file.
61990
61991 2003-09-25  Simon Josefsson  <jas@extundo.com>
61992             Bruno Haible  <bruno@clisp.org>
61993
61994         * modules/getdomainname: New file.
61995         * modules/xgetdomainname: New file.
61996         * MODULES.html.sh (func_all_modules): Add getdomainname,
61997         xgetdomainname.
61998
61999 2003-09-25  Simon Josefsson  <jas@extundo.com>
62000             Bruno Haible  <bruno@clisp.org>
62001
62002         * m4/getdomainname.m4: New file.
62003
62004 2003-09-25  Simon Josefsson  <jas@extundo.com>
62005             Bruno Haible  <bruno@clisp.org>
62006
62007         * lib/getdomainname.h: New file.
62008         * lib/getdomainname.c: New file.
62009
62010 2003-09-25  Karl Berry  <karl@gnu.org>
62011
62012         * lib/argp-fmtstream.c, argp-help.c: update from libc.
62013
62014 2003-09-25  Karl Berry  <karl@gnu.org>
62015
62016         * config/install-sh: update from automake.
62017
62018 2003-09-25  Bruno Haible  <bruno@clisp.org>
62019
62020         * modules/version-etc-2: New file, from modules/version-etc with
62021         modifications.
62022         * MODULES.html.sh (func_all_modules): Add version-etc-2.
62023
62024 2003-09-25  Bruno Haible  <bruno@clisp.org>
62025
62026         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
62027         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
62028
62029 2003-09-24  Simon Josefsson  <jas@extundo.com>
62030
62031         * modules/xgethostname: Add xgethostname.h.
62032
62033 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62034
62035         * lib/linebuffer.c (freebuffer): Don't free the argument, just
62036         the buffer associated with the argument.  Bug reported by
62037         Simon Josefsson.
62038
62039 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62040
62041         * README: Document assumptions that 'int' is at least 32 bits
62042         wide, that integer arithmetic is 2's complement without overflow,
62043         that there are no holes in integer values, that adding sizes of
62044         two nonoverlapping objects can't overflow, and that all-bits-zero
62045         yields scalar zero.  Fix spelling and capitalization typos.
62046
62047 2003-09-19  Karl Berry  <karl@gnu.org>
62048
62049         * lib/argp.h: update from libc.
62050
62051 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62052
62053         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
62054         to avoid spurious warnings like "AC_RUN_IFELSE was called before
62055         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
62056
62057 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62058
62059         * gnulib-tool: Use "test -h", not "test -L", for portability
62060         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
62061         (tags_regexp): Remove, since \| doesn't conform to POSIX.
62062         (sed_extract_prog): Issue s commands one-by-one, rather than
62063         using \| in one s command.
62064
62065 2003-09-16  Paul Eggert  <eggert@twinsun.com>
62066
62067         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
62068         input error, instead of returning NULL the next time we are called
62069         (and therefore losing track of errno).
62070
62071 2003-09-16  Bruno Haible  <bruno@clisp.org>
62072
62073         * gnulib-tool (func_create_testdir): Warn about duplicated
62074         dependencies.
62075
62076 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62077
62078         * modules/argmatch, modules/fatal, modules/obstack,
62079         modules/xalloc, modules/xgethostname: Sort dependencies by
62080         importance, not alphabetically.
62081
62082 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62083
62084         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
62085         fails, so that the caller gets the proper errno.
62086
62087         * lib/readutmp.c (read_utmp): Likewise.
62088         Check for fstat error.  Close stream and free storage
62089         when failing.
62090
62091 2003-09-14  Karl Berry  <karl@gnu.org>
62092
62093         * config/srclist.txt (strdup.c): disable for c89 changes.
62094
62095 2003-09-14  Jim Meyering  <jim@meyering.net>
62096
62097         * lib/getloadavg.c: Correct cpp indentation.
62098         * lib/strdup.c: Likewise.
62099         * lib/vasnprintf.c: Likewise.
62100
62101 2003-09-14  Bruno Haible  <bruno@clisp.org>
62102
62103         * modules/fwriteerror: New file.
62104         * MODULES.html.sh (func_all_modules): Add fwriteerror.
62105
62106 2003-09-14  Bruno Haible  <bruno@clisp.org>
62107
62108         * lib/fwriteerror.h: New file.
62109         * lib/fwriteerror.c: New file.
62110
62111 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62112
62113         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
62114         modules/xgethostname, modules/xalloc: Depend on exit.
62115
62116 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62117
62118         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
62119
62120         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
62121         and AC_MINIX, too, so that their extensions are available.
62122
62123         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
62124         This macro has been superseded by gl_BACKUPFILE.
62125
62126         More patches to assume C89 or better.
62127
62128         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
62129
62130         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
62131         unconditionally.
62132         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
62133         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
62134         Include <string.h>, <stdlib.h> unconditionally.
62135         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
62136         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
62137         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
62138         headers or for string.h.
62139         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
62140         or strtoul.
62141
62142         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
62143         headers.
62144         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
62145         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62146         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
62147         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
62148         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62149         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
62150         memcpy, memset.
62151         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
62152         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
62153         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
62154         strtol.
62155         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62156         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62157         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62158         strtoul.
62159
62160 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62161
62162         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62163         * lib/obstack.c [!defined _LIBC]: Likewise.
62164         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62165         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62166         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62167
62168         More changes to assume C89 or better.
62169
62170         * lib/error.c (error_tail): Assume vprintf.
62171
62172         * lib/argmatch.c (getenv): Remove decl.
62173         * lib/progreloc.c (get_full_program_name): Define via prototype.
62174         * lib/setenv.c (clearenv): Likewise.
62175         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62176         needed.
62177         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62178         (malloc, memcpy): Remove decls.
62179         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62180         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62181         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62182         (memcpy): Remove macro.
62183         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62184         (__P): Remove.  All uses removed.
62185         (PTR): Remove.  All uses changed to void *.
62186         (CHAR_BIT, NULL): Remove.
62187         (spaces, zeros, memset_space, memset_zero)
62188         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62189         Remove.
62190         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62191         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62192         Define with prototype.
62193         Remove now-unnecessary prototype decl.
62194         (extra_args_spec): Assume ANSI C.  All uses changed.
62195         (extra_args_spec_iso): Remove.
62196         (my_strftime, emacs_strftimeu): Define via prototype.
62197         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62198         unconditionally.
62199         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62200         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62201         (strtoul, strtol): Remove decls.
62202         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62203         LONG_MAX): Remove.
62204         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62205         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62206         (LOCALE_PARAM_PROTO): New macro.
62207         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62208         (INTERNAL (strtol), strtol): Define with a prototype.
62209         (PARAMS): Remove.  All uses removed.
62210         * lib/tempname.c: Include <string.h> unconditionally.
62211         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62212         * lib/xgethostname.c (main): Define with a prototype.
62213         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62214         Include <stdlib.h> unconditionally.
62215         (calloc, malloc, realloc, free): Remove decls.
62216         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62217         Include <stdlib.h> unconditionally.  Sort include file names.
62218         (strtod): Remove.
62219         (xstrtod): Define with a prototype.
62220         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62221         (strtol, strtoul): Remove decls.
62222
62223 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62224
62225         More patches to assume C89 or better.
62226         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62227         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62228         string.h, memchr, STDC_HEADERS.
62229
62230 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62231
62232         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62233         Include <stdlib.h>, <string.h> unconditionally.
62234         Remove now-unnecessary cast to char *.
62235         * lib/strnlen.c: Include <string.h> unconditionally.
62236         * lib/yesno.c (yesno): Define with a prototype.
62237
62238 2003-09-11  Bruno Haible  <bruno@clisp.org>
62239
62240         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62241
62242 2003-09-10  Jim Meyering  <jim@meyering.net>
62243
62244         * lib/error.c: Correct indentation of cpp directives.
62245
62246 2003-09-10  Bruno Haible  <bruno@clisp.org>
62247
62248         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62249         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62250         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62251         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62252         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62253         <stdlib.h> and <string.h> checks.
62254         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62255         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62256
62257 2003-09-10  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/strcspn.c: Include <string.h> unconditionally.
62260         * lib/strpbrk.c: Include <string.h> unconditionally.
62261         * lib/strstr.c: Include <string.h> unconditionally.
62262         * lib/unicodeio.c: Include <string.h> unconditionally.
62263         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62264         * lib/unsetenv.c: Likewise.
62265         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62266         * lib/yesno.c: Include <stdlib.h> unconditionally.
62267         (rpmatch): Add prototype.
62268
62269 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62270
62271         More patches to assume C89 or better.
62272         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62273         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62274         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62275         or for string.h.
62276         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62277         stdlib.h.
62278         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62279         C headers.
62280         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62281         string.h.
62282         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62283         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62284         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62285         or for string.h.
62286         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62287         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62288         C headers.
62289         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62290         memcpy.
62291         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62292         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62293         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62294         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62295         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62296         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62297         string.h, free.
62298         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62299         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62300         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62301         C headers, or for string.h.
62302         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62303         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62304         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62305         headers, memory.h, stdlib.h, string.h, strings.h.
62306         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62307         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62308         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62309         strchr.
62310         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62311         headers, memory.h, string.h.
62312         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62313         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62314         free.
62315         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62316         headers.
62317         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62318         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62319         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62320         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62321         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62322
62323 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62324
62325         More K&R removal.
62326
62327         * lib/acosl.c (main): Use a prototype.
62328         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62329         tanl.c: Likewise.
62330
62331         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62332
62333         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62334         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62335         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62336         with a prototype.
62337         * lib/getopt.c (const): Remove macro.
62338         Include <string.h> unconditionally.
62339         (my_index): Remove; all uses changed to strchr.
62340         (strlen): Remove decl.
62341         (exchange): Remove forward decl; no longer needed.
62342         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62343         Define with prototype.
62344         * lib/getopt1.c (const): Remove macro.
62345         (getopt_long, getopt_long_only, main): Define with prototype.
62346
62347         * lib/getugroups.c: Include <string.h> unconditionally.
62348
62349         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62350         (getusershell, setusershell, endusershell, readname, main):
62351         Define with prototypes.
62352
62353         * lib/group-member.c: Include group-member.h first.
62354         Include <stdlib.h> unconditionally.
62355
62356         * lib/hard-locale.c: Include hard-locale.h first.
62357         Include <stdlib.h>, <string.h> unconditionally.
62358
62359         * lib/hash.c (free, malloc): Remove decls.
62360         Include <stdlib.h> unconditionally.
62361
62362         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62363         (getenv): Do not declare.
62364
62365         * lib/idcache.c: Include <string.h> unconditionally.
62366
62367         * lib/long-options.c: Include long-options.h first, to test interface.
62368         Include <stdlib.h> unconditionally.
62369
62370         * lib/makepath.c: Include makepath.h first, to test interface.
62371         Include <stdlib.h> and <string.h> unconditionally.
62372
62373         * lib/linebuffer.c: Include <stdlib.h>.
62374         (free): Remove decl.
62375
62376         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62377         stddef.h. rpl_malloc returns void *, not char *.
62378         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62379         prototype.
62380
62381         * lib/md5.h: Include <limits.h> unconditionally.
62382         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62383         (__P): Remove; all uses removed.
62384         * lib/md5.c: Include "md5.h" first.
62385         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62386         md5_buffer, md5_process_bytes, md5_process_block):
62387         Define with prototypes.
62388         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62389         * lib/sha.c: Include "sha.h" first.
62390         Include <stdlib.h>, <string.h> unconditionally.
62391
62392         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62393         * lib/memcmp.c (__ptr_t): Likewise.
62394         * lib/memrchr.c (__ptr_t): Likewise.
62395         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62396         Include <string.h> unconditionally.
62397         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62398         * lib/memchr.c: Include <stdlib.h> unconditionally.
62399         * lib/memchr.c (LONG_MAX): Remove.
62400         * lib/memrchr.c (LONG_MAX): Likewise.
62401         * lib/memchr.c (__memchr): Define via a prototype.
62402         * lib/memrchr.c (__memrchr): Likewise.
62403         * lib/memcmp.c (__P): Remove, and remove all uses.
62404         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62405         Remove forward decls; no longer needed.
62406         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62407         Use types required by C89 in prototype.
62408
62409         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62410         * lib/savedir.c: Likewise.
62411         * lib/mkdir.c (free): Remove decl.
62412         * lib/rmdir.c (rmdir): Define with a prototype.
62413         * lib/savedir.c: Include savedir.h first, to test interface.
62414
62415         * lib/mktime.c (STDC_HEADERS): Remove.
62416         Include <stdlib.h>, <string.h> unconditionally.
62417
62418         * lib/modechange.c: Include <stdlib.h> unconditionally.
62419         (malloc): Remove decl.
62420
62421         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62422         (free): Remove decl.
62423
62424         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62425         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62426         (This type really should be intptr_t, but that's a C99ism.)
62427         (_obstack_memcpy): Remove: all uses changed to memcpy.
62428         Include <string.h> unconditionally.
62429         (struct obstack): Assume __STDC__ for types of members
62430         chunkfun, freefun, extra_arg.
62431         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62432         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62433         obstack_begin, obstack_specify_allocation,
62434         obstack_specify_allocation_with_arg, obstack_chunkfun,
62435         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62436         Remove unprototyped decls and the macros that use them.
62437         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62438         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62439         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62440         (defined __STDC__ && __STDC__)]:
62441         Remove nonprototyped code.
62442         Include <stdlib.h> unconditionally.
62443         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62444         _obstack_allocated_p, _obstack_free, obstack_free,
62445         _obstack_memory_used, print_and_abort):
62446         Define using prototypes.
62447         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62448         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62449         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62450         obstack_next_free, obstack_object_size, obstack_room) [0]:
62451         Remove unused, unprototyped code.
62452
62453         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62454
62455         * lib/physmem.c (physmem_total, physmem_available, main): Define
62456         with prototypes.
62457
62458         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62459         (main): Define with a prototype.
62460
62461         * lib/posixver.c (getenv): Remove decl.
62462
62463         * lib/putenv.c (malloc): Returns void *, not char *.
62464         Include <string.h> unconditionally.
62465         (strchr, memcpy, NULL): Do not define.
62466
62467         * lib/readtokens.c: Include readtokens.h first, to test interface.
62468         Include <stdlib.h>, <string.h> unconditionally.
62469         (init_tokenbuffer): Define with a prototype.
62470
62471         * lib/regex.c (PARAMS): Remove.  All uses removed.
62472         All uses of _RE_ARGS removed, too.
62473         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62474         unconditionally.
62475         (bzero): Assume memset exists.
62476         (memcmp, memcpy, NULL): Remove.
62477         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62478         char, or assignments to local vars of type signed char.
62479         (init_syntax_once, PREFIX(extract_number_and_incr),
62480         PREFIX(print_partial_compiled_pattern),
62481         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62482         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62483         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62484         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62485         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62486         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62487         wcs_compile_range, byte_compile_range, truncate_wchar,
62488         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62489         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62490         count_mbs_length, wcs_re_match_2_internal,
62491         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62492         PREFIX(alt_match_null_string_p),
62493         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62494         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62495         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62496         now-unnecessary declaration, if any.
62497         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62498         regcomp, regexec):
62499         Remove now-unnecessary casts among pointer types.
62500         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62501
62502         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62503         (free): Remove decl.
62504
62505         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62506
62507         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62508         (free): Remove decl.
62509
62510         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62511         * lib/xgetcwd.c: Likewise.
62512
62513         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62514         (free): Remove decl.
62515
62516         * lib/strchrnul.c (strchrnul): Define with a prototype.
62517         Fix bug: c_in was not converted to char before searching.
62518
62519         The following changes are not K&R related:
62520
62521         * lib/group-member.h: Include <sys/types.h>, so that this file is
62522         self-contained.
62523         * lib/makepath.h: Likewise.
62524
62525         * lib/getusershell.c (readname, default_index, line_size, readname):
62526         Use size_t, not int, for sizes.
62527         (readname): If the size overflows, report an error instead of
62528         looping forever.
62529
62530 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62531
62532         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62533         libc.
62534
62535 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62536
62537         * README: New section: portability guidelines.
62538
62539 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62540
62541         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62542         C89 spec.
62543
62544 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62545
62546         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62547
62548 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62549
62550         Assume C89 or better; remove K&R cruft.
62551         A few of these changes were first proposed by Derek Robert Price
62552         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62553
62554         * lib/addext.c: Include <string.h> unconditionally.
62555         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62556         Don't declare getenv or malloc.
62557
62558         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62559         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62560         (NULL): Remove.
62561         (find_stack_direction, alloca): Use prototypes.
62562
62563         * lib/atexit.c (atexit): Define using a prototype.
62564
62565         * lib/basename.c, dirname.c, stripslash.c:
62566         Include <string.h> unconditionally.
62567
62568         * lib/bcopy.c: Include <stddef.h>.
62569         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62570
62571         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62572
62573         * lib/error.h (error, error_at_line, error_print_progname)
62574         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62575         * lib/error.c: Include error.h first, to check interface.
62576         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62577         (VA_START): Remove; all uses changeed to va_start.
62578         (exit, strerror): Remove decls.
62579         (error_print_progname): Prototype uncondionally.
62580         Don't include <errno.h>; no longer needed.
62581         (private_strerror): Remove.
62582         (error_tail): Always define.
62583         (error, error_at_line): Assume C89 or better; always use prototypes.
62584         * lib/fatal.c: Include "fatal.h" first, to test interface.
62585         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62586         (VA_START): Remove; all uses changed to va_start.
62587         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62588         this case.
62589         (exit): Remove decl.
62590         (fatal): Prototype unconditionally.  Assume va_start works.
62591         Abort at end, to pacify gcc.
62592
62593         * lib/euidaccess.c (main): Define with a prototype.
62594
62595         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62596
62597         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62598
62599         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62600         prototypes.
62601         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62602         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62603         (getenv): Remove decl.
62604         (fnmatch): Define using a prototype.
62605         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62606         (FCT): Define using a prototype.
62607
62608         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62609
62610         * lib/gethostname.c: Include <stddef.h>.
62611         (gethostname): Define with prototype.  Length is size_t, not int.
62612
62613 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62614
62615         Assume C89 or better; remove K&R cruft.
62616         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62617         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62618         string.h, getenv, malloc.
62619         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62620         headers.
62621         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62622         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62623         do not check for strerror.
62624         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62625         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62626         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62627         do not check for doprnt or vprintf.
62628         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62629         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62630
62631 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62632
62633         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62634         getversion.c should have been removed then, but was accidentally
62635         preserved.
62636
62637         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62638         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62639
62640 2003-09-08  Karl Berry  <karl@gnu.org>
62641
62642         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62643                 config, forget about prep.
62644
62645         * config/depcomp, missing: update from automake.
62646
62647 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62648
62649         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62650         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62651
62652 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62653
62654         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62655         copy_tm_result.  Bug reported by Simon Josefsson in
62656         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62657
62658 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62659
62660         * m4/time_r.m4: New file.
62661         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62662         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62663         is. Check for timegm declaration.
62664         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62665         Do not check for gmtime_r.
62666         Replace mktime if __mktime_internal does not exist and if mktime
62667         hasn't been replaced already.
62668
62669 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62670
62671         * lib/time_r.c, lib/time_r.h: New files.
62672
62673         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62674         __localtime_r.
62675         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62676         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62677
62678         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62679         __gmtime_r.
62680         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62681         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62682         Include <time_r.h>.
62683
62684         * lib/timegm.c: Switch to glibc implementation, with the following
62685         changes:
62686         [defined HAVE_CONFIG_H]: Include <config.h>.
62687         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62688         (__mktime_internal) [!defined _LIBC]: New decl.
62689         (__gmtime_r) [!defined _LIBC]: New macro and function.
62690         (timegm): Use a prototype, since gnulib assumes C89.
62691         Do not bother declaring tmp to be const, as it's not really usefu.
62692         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62693         (timegm): Declare only if HAVE_DECL_TIMEGM.
62694
62695 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62696
62697         * MODULES.html.sh (func_all_modules): Add time_r.
62698         * modules/time_r: New file.
62699         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62700         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62701
62702 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62703
62704         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62705         Bug reported by Lute Kamstra in
62706         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62707
62708         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62709         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62710         course with correspondingly smaller numbers for tomorrow and
62711         yesterday.  From Tadayoshi Funaba.  Originally installed into
62712         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62713         coreutils merge?).
62714
62715 2003-08-31  Simon Josefsson  <jas@extundo.com>
62716
62717         * modules/timegm: New file.
62718         * MODULES.html.sh (func_all_modules): Add timegm.
62719
62720 2003-08-31  Simon Josefsson  <jas@extundo.com>
62721
62722         * m4/timegm.m4: New file.
62723
62724 2003-08-31  Simon Josefsson  <jas@extundo.com>
62725
62726         * lib/timegm.h: New file.
62727         * lib/timegm.c: New file.  Based on
62728         wget-1.8.2/src/http.c:mktime_from_utc.
62729
62730 2003-08-31  Karl Berry  <karl@gnu.org>
62731
62732         * lib/argp.h: update from libc.
62733
62734 2003-08-28  Bruno Haible  <bruno@clisp.org>
62735
62736         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62737         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62738         followed by '#define fnmatch fnmatch_posix' gives an error.
62739
62740 2003-08-28  Bruno Haible  <bruno@clisp.org>
62741
62742         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62743         warning on QNX, which defines O_BINARY to 000000.
62744
62745 2003-08-27  Jim Meyering  <jim@meyering.net>
62746
62747         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62748         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62749         would fail after 32.  Reported by Danny Levinson.  Details here:
62750         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62751
62752 2003-08-24  Bruno Haible  <bruno@clisp.org>
62753
62754         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62755         MSVC7 <stdio.h> is included later.
62756
62757 2003-08-22  Simon Josefsson  <jas@extundo.com>
62758
62759         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62760
62761 2003-08-20  Karl Berry  <karl@gnu.org>
62762
62763         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62764
62765 2003-08-20  Bruno Haible  <bruno@clisp.org>
62766
62767         * modules/progname: New file.
62768         * MODULES.html.sh (func_all_modules): Add progname.
62769
62770 2003-08-20  Bruno Haible  <bruno@clisp.org>
62771
62772         * lib/progname.h: New file, from GNU gettext.
62773         * lib/progname.c: New file, from GNU gettext.
62774         * lib/progreloc.c: New file, from GNU gettext.
62775
62776 2003-08-19  Jim Meyering  <jim@meyering.net>
62777
62778         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62779         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62780
62781 2003-08-19  Bruno Haible  <bruno@clisp.org>
62782
62783         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62784         more.
62785
62786 2003-08-19  Bruno Haible  <bruno@clisp.org>
62787
62788         * lib/xstrdup.c: Assume <string.h> exists.
62789
62790 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62791
62792         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62793         in makefile rules.
62794
62795 2003-08-18  Jim Meyering  <jim@meyering.net>
62796
62797         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62798         * m4/lib-ld.m4: Likewise.
62799
62800 2003-08-18  Jim Meyering  <jim@meyering.net>
62801
62802         * lib/setenv.h: Indent nested cpp directive.
62803         * lib/vasnprintf.c: Remove trailing blanks.
62804
62805 2003-08-17  Simon Josefsson  <jas@extundo.com>
62806
62807         * modules/xstrndup: New file.
62808         * MODULES.html.sh (func_all_modules): Add xstrndup.
62809
62810 2003-08-17  Simon Josefsson  <jas@extundo.com>
62811
62812         * modules/argp: Fix autoconf macro name. Add more dependencies.
62813
62814 2003-08-17  Simon Josefsson  <jas@extundo.com>
62815
62816         * m4/xstrndup.m4: New file.
62817
62818 2003-08-17  Simon Josefsson  <jas@extundo.com>
62819
62820         * m4/argp.m4: New file.
62821
62822 2003-08-17  Simon Josefsson  <jas@extundo.com>
62823             Bruno Haible  <bruno@clisp.org>
62824
62825         * lib/xstrndup.h: New file.
62826         * lib/xstrndup.c: New file.
62827
62828 2003-08-17  Bruno Haible  <bruno@clisp.org>
62829
62830         * modules/strndup (Files, Include): Add lib/strndup.h.
62831
62832 2003-08-17  Bruno Haible  <bruno@clisp.org>
62833
62834         * modules/euidaccess (Files): Add lib/euidaccess.h.
62835
62836 2003-08-17  Bruno Haible  <bruno@clisp.org>
62837
62838         * lib/strndup.h: New file.
62839
62840 2003-08-17  Bruno Haible  <bruno@clisp.org>
62841
62842         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62843         like AC_GNU_SOURCE.
62844         * modules/extensions (configure.ac): Comment out the invocation of
62845         gl_USE_SYSTEM_EXTENSIONS.
62846
62847 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62848
62849         Merges from coreutils, etc.
62850         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62851         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62852         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62853         fixing a typo.
62854         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62855         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62856
62857 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62858
62859         Document merge from coreutils.
62860         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62861         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62862         * modules/utime: Add m4/utimes-null.m4.
62863
62864 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62865
62866         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62867         space, undoing this 2003-08-12 change:
62868         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62869
62870 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62871
62872         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62873         strtoul.c from libc, undoing this 2003-08-12 change:
62874         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62875
62876 2003-08-16  Jim Meyering  <jim@meyering.net>
62877
62878         Merges from coreutils.
62879         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62880         prefix.  Adjust cache variables similarly.  Create 500 rather than
62881         just 300 files, to exercise bug on Darwin6.5, too.
62882         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62883         $missing_dir.
62884         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62885         AM_SYS_POSIX_TERMIOS.
62886         Reported by mkc@mathdogs.com.
62887         Also change use of $am_cv_sys_posix_termios
62888         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62889         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62890         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62891         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62892         in /proc/mounts until it finds one with matching device number.  This
62893         is unnecessary when the FILE argument *is* a mount point.  No stat call
62894         is necessary in that case.  So, disable the statvfs-testing code on
62895         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62896         as RedHat bug# 84846.
62897         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62898         to 1MB, so as not to render systems with no stack size limit (e.g.,
62899         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62900         Include <unistd.h>.  On some systems,
62901         it is required for the definition of _SC_PAGESIZE.
62902
62903 2003-08-16  Jim Meyering  <jim@meyering.net>
62904
62905         Merge from coreutils.
62906         * lib/xstrtoimax.c: #else #if -> #elif.
62907         * lib/xstrtoumax.c: Likewise.
62908
62909 2003-08-16  Jim Meyering  <jim@meyering.net>
62910
62911         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62912         * m4/utimes.m4: Removed.
62913         * m4/utimes-null.m4: Renamed from utimes.m4.
62914
62915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62916         to 1MB, so as not to render systems with no stack size limit (e.g.,
62917         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62918         Include <unistd.h>.  On some systems,
62919         it is required for the definition of _SC_PAGESIZE.
62920
62921 2003-08-16  Jim Meyering  <jim@meyering.net>
62922         and Paul Eggert  <eggert@cs.ucla.edu>
62923
62924         Merges from coreutils, etc.
62925
62926         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62927         using the latest version from cvs.  This avoids problems with #line
62928         directives using a vendor (Sun) compiler.
62929         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62930         Don't set GETGROUPS_LIB here; now it's
62931         done via getgroups.m4's wrapper function.
62932         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62933         rather than just in sh-util/configure.in, so that the
62934         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62935         same.
62936         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62937         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62938         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62939         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62940         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62941         Remove code that is now done by the newly-required macros.
62942         Append $(EXEEXT) to DF_PROG.
62943         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62944         Do not invoke or require the following here,
62945         since prereq.m4 or some gnulib .m4 now does this for us:
62946         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62947         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62948         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62949         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62950         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62951         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62952         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62953         AC_FUNC_OBSTACK.
62954         Do not replace the following functions, as this is now the job
62955         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62956         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62957         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62958         atexit getpass, strdup, getpagesize.
62959         Replace 'raise'.
62960         Do not check for the following functions, as this is now the job
62961         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62962         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62963         setregid.
62964         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62965         Check for sys/sysctl.h.
62966         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62967         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62968         of checking for ssize_t ourselves.
62969
62970         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62971         Require every macro that gnulib/modules/* suggests for us.
62972         (jm_PREREQ_ADDEXT): New macro.
62973         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62974         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62975
62976         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62977         (gl_PHYSMEM): Use it.
62978         Also check for `table' function.
62979         Check for new headers and functions.
62980         Add check for sys/sysmp.h.
62981         With suggestions from Kaveh Ghazi.
62982         Ignore headers that are present but cannot be compiled.  This
62983         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62984         C 5.4.
62985
62986 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62987
62988         Document merge from coreutils.
62989         * modules/userspec: Depend on posixver.
62990         * modules/strftime: Depend on tzset.
62991
62992 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62993
62994         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62995         rather than tab, after '#' in shell-script copyright notices.
62996         Suggested by Bruno Haible.
62997
62998 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62999
63000         * config/srclist-update: Use three spaces, rather than tab, after '#'
63001         in shell-script copyright notices.  Suggested by Bruno Haible.
63002         Remove unnecessary parenthesization in regular expression.
63003
63004 2003-08-15  Jim Meyering  <jim@meyering.net>
63005
63006         Merge from coreutils.
63007         * lib/xgethostname.c: Include <stdlib.h>.
63008         (xghostname): Don't exit for anything other than memory-related
63009         failure; just return NULL.
63010         * lib/userspec.c: Include "posixver.h".
63011         (parse_user_spec): Accept `.' as a separator only
63012         in pre-POSIX-200112 mode.
63013         * lib/strtoimax.c: Use #elif rather than #else #if.
63014         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
63015         Remove function, now that we can rely on a working tzset function.
63016         [!_LIBC]: Ensure that the required autoconf test has been run.
63017         [!defined _NL_CURRENT && HAVE_STRFTIME]:
63018         Use underlying_strftime for %r.
63019         * lib/sha.c: Merge in some clean-up and optimization changes from
63020         glibc.
63021         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
63022         Ensure that it is a multiple of 64.
63023         Rearrange loop exit tests so as to avoid performing an
63024         additional fread after encountering an error or EOF.
63025         * lib/realloc.c: Update copyright date.
63026
63027 2003-08-15  Jim Meyering  <jim@meyering.net>
63028         and Paul Eggert  <eggert@twinsun.com>
63029
63030         Merge from coreutils.
63031         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
63032         member but strut utmpx does not.  Needed for AIX 4.3.3.
63033         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
63034
63035 2003-08-15  Jim Meyering  <jim@meyering.net>
63036         and Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         Merges from coreutils, etc.
63039         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
63040         Require gl_FUNC_TZSET_CLOBBER.
63041         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
63042         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
63043         members.
63044
63045 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63046
63047         Help the merge from coreutils.
63048         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
63049         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
63050         * m4/tzset.m4: Use it too.
63051
63052 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63053
63054         * modules/tzset: New file.
63055
63056 2003-08-14  Jim Meyering  <jim@meyering.net>
63057
63058         Merges from coreutils.
63059         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
63060         variable names, rather than @FNMATCH_H@.
63061         * modules/alloca: Likewise for $(ALLOCA_H).
63062
63063         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
63064         the three copies of the literal target, `fnmatch.h'.
63065         * modules/alloca (alloca.h): Likewise.
63066
63067 2003-08-14  Jim Meyering  <jim@meyering.net>
63068
63069         Merge from coreutils.
63070         * m4/tzset.m4: New file.
63071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
63072         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
63073         otherwise, AIX 5.1 systems would end up using the latter.
63074         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
63075         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
63076         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
63077         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
63078
63079 2003-08-14  Jim Meyering  <jim@meyering.net>
63080
63081         Merge from coreutils.
63082         * lib/obstack.h: Whitespace changes.
63083         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
63084         and xcalloc return values.
63085         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
63086         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
63087         hang on OSF/1 5.1 for DIR on both local and remote file systems.
63088         Reported by (and fix confirmed by) Nelson H. F. Beebe.
63089         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63090         error from mntctl.
63091         Use mntctl's return value to drive the entry-processing loop, since
63092         we can't rely on the value of the vmt_length member in the last
63093         entry.  On some systems doing so could result in exhausting
63094         virtual memory.  Based in part on a patch from Mike Jetzer.
63095
63096 2003-08-14  Jim Meyering  <jim@meyering.net>
63097         and Paul Eggert  <eggert@twinsun.com>
63098
63099         Merges from coreutils, plus other fixes.
63100         * lib/physmem.c: Merge in portability changes from gcc/libiberty
63101         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
63102         for credits and details.  Thanks to Kaveh Ghazi for helping
63103         to keep these files in sync.
63104         (ARRAY_SIZE): Define it.
63105         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
63106         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
63107         (memcasecmp): Don't assume size_t fits in unsigned int.
63108         Remove casts and duplicate code.
63109         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
63110         (memcpy): Remove definition.
63111         Merge in some clean-up and optimization changes from glibc.
63112         [BLOCKSIZE]: Move definition to top of file.
63113         Ensure that it is a multiple of 64.
63114         Rearrange loop exit tests so as to avoid performing an
63115         additional fread after encountering an error or EOF.
63116         * lib/md5.h (md5_uintptr): Define.
63117         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
63118         return to the initial working directory.  Preserve errno
63119         for caller.
63120         * lib/idcache.c: Include "xalloc.h".
63121         (xmalloc, xrealloc): Remove decls.
63122         (getuser): Remove casts no longer required in C89.
63123         * lib/human.c: Include stdio.h, for sprintf.
63124         * lib/group-member.c: Include "xalloc.h".
63125         (xmalloc, xrealloc): Remove decls.
63126         (get_group_info): Remove casts no longer required in C89.
63127         * lib/getusershell.c (readname): Remove casts no longer required in
63128         C89.
63129         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
63130         * lib/getline.c: Whitespace fix, from coreutils.
63131
63132 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63133
63134         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
63135         Check for isascii.
63136
63137         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63138         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63139         Undo previous (whitespace-only) change.
63140
63141 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63142
63143         * lib/exclude.c: Include <ctype.h>
63144         (IN_CTYPE_DOMAIN): New macro.
63145         (is_space): New fn.
63146         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
63147         and empty lines.
63148
63149         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63150         Undo previous (whitespace-only) change.
63151
63152 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63153
63154         * config/srclist-update: Change update back to the old behavior,
63155         leaving whitespace alone.  Use one 'sed' command rather than a
63156         pipeline.
63157         (fixlicense): Now a variable, not a function.
63158         (remove_trailing_blanks): Remove.
63159         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63160         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63161         Undo previous (whitespace-only) change.
63162
63163 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63164
63165         Merge from coreutils.
63166         * modules/euidaccess: Add lib_SOURCES, include for new
63167         file euidaccess.h
63168
63169 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63170
63171         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63172         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63173         Normalize leading white space and remove trailing white space.
63174
63175         Merge from coreutils
63176         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63177
63178         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63179         0.12.1.  These files are now being upgraded automatically by
63180         ../config/srclist-update.
63181
63182 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63183
63184         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63185         Normalize leading white space and remove trailing white space.
63186         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63187         notice, as per ../config/srclist-update.
63188
63189         Merge from coreutils.
63190         * lib/euidaccess.h: New file.
63191         * lib/euidaccess.c: Include it.
63192         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63193         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63194         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63195
63196 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63197
63198         * config/srclist-update: Add copyright notice.
63199         (remove_id_lines, remove_trailing_blanks): New constants.
63200         (fixfile): Use them to normalize spacing a bit in copied files.
63201         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63202         Normalize leading white space and remove trailing white space.
63203
63204         * config/texinfo.tex: Sync with texinfo.
63205
63206         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63207         strtoul.c from libc, to merge coreutils whitespace changes.
63208
63209         * config/srclist.txt: Get the following m4 files from gettext:
63210         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63211         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63212         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63213         wint_t.m4.
63214
63215 2003-08-12  Karl Berry  <karl@gnu.org>
63216
63217         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63218         been made.
63219
63220 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63221
63222         * modules/gnu-source, m4/gnu-source.m4:
63223         Remove; we're assuming Autoconf 2.54 or later now.
63224         Suggested by Bruno Haible.
63225         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63226
63227 2003-08-11  Bruno Haible  <bruno@clisp.org>
63228
63229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63230
63231 2003-08-11  Bruno Haible  <bruno@clisp.org>
63232
63233         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63234         (vasnprintf): Use it instead of wcslen.
63235
63236 2003-08-11  Bruno Haible  <bruno@clisp.org>
63237
63238         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63239         value to ensure that _Bool promotes to int. Use #define for _Bool when
63240         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63241
63242 2003-08-10  Karl Berry  <karl@gnu.org>
63243
63244         * lib/regex.h: update from libc (whitespace fix).
63245
63246 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63247
63248         Merge some files from coreutils.  These changes were
63249         originally made by Jim Meyering.
63250         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63251         many older Unixes require this.
63252         * lib/alloca.c (alloca): Remove cast to argument of free;
63253         no longer needed in C89.
63254         * lib/alloca_.h, regex.h: Fix white space to match
63255         what GNU indent does.
63256
63257 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63258
63259         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63260         apparently Emacs's Unicode mode got confused before my 2003-08-05
63261         checkin.
63262
63263 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63264
63265         * m4/extensions.m4: New file.
63266         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63267         Require gl_USE_SYSTEM_EXTENSIONS.
63268         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63269         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63270
63271 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63272
63273         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63274         * modules/extensions, modules/gnu-source: New files.
63275         * modules/timespec, modules/unlocked-io: Depend on extensions.
63276
63277 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63278
63279         * modules/restrict: New file.
63280         * MODULES.html.sh (func_all_modules): Add restrict.
63281         * modules/regex: Depend on restrict.
63282
63283 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63284
63285         * m4/restrict.m4: New file.
63286         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63287
63288 2003-08-07  Bruno Haible  <bruno@clisp.org>
63289
63290         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63291         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63292
63293 2003-08-07  Bruno Haible  <bruno@clisp.org>
63294
63295         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63296         makes the module 'getndelim2' compatible with the module 'getline'.
63297
63298 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63299
63300         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63301         byte with "\201" to avoid glitches when editing that source file
63302         with multi-gnome-terminal.
63303
63304 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63305
63306         * lib/bumpalloc.h: Remove.
63307
63308 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63309
63310         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63311         * modules/bumpalloc: Remove.
63312
63313 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63314
63315         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63316         GNU coding style.
63317
63318         Merge from coreutils.
63319         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63320         1. From glibc.
63321         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63322         from Karl Berry, implemented by Jim Meyering.
63323         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63324         from Dmitry V. Levin.
63325         Remove anachronistic cast of xrealloc.
63326         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63327         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63328         type. Otherwise, it wouldn't compile with at least /bin/cc on
63329         ymp-cray-unicos9.0.2.X.
63330         Combine two mostly-identical uses of alloca into one.
63331         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63332
63333 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63334
63335         [From Emacs.]
63336
63337         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63338         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63339         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63340         obsolete NLIST_NAME_UNION.
63341         [__GNU__]: Undef BSD and FSCALE.
63342         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63343
63344 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63345
63346         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63347         an enum type, so that it's guaranteed to promote to int.  See:
63348         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63349
63350 2003-08-03  Karl Berry  <karl@gnu.org>
63351
63352         * config/depcomp: update from automake.
63353
63354 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63355
63356         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63357         (strerror): Don't assume that a printable int fits in 14 bytes.
63358
63359 2003-07-31  Bruno Haible  <bruno@clisp.org>
63360
63361         * modules/getpass-gnu: New file.
63362         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63363
63364 2003-07-31  Bruno Haible  <bruno@clisp.org>
63365
63366         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63367
63368 2003-07-24  Karl Berry  <karl@gnu.org>
63369
63370         * config/missing: update from automake.
63371
63372 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63373             Bruno Haible  <bruno@clisp.org>
63374
63375         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63376         * lib/getline.c (getline, getdelim): Likewise.
63377         Remove _GNU_SOURCE define; now it's defined in config.h through
63378         m4/getline.m4.
63379
63380 2003-07-23  Karl Berry  <karl@gnu.org>
63381
63382         * config/config.sub: update from prep.
63383
63384 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63385
63386         * modules/xalloc (Depends-on): Add exitfail.
63387         * modules/xmemcoll: Likewise.
63388
63389 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63390
63391         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63392         over-parenthesization in macros.
63393
63394         Sync with coreutils.
63395
63396         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63397         required by C99.
63398
63399         Use `exit_failure' for xalloc and xmemcoll instead of their own
63400         private exit-failure variables.
63401         * lib/xalloc.h (xalloc_exit_failure): Remove.
63402         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63403         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63404         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63405         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63406         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63407
63408 2003-07-20  Jim Meyering  <jim@meyering.net>
63409
63410         * modules/closeout (Depends-on): Add exitfail.
63411         Suggestion from Bruno Haible.
63412
63413 2003-07-19  Karl Berry  <karl@gnu.org>
63414
63415         * config/config.sub: update from prep.
63416
63417 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63418
63419         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63420         Remove.
63421         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63422         to test that it can stand by itself.  Include "exitfail.h".
63423         Clients should set exit_failure instead.
63424         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63425
63426 2003-07-18  Bruno Haible  <bruno@clisp.org>
63427
63428         * modules/getndelim2: New file.
63429         * modules/getline: Share files with module getndelim2.
63430         * modules/getnline: Depend on getndelim2 instead of sharing files with
63431         it. Add getnline.c to lib_SOURCES.
63432         * MODULES.html.sh (func_all_modules): Add getndelim2.
63433
63434 2003-07-18  Bruno Haible  <bruno@clisp.org>
63435
63436         * m4/getndelim2.m4: New file.
63437         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63438         invoke gl_PREREQ_GETNDELIM2.
63439         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63440         gl_PREREQ_GETNDELIM2.
63441         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63442         gl_GETNDELIM2.
63443
63444 2003-07-18  Bruno Haible  <bruno@clisp.org>
63445
63446         * lib/getndelim2.h: New file.
63447         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63448         getndelim2.h.
63449         (getndelim2): Make non-static. Change return type to ssize_t.
63450         * lib/getline.h: Change argument names.
63451         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63452         * lib/getnline.c: Include getndelim2.h.
63453
63454 2003-07-18  Andreas Schwab  <schwab@suse.de>
63455
63456         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63457
63458 2003-07-17  Karl Berry  <karl@gnu.org>
63459
63460         * config/config.sub: update from prep.
63461
63462 2003-07-17  Bruno Haible  <bruno@clisp.org>
63463
63464         * modules/getnline: New file.
63465         * modules/getline: Add lib/getndelim2.c to source file list.
63466         * MODULES.html.sh (func_all_modules): Add getnline.
63467
63468 2003-07-17  Bruno Haible  <bruno@clisp.org>
63469
63470         * m4/getnline.m4: New file.
63471
63472 2003-07-17  Bruno Haible  <bruno@clisp.org>
63473
63474         * m4/Makefile.am.in: Remove file.
63475         * m4/Makefile.am: Remove file.
63476         * m4/Makefile.in: Remove file.
63477
63478 2003-07-17  Bruno Haible  <bruno@clisp.org>
63479
63480         * lib/getnline.h: New file.
63481         * lib/getnline.c: New file.
63482         * lib/getndelim2.c: New file, extracted from getline.c.
63483         (getndelim2): Renamed from getdelim2, with added nmax argument.
63484         * lib/getline.c: Include getndelim2.c.
63485         (getdelim2): Moved out to getndelim2.c.
63486         (getline, getdelim): Update.
63487
63488 2003-07-17  Bruno Haible  <bruno@clisp.org>
63489
63490         * lib/Makefile.am: Remove file.
63491         * lib/Makefile.in: Remove file.
63492
63493 2003-07-17  Bruno Haible  <bruno@clisp.org>
63494
63495         * configure.in: Remove file.
63496         * Makefile.in: Remove file.
63497
63498 2003-07-17  Bruno Haible  <bruno@clisp.org>
63499
63500         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63501
63502 2003-07-16  Karl Berry  <karl@gnu.org>
63503
63504         * config/srclist-update: was running fixlicense twice, which caused
63505                 texinfo.tex to be nullified for some reason.  Simplify,
63506                 $gplsrc is no longer needed as far as I can see?
63507
63508 2003-07-16  Jim Meyering  <jim@meyering.net>
63509
63510         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63511
63512 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63513
63514         * config/srclist.txt: Get the following files from gettext-runtime/intl
63515         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63516         ref-del.sin.  From Bruno Haible.
63517         * config/srclist-update (fixfile): Change grep pattern again, since the
63518         previous fix didn't work (there was another trailing $).  Use
63519         '[$]' to escape the $s.
63520
63521 2003-07-15  Karl Berry  <karl@gnu.org>
63522
63523         * lib/vasnprintf.c: update from gettext.
63524
63525 2003-07-15  Karl Berry  <karl@gnu.org>
63526
63527         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63528         gets expanded when surrounded by '$'.
63529
63530 2003-07-15  Jim Meyering  <jim@meyering.net>
63531
63532         * modules/save-cwd: Don't depend on error.  From Derek Price.
63533
63534 2003-07-15  Jim Meyering  <jim@meyering.net>
63535
63536         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63537
63538 2003-07-14  Simon Josefsson  <jas@extundo.com>
63539
63540         * modules/mempcpy: New file.
63541         * MODULES.html.sh (func_all_modules): Add mempcpy.
63542
63543 2003-07-14  Simon Josefsson  <jas@extundo.com>
63544
63545         * m4/mempcpy.m4: New file.
63546
63547 2003-07-14  Simon Josefsson  <jas@extundo.com>
63548
63549         * lib/mempcpy.h: New file.
63550         * lib/mempcpy.c: New file.
63551
63552 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63553
63554         * modules/getdate, modules/posixtm: Depend on mktime.
63555
63556 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63557
63558         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63559         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63560         unicodeio.c, unicodeio.h, unlocked-io.h:
63561         Switch from LGPL to GPL.
63562
63563 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63564
63565         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63566         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63567         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63568         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63569         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63570         updated automatically by ../config/srclist-update.  This changes
63571         their license from LPGL to GPL.
63572
63573 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63574
63575         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63576         assumed to refer to the root of the most recent stable gettext version.
63577         * config/srclistvars.sh: Add defaults for eggert.
63578         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63579         Match "This program" as well as "The program".  This is needed
63580         for gettext.
63581
63582 2003-07-14  Jim Meyering  <jim@meyering.net>
63583
63584         Don't emit diagnostics.  Let callers do that.
63585         * lib/save-cwd.c: Don't include "error.h".
63586         (save_cwd): Don't call error.  Ensure that errno is valid
63587         when returning nonzero.
63588
63589         * lib/save-cwd.h (restore_cwd): Update prototype.
63590         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63591         Simplify.  Don't call error upon failure.  Let callers do that.
63592         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63593         when auditing is enabled.  But don't bother updating the #if.
63594
63595 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63596
63597         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63598         it breaks C++ compilation.
63599         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63600
63601 2003-07-10  Simon Josefsson  <jas@extundo.com>
63602
63603         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63604
63605 2003-07-10  Jim Meyering  <jim@meyering.net>
63606
63607         * m4/clock_time.m4: Remove trailing blank.
63608         * m4/intmax_t.m4: Likewise.
63609
63610 2003-07-10  Jim Meyering  <jim@meyering.net>
63611
63612         * lib/vasnprintf.c: Remove trailing blanks.
63613         Make cpp indentation consistent.
63614
63615 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63616
63617         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63618         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63619         Switch from LGPL to GPL.
63620
63621 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63622
63623         * config/srclist.txt: Sort sublists.  Add
63624         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63625         that differ from gnulib for one reason or another; we'd like this list
63626         to be smaller but for now let's document what we have.
63627
63628 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63629
63630         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63631         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63632         and sweeter "eval x=$x".
63633         * config/srclist.txt: Get lib/argp* from glibc.
63634
63635 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63636
63637         * lib/mktime.c: Fix some boundary cases and remove need for floating
63638         point.
63639
63640         Issue a compile-time diagnostic if time_t is floating point, or if
63641         two's complement arithmetic is not in effect, or if arithmetic
63642         right shift does not propagate the sign.  These assumptions were
63643         all in the original code but they weren't checked.
63644
63645         (TIME_T_MIDPOINT, verify): New macros.
63646         (__isleap): Remove; it has integer overflow problems.
63647         (leapyear): New function, without those problems.
63648         (ydhms_tm_diff): Remove; splitting into two parts.
63649         (ydhms_diff): New function, containing the arithmetic part of
63650         the old ydhms_tm_diff function.  Issue a compile-time
63651         diagnostic if we are not using C99 integer division.
63652         Avoid casts when possible.
63653         (guess_time_tm): New function, containing the checking part of
63654         the old ydhms_tm_diff function.  Return the new value, rather than
63655         the difference between it and the old.  Accept a new argument T
63656         so that *T specifies the old value.  Check for overflow in the result.
63657
63658         (__mktime_internal): Use a time_t offset, not a long int offset.
63659         This undoes the 2003-06-04 change, which is no longer needed now
63660         that we have better overflow checking.
63661         (localtime_offset): Likewise.
63662
63663         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63664         and long are 64-bit but int is only 32-bit.
63665         (ydhms_diff): Use long int to store year1 and yday1.
63666         Issue a compile-time diagnostic if long int is not wide enough.
63667
63668         (__mktime_internal): Use long int to store adjusted year and yday.
63669         Use plain C rather than preprocessor commands, if that doesn't
63670         affect efficiency.
63671         Check for overflow (and try to repair) after each probe
63672         rather than checking only at the very end.  This avoids some bugs
63673         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63674         does not equal GMT offset at maximum time).
63675         Use integer to check for overflow rather than floating point; this
63676         is more portable to non-IEEE hosts, and is a tad faster.
63677         When we detect that we are oscillating between two values,
63678         don't check whether tm_isdst has the requested value, since
63679         we already know the answer.  When tm_isdst has the wrong value,
63680         use a different heuristic to find the right one, based on the
63681         extreme values actually observed in practice in tz2003a,
63682         rather than the (overly optimistic) "previous 3 calendar quarters".
63683
63684         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63685         "T const" to accommodate glibc style.
63686         (check_result): Use less-confusing report format.  "long" -> "long int.
63687         (main): Likewise.
63688         Don't loop if the iteration overflows time_t.
63689         Allow a negative step in the iteration.
63690
63691 2003-07-06  Karl Berry  <karl@gnu.org>
63692
63693         * config/depcomp: update from automake.
63694         * config/config.sub: update from prep.
63695
63696 2003-07-03  Karl Berry  <karl@gnu.org>
63697
63698         * config/config.guess: update from prep.
63699
63700 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63701
63702         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63703         xreadlink.c now includes it unconditionally.
63704
63705 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63706
63707         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63708         having it depend on HAVE_SYS_TYPES_H.
63709
63710 2003-07-01  Bruno Haible  <bruno@clisp.org>
63711
63712         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63713         <sys/types.h> should be sufficient.
63714         Reported by Paul Eggert.
63715
63716 2003-06-26  Karl Berry  <karl@gnu.org>
63717
63718         * config/depcomp: update from automake.
63719
63720 2003-06-26  Bruno Haible  <bruno@clisp.org>
63721
63722         * modules/human: Depend on module stdbool.
63723
63724 2003-06-25  Bruno Haible  <bruno@clisp.org>
63725
63726         * modules/readlink: New file.
63727         * modules/xreadlink: Depend on it.
63728         * MODULES.html.sh (func_all_modules): Add readlink.
63729
63730 2003-06-25  Bruno Haible  <bruno@clisp.org>
63731
63732         * m4/readlink.m4: New file.
63733
63734 2003-06-25  Bruno Haible  <bruno@clisp.org>
63735
63736         * lib/readlink.c: New file.
63737
63738 2003-06-22  Karl Berry  <karl@gnu.org>
63739
63740         * config/srclist.txt: update mkinstalldirs from automake.
63741         * config/mkinstalldirs: update.
63742
63743 2003-06-22  Bruno Haible  <bruno@clisp.org>
63744
63745         Portability to mingw32.
63746         * m4/ssize_t.m4: New file, from GNU gettext.
63747         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63748         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63749
63750 2003-06-22  Bruno Haible  <bruno@clisp.org>
63751
63752         * modules/safe-read: Add m4/ssize_t.m4.
63753         * modules/xreadlink: Add m4/ssize_t.m4.
63754
63755 2003-06-20  Bruno Haible  <bruno@clisp.org>
63756
63757         Assume C89, so PARAMS isn't needed.
63758         * lib/unicodeio.h (PARAMS): Remove.
63759         * lib/unicodeio.c: Don't use PARAMS.
63760
63761 2003-06-18  Karl Berry  <karl@gnu.org>
63762
63763         * config/config.{guess,sub}: update from prep.
63764
63765 2003-06-18  Jim Meyering  <jim@meyering.net>
63766
63767         Merge changes from coreutils.
63768         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63769         Remove explicit declarations of xmalloc and realloc.
63770         Include xalloc.h.
63771         (read_utmp): Remove anachronistic cast of xmalloc.
63772
63773 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63774
63775         Assume C89, so PARAMS isn't needed.
63776         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63777         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63778         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63779         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63780         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63781         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63782         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63783         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63784         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63785         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63786         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63787         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63788         no longer needed. Anyway, config.h should always be included before any
63789         other file.
63790
63791 2003-06-11  Simon Josefsson  <jas@extundo.com>
63792
63793         * modules/sysexits: New file.
63794         * MODULES.html.sh (func_all_modules): Add sysexits.
63795
63796 2003-06-11  Simon Josefsson  <jas@extundo.com>
63797
63798         * lib/sysexit_.h: New file.
63799
63800 2003-06-11  Derek Price  <derek@ximbiot.com>
63801
63802         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63803         necessary.
63804
63805 2003-06-11  Bruno Haible  <bruno@clisp.org>
63806
63807         * m4/sysexits.m4: New file.
63808
63809 2003-06-10  Simon Josefsson  <jas@extundo.com>
63810
63811         * lib/argp.h: New file, from glibc.
63812         * lib/argp-ba.c: New file, from glibc.
63813         * lib/argp-eexst.c: New file, from glibc.
63814         * lib/argp-fmtstream.c: New file, from glibc.
63815         * lib/argp-fmtstream.h: New file, from glibc.
63816         * lib/argp-fs-xinl.c: New file, from glibc.
63817         * lib/argp-help.c: New file, from glibc.
63818         * lib/argp-namefrob.h: New file, from glibc.
63819         * lib/argp-parse.c: New file, from glibc.
63820         * lib/argp-pv.c: New file, from glibc.
63821         * lib/argp-pvh.c: New file, from glibc.
63822         * lib/argp-xinl.c: New file, from glibc.
63823
63824 2003-06-10  Simon Josefsson  <jas@extundo.com>
63825
63826         * modules/strchrnul: New file.
63827
63828 2003-06-10  Simon Josefsson  <jas@extundo.com>
63829
63830         * modules/argp: New file.
63831
63832 2003-06-10  Simon Josefsson  <jas@extundo.com>
63833
63834         * m4/strchrnul.m4: New file.
63835
63836 2003-06-10  Simon Josefsson  <jas@extundo.com>
63837
63838         * lib/strchrnul.h: New file.
63839         * lib/strchrnul.c: New file.
63840
63841 2003-06-10  Bruno Haible  <bruno@clisp.org>
63842
63843         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63844
63845 2003-06-07  Karl Berry  <karl@gnu.org>
63846
63847         * config/config.{guess,sub}: update from prep.
63848
63849 2003-06-07  Jim Meyering  <jim@meyering.net>
63850
63851         * modules/strtod: Use $(...) notation, not @...@ for
63852         AC_REPLACE'd variables.
63853         * modules/localcharset: Likewise.
63854
63855 2003-06-07  Jim Meyering  <jim@meyering.net>
63856
63857         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63858         in place of my name in the copyright comment.
63859         Remove definition and uses of __P.
63860
63861         From coreutils.
63862         * lib/stat.c: Don't declare xmalloc explicitly.
63863         Instead, include "xalloc.h".
63864         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63865         xrealloc, and xcalloc return values.
63866         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63867         Improve comment.
63868         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63869
63870 2003-06-07  Bruno Haible  <bruno@clisp.org>
63871
63872         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63873         avoid AC_CONFIG_LINKS.
63874         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63875         fnmatch.h, to avoid AC_CONFIG_LINKS.
63876         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63877
63878 2003-06-07  Bruno Haible  <bruno@clisp.org>
63879
63880         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63881         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63882         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63883         directory.
63884         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63885         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63886         directory.
63887
63888 2003-06-06  Jim Meyering  <jim@meyering.net>
63889
63890         Merge from coreutils.
63891         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63892         Consolidate declarations and initializations of *_base* locals.
63893
63894         Merge from coreutils.
63895         This avoids a core dump on systems without GNU putenv,
63896         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63897         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63898         (unsetenv): New static function, from GNU libc.
63899         (rpl_putenv): Use it.
63900
63901         * lib/modechange.c: Remove trailing blanks.
63902
63903         Merge from coreutils.
63904         * lib/fsusage.c: Remove declaration of statfs.
63905         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63906
63907         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63908
63909 2003-06-06  Jim Meyering  <jim@meyering.net>
63910
63911         * lib/stdbool_.h: Renamed from stdbool.h.in.
63912
63913 2003-06-06  Jim Meyering  <jim@meyering.net>
63914             Bruno Haible  <bruno@clisp.org>
63915
63916         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63917         Adjust Makefile.am snippet not to redirect directly to target.
63918         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63919
63920 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63921
63922         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63923         mismatch, look in future quarters as well as past.  This fixes a
63924         bug when processing fall-backwards gaps immediately after a long
63925         period of daylight-saving time.
63926
63927         * lib/mktime.c: Assume freestanding C89 or better.
63928         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63929         (__P): Remove; not used.
63930         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63931         (mktime, not_equal_tm, print_tm, check_result,
63932         main): Use prototypes.  Use const * where appropriate.
63933         (main): Fix typo in testing code that uncovered by above changes.
63934         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63935
63936 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63937
63938         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63939         locale.h, localeconv.  This merges changes from coreutils.
63940
63941         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63942         It can be removed after the next Autoconf is released.
63943         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63944         needed.
63945
63946 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63947
63948         * lib/mktime.c: Fix Debian bug 177940
63949         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63950         (localtime_offset): Now long int, not time_t, because we want it
63951         to be guaranteed to be signed.  All uses changed.
63952         (__mktime_internal): If overflow would occur when adding offset,
63953         don't add it.
63954
63955         Merge 'human' changes from coreutils.  Rewrite to support
63956         locale-specific notations like thousands separators.
63957         * lib/human.c: Simplify authorship notice.
63958         Include human.h immediately after config.h.
63959         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63960         <limits.h>: Do not include, since human.h does.
63961         (SIZE_MAX, UINTMAX_MAX): New macros.
63962         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63963         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63964         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63965         (power_letter): Renamed from suffixes.
63966         (generate_suffix_backwards): Remove.
63967         (adjust_value): Now takes int style (because of human.h changes)
63968         and long double value (for greater precision on some platforms).
63969         (group_number): New function.
63970         (human_readable): Use it.  Use integer options, not enum.
63971         Put the options before the sizes in the arg list.
63972         Support all the new options.
63973         The old human_readable function has been removed;
63974         use inttostr.h instead.
63975         (human_readable, default_block_size, humblock):
63976         Use uintmax_t, not int, for block sizes.
63977         (human_readable_inexact, block_size_types): Remove.
63978         (block_size_opts): New constant.
63979         (human_options): Renamed from human_block_size, with new signature
63980         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63981         * lib/human.h: Add copyright and authorship notice.
63982         Include <limits.h> and <stdbool.h> unconditionally.
63983         (PARAMS): Remove.  All uses removed.
63984         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63985         (enum human_inexact_style): Remove tag; now a nameless enum.
63986         (human_floor, human_ceiling, human_round_to_even): Now have
63987         values 2, 0, 1 rather than -1, 1, 0.
63988         (human_group_digits, human_suppress_point_zero, human_autoscale,
63989         human_base_1024, human_SI, human_B): New constants.
63990         (human_readable_inexact, human_block_size): Remove.
63991         (human_readable): Size args are now uintmax_t, not int.
63992         (human_options): New decl.
63993
63994         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63995         unnecessary now that we assume C89 or better.  This change
63996         imported from coreutils.
63997
63998         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
63999         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
64000         in the 2003-05-30 sync from glibc.
64001
64002         .h files should stand alone, but we shouldn't include <sys/types.h>
64003         if we can get away with just <stddef.h>.
64004
64005         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
64006         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
64007         rather than <sys/types.h>, as we merely need size_t.
64008         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
64009         to get size_t.
64010         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
64011         Include <stdio.h>, to get FILE.
64012         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
64013         memcasecmp.h has included <stddef.h> and all we need is size_t.
64014         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
64015         our interface, instead of including <sys/types.h>
64016
64017 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64018
64019         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
64020         now, as glibc mktime is buggy on non-glibc systems.
64021
64022 2003-06-03  Karl Berry  <karl@gnu.org>
64023
64024         * config/config.sub: update from prep.
64025
64026 2003-06-02  Paul Eggert  <eggert@twinsun.com>
64027
64028         [from coreutils]
64029         Fix some minor time-related bugs with POSIX time arguments.
64030         Some valid time stamps were being rejected (notably -1, and
64031         time stamps before 1900 on 64-bit hosts).  And some invalid
64032         time stamps were being accepted, e.g. September 31.
64033
64034         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
64035         that we can return (time_t) -1 successfully.
64036         * lib/posixtm.c: Likewise.
64037         [HAVE_STDBOOL_H]: Include <stdbool.h>.
64038         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
64039         (t): Remove static var.
64040         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
64041         of static var.  All uses changed.
64042         (year): Do not reject years before 1900; they can occur with
64043         64-bit time_t.
64044         (posix_time_parse): Do not check for out-of-range components;
64045         that is now the caller's responsibility, since our checks were
64046         only approximations.
64047         (posixtime): Use mktime to check for out-of-range components,
64048         since it knows them exactly.
64049         If mktime returns (time_t) -1, check whether an error actually occurred
64050         by invoking localtime on -1.
64051         (main) [TEST_POSIXTIME]: Check for input data errors, and report
64052         posixtime failures better.
64053         Improve the test data (in comments only).
64054
64055 2003-06-02  Karl Berry  <karl@gnu.org>
64056
64057         * config/mkinstalldirs (version): new variable.
64058         (--version): new option.
64059         (usage): improve message.
64060
64061 2003-05-30  Karl Berry  <karl@gnu.org>
64062
64063         * lib/mktime.c: update from libc.
64064
64065 2003-05-30  Bruno Haible  <bruno@clisp.org>
64066
64067         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
64068         * config/config.rpath: Upgrade to gettext-0.12.1.
64069
64070 2003-05-30  Bruno Haible  <bruno@clisp.org>
64071
64072         * m4/gettext.m4: Upgrade to gettext-0.12.1.
64073         * m4/nls.m4: New file, from gettext-0.12.1.
64074         * m4/po.m4: New file, from gettext-0.12.1.
64075         * m4/progtest.m4: Upgrade to gettext-0.12.1.
64076
64077 2003-05-30  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
64080         * lib/localcharset.h: Likewise.
64081         * lib/localcharset.c: Likewise.
64082
64083 2003-05-29  Karl Berry  <karl@gnu.org>
64084
64085         * config/config.rpath: update from gettext.
64086
64087 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64088
64089         Assume the headers required for C89 freestanding compilers.
64090         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
64091         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
64092         * m4/human.m4 (gl_HUMAN): Likewise.
64093         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
64094         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
64095         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64096         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
64097         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64098         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
64099
64100 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64101
64102         Assume the headers required for C89 freestanding compilers.
64103         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
64104         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
64105         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
64106         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
64107         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
64108         define, since <limits.h> is guaranteed to do that.
64109         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
64110         * lib/exclude.c: Include <stdbool.h> unconditionally.
64111         * lib/tempname.c: Include <stddef.h> unconditionally.
64112         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
64113         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
64114         <stddef.h> does that.
64115         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
64116         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
64117         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
64118         needed.
64119         * lib/xstrtol.c: Likewise.
64120         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
64121         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
64122
64123         * lib/addext.c (addext): Use assignment rather than cast, to avoid
64124         warnings on some platforms.
64125
64126         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64127         arbitrarily.
64128
64129 2003-05-26  Jim Meyering  <jim@meyering.net>
64130
64131         Merge in a change from coreutils:
64132         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
64133         that is guaranteed to be `no'.  Use `no_such_member' to indicate
64134         that condition, rather than `-1' which is slightly misleading.
64135         Change the name of the cache variable to have the gl_ prefix.
64136         Prompted by a patch from Richard Dawe for DJGPP.
64137
64138 2003-05-24  Karl Berry  <karl@gnu.org>
64139
64140         * config/config.guess: update from prep.
64141
64142 2003-05-22  Karl Berry  <karl@gnu.org>
64143
64144         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
64145
64146 2003-05-20  Karl Berry  <karl@gnu.org>
64147
64148         * config/config.guess: update from prep.
64149
64150 2003-05-18  Karl Berry  <karl@gnu.org>
64151
64152         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
64153         might actually be set by the user.
64154
64155         * config/depcomp, install-sh, mdate-sh: update from automake.
64156
64157 2003-05-17  Bruno Haible  <bruno@clisp.org>
64158
64159         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64160         invalid expansion for AC_EGREP_CPP.
64161         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64162         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64163         Suggested by Akim Demaille <akim@epita.fr> in
64164         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64165
64166 2003-05-12  Jim Meyering  <jim@meyering.net>
64167
64168         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64169         the space-padded-by-default conversion specifiers, %e, %k, %l.
64170
64171 2003-05-12  Bruno Haible  <bruno@clisp.org>
64172
64173         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64174         the string is longer than 4 KB.
64175
64176 2003-05-11  Karl Berry  <karl@gnu.org>
64177
64178         * config/config.{guess,sub}: update from prep.
64179
64180 2003-05-09  Bruno Haible  <bruno@clisp.org>
64181
64182         * modules/error: Add m4/strerror_r.m4 to file list.
64183
64184 2003-05-03  Bruno Haible  <bruno@clisp.org>
64185
64186         Upgrade to Unicode-4.0.
64187         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64188         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64189         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64190         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64191         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64192         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64193         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64194         Change width of U+E0100..U+E01EF from 1 to 0.
64195
64196 2003-04-25  Jim Meyering  <jim@meyering.net>
64197
64198         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64199         of type size_t, not int.
64200
64201 2003-04-25  Bruno Haible  <bruno@clisp.org>
64202
64203         * lib/copy-file.c: Include <stddef.h>, for size_t.
64204
64205 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64206
64207         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64208         code which expansion is under static control.  Patch imported from
64209         Akim Demaille's patch to Bison; see
64210         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64211
64212 2003-04-14  Bruno Haible  <bruno@clisp.org>
64213
64214         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64215
64216 2003-04-11  Jim Meyering  <jim@meyering.net>
64217
64218         Merge changes from Coreutils.
64219
64220         2003-03-22  Jim Meyering  <jim@meyering.net>
64221
64222         * lib/strftime.c (widen): Cast alloca return value to proper type.
64223
64224         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64225
64226         From GNU libc.
64227         * lib/strftime.c (my_strftime): Handle very large width
64228         specifications for numeric values correctly.  Improve checks for
64229         overflow.
64230
64231         2003-01-19  Jim Meyering  <jim@meyering.net>
64232
64233         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64234         definitions.
64235         (nl_get_alt_digit) [! defined my_strftime]: Define.
64236         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64237         _nl_get_alt_digit and _nl_get_walt_digit.
64238
64239         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64240         libc. These changes have no effect outside of _LIBC.
64241
64242 2003-04-10  Bruno Haible  <bruno@clisp.org>
64243
64244         * modules/findprog: New file.
64245         * MODULES.html.sh (func_all_modules): Add it.
64246
64247 2003-04-10  Bruno Haible  <bruno@clisp.org>
64248
64249         * m4/findprog.m4: New file.
64250         * m4/eaccess.m4: New file.
64251
64252 2003-04-10  Bruno Haible  <bruno@clisp.org>
64253
64254         * lib/findprog.h: New file, from GNU gettext.
64255         * lib/findprog.c: New file, from GNU gettext.
64256
64257 2003-04-05  Jim Meyering  <jim@meyering.net>
64258
64259         Merge changes from Coreutils.
64260
64261         * lib/exclude.h (PARAMS): Remove definition and uses.
64262         * lib/exclude.c: Remove uses of `PARAMS'.
64263
64264         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64265         Add test-cases for DOS filenames. Declare program_name.
64266         (main): Set up program_name.  Patch by Rich Dawe.
64267
64268         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64269         error from mntctl.
64270         Use mntctl's return value to drive the entry-processing loop, since
64271         we can't rely on the value of the vmt_length member in the last
64272         entry.  On some systems doing so could result in exhausting
64273         virtual memory.  Based in part on a patch from Mike Jetzer.
64274
64275 2003-04-04  Bruno Haible  <bruno@clisp.org>
64276
64277         * modules/linebreak: New file.
64278         * MODULES.html.sh (func_all_modules): Add it.
64279
64280 2003-04-04  Bruno Haible  <bruno@clisp.org>
64281
64282         * m4/linebreak.m4: New file.
64283
64284 2003-04-04  Bruno Haible  <bruno@clisp.org>
64285
64286         * lib/linebreak.h: New file, from GNU gettext.
64287         * lib/linebreak.c: New file, from GNU gettext with slight
64288         modifications.
64289         * lib/lbrkprop.h: New file, from GNU gettext.
64290
64291 2003-04-03  Bruno Haible  <bruno@clisp.org>
64292
64293         * modules/utf8-ucs4: New file.
64294         * modules/utf16-ucs4: New file.
64295         * modules/ucs4-utf8: New file.
64296         * modules/ucs4-utf16: New file.
64297         * MODULES.html.sh (func_all_modules): Add them.
64298
64299 2003-04-03  Bruno Haible  <bruno@clisp.org>
64300
64301         * m4/utf-ucs4.m4: New file.
64302         * m4/ucs4-utf.m4: New file.
64303
64304 2003-04-03  Bruno Haible  <bruno@clisp.org>
64305
64306         * lib/utf8-ucs4.h: New file, from GNU gettext.
64307         * lib/utf16-ucs4.h: New file, from GNU gettext.
64308         * lib/ucs4-utf8.h: New file, from GNU gettext.
64309         * lib/ucs4-utf16.h: New file, from GNU gettext.
64310
64311 2003-04-02  Bruno Haible  <bruno@clisp.org>
64312
64313         * modules/binary-io: New file.
64314         * MODULES.html.sh (func_all_modules): Add it.
64315
64316 2003-04-02  Bruno Haible  <bruno@clisp.org>
64317
64318         * lib/binary-io.h: New file, from GNU gettext.
64319
64320 2003-04-01  Bruno Haible  <bruno@clisp.org>
64321
64322         * modules/pathname: New file.
64323         * MODULES.html.sh (func_all_modules): Add it.
64324
64325 2003-04-01  Bruno Haible  <bruno@clisp.org>
64326
64327         * lib/pathname.h: New file, from GNU gettext.
64328         * lib/concatpath.c: New file, from GNU gettext.
64329
64330 2003-03-30  Bruno Haible  <bruno@clisp.org>
64331
64332         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64333
64334 2003-03-30  Bruno Haible  <bruno@clisp.org>
64335
64336         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64337         function chown() doesn't exist.
64338
64339 2003-03-28  Bruno Haible  <bruno@clisp.org>
64340
64341         * modules/copy-file: New file.
64342         * MODULES.html.sh (func_all_modules): Add it.
64343
64344 2003-03-28  Bruno Haible  <bruno@clisp.org>
64345
64346         * m4/copy-file.m4: New file.
64347
64348 2003-03-28  Bruno Haible  <bruno@clisp.org>
64349
64350         * lib/copy-file.h: New file, from GNU gettext.
64351         * lib/copy-file.c: New file, from GNU gettext.
64352
64353 2003-03-18  Jim Meyering  <jim@meyering.net>
64354
64355         * lib/quote.c (quote_n): Fix typo in comment.
64356
64357 2003-03-18  Bruno Haible  <bruno@clisp.org>
64358
64359         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64360         checking.
64361         * m4/onceonly_2_57.m4: Likewise.
64362
64363 2003-03-17  Bruno Haible  <bruno@clisp.org>
64364
64365         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64366         (m4_quote): Remove macro.
64367         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64368
64369 2003-03-14  Jim Meyering  <jim@meyering.net>
64370
64371         Merge changes from Coreutils.
64372         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64373         to be const, in order to avoid warnings.
64374         (obstack_room): Likewise.
64375         (obstack_empty_p): Likewise.
64376
64377 2003-03-14  Bruno Haible  <bruno@clisp.org>
64378
64379         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64380         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64381
64382 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64383
64384         Merge changes from Bison.
64385         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64386         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64387         when compiling Bison 1.875's `bitset bset = obstack_alloc
64388         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64389         * lib/hash.c: Include <stdbool.h> unconditionally.
64390
64391 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64392
64393         * m4/onceonly.m4 (m4_quote): New macro.
64394         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64395         Quote AC_FOREACH variable-expansions properly.
64396
64397 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64398
64399         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64400
64401 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64402
64403         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64404         Reported by Bruce Becker; see:
64405         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64406
64407 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64408             Bruno Haible  <bruno@clisp.org>
64409
64410         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64411         Reported by John Hughes, see
64412         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64413
64414 2003-02-20  Bruno Haible  <bruno@clisp.org>
64415
64416         * MODULES.html.sh (func_all_modules): Add poll.
64417
64418 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64419
64420         * modules/poll: New file.
64421
64422 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64423
64424         * lib/poll_.h: New file.
64425         * lib/poll.c: New file.
64426
64427 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64428
64429         * m4/poll.m4: New file.
64430
64431 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64432
64433         * modules/mathl: New file.
64434
64435 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64436
64437         * lib/mathl.h: New file.
64438         * lib/acosl.c: New file.
64439         * lib/asinl.c: New file.
64440         * lib/atanl.c: New file.
64441         * lib/ceill.c: New file.
64442         * lib/cosl.c: New file.
64443         * lib/expl.c: New file.
64444         * lib/floorl.c: New file.
64445         * lib/frexpl.c: New file.
64446         * lib/ldexpl.c: New file.
64447         * lib/logl.c: New file.
64448         * lib/sincosl.c: New file.
64449         * lib/sinl.c: New file.
64450         * lib/sqrtl.c: New file.
64451         * lib/tanl.c: New file.
64452         * lib/trigl.c: New file.
64453         * lib/trigl.h: New file.
64454
64455 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64456
64457         * m4/mathl.m4: New file.
64458
64459 2003-02-18  Bruno Haible  <bruno@clisp.org>
64460
64461         * MODULES.html.sh (func_all_modules): Add mathl.
64462
64463 2003-02-17  Bruno Haible  <bruno@clisp.org>
64464
64465         * modules/mkdtemp: New module.
64466         * MODULES.html.sh (func_all_modules): Add it.
64467
64468 2003-02-17  Bruno Haible  <bruno@clisp.org>
64469
64470         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64471
64472 2003-02-17  Bruno Haible  <bruno@clisp.org>
64473
64474         * lib/mkdtemp.h: New file, from GNU gettext.
64475         * lib/mkdtemp.c: New file, from GNU gettext.
64476
64477 2003-02-02  Jim Meyering  <jim@meyering.net>
64478
64479         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64480         e.g. glibc-2.2.93.
64481
64482 2003-01-31  Bruno Haible  <bruno@clisp.org>
64483
64484         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64485         'rpl_rename'.
64486         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64487         'rpl_strnlen'.
64488         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64489         'rpl_strtod'.
64490         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64491         'rpl_utime'.
64492
64493 2003-01-31  Bruno Haible  <bruno@clisp.org>
64494
64495         * lib/rename.c: #undef rename before defining rpl_rename.
64496         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64497
64498 2003-01-30  Bruno Haible  <bruno@clisp.org>
64499
64500         * modules/vasnprintf, modules/vasprintf: New modules.
64501         * MODULES.html.sh (func_all_modules): Add them.
64502
64503 2003-01-30  Bruno Haible  <bruno@clisp.org>
64504
64505         * m4/signed.m4: New file, from GNU gettext.
64506         * m4/longdouble.m4: New file, from GNU gettext.
64507         * m4/wchar_t.m4: New file, from GNU gettext.
64508         * m4/wint_t.m4: New file, from GNU gettext.
64509         * m4/vasnprintf.m4: New file.
64510         * m4/vasprintf.m4: New file.
64511
64512 2003-01-30  Bruno Haible  <bruno@clisp.org>
64513
64514         * lib/printf-args.h: New file, from GNU gettext.
64515         * lib/printf-args.c: New file, from GNU gettext.
64516         * lib/printf-parse.h: New file, from GNU gettext.
64517         * lib/printf-parse.c: New file, from GNU gettext.
64518         * lib/vasnprintf.h: New file, from GNU gettext.
64519         * lib/vasnprintf.c: New file, from GNU gettext.
64520         * lib/asnprintf.c: New file, from GNU gettext.
64521         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64522         * lib/vasprintf.c: New file, from GNU gettext.
64523         * lib/asprintf.c: New file, from GNU gettext.
64524
64525 2003-01-29  Bruno Haible  <bruno@clisp.org>
64526
64527         * modules/stpncpy: New module.
64528         * MODULES.html.sh (func_all_modules): Add it.
64529
64530 2003-01-29  Bruno Haible  <bruno@clisp.org>
64531
64532         * m4/stpncpy.m4: New file.
64533
64534 2003-01-29  Bruno Haible  <bruno@clisp.org>
64535
64536         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64537         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64538
64539 2003-01-28  Bruno Haible  <bruno@clisp.org>
64540
64541         * modules/c-ctype: New module.
64542         * MODULES.html.sh (func_all_modules): Add it.
64543
64544 2003-01-28  Bruno Haible  <bruno@clisp.org>
64545
64546         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64547         Paul Eggert.
64548         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64549         Paul Eggert.
64550
64551 2003-01-27  Bruno Haible  <bruno@clisp.org>
64552
64553         * modules/xsetenv: New module.
64554         * MODULES.html.sh (func_all_modules): Add it.
64555
64556 2003-01-27  Bruno Haible  <bruno@clisp.org>
64557
64558         * lib/xsetenv.h: New file, from GNU gettext.
64559         * lib/xsetenv.c: New file, from GNU gettext.
64560
64561 2003-01-23  Jim Meyering  <jim@meyering.net>
64562
64563         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64564         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64565
64566 2003-01-23  Bruno Haible  <bruno@clisp.org>
64567
64568         * modules/minmax: New module.
64569         * MODULES.html.sh (func_all_modules): Add it.
64570
64571 2003-01-23  Bruno Haible  <bruno@clisp.org>
64572
64573         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64574         Eggert.
64575
64576 2003-01-22  Bruno Haible  <bruno@clisp.org>
64577
64578         * modules/exit: New module.
64579         * MODULES.html.sh (func_all_modules): Add it.
64580
64581 2003-01-22  Bruno Haible  <bruno@clisp.org>
64582
64583         * lib/exit.h: New file, from GNU gettext.
64584
64585 2003-01-19  Bruno Haible  <bruno@clisp.org>
64586
64587         * gnulib-tool: Recognize option --extract-maintainer.
64588         (func_get_maintainer): New function.
64589         * modules/*: Add Maintainer entry.
64590
64591 2003-01-16  Jim Meyering  <jim@meyering.net>
64592
64593         * m4/regex.m4: The `regex' struct is both input and output.
64594         Initialize it before each use.  Patch by Tim Waugh.
64595
64596 2003-01-16  Bruno Haible  <bruno@clisp.org>
64597
64598         * MODULES.html.sh: Add a table of contents. Add the module name as
64599         leftmost column. Add hyperlinks.
64600
64601 2003-01-15  Bruno Haible  <bruno@clisp.org>
64602
64603         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64604
64605 2003-01-15  Bruno Haible  <bruno@clisp.org>
64606
64607         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64608         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64609         suffix.
64610
64611 2003-01-15  Bruno Haible  <bruno@clisp.org>
64612
64613         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64614
64615 2003-01-15  Bruno Haible  <bruno@clisp.org>
64616
64617         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64618         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64619
64620 2003-01-14  Jim Meyering  <jim@meyering.net>
64621
64622         * lib/same.c (same_name): Tweak a comment.
64623
64624 2003-01-14  Bruno Haible  <bruno@clisp.org>
64625
64626         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64627         when a string comparison is sufficient.
64628
64629 2003-01-14  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64632         'unsigned int'.
64633
64634 2003-01-14  Bruno Haible  <bruno@clisp.org>
64635
64636         * lib/hash-pjw.c: Add comment about low quality of this function.
64637
64638 2003-01-13  Bruno Haible  <bruno@clisp.org>
64639
64640         * modules/stpcpy: Distribute lib/stpcpy.h.
64641         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64642
64643 2003-01-13  Bruno Haible  <bruno@clisp.org>
64644
64645         * modules/*: Add a description.
64646         * modules/strpbrk: Fix Makefile.am snippet.
64647         * modules/strtoimax: Fix dependencies.
64648         * modules/strtoumax: Likewise.
64649
64650 2003-01-13  Bruno Haible  <bruno@clisp.org>
64651
64652         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64653         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64654         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64655
64656 2003-01-13  Bruno Haible  <bruno@clisp.org>
64657
64658         * gnulib-tool (func_create_testdir): Store config/* files in the main
64659         directory.
64660         * config.rpath: Move to ...
64661         * config/config.rpath: ... here.
64662         * modules/gettext: Contains config/config.rpath, not config.rpath.
64663         * modules/iconv: Likewise.
64664
64665 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64666
64667         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64668         to avoid collisions with libcurses and libreadline.
64669
64670         * m4/getstr.m4: Remove.
64671         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64672
64673 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64674
64675         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64676         to avoid collisions with libcurses and libreadline.
64677
64678         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64679         * lib/getstr.h, getstr.c: Remove.
64680         * lib/getline.c: Include "getline.h", to check interface.
64681         Move body of old getstr.c here: this defines MIN_CHUNK and
64682         declares getdelim2, which is renamed from getstr.
64683         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64684
64685         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64686         All uses changed.
64687         * lib/linebuffer.h: Likewise.
64688         (readline): Remove backward-compatibility macro.
64689
64690 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64691
64692         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64693         to avoid collisions with libcurses and libreadline.
64694         * getstr: Remove.
64695         * MODULES.html.sh: Remove getstr.
64696         * modules/getline: Depend on unlocked-io, not getstr.
64697
64698 2003-01-12  Jim Meyering  <jim@meyering.net>
64699
64700         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64701
64702 2003-01-10  Bruno Haible  <bruno@clisp.org>
64703
64704         * modules/alloca: Change Makefile.am requirements. Simplify Include
64705         requirements. Add lib/alloca_.h to file list.
64706
64707 2003-01-10  Bruno Haible  <bruno@clisp.org>
64708
64709         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64710
64711 2003-01-10  Bruno Haible  <bruno@clisp.org>
64712
64713         * lib/alloca_.h: New file.
64714         * lib/getdate.y: Unconditionally include alloca.h.
64715         * lib/makepath.c: Likewise.
64716         * lib/setenv.c: Likewise.
64717         * lib/userspec.c: Likewise.
64718
64719 2003-01-09  Karl Berry  <karl@gnu.org>
64720
64721         * MODULES.html.sh: include `dirname $0` in PATH, to find
64722         gnulib-tool.
64723
64724 2003-01-09  Bruno Haible  <bruno@clisp.org>
64725
64726         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64727         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64728
64729 2003-01-09  Bruno Haible  <bruno@clisp.org>
64730
64731         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64732
64733 2003-01-09  Bruno Haible  <bruno@clisp.org>
64734
64735         * lib/stdbool.h.in: New file.
64736
64737 2003-01-09  Bruno Haible  <bruno@clisp.org>
64738
64739         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64740         * MODULES.html.sh: Likewise.
64741
64742 2003-01-08  Jim Meyering  <jim@meyering.net>
64743
64744         * lib/full-write.c: Undefine and define-away `const' after inclusion
64745         of errno.h, not before.  Suggestion from Bruno Haible.
64746
64747 2003-01-08  Bruno Haible  <bruno@clisp.org>
64748
64749         * modules/full-read: Depend on full-write.
64750
64751 2003-01-08  Bruno Haible  <bruno@clisp.org>
64752
64753         * lib/safe-read.c: Include specification header first, to ensure its
64754         selfcontainedness.
64755         * lib/full-write.c: Likewise.
64756
64757 2003-01-07  Jim Meyering  <jim@meyering.net>
64758
64759         * lib/full-write.c: Rework so that it may serve to define full_read,
64760         too.
64761         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64762
64763 2003-01-07  Bruno Haible  <bruno@clisp.org>
64764
64765         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64766         <inttypes.h>.
64767         * lib/xstrtol.h: Likewise.
64768         * lib/xstrtoimax.c: Likewise.
64769         * lib/xstrtoumax.c: Likewise.
64770         * lib/human.h: Likewise.
64771
64772         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64773         on systems that have <inttypes.h> but not <stdint.h>.
64774
64775 2003-01-07  Bruno Haible  <bruno@clisp.org>
64776
64777         * MODULES.html.sh: Add copyright notice.
64778         (missed_files): Omit CVS directory entries.
64779         (func_module): Make it work with sed-3.02.
64780         * MODULES.txt: Remove file.
64781
64782 2003-01-06  Jim Meyering  <jim@meyering.net>
64783
64784         * lib/version-etc.c: Update year in translatable copyright string.
64785
64786 2003-01-03  Karl Berry  <karl@gnu.org>
64787
64788         * config/config.{guess,sub}: update from prep.
64789
64790 2003-01-02  Karl Berry  <karl@gnu.org>
64791
64792         * doc/COPYING.DOC: belatedly updated to 1.2.
64793
64794 2003-01-01  Karl Berry  <karl@gnu.org>
64795
64796         * gnulib-tool (func_verify_module): report module name $module in
64797         error message, not $1.
64798         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64799         be created, only if it doesn't exist.
64800         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64801
64802 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64803
64804         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64805
64806 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64807
64808         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64809         memcmp if strcoll doesn't work.
64810
64811 2002-12-31  Bruno Haible  <bruno@clisp.org>
64812
64813         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64814         nonempty.
64815
64816 2002-12-31  Bruno Haible  <bruno@clisp.org>
64817
64818         * lib/memcoll.c (STRCOLL): New macro.
64819         (memcoll): Use it.
64820
64821 2002-12-31  Bruno Haible  <bruno@clisp.org>
64822
64823         * lib/localcharset.h: New file.
64824         * lib/localcharset.c: Include it.
64825         * lib/unicodeio.c: Likewise.
64826
64827 2002-12-31  Bruno Haible  <bruno@clisp.org>
64828
64829         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64830         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64831
64832 2002-12-31  Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/getline.h: Include <stddef.h>, for size_t.
64835
64836         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64837         * lib/unicodeio.c: Don't include <stddef.h>.
64838
64839 2002-12-31  Bruno Haible  <bruno@clisp.org>
64840
64841         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64842         HAVE_TM_ZONE.
64843
64844 2002-12-24  Karl Berry  <karl@gnu.org>
64845
64846         * config/config.guess: update from prep.
64847
64848 2002-12-24  Bruno Haible  <bruno@clisp.org>
64849
64850         General infrasructure.
64851         * m4/README: Rewritten.
64852         * m4/onceonly.m4: New file.
64853         * m4/onceonly_2_57.m4: New file.
64854
64855         Module atexit.
64856         * m4/atexit.m4: New file.
64857
64858         Module strtod.
64859         * m4/strtod.m4: New file.
64860
64861         Module strtol.
64862         * m4/strtol.m4: New file.
64863
64864         Module strtoul.
64865         * m4/strtoul.m4: New file.
64866
64867         Module memchr.
64868         * m4/memchr.m4: New file.
64869
64870         Module memcmp.
64871         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64872         (jm_FUNC_MEMCMP): Invoke it.
64873
64874         Module memcpy.
64875         * m4/memcpy.m4: New file.
64876
64877         Module memmove.
64878         * m4/memmove.m4: New file.
64879
64880         Module memset.
64881         * m4/memset.m4: New file.
64882
64883         Module strcspn.
64884         * m4/strcspn.m4: New file.
64885
64886         Module strpbrk.
64887         * m4/strpbrk.m4: New file.
64888
64889         Module strstr.
64890         * m4/strstr.m4: New file.
64891
64892         Module strerror.
64893         * m4/strerror.m4: New file.
64894
64895         Module mktime.
64896         * m4/mktime.m4: Renamed from jm-mktime.m4.
64897         (gl_PREREQ_MKTIME): New macro.
64898         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64899
64900         Module malloc.
64901         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64902         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64903         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64904
64905         Module realloc.
64906         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64907         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64908         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64909
64910         Module strftime.
64911         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64912         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64913         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64914         gl_TM_GMTOFF.
64915         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64916
64917         Module xalloc.
64918         * m4/xalloc.m4: New file.
64919
64920         Module alloca.
64921         * m4/alloca.m4: New file.
64922
64923         Module putenv.
64924         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64925         (jm_FUNC_PUTENV): Invoke it.
64926
64927         Module setenv.
64928         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64929         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64930         when invoked twice.
64931         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64932         gt_FUNC_SETENV.
64933
64934         Module memrchr.
64935         * m4/memrchr.m4: New file.
64936
64937         Module stpcpy.
64938         * m4/stpcpy.m4: New file.
64939
64940         Module strcase.
64941         * m4/strcase.m4: New file.
64942
64943         Module strdup.
64944         * m4/strdup.m4: New file.
64945
64946         Module strnlen.
64947         * m4/strnlen.m4: New file.
64948
64949         Module strndup.
64950         * m4/strndup.m4: New file.
64951
64952         Module xstrtod.
64953         * m4/xstrtod.m4: New file.
64954
64955         Module xstrtol.
64956         * m4/xstrtol.m4: New file.
64957
64958         Module getdate.
64959         * m4/getdate.m4: New file.
64960
64961         Module unlocked-io.
64962         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64963         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64964         * m4/jm-glibc-io.m4n: Remove file.
64965
64966         Module long-options.
64967         * m4/long-options.m4: New file.
64968
64969         Module md5.
64970         * m4/md5.m4: New file.
64971
64972         Module sha.
64973         * m4/sha.m4: New file.
64974
64975         Module getstr.
64976         * m4/getstr.m4: New file.
64977
64978         Module getline.
64979         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64980         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64981         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64982         simply getline. Infoke gl_PREREQ_GETLINE.
64983
64984         Module obstack.
64985         * m4/obstack.m4: New file.
64986
64987         Module hash.
64988         * m4/hash.m4: New file.
64989
64990         Module readtokens.
64991         * m4/readtokens.m4: New file.
64992
64993         Module strverscmp.
64994         * m4/strverscmp.m4: New file.
64995
64996         Module stdbool.
64997         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
64998         OSF/1.
64999
65000         Module strtoll.
65001         * m4/strtoll.m4: New file.
65002
65003         Module strtoull.
65004         * m4/strtoull.m4: New file.
65005
65006         Module strtoimax.
65007         * m4/strtoimax.m4: New file.
65008
65009         Module strtoumax.
65010         * m4/strtoumax.m4: New file.
65011
65012         Module xstrtoimax.
65013         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
65014         jm_AC_PREREQ_XSTRTOIMAX.
65015         Moved the strtol prerequisites to strtol.m4.
65016         Moved the strtoll prerequisites to strtoll.m4.
65017         Moved the strtoimax prerequisites to strtoimax.m4.
65018
65019         Module xstrtoumax.
65020         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
65021         jm_AC_PREREQ_XSTRTOUMAX.
65022         Moved the strtoul prerequisites to strtoul.m4.
65023         Moved the strtoull prerequisites to strtoull.m4.
65024         Moved the strtoumax prerequisites to strtoumax.m4.
65025
65026         Module chown.
65027         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
65028         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
65029
65030         Module dup2.
65031         * m4/dup2.m4: New file.
65032
65033         Module ftruncate.
65034         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
65035         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
65036
65037         Module getgroups.
65038         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
65039         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
65040
65041         Module gettimeofday.
65042         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
65043         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
65044         gl_PREREQ_GETTIMEOFDAY.
65045
65046         Module mkdir.
65047         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
65048         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
65049
65050         Module mkstemp.
65051         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
65052         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
65053         jm_AC_TYPE_UINTMAX_T.
65054         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
65055
65056         Module stat.
65057         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
65058         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
65059
65060         Module lstat.
65061         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
65062         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
65063
65064         Module timespec.
65065         * m4/timespec.m4 (gl_TIMESPEC): New macro.
65066         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
65067         * m4/st_mtim.m4: Indentation.
65068
65069         Module nanosleep.
65070         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
65071         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
65072         gl_PREREQ_NANOSLEEP.
65073
65074         Module regex.
65075         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
65076         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
65077         (gl_REGEX): New macro.
65078
65079         Module rename.
65080         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
65081         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
65082
65083         Module rmdir.
65084         * m4/rmdir.m4: New file.
65085
65086         Module utime.
65087         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
65088         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
65089         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
65090
65091         Module dirname.
65092         * m4/dirname.m4: New file.
65093
65094         Module getopt.
65095         * m4/getopt.m4: New file.
65096
65097         Module unistd-safer.
65098         * m4/unistd-safer.m4: New file.
65099
65100         Module fnmatch.
65101         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
65102         declaration.
65103         (gl_PREREQ_FNMATCH_EXTRA): New macro.
65104         (gl_FUNC_FNMATCH_POSIX): New macro.
65105         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
65106         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
65107         simply fnmatch.
65108
65109         Module exclude.
65110         * m4/exclude.m4: New file.
65111
65112         Module human.
65113         * m4/human.m4: New file.
65114
65115         Module acl.
65116         * m4/acl.m4: Nop.
65117
65118         Module backupfile.
65119         * m4/backupfile.m4: New file.
65120         * m4/d-ino.m4: Indentation.
65121
65122         Module fsusage.
65123         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
65124         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
65125         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
65126
65127         Module dirfd.
65128         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
65129         requirements.
65130
65131         Module euidaccess.
65132         * m4/euidaccess.m4: New file.
65133
65134         Module file-type.
65135         * m4/file-type.m4: New file.
65136
65137         Module fileblocks.
65138         * m4/fileblocks.m4: New file.
65139
65140         Module filemode.
65141         * m4/filemode.m4: New file.
65142
65143         Module isdir.
65144         * m4/isdir.m4: New file.
65145
65146         Module lchown.
65147         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
65148         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
65149
65150         Module makepath.
65151         * m4/makepath.m4: New file.
65152
65153         Module modechange.
65154         * m4/modechange.m4: New file.
65155
65156         Module mountlist.
65157         * m4/mountlist.m4: New file.
65158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65159         Indentation.
65160
65161         Module path-concat.
65162         * m4/path-concat.m4: New file.
65163
65164         Module pathmax.
65165         * m4/pathmax.m4: New file.
65166
65167         Module same.
65168         * m4/same.m4: New file.
65169
65170         Module save-cwd.
65171         * m4/save-cwd.m4: New file.
65172
65173         Module savedir.
65174         * m4/savedir.m4: New file.
65175
65176         Module xgetcwd.
65177         * m4/xgetcwd.m4: New file.
65178         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65179
65180         Module xreadlink.
65181         * m4/xreadlink.m4: New file.
65182
65183         Module safe-read.
65184         * m4/safe-read.m4: New file.
65185
65186         Module safe-write.
65187         * m4/safe-write.m4: New file.
65188
65189         Module closeout.
65190         * m4/closeout.m4: New file.
65191
65192         Module stdio-safer.
65193         * m4/stdio-safer.m4: New file.
65194
65195         Module getpass.
65196         * m4/getpass.m4: New file.
65197
65198         Module getugroups.
65199         * m4/getugroups.m4: New file.
65200
65201         Module group-member.
65202         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65203         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65204
65205         Module idcache.
65206         * m4/idcache.m4: New file.
65207
65208         Module userspec.
65209         * m4/userspec.m4: New file.
65210
65211         Module gettime.
65212         * m4/clock_time.m4: New file.
65213         * m4/gettime.m4: New file.
65214
65215         Module settime.
65216         * m4/settime.m4: New file.
65217
65218         Module posixtm.
65219         * m4/posixtm.m4: New file.
65220
65221         Module gethostname.
65222         * m4/gethostname.m4: New file.
65223
65224         Module canon-host.
65225         * m4/canon-host.m4: New file.
65226
65227         Module gettext.
65228         * m4/codeset.m4: New file, from gettext-0.11.5.
65229         * m4/gettext.m4: New file, from gettext-0.11.5.
65230         * m4/glibc21.m4: New file, from gettext-0.11.5.
65231         * m4/iconv.m4: New file, from gettext-0.11.5.
65232         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65233         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65234         * m4/inttypes.m4: New file, from gettext-0.11.5.
65235         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65236         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65237         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65238         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65239         * m4/lib-link.m4: New file, from gettext-0.11.5.
65240         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65241         * m4/progtest.m4: New file, from gettext-0.11.5.
65242         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65243         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65244         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65245
65246         Module localcharset.
65247         * m4/localcharset.m4: New file.
65248
65249         Module hard-locale.
65250         * m4/hard-locale.m4: New file.
65251
65252         Module mbswidth.
65253         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65254         onceonly macros.
65255         * m4/mbrtowc.m4: Add comment.
65256
65257         Module memcasecmp.
65258         * m4/memcasecmp.m4: New file.
65259
65260         Module memcoll.
65261         * m4/memcoll.m4: New file.
65262
65263         Module unicodeio.
65264         * m4/unicodeio.m4: New file.
65265
65266         Module rpmatch.
65267         * m4/rpmatch.m4: New file.
65268
65269         Module yesno.
65270         * m4/yesno.m4: New file.
65271
65272         Module exitfail.
65273         * m4/exitfail.m4: New file.
65274
65275         Module c-stack.
65276         * m4/c-stack.m4 (gl_C_STACK): New macro.
65277         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65278
65279         Module error.
65280         * m4/error.m4 (gl_ERROR): New macro.
65281         (jm_PREREQ_ERROR): Use onceonly macros.
65282
65283         Module fatal.
65284         * m4/fatal.m4: New file.
65285
65286         Module getloadavg.
65287         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65288         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65289
65290         Module getpagesize.
65291         * m4/getpagesize.m4: New file.
65292
65293         Module getusershell.
65294         * m4/getusershell.m4: New file.
65295
65296         Module physmem.
65297         * m4/physmem.m4: New file.
65298
65299         Module posixver.
65300         * m4/posixver.m4: New file.
65301
65302         Module quotearg.
65303         * m4/quotearg.m4: New file.
65304
65305         Module quote.
65306         * m4/quote.m4: New file.
65307
65308         Module readutmp.
65309         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65310
65311         Module sig2str.
65312         * m4/sig2str.m4: New file.
65313
65314         Other.
65315         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65316         ulonglong.m4.
65317         * m4/intmax_t.m4: New file.
65318         * m4/d-type.m4: Indentation.
65319         * m4/jm-macros.m4: Update.
65320         * m4/prereq.m4 (jm_PREREQ): Update.
65321         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65322         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65323         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65324         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65325         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65326         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65327         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65328         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65329         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65330         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65331         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65332         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65333         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65334         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65335         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65336         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65337         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65338         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65339         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65340
65341 2002-12-24  Bruno Haible  <bruno@clisp.org>
65342
65343         * MODULES.txt: Update according to m4/ changes.
65344
65345         Module gettext.
65346         * config.rpath: New file, from gettext-0.11.5.
65347
65348         * modules/*: New module descriptions.
65349         * gnulib-tool: New file.
65350         * MODULES.html.sh: New file.
65351
65352 2002-12-21  Karl Berry  <karl@gnu.org>
65353
65354         * doc/fdl.texi: update to version 1.2.
65355
65356 2002-12-19  Karl Berry  <karl@gnu.org>
65357
65358         * config/config.guess: update from prep.
65359
65360 2002-12-18  Bruno Haible  <bruno@clisp.org>
65361
65362         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65363         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65364
65365 2002-12-17  Bruno Haible  <bruno@clisp.org>
65366
65367         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65368         stdlib.h, string.h.
65369
65370 2002-12-17  Bruno Haible  <bruno@clisp.org>
65371
65372         * lib/canon-host.c (strdup): Remove unused declaration.
65373
65374         * lib/fsusage.c: Include full_read.h.
65375         (get_fs_usage): Use full_read instead of safe_read.
65376
65377         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65378
65379 2002-12-12  Karl Berry  <karl@gnu.org>
65380
65381         * config/config.guess: update from prep.
65382
65383 2002-12-11  Bruno Haible  <bruno@clisp.org>
65384
65385         * m4/setenv.m4: New file, from gettext-0.11.5.
65386
65387 2002-12-11  Bruno Haible  <bruno@clisp.org>
65388
65389         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65390         not unsetenv().
65391         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65392         modifications:
65393
65394         2002-12-11  Bruno Haible  <bruno@clisp.org>
65395
65396                 * setenv.c (alloca): Fall back to malloc.
65397                 (freea): New macro.
65398                 (setenv): Use freea() to free memory allocated with alloca().
65399
65400         2002-11-13  Bruno Haible  <bruno@clisp.org>
65401
65402                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65403                 function declarations.
65404                 * unsetenv.c (unsetenv): Likewise.
65405
65406         2002-03-04  Bruno Haible  <bruno@clisp.org>
65407
65408                 Portability to AIX 4.3.3.
65409                 * unsetenv.c: New file, extracted from setenv.c.
65410                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65411
65412         2001-12-20  Bruno Haible  <bruno@clisp.org>
65413
65414                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65415                 use malloc instead. For SunOS 4.
65416
65417         2001-12-11  Bruno Haible  <bruno@clisp.org>
65418
65419                 * setenv.c: Declare alloca.
65420                 (compar_fn_t): New typedef.
65421                 (KNOWN_VALUE, STORE_VALUE): Use it.
65422
65423         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65424         setenv.h.
65425
65426 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65427
65428         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65429         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65430         Choose values that are less likely to collide with system fnmatch
65431         options.
65432         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65433         defined (e.g., a pure POSIX system).
65434         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65435         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65436
65437 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65438
65439         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65440         a pain in practice to deal with generated m4 files.  This change
65441         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65442
65443         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65444         and jm-glibc-io.m4, as they are no longer a special case.
65445         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65446         kludge and the auto-generation stuff.  Check only whether the
65447         functions are declared, not whether they exist, since older hosts
65448         that don't declare the functions can't use the optimization anyway.
65449
65450 2002-12-06  Jim Meyering  <jim@meyering.net>
65451
65452         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65453
65454         Merge in changes from libc's misc/error.c, in preparation
65455         for the merge of gnulib's changes back into libc.
65456
65457         * lib/error.c (_): Define only if not already defined.
65458         Move definition to follow all #include directives.
65459         Include unlocked-io.h only if !_LIBC.
65460         [_LIBC]: Include <libio/libioP.h>.
65461         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65462         (fflush): Tweak definition to use INTUSE.
65463         (putc): Define.
65464
65465 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65466
65467         * lib/alloca.c [defined emacs]: Include "lisp.h".
65468         (xalloc_die) [defined emacs]: New macro.
65469         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65470         [! defined emacs]: Include <xalloc.h>.
65471         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65472         (pointer): Typedef to POINTER_TYPE *.
65473         (malloc): Remove decl; we now always use xmalloc.
65474         (alloca): Use old-style definition, since Emacs needs this.
65475         Check for arithmetic overflow when computing combined size.
65476
65477 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65478
65479         Do not generate unlocked-io.h automatically, since it's easier to
65480         maintain it by hand.
65481
65482         * lib/unlocked-io.h: New file, from GNU diffutils,
65483         but with proper copyright notice and attribution.
65484         * lib/gen-uio: Remove.
65485         * lib/Makefile.am: Add copyright notice.
65486         (libfetish_a_SOURCES): Add unlocked-io.h.
65487         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65488         (DISTCLEANFILES, io_functions): Remove macros.
65489         (EXTRA_DIST): Remove gen_uio.
65490         (unlocked-io.h): Remove rule.
65491
65492 2002-12-04  Jim Meyering  <jim@meyering.net>
65493
65494         Reflect the fact that stat.c and lstat.c are no longer generated.
65495         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65496         (DISTCLEANFILES): Likewise.
65497         (EXTRA_DIST): Likewise.
65498         (all_local): Don't depend on stat.c or lstat.c.
65499         (stat.c, lstat.c): Remove rules.
65500         (EXTRA_DIST): Remove xstat.in.
65501
65502         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65503         * lib/stat.c: New file.  Contents mostly from xstat.in.
65504         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65505         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65506
65507         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65508         too.
65509         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65510
65511 2002-12-03  Jim Meyering  <jim@meyering.net>
65512
65513         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65514         but not semantics, to minimize the differences between these two files.
65515         (safe_read): Change comment to mention SAFE_READ_ERROR.
65516
65517         * lib/safe-read.c (IS_EINTR): Define.
65518         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65519
65520 2002-12-02  Jim Meyering  <jim@meyering.net>
65521
65522         * lib/safe-read.c (EINTR): Define.
65523         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65524         (INT_MAX): Provide fallback.
65525         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65526
65527         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65528
65529 2002-12-02  Bruno Haible  <bruno@clisp.org>
65530
65531         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65532         Define, taken from safe-read.c.
65533         (INT_MAX): Provide fallback.
65534         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65535         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65536
65537         * lib/safe-read.c (EINTR): Remove definition.
65538         (safe_read): Don't use EINTR if it is absent.
65539
65540 2002-12-01  Jim Meyering  <jim@meyering.net>
65541
65542         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65543         zero.
65544         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65545
65546 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65547
65548         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65549         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65550         with `if (! (value < limit)) abort ();', for readability.
65551
65552 2002-11-26  Karl Berry  <karl@gnu.org>
65553
65554         * lib/strdup.c: copy from libc again, with jim's ok.
65555         * lib/.cppi-disable: re-add strdup.c
65556
65557 2002-11-25  Karl Berry  <karl@gnu.org>
65558
65559         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65560         instead of "strtol.c".
65561
65562 2002-11-25  Karl Berry  <karl@gnu.org>
65563
65564         * config/install-sh: update from automake for variable quoting, $0 in
65565         error msgs, etc.
65566
65567         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65568         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65569         entry.
65570
65571 2002-11-25  Jim Meyering  <jim@meyering.net>
65572
65573         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65574
65575 2002-11-24  Karl Berry  <karl@gnu.org>
65576
65577         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65578         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65579
65580 2002-11-24  Jim Meyering  <jim@meyering.net>
65581
65582         Update from coreutils:
65583
65584         * lib/mktime.c: Merge in changes from libc.
65585
65586         Avoid a link-time failure on some Linux systems.
65587         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65588         (otherwise).
65589         (__mon_yday): Declare with the STATIC attribute.
65590         (__mktime_internal): Likewise.
65591         Based on a report from Greg Schafer.
65592
65593 2002-11-23  Jim Meyering  <jim@meyering.net>
65594
65595         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65596         Use `unsigned', not `int', as type of index.
65597
65598         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65599
65600         * lib/fsusage.c: Remove unneeded parentheses around operands of
65601         `defined'.
65602
65603 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65604
65605         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65606         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65607         so that we can be included first.
65608         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65609         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65610         No need to include stddef.h or sys/types.h any more.
65611         Surround local include files with "", not "<>".
65612         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65613         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65614         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65615         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65616         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65617         (ISPRINT): Remove; no longer needed now that we assume C89.
65618
65619         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65620         Preserve errno.
65621
65622         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65623         quotearg_char): Use SIZE_MAX rather than
65624         (size_t) -1 when we are talking about "infinity".
65625
65626         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65627
65628 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65629
65630         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65631         hint that one should use `if (! x) abort ();' rather than `assert
65632         (x);', and anyway it's one less thing to worry about configuring.
65633         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65634         hash_rehash, hash_insert): Use abort rather than assert.
65635
65636 2002-11-22  Bruno Haible  <bruno@clisp.org>
65637
65638         * lib/safe-read.h: Assume C89. Add comments.
65639         (safe_read): Change return type to size_t.
65640         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65641         byte counts > SSIZE_MAX correctly.
65642         * lib/safe-write.h: New file.
65643         * lib/safe-write.c: New file.
65644         * lib/full-read.h: New file.
65645         * lib/full-read.c: New file.
65646         * lib/full-write.h: Assume C89. Add comments.
65647         * lib/full-write.c: Include safe-write.h.
65648         (full_write): Rewritten to use safe_write.
65649         Suggested by Jim Meyering and Paul Eggert.
65650
65651 2002-11-21  Jim Meyering  <jim@meyering.net>
65652
65653         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65654
65655         Merge in changes from the coreutils.
65656
65657         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65658         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65659         <stdint.h>.
65660         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65661         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65662         int.  Work more efficiently if X is the same width as uintmax_t.
65663         Do not compare X to -1, to avoid bogus compiler warning.
65664         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65665         Don't assume that f_frsize and f_bsize are the same type.
65666
65667         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65668         warning on FreeBSD.
65669
65670         * lib/makepath.c (make_path): Restore umask *before* creating the final
65671         component.
65672         (make_path): Minor reformatting.
65673
65674         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65675         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65676         HAVE_MALLOC/HAVE_REALLOC.
65677
65678         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65679         dummy ones.  At least on GNU/Linux systems, `auto' means something
65680         else.
65681         From Michael Stone.
65682
65683 2002-11-21  Bruno Haible  <bruno@clisp.org>
65684
65685         Remove case insensitive option matching.
65686         * lib/argmatch.h (argcasematch): Remove declaration.
65687         (ARGCASEMATCH): Remove macro.
65688         (__xargmatch_internal): Remove case_sensitive argument.
65689         (XARGMATCH): Update.
65690         (XARGCASEMATCH): Remove macro.
65691         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65692         case_sensitive argument.
65693         (argcasematch): Remove function.
65694         (__xargmatch_internal): Remove case_sensitive argument.
65695         (main): Use XARGMATCH instead of XARGCASEMATCH.
65696
65697         * lib/xmalloc.c: Change compile-time error message. Add comment about
65698         required autoconf version.
65699
65700 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65701
65702         Merge argmatch cleanups from Bison.  Assume C89.
65703
65704         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65705         Include stdlib.h, for EXIT_FAILURE.
65706         Always include <string.h>, since we assume C89.
65707         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65708         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65709         Include <stddef.h> instead, since it's all we need for size_t.
65710         (PARAMS): Remove.  All uses removed.
65711         (ARRAY_CARDINALITY): Do not bother to #undef.
65712         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65713         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65714         Remove unnecessary parentheses.
65715         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65716         Insert necessary parentheses.
65717         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65718         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65719
65720 2002-11-19  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65723         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65724
65725         * lib/mbswidth.h (PARAMS): Remove macro.
65726         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65727         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65728
65729         * lib/gcd.h (PARAMS): Remove macro.
65730         (gcd): Use ANSI C function declarations.
65731         * lib/gcd.c (gcd): Likewise.
65732
65733 2002-11-15  Bruno Haible  <bruno@clisp.org>
65734
65735         * lib/strcspn.c: Include <stddef.h>.
65736         (strcspn): Use ANSI C function declaration. Change return type to
65737         size_t. Use NULL.
65738         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65739         (strpbrk): Use NULL.
65740         * lib/strpbrk.h (PARAMS): Remove macro.
65741         (strpbrk): Use ANSI C function declaration.
65742         * lib/strstr.c: Don't include <sys/types.h>.
65743         * lib/strstr.h (PARAMS): Remove macro.
65744         (strstr): Use ANSI C function declarations.
65745
65746 2002-11-14  Karl Berry  <karl@gnu.org>
65747
65748         * config/mkinstalldirs: `do' on separate line, instead of
65749         `for var; do'.
65750
65751 2002-11-06  Bruno Haible  <bruno@clisp.org>
65752
65753         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65754         * lib/gcd.c (gcd): Likewise.
65755
65756 2002-11-05  Bruno Haible  <bruno@clisp.org>
65757
65758         * lib/gcd.h: New file, from gettext-0.11.5.
65759         * lib/gcd.c: New file, from gettext-0.11.5.
65760
65761 2002-11-05  Bruno Haible  <bruno@clisp.org>
65762
65763         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65764         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65765         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65766         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65767
65768         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65769         <libintl.h>.
65770         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65771         <libintl.h>.
65772
65773         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65774         * lib/human.c: Include gettext.h instead of <libintl.h>.
65775         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65776         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65777         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65778         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65779         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65780         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65781         (textdomain): Remove definition.
65782         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65783
65784         * lib/long-options.c: Remove include of <libintl.h> and definition of
65785         _.
65786         * lib/same.c: Remove include of <libintl.h> and definition of _.
65787
65788 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65789
65790         * lib/config.charset: A few additions for Solaris.
65791
65792 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65793
65794         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65795         * lib/localcharset.c (locale_charset): Declare as extern "C".
65796
65797 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65798
65799         * lib/config.charset: msdos in uk_UA uses CP1125.
65800
65801 2002-11-04  Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65804         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65805         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65806         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65807         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65808
65809 2002-11-04  Bruno Haible  <bruno@clisp.org>
65810
65811         * lib/localcharset.c (locale_charset): Don't return an empty string.
65812
65813 2002-11-04  Bruno Haible  <bruno@clisp.org>
65814
65815         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65816         aliases.
65817
65818 2002-11-04  Bruno Haible  <bruno@clisp.org>
65819
65820         * lib/config.charset: Update for newest glibc. Add canonical names
65821         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65822
65823 2002-11-04  Bruno Haible  <bruno@clisp.org>
65824
65825         * lib/config.charset: Add support for NetBSD.
65826
65827 2002-11-04  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65830
65831 2002-11-01  Bruno Haible  <bruno@clisp.org>
65832
65833         * configure.in: Add AC_CONFIG_AUX_DIR call.
65834         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65835         test/Makefile.
65836         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65837
65838 2002-09-28  Karl Berry  <karl@gnu.org>
65839
65840         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65841         installed automake until the next release, since changes have been
65842         made.
65843
65844 2002-09-25  Karl Berry  <karl@gnu.org>
65845
65846         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65847         * lib/getopt*: copy from libc/posix.
65848         * lib/gettext.h: copy from gettext.
65849         * lib/.cppi-disable: add strdup.c, gettext.h.
65850
65851 2002-09-25  Karl Berry  <karl@gnu.org>
65852
65853         * config/srclist.txt: enable gettext.h check.
65854         * config/config.{guess,sub}: update from prep.
65855         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65856                 from automake 1.6.3.
65857         See srclist*.
65858
65859 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65860
65861         * regex.c (PATFETCH): Remove the translating fetch.
65862         (PATFETCH_RAW): Rename to PATFETCH.
65863         (set_image_of_range): New fun.
65864         (SET_RANGE_TABLE_WORK_AREA): Use it.
65865         (regex_compile): Don't translate the pattern chars so eagerly.
65866         Only do it when inserting an `exactn' bytecode or when handling
65867         a char-range.
65868         (mutually_exclusive_p): Avoid empty statement.
65869
65870 2002-07-06  Jim Meyering  <meyering@lucent.com>
65871
65872         * m4/README: Don't mention Makefile.am.in.
65873         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65874
65875 2002-07-01  Jim Meyering  <meyering@lucent.com>
65876
65877         * lib/c-stack.c: Include sys/time.h.
65878         From Volker Borchert.
65879
65880 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65881
65882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65883
65884 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65885
65886         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65887         New macro.  Use it uniformly instead of
65888         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65889         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65890         reported by Vin Shelton.
65891
65892 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65893
65894         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65895         Do not assume SA_SIGINFO behavior.
65896         Bug reported by Jim Meyering on NetBSD 1.5.2.
65897
65898 2002-06-22  Jim Meyering  <meyering@lucent.com>
65899
65900         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65901         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65902
65903         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65904         now that configure.ac uses AC_GNU_SOURCE.
65905         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65906         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65907
65908         Update to latest tools.  Suggestions from Paul Eggert.
65909         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65910         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65911         * m4/fnmatch.m4: Likewise.
65912         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65913         to AC_HEADER_STDBOOL
65914
65915 2002-06-22  Jim Meyering  <meyering@lucent.com>
65916
65917         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65918         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65919
65920 2002-06-22  Jim Meyering  <meyering@lucent.com>
65921
65922         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65923
65924         * lib/exitfail.c, exitfail.h: Likewise.
65925         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65926
65927         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65928         of fnmatch.h.
65929         (EXTRA_DIST): Add fnmatch_loop.c.
65930         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65931
65932         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65933         * lib/fnmatch.c: Update from diffutils-2.8.2.
65934         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65935         * lib/fnmatch.h: Remove file.
65936
65937 2002-06-21  Jim Meyering  <meyering@lucent.com>
65938
65939         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65940         * m4/mbrtowc.m4: Likewise.
65941
65942         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65943         * m4/mbswidth.m4: Reflect name change:
65944         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65945         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65946
65947         * m4/lib-link.m4: Update from gettext-0.11.2.
65948         * m4/gettext.m4: Likewise.
65949
65950         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65951         From Alfred M. Szmidt.
65952
65953 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65954
65955         * lib/file-type.h: Report an error if neither S_ISREG nor
65956         S_IFREG is defined, instead of using a test specific to glibc
65957         2.2.  This should be safe, since POSIX requires S_ISREG and
65958         Unix Version 7 had S_IFREG.  We don't need to check for
65959         <sys/types.h> since we don't use any symbols that it defines.
65960
65961 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65962
65963         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65964         $@-t, so that each temporary file name is unique and valid in the first
65965         8 characters, for operation under DOS.
65966
65967 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65968
65969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65970
65971 2002-06-15  Jim Meyering  <meyering@lucent.com>
65972
65973         Work even with DJGPP 2.03, which lacks support for symlinks.
65974         From Richard Dawe.
65975         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65976         is defined.
65977         * lib/lchown.c (S_ISLNK): Likewise.
65978
65979 2002-06-15  Jim Meyering  <meyering@lucent.com>
65980
65981         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65982         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65983         have been included before this file.
65984
65985 2002-06-14  Jim Meyering  <meyering@lucent.com>
65986
65987         * lib/file-type.h: Use the version from diffutils-2.8.2.
65988         * lib/file-type.c: Likewise.
65989
65990 2002-06-07  Jim Meyering  <meyering@lucent.com>
65991
65992         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65993         They're needed at least for NetBSD 1.5.2.
65994         ($statxfs_includes): Include those same headers.
65995         ($statxfs_includes): Include sys/vfs.h if available.
65996         ($statxfs_includes): Likewise for sys/statvfs.h.
65997         Check for the following members in both structs statfs and statvfs:
65998         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
65999
66000 2002-06-01  Jim Meyering  <meyering@lucent.com>
66001
66002         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
66003         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
66004
66005 2002-05-28  Jim Meyering  <meyering@lucent.com>
66006
66007         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
66008         Reported by Volker Borchert.
66009
66010 2002-05-27  Jim Meyering  <meyering@lucent.com>
66011
66012         Fix a problem seen only on nonconforming systems whereby ls.c's
66013         use of localtime, and then of gettimeofday would cause trouble:
66014         the localtime call used to initialize rpl_gettimeofday's save
66015         mechanism would clobber ls's current local time information so
66016         that in any long listing the first file would always be listed
66017         with date 1970-01-01.  Analysis by Volker Borchert.
66018
66019         * lib/gettimeofday.c (localtime): Undefine.
66020         (rpl_localtime): New function.
66021
66022 2002-05-27  Jim Meyering  <meyering@lucent.com>
66023
66024         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
66025         localtime.
66026
66027         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
66028         use the replacement function; it wouldn't resolve at link time.
66029         Reported by Volker Borchert.
66030
66031 2002-05-22  Jim Meyering  <meyering@lucent.com>
66032
66033         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
66034         file-type.h.
66035         * lib/file-type.h: New file.
66036         * lib/file-type.c (file_type): New file/function.  Extracted from
66037         diffutils.
66038
66039 2002-04-30  Jim Meyering  <meyering@lucent.com>
66040
66041         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
66042
66043 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66044
66045         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
66046
66047 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66048
66049         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
66050         Do not check for alloca.h (no longer used) or stdbool.h (was never
66051         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
66052
66053 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66054
66055         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
66056
66057 2002-04-29  Jim Meyering  <meyering@lucent.com>
66058
66059         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
66060         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
66061         Use AC_FUNC_STRNLEN here instead.
66062
66063         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
66064         With autoconf-2.53a, it's part of AC_PROG_CC.
66065
66066 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66067
66068         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
66069         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
66070
66071 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66072
66073         * lib/sig2str.h, lib/sig2str.c: New files.
66074         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
66075
66076 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66077
66078         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
66079         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
66080         of 127, since 64 is the largest conceivable number for ancient
66081         nonstandard hosts.
66082         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
66083
66084 2002-04-28  Jim Meyering  <meyering@lucent.com>
66085
66086         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
66087
66088 2002-04-24  Jim Meyering  <meyering@lucent.com>
66089
66090         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
66091         (jm_PREREQ): Use it.
66092
66093         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
66094         mach/mach.h fcntl.h.
66095         Check for this function: setlocale.
66096
66097 2002-04-24  Jim Meyering  <meyering@lucent.com>
66098
66099         * lib/gettext.h: New file, from Gettext.
66100         * lib/Makefile.am (INCLUDES): Remove -I../intl.
66101         (libfetish_a_SOURCES): Add gettext.h.
66102
66103 2002-04-16  Jim Meyering  <meyering@lucent.com>
66104
66105         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
66106         ut_pid, ut_id, ut_exit.
66107
66108 2002-04-16  Jim Meyering  <meyering@lucent.com>
66109
66110         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
66111         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
66112         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
66113
66114 2002-04-12  Jim Meyering  <meyering@lucent.com>
66115
66116         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
66117         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
66118         existence of the getmntinfo function.  Needed for Darwin 5.3.
66119
66120         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
66121         This is necessary at least on Darwin 5.3.
66122
66123         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
66124         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
66125         strnlen.o in the library, and that makes some versions of ranlib
66126         object.
66127
66128 2002-04-12  Jim Meyering  <meyering@lucent.com>
66129
66130         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
66131
66132 2002-04-09  Jim Meyering  <meyering@lucent.com>
66133
66134         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
66135         to be more precise.  Rather than saying we're checking whether the
66136         function `works', say what we're testing.
66137         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
66138         Reported by Bruno Haible.
66139
66140 2002-03-10  Jim Meyering  <meyering@lucent.com>
66141
66142         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
66143         Suggestion from Santiago Vila.
66144
66145 2002-03-08  Jim Meyering  <meyering@lucent.com>
66146
66147         * lib/rename.c: Mention that this wrapper is needed also on
66148         mips-dec-ultrix4.4 systems.
66149
66150 2002-03-02  Jim Meyering  <meyering@lucent.com>
66151
66152         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
66153         not HAVE_CLOCK_SETTIME.
66154
66155 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66156
66157         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66158         Check for clock_settime.
66159
66160 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66161
66162         * lib/nanosleep.h: Rename to....
66163         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66164
66165         * lib/gettime.c: New file.
66166         * lib/settime.c: New file.
66167         * lib/stime.c: Remove.
66168
66169         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66170         timespec.h.  Remove nanosleep.h.
66171
66172 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66173
66174         * m4/acl.m4: New file.
66175         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66176         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66177
66178 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66179
66180         * lib/acl.c, lib/acl.h: New files.
66181         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66182
66183 2002-02-24  Jim Meyering  <meyering@lucent.com>
66184
66185         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66186         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66187         cause trouble.  Reported by Nelson Beebe.
66188
66189 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66190
66191         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66192         compilers that don't know that xalloc_die never returns.
66193
66194 2002-02-20  Jim Meyering  <meyering@lucent.com>
66195
66196         * lib/getdate.c: Regenerate using bison-1.33.
66197
66198 2002-02-17  Jim Meyering  <meyering@lucent.com>
66199
66200         * config/config.guess (main): Don't use `head -1'; it's no longer
66201         portable. Use `sed 1q' instead.
66202
66203 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66204
66205         * m4/codeset.m4: Upgrade to gettext-0.11.
66206         * m4/gettext.m4: Upgrade to gettext-0.11.
66207         * m4/glibc21.m4: Upgrade to gettext-0.11.
66208         * m4/iconv.m4: Upgrade to gettext-0.11.
66209         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66210         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66211         * m4/lib-ld.m4: New file, from gettext-0.11.
66212         * m4/lib-link.m4: New file, from gettext-0.11.
66213         * m4/lib-prefix.m4: New file, from gettext-0.11.
66214         * m4/progtest.m4: Upgrade to gettext-0.11.
66215
66216 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66217
66218         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66219         (jm_PREREQ): Use it.
66220
66221 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66222
66223         * lib/posixver.c, lib/posixver.h: New files.
66224         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66225
66226 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66227             Bruno Haible  <bruno@clisp.org>
66228
66229         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66230         (fwrite_success_callback): New declaration.
66231         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66232         print_unicode_char. Call failure callback instead of error.
66233         (fwrite_success_callback): New function.
66234         (exit_failure_callback): New function.
66235         (fallback_failure_callback): New function.
66236         (print_unicode_char): Call unicode_to_mb.
66237
66238 2002-01-26  Jim Meyering  <meyering@lucent.com>
66239
66240         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66241         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66242
66243 2002-01-26  Jim Meyering  <meyering@lucent.com>
66244
66245         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66246
66247 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66248
66249         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66250
66251 2002-01-22  Jim Meyering  <meyering@lucent.com>
66252
66253         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66254         Otherwise, some versions of automake would omit the rule that makes
66255         Makefile from Makefile.in.
66256
66257 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66258
66259         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66260         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66261         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66262         (memcoll): Set errno to zero if there is no error.
66263
66264         * lib/quotearg.c (quotearg_buffer_restyled):
66265         Fix bug with quoting buffers containing NUL when backslashing escapes.
66266         This bug was exposed by the other changes in this patch.
66267         (quotearg_n_options): New arg ARGSIZE.
66268         All callers changed.
66269         (quoting_options_from_style): New function.
66270         (quotearg_n_style): Use it.
66271         (quotearg_n_style_mem): New function.
66272
66273         * lib/quotearg.h (quotearg_n_style_mem): New function.
66274
66275 2002-01-19  Jim Meyering  <meyering@lucent.com>
66276
66277         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66278         Remove useless quotes: DF_PROG="df".
66279         * m4/strnlen.m4: New file.
66280
66281 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66282
66283         * lib/backupfile.c (ISDIGIT): Comment fix.
66284         * lib/getdate.y (ISDIGIT): Likewise.
66285         * lib/posixtm.c (ISDIGIT, year): Likewise.
66286         * lib/strverscmp.c (ISDIGIT): Likewise.
66287         * lib/userspec.c (ISDIGIT): Likewise.
66288
66289 2002-01-16  Jim Meyering  <meyering@lucent.com>
66290
66291         * lib/getdate.y: Add three semicolons, each just before a closing
66292         brace. Bison (as of version 1.31) no longer papers over that mistake.
66293
66294 2002-01-05  Jim Meyering  <meyering@lucent.com>
66295
66296         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66297
66298 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66299
66300         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66301         not silently exit merely because the output buffer happens to
66302         have nothing pending.
66303
66304 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66305
66306         See the big note in ../ChangeLog.
66307         * lib/human.c (suffixes): Prefer K to k for 1024.
66308         (generate_suffix_backwards): New function.
66309         (human_readable_inexact): Use it.
66310         * lib/xstrtol.c (__xstrtol): If there is no number but there
66311         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66312         Accept 'K' as well as 'k'.
66313
66314 2001-12-15  Jim Meyering  <meyering@lucent.com>
66315
66316         * lib/regex.h (__restrict_arr): Update from libc.
66317
66318         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66319         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66320         (STREQ): Define.
66321
66322 2001-12-14  Jim Meyering  <meyering@lucent.com>
66323
66324         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66325         Suggestion from Bruno Haible.
66326
66327 2001-12-10  Jim Meyering  <meyering@lucent.com>
66328
66329         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66330         xrealloc, Instead, include "xalloc.h".
66331         (initbuffer): Don't cast xmalloc return value to char*.
66332         (readline): Reword comment.
66333         Don't cast xrealloc return value to char*
66334         Return NULL, not 0.
66335
66336 2001-12-09  Jim Meyering  <meyering@lucent.com>
66337
66338         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66339         about `signed and unsigned type in conditional expression'.
66340         * lib/posixtm.c (posix_time_parse): Likewise.
66341
66342         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66343
66344         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66345         to avoid a pedantic warning.
66346
66347         * lib/getstr.c: Don't include assert.h.
66348         (getstr): Remove warning-evoking assertions.
66349         Return -1 if offset parameter is out of bounds.
66350         Change the type of a local from int to size_t.
66351
66352         * lib/strftime.c (my_strftime_localtime_r): Include this function
66353         definition in the `#if ! HAVE_TM_GMTOFF' block.
66354
66355         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66356         Include xalloc.h instead.
66357
66358 2001-12-02  Jim Meyering  <meyering@lucent.com>
66359
66360         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66361         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66362         included.
66363
66364         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66365         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66366
66367 2001-11-30  Akim Demaille  <akim@epita.fr>
66368
66369         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66370         before being defined.
66371
66372 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66373
66374         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66375         First arg is int, not unsigned.
66376         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66377         (SIZE_MAX, UINT_MAX): New macros.
66378         (quotearg_n_options): Abort if N is negative.
66379         Avoid overflow check on hosts where size_t is 64 bits and int
66380         is 32 bits, as overflow is impossible there.
66381         Fix off-by-one typo that caused unnecessary reallocation.
66382
66383 2001-11-27  Jim Meyering  <meyering@lucent.com>
66384
66385         * lib/tempname.c: Merge with version from libc.
66386         * lib/regex.c: Likewise.
66387
66388         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66389         systems for which STDC_HEADERS is 0, it was not included, resulting in
66390         a warning about an integer-to-pointer conversion problem with getenv.
66391         Reported by Volker Borchert.
66392
66393 2001-11-26  Jim Meyering  <meyering@lucent.com>
66394
66395         * lib/gtod.h: Remove file.
66396         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66397         * lib/gettimeofday.c: Don't include gtod.h.
66398         (GTOD_init): Remove function.
66399         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66400         Suggestion from Volker Borchert.
66401
66402 2001-11-23  Jim Meyering  <meyering@lucent.com>
66403
66404         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66405         it.
66406         * lib/hash.c (struct hash_table): Define it here instead.
66407
66408 2001-11-22  Jim Meyering  <meyering@lucent.com>
66409
66410         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66411
66412 2001-11-20  Jim Meyering  <meyering@lucent.com>
66413
66414         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66415         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66416
66417 2001-11-19  Jim Meyering  <meyering@lucent.com>
66418
66419         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66420         directory.  Use "conftestXXXXXX" as the template.
66421         Suggestion from Paul Eggert.
66422
66423         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66424         immediately, so the test doesn't mistakenly hit the max-open-files
66425         limit.
66426
66427 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66428
66429         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66430         (TEMPORARIES): New macro.
66431         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66432         removes an artificial limitation (e.g. HP-UX 10.20, where
66433         TMP_MAX is 17576).
66434
66435 2001-11-18  Jim Meyering  <meyering@lucent.com>
66436
66437         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66438
66439 2001-11-18  Jim Meyering  <meyering@lucent.com>
66440
66441         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66442         on SunOS 4.
66443
66444         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66445         files will be created before anything else.
66446
66447 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66448
66449         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66450         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66451
66452 2001-11-17  Jim Meyering  <meyering@lucent.com>
66453
66454         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66455         Prompted by a report from Bob Proulx.
66456
66457         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66458         Instead, require UTILS_FUNC_MKSTEMP.
66459
66460 2001-11-17  Jim Meyering  <meyering@lucent.com>
66461
66462         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66463         Now, that's done as part of AC_FUNC_STRTOD.
66464
66465 2001-11-17  Jim Meyering  <meyering@lucent.com>
66466
66467         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66468         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66469         rather than group writable.  Patch by Juan F. Codagnone.
66470
66471         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66472         xrealloc, Instead, include "xalloc.h".
66473
66474         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66475         Remove explicit declarations of xmalloc, xrealloc,
66476         and xstrdup.  Instead, include "xalloc.h".
66477
66478         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66479         unlocked-io.h.
66480         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66481         Likewise.
66482         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66483
66484         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66485         Reported by Padraig Brady.
66486
66487         * lib/mkstemp.c: #undef mkstemp.
66488         Include config.h.
66489         (rpl_mkstemp): Rename from mkstemp.
66490         Protoize.
66491
66492 2001-11-16  Jim Meyering  <meyering@lucent.com>
66493
66494         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66495         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66496         determine the amount of total physical memory, use pstat_getstatic.
66497         HPUX-11 doesn't define _SC_PHYS_PAGES.
66498         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66499         If sysconf couldn't be used to determine the amount of available
66500         physical memory, use both pstat_getstatic and pstat_getdynamic.
66501         Based on a patch from Bob Proulx.
66502
66503 2001-11-10  Jim Meyering  <meyering@lucent.com>
66504
66505         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66506         (jm_PREREQ): Use it.
66507
66508 2001-11-09  Jim Meyering  <meyering@lucent.com>
66509
66510         * m4/jm-macros.m4: Require autoconf-2.52f.
66511         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66512         Use these AC_-prefixed names, not the AM_-prefixed ones.
66513
66514         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66515
66516 2001-11-05  Jim Meyering  <meyering@lucent.com>
66517
66518         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66519
66520 2001-11-04  Jim Meyering  <meyering@lucent.com>
66521
66522         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66523         $DEFS.
66524
66525 2001-11-03  Jim Meyering  <meyering@lucent.com>
66526
66527         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66528         of AC_DEFUN.
66529
66530         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66531         know the name of the variable in the macro definition.
66532
66533 2001-11-03  Jim Meyering  <meyering@lucent.com>
66534
66535         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66536         in argmatch_to_argument call.
66537
66538         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66539         argument.
66540
66541         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66542         e.g., a fault due to an attempt to free a NULL pointer.
66543
66544 2001-11-01  Jim Meyering  <meyering@lucent.com>
66545
66546         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66547         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66548
66549 2001-11-01  Jim Meyering  <meyering@lucent.com>
66550
66551         * lib/dirfd.c, lib/dirfd.h: New files.
66552         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66553
66554         * lib/hash.c (hash_print) [TESTING]: Clean up.
66555
66556 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66557
66558         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66559         to avoid a warning if -Wall.
66560
66561 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66562
66563         * README: New file
66564         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66565         (per RMS's instructions, this is now the canonical source)
66566         * lgpl/, gpl/: New directories.
66567
66568 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66569
66570         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66571
66572 2001-10-21  Jim Meyering  <meyering@lucent.com>
66573
66574         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66575         this code would end up calling gettext even in packages built
66576         with --disable-nls.
66577         * lib/getopt.c (_): Likewise.
66578         * lib/regex.c (_): Likewise.
66579
66580 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66581
66582         * m4/error.m4 (jm_PREREQ_ERROR):
66583         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66584         AC_FUNC_STRERROR_R does that.
66585         Check for strerror declaration.
66586
66587         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66588         are supposed to have them these days.
66589         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66590         Merge changes from latest Autoconf CVS.
66591         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66592         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66593         POSIX decided to standardize on the int flavor of strerror_r.
66594
66595 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66596
66597         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66598         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66599         Use strerror_r that is only a macro, even if it is not a function.
66600         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66601         (private_strerror): Use prototypes, not old-style function definition.
66602         (print_errno_message): New function.
66603         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66604         char*-flavored one.
66605         (error_tail, error, error_at_line): Use it.
66606
66607 2001-10-11  Jim Meyering  <meyering@lucent.com>
66608
66609         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66610         and quote_n (1, ... to avoid clobbering a buffer.
66611
66612 2001-10-05  Jim Meyering  <meyering@lucent.com>
66613
66614         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66615         hash-pjw.h.
66616         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66617         * lib/hash-pjw.h: New file.
66618
66619 2001-09-30  Jim Meyering  <meyering@lucent.com>
66620
66621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66622         `struct fsstat' has the `f_fstypename' member.
66623         Use that to define FS_TYPE, which is now used to make
66624         the getfsstat link test tighter.
66625
66626 2001-09-30  Jim Meyering  <meyering@lucent.com>
66627
66628         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66629         Include <sys/ucred.h>, for Apple Darwin.
66630         Include sys/mount.h and sys/fs_types.h only if available.
66631         (FS_TYPE): Define.
66632         (read_filesystem_list): Use FS_TYPE.
66633
66634 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66635
66636         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66637         a boolean context.
66638
66639 2001-09-29  Jim Meyering  <meyering@lucent.com>
66640
66641         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66642         [one-argument getmntent function]): Include stdio.h before mntent.h.
66643         SunOS 4.1.x needs it for the declaration of `FILE'.
66644         Patch by Volker Borchert.
66645
66646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66647         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66648         sys/fs_types.h, and make the link-test for getfsstat guard #include
66649         directives with appropriate #if HAVE_*_H tests so that we can
66650         detect getfsstat on Apple Darwin1.3.7 systems.
66651         Reported by Nelson Beebe.
66652         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66653
66654 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66655
66656         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66657         #defines strtoimax.  Also treat the other strto* functions
66658         like strtoimax.
66659
66660         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66661         Check for strtoul and strtoumax,
66662         as those declarations are made even in the signed case.
66663         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66664         Likewise, for strtol and strtoimax.
66665
66666 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66667
66668         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66669         #defines strtoimax.  Also treat the other strto* functions
66670         like strtoimax.
66671
66672         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66673         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66674         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66675
66676 2001-09-26  Jim Meyering  <meyering@lucent.com>
66677
66678         Most macros in unlocked-io.h had the wrong number of arguments.
66679         * lib/gen-uio: New script.
66680         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66681         * lib/unlocked-io.hin: Remove file.
66682         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66683         rather than trying to embed it here.
66684         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66685         Reported by Padraig Brady.
66686
66687 2001-09-25  Volker Borchert  <bt@teknon.de>
66688
66689         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66690         `result'.
66691
66692 2001-09-24  Jim Meyering  <meyering@lucent.com>
66693
66694         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66695
66696 2001-09-23  Jim Meyering  <meyering@lucent.com>
66697
66698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66699         instead of the mere test for existence of mntent.h.  The latter
66700         would get a false-positive on AIX 3.4 systems.
66701         In the outer getmntent if-block, don't die if neither of the getmntent
66702         tests succeeds.  Instead, just fall through and continue with the
66703         remaining tests.
66704
66705 2001-09-23  Jim Meyering  <meyering@lucent.com>
66706
66707         * lib/mountlist.c: Remove useless parentheses in #if directives.
66708         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66709         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66710
66711 2001-09-22  Jim Meyering  <meyering@lucent.com>
66712
66713         * m4/gettext.m4: New file.  From gettext.
66714         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66715         * m4/progtest.m4: Likewise
66716         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66717         * m4/glibc21.m4: Likewise.
66718
66719         * m4/libintl.m4: Remove.  No longer used.
66720
66721 2001-09-22  Jim Meyering  <meyering@lucent.com>
66722
66723         * lib/localcharset.c: Update from latest gettext.
66724         * lib/config.charset: Likewise.
66725
66726 2001-09-20  Jim Meyering  <meyering@lucent.com>
66727
66728         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66729         strtoimax.
66730         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66731         strtoumax.
66732
66733 2001-09-20  Jim Meyering  <meyering@lucent.com>
66734
66735         * lib/xstrtol.c (strtoimax): Guard declaration with
66736         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66737         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66738         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66739         (strtoumax): Likewise, for completeness (it wasn't necessary).
66740
66741 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66742
66743         * lib/strtoimax.c (HAVE_LONG_LONG):
66744         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66745         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66746         to work around bug in IBM C compiler.
66747
66748 2001-09-17  Jim Meyering  <meyering@lucent.com>
66749
66750         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66751         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66752         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66753         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66754         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66755         whenever the right hand side need not be expanded by the shell.
66756
66757 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66758
66759         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66760         library.  It's not correct, as some older glibcs are buggy.
66761         fnmatch wasn't fixed until glibc 2.2.
66762
66763         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66764         special shell magic here.
66765
66766 2001-09-16  Jim Meyering  <meyering@lucent.com>
66767
66768         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66769         * m4/jm-macros.m4: Require it.
66770
66771 2001-09-16  Jim Meyering  <meyering@lucent.com>
66772
66773         * lib/mkdir.c: New file.
66774
66775 2001-09-15  Jim Meyering  <meyering@lucent.com>
66776
66777         * m4/jm-macros.m4: Check for help2man.
66778
66779 2001-09-11  Jim Meyering  <meyering@lucent.com>
66780
66781         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66782         The body, by Paul Eggert, was moved here from configure.in.
66783         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66784
66785 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66786
66787         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66788         (jm_PREREQ): Use it.
66789
66790 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66791
66792         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66793         Use ssize_t, not int, to store result of readlink.
66794         Check for ssize_t overflow as well as size_t overflow,
66795         as POSIX says the result of readlink is implementation-defined
66796         when ssize_t overflows.
66797         Remove unnecessary cast to char*.
66798         Use free+malloc instead of realloc, as the storage doesn't need
66799         to be preserved and it's clearer and can be more efficient that way.
66800         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66801         * lib/xreadlink.h (xreadlink): Update prototype.
66802
66803 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66804
66805         * lib/xgetcwd.c: Revert some of the previous change; intead,
66806         fix the HAVE_GETCWD_NULL code to behave more like the
66807         !HAVE_GETCWD_NULL code used to.
66808
66809         Include "xalloc.h".
66810         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66811         invoke xalloc_die.
66812
66813 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66814
66815         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66816         sys/param.h, as pathmax.h includes them.
66817
66818 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66819
66820         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66821         (jm_PREREQ_XGETCWD): New macro.
66822
66823         * m4/getcwd.m4: New file.
66824
66825 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66826
66827         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66828         like the HAVE_GETCWD_NULL code.
66829         Include pathmax.h if not HAVE_GETCWD.
66830         Do not include xalloc.h.
66831         (INITIAL_BUFFER_SIZE): New symbol.
66832         Do not use xmalloc / xrealloc, since the caller is responsible for
66833         handling errors.  Preserve errno around `free' during failure.
66834         Do not overrun buffer when using getwd.
66835
66836 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66837
66838         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66839         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66840         getcwd (NULL, 0).
66841
66842 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66843
66844         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66845         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66846         spotted by Jim Meyering.
66847
66848 2001-09-03  Jim Meyering  <meyering@lucent.com>
66849
66850         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66851         failure.
66852
66853 2001-09-02  Jim Meyering  <meyering@lucent.com>
66854
66855         * lib/error.c: Update from GNU libc.
66856
66857 2001-09-01  Jim Meyering  <meyering@lucent.com>
66858
66859         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66860         Used by df.
66861
66862 2001-09-01  Jim Meyering  <meyering@lucent.com>
66863
66864         * lib/xreadlink.c: New file.
66865         * lib/xreadlink.h: New file.
66866         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66867         xreadlink.h.
66868
66869         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66870         doesn't conflict with sparc Solaris 7's definition in
66871         /usr/include/sys/int_types.h.
66872
66873         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66874         files.
66875         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66876         and strncasecmp as r-values.  Unixware didn't have declarations.
66877
66878 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66879
66880         * lib/xstrtol.h: Add copyright notice.
66881         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66882         LONGINT_INVALID_SUFFIX_CHAR.
66883
66884 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66885
66886         * lib/xstrtol.c (strtoimax): New decl.
66887
66888 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66889
66890         * lib/xgetcwd.c: Don't include pathmax.h.
66891         Include stdlib.h and unistd.h if available.
66892         Include xalloc.h.
66893         (xmalloc, xstrdup, free): Remove decls.
66894         (xgetcwd): Don't assume sizes fit in unsigned.
66895         Check for overflow when computing sizes.
66896         Simplify reallocation code.
66897
66898 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66899
66900         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66901         a directory's st_size can have an arbitrary value, so the old
66902         usage could waste an arbitrary amount of memory.  All uses
66903         changed.
66904         * lib/savedir.h: Update prototype.
66905
66906 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66907
66908         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66909
66910         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66911         old strtoimax.c.
66912
66913         Also, make the following further changes to make this file's
66914         configuration more similar to that of strtol.c:
66915         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66916         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66917         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66918         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66919         changed to signed values.
66920
66921         And make the following changes as well:
66922         Fix copyright notice, as 1999 was missing.
66923         (verify): New macro.
66924         (strtoimax): Check sizes at compile-time, not run-time.
66925         Prefer strtol to strtoll if both work.
66926         (main): Remove; it was not that useful and was a pain to maintain.
66927
66928         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66929
66930 2001-08-31  Jim Meyering  <meyering@lucent.com>
66931
66932         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66933         Use an initial, malloc'd, buffer of length 128 rather than
66934         a statically allocated one of length 1024.
66935
66936 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66937
66938         Simplify code, partly by assuming autoconf 2.52 semantics.
66939
66940         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66941
66942         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66943         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66944         All uses removed.
66945         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66946         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66947         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66948         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66949         jm_AC_HEADER_INTTYPES_H.
66950         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66951
66952         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66953
66954         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66955         Quote first arg of AC_DEFUN.
66956         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66957         since they are needed to parse the include file even if we need
66958         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66959         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66960         but with opposite signedness.
66961
66962 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66963
66964         Merge 'exclude' changes from tar 1.13.22.
66965         This fixes one or two unlikely storage allocation overflow bugs,
66966         but doesn't change user-visible behavior otherwise.
66967
66968 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66969
66970         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66971         (jm_PREREQ_EXCLUDE): New macro.
66972
66973 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66974
66975         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66976         tm to be declared.
66977
66978 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66979
66980         * lib/hash.c: Remove '2001' from copyright notice.
66981
66982 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66983
66984         * lib/full-write.h: New file.
66985         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66986         * lib/full-write.c: Correct credits, as cccp.c no longer
66987         exists and anyway it was so heavily changed from the old cccp
66988         code as to be unrecognizable.  Include full-write.h.
66989         (full_write) Return size_t, with short writes meaning failure.
66990         All callers changed.  This fixes a bug with large buffers
66991         on 64-bit hosts.
66992         * lib/utime.c: Include full-write.h.
66993
66994 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66995
66996         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
66997         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
66998         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
66999         Include if available.
67000         (<xalloc.h>): Include
67001         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
67002         (verify): New macro.  Use it to verify that EXCLUDE macros do not
67003         collide with FNM macros.
67004         (struct patopts): New struct.
67005         (struct exclude): Use it, as exclude patterns now come with options.
67006         (new_exclude): Support above changes.
67007         (new_exclude, add_exclude_file):
67008         Initial size must now be a power of two to simplify overflow checking.
67009         (free_exclude, fnmatch_no_wildcards): New function.
67010         (excluded_filename): No longer requires options arg, as the options
67011         are determined by add_exclude.  Now returns bool, not int.
67012         (excluded_filename, add_exclude):
67013         Add support for the fancy new exclusion options.
67014         (add_exclude, add_exclude_file): Now takes int options arg.
67015         Check for arithmetic overflow when computing sizes.
67016         (add_exclude_file): xrealloc might modify errno, so don't
67017         realloc until after errno might be used.
67018
67019         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
67020         New macros.
67021         (free_exclude): New decl.
67022         (add_exclude, add_exclude_file): Now takes int options arg.
67023         (excluded_filename): No longer requires options arg, as the options
67024         are determined by add_exclude.  Now returns bool, not int.
67025
67026 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67027
67028         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
67029
67030 2001-08-27  Jim Meyering  <meyering@lucent.com>
67031
67032         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
67033
67034         * lib/version-etc.c (N_): Remove definition.
67035         Revert most of last change.
67036         Instead, simply don't mark the `Copyright...' string for translation.
67037         Based on advice from Paul Eggert.
67038
67039         * lib/strtoxmax.c: Tweak comment.
67040
67041 2001-08-26  Jim Meyering  <meyering@lucent.com>
67042
67043         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
67044
67045         * m4/xstrtoimax.m4: New file.
67046         * m4/xstrtoumax.m4: Add comments explaining why we
67047         AC_REPLACE_FUNCS(strtol).
67048
67049 2001-08-26  Jim Meyering  <meyering@lucent.com>
67050
67051         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
67052         of copyright with `%s' so translators don't get an untranslated
67053         message in 2002.
67054         (COPYRIGHT_YEAR): Define.
67055         (version_etc): Use fprintf rather than fputs.
67056         Suggestion from Ulrich Drepper.
67057
67058         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
67059
67060         * lib/strtoll.c: New file, from GNU libc.
67061         * lib/xstrtoimax.c: New file.
67062
67063         * lib/xstrtol.h: Add xstrtoimax.
67064         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
67065         * lib/strtoimax.c: New file.  Likewise, but first define
67066         STRTOUXMAX_SIGNED.
67067
67068         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
67069         ...
67070         * lib/strtoxmax.c: ... then renamed to this.
67071
67072 2001-08-18  Paul Eggert  <eggert@twinsun.com>
67073
67074         * m4/inttypes.m4: Add AC_PREREQ(2.13).
67075         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
67076         (jm_AC_TYPE_INTMAX_T): New macro.
67077         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
67078
67079         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
67080
67081         * m4/longlong.m4: Renamed from ulonglong.m4.
67082         * m4/inttypes.m4: Renamed from inttypes_h.m4.
67083         * m4/uintmax_t.m4: Removed.
67084
67085 2001-08-13  Paul Eggert  <eggert@twinsun.com>
67086
67087         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
67088         Port to Solaris 8, where 'sed' requires a space after the 'r'
67089         command, and where sh dislikes "$/".  Clean up the spacing a bit.
67090         Redirect output to $tmp just once.
67091
67092 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
67093
67094         * lib/addext.c (<errno.h>): Include.
67095         (errno): Declare if not defined.
67096         (addext): Work correctly when pathconf returns -1 and leaves
67097         errno alone because there is no limit.  Also, work even if
67098         pathconf returns a value greater than SIZE_MAX.
67099
67100 2001-08-12  Jim Meyering  <meyering@lucent.com>
67101
67102         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
67103         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
67104         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
67105         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
67106         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
67107         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
67108         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
67109         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
67110         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
67111         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
67112         utime.m4, utimes.m4, xstrtoumax.m4:
67113         Quote the first argument in each use of AC_DEFUN.
67114
67115 2001-08-12  Jim Meyering  <meyering@lucent.com>
67116
67117         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
67118         Simply `return getcwd (NULL, 0);'.
67119         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
67120         Use 1300 as initial value for length, not PATH_MAX.
67121
67122         * lib/pathmax.h: Clean up cpp syntax.
67123
67124 2001-08-12  Jim Meyering  <meyering@lucent.com>
67125
67126         * lib/gettimeofday.c: New file.
67127         * lib/gtod.h: New file.
67128         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
67129
67130 2001-08-05  Jim Meyering  <meyering@lucent.com>
67131
67132         * m4/jm-macros.m4: Require autoconf-2.52.
67133
67134 2001-08-04  Jim Meyering  <meyering@lucent.com>
67135
67136         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
67137         stmt, to get in sync with glibc.
67138
67139 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67140
67141         The following changes are from gettext 0.10.39 as maintained by
67142         Bruno Haible.
67143
67144         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
67145         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
67146         with inverted sense.  All uses changed.
67147
67148         * lib/mbswidth.c: Don't include <limits.h>.
67149         Include <stdlib.h> and <string.h> unconditionally.
67150         (iswcntrl, mbsinit, ISCNTRL): New macros.
67151         (mbsnwidth): Use K&R style function declarations.
67152         Don't bother checking for MB_LEN_MAX == 1, since the compiler
67153         can optimize it when MB_CUR_MAX == 1.
67154         The width of control characters is zero, not 1.
67155
67156 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67157
67158         The following changes are from gettext 0.10.39 as maintained by
67159         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67160
67161         * m4/codeset.m4: Upgrade to serial AM1.
67162         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67163         all uses changed.  Quote first arg of AC_DEFUN.
67164         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67165
67166         * m4/iconv.m4: Upgrade to serial AM2.
67167         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67168         Add --with-libconv-prefix.
67169         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67170         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67171         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67172         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67173         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67174
67175         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67176         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67177         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67178         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67179         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67180         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67181         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67182         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67183         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67184
67185         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67186         string.h any more.
67187
67188         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67189         not the default value.
67190
67191         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67192         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67193         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67194         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67195         Also check for iswcntrl, used for wcwidth fallback.
67196         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67197         to Autoconf 2.13.
67198
67199 2001-08-03  Jim Meyering  <meyering@lucent.com>
67200
67201         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67202         as it was in the original.  Reported by Paul Eggert.
67203
67204 2001-07-16  Jim Meyering  <meyering@lucent.com>
67205
67206         * m4/gettimeofday.m4: New file.
67207         Prompted by a report from Bernhard Baehr.
67208
67209 2001-07-15  Jim Meyering  <meyering@lucent.com>
67210
67211         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67212         stuff. Now it's in ../Makefile.cfg.
67213
67214 2001-07-15  Jim Meyering  <meyering@lucent.com>
67215
67216         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67217         (BUILT_SOURCES): Add unlocked-io.h.
67218         (io_functions): Define.
67219         (unlocked-io.h): New rule.
67220         (DISTCLEANFILES): Add unlocked-io.h.
67221         (all-local): Depend on unlocked-io.h, to ensure it is created.
67222
67223         * lib/unlocked-io.hin: New file
67224
67225         * lib/regex.c: Update from glibc.
67226
67227 2001-07-05  Jim Meyering  <meyering@lucent.com>
67228
67229         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67230         recommendation.
67231         (libfetish_a_SOURCES): Put all .h files here instead.
67232         Remove a thus-exposed (better checks in automake) duplicate and
67233         two unnecessary .h files.
67234
67235 2001-07-04  Jim Meyering  <meyering@lucent.com>
67236
67237         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67238         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67239         distcheck failure.
67240
67241 2001-07-02  Jim Meyering  <meyering@lucent.com>
67242
67243         The following changes were prompted by suggestions from Bruno Haible.
67244
67245         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67246         is now generated.
67247         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67248         definition of EXTRA_DIST.
67249         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67250         ensure that the generated file is created/updated whenever the list
67251         of $(unlocked_functions) is changed.
67252         (jm-glibc-io.m4): New rule.
67253         (unlocked-io.h): New rule -- currently unused.
67254
67255 2001-06-24  Jim Meyering  <meyering@lucent.com>
67256
67257         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67258         unmatched right bracket, rather than kludging it with an extra,
67259         falsely-matching quote in a comment.  Patch by Akim Demaille.
67260
67261 2001-06-11  Jim Meyering  <meyering@lucent.com>
67262
67263         * lib/regex.c: Update from GNU libc.
67264
67265 2001-05-27  Jim Meyering  <meyering@lucent.com>
67266
67267         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67268         Check for ut_type in struct utmp.
67269
67270 2001-05-27  Jim Meyering  <meyering@lucent.com>
67271
67272         * lib/readutmp.h (UT_TYPE): Define.
67273
67274 2001-05-24  Jim Meyering  <meyering@lucent.com>
67275
67276         * lib/argmatch.c: Include "quote.h".
67277         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67278         quote function.  Reported by Göran Uddeborg.
67279
67280 2001-05-22  Jim Meyering  <meyering@lucent.com>
67281
67282         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67283         now that we use the package-supplied version unconditionally.
67284         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67285
67286 2001-05-21  Jim Meyering  <meyering@lucent.com>
67287
67288         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67289         shell syntax errors.
67290
67291 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67292
67293         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67294
67295 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67296
67297         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67298         Don't bother to check library strftime, since
67299         we'll be using our own my_strftime function anyway.
67300         Define my_strftime instead of strftime.
67301
67302 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67303
67304         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67305         which is not yet declared.
67306
67307 2001-05-15  Jim Meyering  <meyering@lucent.com>
67308
67309         * m4/regex.m4: Use proper quoting so brackets appear in the test
67310         program.
67311         Reported by, and with help from, Bruno Haible.
67312
67313 2001-05-13  Jim Meyering  <meyering@lucent.com>
67314
67315         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67316         undefined.
67317
67318 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67319
67320         dirname code cleanup.  base_name now behaves more compatibly
67321         with POSIX basename when given file names that have trailing
67322         slashes, and similarly for dir_name.  Add new primitives
67323         base_len and dir_len.  Put the directory-name-related decls
67324         into dirname.h.
67325
67326         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67327         * lib/backupfile.c (base_name): Likewise.
67328         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67329         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67330         * lib/makepath.c (strip_trailing_slashes): Likewise.
67331         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67332         ISSLASH): Likewise.
67333         * lib/rename.c (strip_trailing_slashes): Likewise.
67334         * lib/same.c (base_name): Likewise.
67335         * lib/stripslash.c (ISSLASH): Likewise.
67336
67337         * lib/addext.c: Include <dirname.h> after size_t is defined.
67338         * lib/backupfile.c: Likewise.
67339
67340         * lib/addext.c (addext): Use base_len to trim redundant
67341         trailing slashes instead of doing it ourselves.
67342         But do not trim the last slash if it is not redundant.
67343
67344         * lib/backupfile.c (find_backup_file_name,
67345         max_backup_version): Use base_len instead of rolling it ourselves.
67346         Handle the case of "" and (on DOS) "C:" correctly.
67347
67348         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67349         needed. Include <string.h>, <dirname.h>.
67350         (base_name): Allow file names ending in slashes, other than names
67351         that are all slashes.  In this case, return the basename followed
67352         by the slashes.  This is more general, and can be used in places
67353         where the original base_name purposely had an assertion failure.
67354         (base_len): New function.
67355
67356         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67357         Do not include <assert.h>; no longer needed.
67358         Include xalloc.h.
67359         (memrchr): Remove decl.
67360         (dir_name_r): Remove.
67361         (dir_len): Renamed from dirlen.  All callers changed.
67362         Rewrite in terms of base_name, for simplicity and consistency.
67363         (dir_name): Never return NULL.  All callers changed.
67364         Do not include <stdlib.h> in test program; no longer needed.
67365         return 0; is fine for test program.
67366
67367         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67368         New macros.
67369         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67370
67371         * lib/path-concat.c (path_concat): Use base_len to compute
67372         base length, not strlen; this means we cannot rely on memcpy
67373         to null-terminate.
67374
67375         * lib/same.c (STREQ): Remove.
67376         (same_name): Handle the case where the basename ends in trailing '/'.
67377
67378         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67379         a slash was stripped.  Do not strip the last slash after a
67380         file system prefix.
67381
67382 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67383
67384         * lib/Makefile.am (libfetish_a_SOURCES):
67385         Add strftime.c, since we now compile it on all hosts.
67386
67387         * lib/strftime.c (my_strftime):
67388         Define to nstrftime if emacs, but only if my_strftime is not defined.
67389         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67390         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67391         Add one more extra argument: a nanoseconds value.
67392         All uses changed.
67393         (ns): New macro.
67394         (my_strftime function): Add %N format.
67395         (emacs_strftimeu): Renamed from emacs_strftime,
67396         with extra ut argument.
67397
67398 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67399
67400         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67401
67402 2001-04-21  Jim Meyering  <meyering@lucent.com>
67403
67404         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67405         doesn't interfere.
67406
67407 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67408
67409         * m4/ftruncate.m4: Check for chsize.
67410         Link with ftruncate.o unconditionally if ftruncate is missing.
67411         This was required when cross-compiling to i586-mingw32msvc.
67412
67413 2001-04-08  Jim Meyering  <meyering@lucent.com>
67414
67415         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67416         recomputed; that's necessary when the offset spans a DST transition.
67417         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67418
67419 2001-04-02  Jim Meyering  <meyering@lucent.com>
67420
67421         * lib/regex.h, regex.c: Update from GNU libc.
67422
67423 2001-03-24  Jim Meyering  <meyering@lucent.com>
67424
67425         * m4/jm-macros.m4: Require autoconf-2.49d.
67426
67427 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67428
67429         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67430
67431 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67432
67433         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67434
67435 2001-03-17  Jim Meyering  <meyering@lucent.com>
67436
67437         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67438         now that the version in autoconf is equivalent.
67439         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67440
67441         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67442         Suggestion from Akim Demaille.
67443
67444         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67445         (jm_PREREQ_TEMPNAME): New function.
67446
67447 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67448
67449         * lib/tempname.c (uint64_t): Define to uintmax_t if
67450         not defined, and if UINT64_MAX is not defined.
67451         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67452         Reported by John David Anglin.
67453
67454 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67455
67456         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67457         resolve alias if codeset is empty.
67458         * lib/config.charset (BeOS): Use wildcard syntax.
67459
67460 2001-03-13  Jim Meyering  <meyering@lucent.com>
67461
67462         * lib/path-concat.c (path_concat)
67463         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67464         concatenating e.g., `C:' and `foo'.
67465         From Bruno Haible.
67466
67467 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67468
67469         * lib/localcharset.c (locale_charset): Don't use
67470         setlocale(LC_CTYPE,NULL). Don't return NULL.
67471         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67472
67473 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67474
67475         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67476         support for DOS/DJGPP.
67477
67478 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67479
67480         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67481         lacks mkstemp.  Compile our own tempname.c if we compile our own
67482         mkstemp.c, as mkstemp relies on tempname.
67483
67484 2001-03-01  Jim Meyering  <meyering@lucent.com>
67485
67486         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67487         AH_VERBATIM really does output its argument verbatim.
67488
67489 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67490
67491         * lib/Makefile.am (libfetish_a_SOURCES):
67492         Add dup-safer.c, fopen-safer.c.
67493         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67494
67495         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67496         * lib/unistd-safer.h: New files.
67497
67498 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67499
67500         The mkstemp replacement is taken from glibc 2.2.2, with some
67501         portability fixes for use outside glibc, as follows:
67502
67503         * lib/tempname.c (struct_stat64): New macro.
67504         (direxists, __gen_tempname): Use it.
67505         This avoids a portability problem with Solaris 8.
67506
67507         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67508         (<stddef.h>, <stdint.h>, <string.h>):
67509         Include only if STDC_HEADERS || _LIBC.
67510         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67511         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67512         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67513         (__set_errno): Define this macro if <errno.h> doesn't.
67514         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67515         Define these macros if <stdio.h> doesn't.
67516         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67517         Define these macros if <sys/stat.h>
67518         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67519         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67520         __xstat64): Define if not _LIBC.
67521         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67522         (__gen_tempname): Invoke gettimeofday only if
67523         HAVE_GETTIMEOFDAY || _LIBC;
67524         otherwise, fall back on plain "time".
67525         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67526
67527         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67528
67529         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67530
67531 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67532
67533         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67534
67535 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67536
67537         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67538         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67539         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67540         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67541
67542 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67543
67544         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67545         Remove workaround macros for hosts that have mbrtowc but not
67546         mbstate_t, as we now insist on proper declarations for both
67547         before using mbrtowc.
67548
67549 2001-02-17  Jim Meyering  <meyering@lucent.com>
67550
67551         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67552         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67553         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67554         UnixWare 7.1.1.
67555
67556         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67557         rather than AC_CACHE_VAL.
67558
67559 2001-02-17  Jim Meyering  <meyering@lucent.com>
67560
67561         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67562         around included file name.
67563
67564         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67565
67566         * lib/strftime.c: Update from GNU libc (the only changes were to
67567         comments).
67568
67569 2001-02-17  Jim Meyering  <meyering@lucent.com>
67570
67571         * lib/regex.c: Update from libc.
67572
67573 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67574
67575         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67576         clash.
67577
67578 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67579
67580         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67581         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67582         Reported by Mark Hounschell via Paul Eggert.
67583
67584 2001-02-07  Jim Meyering  <meyering@lucent.com>
67585
67586         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67587
67588 2001-02-05  Jim Meyering  <meyering@lucent.com>
67589
67590         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67591         it includes the patch required for `large file' support with at least
67592         HP-UX's 10.20 /bin/cc.
67593
67594 2001-02-03  Jim Meyering  <meyering@lucent.com>
67595
67596         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67597         AS_IF, now that it works once again (mysteriously).
67598         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67599
67600 2001-01-30  Jim Meyering  <meyering@lucent.com>
67601
67602         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67603         * m4/chown.m4: Rename conftestchown to conftest.chown.
67604         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67605         s/conftestdir2/conftest.d2/.
67606         * m4/utimes.m4: s/conftestdata/conftest.data/
67607         Inspired by Pavel Roskin's change in autoconf.
67608
67609 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67610
67611         * lib/config.charset: Update for FreeBSD 4.2.
67612
67613 2001-01-27  Jim Meyering  <meyering@lucent.com>
67614
67615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67616         a use of AS_IF.
67617         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67618
67619 2001-01-26  Jim Meyering  <meyering@lucent.com>
67620
67621         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67622         quotearg.c includes it.
67623
67624 2001-01-26  Jim Meyering  <meyering@lucent.com>
67625
67626         * lib/quotearg.c: Include stddef.h.
67627         * lib/quote.c: Include stddef.h.
67628         Reported by Axel Kittenberger.
67629
67630         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67631         line in double quotes so that it evokes a better diagnostic.
67632         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67633         Reported by Axel Kittenberger.
67634
67635 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67636
67637         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67638         as if it was a `charset'.
67639
67640 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67641
67642         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67643         has const.
67644
67645 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67646
67647         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67648         to avoid a warning.  Add back 'const' to inptr.
67649
67650 2001-01-20  Jim Meyering  <meyering@lucent.com>
67651
67652         Be sure that headers are checked before used in code compiled
67653         for the type checks.
67654         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67655         In place of that, invoke jm_CHECK_ALL_TYPES.
67656         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67657         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67658         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67659         The check for ssize_t was mistakenly run before the test for unistd.h.
67660
67661         The configure-time check for stdbool.h was missing.
67662         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67663         (jm_PREREQ_HASH): New function.
67664
67665 2001-01-17  Jim Meyering  <meyering@lucent.com>
67666
67667         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67668         for autoconf-2.49c.
67669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67670
67671 2001-01-16  Jim Meyering  <meyering@lucent.com>
67672
67673         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67674         From Bruno Haible.
67675
67676 2001-01-14  Jim Meyering  <meyering@lucent.com>
67677
67678         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67679         foo and bar.  Create conftestdir/ in the script, not in the C code.
67680         Remove directories in the script, not in the C code.
67681         Remove conftestdir{,2} before trying to create the directory.
67682         Make the entire configure script fail if the mkdir fails.
67683
67684 2001-01-14  Jim Meyering  <meyering@lucent.com>
67685
67686         * lib/rename.c: New file.  From Volker Borchert.
67687         Include stdlib.h, string.h or strings.h, and xalloc.h.
67688         Use strip_trailing_slashes rather than open-coding it.
67689
67690 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67691
67692         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67693
67694 2001-01-03  Jim Meyering  <meyering@lucent.com>
67695
67696         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67697         of local `inptr' to avoid warning with some system declarations of
67698         iconv.
67699
67700 2001-01-02  Volker Borchert  <bt@teknon.de>
67701
67702         * m4/rename.m4: New file.
67703         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67704
67705 2001-01-01  Jim Meyering  <meyering@lucent.com>
67706
67707         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67708         even on systems with utmpx.h.  It's necessary for the declaration of
67709         utmp's ut_user member.  Reported by Andreas Jaeger.
67710
67711         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67712         available. They are required for the declarations of getgrgid and
67713         getpwuid resp.
67714         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67715         Reported by Andreas Jaeger.
67716
67717 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67718
67719         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67720         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67721         so `make install' also works in VPATH builds.
67722
67723 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67724
67725         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67726         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67727         can be used in subdirectories.
67728
67729 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67730
67731         * lib/modechange.c: Do not assume that mode_t uses the
67732         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67733         the other-execute bit of FOO even if S_IXOTH != 1.
67734
67735         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67736         WOTH, XOTH, ALLM): New macros.
67737         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67738          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67739         Use them.
67740         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67741         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67742         (mode_compile):
67743         No need to use uintmax_t; unsigned long is long enough.
67744         Don't bother to get suffix since we don't use it.
67745
67746 2000-12-26  Jim Meyering  <meyering@lucent.com>
67747
67748         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67749         better with autoheader.
67750
67751 2000-12-24  Jim Meyering  <meyering@lucent.com>
67752
67753         * lib/hash.c (is_prime): Return explicit boolean values.
67754         (hash_get_first): Return NULL to appease Irix5.6's 89.
67755         Reported by Nelson Beebe.
67756
67757 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67758
67759         * lib/localcharset.c (locale_charset): Add support for Win32.
67760
67761 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67762
67763         * lib/physmem.h, lib/physmem.c: New files.
67764
67765         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67766         (noinst_HEADERS): Add physmem.h.
67767
67768         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67769         't' for compatibility with Solaris 8 sort.
67770
67771 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67772
67773         * lib/config.charset: Add support for BeOS.
67774
67775 2000-12-17  Jim Meyering  <meyering@lucent.com>
67776
67777         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67778         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67779
67780 2000-12-16  Jim Meyering  <meyering@lucent.com>
67781
67782         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67783         N and M) would have treated it like `chown N:N FILE'.
67784
67785         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67786
67787 2000-12-16  Jim Meyering  <meyering@lucent.com>
67788
67789         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67790         SHELLS_FILE to a file name that's useful on djgpp systems.
67791         Include stdlib.h.
67792         (ADDITIONAL_DEFAULT_SHELLS): Define.
67793         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67794         Based mostly on a patch from Prashant TR.
67795
67796 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67797
67798         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67799         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67800         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67801
67802 2000-12-08  Andreas Schwab  <schwab@suse.de>
67803
67804         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67805         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67806
67807 2000-12-07  Jim Meyering  <meyering@lucent.com>
67808
67809         * lib/stripslash.c (ISSLASH): Define.
67810         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67811         `/'.
67812         From Prashant TR.
67813
67814         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67815         (dir_name_r): Declare this function as static.
67816         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67817         manifest itself on a name containing a mix of slashes and
67818         backslashes.
67819         Make this function work with names starting with a DOS-style
67820         drive letter and colon prefix.
67821         (dir_name): Append `.' if necessary.
67822         Based mostly on patches from Prashant TR and Eli Zaretskii.
67823
67824         * lib/dirname.h (dir_name_r): Remove prototype.
67825
67826 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67827
67828         * m4/off_t-format.m4: Remove this file.
67829         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67830
67831 2000-12-06  Jim Meyering  <meyering@lucent.com>
67832
67833         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67834         replacement strtoull, we may well need the replacement strtoul, too.
67835         Check for declarations of strtoul and strtoull.
67836         Check for strtol.  Mainly as a cue to cause automake to include
67837         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67838         Check for limits.h -- strtol.c needs it.
67839
67840 2000-12-05  Jim Meyering  <meyering@lucent.com>
67841
67842         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67843
67844 2000-12-04  Jim Meyering  <meyering@lucent.com>
67845
67846         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67847         Also include memory.h, stdlib.h, unistd.h if appropriate.
67848         Reported by Andreas Jaeger (conflicting declaration of malloc).
67849
67850 2000-12-02  Jim Meyering  <meyering@lucent.com>
67851
67852         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67853         * m4/jm-macros.m4 (jm_MACROS): require it.
67854
67855 2000-12-02  Jim Meyering  <meyering@lucent.com>
67856
67857         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67858
67859 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67860
67861         * lib/memrchr.c: Include <config.h> before any system include file.
67862
67863 2000-11-30  Jim Meyering  <meyering@lucent.com>
67864
67865         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67866
67867 2000-11-30  Jim Meyering  <meyering@lucent.com>
67868
67869         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67870
67871 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67872
67873         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67874
67875 2000-11-26  Jim Meyering  <meyering@lucent.com>
67876
67877         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67878
67879 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67880
67881         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67882         size of (size_t) -1; it's not portable.
67883
67884 2000-11-17  Jim Meyering  <meyering@lucent.com>
67885
67886         * lib/strstr.c: Update from GNU libc.
67887
67888 2000-11-17  Akim Demaille  <akim@epita.fr>
67889
67890         * lib/obstack.h: Formatting changes.
67891         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67892         prevent type checking.
67893         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67894         cast the value to (void *): assigning a `foo *' to a `void *'
67895         variable is valid.
67896         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67897
67898 2000-11-16  Jim Meyering  <meyering@lucent.com>
67899
67900         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67901
67902 2000-11-11  Jim Meyering  <meyering@lucent.com>
67903
67904         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67905
67906 2000-11-10  Jim Meyering  <meyering@lucent.com>
67907
67908         * lib/obstack.h: Update from GNU libc.
67909         * lib/obstack.c: Likewise.
67910
67911 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67912
67913         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67914
67915 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67916
67917         * lib/getusershell.c (setusershell): Use rewind rather than
67918         fseek/fseeko, to avoid configuration hassles with fseeko.
67919         Don't bother opening SHELLS_FILE if shellstream is NULL;
67920         it's not necessary.
67921
67922 2000-11-05  Jim Meyering  <meyering@lucent.com>
67923
67924         * lib/makepath.h (make_dir): Declare.
67925         * lib/makepath.c (make_dir): Remove `static' attribute.
67926         Tweak a comment.
67927
67928 2000-11-04  Jim Meyering  <meyering@lucent.com>
67929
67930         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67931
67932 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67933
67934         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67935         last one in a bucket, advance to the next bucket.
67936
67937 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67938
67939         * lib/fnmatch.c: Do not comment out all the code if we are using
67940         the GNU C library, because in some cases we are replacing buggy
67941         code in the GNU C library itself.
67942
67943 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67944
67945         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67946         (regex_compile): Catch bogus \(\1\).
67947
67948 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67949
67950         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67951         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67952         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67953
67954 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67955
67956         * lib/error.h, getline.h, modechange.h:
67957         Remove "2000" from Copyright line, as the file hasn't been
67958         changed this year other than in the copyright notice.
67959
67960         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67961         was changed this year.
67962
67963 2000-10-29  Jim Meyering  <meyering@lucent.com>
67964
67965         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67966         renaming.
67967         * m4/ls-mntd-fs.m4: Likewise
67968
67969 2000-10-29  Jim Meyering  <meyering@lucent.com>
67970
67971         * lib/xstat.in: Fix grammar in comment.
67972
67973 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67974
67975         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67976         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67977         doesn't define __restrict_arr.
67978
67979 2000-10-28  Jim Meyering  <meyering@lucent.com>
67980
67981         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67982         (jm_PREREQ_MEMCHR): New function.
67983
67984 2000-10-28  Jim Meyering  <meyering@lucent.com>
67985
67986         * lib/memchr.c: Update from libc.
67987         Adjust for portability:
67988         [HAVE_STDLIB_H]: Include stdlib.h.
67989         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67990         Undef __memchr, too.
67991         [!weak_alias]: Define __memchr to memchr.
67992
67993         * lib/regex.c: Update from libc.
67994         * lib/regex.h: Likewise.
67995         * lib/getopt1.c: Likewise.
67996         * lib/memcmp.c: Likewise.
67997
67998         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
67999         Avoid using fseek, when possible -- it's broken by design.
68000         Patch by Ulrich Drepper.
68001
68002 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
68003
68004         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
68005         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
68006         Giving in to popular pressure to shut up the compiler with casts.
68007
68008 2000-10-26  Jim Meyering  <meyering@lucent.com>
68009
68010         * lib/strftime.c: Update from libc.
68011
68012 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
68013
68014         * regex.c: More `unsigned char' -> `re_char' changes.
68015         Also change several `int' into `re_wchar_t'.
68016         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
68017         (PUSH_FAILURE_POINTER): Don't cast any more.
68018         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
68019         We want GCC to complain, since this piece of code makes
68020         re_match non-reentrant, which *should* be fixed.
68021         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
68022         (EXTEND_BUFFER): Use RETALLOC.
68023         (SET_LIST_BIT): Don't cast.
68024         (re_wchar_t): New type.
68025         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
68026         that those two functions will always properly return.
68027         (IMMEDIATE_QUIT_CHECK): Cast to void.
68028         (analyse_first): Use recursion rather than an explicit stack.
68029         (re_compile_fastmap): Can't fail anymore.
68030         (re_search_2): Don't check re_compile_fastmap for failure.
68031         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
68032         Now also sets the new value (passed in a new argument).
68033         (re_match_2_internal): Use it.
68034         Also, use a new var `reg' of type size_t when looping through regs
68035         rather than reuse the inappropriate `mcnt'.
68036
68037 2000-10-25  Jim Meyering  <meyering@lucent.com>
68038
68039         * lib/obstack.c: Update from libc.
68040
68041 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
68042
68043         * regex.c (regex_compile): Change the way of handling a range from
68044         a char less than 256 to a char not less than 256.
68045
68046 2000-10-24  Andrew Innes  <andrewi@gnu.org>
68047
68048         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
68049         NT-Emacs only.
68050         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
68051         so that re_search functions only quit when callers expect them to.
68052
68053 2000-10-23  Jim Meyering  <meyering@lucent.com>
68054
68055         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
68056         wrong.  That set_locale call must not have any side effects.
68057         From Paul Eggert.
68058
68059 2000-10-22  Jim Meyering  <meyering@lucent.com>
68060
68061         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
68062         [CYCLIC]: Remove now-unused definition.
68063
68064         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
68065         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
68066         Suggestion from Ulrich Drepper.
68067
68068 2000-10-21  Jim Meyering  <meyering@lucent.com>
68069
68070         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
68071         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
68072         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
68073
68074 2000-10-21  Jim Meyering  <meyering@lucent.com>
68075
68076         * lib/dirname.c (memrchr): Declare if necessary.
68077         (dir_name): Remove the restriction that there be no
68078         trailing slashes.  Now, this code skips past them, effectively
68079         ignoring them.
68080         [TEST_DIRNAME] (main): New unit tests.
68081
68082         * lib/memrchr.c: New file from GNU libc.
68083         Undef __memrchr, too.
68084         [!weak_alias]: Define __memrchr to memrchr.
68085         Guard weak_alias use with `#ifdef weak_alias'.
68086
68087 2000-10-21  Jim Meyering  <meyering@lucent.com>
68088
68089         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
68090         (dir_name): Use dir_name_r.
68091         * lib/dirname.h (dir_name_r): Declare it.
68092
68093 2000-10-17  Jim Meyering  <meyering@lucent.com>
68094
68095         * lib/quote.h (PARAMS): Define and use.
68096         Reported by Akim Demaille.
68097
68098         * lib/getopt.c: Update from libc.
68099
68100 2000-10-16  Jim Meyering  <meyering@lucent.com>
68101
68102         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
68103         setlocale.
68104         From Jan Fedak.
68105
68106 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
68107
68108         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
68109
68110 2000-09-25  Jim Meyering  <meyering@lucent.com>
68111
68112         * lib/md5.h (rol): Define (from GnuPG).
68113
68114         * lib/sha.c: Give credit (GnuPG) where due.
68115         (M): Use rol rather than open-coding it.
68116         Add a FIXME comment.
68117
68118 2000-09-21  Jim Meyering  <meyering@lucent.com>
68119
68120         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
68121         Reported by Michael Stone.
68122
68123 2000-09-20  Jim Meyering  <meyering@lucent.com>
68124
68125         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
68126         (noinst_HEADERS): Add sha.h.
68127         Based on code from Scott G. Miller and from GnuPG.
68128
68129 2000-09-18  Jim Meyering  <meyering@lucent.com>
68130
68131         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
68132         LIBS. Otherwise, everyone ends up linking with -lelf for some
68133         configurations.
68134         Reported by Mike Stone.
68135
68136 2000-09-15  Jim Meyering  <meyering@lucent.com>
68137
68138         * lib/regex.c: Update from libc.
68139
68140 2000-09-10  Jim Meyering  <meyering@lucent.com>
68141
68142         * lib/getopt.c (_getopt_internal): Update from glibc.
68143
68144 2000-09-09  Jim Meyering  <meyering@lucent.com>
68145
68146         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
68147         think it should be used as a general replacement for isascii.
68148         * lib/fnmatch.c: Likewise.
68149         * lib/mbswidth.c: Likewise
68150         * lib/regex.c: Likewise.
68151
68152         Don't use atoi.
68153         * lib/userspec.c: Include sys/param.h and limits.h.
68154         Include xstrtol.h.
68155         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68156         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68157         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68158         UID, GID.  Check range.
68159
68160 2000-09-06  Jim Meyering  <meyering@lucent.com>
68161
68162         * lib/getopt.c (_getopt_internal): Update from glibc.
68163
68164 2000-08-30  Jim Meyering  <meyering@lucent.com>
68165
68166         * lib/strftime.c: Merge in changes from GNU libc.
68167
68168 2000-08-26  Jim Meyering  <meyering@lucent.com>
68169
68170         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68171         * m4/fpending.m4: New file.
68172
68173 2000-08-26  Jim Meyering  <meyering@lucent.com>
68174
68175         * lib/closeout.c: Include "__fpending.h".
68176         (close_stdout_status): Return right away if there's nothing to flush.
68177
68178         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68179         * lib/__fpending.c: New file.
68180         * lib/__fpending.h: New file.
68181
68182 2000-08-20  Jim Meyering  <meyering@lucent.com>
68183
68184         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68185         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68186         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68187
68188 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68189
68190         Improve fileutils installation on systems where running
68191         programs (like install) can't be unlinked.
68192         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68193         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68194
68195 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68196
68197         Standardize on "memory exhausted" instead of "Memory exhausted"
68198         or "virtual memory exhausted".
68199         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68200         "virtual memory exhausted".
68201         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68202         our own message.
68203         * lib/userspec.c (parse_user_spec): Likewise.
68204         * lib/bumpalloc.h: comment fix
68205         * lib/same.c, userspec.c: Include xalloc.h.
68206
68207         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68208         not char *const and pointing to a constant array.
68209         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68210         (xrealloc): Comment fix.
68211
68212         * lib/userspec.c (parse_user_spec):
68213         Don't translate a message until just before returning,
68214         to avoid unnecessary translation.
68215
68216 2000-08-07  Jim Meyering  <meyering@lucent.com>
68217
68218         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68219         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68220         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68221         getgroups.c, gethostname.c, getopt.h, group-member.c,
68222         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68223         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68224         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68225         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68226         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68227         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68228         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68229         yesno.c: Back out Copyright date changes for each file with no change
68230         this year.  This eases coordination with other programs using the same
68231         source code modules.  From Paul Eggert.
68232
68233 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68234
68235         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68236         not char, for compatibility with glibc 2.1.3 strftime.c.
68237
68238 2000-08-03  Greg McGary  <greg@mcgary.org>
68239
68240         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68241         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68242         (EXTEND_BUFFER): Use them.
68243
68244 2000-08-01  Jim Meyering  <meyering@lucent.com>
68245
68246         * lib/dirname.c (ISSLASH): Define.
68247         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68248         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68249         both `\' and `/' may be use as path separators.
68250         Based on a patch from Prashant TR.
68251
68252 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68253
68254         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68255         slot vector a constant, since it might get modified.
68256
68257 2000-07-31  Jim Meyering  <meyering@lucent.com>
68258
68259         * lib/xmalloc.c: Use `virtual memory exhausted', not
68260         `Memory exhausted'.
68261         * lib/obstack.c (print_and_abort): Likewise.
68262
68263 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68264
68265         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68266         buffer, so that the caller can always quote one small
68267         component of a "memory exhausted" message in slot 0.
68268         From a suggestion by Jim Meyering.
68269
68270 2000-07-30  Jim Meyering  <meyering@lucent.com>
68271
68272         * lib/makepath.c (make_path): Quote the other instance, too.
68273
68274         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68275         (STATIC_BUF_SIZE): Define.
68276         (quotearg_n_options): Use only statically allocated storage when
68277         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68278         than STATIC_BUF_SIZE.
68279
68280 2000-07-29  Jim Meyering  <meyering@lucent.com>
68281
68282         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68283         * lib/dirname.c (dir_name): Likewise.
68284
68285         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68286         `/'.
68287
68288         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68289         (dir_name): Assert that there are no trailing slashes.
68290
68291 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68292
68293         * lib/mbswidth.h (mbswidth): Add a flags argument.
68294         (mbswidth): New declaration.
68295         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68296         * lib/mbswidth.c (mbswidth): Add a flags argument.
68297         (mbsnwidth): New function.
68298
68299 2000-07-24  Jim Meyering  <meyering@lucent.com>
68300
68301         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68302
68303 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68304
68305         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68306
68307 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68308
68309         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68310         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68311         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68312         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68313         invoke multibyte primitives.
68314
68315 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68316
68317         * lib/quotearg.c:
68318         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68319         so that mbstate_t is always defined.
68320
68321         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68322         be 1 in at least one GCC installation, and this configuration
68323         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68324         performance on hosts that have mbrtowc but have only unibyte
68325         locales, but I assume these hosts are rare.
68326
68327 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68328
68329         * lib/mbswidth.c (_XOPEN_SOURCE):
68330         Don't define; this causes problems on Solaris 7.
68331         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68332
68333 2000-07-23  Jim Meyering  <meyering@lucent.com>
68334
68335         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68336         too: getgrgid, getpwuid, getuid.
68337
68338 2000-07-23  Jim Meyering  <meyering@lucent.com>
68339
68340         * lib/basename.c (base_name): Add an assertion.
68341
68342 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68343
68344         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68345         shadow its mbsinit function.
68346
68347 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68348
68349         * lib/mbswidth.h: New file.
68350         * lib/mbswidth.c: New file.
68351         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68352         (noinst_HEADERS): Add mbswidth.h.
68353
68354 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68355
68356         * lib/config.charset: Add support for FreeBSD. Improve support for
68357         HP-UX and IRIX 6.
68358
68359 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68360
68361         * m4/mbswidth.m4: New file.
68362         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68363
68364 2000-07-15  Jim Meyering  <meyering@lucent.com>
68365
68366         * lib/makepath.c: Include quote.h.
68367         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68368         corresponding argument in a `quote (...)' call.
68369         Give better diagnostics.
68370
68371         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68372         (noinst_HEADERS): Add quote.h.
68373
68374         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68375         from tar's src/misc.c.
68376         * lib/quote.h: New file.  Prototypes for same.
68377
68378 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68379
68380         From a suggestion by Bruno Haible.
68381         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68382         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68383         to decide whether to define the BeOS workaround macro;
68384         this adjusts to the change to AC_MBSTATE_T.
68385
68386 2000-07-14  Jim Meyering  <meyering@lucent.com>
68387
68388         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68389         jm_AC_TYPE_UINTMAX_T.
68390
68391 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68392
68393         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68394
68395         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68396         quotearg_buffer_restyled): Add support for
68397         clocale_quoting_style.  Undo previous change to
68398         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68399         and "{RIGHT QUOTATION MARK}" msgids.
68400
68401 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68402
68403         From a suggestion by Bruno Haible.
68404         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68405         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68406         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68407         and mbstate_t, to a single-part test that simply defines mbstate_t.
68408         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68409         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68410
68411 2000-07-10  Jim Meyering  <meyering@lucent.com>
68412
68413         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68414
68415         * m4/gnu-source.m4: Output to confdefs.h directly.
68416         Suggestion from Akim Demaille.
68417
68418 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68419
68420         The old behavior of quoting `like this' doesn't look good with
68421         newer, ISO-style fonts.  See:
68422         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68423
68424         Instead, quote "like this" by default.  Let the translator
68425         tailor the locale-specific quoting behavior by providing
68426         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68427
68428         * lib/quotearg.c (N_): New macro.
68429         (gettext_default): New function.
68430         (quotearg_buffer_restyled): Use
68431         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68432         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68433
68434 2000-07-09  Jim Meyering  <meyering@lucent.com>
68435
68436         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68437         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68438
68439         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68440         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68441
68442 2000-07-09  Jim Meyering  <meyering@lucent.com>
68443
68444         * lib/Most files: Update copyright dates to include 2000.
68445
68446 2000-07-08  Jim Meyering  <meyering@lucent.com>
68447
68448         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68449         if not defined.
68450         (xgethostname): Remove now-unnecessary #ifdef.
68451         Move declaration of `err' into loop where it's used.
68452
68453 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68454         and Bruno Haible  <haible@clisp.cons.org>
68455
68456         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68457         only if the test for an object-type mbstate_t fails.  This
68458         prevents us from mistakenly reporting that mbstate_t is a
68459         system object type after we "#define mbstate_t int" to work
68460         around its lack.
68461
68462 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68463         and Bruno Haible  <haible@clisp.cons.org>
68464
68465         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68466
68467 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68468
68469         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68470         to strerror_r.
68471         Include <ctype.h> for use of isalpha.
68472
68473 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68474
68475         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68476         by allocating a larger buffer. Test the gethostname return value for
68477         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68478         returns an error and ENAMETOOLONG isn't defined.
68479
68480 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68481
68482         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68483         dimension.
68484
68485 2000-07-04  Jim Meyering  <meyering@lucent.com>
68486
68487         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68488         of the deprecated AC_CHECKING.
68489
68490 2000-07-04  Jim Meyering  <meyering@lucent.com>
68491
68492         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68493         Reported by Bruno Haible.
68494
68495 2000-07-04  Jim Meyering  <meyering@lucent.com>
68496
68497         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68498         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68499         lacks mbrtowc.
68500
68501 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68502
68503         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68504         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68505
68506 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68507         and Bruno Haible  <haible@clisp.cons.org>
68508
68509         * lib/quotearg.c (mbrtowc):
68510         Assign to *pwc, and return 1 only if result is nonzero.
68511         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68512
68513 2000-07-03  Jim Meyering  <meyering@lucent.com>
68514
68515         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68516
68517 2000-07-03  Jim Meyering  <meyering@lucent.com>
68518
68519         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68520         This is necessary to get a definition of e.g., UTMP_FILE on
68521         HP-UX 10.20.
68522         From Bob Proulx.
68523
68524 2000-07-02  Jim Meyering  <meyering@lucent.com>
68525
68526         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68527
68528         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68529         AC_LIBOBJ(function_name).
68530         * m4/chown.m4: Likewise.
68531         * m4/fnmatch.m4: Likewise.
68532         * m4/ftruncate.m4: Likewise.
68533         * m4/getgroups.m4: Likewise.
68534         * m4/getline.m4: Likewise.
68535         * m4/group-member.m4: Likewise.
68536         * m4/jm-macros.m4: Likewise.
68537         * m4/lstat.m4: Likewise.
68538         * m4/malloc.m4: Likewise.
68539         * m4/memcmp.m4: Likewise.
68540         * m4/nanosleep.m4: Likewise.
68541         * m4/putenv.m4: Likewise.
68542         * m4/realloc.m4: Likewise.
68543         * m4/regex.m4: Likewise.
68544         * m4/stat.m4: Likewise.
68545         * m4/strftime.m4: Likewise.
68546
68547 2000-07-02  Jim Meyering  <meyering@lucent.com>
68548
68549         * lib/quotearg.c (mbstate_t): Don't define here.
68550
68551 2000-07-02  Jim Meyering  <meyering@lucent.com>
68552
68553         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68554
68555 2000-07-01  Jim Meyering  <meyering@lucent.com>
68556
68557         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68558
68559 2000-07-01  Jim Meyering  <meyering@lucent.com>
68560
68561         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68562         problem.
68563
68564 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68565
68566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68567         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68568
68569 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68570
68571         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68572         per change in ../m4/ls-mntd-fs.m4.
68573         (read_filesystem_list): Ignore symbolic links.
68574
68575 2000-06-29  Jim Meyering  <meyering@lucent.com>
68576
68577         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68578         for declaration of strcmp.
68579
68580         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68581
68582         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68583         Avoid warning by casting result to `char *' to remove `const'.
68584
68585 2000-06-28  Jim Meyering  <meyering@lucent.com>
68586
68587         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68588         included by quotearg.c, for which we perform this test.  From
68589         Bruno Haible.
68590
68591 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68592
68593         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68594         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68595         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68596
68597 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68598
68599         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68600
68601 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68602
68603         savedir now sets errno on failure and invokes xmalloc to get memory.
68604         Fix a couple of other minor bugs while we're at it.
68605
68606         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68607         (NAMLEN): Remove macro.
68608         (malloc, realloc): Remove decls.
68609         (stpcpy): Likewise.
68610         ("xalloc.h"): Include.
68611         (NAME_SIZE_DEFAULT): New macro.
68612         (savedir): Use xmalloc / xrealloc to allocate memory.
68613         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68614         Skip "" directory entries.
68615         Use strlen to calculate directory entry length, since the old method
68616         is rarely used these days and isn't worth supporting.
68617         Don't use a pointer after freeing it.
68618         Check for integer overflow when calculating allocation size.
68619         Use memcpy to copy entries, instead of stpcpy.
68620         Set errno properly when returning NULL.
68621         Check for readdir error.
68622
68623 2000-06-26  Jim Meyering  <meyering@lucent.com>
68624
68625         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68626
68627 2000-06-25  Jim Meyering  <meyering@lucent.com>
68628
68629         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68630         Linux header bug when _XOPEN_SOURCE is defined to 500.
68631
68632 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68633
68634         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68635         deficiency.
68636
68637 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68638
68639         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68640         Include xalloc.h.
68641         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68642
68643 2000-06-24  Jim Meyering  <meyering@lucent.com>
68644
68645         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68646         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68647         for which strerror does return char*, but which lacks a conveniently
68648         accessible declaration of the function.  If the compile-test says
68649         strerror_r doesn't work, then resort to a `run'-test that works on
68650         BeOS and segfaults on DEC Unix.
68651
68652 2000-06-24  Jim Meyering  <meyering@lucent.com>
68653
68654         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68655
68656 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68657
68658         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68659         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68660
68661 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68662
68663         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68664         (mbrtowc, mbstate_t): Define substitutes if
68665         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68666         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68667         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68668
68669 2000-06-23  Jim Meyering  <meyering@lucent.com>
68670
68671         * m4/afs.m4: Add missing AC_MSG_RESULT.
68672         Reported by Bruno Haible.
68673
68674         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68675         Suggestion from Bruno Haible.
68676
68677 2000-06-23  Jim Meyering  <meyering@lucent.com>
68678
68679         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68680
68681 2000-06-21  Jim Meyering  <meyering@lucent.com>
68682
68683         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68684
68685 2000-06-21  Jim Meyering  <meyering@lucent.com>
68686
68687         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68688         (noinst_HEADERS): Add getstr.h.
68689
68690         * lib/getline.c (getstr): Move into a separate file.
68691         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68692         the following changes: new parameter, delim2; both delim[12]
68693         parameters have type `int', not `char'.  The latter would lose
68694         with 8-bit delimiters.
68695         * lib/getstr.h: New file.
68696
68697 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68698
68699         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68700         than 1024, return a memory chunk of least possible size, instead
68701         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68702         Use free/xmalloc instead of xrealloc to avoid copying for very long
68703         paths.
68704
68705 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68706
68707         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68708         the empty string.
68709
68710 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68711
68712         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68713         address, not strdup.  Include <stdlib.h> and don't declare free().
68714
68715 2000-06-19  Jim Meyering  <meyering@lucent.com>
68716
68717         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68718
68719 2000-06-18  Jim Meyering  <meyering@lucent.com>
68720
68721         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68722
68723         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68724         `checking whether...' message to be consistent with that of the
68725         lstat test.
68726
68727 2000-06-18  Jim Meyering  <meyering@lucent.com>
68728
68729         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68730         Besides, these days every porting target provides a mkdir function.
68731
68732         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68733         needed. (this snippet comes from src/system.h).
68734
68735 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68736
68737         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68738
68739 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68740
68741         * lib/human.c (adjust_value): New function.
68742         (human_readable_inexact): Apply rounding style even when
68743         printing approximate values.
68744
68745 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68746
68747         * lib/human.c (human_readable_inexact): Allow an input block
68748         size that is not a multiple of the output block size, and vice versa.
68749         Reported by Piergiorgio Sartor.
68750
68751 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68752
68753         * lib/getdate.y (get_date): Apply relative times after time
68754         zone indicator, not before.  Reported by Todd A. Jacobs.
68755
68756 2000-06-13  Jim Meyering  <meyering@lucent.com>
68757
68758         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68759
68760         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68761
68762 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68763
68764         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68765
68766 2000-06-12  Jim Meyering  <meyering@lucent.com>
68767
68768         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68769         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68770         optional argument.
68771         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68772         the optional argument, `lib'.
68773
68774 2000-06-08  Jim Meyering  <meyering@lucent.com>
68775
68776         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68777
68778 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68779
68780         Rewrite largefile configuration so that we don't need to run
68781         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68782         AC_CANONICAL_HOST in configure.in -- jmm]
68783
68784         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68785         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68786         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68787         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68788         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68789         All uses changed.
68790         Instead of inspecting the output of getconf, try to compile the
68791         test program without and with the macro definition.
68792         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68793         for getconf.  Instead, check for the needed flags by compiling
68794         test programs.
68795
68796 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68797
68798         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68799
68800 2000-06-04  Jim Meyering  <meyering@lucent.com>
68801
68802         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68803         SunOS 4.1.4 for which gid_t is an unsigned type.
68804
68805 2000-06-03  Jim Meyering  <meyering@lucent.com>
68806
68807         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68808         now that autoconf requires that.
68809
68810         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68811         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68812         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68813
68814 2000-06-03  Jim Meyering  <meyering@lucent.com>
68815
68816         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68817
68818 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68819
68820         * m4/glibc21.m4: New file.
68821         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68822
68823 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68824
68825         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68826         newer, don't install charset.alias.
68827         * lib/config.charset: Change the Linux/glibc rules so they become empty
68828         on glibc-2.1 or newer.
68829
68830 2000-06-02  Jim Meyering  <meyering@lucent.com>
68831
68832         * lib/mountlist.c: Back out last change.  Instead, do this...
68833         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68834         me_dummy member using the same `ignore'-testing code.
68835         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68836         fs_type strings.
68837         From Mark D. Roth.
68838
68839 2000-05-29  Jim Meyering  <meyering@lucent.com>
68840
68841         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68842         mounts with the `ignore' attribute.  Based on a patch from
68843         Mark D. Roth.
68844
68845 2000-05-28  Jim Meyering  <meyering@lucent.com>
68846
68847         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68848         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68849         * m4/stat.m4: Likewise.
68850         * m4/lstat.m4: Likewise.
68851         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68852
68853         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68854         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68855
68856 2000-05-26  Jim Meyering  <meyering@lucent.com>
68857
68858         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68859
68860 2000-05-24  Jim Meyering  <meyering@lucent.com>
68861
68862         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68863         autoconf requires that.
68864         * m4/lib-check.m4: Likewise.
68865         * m4/jm-macros.m4: Likewise.
68866         * m4/strftime.m4: Likewise.
68867
68868         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68869         AC_CHECK_DECLS, now that autoconf requires that.
68870
68871 2000-05-22  Jim Meyering  <meyering@lucent.com>
68872
68873         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68874         * m4/lstat.m4: Likewise.
68875
68876 2000-05-22  Jim Meyering  <meyering@lucent.com>
68877
68878         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68879
68880 2000-05-20  Jim Meyering  <meyering@lucent.com>
68881
68882         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68883         (jm_PREREQ): Use it.
68884
68885 2000-05-18  Jim Meyering  <meyering@lucent.com>
68886
68887         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68888         back, too, since it may have been modified by allocate_entry.
68889         (hash_delete): Rewrite to use neither the assignment operator
68890         nor the comma operator in an if-expression.
68891
68892 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68893
68894         * lib/closeout.c:
68895         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68896         Remove; no longer needed.
68897         "quotearg.h": Add include.
68898         (file_name): Do not bother to explicitly initialize to NULL; it's less
68899         efficient on some hosts.
68900         (close_stdout_status): Remove test as to whether stdout was already
68901         closed; it breaks for the case "echo x | sort >&-".
68902         Quote file name colons.
68903         Do not assume that _("write error") lacks format strings.
68904
68905 2000-05-15  Jim Meyering  <meyering@lucent.com>
68906
68907         * lib/version-etc.c (version_etc_copyright): Update the copyright
68908         string used in all --version output.
68909
68910 2000-05-14  Jim Meyering  <meyering@lucent.com>
68911
68912         * lib/closeout.c (close_stdout_set_file_name): New function.
68913         (close_stdout_status): Use new file-scoped global.
68914         Return right away if fstat says the stdout file descriptor is invalid.
68915         * lib/closeout.h (close_stdout_set_file_name): Declare.
68916
68917 2000-05-10  Jim Meyering  <meyering@lucent.com>
68918
68919         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68920         (close_stdout_set_status): New function.
68921         * lib/closeout.h (close_stdout_set_status): Declare.
68922
68923 2000-05-09  Jim Meyering  <meyering@lucent.com>
68924
68925         * m4/gettext.m4: Rename this...
68926         * m4/libintl.m4: ...to this.
68927
68928 2000-05-08  Jim Meyering  <meyering@lucent.com>
68929
68930         * lib/long-options.c: Don't include closeout.h.
68931         (parse_long_options): Don't call close_stdout for --version.
68932
68933 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68934
68935         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68936         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68937         2.1.3 bug.  This avoids a clash when files like regex.c define
68938         _GNU_SOURCE.
68939
68940 2000-05-06  Jim Meyering  <meyering@lucent.com>
68941
68942         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68943         (AC_REPLACE_FUNCS): Add strnlen.
68944
68945         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68946         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68947
68948         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68949         AC_SEARCH_LIBS call for nanosleep.
68950         (LIB_NANOSLEEP): Set and AC_SUBST.
68951
68952 2000-05-06  Jim Meyering  <meyering@lucent.com>
68953
68954         * lib/strnlen.c: Undefine __strnlen and strnlen.
68955         [!weak_alias]: Define __strnlen to strnlen.
68956
68957         * lib/atexit.c: New file, from libiberty.
68958
68959 2000-05-06  Jim Meyering  <meyering@lucent.com>
68960
68961         * lib/closeout.c (close_stdout_status): Also check for errors on the
68962         stderr stream.
68963
68964 2000-05-05  Jim Meyering  <meyering@lucent.com>
68965
68966         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68967         AC_SEARCH_LIBS call for clock_gettime.
68968         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68969
68970         * m4/search-libs.m4: Update from autoconf.
68971
68972         su doesn't work on Solaris 2.6.
68973         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68974         <shadow.h>.  Reported by Dragos Harabor.
68975
68976 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68977
68978         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68979         memcpy instead of xmalloc, xrealloc, path_concat.
68980         (locale_charset): Treat empty environment variables as absent.
68981         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68982
68983 2000-05-04  Jim Meyering  <meyering@lucent.com>
68984
68985         * lib/getopt.c: Update from glibc.
68986         * lib/obstack.c: Likewise.
68987         * lib/obstack.h: Likewise.
68988         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68989         file
68990
68991         * lib/regex.h: Likewise.
68992         * lib/strndup.c: Likewise.
68993         * lib/strnlen.c: New file, from glibc.
68994
68995 2000-05-03  Jim Meyering  <meyering@lucent.com>
68996
68997         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
68998
68999 2000-05-02  Paul Eggert  <eggert@twinsun.com>
69000
69001         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
69002         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
69003         compile-time test, rather than inspecting host and OS, to
69004         decide whether to define _LARGEFILE_SOURCE.
69005
69006 2000-05-01  Jim Meyering  <meyering@lucent.com>
69007
69008         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
69009
69010         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
69011         Based on a patch from Bruno Haible.
69012
69013 2000-05-01  Jim Meyering  <meyering@lucent.com>
69014
69015         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
69016
69017 2000-04-29  Jim Meyering  <meyering@lucent.com>
69018
69019         * lib/path-concat.c: Declare strdup only if it's not defined.
69020         * lib/canon-host.c: Likewise.
69021
69022 2000-04-28  Jim Meyering  <meyering@lucent.com>
69023
69024         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
69025         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
69026         is included first, then limits.h is included by locale.h by libintl.h.
69027         From John David Anglin.
69028
69029 2000-04-25  Jim Meyering  <meyering@lucent.com>
69030
69031         * lib/makepath.c (S_IRWXUGO): Define.
69032         (make_path): Always perform explicit chmod if MODE specifies any
69033         of the `special' permission bits.  Prompted by a bug report against
69034         install from Mate Wierdl and Joost van Baal.
69035
69036 2000-04-18  Jim Meyering  <meyering@lucent.com>
69037
69038         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
69039         (jm_PREREQ): Use it.
69040
69041 2000-04-18  Jim Meyering  <meyering@lucent.com>
69042
69043         * lib/README: New file.
69044
69045         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
69046         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
69047
69048 2000-04-17  Jim Meyering  <meyering@lucent.com>
69049
69050         Get it right :-)
69051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
69052         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
69053         Suggestion from Akim Demaille.
69054
69055 2000-04-17  Jim Meyering  <meyering@lucent.com>
69056
69057         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
69058         the definition of it to rpl_strftime also defined-away the system's
69059         declaration.
69060
69061 2000-04-15  Jim Meyering  <meyering@lucent.com>
69062
69063         Use `C' to denote so-called `contiguous' files, the same way
69064         that tar does.
69065         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
69066         (ftypelet): Use S_ISCTG.
69067         From Michael Deutschmann.
69068
69069 2000-04-14  Jim Meyering  <meyering@lucent.com>
69070
69071         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
69072         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
69073         clobbered.
69074
69075 2000-04-14  Jim Meyering  <meyering@lucent.com>
69076
69077         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
69078
69079 2000-04-13  Jim Meyering  <meyering@lucent.com>
69080
69081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
69082         AH_VERBATIM to insert required #ifndef into config.h.in.
69083         Suggestion from Akim Demaille.
69084
69085 2000-04-12  Jim Meyering  <meyering@lucent.com>
69086
69087         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
69088         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
69089         Christian Krackowizer.
69090
69091         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
69092         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
69093         (AC_SYS_LARGEFILE): Require.
69094         (AM_C_PROTOTYPES): Require.
69095
69096 2000-04-08  Jim Meyering  <meyering@lucent.com>
69097
69098         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
69099         names don't conflict.  Reported by Eli Zaretskii.
69100
69101 2000-04-07  Jim Meyering  <meyering@lucent.com>
69102
69103         * lib/putenv.c: Move inclusion of errno.h so it follows that of
69104         sys/types.h, to work around system header problems on AIX 3.2.5.
69105         From Bruno Haible.
69106
69107 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
69108
69109         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
69110         bug.  Deal with the different error behavior of Irix iconv.
69111
69112 2000-04-05  Paul Eggert  <eggert@twinsun.com>
69113
69114         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
69115         IRIX if the installer said otherwise.
69116
69117 2000-04-05  Jim Meyering  <meyering@lucent.com>
69118
69119         Portability tweaks required for ultrix4.3.
69120         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
69121         (jm_CHECK_DECLS): Add getutent to the list of functions.
69122         (_jm_DECL_HEADERS): Add utmpx.h.
69123         From John David Anglin.
69124
69125         * m4/strftime.m4: Back out the 2000-04-02 change.
69126         Instead of that change, simply undefine putenv in the test program.
69127
69128 2000-04-05  Jim Meyering  <meyering@lucent.com>
69129
69130         Portability tweaks required for ultrix4.3.
69131         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
69132         getutent.
69133         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
69134         * lib/canon-host.c: Declare strdup.
69135         * lib/path-concat.c: Likewise.
69136         From John David Anglin.
69137
69138 2000-04-04  Jim Meyering  <meyering@lucent.com>
69139
69140         Be more DOS 8.3-friendly.
69141         * lib/ref-add.sin: Renamed from ref-add.sed.in.
69142         * lib/ref-del.sin: Renamed from ref-del.sed.in.
69143         * lib/Makefile.am: Reflect renaming.
69144         Reported by Eli Zaretskii.
69145
69146         Use a temporary file name that won't clash with `charset.alias'
69147         in the DOS 8.3 name space.
69148         * lib/Makefile.am (charset_tmp): Define.
69149         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
69150         (uninstall-local): Likewise.
69151         Reported by Eli Zaretskii.
69152
69153 2000-04-03  Jim Meyering  <meyering@lucent.com>
69154
69155         * m4/gettext.m4: Fix typo in comment.
69156
69157         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69158         textutils/configure.in).  Suggestion from Paul Eggert.
69159         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69160
69161 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69162
69163         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69164         variable in the shell rather than using putenv, which isn't
69165         portable.  This avoids the configure-time inter-test dependency
69166         on the potentially-renamed putenv function.
69167
69168 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69169
69170         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69171         before checking struct stat.st_blksize, so that
69172         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69173
69174 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69175
69176         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69177         since strftime.c uses HAVE_STRFTIME to decide whether to use
69178         the underlying strftime.
69179
69180 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69181
69182         * lib/time/strftime.c (my_strftime): Make sure we call the system
69183         strftime, not ourselves, when invoking the underlying strftime.
69184
69185 2000-03-24  Jim Meyering  <meyering@lucent.com>
69186
69187         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69188         (charset_alias): Define.
69189         (install-exec-local): Factor out common code.
69190         (uninstall-local): Split lines longer than 80.
69191         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69192         (SUFFIXES): Define.
69193         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69194         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69195
69196 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69197
69198         * lib/config.charset: Output a line containing "Packages using this
69199         file".
69200         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69201         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69202         ref-del.sed): New rules.
69203
69204 2000-03-17  Jim Meyering  <meyering@lucent.com>
69205
69206         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69207         Otherwise, include <strings.h>
69208
69209 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69210
69211         * lib/unicodeio.c (utf8_wctomb): New function.
69212         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69213         format instead of in UCS-4 with platform dependent endianness.
69214
69215 2000-03-10  Jim Meyering  <meyering@lucent.com>
69216
69217         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69218         From Marco Franzen.
69219
69220 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69221
69222         * lib/savedir.c (savedir): Work even if directory size is
69223         negative; this can happen with some screwy NFS configurations.
69224
69225 2000-03-06  Jim Meyering  <meyering@lucent.com>
69226
69227         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69228         if it's NULL (because we ran out of memory).  From Bruno Haible.
69229
69230 2000-03-05  Jim Meyering  <meyering@lucent.com>
69231
69232         * lib/localcharset.c ("path-concat.h"): Include.
69233         (get_charset_aliases): Use path_concat instead of ANSI string
69234         concatenation.
69235
69236         * lib/unicodeio.h (PARAMS): Define.
69237         Use it to guard prototype.
69238
69239 2000-03-04  Jim Meyering  <meyering@lucent.com>
69240
69241         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69242         for lib/localcharset.c.
69243
69244 2000-03-04  Jim Meyering  <meyering@lucent.com>
69245
69246         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69247         installing into it.
69248         (uninstall-local): Uncomment this rule so `make distcheck' works
69249         once again.
69250
69251         * lib/unicodeio.c (<errno.h>): Include it.
69252         (errno): Declare if not defined.
69253
69254         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69255
69256         * lib/config.charset: New version, incorporating remarks from a linux
69257         i18n mailing list.  From Bruno Haible.
69258
69259 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69260
69261         * m4/codeset.m4: New file.
69262         * m4/iconv.m4: New file.
69263         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69264
69265 2000-03-03  Jim Meyering  <meyering@lucent.com>
69266
69267         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69268
69269 2000-03-02  Jim Meyering  <meyering@lucent.com>
69270
69271         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69272         the messages come out on separate lines.
69273
69274         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69275         rather than jm_CHECK_DECLARATIONS.
69276         * m4/decl.m4: Remove now-unused file.
69277
69278         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69279         geteuid.
69280
69281 2000-03-02  Jim Meyering  <meyering@lucent.com>
69282
69283         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69284
69285 2000-03-01  Jim Meyering  <meyering@lucent.com>
69286
69287         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69288         * lib/unicodeio.c: Likewise.
69289
69290 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69291
69292         * lib/config.charset: New file.
69293         * lib/localcharset.c: New file.
69294         * lib/unicodeio.h, lib/unicodeio.c: New files.
69295         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69296         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69297         (noinst_HEADERS): Add unicodeio.h.
69298         (all-local, install-exec-local, charset.alias): New targets.
69299
69300 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69301
69302         * lib/quotearg.c (ALERT_CHAR): New macro.
69303         (quotearg_buffer_restyled): Use it.
69304
69305 2000-02-27  Jim Meyering  <meyering@lucent.com>
69306
69307         * m4/check-decl.m4: Add getenv to the list.
69308
69309 2000-02-27  Jim Meyering  <meyering@lucent.com>
69310
69311         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69312         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69313
69314         * lib/backupfile.c: Guard inclusion of stdlib.h with
69315         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69316         Declare malloc if needed.
69317
69318         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69319         `#ifndef HAVE_DECL..'
69320         now that autoconf always defines the HAVE_DECL_ symbols.
69321         * lib/human.c: Likewise.
69322         * lib/same.c: Likewise.
69323         * lib/strtoumax.c: Likewise.
69324
69325         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69326         declaration check was not run.
69327         * lib/hash.c: Likewise.
69328         * lib/human.c: Likewise.
69329         * lib/same.c: Likewise.
69330         * lib/strtoumax.c: Likewise.
69331
69332         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69333         `.', then first look up the entire `.'-containing string as a login
69334         name.
69335
69336 2000-02-23  Jim Meyering  <meyering@lucent.com>
69337
69338         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69339         in place of my hack.
69340
69341 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69342
69343         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69344         (textint): New typedef.
69345         (parser_control): Member year changed from int to textint.
69346         All uses changed.
69347         (YYSTYPE): Removed; replaced by %union with int and textint members.
69348         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69349         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69350         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69351         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69352         (date, number, to_year): Use width of number in digits, not its value,
69353         to determine whether it's a 2-digit year, or a 2-digit time.
69354         (yylex): Store number of digits of numeric tokens.
69355         Reported by John Kendall.
69356
69357         (parser_control): Changed from struct parser_control to typedef (for
69358         consistency).  All uses changed.
69359
69360         (tID): Removed; not used.
69361         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69362
69363 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69364
69365         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69366         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69367
69368 2000-02-12  Jim Meyering  <meyering@lucent.com>
69369
69370         * lib/userspec.c (ISDIGIT): Define it.
69371         (isdigit): Remove definition.
69372         (is_number): Use ISDIGIT, not isdigit.
69373         <libintl.h>: Include.
69374         (_ and N_): Define.
69375         (parse_user_spec): Mark translatable strings.
69376
69377 2000-02-10  Jim Meyering  <meyering@lucent.com>
69378
69379         With these changes, nanosleep.[ch] are finally enough like the other
69380         lib/* replacement files to compile on a few more losing systems.
69381
69382         * lib/nanosleep.h: Don't include config.h.
69383         Remove prototype from declaration of nanosleep.
69384         (PARAMS): Remove now-unneeded definition.
69385         * lib/nanosleep.c: #undef nanosleep.
69386         (rpl_nanosleep): Rename from nanosleep.
69387
69388 2000-02-10  Jim Meyering  <meyering@lucent.com>
69389
69390         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69391         gnu_nanosleep to rpl_nanosleep.
69392
69393 2000-02-09  Jim Meyering  <meyering@lucent.com>
69394
69395         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69396         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69397
69398 2000-02-08  Akim Demaille  <akim@epita.fr>
69399
69400         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69401         `[' and `]' and remove uses of `changequote'.
69402         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69403         (AC_SYS_LARGEFILE): Likewise.
69404         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69405         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69406         of changequote.
69407         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69408         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69409         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69410         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69411
69412 2000-02-05  Jim Meyering  <meyering@lucent.com>
69413
69414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69415         Remove explicit use of AC_HEADER_TIME.  It is required by
69416         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69417         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69418         in autoconf whereby the expansion of the latter ended up preceding
69419         the expansion of its prerequisite, AC_HEADER_TIME.
69420         Reported by Volker Borchert.
69421
69422 2000-02-03  Jim Meyering  <meyering@lucent.com>
69423
69424         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69425
69426 2000-02-03  Jim Meyering  <meyering@lucent.com>
69427
69428         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69429         rather than with `#if HAVE_UTMPNAME'.
69430
69431 2000-02-02  Jim Meyering  <meyering@lucent.com>
69432
69433         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69434         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69435         Reported by Eli Zaretskii.
69436
69437 2000-02-01  Jim Meyering  <meyering@lucent.com>
69438
69439         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69440
69441 2000-01-31  Jim Meyering  <meyering@lucent.com>
69442
69443         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69444         functions.  Add the time.h and sys/time.h headers along with the
69445         AC_REQUIRE'ment of AC_HEADER_TIME.
69446
69447 2000-01-31  Jim Meyering  <meyering@lucent.com>
69448
69449         * lib/nanosleep.h (nanosleep): Guard declaration with
69450         `#if ! HAVE_DECL_NANOSLEEP'.
69451         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69452         the declaration in that vendor's sys/timers.h.
69453         Reported by Christian Krackowizer.
69454
69455         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69456         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69457         (ISPRINT): Likewise.
69458         Reported by Tom Tromey.
69459
69460 2000-01-30  Jim Meyering  <meyering@lucent.com>
69461
69462         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69463
69464         * m4/prereq.m4 (utmp_includes): Define.
69465         Check for ut_user and ut_name members in both struct utmpx
69466         and struct utmp.
69467
69468 2000-01-30  Jim Meyering  <meyering@lucent.com>
69469
69470         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69471         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69472         header files where only utmpx.ut_user is declared.
69473
69474         * lib/readutmp.h (UT_USER): Define.
69475
69476 2000-01-29  Jim Meyering  <meyering@lucent.com>
69477
69478         * m4/lib-check.m4: New file containing library-related checks from
69479         fileutils and sh-utils (textutils had none).
69480
69481 2000-01-28  Jim Meyering  <meyering@lucent.com>
69482
69483         * m4/perl.m4: Change format of warning message to look more like that
69484         from the missing script.  Suggestion from François Pinard.
69485
69486 2000-01-25  Jim Meyering  <meyering@lucent.com>
69487
69488         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69489         well as time.h in the compile check.
69490         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69491         Fix typo in cross-compiling case: s/yes/no/.
69492
69493 2000-01-23  Jim Meyering  <meyering@lucent.com>
69494
69495         * m4/jm-macros.m4: Move df-related tests here from
69496         fileutils/configure.in
69497
69498         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69499         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69500
69501         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69502         s/space/ac_fsusage_space/.
69503         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69504
69505         * m4/ftruncate.m4: New file (derived from part of
69506         fileutils/configure.in).
69507         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69508         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69509
69510         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69511         AC_SUBST these here, rather than just in sh-util/configure.in, so
69512         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69513         all the same.
69514         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69515         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69516         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69517         (AC_SUBST(POW_LIBM)): Likewise.
69518         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69519
69520 2000-01-23  Jim Meyering  <meyering@lucent.com>
69521
69522         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69523         obstack.c.
69524
69525 2000-01-22  Jim Meyering  <meyering@lucent.com>
69526
69527         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69528
69529         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69530
69531         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69532         configure.in
69533         (AC_CHECK_HEADERS): Likewise for sh-utils.
69534         (AC_CHECK_HEADERS): Likewise for textutils.
69535         Merge the three lists of headers.
69536
69537         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69538         from fileutils' configure.in.
69539
69540         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69541         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69542         check-decl.m4.
69543
69544         * m4/check-decl.m4: Use #if rather than #ifdef.
69545         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69546         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69547         (_jm_DECL_HEADERS): Define new function.
69548         (jm_CHECK_DECLARATIONS): Require it.
69549
69550 2000-01-22  Jim Meyering  <meyering@lucent.com>
69551
69552         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69553         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69554         Required for some AIX systems.  Reported by Christian Krackowizer.
69555         [TESTING] (main): New function.
69556
69557         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69558         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69559         letters.
69560
69561         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69562         iswprint.
69563
69564         * lib/strverscmp.c (ISDIGIT): Define.
69565         (strverscmp): Use ISDIGIT, not isdigit.
69566
69567 2000-01-19  Jim Meyering  <meyering@lucent.com>
69568
69569         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69570         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69571         defines `struct timespec' in <sys/time.h>
69572
69573         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69574         Thanks to Akim for explaining.
69575
69576 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69577
69578         * lib/nanosleep.c (nanosleep):
69579         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69580         POSIX.1 doesn't require SA_INTERRUPT and some systems
69581         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69582         it's been part of POSIX.1 since day 1 (in 1988).
69583
69584 2000-01-17  Jim Meyering  <meyering@lucent.com>
69585
69586         * lib/interlock: Remove unused file.  Reported by François Pinard.
69587
69588 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69589
69590         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69591         alert, backslash, formfeed, and vertical tab unnecessarily in
69592         shell quoting style.
69593
69594 2000-01-16  Jim Meyering  <meyering@lucent.com>
69595
69596         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69597         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69598         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69599         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69600
69601 2000-01-16  Jim Meyering  <meyering@lucent.com>
69602
69603         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69604         because the latter didn't work.
69605
69606 2000-01-15  Jim Meyering  <meyering@lucent.com>
69607
69608         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69609         (AC_REPLACE_FUNCS): Add memcpy and memset.
69610         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69611         Add strpbrk.
69612         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69613
69614 2000-01-12  Jim Meyering  <meyering@lucent.com>
69615
69616         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69617         (jm_PREREQ): Use it.
69618         (jm_PREREQ_READUTMP): New macro.
69619         (jm_PREREQ): Use it.
69620
69621 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69622
69623         Quote multibyte characters correctly.
69624         * m4/c-bs-a.m4: New file.
69625         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69626         (jm_PREREQ): Use it.
69627
69628 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69629
69630         * m4/uintmax_t.m4: Port to autoconf 2.13.
69631
69632 2000-01-08  Jim Meyering  <meyering@ascend.com>
69633
69634         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69635         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69636
69637 2000-01-04  Jim Meyering  <meyering@ascend.com>
69638
69639         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69640         jm_STRUCT_DIRENT_D_TYPE.
69641         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69642         jm_STRUCT_DIRENT_D_INO.
69643         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69644         jm_STRUCT_UTIMBUF.
69645         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69646         renamings.
69647         * m4/utime.m4: Likewise.
69648
69649         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69650         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69651
69652 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69653
69654         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69655         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69656
69657 2000-01-02  Jim Meyering  <meyering@ascend.com>
69658
69659         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69660         remember if this is necessary.
69661
69662 1999-12-26  Jim Meyering  <meyering@ascend.com>
69663
69664         * m4/jm-macros.m4: Use it here.
69665         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69666
69667 1999-12-23  Jim Meyering  <meyering@ascend.com>
69668
69669         * m4/jm-macros.m4: Check for clock_gettime (moved from
69670         fileutils/configure.in)
69671         Check for gettimeofday.
69672
69673 1999-12-20  Jim Meyering  <meyering@ascend.com>
69674
69675         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69676         autoconf-2.14a-1999-12-20.
69677
69678 1999-12-19  Jim Meyering  <meyering@ascend.com>
69679
69680         * m4/lstat-slash.m4: New file.
69681         * m4/jm-macros.m4: Use the new macro:
69682         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69683
69684 1999-12-07  Jim Meyering  <meyering@ascend.com>
69685
69686         * m4/perl.m4: Require that File::Compare be available, too.
69687         Too many systems seem to lack it.
69688
69689         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69690         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69691
69692 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69693
69694         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69695         problem with the QNX 4.25 shell, which doesn't propagate exit
69696         status of failed commands inside shell assignments.
69697
69698 1999-11-17  Jim Meyering  <meyering@ascend.com>
69699
69700         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69701
69702 1999-11-07  Jim Meyering  <meyering@ascend.com>
69703
69704         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69705
69706 1999-11-06  Jim Meyering  <meyering@ascend.com>
69707
69708         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69709         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69710
69711 1999-11-05  Jim Meyering  <meyering@ascend.com>
69712
69713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69714         configure.in of textutils, fileutils, and sh-utils into this one
69715         (shared between those packages) file.
69716         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69717         AC_STRUCT_ST_BLKSIZE.
69718
69719 1999-11-03  Jim Meyering  <meyering@ascend.com>
69720
69721         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69722         of AC_CHECK_TYPE checks includes unistd.h.
69723         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69724         Suggestion from Akim Demaille.
69725
69726 1999-10-30  Jim Meyering  <meyering@ascend.com>
69727
69728         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69729         m4-quoted string.
69730         * m4/ls-mntd-fs.m4: Likewise.
69731         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69732         * m4/jm-winsz1.m4: Likewise.
69733
69734         * m4/const.m4: Remove file, since the fix made it into the experimental
69735         version of autoconf.
69736         * m4/mktime.m4: Likewise.
69737
69738         * m4/check-type.m4: Remove file, now that the latest version of
69739         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69740
69741         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69742         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69743         AC_CHECK_TYPE.
69744
69745 1999-10-04  Jim Meyering  <meyering@ascend.com>
69746
69747         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69748
69749 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69750
69751         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69752         2.95.1 bug with HP-UX 10.20.
69753
69754 1999-09-17  Jim Meyering  <meyering@ascend.com>
69755
69756         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69757         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69758         due to missing strdup (against sh-utils-2.0).
69759
69760 1999-08-29  Jim Meyering  <meyering@ascend.com>
69761
69762         * m4/jm-macros.m4: Require jm_BISON.
69763         * m4/bison.m4: New file.
69764
69765 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69766
69767         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69768         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69769
69770 1999-08-05  Jim Meyering  <meyering@ascend.com>
69771
69772         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69773         to avoid conflicts with `conftest' on 8+3 filesystems.
69774         Suggestion from Eli Zaretskii.
69775
69776 1999-08-04  Jim Meyering  <meyering@ascend.com>
69777
69778         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69779         fileutils and sh-utils (textutils's getline test was inadequate).
69780         (AM_FUNC_GETLINE): Run this test.
69781         (AC_CHECK_FUNCS): Check for getdelim.
69782         Reported by Bob Proulx.
69783
69784 1999-08-02  Jim Meyering  <meyering@ascend.com>
69785
69786         * m4/jm-macros.m4: Add a comment.
69787
69788 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69789
69790         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69791         <inttypes.h> defines strtoumax as a macro (and not as a
69792         function).
69793
69794 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69795
69796         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69797         that we can shift, multiply and divide unsigned long long
69798         values; Ultrix cc can't do it.
69799
69800 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69801
69802         * m4/mktime.m4: New file, which is a preview of what should appear
69803         in the next public autoconf release.
69804
69805 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69806
69807         * m4/lfs.m4: Remove this file.
69808         * m4/largefile.m4: New file.  It contains the old contents of
69809         lfs.m4, except that all names with prefix AC_LFS have been
69810         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69811         compatible with future autoconf versions.  Also, some minor m4
69812         quoting problems have been fixed.
69813
69814 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69815
69816         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69817         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69818         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69819         and simplify the shell code.
69820
69821 1999-08-01  Jim Meyering  <meyering@ascend.com>
69822
69823         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69824         m4.
69825
69826 1999-07-20  Jim Meyering  <meyering@ascend.com>
69827
69828         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69829
69830 1999-07-15  Jim Meyering  <meyering@ascend.com>
69831
69832         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69833
69834 1999-05-22  Jim Meyering  <meyering@ascend.com>
69835
69836         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69837
69838 1999-05-20  Jim Meyering  <meyering@ascend.com>
69839
69840         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69841         Add a colon after each `then' in case $4 is empty.
69842
69843 1999-05-16  Jim Meyering  <meyering@ascend.com>
69844
69845         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69846
69847 1999-05-10  Jim Meyering  <meyering@ascend.com>
69848
69849         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69850
69851         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69852         AC_FUNC_MKTIME.
69853
69854 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69855
69856         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69857
69858 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69859
69860         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69861         not CPPFLAGS, so that linking works correctly in IRIX.
69862
69863 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69864
69865         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69866
69867 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69868
69869         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69870         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69872         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69873         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69874
69875         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69876
69877 1999-04-20  Jim Meyering  <meyering@ascend.com>
69878
69879         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69880         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69881         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69882
69883 1999-04-18  Jim Meyering  <meyering@ascend.com>
69884
69885         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69886         * m4/jm-macros.m4: Use it.
69887
69888 1999-04-06  Jim Meyering  <meyering@ascend.com>
69889
69890         * m4/strftime.m4: Remove test for %f.
69891
69892 1999-03-29  Jim Meyering  <meyering@ascend.com>
69893
69894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69895         superset of the AC_TYPE_* checks in the textutils, fileutils,
69896         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69897         AC_TYPE_PID_T.
69898
69899 1999-03-28  Jim Meyering  <meyering@ascend.com>
69900
69901         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69902         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69903         replaced e.g., in the *.sh files of the sh-utils.
69904
69905 1999-03-20  Jim Meyering  <meyering@ascend.com>
69906
69907         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69908         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69909         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69910
69911 1999-03-19  Jim Meyering  <meyering@ascend.com>
69912
69913         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69914
69915 1999-03-12  Jim Meyering  <meyering@ascend.com>
69916
69917         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69918
69919 1999-03-07  Jim Meyering  <meyering@ascend.com>
69920
69921         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69922         declared.
69923
69924 1999-02-17  Jim Meyering  <meyering@ascend.com>
69925
69926         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69927         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69928
69929 1999-02-07  Jim Meyering  <meyering@ascend.com>
69930
69931         * m4/group-member.m4: New file -- extracted from sh-utils'
69932         configure.in.
69933
69934         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69935         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69936
69937 1999-02-06  Jim Meyering  <meyering@ascend.com>
69938
69939         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69940         * m4/fnmatch.m4: Likewise.
69941         * m4/getgroups.m4: Likewise.
69942         * m4/lstat.m4: Likewise.
69943         * m4/malloc.m4: Likewise.
69944         * m4/putenv.m4: Likewise.
69945         * m4/realloc.m4: Likewise.
69946         * m4/regex.m4: Likewise.
69947         * m4/stat.m4: Likewise.
69948         * m4/strftime.m4: Likewise.
69949         Suggestion from Alain Magloire.
69950
69951         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69952         * m4/fnmatch.m4: Likewise.
69953         * m4/getgroups.m4: Likewise.
69954         * m4/getline.m4: Likewise.
69955         * m4/lstat.m4: Likewise.
69956         * m4/malloc.m4: Likewise.
69957         * m4/memcmp.m4: Likewise.
69958         * m4/putenv.m4: Likewise.
69959         * m4/realloc.m4: Likewise.
69960         * m4/regex.m4: Likewise.
69961         * m4/stat.m4: Likewise.
69962         * m4/strftime.m4: Likewise.
69963         Suggestion from Alain Magloire.
69964
69965         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69966         an argument.
69967
69968         * m4/regex.m4: Add a run-time Test for proper operation of
69969         re_compile_pattern.
69970
69971 1999-01-31  Jim Meyering  <meyering@ascend.com>
69972
69973         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69974
69975 1999-01-30  Jim Meyering  <meyering@ascend.com>
69976
69977         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69978
69979         * m4/jm-mktime.m4: Make this a wrapper around the official
69980         AM_FUNC_MKTIME rather than my private copy, now that the official one
69981         is up to date.
69982         * m4/mktime.m4: Remove file.
69983
69984         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69985         * m4/uptime.m4: Likewise.
69986         * m4/uintmax_t.m4: Likewise.
69987
69988 1999-01-28  Jim Meyering  <meyering@ascend.com>
69989
69990         * m4/jm-macros.m4: Use jm_AFS.
69991         * m4/afs.m4: New file (from fileutils' configure.in).
69992
69993         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69994         * m4/chown.m4: Likewise.
69995         * m4/d-ino.m4: Likewise.
69996         * m4/d-type.m4: Likewise.
69997         * m4/fnmatch.m4: Likewise.
69998         * m4/getgroups.m4: Likewise.
69999         * m4/gettext.m4: Likewise.
70000         * m4/jm-mktime.m4: Likewise.
70001         * m4/jm-winsz2.m4: Likewise.
70002         * m4/lcmessage.m4: Likewise.
70003         * m4/ls-mntd-fs.m4: Likewise.
70004         * m4/malloc.m4: Likewise.
70005         * m4/memcmp.m4: Likewise.
70006         * m4/putenv.m4: Likewise.
70007         * m4/realloc.m4: Likewise.
70008         * m4/st_mtim.m4: Likewise.
70009         * m4/strftime.m4: Likewise.
70010
70011 1999-01-16  Jim Meyering  <meyering@ascend.com>
70012
70013         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
70014         (ARGMATCH_DIE_DECL): Define.
70015
70016 1999-01-12  Jim Meyering  <meyering@ascend.com>
70017
70018         * m4/Makefile.am.in: Rewrite to avoid using fmt.
70019         Reported by Lars Hecking.
70020
70021 1999-01-10  Jim Meyering  <meyering@ascend.com>
70022
70023         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
70024         gross kludge.
70025         * m4/inttypes_h.m4: Likewise.
70026         * m4/lstat.m4: Likewise.
70027         * m4/malloc.m4: Likewise.
70028         * m4/readdir.m4: Likewise.
70029         * m4/realloc.m4: Likewise.
70030         * m4/st_dm_mode.m4: Likewise.
70031         * m4/stat.m4: Likewise.
70032         * m4/utimbuf.m4: Likewise.
70033         * m4/utimes.m4: Likewise.
70034
70035         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
70036         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
70037         comments in config.h.in are meaningful.
70038
70039         * m4/jm-macros.m4: Require autoconf-2.13 here.
70040
70041         * m4/regex.m4: By default, don't use the included regex.c on systems
70042         with glibc 2.  Suggestion from Uli Drepper.
70043
70044 1999-01-02  Jim Meyering  <meyering@ascend.com>
70045
70046         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
70047
70048 1998-12-18  Jim Meyering  <meyering@ascend.com>
70049
70050         * m4/Makefile.am.in (Makefile.am): Simplify rule.
70051         Based on a suggestion from Lars Hecking.
70052
70053 1998-11-16  Paul Eggert  <eggert@twinsun.com>
70054
70055         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
70056
70057 1998-11-16  Jim Meyering  <meyering@ascend.com>
70058
70059         * m4/lfs.m4: Double-quote the `uname...` expression.
70060
70061 1998-11-14  Jim Meyering  <meyering@ascend.com>
70062
70063         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
70064         * m4/stat.m4: Likewise.
70065
70066 1998-11-03  Jim Meyering  <meyering@ascend.com>
70067
70068         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
70069         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
70070
70071 1998-10-18  Jim Meyering  <meyering@ascend.com>
70072
70073         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
70074
70075 1998-10-17  Jim Meyering  <meyering@ascend.com>
70076
70077         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
70078         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
70079         calls for those previously hard-coded headers.  Instead, take a new
70080         parameter.
70081         (jm_CHECK_DECLARATIONS): Reflect interface change.
70082         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
70083         (jm_CHECK_DECL_LOCALTIME_R): New macro.
70084
70085         * m4/mktime.m4: Test for spring-forward gap before long-running test.
70086
70087 1998-10-14  Jim Meyering  <meyering@ascend.com>
70088
70089         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
70090         instead of "TZ=America/Vancouver".  From Paul Eggert.
70091
70092 1998-10-11  Jim Meyering  <meyering@ascend.com>
70093
70094         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
70095         This adds a test for a recently added compatibility fix for mktime.c.
70096         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
70097
70098 1998-09-27  Jim Meyering  <meyering@ascend.com>
70099
70100         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
70101
70102         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
70103         ../configure.in, including a change from Gordon Matzigkeit to allow
70104         cross-compiling for the Hurd.
70105
70106         * m4/glibc.m4: New file/macro to test for the GNU C Library
70107         versions 1 and 2.  From Gordon Matzigkeit.
70108         Indent.
70109
70110 1998-09-21  Jim Meyering  <meyering@ascend.com>
70111
70112         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
70113
70114 1998-08-18  Paul Eggert  <eggert@twinsun.com>
70115
70116         Port nanosecond-resolution times to UnixWare 2.1.2 and
70117         pedantic Solaris 2.6.
70118
70119         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
70120         AC_STRUCT_ST_MTIM.
70121         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
70122         Generate name of ns member, instead of just 1 or undef.
70123         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
70124
70125 1998-08-15  Jim Meyering  <meyering@ascend.com>
70126
70127         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
70128         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
70129         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
70130         instead of jm_TYPE_SSIZE_T.
70131
70132 1998-08-12  Jim Meyering  <meyering@ascend.com>
70133
70134         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
70135
70136 1998-08-02  Jim Meyering  <meyering@ascend.com>
70137
70138         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
70139         in acconfig.h manually.
70140
70141 1998-07-31  Paul Eggert  <eggert@twinsun.com>
70142
70143         * m4/st_mtim.m4: New file.
70144
70145 1998-07-28  Jim Meyering  <meyering@ascend.com>
70146
70147         * m4/utimes.m4: Undef stat.
70148
70149 1998-07-25  Jim Meyering  <meyering@ascend.com>
70150
70151         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
70152         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
70153
70154 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70155
70156         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70157         uid and gid actually remain unchanged.
70158
70159 1998-07-07  Jim Meyering  <meyering@ascend.com>
70160
70161         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70162
70163 1998-07-04  Jim Meyering  <meyering@ascend.com>
70164
70165         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70166         to prove that this macro can be used in packages without regex.c.
70167
70168 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70169
70170         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70171         is to be used.
70172
70173 1998-07-03  Jim Meyering  <meyering@ascend.com>
70174
70175         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70176
70177         * m4/gettext.m4: New file -- from gettext-0.10.35.
70178         * m4/lcmessage.m4: Likewise.
70179         * m4/progtest.m4: Likewise.
70180
70181         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70182         * m4/jm-macros.m4: Require the new macro.
70183
70184 1998-06-29  Jim Meyering  <meyering@ascend.com>
70185
70186         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70187         for the definition of NGROUPS (used in a system header included
70188         by sys/mount.h).
70189
70190 1998-06-28  Jim Meyering  <meyering@ascend.com>
70191
70192         * m4/ls-mntd-fs.m4: New file.
70193         * m4/fstypename.m4: New file.
70194
70195         * m4/jm-macros.m4: Require the new macro.
70196         * m4/jm-glibc-io.m4: New file.
70197
70198 1998-05-19  Jim Meyering  <meyering@ascend.com>
70199
70200         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70201         * m4/lchown.m4: New file.
70202
70203         * m4/Makefile.am.in: New file.
70204         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70205
70206 1998-05-14  Jim Meyering  <meyering@ascend.com>
70207
70208         * m4/Makefile.am (EXTRA_DIST): Add them.
70209         * m4/jm-macros.m4: New file.
70210         * m4/utimbuf.m4: New file.
70211
70212 1998-05-12  Jim Meyering  <meyering@ascend.com>
70213
70214         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70215
70216 1998-05-11  Jim Meyering  <meyering@ascend.com>
70217
70218         * m4/isc-posix.m4: New file.
70219
70220 1998-05-10  Jim Meyering  <meyering@ascend.com>
70221
70222         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70223
70224 1998-05-09  Jim Meyering  <meyering@ascend.com>
70225
70226         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70227         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70228         with automake.
70229
70230         * m4/ssize_t.m4: New file.
70231         * m4/mktime.m4: Remove file -- the new automake has this now.
70232
70233 1998-04-26  Jim Meyering  <meyering@ascend.com>
70234
70235         * m4/assert.m4: New file.
70236         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70237
70238 1998-04-05  Jim Meyering  <meyering@ascend.com>
70239
70240         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70241         (jm_PREREQ): Use it here.
70242
70243 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70244
70245         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70246         in acconfig.h.
70247
70248 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70249
70250         * m4/prereq.m4: New file.
70251         * m4/error.m4: New file.
70252         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70253
70254 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70255
70256         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70257         cache-check for the same variable -- that defeated the purpose of
70258         the test; the test program was never run.  This was a problem only
70259         on systems with losing getline functions -- HP-UX 10.20 is one.
70260         Reported by Bjorn Helgaas.
70261
70262 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70263
70264         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70265
70266 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70267
70268         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70269
70270         * m4/const.m4: New file.  Use an initializer in this declaration
70271         typedef int charset[2]; const charset x;
70272         Reported by Bob Glickstein.
70273
70274 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70275
70276         * m4/chown.m4: Fix reversed types on -1 args to chown.
70277         From Kaveh Ghazi.
70278
70279 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70280
70281         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70282         Add lseek and memchr.
70283
70284         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70285         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70286         have a 20-character limit on names.
70287
70288 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70289
70290         * m4/inttypes_h.m4: New file.
70291         * m4/uintmax_t.m4: New file.
70292         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70293
70294
70295         -----
70296
70297         Local Variables:
70298         coding: utf-8
70299         End:
70300
70301         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70302
70303         Copying and distribution of this file, with or without
70304         modification, are permitted provided the copyright notice
70305         and this notice are preserved.