d8b9f0e15101529482844a1250ccfc8020d711e6
[gnulib.git] / ChangeLog
1 2010-09-28  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'poll-h'.
4         * modules/poll-h-c++-tests: New file.
5         * tests/test-poll-h-c++.cc: New file.
6
7         Tests for module 'poll-h'.
8         * modules/poll-h-tests: New file.
9         * tests/test-poll-h.c: New file.
10
11 2010-09-28  Bruno Haible  <bruno@clisp.org>
12
13         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
14         * modules/poll-h (Depends-on): Add 'extensions'.
15
16 2010-09-28  Bruno Haible  <bruno@clisp.org>
17
18         New module 'poll-h'.
19         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20         (poll): Use modern idiom.
21         * modules/poll-h: New file.
22         * modules/poll (Files): Remove lib/poll.in.h.
23         (Depends-on): Add poll-h.
24         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26         * m4/poll_h.m4: New file.
27         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29         and invoke gl_REPLACE_POLL_H.
30         * lib/poll.c: Use common idiom.
31         * tests/test-poll.c: Likewise.
32         * doc/posix-headers/poll.texi: Mention the poll-h module.
33         Suggested by Eric Blake.
34
35 2010-09-26  Bruno Haible  <bruno@clisp.org>
36
37         sys_wait: Implement WSTOPSIG.
38         * lib/sys_wait.in.h (WSTOPSIG): New macro.
39         Reported by Simon Josefsson.
40
41 2010-09-26  Simon Josefsson  <simon@josefsson.org>
42
43         stdlib, sys_wait: Avoid compilation error on mingw.
44         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
45
46 2010-09-26  Bruno Haible  <bruno@clisp.org>
47
48         stdlib tests: Avoid code duplication.
49         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
50         * modules/sys_wait-tests (Files): Likewise.
51         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
52         * tests/test-stdlib.c: Include test-sys_wait.h.
53         (main): Invoke test_sys_wait_macros.
54         * tests/test-sys_wait.c: Include test-sys_wait.h.
55         (main): Invoke test_sys_wait_macros.
56
57 2010-09-25  Simon Josefsson  <simon@josefsson.org>
58
59         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
60         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
61         sure Windows sockets are working before calling getaddrinfo.
62         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
63         * doc/gnulib.texi (Windows sockets): Fix typo.
64
65 2010-09-25  Bruno Haible  <bruno@clisp.org>
66
67         Tests for module 'regex-quote'.
68         * modules/regex-quote-tests: New file.
69         * tests/test-regex-quote.c: New file.
70
71         New module 'regex-quote'.
72         * lib/regex-quote.h: New file.
73         * lib/regex-quote.c: New file.
74         * modules/regex-quote: New file.
75         Suggested by Reuben Thomas <rrt@sc3d.org>.
76
77 2010-09-24  Bruno Haible  <bruno@clisp.org>
78
79         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
80         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
81
82 2010-09-23  Bruno Haible  <bruno@clisp.org>
83
84         setenv: Relax license.
85         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
86         Blake.
87         Requested by Eric Blake.
88
89 2010-09-22  Bruno Haible  <bruno@clisp.org>
90
91         termios: Relax license.
92         * modules/termios (License): Change to LGPLv2+.
93         Requested by Eric Blake.
94
95 2010-09-22  Bruno Haible  <bruno@clisp.org>
96
97         threadlib: Allow the package to change the default to 'no'.
98         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
99         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
100         Reported by Paul Eggert.
101
102 2010-09-22  Pádraig Brady  <P@draigbrady.com>
103             Bruno Haible  <bruno@clisp.org>
104
105         Fix endless loop in mbmemcasecoll.
106         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
107         byte.
108         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
109
110 2010-09-22  Bruno Haible  <bruno@clisp.org>
111
112         Tests for module 'memcoll'.
113         * modules/memcoll-tests: New file.
114         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
115
116         memcoll, xmemcoll: Clarify size vs. length.
117         * modules/memcoll.c (memcoll0): Clarify specification.
118         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
119         passed to collate_error.
120
121 2010-09-22  Bruno Haible  <bruno@clisp.org>
122
123         Tests for module 'memcasecmp'.
124         * modules/memcasecmp-tests: New file.
125         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
126
127 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
128
129         * lib/pthread.in.h: Add split double-inclusion guard, and include
130         system <pthread.h> if there is one.  Use @@-style as in other
131         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
132         pthread.h doesn't.
133         (pthread_mutexattr_destroy, pthread_mutexattr_init):
134         (pthread_mutexattr_settype, pthread_mutex_trylock):
135         New static inline functions, if there's no system <pthread.h>.
136         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
137         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
138         Approximate with mutexes if the system lacks spinlocks, as in
139         MacOS.
140         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
141         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
142         @@-style.  Check for spinlocks separately.
143         (gl_PTHREAD_DEFAULTS): New macro.
144         * modules/pthread: Redo to use a more typical style for in.h files.
145
146 2010-09-21  Eric Blake  <eblake@redhat.com>
147
148         net_if: enhance tests
149         * tests/test-net_if.c (main): Move signature checks earlier.
150         Print failures to stderr.
151         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
152         Document the bug that we do not yet fix.
153
154 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
155
156         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
157         about gnulib, not GSS.
158
159 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
160
161         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
162         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
163         for Emacs.
164         * build-aux/pmccabe2html: Make Makefile.am example code more
165         cut-and-paste friendly.
166
167 2010-09-21  Simon Josefsson  <simon@josefsson.org>
168
169         * tests/test-net_if.c: New file.
170         * modules/net_if-tests: New file.
171
172 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
173
174         pthread: add pthread_spin_destroy
175         * lib/pthread.in.h (pthread_spin_destroy): New function.
176
177 2010-09-19  Bruno Haible  <bruno@clisp.org>
178
179         gnulib-tool: Fix --help output.
180         * gnulib-tool (func_usage): Fix help message.
181         Reported by Reuben Thomas <rrt@sc3d.org>.
182
183 2010-09-18  Jim Meyering  <meyering@redhat.com>
184
185         maint.mk: avoid unexpanded \n in two diagnostics
186         * top/maint.mk (sc_prohibit_always_true_header_tests):
187         Don't use a literal \n in a halt=... assignment.  It would not be
188         expanded, and the two \n bytes would appear in the diagnostic output
189         rather than the desired newline.  Use halt=$$(printf ... instead.
190         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
191
192 2010-09-18  Bruno Haible  <bruno@clisp.org>
193
194         netinet_in: Doc tweak.
195         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
196         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
197
198 2010-09-18  Jim Meyering  <meyering@redhat.com>
199
200         init.sh: correct an outdated comment
201         * tests/init.sh (create_exe_shims_):  s/function/alias/
202
203         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
204         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
205         a file named "*.exe" is removed between the glob expansion and the
206         processing of that oddly named file.
207
208 2010-09-17  Eric Blake  <eblake@redhat.com>
209
210         mirbsd: add some more support
211         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
212         in BSD family.
213         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
214         devices as OpenBSD.
215         * m4/host-os.m4 (mirbsd): Add MirBSD.
216
217         tests: fix unportable assumption on sys/wait.h
218         * tests/test-sys_wait.c (main): Relax test.
219         * tests/test-stdlib.c (main): Likewise.
220
221         init.sh: accomodate directory with no .exes
222         * tests/init.sh: Accomodate directory containing only scripts.
223
224         tests: avoid compiler warning
225         * tests/test-stdlib.c (main): Use the variable.
226
227         fdutimens, fdutimensat: update signature, again
228         * lib/utimens.h (gl_futimens): Delete, and move signature...
229         (fdutimens): ...here.
230         (fdutimensat): Rearrange signature.
231         (lutimensat): Rename variable for clarity.
232         * lib/fdutimensat.c (fdutimensat): Update signature.
233         * lib/utimens.c (fdutimens): Likewise.
234         (gl_futimens): Delete.
235         (utimens, lutimens): Update callers.
236         * lib/futimens.c (futimens): Likewise.
237         * tests/test-fdutimensat.c: Likewise.
238         * tests/test-utimens.c: Likewise.
239         * tests/test-futimens.h: Update comment.
240         * NEWS: Mention this.
241         Suggested by Paul Eggert.
242
243 2010-09-17  Bruno Haible  <bruno@clisp.org>
244
245         Take over the maintenance of some older macros from Autoconf.
246         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
247         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
248         GNU Autoconf.
249         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
250         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
251
252 2010-09-17  Eric Blake  <eblake@redhat.com>
253
254         fdutimensat: drop atflag validation
255         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
256         with valid fd, to close a race scenario where futimens is
257         unsupported and FILE was replaced by a symlink.
258         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
259         accordingly.
260         Suggested by Paul Eggert.
261
262 2010-09-16  Bruno Haible  <bruno@clisp.org>
263
264         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
265         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
266
267 2010-09-16  Bruno Haible  <bruno@clisp.org>
268
269         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
270         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
271         login_tty exists.
272         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
273
274 2010-09-16  Bruno Haible  <bruno@clisp.org>
275
276         login_tty: Make the replacement code work on BSD systems.
277         * lib/login_tty.c: Include <sys/ioctl.h>.
278         (login_tty): Use ioctl TIOCSCTTY when available.
279         * modules/login_tty (Depends-on): Add sys_ioctl.
280         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
281
282 2010-09-16  Bruno Haible  <bruno@clisp.org>
283
284         login_tty: Stricter unit test.
285         * modules/login_tty-tests (Depends-on): Add tcgetsid.
286         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
287         and tcgetsid() after login_tty.
288         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
289
290 2010-09-16  Bruno Haible  <bruno@clisp.org>
291
292         New module 'tcgetsid'.
293         * lib/tcgetsid.c: New file.
294         * m4/tcgetsid.m4: New file.
295         * modules/tcgetsid: New file.
296         * modules/termios (Depends-on): Add c++defs, warn-on-use.
297         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
298         GNULIB_TCGETSID, HAVE_TCGETSID.
299         * lib/termios.in.h: Include <sys/types.h>.
300         (tcgetsid): New declaration.
301         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
302         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
303         * doc/posix-functions/tcgetsid.texi: Mention the new module.
304         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
305
306 2010-09-16  Bruno Haible  <bruno@clisp.org>
307
308         Tests for module 'termios'.
309         * modules/termios-c++-tests: New file.
310         * modules/termios-tests: New file.
311         * tests/test-termios-c++.cc: New file.
312         * tests/test-termios.c: New file.
313
314         New module 'termios'.
315         * modules/termios: New file.
316         * lib/termios.in.h: New file.
317         * m4/termios_h.m4: New file.
318         * doc/posix-headers/termios.texi: Mention the new module.
319
320 2010-09-16  Eric Blake  <eblake@redhat.com>
321
322         fdutimensat: add an atflag parameter
323         * lib/fdutimensat.c (fdutimensat): Add new parameter.
324         * lib/utimens.h (fdutimensat): Update prototype.
325         * tests/test-fdutimensat.c: Adjust test to match.
326         * NEWS: Document the change.
327         Suggested by Paul Eggert.
328
329 2010-09-16  Bruno Haible  <bruno@clisp.org>
330
331         Fix typos in comments.
332         * lib/striconveh.h: Fix typo in comment.
333         * lib/login_tty.c (login_tty): Likewise.
334
335 2010-09-15  Bruno Haible  <bruno@clisp.org>
336
337         stdlib: clarify MirBSD WEXITSTATUS bug
338         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
339         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
340
341 2010-09-15  Eric Blake  <eblake@redhat.com>
342
343         stdlib: work around MirBSD WEXITSTATUS bug
344         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
345         * modules/stdlib (Depends-on): Add sys_wait.
346         * tests/test-sys_wait.c (main): Enhance test.
347         * tests/test-stdlib.c (main): Likewise.
348         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
349
350         docs: mention MacOS issue with WEXITSTATUS(constant)
351         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
352         issue.
353         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
354
355         strnlen: add tests
356         * modules/strnlen-tests: New file.
357         * tests/test-strnlen.c: Likewise.
358
359 2010-09-14  Bruno Haible  <bruno@clisp.org>
360
361         unistr/base: Avoid link errors when module 'libunistring' is also used.
362         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
363         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
364         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
365         Declare also when HAVE_LIBUNISTRING is set.
366         Reported by Pádraig Brady <P@draigbrady.com>.
367
368 2010-09-14  Eric Blake  <eblake@redhat.com>
369
370         test-rawmemchr: make more robust
371         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
372         (Depends-on, configure.ac): Add needed prerequisites to use it.
373         * modules/memchr-tests (Files, Depends-on, configure.ac):
374         Likewise, to avoid implicit reliance on memchr module prereqs.
375         * tests/test-memchr.c (main): Ensure proper masking.
376         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
377         reads.
378
379         memchr: detect glibc Alpha bug
380         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
381         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
382         Alpha.
383         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
384         * tests/test-memchr.c (main): Enhance test.
385         Reported by Nelson H. F. Beebe.
386
387 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
388
389         fts, getcwd, glob: audit for dirfd returning -1
390         * lib/fts.c (opendir): Remove #define; no longer used.
391         (opendirat): New arg PDIR_FD.  All callers changed.
392         (fts_build, _opendir2): Use new opendirat to avoid the need for
393         dirfd, or for checking whether dirfd returns a negative value.
394         Don't use opendir; always use openat followed by fdopendir.
395         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
396         it.
397         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
398         returns -1 here.
399         * modules/fts (Depends-on): Remove dirfd.
400         * modules/getcwd (Depends-on): Likewise.
401
402 2010-09-13  Eric Blake  <eblake@redhat.com>
403
404         float: fix broken MirBSD header
405         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
406         * doc/posix-headers/float.texi (float.h): Document it.
407
408 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
409
410         fts: use O_NOFOLLOW to avoid race condition when opening a directory
411         * lib/fts.c (opendirat): New arg extra_flags.
412         (__opendir2): Use it to avoid following symlinks when opening
413         a directory, if symlinks are not supposed to be followed.  See
414         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
415
416         fdopendir: preserve argument fd before returning
417         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
418         (fdopendir_with_dup, fd_clone_opendir): New static functions.
419         (fdopendir): Use them, arranging for FD to be open to the same
420         directory that it was when it started.  (It might be temporarily
421         closed while fdopendir is running, so this not thread- or
422         signal-safe.)  Be careful to do the right thing even when file
423         descriptors are scarce and dup fails with errno == EMFILE.  See
424         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
425
426 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
427
428         regex: Pass the system regex if its only problem is 32-bit regoff_t.
429         * NEWS: Document change.
430         * m4/regex.m4: Disable test for regoff_t size.
431
432 2010-09-13  Jim Meyering  <meyering@redhat.com>
433
434         fts: don't operate on an invalid file descriptor after failed dup
435         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
436         negative file descriptor.
437
438 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
439
440         savedir: add streamsavedir, deprecate fdsavedir
441         * NEWS: Mention deprecation of fdsavedir.
442         * lib/savedir.c (streamsavedir): New extern function, whose name
443         ends in "savedir" to be consistent with the others.  This differs
444         from savedirstream in that it doesn't close its argument.  The
445         next version of GNU tar will use this instead of fdsavedir, to
446         avoid some race conditions and conserve file descriptors.
447         (savedirstream): Reimplement as a wrapper around streamsavedir.
448         (fdsavedir): Add a comment deprecating this function.  As far as
449         I know, only GNU tar used it, and GNU tar doesn't need it any more.
450         * lib/savedir.h (streamsavedir): New decl.
451         (fdsavedir): Add a comment deprecating this.
452
453 2010-09-10  Bruno Haible  <bruno@clisp.org>
454
455         langinfo: Fix last commit.
456         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
457         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
458         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
459
460 2010-09-10  Bruno Haible  <bruno@clisp.org>
461
462         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
463         * lib/progreloc.c (O_EXEC): Define fallback.
464
465 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
466
467         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
468         * NEWS: Document recent changes to fcntl-h.
469         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
470         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
471         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
472         Similarly for O_SEARCH; this last was already true, but not documented.
473         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
474         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
475         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
476         Likewise.
477         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
478         is zero, not whether it is defined.
479         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
480         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
481         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
482
483 2010-09-10  Bruno Haible  <bruno@clisp.org>
484
485         langinfo, nl_langinfo: Fix for IRIX 5.3.
486         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
487         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
488         HAVE_LANGINFO_YESEXPR.
489         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
490         HAVE_LANGINFO_YESEXPR.
491         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
492         HAVE_LANGINFO_T_FMT_AMPM is 0.
493         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
494         HAVE_LANGINFO_YESEXPR is 0.
495         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
496         NOEXPR.
497         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
498         * doc/posix-functions/nl_langinfo.texi: Likewise.
499         Reported by Eric Blake.
500
501 2010-09-10  Bruno Haible  <bruno@clisp.org>
502
503         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
504         * doc/glibc-functions/login_tty.texi: Mention the include file problem
505         on FreeBSD 8.0 and OpenBSD 4.6.
506         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
507         * m4/pty_h.m4 (gl_PTY_H): Likewise.
508         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
509         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
510         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
511         ac_includes_default.
512         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
513
514 2010-09-09  Eric Blake  <eblake@redhat.com>
515
516         strsignal: work around NetBSD bug
517         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
518         * lib/string.in.h (includes): Likewise.
519         * doc/posix-functions/strsignal.texi (strsignal): Document the
520         bug.
521         Reported by Nelson H. F. Beebe.
522
523         gnulib-tool: work with NetBSD /bin/sh
524         * gnulib-tool (func_cache_var, func_cache_lookup_module)
525         (func_get_description, func_get_comment, func_get_status)
526         (func_get_notice, func_get_applicability, func_get_filelist)
527         (func_get_dependencies, func_get_autoconf_early_snippet)
528         (func_get_autoconf_snippet, func_get_automake_snippet)
529         (func_get_include_directive, func_get_link_directive)
530         (func_get_license, func_get_maintainer, func_import): Avoid
531         shell syntax errors from parsing syntax extensions.
532
533 2010-09-09  Bruno Haible  <bruno@clisp.org>
534
535         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
536         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
537         a reliable way to determine whether the 'alias' command works.
538
539 2010-09-08  Jim Meyering  <meyering@redhat.com>
540
541         init.sh: penalize a set-x-impaired shell; don't disqualify it
542         * tests/init.sh: Too many shells corrupt application stderr when
543         you set -x, so we can't afford to disqualify them, since at least
544         on Irix-6.5, that would disqualify all bourne shells.
545         Instead, use a two-pass approach.
546         On the first pass, try to find a shell that meets the stricter
547         condition that set -x does not corrupt stderr.
548         If no shell meets the stricter condition, retest each candidate
549         shell, but without that extra condition.  Finally, when
550         VERBOSE=yes is requested and set -x might cause trouble, simply
551         issue a warning and refrain from enabling debug output.
552
553 2010-09-08  Eric Blake  <eblake@redhat.com>
554
555         unsetenv: fix OpenBSD bug
556         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
557         * doc/posix-functions/unsetenv.texi (unsetenv): Update
558         documentation.
559         Reported by Jim Meyering.
560
561         strtod: work around IRIX 6.5 bug
562         * lib/strtod.c (strtod): Reparse number on shorter string if
563         exponent parse was invalid.
564         * tests/test-strtod.c (main): Add check for "0x1p 2".
565         Reported by Tom G. Christensen.
566
567         getopt: optimize previous patch
568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
569         empty variable.  Speed up awk script.
570         Reported by Paolo Bonzini.
571
572 2010-09-08  Jim Meyering  <meyering@redhat.com>
573
574         test.sh: disqualify shells for which set -x corrupts stderr
575         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
576         and OpenBSD 4.7.  They make it so with "set -x", environment settings
577         appear in stderr output.  For example, this command:
578             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
579         prints "P=1" on those two systems:
580
581 2010-09-08  Bruno Haible  <bruno@clisp.org>
582
583         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
584         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
585         commands, because some shells ignore redirections when there is an
586         error in the command lookup.
587         Reported by Eric Blake.
588
589 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
590
591         * lib/regex.h: Fix a mention of `regex_compile' (should be
592         `re_compile_pattern').
593         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
594         (re_set_registers): Correct name of parameter in comment.
595
596         * doc/regex.texi: Add documentation for missing syntax flags.
597         Remove commented-out documentation of defunct syntax option
598         RE_NO_EMPTY_ALTS.
599         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
600         Add documentation of re_set_registers.
601         Document trick to re-use a pattern buffer by setting fastmap manually.
602         Update documentation of struct re_pattern_buffer per public members.
603         Uncomment documentation of equivalence class operators and
604         collating symbol operators, since they are now implemented,
605         Explain leftmost-longest matching in relation to alternatives.
606         Tidy documentation of substring matching.
607         Remove POSIX documentation, which is done better in
608         glibc, and refer the reader there. Keep BSD API documentation, as
609         that is not readily available elsewhere.
610
611 2010-09-07  Eric Blake  <eblake@redhat.com>
612
613         getopt: handle POSIXLY_CORRECT set but not exported
614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
615         export state of POSIXLY_CORRECT, due to bash set -o posix.
616         Reported by Dustin J. Mitchell.
617
618 2010-09-05  Bruno Haible  <bruno@clisp.org>
619
620         gnulib-tool: Highlight the changed options.
621         * gnulib-tool (func_usage): Display the --import, --add-import,
622         --remove-import explanations in bold font.
623
624 2010-09-06  Karl Berry  <karl@gnu.org>
625
626         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
627
628 2010-09-05  Bruno Haible  <bruno@clisp.org>
629
630         uniwidth/width: Update comment.
631         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
632         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
633
634 2010-09-05  Bruno Haible  <bruno@clisp.org>
635
636         isinf, isnan: Relax license.
637         * modules/isinf (License): Change from GPL to LGPL, with consent from
638         Ben Pfaff.
639         * modules/isnan (License): Likewise.
640         Requested by Ludovic Courtès.
641
642 2010-09-04  Bruno Haible  <bruno@clisp.org>
643
644         gnulib-tool: Help migration from --import to --add-import or --update.
645         * gnulib-tool: Emit a verbose error message when --import is used
646         without any module name.
647
648 2010-09-04  Bruno Haible  <bruno@clisp.org>
649
650         Update doc about gnulib-tool.
651         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
652         'gnulib-tool --update' in more detail.
653         Reported by Eric Blake.
654
655 2010-09-04  Bruno Haible  <bruno@clisp.org>
656
657         gnulib-tool: Change --import. New options --add/remove-import.
658         * gnulib-tool: New options --add-import, --remove-import.
659         (func_usage): Document them.
660         (have_associative): Define always.
661         (func_import): In import mode, don't merge the specified settings with
662         the cached settings. Implement remove-import mode.
663         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
664         Explain when to use them versus --import.
665         (Simple update): Use --add-import instead of --import.
666         * NEWS: Mention the change.
667
668 2010-09-04  Bruno Haible  <bruno@clisp.org>
669
670         * doc/gnulib-tool.texi (Initial import): Update paragraph about
671         separate gnulib.mk.
672
673 2010-09-04  Bruno Haible  <bruno@clisp.org>
674
675         gnulib-tool: Don't talk about CVS any more.
676         * gnulib-tool (func_usage, func_import): Write "version control"
677         instead of CVS.
678
679 2010-09-04  Jim Meyering  <meyering@redhat.com>
680
681         maint.mk: avoid obscure sc_copyright_check failure in coreutils
682         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
683         false positives (whose names may be ill-chosen) when searching
684         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
685         would cause a false-positive.
686
687         avoid coreutils "make distcheck" failure
688         Coreutils tests with an absolute build directory name that contains
689         a space.  Not quoting this directory name caused a failure.
690         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
691         * tests/test-vc-list-files-cvs.sh: Likewise.
692
693 2010-09-04  Bruno Haible  <bruno@clisp.org>
694
695         gnulib-tool: Avoid error when run in a package without Makefile.am.
696         * gnulib-tool: When collecting the m4dirs in a package that does not
697         have a Makefile.am, eliminate those directories that contain no
698         gnulib-cache.m4. Fix expression that counts these directories.
699
700 2010-09-04  Bruno Haible  <bruno@clisp.org>
701
702         update-copyright test: Improve output when perl is missing or too old.
703         * tests/test-update-copyright.sh: Move test of Perl version down after
704         the test whether Perl exists. Provide an explanation relating Perl's
705         error message to Automake's SKIP: message.
706
707 2010-09-04  Bruno Haible  <bruno@clisp.org>
708
709         Don't augment PATH in TESTS_ENVIRONMENT.
710         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
711         set abs_aux_dir instead of augmenting PATH.
712         * modules/vc-list-files-tests (Makefile.am): Likewise.
713         * tests/test-update-copyright.sh: Augment PATH here.
714         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
715         path_prepend_.
716         * tests/test-vc-list-files-git.sh: Likewise.
717
718 2010-09-04  Jim Meyering  <meyering@redhat.com>
719
720         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
721         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
722
723 2010-09-04  Bruno Haible  <bruno@clisp.org>
724
725         strdup: Fix compilation error in C++ mode.
726         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
727         the macro.
728
729 2010-09-04  Bruno Haible  <bruno@clisp.org>
730
731         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
732         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
733         macro into a function.
734         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
735
736 2010-09-04  Bruno Haible  <bruno@clisp.org>
737
738         Set PATH_SEPARATOR the same way autoconf does.
739         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
740         the value of PATH_SEPARATOR the same way autoconf-generated configure
741         scripts do.
742         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
743         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
744
745 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
746
747         Set PATH_SEPARATOR the same way autoconf does.
748         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
749         the same way autoconf-generated configure scripts do.
750         * posix-modules: Likewise.
751
752 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
753
754         hash: fix safe_hasher const typo
755         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
756         const; otherwise, there is a type error later.
757
758 2010-09-02  Jim Meyering  <meyering@redhat.com>
759
760         test-update-copyright.sh: require perl 5.8.0
761         * tests/test-update-copyright.sh: Require 5.8.0,
762         which Tom G. Christensen has confirmed is adequate,
763         while 5.6.1 is not.
764
765 2010-09-02  Eric Blake  <eblake@redhat.com>
766
767         tests: init.sh improvements for re-exec'ing with zsh
768         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
769         -vx through shell re-exec.
770         Reported by Tom G. Christensen.
771
772         wctype: fix typo in previous commit
773         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
774         Reported by Ludovic Courtès.
775
776 2010-09-02  Jim Meyering  <meyering@redhat.com>
777
778         test-update-copyright.sh: skip test if Perl is too old
779         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
780         Reported by Tom G. Christensen.
781
782 2010-09-02  Bruno Haible  <bruno@clisp.org>
783
784         wctype: Avoid compilation error on IRIX 6.5.30.
785         * lib/wctype.in.h (iswblank): Declare with a replacement if
786         REPLACE_ISWBLANK is set.
787         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
788         declared. Set REPLACE_ISWBLANK.
789         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
790         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
791         * doc/posix-headers/wctype.texi: Likewise.
792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
793
794 2010-09-01  Bruno Haible  <bruno@clisp.org>
795
796         New module 'socketlib'.
797         * modules/socketlib: New file.
798         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
799         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
800         * modules/sockets (Depends-on): Add socketlib.
801         Suggested by Sam Steingold <sds@gnu.org>.
802
803 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
804
805         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
806
807         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
808         when one needs search access to a directory but not read access.
809         On systems where it is available, it works in some cases where
810         O_RDONLY does not, namely on directories that are searchable but
811         not readable, and which need only to be searchable.  If O_SEARCH
812         is not available, fall back to the traditional method of using
813         O_RDONLY.
814
815         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
816         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
817         when opening a directory that needs only to be searchable.
818         * lib/chdir-safer.c (chdir_no_follow): Likewise.
819         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
820         * lib/openat-proc.c (openat_proc_name): Likewise.
821         * lib/openat.c (openat_needs_fchdir): Likewise.
822         * lib/save-cwd.c (save_cwd): Likewise.
823         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
824
825 2010-08-28  Bruno Haible  <bruno@clisp.org>
826
827         New module 'host-cpu-c-abi'.
828         * modules/host-cpu-c-abi: New file.
829         * m4/host-cpu-c-abi.m4: New file, based on part of
830         clisp/src/m4/general.m4.
831         Requested by Sam Steingold <sds@gnu.org>.
832
833 2010-08-31  Eric Blake  <eblake@redhat.com>
834         and Jim Meyering  <meyering@redhat.com>
835
836         hash: factor, and guard against misbehaving hasher function
837         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
838         of table->hasher's return value.  Also protect against a hash value
839         so large that adding it to table->bucket results in a NULL pointer.
840         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
841         Use it in place of open-coded check-and-abort.
842
843 2010-08-30  Bruno Haible  <bruno@clisp.org>
844
845         hash: silence spurious clang warning
846         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
847         Reported by Eric Blake.
848
849 2010-08-30  Eric Blake  <eblake@redhat.com>
850
851         strstr, memmem, strcasestr: avoid leaked shell message
852         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
853         FreeBSD.
854         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
856
857         tests: silence clang warning
858         * tests/test-malloca.c (do_allocation): Avoid dead store.
859
860 2010-08-29  Bruno Haible  <bruno@clisp.org>
861
862         gettext: Fix recent mistake.
863         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
864
865 2010-08-29  Bruno Haible  <bruno@clisp.org>
866
867         selinux-h: Offer a --without-selinux option.
868         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
869         --without-selinux was specified, skip all tests and define
870         HAVE_SELINUX_SELINUX_H to 0.
871         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
872         set LIB_SELINUX to empty.
873         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
874         gl_LIBSELINUX. If --without-selinux was specified, replace
875         selinux/context.h.
876         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
877
878 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
879             Bruno Haible  <bruno@clisp.org>
880
881         Make the module 'realloc-gnu' work again on AIX and OSF/1.
882         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
883         of HAVE_REALLOC.
884         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
885         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
886         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
887         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
888
889 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
890             Bruno Haible  <bruno@clisp.org>
891
892         Make the module 'calloc-gnu' work again on AIX and OSF/1.
893         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
894         HAVE_CALLOC.
895         * lib/xmalloc.c: Update accordingly.
896         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
897         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
898         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
899
900 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
901             Bruno Haible  <bruno@clisp.org>
902
903         Make the module 'malloc-gnu' work again on AIX and OSF/1.
904         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
905         HAVE_MALLOC.
906         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
907         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
908         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
909
910 2010-08-29  Bruno Haible  <bruno@clisp.org>
911
912         Update modules list.
913         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
914         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
915         (String handling <string.h>): Add astrxfrm.
916         (File system functions): Add readlinkat.
917
918 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
919
920         Tests for module 'realloc-gnu'.
921         * modules/realloc-gnu-tests: New file.
922         * tests/test-realloc-gnu.c: New file.
923
924         Tests for module 'calloc-gnu'.
925         * modules/calloc-gnu-tests: New file.
926         * tests/test-calloc-gnu.c: New file.
927
928         Tests for module 'malloc-gnu'.
929         * modules/malloc-gnu-tests: New file.
930         * tests/test-malloc-gnu.c: New file.
931
932 2010-08-28  Bruno Haible  <bruno@clisp.org>
933
934         Rename module 'realloc' -> 'realloc-gnu'.
935         * modules/realloc-gnu: New file, copied from modules/realloc.
936         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
937         obsolete.
938         * modules/mgetgroups (Depends-on): Update.
939         * doc/posix-functions/realloc.texi: Update.
940         * NEWS: Mention the change.
941
942         Rename module 'calloc' -> 'calloc-gnu'.
943         * modules/calloc-gnu: New file, copied from modules/calloc.
944         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
945         obsolete.
946         * doc/posix-functions/calloc.texi: Update.
947         * NEWS: Mention the change.
948
949         Rename module 'malloc' -> 'malloc-gnu'.
950         * modules/malloc-gnu: New file, copied from modules/malloc.
951         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
952         obsolete.
953         * modules/argp (Depends-on): Update.
954         * modules/regex (Depends-on): Update.
955         * doc/posix-functions/malloc.texi: Update.
956         * NEWS: Mention the change.
957
958 2010-08-28  Eric Blake  <eblake@redhat.com>
959
960         pread, pwrite: add missing dependency
961         * modules/pread (Depends-on): Add extensions.
962         * modules/pwrite (Depends-on): Likewise.
963
964 2010-08-28  Bruno Haible  <bruno@clisp.org>
965
966         unistr/u*-strchr: Fix tests dependencies.
967         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
968         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
969         Reported by Ian Beckwith <ianb@erislabs.net>.
970
971 2010-08-28  Bruno Haible  <bruno@clisp.org>
972
973         read-file: Don't occupy too much unused memory.
974         * lib/read-file.c (fread_file): Shrink the buffer at the end.
975
976 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
977             Eric Blake  <eblake@redhat.com>
978             Bruno Haible  <bruno@clisp.org>
979
980         read-file: Avoid memory reallocations with regular files.
981         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
982         (fread_file): With regular files, use the remaining length as the
983         initial buffer size.  Check against overflow.
984         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
985         sys_stat.
986
987 2010-08-28  Bruno Haible  <bruno@clisp.org>
988
989         ftello: Relax license.
990         * modules/ftello (License): Relax to LGPLv2+.
991         Reported by Eric Blake.
992
993 2010-08-28  Bruno Haible  <bruno@clisp.org>
994
995         Avoid relocwrapper link errors due to gnulib replacement functions.
996         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
997         function.
998         Reported by Ben Pfaff <blp@cs.stanford.edu>.
999
1000 2010-08-28  Bruno Haible  <bruno@clisp.org>
1001
1002         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
1003         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
1004         defined.
1005         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
1006         Suggested by Eric Blake.
1007
1008 2010-08-28  Bruno Haible  <bruno@clisp.org>
1009
1010         sys_socket, netdb: Ensure socklen_t gets defined.
1011         * modules/sys_socket (Depends-on): Add socklen.
1012         * modules/netdb (Depends-on): Likewise.
1013         * modules/getaddrinfo (Depends-on): Remove socklen.
1014         * modules/getsockopt (Depends-on): Likewise.
1015         * modules/setsockopt (Depends-on): Likewise.
1016         * tests/test-sys_socket.c: Check that socklen_t is defined.
1017         * tests/test-netdb.c: Likewise.
1018         * m4/socklen.m4: Update comments.
1019         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1020
1021 2010-08-27  Eric Blake  <eblake@redhat.com>
1022
1023         login_tty: add missing dependency
1024         * modules/login_tty (Depends-on): Add pty.
1025
1026 2010-08-26  Eric Blake  <eblake@redhat.com>
1027
1028         lib-symbol-versions: fix m4 quoting
1029         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
1030         format for AC_LINK_IFELSE.
1031
1032         glob: fix compile test
1033         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
1034
1035         btowc: fix missing file
1036         * modules/btowc (Files): Also ship locale-fr.m4.
1037
1038         lseek: fix link test
1039         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
1040         AC_LINK_IFELSE.
1041
1042         include_next: silence autoconf 2.68 warning
1043         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
1044         AC_COMPILE_IFELSE as special.
1045         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
1046         autoconf < 2.68.
1047
1048         acl: fix compilation test
1049         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
1050         AC_COMPILE_IFELSE.
1051
1052 2010-08-26  Bruno Haible  <bruno@clisp.org>
1053
1054         Modernize AC_TRY_RUN invocations.
1055         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
1056         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1057         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
1058         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
1059         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
1060         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1061         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
1062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1063         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1064         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1065         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
1066         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
1067         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
1068         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1069         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
1070         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1071         gl_MBRLEN_NUL_RETVAL): Likewise.
1072         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1073         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
1074         Likewise.
1075         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1076         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1077         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1078         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1079         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
1080         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
1081         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
1082         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1083         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
1084         Likewise.
1085         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
1086         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
1087         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1088         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1089         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1090         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1091         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1092         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
1093         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1095
1096 2010-08-26  Bruno Haible  <bruno@clisp.org>
1097
1098         Modernize AC_TRY_LINK invocations.
1099         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
1100         AC_TRY_LINK.
1101         * m4/argp.m4 (gl_ARGP): Likewise.
1102         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1103         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1104         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
1105         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1106         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1107         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
1108         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1109         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1110         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1111         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1112         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1113         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
1114         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
1115         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1116         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
1117         * m4/hostent.m4 (gl_HOSTENT): Likewise.
1118         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1119         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
1120         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
1121         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
1122         Likewise.
1123         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
1124         Likewise.
1125         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
1126         Likewise.
1127         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
1128         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
1129         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
1130         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1131         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1132         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1133         * m4/servent.m4 (gl_SERVENT): Likewise.
1134         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1135         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1136         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1137         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1138         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1139         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1140         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1141         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1142         * modules/tsearch-tests (configure.ac): Likewise.
1143
1144 2010-08-26  Bruno Haible  <bruno@clisp.org>
1145
1146         Modernize AC_TRY_COMPILE invocations.
1147         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
1148         AC_TRY_COMPILE.
1149         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
1150         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
1151         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
1152         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1153         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
1154         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1155         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1156         * m4/lock.m4 (gl_LOCK): Likewise.
1157         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1158         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1159         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1160         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1161         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1162         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1163         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1165         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1166         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1167         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1168         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1169         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1170         extraneous semicolon.
1171
1172 2010-08-26  Jim Meyering  <meyering@redhat.com>
1173
1174         stat-time: relax license LGPL
1175         * modules/stat-time (License): Change from GPL to LGPL,
1176         with consent from all contributors, for use in libguile.
1177         Requested by Ludovic Courtès.
1178
1179 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1180
1181         poll: return immediately on POLLHUP.
1182         * lib/poll.c (poll): Always set timeout before wait_timeout is
1183         computed.
1184
1185 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1186
1187         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1188         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1189         rmdir ("dir/.//"), unlinkat.
1190
1191 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1192
1193         stdbool: avoid spurious failure with modern xlc
1194         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1195
1196 2010-08-24  Bruno Haible  <bruno@clisp.org>
1197
1198         getloadavg: simplify code
1199         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1200         gl_have_func. Update comments.
1201
1202 2010-08-24  Eric Blake  <eblake@redhat.com>
1203
1204         getloadavg: don't define SVR4 on cygwin
1205         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1206         only define SVR4 when -lkvm is required.
1207         Reported by Yaakov Selkowitz.
1208
1209 2010-08-24  Bruno Haible  <bruno@clisp.org>
1210
1211         priv-set: fix comment
1212         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1213
1214 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1215
1216         priv-set: fix comments
1217         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1218         to match code, as suggested by David Bartley in:
1219         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1220
1221 2010-08-23  Eric Blake  <eblake@redhat.com>
1222
1223         stdbool: avoid rejecting clang
1224         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1225         * tests/test-stdbool.c: Enable more tests if using the system
1226         <stdbool.h> instead of the gnulib replacement.
1227         (main): Move xlc bug test to a runtime test for all compilers.
1228         Reported by Anders Kaseorg.
1229
1230         argz: fix shell quoting issue
1231         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1232         Reported by Charles Wilson.
1233
1234 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1235             Erik Faye-Lund <kusmabite@gmail.com>
1236
1237         poll, select: handle ERROR_BROKEN_PIPE.
1238         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1239         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1240         * lib/select.c (win32_compute_revents): Do not mark a pipe
1241         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1242
1243 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1244
1245         fts: allow compilation with C++
1246         * lib/fts_.h: Specify extern "C" linkage with C++.
1247
1248 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1249
1250         Fix gnulib-tool sed script de-commentation for AIX sed.
1251         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1252         sed.
1253
1254 2010-08-17  Eric Blake  <eblake@redhat.com>
1255
1256         test-stddef: test for (some) offsetof bugs
1257         * tests/test-stddef.c: Enhance test to ensure correct type of
1258         offsetof.
1259         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1260         that we are not fixing at this time.
1261
1262 2010-08-15  Bruno Haible  <bruno@clisp.org>
1263
1264         stpncpy: Allow stpncpy to be defined as a macro.
1265         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1266         if it's already correctly declared.
1267         * lib/string.in.h (stpncpy): Undefine before redefining.
1268         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1269
1270 2010-08-14  Bruno Haible  <bruno@clisp.org>
1271
1272         Rename module 'memxfrm' to 'amemxfrm'.
1273         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1274         (amemxfrm): Renamed from memxfrm.
1275         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1276         (amemxfrm): Renamed from memxfrm.
1277         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1278         * NEWS: Mention the change.
1279         * MODULES.html.sh (String handling <string.h>): Update.
1280         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1281         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1282         * lib/unicase/u16-casexfrm.c: Likewise.
1283         * lib/unicase/u32-casexfrm.c: Likewise.
1284         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1285         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1286         * lib/uninorm/u16-normxfrm.c: Likewise.
1287         * lib/uninorm/u32-normxfrm.c: Likewise.
1288         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1289         memxfrm.
1290         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1291         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1292         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1293         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1294         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1295         Suggested by Paul Eggert.
1296
1297 2010-08-14  Bruno Haible  <bruno@clisp.org>
1298
1299         Tests for module 'astrxfrm'.
1300         * modules/astrxfrm-tests: New file.
1301         * tests/test-astrxfrm.c: New file.
1302
1303         New module 'astrxfrm'.
1304         * lib/astrxfrm.h: New file.
1305         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1306         * modules/astrxfrm: New file.
1307
1308 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1309
1310         regex: Tweak doc.
1311         * doc/regex.texi (Overview): Don't mention regex.c.
1312         (GNU Regular Expression Compiling): Likewise.
1313         (Match-end-of-line Operator): Mention 'not_eol'.
1314
1315 2010-08-14  Brian Gough  <bjg@gnu.org>
1316             Bruno Haible  <bruno@clisp.org>
1317
1318         git-merge-changelog: add doc relating to use with bzr and hg.
1319         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1320
1321 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1322
1323         pthread: fix pthread.h creation for srcdir != builddir
1324         * modules/pthread (Makefile.am): Fix the rule to work also in a
1325         non-srcdir build.
1326
1327 2010-08-13  Karl Berry  <karl@gnu.org>
1328
1329         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1330         * doc/posix-*/*: force line break before @url of POSIX
1331         specifications.
1332         Suggested by Werner Lemberg.
1333
1334 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1335
1336         strtod: fix const diagnostic
1337         * lib/strtod.c (strtod): Don't assign const char * to char *,
1338         as this elicits a warning from GCC when warnings are enabled.
1339
1340 2010-08-10  Pádraig Brady <P@draigbrady.com>
1341         and Eric Blake  <eblake@redhat.com>
1342
1343         copy-acl: ignore ENOTSUP on HP-UX
1344         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1345         so that it is available for HP-UX.
1346         * lib/copy-acl.c (qcopy_acl): Use it.
1347         Reported by Patrick M. Callahan.
1348
1349 2010-08-10  Eric Blake  <eblake@redhat.com>
1350
1351         open, chown: relax license
1352         * modules/open (License): Change to LGPLv2+, with consent by all
1353         authors, for use in augeas.
1354         * modules/chown (License): Likewise.
1355         * modules/lchown (Likewise): Likewise.
1356         Requested by Adam Stokes.
1357
1358 2010-08-09  Karl Berry  <karl@gnu.org>
1359
1360         * build-aux/ar-lib: new file, import from Automake.
1361         * config/srclist.txt: autocheck for updates.
1362
1363 2010-08-09  Eric Blake  <eblake@redhat.com>
1364
1365         readlinkat: adjust client modules
1366         * modules/areadlinkat (Depends-on): Use readlinkat, not
1367         symlinkat.
1368         * modules/areadlinkat-with-size (Depends-on): Likewise.
1369
1370         mknod: be more vocal about danger of running tests as root
1371         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1372         root, since that is just asking for problems.
1373         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1374
1375         readlinkat: split into its own module
1376         * modules/symlinkat: Split readlinkat...
1377         * modules/readlinkat: ...into separate module.
1378         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1379         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1380         * lib/symlinkat.c (readlinkat): Move...
1381         * lib/readlinkat.c: ...into new file.
1382         * modules/symlinkat-tests: Split readlinkat test...
1383         * modules/readlinkat-tests: ...into separate module.
1384         * tests/test-symlinkat.c: Split...
1385         * tests/test-readlinkat.c: ...into new file.
1386         * NEWS: Document the split.
1387         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1388         * lib/unistd.in.h (readlinkat): Likewise.
1389         Suggested by Bruno Haible.
1390
1391 2010-08-08  Bruno Haible  <bruno@clisp.org>
1392
1393         memxfrm: Speed up.
1394         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1395         that usually only one call to strxfrm is necessary for each string
1396         part.
1397         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1398
1399 2010-08-07  Karl Berry  <karl@gnu.org>
1400
1401         * doc/posix-headers/limits.texi,
1402         * doc/posix-functions/malloc.texi,
1403         * doc/posix-functions/strsignal.texi: missing @item.
1404         * doc/ld-version-script.texi: spurious leading i.
1405         * doc/regex.texi (Interval Operators): no commas inside @var.
1406
1407 2010-08-01  Bruno Haible  <bruno@clisp.org>
1408
1409         Integrate the regex documentation.
1410         * doc/gnulib.texi: Define 'cn' index.
1411         (Regular expressions): New a chapter that includes regex.texi and
1412         regexprops-generic.texi.
1413         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1414         syntax.
1415
1416         Whitespace cleanup.
1417         * doc/regex.texi: Remove trailing spaces.
1418
1419         Add regex documentation.
1420         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1421         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1422         Written by Kathy A. Hargreaves and Karl Berry.
1423
1424 2010-08-01  Bruno Haible  <bruno@clisp.org>
1425
1426         link: Update documentation.
1427         * doc/posix-functions/link.texi: Update regarding Solaris.
1428
1429 2010-07-31  Bruno Haible  <bruno@clisp.org>
1430
1431         Update modules list.
1432         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1433         (String handling <string.h>): Add memcmp2, memxfrm.
1434         (Container data structures): Add xlist, xsublist, xoset.
1435         (Core language properties): Add alignof, unused-parameter.
1436         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1437         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1438         (Unibyte characters <ctype.h>): New section.
1439         (String handling <string.h>): New section.
1440         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1441         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1442         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1443         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1444         tan, tanh, tanl, y0, y1, yn.
1445         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1446         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1447         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1448         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1449         unlockpt, vdprintf, vdprintf-posix.
1450         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1451         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1452         xconcat-filename.
1453         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1454         getdtablesize, pipe2, pipe2-safer.
1455         (Security): New section.
1456         (Networking functions): Add accept4.
1457         (Signal handling): Add sigpipe.
1458         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1459         mbmemcasecoll.
1460         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1461         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1462         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1463         pipe-filter-ii.
1464         (Misc): Add argp-version-etc, login_tty, parse-duration.
1465
1466 2010-07-31  Bruno Haible  <bruno@clisp.org>
1467
1468         Improve doc in MODULES.html.
1469         * modules/linkat (Description): Add the word "function".
1470         * modules/mkfifo (Description): Likewise.
1471         * modules/mknod (Description): Likewise.
1472         * modules/remove (Description): Likewise.
1473         * modules/renameat (Description): Likewise.
1474         * modules/stat (Description): Likewise.
1475         * modules/symlink (Description): Likewise.
1476         * modules/unlink (Description): Likewise.
1477
1478 2010-07-31  Bruno Haible  <bruno@clisp.org>
1479
1480         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1481         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1482         option --enable/disable-c++ instead of --enable/disable-cxx.
1483         * NEWS: Mention the change.
1484
1485 2010-07-31  Bruno Haible  <bruno@clisp.org>
1486
1487         readlink, areadlink: Relax test a bit.
1488         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1489         alternative to ENOTDIR.
1490         * tests/test-areadlink.h (test_areadlink): Likewise.
1491         Reported by Rainer Tammer.
1492
1493 2010-07-31  Bruno Haible  <bruno@clisp.org>
1494
1495         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1496         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1497         character, perform the search using U_STRCHR.
1498         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1499         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1500         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1501         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1502         Suggested by Paolo Bonzini.
1503
1504 2010-07-31  Bruno Haible  <bruno@clisp.org>
1505
1506         unistr/u*-strstr: Fix dependencies.
1507         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1508         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1509         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1510
1511 2010-07-31  Bruno Haible  <bruno@clisp.org>
1512
1513         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1514         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1515         the beginning of the loop.
1516         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1517         cases in 'switch' statement.
1518
1519         unistr/u8-strchr: Fix several bugs.
1520         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1521         the string. When not found, return NULL, not a pointer near the end.
1522
1523         More tests for unistr/u8-strchr.
1524         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1525         that the function does not read past the first occurrence of the byte
1526         being searched.
1527         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1528         * tests/unistr/test-u16-strchr.c (main): New function.
1529         * tests/unistr/test-u32-strchr.c (main): New function.
1530
1531 2010-07-31  Bruno Haible  <bruno@clisp.org>
1532
1533         posix-modules: Ignore backup files of documentation files.
1534         * posix-modules: grep only through files named *.texi.
1535
1536 2010-07-31  Bruno Haible  <bruno@clisp.org>
1537
1538         symlinkat: Fix documentation.
1539         * doc/posix-functions/readlinkat.texi: Fix module name.
1540
1541 2010-07-31  Bruno Haible  <bruno@clisp.org>
1542
1543         fchownat: Replace also when chown has the trailing slash bug.
1544         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1545         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1546         introduced on 2010-04-10.
1547         Reported by Rainer Tammer.
1548
1549 2010-07-31  Bruno Haible  <bruno@clisp.org>
1550
1551         linkat: Work around AIX 7.1 bug.
1552         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1553         whether linkat handles trailing slash correctly. If not, replace linkat
1554         and define LINKAT_TRAILING_SLASH_BUG.
1555         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1556         check whether (fd1,file1) points to a directory if file1 or file2 ends
1557         in a slash. Code taken from lib/link.c.
1558         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1559         Reported by Rainer Tammer.
1560
1561 2010-07-31  Bruno Haible  <bruno@clisp.org>
1562
1563         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1564         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1565         This disables an xlc optimization that was causing wrong test results.
1566         Reported by Rainer Tammer.
1567
1568 2010-07-31  Bruno Haible  <bruno@clisp.org>
1569
1570         iconv: Work around AIX 6.1..7.1 bug.
1571         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1572         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1573         cross-compiling, guess no on all versions of AIX.
1574         Reported by Rainer Tammer.
1575
1576 2010-07-31  Bruno Haible  <bruno@clisp.org>
1577
1578         readlink: Relax test a bit.
1579         * tests/test-readlink.h (test_readlink): Allow different errno value
1580         when readlink is called with a file name that ends in / and refers to
1581         a file.
1582         Suggested by Eric Blake.
1583         Reported by Rainer Tammer.
1584
1585 2010-07-31  Bruno Haible  <bruno@clisp.org>
1586
1587         copysign: Does not require -lm on glibc systems.
1588         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1589         gl_COMMON_DOUBLE_MATHFUNC.
1590         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1591
1592 2010-07-31  Bruno Haible  <bruno@clisp.org>
1593
1594         duplocale: Work around AIX 7.1 bug.
1595         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1596         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1597         * lib/duplocale.c (rpl_duplocale): Update comment.
1598         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1599         Reported by Rainer Tammer.
1600
1601 2010-07-30  Bruno Haible  <bruno@clisp.org>
1602
1603         dirfd: Avoid link error on AIX 7.1.
1604         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1605         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1606         exist, set REPLACE_DIRFD.
1607         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1608         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1609         * doc/posix-functions/dirfd.texi: Update.
1610         Reported by Rainer Tammer.
1611
1612 2010-07-30  Eric Blake  <eblake@redhat.com>
1613
1614         strtod: next round of AIX fixes
1615         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1616         exponent.
1617         * tests/test-strtod.c (main): Enhance tests.
1618         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1619         Reported by Rainer Tammer.
1620
1621         futimens: fix configure check
1622         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1623         Reported by Bruno Haible.
1624
1625 2010-07-30  Bruno Haible  <bruno@clisp.org>
1626
1627         getline: Update regarding AIX.
1628         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1629         Reported by Rainer Tammer.
1630
1631 2010-07-30  Bruno Haible  <bruno@clisp.org>
1632
1633         wcwidth: Drop replacement on AIX 7.
1634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1635         AIX 7.
1636         Reported by Rainer Tammer.
1637
1638 2010-07-30  Bruno Haible  <bruno@clisp.org>
1639
1640         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1641         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1642         a 'char *'.
1643         Reported by Rainer Tammer.
1644
1645 2010-07-30  Bruno Haible  <bruno@clisp.org>
1646
1647         unlink: Update regarding AIX.
1648         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1649         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1650         Reported by Rainer Tammer.
1651
1652 2010-07-30  Bruno Haible  <bruno@clisp.org>
1653
1654         symlink: Update regarding AIX.
1655         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1656         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1657         Reported by Rainer Tammer.
1658
1659 2010-07-30  Bruno Haible  <bruno@clisp.org>
1660
1661         strndup: Update regarding AIX.
1662         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1663         AIX 7.
1664         Reported by Rainer Tammer.
1665
1666 2010-07-30  Bruno Haible  <bruno@clisp.org>
1667
1668         stat: Update regarding AIX.
1669         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1670         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1671         Reported by Rainer Tammer.
1672
1673 2010-07-30  Bruno Haible  <bruno@clisp.org>
1674
1675         truncl: Fix autoconf test.
1676         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1677         whether truncl works.
1678         Reported by Rainer Tammer.
1679
1680 2010-07-30  Bruno Haible  <bruno@clisp.org>
1681
1682         round: Update regarding AIX.
1683         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1684         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1685         Reported by Rainer Tammer.
1686
1687 2010-07-30  Bruno Haible  <bruno@clisp.org>
1688
1689         rename: Update regarding AIX.
1690         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1691         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1692         Reported by Rainer Tammer.
1693
1694 2010-07-30  Bruno Haible  <bruno@clisp.org>
1695
1696         printf.m4: Update regarding AIX.
1697         * m4/printf.m4: Update comments regarding AIX.
1698         Reported by Rainer Tammer.
1699
1700 2010-07-30  Bruno Haible  <bruno@clisp.org>
1701
1702         iconv: Update regarding AIX.
1703         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1704         AIX 7.
1705         Reported by Rainer Tammer.
1706
1707 2010-07-30  Bruno Haible  <bruno@clisp.org>
1708
1709         getopt: Update regarding AIX.
1710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1711         no on AIX.
1712         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1713         Reported by Rainer Tammer.
1714
1715 2010-07-30  Bruno Haible  <bruno@clisp.org>
1716
1717         ldexpl; Update regarding AIX.
1718         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1719         on AIX 7.
1720         Reported by Rainer Tammer.
1721
1722 2010-07-30  Bruno Haible  <bruno@clisp.org>
1723
1724         frexpl: Update regarding AIX.
1725         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1726         on AIX 7.
1727         Reported by Rainer Tammer.
1728
1729 2010-07-30  Bruno Haible  <bruno@clisp.org>
1730
1731         open, fopen: Update regarding AIX.
1732         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1733         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1734         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1735         * doc/posix-functions/fopen.texi: Likewise.
1736         Reported by Rainer Tammer.
1737
1738 2010-07-30  Bruno Haible  <bruno@clisp.org>
1739
1740         chown: Update doc regarding AIX.
1741         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1742         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1743         Reported by Rainer Tammer.
1744
1745 2010-07-30  Eric Blake  <eblake@redhat.com>
1746
1747         strtod: fix bug in replacement function on AIX
1748         * lib/strtod.c (strtod): Special case broken "0x" parse in
1749         underlying strtod.
1750         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1751         * doc/posix-functions/strtod.texi (strtod): Likewise.
1752         Reported by Rainer Tammer.
1753
1754 2010-07-30  Bruno Haible  <bruno@clisp.org>
1755
1756         mbrlen: Fix cross-compilation guess for AIX.
1757         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1758         guess. Leftover from 2008-12-22.
1759
1760 2010-07-30  Bruno Haible  <bruno@clisp.org>
1761
1762         mbrtowc: Fix cross-compilation guess for AIX.
1763         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1764         guess. Leftover from 2008-12-21.
1765
1766 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1767
1768         init.sh: work around trap limitation of some shells
1769         * tests/init.sh (setup_): Move exit trap outside of shell function.
1770
1771 2010-07-29  Eric Blake  <eblake@redhat.com>
1772
1773         strtod: aid debugging
1774         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1775         understanding why strtod is rejected.
1776
1777 2010-07-28  Bruno Haible  <bruno@clisp.org>
1778
1779         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1780         * lib/unistr/u8-chr.c: Include <string.h>.
1781         * tests/unistr/test-u8-chr.c: Likewise.
1782         * tests/unistr/test-u16-chr.c: Likewise.
1783         * tests/unistr/test-u32-chr.c: Likewise.
1784         * tests/unistr/test-u8-strchr.c: Likewise.
1785         * tests/unistr/test-u16-strchr.c: Likewise.
1786         * tests/unistr/test-u32-strchr.c: Likewise.
1787         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1788         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1789         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1790         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1791
1792 2010-07-28  Bruno Haible  <bruno@clisp.org>
1793
1794         Use spaces for indentation, not tabs.
1795         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1796
1797 2010-07-27  Bruno Haible  <bruno@clisp.org>
1798
1799         mbspcasecmp: Fix function specification.
1800         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1801         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1802         Reported by Eric Blake <eblake@redhat.com>.
1803
1804 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1805
1806         timespec: use cast and not conditional, as truncation isn't possible
1807         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1808         instead of a conditional.  Comment about the situation in more detail.
1809         This undoes most of the 2009-10-29 patch.
1810
1811 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1812
1813         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1814         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1815         * lib/unistr/u8-strchr.c: Likewise.
1816         * modules/unistr/u8-chr: Depend on memchr.
1817
1818         unistr/u*-strchr: add tests
1819         * modules/unistr/u8-strchr-tests: New file.
1820         * modules/unistr/u16-strchr-tests: New file.
1821         * modules/unistr/u32-strchr-tests: New file.
1822         * tests/unistr/test-strchr.h: New file.
1823         * tests/unistr/test-u8-strchr.c: New file.
1824         * tests/unistr/test-u16-strchr.c: New file.
1825         * tests/unistr/test-u32-strchr.c: New file.
1826
1827         unistr/u*-chr: test multibyte sequences more
1828         * tests/unistr/test-chr.h: Do complete testing of the characters in the
1829         test vector.
1830         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
1831         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
1832         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
1833
1834         unistr/u*-chr: test multibyte sequences
1835         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
1836
1837         unistr/u*-chr: prepare for multibyte tests
1838         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
1839         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
1840         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
1841         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
1842         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
1843         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
1844
1845 2010-07-18  Bruno Haible  <bruno@clisp.org>
1846
1847         unistr/u8-strchr: Optimize non-ASCII argument case.
1848         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
1849         because the first byte often matches anyway.
1850         Reported by Pádraig Brady <P@draigbrady.com>.
1851
1852 2010-07-15  Karl Berry  <karl@gnu.org>
1853
1854         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
1855
1856 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
1857
1858         getcwd: on Solaris, work better if ancestors are inaccessible
1859         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
1860         buffer and size, try again with a large buffer.  This works better
1861         on Solaris, since its getcwd succeeds even if the path to the root
1862         is inaccessible, and this is helpful in common cases such as .zfs
1863         hidden directories.  Problem reported by J Chapman Flack in
1864         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
1865         Use system getcwd if it's declared, not merely if it's partly
1866         working; use the partly-working test only to avoid needless effort
1867         if the system getcwd fails.
1868         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
1869         comment that was already obsolete and is now even more obsolete.
1870         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
1871         now might call strdup.
1872
1873 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
1874
1875         pthread: Add enough so that coreutils/src/sort.c compiles.
1876         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
1877         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
1878         gnulib. Include <sched.h> and <time.h>, as per POSIX.
1879         Include <sys/types.h>, in case it defines pthread_t.
1880         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
1881         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
1882         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
1883         (pthread_rwlockattr_t, pthread_spinlock_t):
1884         New typedefs, if HAVE_PTHREAD_T is not defined.
1885         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
1886         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
1887         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
1888         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
1889         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
1890         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
1891         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
1892         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
1893         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
1894         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
1895         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
1896         New macros.
1897         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
1898         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
1899         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
1900         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
1901         (pthread_spin_unlock): New dummy functions.
1902         (pthread_create): Return EAGAIN; don't set errno.
1903         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
1904         require AC_C_INLINE.
1905         * modules/pthread (Depends-on): Add sched, time.
1906         (pthread.h): Use AM_V_GEN.
1907
1908 2010-07-13  Bruno Haible  <bruno@clisp.org>
1909
1910         striconveh: Don't malloc memory if the result buffer is sufficient.
1911         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
1912         buffer if its size is sufficient.
1913         Reported by Ludovic Courtès <ludo@gnu.org>.
1914
1915 2010-07-13  Bruno Haible  <bruno@clisp.org>
1916
1917         strtod: Add safety check.
1918         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
1919
1920 2010-07-12  Bruno Haible  <bruno@clisp.org>
1921
1922         Unify tests that set gl_cv_func_ldexpl_no_libm.
1923         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
1924         gl_FUNC_LDEXPL.
1925         (gl_FUNC_LDEXPL): Invoke it.
1926         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1927
1928 2010-07-12  Bruno Haible  <bruno@clisp.org>
1929
1930         Unify tests that set gl_cv_func_ldexp_no_libm.
1931         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
1932         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
1933         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
1934         (configure.ac): Simply invoke gl_FUNC_LDEXP.
1935         * modules/strtod (Files): Add m4/ldexp.m4.
1936
1937 2010-07-12  Bruno Haible  <bruno@clisp.org>
1938
1939         Unify tests that set gl_cv_func_frexpl_no_libm.
1940         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
1941         gl_FUNC_FREXPL_NO_LIBM.
1942         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
1943         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1944
1945 2010-07-12  Bruno Haible  <bruno@clisp.org>
1946
1947         Unify tests that set gl_cv_func_frexp_no_libm.
1948         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
1949         gl_FUNC_FREXP_NO_LIBM.
1950         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
1951         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1952
1953 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1954
1955         memcoll: clarify sizes versus lengths, document better, and tweak perf
1956         * lib/memcoll.c (strcoll_loop, memcoll0):
1957         Improve quality of descriptive comments.  Name variables
1958         consistently as to whether they are lengths (which do not include
1959         terminating null) versus sizes (which do).
1960         * lib/xmemcoll.c (xmemcoll0): Likewise.
1961         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
1962         returned when s1size == 0; this is easier to compile and saves
1963         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
1964
1965 2010-07-12  Bruno Haible  <bruno@clisp.org>
1966
1967         Tests for module '_Exit'.
1968         * modules/_Exit-tests: New file.
1969         * tests/test-_Exit.sh: New file.
1970         * tests/test-_Exit.c: New file.
1971
1972         New module '_Exit'.
1973         * lib/stdlib.in.h (__attribute__): New macro.
1974         (_Exit): New declaration.
1975         * lib/_Exit.c: New file.
1976         * m4/_Exit.m4: New file.
1977         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
1978         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
1979         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
1980         * modules/_Exit: New file.
1981         * tests/test-stdlib-c++.cc (_Exit): Check signature.
1982         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
1983
1984 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
1985
1986         strtod: make it more-accurate typically, and don't require libm
1987         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
1988         Include limits.h.  Don't include string.h.
1989         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
1990         (locale_isspace): New function, so that no casts are needed to
1991         check whether *s is a space.
1992         (ldexp): Provide an unused dummy if not available.
1993         (scale_radix_exp, parse_number, underlying_strtod): New functions.
1994         (strtod): Use them.  This implementation prefers to use the
1995         underlying strtod if available, falling back on our own code
1996         only to fix known bugs.  This is more likely to produce an
1997         accurate result.  Also, it avoids the use of libm functions.
1998         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
1999         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
2000         was absent, but it caused a test failure with coreutils.
2001         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
2002         with libm.
2003         * modules/strtod (Makefile.am, Link): libm is no longer needed.
2004         * modules/strtod-tests (Makefile.am): Likewise.
2005
2006 2010-07-11  Pádraig Brady  <P@draigBrady.com>
2007             Bruno Haible  <bruno@clisp.org>
2008
2009         unistr/u8-strchr: Optimize ASCII argument case.
2010         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
2011
2012 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2013
2014         (x)memcoll: minor tweaks
2015         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
2016         is after the type that it qualifies.
2017         (memcoll0): Likewise.
2018         * lib/memcoll.h (memcoll0): Likewise.
2019         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
2020         * lib/xmemcoll.h (xmemcoll0): Likewise.
2021         * lib/memcoll.c (memcoll0): Correct the comment.  This function
2022         differs from memcoll in that the NUL byte is part of the argument.
2023         Omit the abort-checks, as performance is a real issue here.  Plus,
2024         the checks were wrong anyway (an off-by-one error).  Omit local
2025         variable 'diff', as it's a bit clearer that way.
2026         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
2027         no longer needed.
2028
2029 2010-07-08  Chen Guo <chenguo4@yahoo.com>
2030
2031         (x)memcoll: speedup when input is known to be NUL delimited
2032         * lib/memcoll.c: Include stdlib.
2033         (memcoll0) New function.
2034         (strcoll_loop) New function, refactored for use in both memcoll
2035         and memcoll0.
2036         * lib/memcoll.h: Add prototype for memcoll0.
2037         * lib/xmemcoll.c: (xmemcoll0) New function.
2038         (collate_error) New function, refactored for use in both xmemcoll
2039         and xmemcoll0.
2040         * lib/xmemcoll.h: Add prototype for xmemcoll0.
2041         * m4/memcoll.m4: add inline invocation.
2042
2043 2010-07-06  Pádraig Brady  <P@draigBrady.com>
2044
2045         * build-aux/bootstrap: Remove any local translations
2046         from the translation project synchronization directory,
2047         so that local only translations are not distributed.
2048
2049 2010-07-04  Bruno Haible  <bruno@clisp.org>
2050
2051         fsusage: Clarify which code applies to which platforms.
2052         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
2053         platform.
2054         * lib/fsusage.c (get_fs_usage): Likewise.
2055
2056 2010-07-04  Bruno Haible  <bruno@clisp.org>
2057
2058         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
2059         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
2060         Reported by Martin Lambers <marlam@marlam.de>.
2061
2062 2010-07-04  Jim Meyering  <meyering@redhat.com>
2063
2064         hash: once again explicitly disallow insertion of NULL
2065         * lib/hash.c (hash_insert0): Reinstate just-removed test:
2066         inserting a NULL pointer cannot work with these functions.
2067         Add a comment with details.
2068         This reverts part of the 2010-07-01 commit, 5bef1a35
2069         "hash: extend module to deal with non-pointer keys".
2070
2071 2010-07-01  Bruno Haible  <bruno@clisp.org>
2072
2073         stdbool: Update doc.
2074         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
2075         Info from Christian Weisgerber <naddy@mips.inka.de>.
2076
2077 2010-07-01  Jim Meyering  <meyering@redhat.com>
2078
2079         hash: extend module to deal with non-pointer keys
2080         * lib/hash.c (hash_insert0): New interface, much like hash_insert
2081         but that allows insertion of non-pointer entries.
2082         Do not disallow an ENTRY value of NULL.
2083         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
2084         * lib/hash.h (hash_insert0): Declare.
2085
2086 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2087
2088         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
2089         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
2090         not present (i.e. with autoconf 2.59 and when using gettextize, not
2091         gnulib), require AC_GNU_SOURCE instead.
2092
2093 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
2094
2095         idpriv-drop: Fix tests.
2096         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
2097         not to the test-idpriv-droptemp program.
2098
2099 2010-06-29  Bruno Haible  <bruno@clisp.org>
2100
2101         string: Fix syntax error with g++ 2.96.
2102         * lib/string.in.h (__pure__): Remove definition.
2103         (_GL_ATTRIBUTE_PURE): New macro.
2104         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
2105         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
2106         Reported by Christian Weisgerber <naddy@mips.inka.de>.
2107
2108 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
2109
2110         unitypes: Fix bug introduced on 2010-05-18.
2111         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
2112
2113 2010-06-22  Eric Blake  <eblake@redhat.com>
2114
2115         memmem: slight optimization
2116         * lib/str-two-way.h (critical_factorization): Update comments.
2117         Reduce work during factorization phase.
2118         Reported by Carlos Bueno <carlos@bueno.org>.
2119
2120 2010-06-21  Bruno Haible  <bruno@clisp.org>
2121
2122         Fix HAVE_CALLOC_POSIX misnomer.
2123         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
2124         !HAVE_CALLOC_POSIX.
2125         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
2126         HAVE_CALLOC_POSIX.
2127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
2128         instead of HAVE_CALLOC_POSIX.
2129         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
2130         HAVE_CALLOC_POSIX.
2131
2132         Use modern idiom for calloc() replacement.
2133         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
2134         AC_FUNC_CALLOC.
2135         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
2136         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
2137         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2138         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
2139         (gl_REPLACE_CALLOC): New macro.
2140
2141 2010-06-21  Bruno Haible  <bruno@clisp.org>
2142
2143         Fix HAVE_REALLOC_POSIX misnomer.
2144         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
2145         !HAVE_REALLOC_POSIX.
2146         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
2147         HAVE_REALLOC_POSIX.
2148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
2149         instead of HAVE_REALLOC_POSIX.
2150         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
2151         HAVE_REALLOC_POSIX.
2152
2153         Use modern idiom for realloc() replacement.
2154         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
2155         AC_FUNC_REALLOC.
2156         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
2157         Autoconf's AC_FUNC_REALLOC.
2158         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2159         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2160         (gl_REPLACE_REALLOC): New macro.
2161         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2162
2163 2010-06-21  Bruno Haible  <bruno@clisp.org>
2164
2165         Fix HAVE_MALLOC_POSIX misnomer.
2166         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2167         !HAVE_MALLOC_POSIX.
2168         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2169         HAVE_MALLOC_POSIX.
2170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2171         instead of HAVE_MALLOC_POSIX.
2172         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2173         HAVE_MALLOC_POSIX.
2174
2175         Use modern idiom for malloc() replacement.
2176         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2177         AC_FUNC_MALLOC.
2178         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2179         Autoconf's AC_FUNC_MALLOC.
2180         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2181         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2182         (gl_REPLACE_MALLOC): New macro.
2183         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2184
2185 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2186
2187         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2188         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2189         This macro takes 3 arguments, not 4.
2190
2191 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2192
2193         ipv6: fix detection under mingw
2194         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2195         in6_addr.
2196
2197 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2198
2199         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2200         that strtod() works when cross-compiling to a glibc version known
2201         to work.
2202
2203 2010-06-15  Bruno Haible  <bruno@clisp.org>
2204
2205         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2206
2207 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2208
2209         select: Correct timeout.
2210         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2211
2212 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2213
2214         git-version-gen: init shell var to avoid env var influence
2215         * build-aux/git-version-gen (v): Init shell var to empty.
2216
2217 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2218
2219         priv-set: Don't assume that priv.h exists merely because getppriv does.
2220         See Jan Andersen's bug report about AIX 5L in
2221         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2222         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2223         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2224         * lib/priv-set.h: Likewise.
2225         * tests/test-priv-set.c: Likewise.
2226
2227 2010-06-13  Bruno Haible  <bruno@clisp.org>
2228
2229         relocatable: Make it easier to test whether to install wrappers.
2230         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2231         RELOCATABLE_VIA_WRAPPER.
2232
2233 2010-06-13  Bruno Haible  <bruno@clisp.org>
2234
2235         gnulib-tool: Display specified modules and dependencies differently.
2236         * gnulib-tool (func_show_module_list): New function.
2237         (func_import, func_create_testdir): Invoke it.
2238         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2239
2240 2010-06-13  Bruno Haible  <bruno@clisp.org>
2241
2242         gnulib-tool: Align code of func_import and func_create_testdir.
2243         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2244         specified_modules.
2245
2246 2010-06-12  Jim Meyering  <meyering@redhat.com>
2247
2248         test-inttostr: avoid spurious failure on Solaris 9
2249         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2250         to accept "%ju".  Reported by Bruno Haible.
2251
2252 2010-06-11  Jim Meyering  <meyering@redhat.com>
2253
2254         test-sys_socket: mark variables as used more readably
2255         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2256         as "used" explicitly via (void) statement casts.  This is more
2257         readable than using them in an artificial return expression.
2258         Suggestion from Bruno Haible.
2259
2260 2010-06-11  Bruno Haible  <bruno@clisp.org>
2261
2262         Avoid some more warnings from "gcc -Wwrite-strings".
2263         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2264         to 'const char *'.
2265         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2266         * tests/test-c-strcasestr.c (main): Likewise.
2267         * tests/test-mbscasestr1.c (main): Likewise.
2268         * tests/test-mbscasestr2.c (main): Likewise.
2269         * tests/test-memmem.c (main): Likewise.
2270         * tests/test-strstr.c (main): Likewise.
2271         * tests/test-strcasestr.c (main): Likewise.
2272
2273 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2274
2275         init.sh: change framework_failure_ to fail with status 99, not 1
2276         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2277         automake's parallel-tests rule that this is an unexpected failure,
2278         even if the test is listed in XFAIL_TESTS.
2279
2280 2010-06-11  Jim Meyering  <meyering@redhat.com>
2281
2282         test-inttostr: avoid warnings about 4-6KB literal strings
2283         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2284         Include "macros.h", for its definition of ASSERT.
2285         (CK): s/assert/ASSERT/
2286         * modules/inttostr-tests (Files): Add macros.h.
2287
2288         init.sh: don't use $ME_ or skip_ before they are defined
2289         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2290         their first uses.  Also hoist their companions: warn_, fail_,
2291         framework_failure_, $stderr_fileno.  Prompted by a patch from
2292         Stefano Lattarini.
2293
2294         test-sys_socket: avoid set-but-not-used warnings from gcc
2295         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2296         avoid warning about set-but-not-used variables.
2297
2298         test-xvasprintf: avoid 'const' discard warnings
2299         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2300         "const" when assigning from literal strings.
2301         (test_xasprintf): Add "void" in function argument list to placate
2302         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2303
2304         tests: avoid compilation warnings in argmatch and exclude tests...
2305         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2306         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2307         Since it always exits, declare with the "noreturn" attribute.
2308         * tests/test-argmatch.c: Likewise.
2309
2310         tests: avoid 'const' discard warnings in mbsstr tests
2311         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2312         * tests/test-mbsstr2.c (main): Likewise.
2313
2314         test-verify: avoid warning from gcc's -Wmissing-declarations
2315         * tests/test-verify.c (function): Declare to be static.
2316
2317         test-inttostr.c: include <string.h> for use of strcmp
2318         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2319
2320         test-linkat: avoid failed assertion on "other" architectures
2321         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2322         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2323         sparc: https://bugs.launchpad.net/bugs/591968
2324
2325 2010-06-11  Jim Meyering  <meyering@redhat.com>
2326
2327         printf.m4: avoid autoconf's "Expanded Before Required" warning
2328         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2329         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2330         autoconf warning.
2331
2332 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2333
2334         Replacement header templates are now named with ".in", not "_".
2335         * doc/gnulib-intro.texi: Correct.
2336
2337 2010-06-10  Jim Meyering  <meyering@redhat.com>
2338
2339         inttostr-tests: depend on snprintf, not snprintf-posix
2340         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2341         snprintf-posix, to avoid this aclocal failure:
2342           missing file gnulib-tests/vasnprintf.c
2343           configure.ac:45: error: expected source file, required through \
2344           AC_LIBSOURCES, not found
2345
2346 2010-06-10  Jim Meyering  <meyering@redhat.com>
2347
2348         inttostr: add a new function, inttostr, and tests
2349         The namesake function was not available.  The existence of the
2350         template file, inttostr.c makes its addition nontrivial.
2351         * lib/anytostr.c: Rename from inttostr.c.
2352         (anytostr): Rename from inttostr.
2353         * lib/inttostr.c: New file.
2354         * modules/inttostr (Files): Add anytostr.c.
2355         (Makefile.am): Set lib_SOURCES instead of ...
2356         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2357         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2358         * lib/offtostr.c: Likewise.
2359         * lib/uinttostr.c: Likewise.
2360         * lib/umaxtostr.c: Likewise.
2361         * modules/inttostr-tests: New file.
2362         * tests/test-inttostr.c: New file.  Test these functions.
2363
2364 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2365             Bruno Haible  <bruno@clisp.org>
2366
2367         Add "Extending Gnulib" chapter to manual.
2368         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2369         chapter.
2370         (Extending Gnulib): New chapter.
2371         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2372         chapter.
2373
2374 2010-06-09  Bruno Haible  <bruno@clisp.org>
2375
2376         Avoid relocwrapper link errors due to gnulib replacement functions.
2377         * lib/areadlink.c: Use the system's malloc, realloc functions.
2378         (areadlink): Set errno to ENOMEM explicitly.
2379         * modules/areadlink (Depends-on): Remove malloc-posix.
2380         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2381
2382 2010-06-09  Bruno Haible  <bruno@clisp.org>
2383
2384         Avoid relocwrapper link errors due to gnulib replacement functions.
2385         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2386         * lib/malloca.c: Likewise.
2387         * lib/relocatable.c: Likewise.
2388         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2389         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2390         * lib/setenv.c: Use the system's malloc, realloc functions.
2391         * lib/strerror.c: Use the system's sprintf function.
2392         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2393
2394 2010-06-04  Bruno Haible  <bruno@clisp.org>
2395
2396         Prefer documented low-level autoconf macro names.
2397         * m4/lib-link.m4: Use m4_translit instead of translit.
2398         * m4/environ.m4: Likewise.
2399         * m4/mathfunc.m4: Likewise.
2400         * m4/onceonly.m4: Likewise.
2401         * m4/stdint.m4: Likewise.
2402         Suggested by Eric Blake.
2403
2404 2010-06-04  Martin Lambers  <marlam@marlam.de>
2405             Bruno Haible  <bruno@clisp.org>
2406
2407         havelib: Allow library names with '+' characters.
2408         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2409         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2410
2411 2010-06-09  Bruno Haible  <bruno@clisp.org>
2412
2413         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2414         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2415         realloc failed.
2416
2417 2010-06-08  Peter Simons  <simons@cryp.to>
2418
2419         maint.mk: make the news-check rule more configurable
2420         * top/maint.mk (news-check-lines-spec) New variable.
2421         (news-check): Use "sed -n 1,10p" in place of "head".
2422
2423 2010-06-07  Jim Meyering  <meyering@redhat.com>
2424
2425         do-release-commit-and-tag: fix typo in --help
2426         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2427
2428         regex: avoid new dead-code warning with gcc-4.6.0
2429         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2430         if-block containing a while-loop.  It's been unused for at least
2431         5 years.
2432
2433 2010-06-05  Bruno Haible  <bruno@clisp.org>
2434
2435         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2436         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2437
2438 2010-06-04  Bruno Haible  <bruno@clisp.org>
2439
2440         Update to GNU gettext 0.18.1.
2441         * modules/gettext (configure.ac): Require gettext infrastructure from
2442         version 0.18.1.
2443
2444 2010-06-03  Bruno Haible  <bruno@clisp.org>
2445
2446         Don't use AC_LIBOBJ with file names in subdirectories.
2447         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2448         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2449         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2450         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2451         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2452         gl_LIBUNISTRING_LIBSOURCE.
2453         (Makefile.am): Augment lib_SOURCES here, conditionally.
2454         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2455
2456 2010-06-03  Bruno Haible  <bruno@clisp.org>
2457
2458         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2459         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2460         expansion does not end with a newline.
2461         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2462         unnecessary newline.
2463
2464 2010-06-03  Bruno Haible  <bruno@clisp.org>
2465
2466         Reduce dependencies.
2467         * tests/test-quotearg.h: New file, extracted from
2468         tests/test-quotearg.c.
2469         * tests/test-quotearg-simple.c: New file, extracted from
2470         tests/test-quotearg.c.
2471         * tests/test-quotearg.c: Don't include <ctype.h>.
2472         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2473         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2474         use_quote_double_quotes, use_quotearg_colon): Moved to
2475         tests/test-quotearg.h.
2476         (results_g, flag_results, custom_quotes, custom_results): Moved
2477         to tests/test-quotearg-simple.c.
2478         (main): Moved the part that does not depend on gettext to
2479         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2480         performed.
2481         * modules/quotearg-simple: New file.
2482         * modules/quotearg-simple-tests: New file.
2483         * modules/quotearg (Depends-on): Add quotearg-simple.
2484         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2485         (Files): Add tests/test-quotearg.h.
2486         Reported by Paolo Bonzini.
2487
2488 2010-06-03  Bruno Haible  <bruno@clisp.org>
2489
2490         Reduce dependencies.
2491         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2492
2493 2010-06-03  Bruno Haible  <bruno@clisp.org>
2494
2495         time: Undefine more broken macros.
2496         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2497         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2498         Reported by Eric Blake.
2499
2500 2010-06-03  Bruno Haible  <bruno@clisp.org>
2501
2502         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2503         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2504         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2505         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2506         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2507         Reported by Ludovic Courtès <ludo@gnu.org>.
2508
2509 2010-06-02  Eric Blake  <eblake@redhat.com>
2510
2511         time: work with mingw + pthreads-win32 library
2512         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2513         if timespec is defined only in pthread.h.
2514         * modules/time (Makefile.am): Substitute it.
2515         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2516         <pthread.h>, when needed.
2517         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2518         from the library.
2519
2520 2010-05-31  Bruno Haible  <bruno@clisp.org>
2521
2522         Avoid expanding two macros in the wrong order.
2523         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2524         gl_LIBUNISTRING if it is defined.
2525         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2526         autoconf >= 2.64.
2527         Reported by Ludovic Courtès <ludo@gnu.org>.
2528
2529 2010-05-27  Jim Meyering  <meyering@redhat.com>
2530
2531         maint.mk: also prohibit "#undef" of always-defined symbols
2532         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2533         Allow more than one space before the symbol name.
2534         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2535         the regexp uses alternation.
2536
2537 2010-05-26  Eric Blake  <eblake@redhat.com>
2538
2539         maint.mk: avoid echo -e
2540         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2541         Convert all uses of echo -* to printf.
2542         Reported by Matthias Bolte.
2543
2544 2010-05-25  Bruno Haible  <bruno@clisp.org>
2545
2546         Update to GNU gettext 0.18, part 2.
2547         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2548         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2549
2550 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2551
2552         Add missing include in test-pwrite.c.
2553         * tests/test-pwrite.c: Include string.h, for strcmp.
2554
2555 2010-05-24  Bruno Haible  <bruno@clisp.org>
2556
2557         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2558
2559 2010-05-24  Bruno Haible  <bruno@clisp.org>
2560
2561         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2562         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2563         iconveh_error argument.
2564         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2565         U_STRCONV_TO_LOCALE.
2566         * lib/unistr/u16-strcoll.c: Likewise.
2567         * lib/unistr/u32-strcoll.c: Likewise.
2568         * modules/unistr/u8-strcoll (Depends-on): Add
2569         uniconv/u8-strconv-to-enc, localcharset. Remove
2570         uniconv/u8-strconv-to-locale.
2571         (configure.ac): Bump version number.
2572         * modules/unistr/u16-strcoll (Depends-on): Add
2573         uniconv/u16-strconv-to-enc, localcharset. Remove
2574         uniconv/u16-strconv-to-locale.
2575         (configure.ac): Bump version number.
2576         * modules/unistr/u32-strcoll (Depends-on): Add
2577         uniconv/u32-strconv-to-enc, localcharset. Remove
2578         uniconv/u32-strconv-to-locale.
2579         (configure.ac): Bump version number.
2580
2581 2010-05-24  Bruno Haible  <bruno@clisp.org>
2582
2583         Avoid a test failure on NetBSD 5.0.
2584         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2585         an iconv() bug.
2586
2587 2010-05-24  Bruno Haible  <bruno@clisp.org>
2588
2589         Adjust #include directive style.
2590         * modules/regex (Includes): Recommend to write <regex.h>.
2591
2592 2010-05-24  Bruno Haible  <bruno@clisp.org>
2593
2594         regex: Don't require alloca.
2595         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2596         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2597         only inside if (0).
2598
2599 2010-05-23  Jim Meyering  <meyering@redhat.com>
2600
2601         test-renameat.c: include <sys/stat.h>
2602         * tests/test-renameat.c: Include <sys/stat.h>; required for
2603         definition of S_IS* macros.
2604
2605 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2606
2607         Update maintainer documentation for 'relocatable-prog' module.
2608         * doc/relocatable-maint.texi: Update.
2609         Comments by Bruno Haible.
2610
2611 2010-05-23  Bruno Haible  <bruno@clisp.org>
2612
2613         git-merge-changelog: Enable --split-merged-entry by default.
2614         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2615         (usage): Don't mention this option any more.
2616         Reported by Ralf Wildenhues.
2617
2618 2010-05-23  Jim Meyering  <meyering@redhat.com>
2619
2620         test-pwrite: do not leave behind a test file named "out"
2621         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2622         The trivial-looking use of init.sh is really necessary.
2623         It ensures that the temporary file, "out", is created in
2624         a temporary directory, and removed upon termination.
2625         * tests/test-pwrite.sh: Re-add file.
2626         * modules/pwrite-tests: Reference it.
2627
2628 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2629
2630         Fix output redirection buglet in init.sh.
2631         * tests/init.sh: Fix redirection of stderr.
2632
2633 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2634
2635         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2636
2637 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2638
2639         * modules/valgrind-tests: New file.
2640         * m4/valgrind-tests.m4: New file.
2641         * doc/valgrind-tests.texi: New file.
2642         * doc/gnulib.texi (Running self-tests under valgrind): New
2643         section.
2644
2645 2010-05-19  Bruno Haible  <bruno@clisp.org>
2646
2647         Clean up dead code in recent commit.
2648         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2649         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2650         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2651         Suggested by Paolo Bonzini.
2652
2653 2010-05-19  Bruno Haible  <bruno@clisp.org>
2654
2655         Avoid valgrind error reports from libunistring.
2656         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2657         * modules/libunistring (Files): Add it.
2658         * modules/libunistring-optional (Files): Likewise.
2659
2660 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2661             Bruno Haible  <bruno@clisp.org>
2662
2663         New module 'libunistring-optional'.
2664         * modules/libunistring-optional: New file.
2665         * m4/libunistring-base.m4: New file.
2666         * m4/libunistring-optional.m4: New file.
2667         * lib/unicase.in.h: Renamed from lib/unicase.h.
2668         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2669         * lib/unictype.in.h: Renamed from lib/unictype.h.
2670         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2671         * lib/uniname.in.h: Renamed from lib/uniname.h.
2672         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2673         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2674         * lib/unistr.in.h: Renamed from lib/unistr.h.
2675         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2676         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2677         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2678         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2679         gl_LIBUNISTRING. If the library was found, determine the installed
2680         version and set LIBUNISTRING_VERSION.
2681         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2682         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2683         handle a configuration option --with-included-libunistring.
2684         * modules/libunistring (Files): Add m4/absolute-header.m4.
2685         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2686         Add m4/libunistring-base.m4.
2687         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2688         (Makefile.am): Build unicase.h from unicase.in.h.
2689         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2690         Add m4/libunistring-base.m4.
2691         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2692         (Makefile.am): Build uniconv.h from uniconv.in.h.
2693         * modules/unictype/base (Files): Use unictype.in.h instead of
2694         unictype.h. Add m4/libunistring-base.m4.
2695         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2696         (Makefile.am): Build unictype.h from unictype.in.h.
2697         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2698         Add m4/libunistring-base.m4.
2699         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2700         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2701         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2702         Add m4/libunistring-base.m4.
2703         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2704         (Makefile.am): Build uniname.h from uniname.in.h.
2705         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2706         Add m4/libunistring-base.m4.
2707         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2708         (Makefile.am): Build uninorm.h from uninorm.in.h.
2709         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2710         unistdio.h. Add m4/libunistring-base.m4.
2711         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2712         (Makefile.am): Build unistdio.h from unistdio.in.h.
2713         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2714         Add m4/libunistring-base.m4.
2715         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2716         (Makefile.am): Build unistr.h from unistr.in.h.
2717         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2718         Add m4/libunistring-base.m4.
2719         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2720         (Makefile.am): Build unitypes.h from unitypes.in.h.
2721         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2722         Add m4/libunistring-base.m4.
2723         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2724         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2725         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2726         uniwidth.h. Add m4/libunistring-base.m4.
2727         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2728         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2729         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2730         instead of augmenting lib_SOURCES.
2731         * modules/unicase/empty-suffix-context: Likewise.
2732         * modules/unicase/locale-language: Likewise.
2733         * modules/unicase/tolower: Likewise.
2734         * modules/unicase/totitle: Likewise.
2735         * modules/unicase/toupper: Likewise.
2736         * modules/unicase/u8-casecmp: Likewise.
2737         * modules/unicase/u8-casecoll: Likewise.
2738         * modules/unicase/u8-casefold: Likewise.
2739         * modules/unicase/u8-casexfrm: Likewise.
2740         * modules/unicase/u8-ct-casefold: Likewise.
2741         * modules/unicase/u8-ct-tolower: Likewise.
2742         * modules/unicase/u8-ct-totitle: Likewise.
2743         * modules/unicase/u8-ct-toupper: Likewise.
2744         * modules/unicase/u8-is-cased: Likewise.
2745         * modules/unicase/u8-is-casefolded: Likewise.
2746         * modules/unicase/u8-is-lowercase: Likewise.
2747         * modules/unicase/u8-is-titlecase: Likewise.
2748         * modules/unicase/u8-is-uppercase: Likewise.
2749         * modules/unicase/u8-prefix-context: Likewise.
2750         * modules/unicase/u8-suffix-context: Likewise.
2751         * modules/unicase/u8-tolower: Likewise.
2752         * modules/unicase/u8-totitle: Likewise.
2753         * modules/unicase/u8-toupper: Likewise.
2754         * modules/unicase/u16-casecmp: Likewise.
2755         * modules/unicase/u16-casecoll: Likewise.
2756         * modules/unicase/u16-casefold: Likewise.
2757         * modules/unicase/u16-casexfrm: Likewise.
2758         * modules/unicase/u16-ct-casefold: Likewise.
2759         * modules/unicase/u16-ct-tolower: Likewise.
2760         * modules/unicase/u16-ct-totitle: Likewise.
2761         * modules/unicase/u16-ct-toupper: Likewise.
2762         * modules/unicase/u16-is-cased: Likewise.
2763         * modules/unicase/u16-is-casefolded: Likewise.
2764         * modules/unicase/u16-is-lowercase: Likewise.
2765         * modules/unicase/u16-is-titlecase: Likewise.
2766         * modules/unicase/u16-is-uppercase: Likewise.
2767         * modules/unicase/u16-prefix-context: Likewise.
2768         * modules/unicase/u16-suffix-context: Likewise.
2769         * modules/unicase/u16-tolower: Likewise.
2770         * modules/unicase/u16-totitle: Likewise.
2771         * modules/unicase/u16-toupper: Likewise.
2772         * modules/unicase/u32-casecmp: Likewise.
2773         * modules/unicase/u32-casecoll: Likewise.
2774         * modules/unicase/u32-casefold: Likewise.
2775         * modules/unicase/u32-casexfrm: Likewise.
2776         * modules/unicase/u32-ct-casefold: Likewise.
2777         * modules/unicase/u32-ct-tolower: Likewise.
2778         * modules/unicase/u32-ct-totitle: Likewise.
2779         * modules/unicase/u32-ct-toupper: Likewise.
2780         * modules/unicase/u32-is-cased: Likewise.
2781         * modules/unicase/u32-is-casefolded: Likewise.
2782         * modules/unicase/u32-is-lowercase: Likewise.
2783         * modules/unicase/u32-is-titlecase: Likewise.
2784         * modules/unicase/u32-is-uppercase: Likewise.
2785         * modules/unicase/u32-prefix-context: Likewise.
2786         * modules/unicase/u32-suffix-context: Likewise.
2787         * modules/unicase/u32-tolower: Likewise.
2788         * modules/unicase/u32-totitle: Likewise.
2789         * modules/unicase/u32-toupper: Likewise.
2790         * modules/unicase/ulc-casecmp: Likewise.
2791         * modules/unicase/ulc-casecoll: Likewise.
2792         * modules/unicase/ulc-casexfrm: Likewise.
2793         * modules/uniconv/u8-conv-from-enc: Likewise.
2794         * modules/uniconv/u8-conv-to-enc: Likewise.
2795         * modules/uniconv/u8-strconv-from-enc: Likewise.
2796         * modules/uniconv/u8-strconv-from-locale: Likewise.
2797         * modules/uniconv/u8-strconv-to-enc: Likewise.
2798         * modules/uniconv/u8-strconv-to-locale: Likewise.
2799         * modules/uniconv/u16-conv-from-enc: Likewise.
2800         * modules/uniconv/u16-conv-to-enc: Likewise.
2801         * modules/uniconv/u16-strconv-from-enc: Likewise.
2802         * modules/uniconv/u16-strconv-from-locale: Likewise.
2803         * modules/uniconv/u16-strconv-to-enc: Likewise.
2804         * modules/uniconv/u16-strconv-to-locale: Likewise.
2805         * modules/uniconv/u32-conv-from-enc: Likewise.
2806         * modules/uniconv/u32-conv-to-enc: Likewise.
2807         * modules/uniconv/u32-strconv-from-enc: Likewise.
2808         * modules/uniconv/u32-strconv-from-locale: Likewise.
2809         * modules/uniconv/u32-strconv-to-enc: Likewise.
2810         * modules/uniconv/u32-strconv-to-locale: Likewise.
2811         * modules/unictype/bidicategory-byname: Likewise.
2812         * modules/unictype/bidicategory-name: Likewise.
2813         * modules/unictype/bidicategory-of: Likewise.
2814         * modules/unictype/bidicategory-test: Likewise.
2815         * modules/unictype/block-list: Likewise.
2816         * modules/unictype/block-test: Likewise.
2817         * modules/unictype/category-C: Likewise.
2818         * modules/unictype/category-Cc: Likewise.
2819         * modules/unictype/category-Cf: Likewise.
2820         * modules/unictype/category-Cn: Likewise.
2821         * modules/unictype/category-Co: Likewise.
2822         * modules/unictype/category-Cs: Likewise.
2823         * modules/unictype/category-L: Likewise.
2824         * modules/unictype/category-Ll: Likewise.
2825         * modules/unictype/category-Lm: Likewise.
2826         * modules/unictype/category-Lo: Likewise.
2827         * modules/unictype/category-Lt: Likewise.
2828         * modules/unictype/category-Lu: Likewise.
2829         * modules/unictype/category-M: Likewise.
2830         * modules/unictype/category-Mc: Likewise.
2831         * modules/unictype/category-Me: Likewise.
2832         * modules/unictype/category-Mn: Likewise.
2833         * modules/unictype/category-N: Likewise.
2834         * modules/unictype/category-Nd: Likewise.
2835         * modules/unictype/category-Nl: Likewise.
2836         * modules/unictype/category-No: Likewise.
2837         * modules/unictype/category-P: Likewise.
2838         * modules/unictype/category-Pc: Likewise.
2839         * modules/unictype/category-Pd: Likewise.
2840         * modules/unictype/category-Pe: Likewise.
2841         * modules/unictype/category-Pf: Likewise.
2842         * modules/unictype/category-Pi: Likewise.
2843         * modules/unictype/category-Po: Likewise.
2844         * modules/unictype/category-Ps: Likewise.
2845         * modules/unictype/category-S: Likewise.
2846         * modules/unictype/category-Sc: Likewise.
2847         * modules/unictype/category-Sk: Likewise.
2848         * modules/unictype/category-Sm: Likewise.
2849         * modules/unictype/category-So: Likewise.
2850         * modules/unictype/category-Z: Likewise.
2851         * modules/unictype/category-Zl: Likewise.
2852         * modules/unictype/category-Zp: Likewise.
2853         * modules/unictype/category-Zs: Likewise.
2854         * modules/unictype/category-and: Likewise.
2855         * modules/unictype/category-and-not: Likewise.
2856         * modules/unictype/category-byname: Likewise.
2857         * modules/unictype/category-name: Likewise.
2858         * modules/unictype/category-none: Likewise.
2859         * modules/unictype/category-of: Likewise.
2860         * modules/unictype/category-or: Likewise.
2861         * modules/unictype/category-test: Likewise.
2862         * modules/unictype/combining-class: Likewise.
2863         * modules/unictype/ctype-alnum: Likewise.
2864         * modules/unictype/ctype-alpha: Likewise.
2865         * modules/unictype/ctype-blank: Likewise.
2866         * modules/unictype/ctype-cntrl: Likewise.
2867         * modules/unictype/ctype-digit: Likewise.
2868         * modules/unictype/ctype-graph: Likewise.
2869         * modules/unictype/ctype-lower: Likewise.
2870         * modules/unictype/ctype-print: Likewise.
2871         * modules/unictype/ctype-punct: Likewise.
2872         * modules/unictype/ctype-space: Likewise.
2873         * modules/unictype/ctype-upper: Likewise.
2874         * modules/unictype/ctype-xdigit: Likewise.
2875         * modules/unictype/decimal-digit: Likewise.
2876         * modules/unictype/digit: Likewise.
2877         * modules/unictype/mirror: Likewise.
2878         * modules/unictype/numeric: Likewise.
2879         * modules/unictype/property-alphabetic: Likewise.
2880         * modules/unictype/property-ascii-hex-digit: Likewise.
2881         * modules/unictype/property-bidi-arabic-digit: Likewise.
2882         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
2883         * modules/unictype/property-bidi-block-separator: Likewise.
2884         * modules/unictype/property-bidi-boundary-neutral: Likewise.
2885         * modules/unictype/property-bidi-common-separator: Likewise.
2886         * modules/unictype/property-bidi-control: Likewise.
2887         * modules/unictype/property-bidi-embedding-or-override: Likewise.
2888         * modules/unictype/property-bidi-eur-num-separator: Likewise.
2889         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
2890         * modules/unictype/property-bidi-european-digit: Likewise.
2891         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
2892         * modules/unictype/property-bidi-left-to-right: Likewise.
2893         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
2894         * modules/unictype/property-bidi-other-neutral: Likewise.
2895         * modules/unictype/property-bidi-pdf: Likewise.
2896         * modules/unictype/property-bidi-segment-separator: Likewise.
2897         * modules/unictype/property-bidi-whitespace: Likewise.
2898         * modules/unictype/property-byname: Likewise.
2899         * modules/unictype/property-combining: Likewise.
2900         * modules/unictype/property-composite: Likewise.
2901         * modules/unictype/property-currency-symbol: Likewise.
2902         * modules/unictype/property-dash: Likewise.
2903         * modules/unictype/property-decimal-digit: Likewise.
2904         * modules/unictype/property-default-ignorable-code-point: Likewise.
2905         * modules/unictype/property-deprecated: Likewise.
2906         * modules/unictype/property-diacritic: Likewise.
2907         * modules/unictype/property-extender: Likewise.
2908         * modules/unictype/property-format-control: Likewise.
2909         * modules/unictype/property-grapheme-base: Likewise.
2910         * modules/unictype/property-grapheme-extend: Likewise.
2911         * modules/unictype/property-grapheme-link: Likewise.
2912         * modules/unictype/property-hex-digit: Likewise.
2913         * modules/unictype/property-hyphen: Likewise.
2914         * modules/unictype/property-id-continue: Likewise.
2915         * modules/unictype/property-id-start: Likewise.
2916         * modules/unictype/property-ideographic: Likewise.
2917         * modules/unictype/property-ids-binary-operator: Likewise.
2918         * modules/unictype/property-ids-trinary-operator: Likewise.
2919         * modules/unictype/property-ignorable-control: Likewise.
2920         * modules/unictype/property-iso-control: Likewise.
2921         * modules/unictype/property-join-control: Likewise.
2922         * modules/unictype/property-left-of-pair: Likewise.
2923         * modules/unictype/property-line-separator: Likewise.
2924         * modules/unictype/property-logical-order-exception: Likewise.
2925         * modules/unictype/property-lowercase: Likewise.
2926         * modules/unictype/property-math: Likewise.
2927         * modules/unictype/property-non-break: Likewise.
2928         * modules/unictype/property-not-a-character: Likewise.
2929         * modules/unictype/property-numeric: Likewise.
2930         * modules/unictype/property-other-alphabetic: Likewise.
2931         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
2932         * modules/unictype/property-other-grapheme-extend: Likewise.
2933         * modules/unictype/property-other-id-continue: Likewise.
2934         * modules/unictype/property-other-id-start: Likewise.
2935         * modules/unictype/property-other-lowercase: Likewise.
2936         * modules/unictype/property-other-math: Likewise.
2937         * modules/unictype/property-other-uppercase: Likewise.
2938         * modules/unictype/property-paired-punctuation: Likewise.
2939         * modules/unictype/property-paragraph-separator: Likewise.
2940         * modules/unictype/property-pattern-syntax: Likewise.
2941         * modules/unictype/property-pattern-white-space: Likewise.
2942         * modules/unictype/property-private-use: Likewise.
2943         * modules/unictype/property-punctuation: Likewise.
2944         * modules/unictype/property-quotation-mark: Likewise.
2945         * modules/unictype/property-radical: Likewise.
2946         * modules/unictype/property-sentence-terminal: Likewise.
2947         * modules/unictype/property-soft-dotted: Likewise.
2948         * modules/unictype/property-space: Likewise.
2949         * modules/unictype/property-terminal-punctuation: Likewise.
2950         * modules/unictype/property-test: Likewise.
2951         * modules/unictype/property-titlecase: Likewise.
2952         * modules/unictype/property-unassigned-code-value: Likewise.
2953         * modules/unictype/property-unified-ideograph: Likewise.
2954         * modules/unictype/property-uppercase: Likewise.
2955         * modules/unictype/property-variation-selector: Likewise.
2956         * modules/unictype/property-white-space: Likewise.
2957         * modules/unictype/property-xid-continue: Likewise.
2958         * modules/unictype/property-xid-start: Likewise.
2959         * modules/unictype/property-zero-width: Likewise.
2960         * modules/unictype/scripts: Likewise.
2961         * modules/unictype/syntax-c-ident: Likewise.
2962         * modules/unictype/syntax-c-whitespace: Likewise.
2963         * modules/unictype/syntax-java-ident: Likewise.
2964         * modules/unictype/syntax-java-whitespace: Likewise.
2965         * modules/unilbrk/u8-possible-linebreaks: Likewise.
2966         * modules/unilbrk/u8-width-linebreaks: Likewise.
2967         * modules/unilbrk/u16-possible-linebreaks: Likewise.
2968         * modules/unilbrk/u16-width-linebreaks: Likewise.
2969         * modules/unilbrk/u32-possible-linebreaks: Likewise.
2970         * modules/unilbrk/u32-width-linebreaks: Likewise.
2971         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
2972         * modules/unilbrk/ulc-width-linebreaks: Likewise.
2973         * modules/uniname/uniname: Likewise.
2974         * modules/uninorm/canonical-decomposition: Likewise.
2975         * modules/uninorm/composition: Likewise.
2976         * modules/uninorm/decomposing-form: Likewise.
2977         * modules/uninorm/decomposition: Likewise.
2978         * modules/uninorm/filter: Likewise.
2979         * modules/uninorm/nfc: Likewise.
2980         * modules/uninorm/nfd: Likewise.
2981         * modules/uninorm/nfkc: Likewise.
2982         * modules/uninorm/nfkd: Likewise.
2983         * modules/uninorm/u8-normalize: Likewise.
2984         * modules/uninorm/u8-normcmp: Likewise.
2985         * modules/uninorm/u8-normcoll: Likewise.
2986         * modules/uninorm/u8-normxfrm: Likewise.
2987         * modules/uninorm/u16-normalize: Likewise.
2988         * modules/uninorm/u16-normcmp: Likewise.
2989         * modules/uninorm/u16-normcoll: Likewise.
2990         * modules/uninorm/u16-normxfrm: Likewise.
2991         * modules/uninorm/u32-normalize: Likewise.
2992         * modules/uninorm/u32-normcmp: Likewise.
2993         * modules/uninorm/u32-normcoll: Likewise.
2994         * modules/uninorm/u32-normxfrm: Likewise.
2995         * modules/unistdio/u8-asnprintf: Likewise.
2996         * modules/unistdio/u8-asprintf: Likewise.
2997         * modules/unistdio/u8-snprintf: Likewise.
2998         * modules/unistdio/u8-sprintf: Likewise.
2999         * modules/unistdio/u8-u8-asnprintf: Likewise.
3000         * modules/unistdio/u8-u8-asprintf: Likewise.
3001         * modules/unistdio/u8-u8-snprintf: Likewise.
3002         * modules/unistdio/u8-u8-sprintf: Likewise.
3003         * modules/unistdio/u8-u8-vasnprintf: Likewise.
3004         * modules/unistdio/u8-u8-vasprintf: Likewise.
3005         * modules/unistdio/u8-u8-vsnprintf: Likewise.
3006         * modules/unistdio/u8-u8-vsprintf: Likewise.
3007         * modules/unistdio/u8-vasnprintf: Likewise.
3008         * modules/unistdio/u8-vasprintf: Likewise.
3009         * modules/unistdio/u8-vsnprintf: Likewise.
3010         * modules/unistdio/u8-vsprintf: Likewise.
3011         * modules/unistdio/u16-asnprintf: Likewise.
3012         * modules/unistdio/u16-asprintf: Likewise.
3013         * modules/unistdio/u16-snprintf: Likewise.
3014         * modules/unistdio/u16-sprintf: Likewise.
3015         * modules/unistdio/u16-u16-asnprintf: Likewise.
3016         * modules/unistdio/u16-u16-asprintf: Likewise.
3017         * modules/unistdio/u16-u16-snprintf: Likewise.
3018         * modules/unistdio/u16-u16-sprintf: Likewise.
3019         * modules/unistdio/u16-u16-vasnprintf: Likewise.
3020         * modules/unistdio/u16-u16-vasprintf: Likewise.
3021         * modules/unistdio/u16-u16-vsnprintf: Likewise.
3022         * modules/unistdio/u16-u16-vsprintf: Likewise.
3023         * modules/unistdio/u16-vasnprintf: Likewise.
3024         * modules/unistdio/u16-vasprintf: Likewise.
3025         * modules/unistdio/u16-vsnprintf: Likewise.
3026         * modules/unistdio/u16-vsprintf: Likewise.
3027         * modules/unistdio/u32-asnprintf: Likewise.
3028         * modules/unistdio/u32-asprintf: Likewise.
3029         * modules/unistdio/u32-snprintf: Likewise.
3030         * modules/unistdio/u32-sprintf: Likewise.
3031         * modules/unistdio/u32-u32-asnprintf: Likewise.
3032         * modules/unistdio/u32-u32-asprintf: Likewise.
3033         * modules/unistdio/u32-u32-snprintf: Likewise.
3034         * modules/unistdio/u32-u32-sprintf: Likewise.
3035         * modules/unistdio/u32-u32-vasnprintf: Likewise.
3036         * modules/unistdio/u32-u32-vasprintf: Likewise.
3037         * modules/unistdio/u32-u32-vsnprintf: Likewise.
3038         * modules/unistdio/u32-u32-vsprintf: Likewise.
3039         * modules/unistdio/u32-vasnprintf: Likewise.
3040         * modules/unistdio/u32-vasprintf: Likewise.
3041         * modules/unistdio/u32-vsnprintf: Likewise.
3042         * modules/unistdio/u32-vsprintf: Likewise.
3043         * modules/unistdio/ulc-asnprintf: Likewise.
3044         * modules/unistdio/ulc-asprintf: Likewise.
3045         * modules/unistdio/ulc-fprintf: Likewise.
3046         * modules/unistdio/ulc-snprintf: Likewise.
3047         * modules/unistdio/ulc-sprintf: Likewise.
3048         * modules/unistdio/ulc-vasnprintf: Likewise.
3049         * modules/unistdio/ulc-vasprintf: Likewise.
3050         * modules/unistdio/ulc-vfprintf: Likewise.
3051         * modules/unistdio/ulc-vsnprintf: Likewise.
3052         * modules/unistdio/ulc-vsprintf: Likewise.
3053         * modules/unistr/u8-check: Likewise.
3054         * modules/unistr/u8-chr: Likewise.
3055         * modules/unistr/u8-cmp: Likewise.
3056         * modules/unistr/u8-cmp2: Likewise.
3057         * modules/unistr/u8-cpy: Likewise.
3058         * modules/unistr/u8-cpy-alloc: Likewise.
3059         * modules/unistr/u8-endswith: Likewise.
3060         * modules/unistr/u8-mblen: Likewise.
3061         * modules/unistr/u8-mbsnlen: Likewise.
3062         * modules/unistr/u8-mbtouc: Likewise.
3063         * modules/unistr/u8-mbtouc-unsafe: Likewise.
3064         * modules/unistr/u8-mbtoucr: Likewise.
3065         * modules/unistr/u8-move: Likewise.
3066         * modules/unistr/u8-next: Likewise.
3067         * modules/unistr/u8-prev: Likewise.
3068         * modules/unistr/u8-set: Likewise.
3069         * modules/unistr/u8-startswith: Likewise.
3070         * modules/unistr/u8-stpcpy: Likewise.
3071         * modules/unistr/u8-stpncpy: Likewise.
3072         * modules/unistr/u8-strcat: Likewise.
3073         * modules/unistr/u8-strchr: Likewise.
3074         * modules/unistr/u8-strcmp: Likewise.
3075         * modules/unistr/u8-strcoll: Likewise.
3076         * modules/unistr/u8-strcpy: Likewise.
3077         * modules/unistr/u8-strcspn: Likewise.
3078         * modules/unistr/u8-strdup: Likewise.
3079         * modules/unistr/u8-strlen: Likewise.
3080         * modules/unistr/u8-strmblen: Likewise.
3081         * modules/unistr/u8-strmbtouc: Likewise.
3082         * modules/unistr/u8-strncat: Likewise.
3083         * modules/unistr/u8-strncmp: Likewise.
3084         * modules/unistr/u8-strncpy: Likewise.
3085         * modules/unistr/u8-strnlen: Likewise.
3086         * modules/unistr/u8-strpbrk: Likewise.
3087         * modules/unistr/u8-strrchr: Likewise.
3088         * modules/unistr/u8-strspn: Likewise.
3089         * modules/unistr/u8-strstr: Likewise.
3090         * modules/unistr/u8-strtok: Likewise.
3091         * modules/unistr/u8-to-u16: Likewise.
3092         * modules/unistr/u8-to-u32: Likewise.
3093         * modules/unistr/u8-uctomb: Likewise.
3094         * modules/unistr/u16-check: Likewise.
3095         * modules/unistr/u16-chr: Likewise.
3096         * modules/unistr/u16-cmp: Likewise.
3097         * modules/unistr/u16-cmp2: Likewise.
3098         * modules/unistr/u16-cpy: Likewise.
3099         * modules/unistr/u16-cpy-alloc: Likewise.
3100         * modules/unistr/u16-endswith: Likewise.
3101         * modules/unistr/u16-mblen: Likewise.
3102         * modules/unistr/u16-mbsnlen: Likewise.
3103         * modules/unistr/u16-mbtouc: Likewise.
3104         * modules/unistr/u16-mbtouc-unsafe: Likewise.
3105         * modules/unistr/u16-mbtoucr: Likewise.
3106         * modules/unistr/u16-move: Likewise.
3107         * modules/unistr/u16-next: Likewise.
3108         * modules/unistr/u16-prev: Likewise.
3109         * modules/unistr/u16-set: Likewise.
3110         * modules/unistr/u16-startswith: Likewise.
3111         * modules/unistr/u16-stpcpy: Likewise.
3112         * modules/unistr/u16-stpncpy: Likewise.
3113         * modules/unistr/u16-strcat: Likewise.
3114         * modules/unistr/u16-strchr: Likewise.
3115         * modules/unistr/u16-strcmp: Likewise.
3116         * modules/unistr/u16-strcoll: Likewise.
3117         * modules/unistr/u16-strcpy: Likewise.
3118         * modules/unistr/u16-strcspn: Likewise.
3119         * modules/unistr/u16-strdup: Likewise.
3120         * modules/unistr/u16-strlen: Likewise.
3121         * modules/unistr/u16-strmblen: Likewise.
3122         * modules/unistr/u16-strmbtouc: Likewise.
3123         * modules/unistr/u16-strncat: Likewise.
3124         * modules/unistr/u16-strncmp: Likewise.
3125         * modules/unistr/u16-strncpy: Likewise.
3126         * modules/unistr/u16-strnlen: Likewise.
3127         * modules/unistr/u16-strpbrk: Likewise.
3128         * modules/unistr/u16-strrchr: Likewise.
3129         * modules/unistr/u16-strspn: Likewise.
3130         * modules/unistr/u16-strstr: Likewise.
3131         * modules/unistr/u16-strtok: Likewise.
3132         * modules/unistr/u16-to-u32: Likewise.
3133         * modules/unistr/u16-to-u8: Likewise.
3134         * modules/unistr/u16-uctomb: Likewise.
3135         * modules/unistr/u32-check: Likewise.
3136         * modules/unistr/u32-chr: Likewise.
3137         * modules/unistr/u32-cmp: Likewise.
3138         * modules/unistr/u32-cmp2: Likewise.
3139         * modules/unistr/u32-cpy: Likewise.
3140         * modules/unistr/u32-cpy-alloc: Likewise.
3141         * modules/unistr/u32-endswith: Likewise.
3142         * modules/unistr/u32-mblen: Likewise.
3143         * modules/unistr/u32-mbsnlen: Likewise.
3144         * modules/unistr/u32-mbtouc: Likewise.
3145         * modules/unistr/u32-mbtouc-unsafe: Likewise.
3146         * modules/unistr/u32-mbtoucr: Likewise.
3147         * modules/unistr/u32-move: Likewise.
3148         * modules/unistr/u32-next: Likewise.
3149         * modules/unistr/u32-prev: Likewise.
3150         * modules/unistr/u32-set: Likewise.
3151         * modules/unistr/u32-startswith: Likewise.
3152         * modules/unistr/u32-stpcpy: Likewise.
3153         * modules/unistr/u32-stpncpy: Likewise.
3154         * modules/unistr/u32-strcat: Likewise.
3155         * modules/unistr/u32-strchr: Likewise.
3156         * modules/unistr/u32-strcmp: Likewise.
3157         * modules/unistr/u32-strcoll: Likewise.
3158         * modules/unistr/u32-strcpy: Likewise.
3159         * modules/unistr/u32-strcspn: Likewise.
3160         * modules/unistr/u32-strdup: Likewise.
3161         * modules/unistr/u32-strlen: Likewise.
3162         * modules/unistr/u32-strmblen: Likewise.
3163         * modules/unistr/u32-strmbtouc: Likewise.
3164         * modules/unistr/u32-strncat: Likewise.
3165         * modules/unistr/u32-strncmp: Likewise.
3166         * modules/unistr/u32-strncpy: Likewise.
3167         * modules/unistr/u32-strnlen: Likewise.
3168         * modules/unistr/u32-strpbrk: Likewise.
3169         * modules/unistr/u32-strrchr: Likewise.
3170         * modules/unistr/u32-strspn: Likewise.
3171         * modules/unistr/u32-strstr: Likewise.
3172         * modules/unistr/u32-strtok: Likewise.
3173         * modules/unistr/u32-to-u16: Likewise.
3174         * modules/unistr/u32-to-u8: Likewise.
3175         * modules/unistr/u32-uctomb: Likewise.
3176         * modules/uniwbrk/u8-wordbreaks: Likewise.
3177         * modules/uniwbrk/u16-wordbreaks: Likewise.
3178         * modules/uniwbrk/u32-wordbreaks: Likewise.
3179         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3180         * modules/uniwbrk/wordbreak-property: Likewise.
3181         * modules/uniwidth/u8-strwidth: Likewise.
3182         * modules/uniwidth/u8-width: Likewise.
3183         * modules/uniwidth/u16-strwidth: Likewise.
3184         * modules/uniwidth/u16-width: Likewise.
3185         * modules/uniwidth/u32-strwidth: Likewise.
3186         * modules/uniwidth/u32-width: Likewise.
3187         * modules/uniwidth/width: Likewise.
3188         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3189         with $(LIBUNISTRING).
3190         * modules/unicase/ignorable-tests: Likewise.
3191         * modules/unicase/locale-language-tests: Likewise.
3192         * modules/unicase/tolower-tests: Likewise.
3193         * modules/unicase/totitle-tests: Likewise.
3194         * modules/unicase/toupper-tests: Likewise.
3195         * modules/unicase/u8-casecmp-tests: Likewise.
3196         * modules/unicase/u8-casecoll-tests: Likewise.
3197         * modules/unicase/u8-casefold-tests: Likewise.
3198         * modules/unicase/u8-is-cased-tests: Likewise.
3199         * modules/unicase/u8-is-casefolded-tests: Likewise.
3200         * modules/unicase/u8-is-lowercase-tests: Likewise.
3201         * modules/unicase/u8-is-titlecase-tests: Likewise.
3202         * modules/unicase/u8-is-uppercase-tests: Likewise.
3203         * modules/unicase/u8-tolower-tests: Likewise.
3204         * modules/unicase/u8-totitle-tests: Likewise.
3205         * modules/unicase/u8-toupper-tests: Likewise.
3206         * modules/unicase/u16-casecmp-tests: Likewise.
3207         * modules/unicase/u16-casecoll-tests: Likewise.
3208         * modules/unicase/u16-casefold-tests: Likewise.
3209         * modules/unicase/u16-is-cased-tests: Likewise.
3210         * modules/unicase/u16-is-casefolded-tests: Likewise.
3211         * modules/unicase/u16-is-lowercase-tests: Likewise.
3212         * modules/unicase/u16-is-titlecase-tests: Likewise.
3213         * modules/unicase/u16-is-uppercase-tests: Likewise.
3214         * modules/unicase/u16-tolower-tests: Likewise.
3215         * modules/unicase/u16-totitle-tests: Likewise.
3216         * modules/unicase/u16-toupper-tests: Likewise.
3217         * modules/unicase/u32-casecmp-tests: Likewise.
3218         * modules/unicase/u32-casecoll-tests: Likewise.
3219         * modules/unicase/u32-casefold-tests: Likewise.
3220         * modules/unicase/u32-is-cased-tests: Likewise.
3221         * modules/unicase/u32-is-casefolded-tests: Likewise.
3222         * modules/unicase/u32-is-lowercase-tests: Likewise.
3223         * modules/unicase/u32-is-titlecase-tests: Likewise.
3224         * modules/unicase/u32-is-uppercase-tests: Likewise.
3225         * modules/unicase/u32-tolower-tests: Likewise.
3226         * modules/unicase/u32-totitle-tests: Likewise.
3227         * modules/unicase/u32-toupper-tests: Likewise.
3228         * modules/unicase/ulc-casecmp-tests: Likewise.
3229         * modules/unicase/ulc-casecoll-tests: Likewise.
3230         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3231         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3232         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3233         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3234         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3235         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3236         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3237         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3238         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3239         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3240         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3241         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3242         * modules/unictype/bidicategory-byname-tests: Likewise.
3243         * modules/unictype/bidicategory-name-tests: Likewise.
3244         * modules/unictype/bidicategory-of-tests: Likewise.
3245         * modules/unictype/bidicategory-test-tests: Likewise.
3246         * modules/unictype/block-list-tests: Likewise.
3247         * modules/unictype/block-of-tests: Likewise.
3248         * modules/unictype/block-test-tests: Likewise.
3249         * modules/unictype/category-C-tests: Likewise.
3250         * modules/unictype/category-Cc-tests: Likewise.
3251         * modules/unictype/category-Cf-tests: Likewise.
3252         * modules/unictype/category-Cn-tests: Likewise.
3253         * modules/unictype/category-Co-tests: Likewise.
3254         * modules/unictype/category-Cs-tests: Likewise.
3255         * modules/unictype/category-L-tests: Likewise.
3256         * modules/unictype/category-Ll-tests: Likewise.
3257         * modules/unictype/category-Lm-tests: Likewise.
3258         * modules/unictype/category-Lo-tests: Likewise.
3259         * modules/unictype/category-Lt-tests: Likewise.
3260         * modules/unictype/category-Lu-tests: Likewise.
3261         * modules/unictype/category-M-tests: Likewise.
3262         * modules/unictype/category-Mc-tests: Likewise.
3263         * modules/unictype/category-Me-tests: Likewise.
3264         * modules/unictype/category-Mn-tests: Likewise.
3265         * modules/unictype/category-N-tests: Likewise.
3266         * modules/unictype/category-Nd-tests: Likewise.
3267         * modules/unictype/category-Nl-tests: Likewise.
3268         * modules/unictype/category-No-tests: Likewise.
3269         * modules/unictype/category-P-tests: Likewise.
3270         * modules/unictype/category-Pc-tests: Likewise.
3271         * modules/unictype/category-Pd-tests: Likewise.
3272         * modules/unictype/category-Pe-tests: Likewise.
3273         * modules/unictype/category-Pf-tests: Likewise.
3274         * modules/unictype/category-Pi-tests: Likewise.
3275         * modules/unictype/category-Po-tests: Likewise.
3276         * modules/unictype/category-Ps-tests: Likewise.
3277         * modules/unictype/category-S-tests: Likewise.
3278         * modules/unictype/category-Sc-tests: Likewise.
3279         * modules/unictype/category-Sk-tests: Likewise.
3280         * modules/unictype/category-Sm-tests: Likewise.
3281         * modules/unictype/category-So-tests: Likewise.
3282         * modules/unictype/category-Z-tests: Likewise.
3283         * modules/unictype/category-Zl-tests: Likewise.
3284         * modules/unictype/category-Zp-tests: Likewise.
3285         * modules/unictype/category-Zs-tests: Likewise.
3286         * modules/unictype/category-and-not-tests: Likewise.
3287         * modules/unictype/category-and-tests: Likewise.
3288         * modules/unictype/category-byname-tests: Likewise.
3289         * modules/unictype/category-name-tests: Likewise.
3290         * modules/unictype/category-none-tests: Likewise.
3291         * modules/unictype/category-of-tests: Likewise.
3292         * modules/unictype/category-or-tests: Likewise.
3293         * modules/unictype/category-test-withtable-tests: Likewise.
3294         * modules/unictype/combining-class-tests: Likewise.
3295         * modules/unictype/ctype-alnum-tests: Likewise.
3296         * modules/unictype/ctype-alpha-tests: Likewise.
3297         * modules/unictype/ctype-blank-tests: Likewise.
3298         * modules/unictype/ctype-cntrl-tests: Likewise.
3299         * modules/unictype/ctype-digit-tests: Likewise.
3300         * modules/unictype/ctype-graph-tests: Likewise.
3301         * modules/unictype/ctype-lower-tests: Likewise.
3302         * modules/unictype/ctype-print-tests: Likewise.
3303         * modules/unictype/ctype-punct-tests: Likewise.
3304         * modules/unictype/ctype-space-tests: Likewise.
3305         * modules/unictype/ctype-upper-tests: Likewise.
3306         * modules/unictype/ctype-xdigit-tests: Likewise.
3307         * modules/unictype/decimal-digit-tests: Likewise.
3308         * modules/unictype/digit-tests: Likewise.
3309         * modules/unictype/mirror-tests: Likewise.
3310         * modules/unictype/numeric-tests: Likewise.
3311         * modules/unictype/property-alphabetic-tests: Likewise.
3312         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3313         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3314         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3315         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3316         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3317         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3318         * modules/unictype/property-bidi-control-tests: Likewise.
3319         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3320         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3321         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3322         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3323         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3324         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3325         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3326         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3327         * modules/unictype/property-bidi-pdf-tests: Likewise.
3328         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3329         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3330         * modules/unictype/property-byname-tests: Likewise.
3331         * modules/unictype/property-combining-tests: Likewise.
3332         * modules/unictype/property-composite-tests: Likewise.
3333         * modules/unictype/property-currency-symbol-tests: Likewise.
3334         * modules/unictype/property-dash-tests: Likewise.
3335         * modules/unictype/property-decimal-digit-tests: Likewise.
3336         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3337         * modules/unictype/property-deprecated-tests: Likewise.
3338         * modules/unictype/property-diacritic-tests: Likewise.
3339         * modules/unictype/property-extender-tests: Likewise.
3340         * modules/unictype/property-format-control-tests: Likewise.
3341         * modules/unictype/property-grapheme-base-tests: Likewise.
3342         * modules/unictype/property-grapheme-extend-tests: Likewise.
3343         * modules/unictype/property-grapheme-link-tests: Likewise.
3344         * modules/unictype/property-hex-digit-tests: Likewise.
3345         * modules/unictype/property-hyphen-tests: Likewise.
3346         * modules/unictype/property-id-continue-tests: Likewise.
3347         * modules/unictype/property-id-start-tests: Likewise.
3348         * modules/unictype/property-ideographic-tests: Likewise.
3349         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3350         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3351         * modules/unictype/property-ignorable-control-tests: Likewise.
3352         * modules/unictype/property-iso-control-tests: Likewise.
3353         * modules/unictype/property-join-control-tests: Likewise.
3354         * modules/unictype/property-left-of-pair-tests: Likewise.
3355         * modules/unictype/property-line-separator-tests: Likewise.
3356         * modules/unictype/property-logical-order-exception-tests: Likewise.
3357         * modules/unictype/property-lowercase-tests: Likewise.
3358         * modules/unictype/property-math-tests: Likewise.
3359         * modules/unictype/property-non-break-tests: Likewise.
3360         * modules/unictype/property-not-a-character-tests: Likewise.
3361         * modules/unictype/property-numeric-tests: Likewise.
3362         * modules/unictype/property-other-alphabetic-tests: Likewise.
3363         * modules/unictype/property-other-default-ignorable-code-point-tests:
3364         Likewise.
3365         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3366         * modules/unictype/property-other-id-continue-tests: Likewise.
3367         * modules/unictype/property-other-id-start-tests: Likewise.
3368         * modules/unictype/property-other-lowercase-tests: Likewise.
3369         * modules/unictype/property-other-math-tests: Likewise.
3370         * modules/unictype/property-other-uppercase-tests: Likewise.
3371         * modules/unictype/property-paired-punctuation-tests: Likewise.
3372         * modules/unictype/property-paragraph-separator-tests: Likewise.
3373         * modules/unictype/property-pattern-syntax-tests: Likewise.
3374         * modules/unictype/property-pattern-white-space-tests: Likewise.
3375         * modules/unictype/property-private-use-tests: Likewise.
3376         * modules/unictype/property-punctuation-tests: Likewise.
3377         * modules/unictype/property-quotation-mark-tests: Likewise.
3378         * modules/unictype/property-radical-tests: Likewise.
3379         * modules/unictype/property-sentence-terminal-tests: Likewise.
3380         * modules/unictype/property-soft-dotted-tests: Likewise.
3381         * modules/unictype/property-space-tests: Likewise.
3382         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3383         * modules/unictype/property-test-tests: Likewise.
3384         * modules/unictype/property-titlecase-tests: Likewise.
3385         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3386         * modules/unictype/property-unified-ideograph-tests: Likewise.
3387         * modules/unictype/property-uppercase-tests: Likewise.
3388         * modules/unictype/property-variation-selector-tests: Likewise.
3389         * modules/unictype/property-white-space-tests: Likewise.
3390         * modules/unictype/property-xid-continue-tests: Likewise.
3391         * modules/unictype/property-xid-start-tests: Likewise.
3392         * modules/unictype/property-zero-width-tests: Likewise.
3393         * modules/unictype/scripts-tests: Likewise.
3394         * modules/unictype/syntax-c-ident-tests: Likewise.
3395         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3396         * modules/unictype/syntax-java-ident-tests: Likewise.
3397         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3398         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3399         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3400         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3401         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3402         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3403         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3404         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3405         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3406         * modules/uniname/uniname-tests: Likewise.
3407         * modules/uninorm/canonical-decomposition-tests: Likewise.
3408         * modules/uninorm/compat-decomposition-tests: Likewise.
3409         * modules/uninorm/composition-tests: Likewise.
3410         * modules/uninorm/decomposing-form-tests: Likewise.
3411         * modules/uninorm/decomposition-tests: Likewise.
3412         * modules/uninorm/filter-tests: Likewise.
3413         * modules/uninorm/nfc-tests: Likewise.
3414         * modules/uninorm/nfd-tests: Likewise.
3415         * modules/uninorm/nfkc-tests: Likewise.
3416         * modules/uninorm/nfkd-tests: Likewise.
3417         * modules/uninorm/u8-normcmp-tests: Likewise.
3418         * modules/uninorm/u8-normcoll-tests: Likewise.
3419         * modules/uninorm/u16-normcmp-tests: Likewise.
3420         * modules/uninorm/u16-normcoll-tests: Likewise.
3421         * modules/uninorm/u32-normcmp-tests: Likewise.
3422         * modules/uninorm/u32-normcoll-tests: Likewise.
3423         * modules/unistdio/u8-asnprintf-tests: Likewise.
3424         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3425         * modules/unistdio/u8-vasprintf-tests: Likewise.
3426         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3427         * modules/unistdio/u8-vsprintf-tests: Likewise.
3428         * modules/unistdio/u16-asnprintf-tests: Likewise.
3429         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3430         * modules/unistdio/u16-vasprintf-tests: Likewise.
3431         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3432         * modules/unistdio/u16-vsprintf-tests: Likewise.
3433         * modules/unistdio/u32-asnprintf-tests: Likewise.
3434         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3435         * modules/unistdio/u32-vasprintf-tests: Likewise.
3436         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3437         * modules/unistdio/u32-vsprintf-tests: Likewise.
3438         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3439         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3440         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3441         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3442         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3443         * modules/unistr/u8-check-tests: Likewise.
3444         * modules/unistr/u8-chr-tests: Likewise.
3445         * modules/unistr/u8-cmp-tests: Likewise.
3446         * modules/unistr/u8-cmp2-tests: Likewise.
3447         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3448         * modules/unistr/u8-cpy-tests: Likewise.
3449         * modules/unistr/u8-mblen-tests: Likewise.
3450         * modules/unistr/u8-mbsnlen-tests: Likewise.
3451         * modules/unistr/u8-mbtouc-tests: Likewise.
3452         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3453         * modules/unistr/u8-mbtoucr-tests: Likewise.
3454         * modules/unistr/u8-move-tests: Likewise.
3455         * modules/unistr/u8-next-tests: Likewise.
3456         * modules/unistr/u8-prev-tests: Likewise.
3457         * modules/unistr/u8-set-tests: Likewise.
3458         * modules/unistr/u8-stpcpy-tests: Likewise.
3459         * modules/unistr/u8-stpncpy-tests: Likewise.
3460         * modules/unistr/u8-strcat-tests: Likewise.
3461         * modules/unistr/u8-strcmp-tests: Likewise.
3462         * modules/unistr/u8-strcoll-tests: Likewise.
3463         * modules/unistr/u8-strcpy-tests: Likewise.
3464         * modules/unistr/u8-strdup-tests: Likewise.
3465         * modules/unistr/u8-strlen-tests: Likewise.
3466         * modules/unistr/u8-strmblen-tests: Likewise.
3467         * modules/unistr/u8-strmbtouc-tests: Likewise.
3468         * modules/unistr/u8-strncat-tests: Likewise.
3469         * modules/unistr/u8-strncmp-tests: Likewise.
3470         * modules/unistr/u8-strncpy-tests: Likewise.
3471         * modules/unistr/u8-strnlen-tests: Likewise.
3472         * modules/unistr/u8-to-u16-tests: Likewise.
3473         * modules/unistr/u8-to-u32-tests: Likewise.
3474         * modules/unistr/u8-uctomb-tests: Likewise.
3475         * modules/unistr/u16-check-tests: Likewise.
3476         * modules/unistr/u16-chr-tests: Likewise.
3477         * modules/unistr/u16-cmp-tests: Likewise.
3478         * modules/unistr/u16-cmp2-tests: Likewise.
3479         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3480         * modules/unistr/u16-cpy-tests: Likewise.
3481         * modules/unistr/u16-mblen-tests: Likewise.
3482         * modules/unistr/u16-mbsnlen-tests: Likewise.
3483         * modules/unistr/u16-mbtouc-tests: Likewise.
3484         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3485         * modules/unistr/u16-mbtoucr-tests: Likewise.
3486         * modules/unistr/u16-move-tests: Likewise.
3487         * modules/unistr/u16-next-tests: Likewise.
3488         * modules/unistr/u16-prev-tests: Likewise.
3489         * modules/unistr/u16-set-tests: Likewise.
3490         * modules/unistr/u16-stpcpy-tests: Likewise.
3491         * modules/unistr/u16-stpncpy-tests: Likewise.
3492         * modules/unistr/u16-strcat-tests: Likewise.
3493         * modules/unistr/u16-strcmp-tests: Likewise.
3494         * modules/unistr/u16-strcoll-tests: Likewise.
3495         * modules/unistr/u16-strcpy-tests: Likewise.
3496         * modules/unistr/u16-strdup-tests: Likewise.
3497         * modules/unistr/u16-strlen-tests: Likewise.
3498         * modules/unistr/u16-strmblen-tests: Likewise.
3499         * modules/unistr/u16-strmbtouc-tests: Likewise.
3500         * modules/unistr/u16-strncat-tests: Likewise.
3501         * modules/unistr/u16-strncmp-tests: Likewise.
3502         * modules/unistr/u16-strncpy-tests: Likewise.
3503         * modules/unistr/u16-strnlen-tests: Likewise.
3504         * modules/unistr/u16-to-u32-tests: Likewise.
3505         * modules/unistr/u16-to-u8-tests: Likewise.
3506         * modules/unistr/u16-uctomb-tests: Likewise.
3507         * modules/unistr/u32-check-tests: Likewise.
3508         * modules/unistr/u32-chr-tests: Likewise.
3509         * modules/unistr/u32-cmp-tests: Likewise.
3510         * modules/unistr/u32-cmp2-tests: Likewise.
3511         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3512         * modules/unistr/u32-cpy-tests: Likewise.
3513         * modules/unistr/u32-mblen-tests: Likewise.
3514         * modules/unistr/u32-mbsnlen-tests: Likewise.
3515         * modules/unistr/u32-mbtouc-tests: Likewise.
3516         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3517         * modules/unistr/u32-mbtoucr-tests: Likewise.
3518         * modules/unistr/u32-move-tests: Likewise.
3519         * modules/unistr/u32-next-tests: Likewise.
3520         * modules/unistr/u32-prev-tests: Likewise.
3521         * modules/unistr/u32-set-tests: Likewise.
3522         * modules/unistr/u32-stpcpy-tests: Likewise.
3523         * modules/unistr/u32-stpncpy-tests: Likewise.
3524         * modules/unistr/u32-strcat-tests: Likewise.
3525         * modules/unistr/u32-strcmp-tests: Likewise.
3526         * modules/unistr/u32-strcoll-tests: Likewise.
3527         * modules/unistr/u32-strcpy-tests: Likewise.
3528         * modules/unistr/u32-strdup-tests: Likewise.
3529         * modules/unistr/u32-strlen-tests: Likewise.
3530         * modules/unistr/u32-strmblen-tests: Likewise.
3531         * modules/unistr/u32-strmbtouc-tests: Likewise.
3532         * modules/unistr/u32-strncat-tests: Likewise.
3533         * modules/unistr/u32-strncmp-tests: Likewise.
3534         * modules/unistr/u32-strncpy-tests: Likewise.
3535         * modules/unistr/u32-strnlen-tests: Likewise.
3536         * modules/unistr/u32-to-u16-tests: Likewise.
3537         * modules/unistr/u32-to-u8-tests: Likewise.
3538         * modules/unistr/u32-uctomb-tests: Likewise.
3539         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3540         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3541         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3542         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3543         * modules/uniwidth/u8-strwidth-tests: Likewise.
3544         * modules/uniwidth/u8-width-tests: Likewise.
3545         * modules/uniwidth/u16-strwidth-tests: Likewise.
3546         * modules/uniwidth/u16-width-tests: Likewise.
3547         * modules/uniwidth/u32-strwidth-tests: Likewise.
3548         * modules/uniwidth/u32-width-tests: Likewise.
3549         * modules/uniwidth/width-tests: Likewise.
3550
3551 2010-05-18  Richard Jones  <rjones@redhat.com>
3552
3553         doc: users.txt: list hivex
3554         * users.txt: Add hivex.
3555
3556 2010-05-18  Richard Jones  <rjones@redhat.com>
3557
3558         doc: users.txt: list febootstrap
3559         * users.txt: Add febootstrap.
3560
3561 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3562
3563         bootstrap: fix an error when gnulib is not used as a git submodule
3564         * build-aux/bootstrap (gnulib_path): If its length is zero then
3565         assign "gnulib" to it.
3566         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3567
3568 2010-05-16  Bruno Haible  <bruno@clisp.org>
3569
3570         Avoid autoconf warnings about AM_ICONV.
3571         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3572         2.64.
3573
3574 2010-05-16  Bruno Haible  <bruno@clisp.org>
3575
3576         absolute-header: Make the macro usable in more situations.
3577         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3578         from gl_ABSOLUTE_HEADER.
3579         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3580
3581 2010-05-16  James Youngman  <jay@gnu.org>
3582
3583         doc: update users.txt
3584         * users.txt: Add CSSC.
3585
3586 2010-05-16  Jim Meyering  <meyering@redhat.com>
3587
3588         init.sh: fix an error in the previous change; add more comments
3589         * tests/init.sh: Compare exit code in loop against 9, not 2.
3590         Patch by Bruno Haible.
3591         Make the two tests more similar by adding an empty "then" clause.
3592         Add comments.
3593
3594         init.sh: avoid unnecessary shell re-exec
3595         * tests/init.sh: Improve the re-exec-required check to first test the
3596         current shell.  If it passes the test, do not search for a shell that
3597         does pass, and do not re-exec.  This test is particularly contorted to
3598         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3599         of $(...) evokes a syntax error and causes immediate shell exit with
3600         status 2.  Bruno Haible reported that the re-exec made it impossible
3601         to single-step through any init.sh-using script.
3602
3603 2010-05-16  Bruno Haible  <bruno@clisp.org>
3604
3605         Fix collision between gnulib's and libintl's printf replacements.
3606         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3607         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3608         (printf): When using GNU C, map the __printf__ function to rpl_printf
3609         via __asm__. When not using GNU C, define rpl_printf instead of
3610         __printf__.
3611         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3612         commit.
3613         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3614         commit.
3615         * m4/asm-underscore.m4: New file.
3616         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3617         * modules/stdio (Files): Add m4/asm-underscore.m4.
3618         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3619         Reported by Ben Pfaff.
3620
3621 2010-05-16  Bruno Haible  <bruno@clisp.org>
3622
3623         verify: Avoid skipping the test on openSUSE 11.0.
3624         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3625
3626 2010-05-13  Bruno Haible  <bruno@clisp.org>
3627
3628         Avoid useless warnings from G++.
3629         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3630         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3631         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3632
3633 2010-05-11  Jim Meyering  <meyering@redhat.com>
3634
3635         maint.mk: tweak preceding change
3636         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3637         regexps tighter by anchoring at EOL, and make the new group "shy"
3638         for slightly decreased overhead.
3639
3640 2010-05-11  Eric Blake  <eblake@redhat.com>
3641
3642         maint.mk: gnulib doesn't guarantee NSIG
3643         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3644
3645 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3646
3647         test-pwrite.c: Remove unused variable declaration.
3648         * tests/test-pwrite.c (main): Remove read_buf declaration.
3649
3650         Remove useless test-pwrite.sh file.
3651         * tests/test-pwrite.sh: Delete file.
3652         * modules/pwrite-tests: Remove references.
3653         Reported by Bruno Haible.
3654
3655 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3656
3657         init.sh: fix a typo
3658         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3659
3660 2010-05-10  Jim Meyering  <meyering@redhat.com>
3661
3662         maint.mk: avoid using a temporary file in the always-defined-macros check
3663         * top/maint.mk (.re-defmac): Remove rule.
3664         (gl_trap_): Remove definition.
3665         (sc_prohibit_always-defined_macros): Rewrite not to create and
3666         depend on a temporary file.  Instead, depend on GNU grep's ability
3667         to read a list of regular expressions from stdin when given "-f -".
3668
3669 2010-05-09  Bruno Haible  <bruno@clisp.org>
3670
3671         Update to GNU gettext 0.18, part 1.
3672         * m4/gettext.m4: Update to GNU gettext 0.18.
3673         * m4/intl.m4: Likewise.
3674         * m4/po.m4: Likewise.
3675         * modules/gettext (Files): Add m4/fcntl-o.m4.
3676         (configure.ac): Require gettext infrastructure from version 0.18.
3677
3678 2010-05-09  Jim Meyering  <meyering@redhat.com>
3679
3680         init.sh: enable MALLOC_PERTURB_
3681         * tests/init.sh: Enable glibc's malloc-perturbing option.
3682
3683         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3684         With my recent change in init.sh from the two-line form:
3685             -#   : ${srcdir=.}
3686             -#   . "$srcdir/init.sh"; path_prepend_ .
3687             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3688         I noticed that using the one-line form would cause this test
3689         to fail with a false-positive, or to stop working altogether,
3690         depending on whether help-version changed or all the tests did.
3691         * top/maint.mk (_hv_regex): Remove this definition.
3692         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3693         (_hv_regex_strong): Use a stronger regex to check for conformance.
3694         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3695         Give a separate diagnostic for lack of conforming use.
3696
3697         maint.mk: prohibit definition of symbols defined by gnulib
3698         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3699         definition of symbols defined by gnulib.
3700
3701 2010-05-09  Bruno Haible  <bruno@clisp.org>
3702
3703         acl: Avoid test failure on Cygwin-hosted mingw.
3704         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3705
3706 2010-05-09  Bruno Haible  <bruno@clisp.org>
3707
3708         error: Use system's fcntl function.
3709         * lib/error.c (fcntl): Undefine.
3710
3711 2010-05-09  Jim Meyering  <meyering@redhat.com>
3712
3713         verify: adjust formatting to be more consistent
3714         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3715         argument-list '('s, and after one comma.
3716
3717 2010-05-09  Bruno Haible  <bruno@clisp.org>
3718
3719         error: More reliable output on mingw.
3720         * lib/error.c: Include <windows.h>.
3721         (is_open): New function.
3722         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3723         defined.
3724
3725 2010-05-09  Bruno Haible  <bruno@clisp.org>
3726
3727         vasnprintf: Fix syntax errors in libintl build on mingw.
3728         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3729         pad_ourselves and prec_ourselves after use.
3730
3731 2010-05-08  Bruno Haible  <bruno@clisp.org>
3732
3733         * lib/config.charset: Update comments for Cygwin 1.7.
3734         * lib/localcharset.c: Likewise.
3735
3736 2010-05-07  Jim Meyering  <meyering@redhat.com>
3737
3738         init.sh: improve comments
3739         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3740         . "${srcdir=.}/init.sh"; path_prepend_ .
3741         Add a note about path_prepend_ and the alternative of using
3742         TESTS_ENVIRONMENT.
3743
3744 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3745
3746         exclude: Unescape hashed patterns in wildcard mode.
3747         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3748         to the hash list.
3749         * tests/test-exclude8.sh: New test case.
3750         * modules/exclude-tests: Add new test.
3751
3752 2010-05-05  Eric Blake  <eblake@redhat.com>
3753
3754         verify: automate tests
3755         * modules/verify-tests: New module.
3756         * tests/test-verify.sh: New file.
3757         * tests/test-verify.c: Guard each negative test with a unique id.
3758         Also avoid warning about unused left hand of comma expressions.
3759
3760 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3761
3762         Further improvements to verify.h, suggested by Eric Blake.
3763         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3764         the GL_* versions, to avoid collision with OpenGL.
3765         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3766         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3767         than testing merely whether it's defined.
3768
3769         Modify verify.h to pacify gcc -Wredundant_decls.
3770         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3771         These use the prefix "GL_" since they're likely to be useful elsewhere.
3772         We may need to break them out into a different .h file.
3773         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3774         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3775         of verify_function__.
3776
3777 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3778
3779         Tests for module pwrite.
3780         * modules/pwrite-tests: New file.
3781         * tests/test-pwrite.sh: New file.
3782         * tests/test-pwrite.c: New file.
3783
3784         New module pwrite.
3785         * lib/unistd.in.h (pwrite): New declaration.
3786         * lib/pwrite.c: New file, from glibc with modifications.
3787         * m4/pwrite.m4: New file.
3788         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3789         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3790         REPLACE_PWRITE.
3791         * modules/pwrite: New file.
3792         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3793         REPLACE_PWRITE.
3794         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3795         * doc/posix-functions/pwrite.texi: Mention the new module.
3796
3797 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3798
3799         pread: Update documentation.
3800         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3801
3802 2010-05-04  Eric Blake  <eblake@redhat.com>
3803
3804         docs: update cygwin progress
3805         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3806         this bug.
3807         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3808         Added in cygwin 1.7.2.
3809         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3810         Likewise.
3811         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3812         Likewise.
3813         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3814         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3815         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3816         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3817         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3818         Mention nproc module.
3819         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3820         bug in cygwin 1.7.5 addition.
3821         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3822         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3823         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3824         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3825         1.7.5.
3826         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3827         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3828         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
3829         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
3830         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
3831         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
3832         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
3833         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
3834         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
3835         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
3836         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
3837         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
3838         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
3839         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
3840         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
3841         Likewise.
3842         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
3843         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
3844         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
3845         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
3846         Likewise.
3847         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
3848         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
3849         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
3850         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
3851         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
3852         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
3853         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
3854         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
3855         Likewise.
3856         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
3857         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
3858         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
3859         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
3860         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
3861         Likewise.
3862         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
3863         Likewise.
3864         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
3865         Likewise.
3866         * doc/glibc-functions/xdrrec_endofrecord.texi
3867         (xdrrec_endofrecord): Likewise.
3868         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
3869         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
3870         Likewise.
3871         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
3872         Likewise.
3873
3874 2010-05-04  Jim Meyering  <meyering@redhat.com>
3875
3876         gendocs.sh: make its "-s FILE" option more useful
3877         * build-aux/gendocs.sh: When honoring the -s FILE option, update
3878         $PACKAGE to reflect the probably-different basename of "FILE".
3879
3880 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
3881
3882         bootstrap: don't ignore download_po_files failure
3883         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
3884         failure.
3885
3886 2010-05-03  Jim Meyering  <meyering@redhat.com>
3887
3888         maint.mk: allow to pass options to gendocs.sh
3889         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
3890         (gendocs_options_): New overridable variable.
3891
3892         gnu-web-doc-update: don't ignore configure or build failure
3893         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
3894
3895         announce-gen: backslash-escape '@'s in --help output
3896         * build-aux/announce-gen: Fix syntax errors.
3897
3898         maint.mk, announce-gen: allow project-specific announcement mail headers
3899         * top/maint.mk (translation_project_): Define default.
3900         (announcement_Cc_, announcement_mail_headers_): Likewise.
3901         (announcement): Invoke announce-gen with new --mail-headers option.
3902         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
3903
3904         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
3905         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
3906         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
3907         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
3908         line in the "err2" output file when running "make check" in verbose
3909         mode (i.e., with set -x enabled).
3910
3911 2010-05-03  Bruno Haible  <bruno@clisp.org>
3912
3913         wctob: Fix for weird platforms.
3914         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
3915         argument value.
3916
3917 2010-05-03  Jim Meyering  <meyering@redhat.com>
3918
3919         maint.mk: prohibit unwarranted use of <strings.h>
3920         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
3921         strings.h in a file that does not also use strcasecmp, strncasecmp,
3922         ffs or ffsll.
3923
3924         maint.mk: remove obsolete comments
3925         * top/maint.mk: Remove stale, commented-out rules.
3926
3927 2010-05-02  Bruno Haible  <bruno@clisp.org>
3928
3929         wcwidth: Declare also when it's aliased.
3930         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
3931         macro.
3932
3933 2010-05-02  Bruno Haible  <bruno@clisp.org>
3934
3935         Fix regression from 2010-04-25.
3936         * gnulib-tool (func_modules_transitive_closure): Check the status of
3937         all modules, not only of the tests that are of the form foo-tests where
3938         foo is a module.
3939
3940 2010-05-02  Bruno Haible  <bruno@clisp.org>
3941
3942         wctob: Work around nasty Cygwin 1.7.2 bug.
3943         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
3944         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
3945
3946 2010-05-01  Bruno Haible  <bruno@clisp.org>
3947
3948         fpurge: Sharper test.
3949         * tests/test-fpurge.c (main): Add one more ftell check.
3950         * modules/fpurge-tests (Depends-on): Add ftell.
3951         Suggested by Eric Blake.
3952
3953 2010-05-01  Bruno Haible  <bruno@clisp.org>
3954
3955         ftello: Another test.
3956         * tests/test-ftello3.c: New file.
3957         * modules/ftello-tests (Files): Add it.
3958         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3959         MOSTLYCLEANFILES.
3960
3961         ftell: Another test.
3962         * tests/test-ftell3.c: New file.
3963         * modules/ftell-tests (Files): Add it.
3964         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
3965         MOSTLYCLEANFILES.
3966
3967 2010-05-01  Bruno Haible  <bruno@clisp.org>
3968
3969         ftell, ftello: Work around Solaris bug.
3970         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
3971         * lib/ftello.c: Include stdio-impl.h.
3972         (ftello): On Solaris, when _IOWRT is set, compute the result without
3973         looking at _IOREAD.
3974         * modules/ftello (Files): Add lib/stdio-impl.h.
3975         * doc/posix-functions/ftell.texi: Mention Solaris bug.
3976         * doc/posix-functions/ftello.texi: Likewise.
3977         Reported by Eric Blake.
3978
3979 2010-05-01  Bruno Haible  <bruno@clisp.org>
3980
3981         freading: Adapt to special meaning of _IOREAD flag on Solaris.
3982         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
3983         the _IOWRT flag is also set.
3984
3985 2010-05-01  Bruno Haible  <bruno@clisp.org>
3986
3987         Fix doc about a HP-UX stdio bug.
3988         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
3989         * doc/posix-functions/ftello.texi: Likewise.
3990
3991 2010-05-01  Bruno Haible  <bruno@clisp.org>
3992
3993         lseek test: Fix failure on Solaris.
3994         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
3995         output.
3996
3997 2010-04-30  Jim Meyering  <meyering@redhat.com>
3998
3999         bootstrap: don't ignore failure to generate po*/Makevars
4000         * build-aux/bootstrap (with_gettext): Don't ignore failure
4001         to create po/Makevars or runtime-po/Makevars.
4002
4003 2010-04-29  Eric Blake  <eblake@redhat.com>
4004
4005         headers: relax license to LGPLv2+
4006         * modules/fcntl-h (License): Relax license.
4007         * modules/getopt-posix (License): Likewise.
4008         * modules/locale (License): Likewise.
4009         * modules/math (License): Likewise.
4010         * modules/pty (License): Likewise.
4011         * modules/sched (License): Likewise.
4012         * modules/search (License): Likewise.
4013         * modules/spawn (License): Likewise.
4014         * modules/stdarg (License): Likewise.
4015         * modules/sysexits (License): Likewise.
4016
4017 2010-04-29  Jim Meyering  <meyering@redhat.com>
4018
4019         inttypes: relax license to LGPLv2+
4020         * modules/inttypes (License): Relax license.
4021
4022 2010-04-29  Simon Josefsson  <simon@josefsson.org>
4023
4024         * top/maint.mk (indent): Run twice to produce idempotent results.
4025
4026 2010-04-28  Bruno Haible  <bruno@clisp.org>
4027
4028         getdate: Generate getdate.c in the source directory.
4029         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
4030         MOSTLYCLEANFILES.
4031         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
4032
4033 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
4034
4035         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
4036         is not declared as a const *; avoid warnings in that case.
4037
4038 2010-04-28  Eric Blake  <eblake@redhat.com>
4039
4040         canonicalize-lgpl: avoid compiler warning
4041         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
4042         declaration' / 'extraneous semicolon' warning with some compilers.
4043         Reported by Andreas Gruenbacher.
4044
4045 2010-04-28  Jim Meyering  <meyering@redhat.com>
4046
4047         init.sh: ensure a more reliable exit status when exiting via trap
4048         * tests/init.sh (setup_): Don't rely on $? in signal handler.
4049         Inspired by patches from Dmitry V. Levin.
4050         Also trap on signal 3 (SIGQUIT).
4051
4052 2010-04-27  Bruno Haible  <bruno@clisp.org>
4053
4054         Update doc about utimes().
4055         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
4056         'utimens' module.
4057         Reported by Andreas Gruenbacher <agruen@suse.de>.
4058
4059 2010-04-27  Eric Blake  <eblake@redhat.com>
4060
4061         full-read, full-write: relax license
4062         * modules/full-read (License): Drop to LGPLv2+.
4063         * modules/full-write (License): Likewise.
4064         * modules/safe-read (License): Likewise.
4065         * modules/safe-write (License): Likewise.
4066
4067         pthread: mention library for linking
4068         * modules/pthread (Link): Mention $(LIB_PTHREAD).
4069
4070 2010-04-27  Jim Meyering  <meyering@redhat.com>
4071
4072         maint.mk: fix a bug introduced in last change
4073         * top/maint.mk (gl_assured_headers_): Now that all names are on
4074         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
4075         is not anchored to end of word, it should be adequate.
4076
4077         maint.mk: avoid side-effect in latest syntax-check
4078         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
4079         to run commands via $(shell...), and hence to incur cost only when
4080         the new rule is actually run.
4081
4082         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
4083         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
4084         and use that to create a regexp used to detect all #if HAVE_..._H uses.
4085         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
4086         (gl_assured_headers_, az_, AZ_): Define.
4087         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
4088
4089 2010-04-26  Jim Meyering  <jim@meyering.net>
4090             Bruno Haible  <bruno@clisp.org>
4091
4092         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
4093         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
4094         Prompted by an exchange with Gilles Espinasse.
4095
4096 2010-04-26  Jim Meyering  <meyering@redhat.com>
4097
4098         git-version-gen: aesthetic tweak
4099         * build-aux/git-version-gen: Use "$nl" rather than a literal,
4100         so that the command remains on a single line.
4101
4102 2010-04-26  Eric Blake  <eblake@redhat.com>
4103
4104         git-version-gen: allow use on EBCDIC hosts
4105         * build-aux/git-version-gen (dirty): Use literal rather than tying
4106         ourselves to ascii.
4107         Reported by Steve Goetze.
4108
4109 2010-04-25  Bruno Haible  <bruno@clisp.org>
4110
4111         netdb: Add support for GNULIB_POSIXCHECK.
4112         * lib/netdb.in.h: Include warn-on-use.h.
4113         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
4114         functions are used when GNULIB_POSIXCHECK is defined and the
4115         getaddrinfo module is not in use.
4116         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
4117         freeaddrinfo, gai_strerror, getnameinfo are declared.
4118         * modules/netdb (Depends-on): Add warn-on-use.
4119         (Makefile.am): Include warn-on-use.h in netdb.h.
4120
4121 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
4122
4123         build: avoid "make check" failure without .git/ directory
4124         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
4125         there is no .git/ directory.
4126
4127 2010-04-25  Bruno Haible  <bruno@clisp.org>
4128
4129         ptsname: Fix misuse of ttyname_r.
4130         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
4131         of errno.
4132
4133 2010-04-25  Bruno Haible  <bruno@clisp.org>
4134
4135         ttyname_r: Make it work on Solaris 10.
4136         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
4137         if the system function has the POSIX declaration. Test whether the
4138         function fails if the buffer is less than 128 bytes large.
4139         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
4140         system's ttyname_r function. Provide a reasonably large buffer.
4141         * modules/ttyname_r (Depends-on): Add extensions.
4142         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
4143
4144 2010-04-25  Bruno Haible  <bruno@clisp.org>
4145
4146         Use the 'extensions' module for some more functions on Solaris.
4147         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
4148         module.
4149         * doc/posix-functions/ctime_r.texi: Likewise.
4150         * doc/posix-functions/getgrgid_r.texi: Likewise.
4151         * doc/posix-functions/getgrnam_r.texi: Likewise.
4152         * doc/posix-functions/getpwnam_r.texi: Likewise.
4153         * doc/posix-functions/getpwuid_r.texi: Likewise.
4154         * doc/posix-functions/readdir_r.texi: Likewise.
4155         * doc/posix-functions/sigwait.texi: Likewise.
4156         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
4157         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
4158
4159 2010-04-25  Bruno Haible  <bruno@clisp.org>
4160
4161         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4162         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4163         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4164         * lib/ttyname_r.c: Include <limits.h>.
4165         (ttyname_r): Define using the system's ttyname_r function, if it exists
4166         and not on Solaris.
4167         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4168         set.
4169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4170         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4171         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4172         Reported by Simon Josefsson.
4173
4174 2010-04-25  Bruno Haible  <bruno@clisp.org>
4175
4176         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4177         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4178         * doc/posix-functions/ctime_r.texi: Likewise.
4179         * doc/posix-functions/getgrgid_r.texi: Likewise.
4180         * doc/posix-functions/getgrnam_r.texi: Likewise.
4181         * doc/posix-functions/getlogin_r.texi: Likewise.
4182         * doc/posix-functions/getpwnam_r.texi: Likewise.
4183         * doc/posix-functions/getpwuid_r.texi: Likewise.
4184         * doc/posix-functions/readdir_r.texi: Likewise.
4185         * doc/posix-functions/sigwait.texi: Likewise.
4186         * doc/posix-functions/ttyname_r.texi: Likewise.
4187         Reported by Simon Josefsson.
4188
4189 2010-04-25  Bruno Haible  <bruno@clisp.org>
4190
4191         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4192         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4193         also to --create-testdir.
4194         (func_acceptable): Don't consider the status of *-tests modules here.
4195         (func_modules_transitive_closure): Consider it here, before including a
4196         test module.
4197         (func_import, func_create_testdir): Set inc_all_direct_tests,
4198         inc_all_indirect_tests.
4199         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4200         --create-testdir and --create-megatestdir.
4201
4202 2010-04-25  Bruno Haible  <bruno@clisp.org>
4203
4204         gnulib-tool: Add --without-*-tests options.
4205         * gnulib-tool (func_usage): Document the --without-*-tests options.
4206         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4207         excl_unportable_tests): New variables.
4208         Fail if they are specified with --import or --update.
4209         (func_acceptable): Respect the excl_*_tests variables.
4210         (func_import): Set the excl_*_tests variables to empty.
4211
4212 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4213             Bruno Haible  <bruno@clisp.org>
4214
4215         Work around a MacOS X 10.4 bug with openpty.
4216         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4217         * tests/test-openpty.c (main): Close the master side explicitly.
4218
4219 2010-04-25  Bruno Haible  <bruno@clisp.org>
4220
4221         strnlen: Fix a C++ test error on MacOS X and Solaris.
4222         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4223         the function is not declared.
4224         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4225         Simon Josefsson.
4226
4227 2010-04-24  Bruno Haible  <bruno@clisp.org>
4228
4229         Avoid a gcc warning.
4230         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4231         of correct type for %08lx directive.
4232         Reported by Eric Blake.
4233
4234 2010-04-24  Bruno Haible  <bruno@clisp.org>
4235
4236         vasnprintf: Correct errno value in case of out-of-memory.
4237         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4238         or sprintf. Use the errno value from SNPRINTF or sprintf.
4239         Reported by Ian Beckwith <ianb@erislabs.net>.
4240
4241 2010-04-24  Bruno Haible  <bruno@clisp.org>
4242
4243         ansi-c++-opt: Find correct compiler when cross-compiling.
4244         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4245         AC_CHECK_PROGS.
4246         Reported by Simon Josefsson.
4247
4248 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4249
4250         vc-list-files: Add support for subversion
4251         * build-aux/vc-list-files: Use "svn list" to generate the list of
4252         files controlled by subversion.
4253
4254 2010-04-23  Jim Meyering  <meyering@redhat.com>
4255
4256         vc-list-files tests: convert to use init.sh
4257         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4258         path_prepend_.
4259         Use Exit, not exit.
4260         Use skip_ rather than open coding it.
4261         Remove trap set-up and compare definitions.
4262         * tests/test-vc-list-files-git.sh: Likewise.
4263         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4264
4265 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4266
4267         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4268         backup files.
4269
4270 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4271
4272         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4273
4274 2010-04-20  Eric Blake  <eblake@redhat.com>
4275
4276         tests: be robust to ignored SIGPIPE
4277         * tests/test-select-in.sh: Consume all output.
4278         * tests/test-lseek.sh: Check correct exit status, while avoiding
4279         EPIPE.
4280
4281 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4282             Bruno Haible  <bruno@clisp.org>
4283
4284         visibility: Don't use -fvisibility if it leads to a warning.
4285         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4286         yes, don't pretend that visibility works if it leads to a warning.
4287         Reported by Mike Gran <spk121@yahoo.com>.
4288
4289 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4290
4291         * build-aux/bootstrap: Use "git -h" for testing for supported options
4292         instead of "git --help".  The short-form option only shows a summary,
4293         and doesn't layout the full man page.  Grep for the full option name
4294         in the summary, too.
4295
4296 2010-04-19  Bruno Haible  <bruno@clisp.org>
4297
4298         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4299         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4300         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4301         mention of RELOCATABLE_STRIP.
4302         Reported by Sylvain Beucler <beuc@beuc.net>.
4303
4304 2010-04-19  Bruno Haible  <bruno@clisp.org>
4305
4306         * lib/diffseq.h: Fix typo in comment.
4307         Reported by Eric Blake.
4308
4309 2010-04-19  Bruno Haible  <bruno@clisp.org>
4310
4311         ioctl: Move autoconf macro to a .m4 file.
4312         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4313         * modules/ioctl (Files): Add it.
4314         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4315         Reported by Ian Beckwith <ianb@erislabs.net>.
4316
4317 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4318             Bruno Haible  <bruno@clisp.org>
4319
4320         diffseq: Accommodate use-case with abstract arrays.
4321         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4322         is not defined.
4323         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4324         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4325
4326 2010-04-18  Bruno Haible  <bruno@clisp.org>
4327
4328         * doc/posix-headers/stdbool.texi: More precise wording.
4329
4330 2010-04-17  Jim Meyering  <meyering@redhat.com>
4331
4332         maint.mk: use gnu-style indentation in an embedded perl script
4333         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4334         Rename variable: s/two/last_two_bytes/
4335
4336 2010-04-16  Eric Blake  <eblake@redhat.com>
4337
4338         test-stdbool: skip test that fails with Solaris CC
4339         * tests/test-stdbool.c (f): Skip test that causes compilation
4340         error under buggy C++ compiler.
4341         * lib/stdbool.in.h: Document the limitation.
4342         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4343
4344         setenv: allow compilation with C++
4345         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4346         register keyword.
4347
4348         stdint: allow test to pass with C++
4349         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4350
4351         getopt: allow compilation with C++
4352         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4353         struct.
4354         * lib/getopt.c (_getopt_internal_r): Use correct type.
4355         Reported by Dagobert Michelson, via Joel E. Denny.
4356
4357 2010-04-16  Bruno Haible  <bruno@clisp.org>
4358
4359         Override netdb.h always.
4360         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4361         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4362         Reported by Ludovic Courtès <ludo@gnu.org>.
4363
4364 2010-04-15  Bruno Haible  <bruno@clisp.org>
4365
4366         openpty: Fix mistake from 2010-03-21.
4367         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4368         Reported by Simon Josefsson.
4369
4370 2010-04-15  Eric Blake  <eblake@redhat.com>
4371
4372         test-forkpty: fix expected signature
4373         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4374         Reported by Simon Josefsson.
4375
4376 2010-04-15  Jim Meyering  <meyering@redhat.com>
4377
4378         maint.mk: texinfo_suffix_re_: correct the default regexp
4379         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4380
4381         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4382         make it configurable via texinfo_suffix_re_.
4383
4384 2010-04-14  Eric Blake  <eblake@redhat.com>
4385
4386         strtok_r: relax license to LGPLv2+
4387         * modules/strtok_r (License): Relax license.
4388         Reported by Matthias Bolte.
4389
4390 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4391
4392         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4393         version 1.4.4 by default instead of requiring the libgcrypt
4394         version used during build.  This makes it possible to use the
4395         application with older but still binary compatible libgcrypt
4396         versions.
4397
4398 2010-04-13  Eric Blake  <eblake@redhat.com>
4399
4400         getopt-gnu: match recent glibc fixes and posix ruling
4401         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4402         '+' handling, when requesting extensions.
4403         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4404         'W;' handling.
4405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4406         * doc/posix-functions/getopt.texi (getopt): Document this.
4407         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4408         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4409         Likewise.
4410
4411         getopt: merge bug fixes from glibc
4412         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4413         diagnostics.  Honor '+:' correctly.  Reject ';'.
4414
4415         getopt-posix: detect MacOS bug
4416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4417         optind when missing a required argument.
4418         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4419         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4420         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4421         Likewise.
4422
4423         getopt-posix: avoid spurious failure on Solaris
4424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4425         an indicator that setting optind=1 is sufficient for reset.
4426
4427         getopt-posix: avoid spurious failure on FreeBSD
4428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4429         in POSIX mode, since the m4 test uses it.
4430
4431         gnulib-tool: silence warning on BSD sh
4432         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4433
4434 2010-04-13  Jim Meyering  <meyering@redhat.com>
4435
4436         doc: users.txt: GNU patch now uses gnulib
4437         * users.txt: Add patch.
4438
4439 2010-04-12  Jim Meyering  <meyering@redhat.com>
4440
4441         maint.mk: generate more concise timing data for syntax-check rules
4442         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4443         " done" from each line that reports a syntax-check test duration.
4444
4445 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4446
4447         git-version-gen: use "git update-index..." rather than "git status"
4448         * build-aux/git-version-gen: Use git update-index --refresh, not
4449         "git status".  With some versions of git, "git status" would fail
4450         to update the index and result in an unwarranted "-dirty" suffix.
4451
4452 2010-04-11  Jim Meyering  <meyering@redhat.com>
4453
4454         openat: correct formatting (no semantic change)
4455         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4456         Suggested by Bruno Haible.
4457
4458 2010-04-11  Bruno Haible  <bruno@clisp.org>
4459
4460         Stricter declaration checking in testdirs.
4461         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4462         If for_tests is true, augment AM_CPPFLAGS to define
4463         GNULIB_STRICT_CHECKING.
4464         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4465         GNULIB_STRICT_CHECKING is defined, verify that the function is
4466         declared.
4467
4468 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4469             Bruno Haible  <bruno@clisp.org>
4470
4471         libunistring: Improve configure output.
4472         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4473         Don't say "consider installing GNU libunistring" when checking again
4474         with libiconv.
4475
4476 2010-04-11  Bruno Haible  <bruno@clisp.org>
4477
4478         libunistring: Correct value of $LTLIBUNISTRING.
4479         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4480         correct the value of $LTLIBUNISTRING.
4481
4482 2010-04-11  Bruno Haible  <bruno@clisp.org>
4483
4484         havelib: Add static libraries to LIBS in the right order.
4485         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4486         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4487
4488 2010-04-11  Bruno Haible  <bruno@clisp.org>
4489
4490         libunistring: Detect libunistring also when it depends on libiconv.
4491         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4492         the second AC_LIB_HAVE_LINKFLAGS invocation.
4493
4494 2010-04-11  James Youngman  <jay@gnu.org>
4495
4496         close-stream: declare local scalars to be "const"
4497         * lib/close-stream.c (close_stream): Make boolean variables const
4498         to document the fact that we set but do not change them.
4499
4500 2010-04-11  Bruno Haible  <bruno@clisp.org>
4501
4502         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4503
4504 2010-04-11  Jim Meyering  <meyering@redhat.com>
4505
4506         maint.mk: don't include dist-check.mk
4507         * top/maint.mk: Remove bogus include directive.
4508
4509         maint.mk: improve empty-line-at-EOF check
4510         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4511         solution, rather than tail+Perl-based one.  The latter would read
4512         a few kilobytes from the end of each file, and did not handle empty
4513         files properly.
4514
4515         maint.mk: print the elapsed time for each syntax-check rule
4516         * top/maint.mk (sc_m_rules_): Save start time in a file.
4517         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4518         (local-check): Interpose the .z rules
4519
4520 2010-04-11  Jim Meyering  <meyering@redhat.com>
4521
4522         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4523         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4524         empty file with one that ends in an empty line.
4525
4526 2010-04-10  Bruno Haible  <bruno@clisp.org>
4527
4528         mkdir: Make it work on mingw64.
4529         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4530         * lib/mkdir.c: Update comment.
4531         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
4532
4533 2010-04-10  Bruno Haible  <bruno@clisp.org>
4534
4535         Don't override improved macro from newer autoconf.
4536         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4537         autoconf >= 2.62.
4538         Reported by Joel E. Denny <jdenny@clemson.edu>.
4539
4540 2010-04-10  Jim Meyering  <meyering@redhat.com>
4541
4542         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4543         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4544
4545         maint.mk: correct a diagnostic
4546         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4547         in diagnostic; now use $prohibit.
4548
4549 2010-04-10  Bruno Haible  <address@hidden>
4550
4551         fchownat: Fix a C++ test error on Solaris 8.
4552         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4553         the function does not exist.
4554
4555 2010-04-10  Bruno Haible  <bruno@clisp.org>
4556
4557         vasnprintf: Add more tests.
4558         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4559         (test_function): Test converting an invalid wide string.
4560
4561         vasnprintf: Correct handling of unconvertible wide string arguments.
4562         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4563         VASNPRINTF.
4564         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4565         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4566         smaller than the expected maximum need for the directive. Set errno to
4567         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4568         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4570         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4571         * modules/vasnprintf (Files): Add m4/printf.m4.
4572         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4573
4574 2010-04-10  Bruno Haible  <bruno@clisp.org>
4575
4576         vasnprintf: Fix crash in %ls directive.
4577         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4578         string is passed as argument to %ls, with no precision and no width.
4579         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4580
4581 2010-04-10  Bruno Haible  <bruno@clisp.org>
4582
4583         vasnprintf: Fix multiple test failures on mingw.
4584         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4585         _snprintf, or snwprintf, not _snwprintf.
4586
4587 2010-04-10  Bruno Haible  <bruno@clisp.org>
4588
4589         write: Fix a C++ test error on mingw.
4590         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4591
4592 2010-04-10  Bruno Haible  <bruno@clisp.org>
4593
4594         vasnprintf test: Reduce code duplication.
4595         * tests/test-vasnprintf.c (test_function): New function, extracted from
4596         test_vasnprintf.
4597         (test_vasnprintf, test_asnprintf): Invoke it.
4598
4599 2010-04-10  Bruno Haible  <bruno@clisp.org>
4600
4601         strnlen: Fix warning in C++ mode on MacOS X.
4602         * lib/string.in.h (strnlen): Use the modern idiom.
4603         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4604         defining strnlen as a macro already in <config.h>.
4605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4606         REPLACE_STRNLEN.
4607         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4608         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4609
4610 2010-04-08  James Youngman  <jay@gnu.org>
4611
4612         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4613         the example.
4614
4615 2010-04-09  Jim Meyering  <meyering@redhat.com>
4616
4617         maint.mk: print better diagnostic when there is no $(_hv_file)
4618         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4619         announce that when $(_hv_file) (aka help-version) does not exist.
4620
4621         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4622         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4623         not try to interpret its random input bytes.  Jarno Rajahalme reported
4624         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4625         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4626         (mktempd_): Likewise, just in case.
4627
4628         ftruncate: add two years to projected module removal date: 2012
4629         * m4/ftruncate.m4: Adjust comments.
4630
4631         ftruncate: mark module as obsolete; even MinGW provides it, now
4632         * modules/ftruncate (Status): Obsolete.
4633         (Notice): Say that.
4634         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4635         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4636
4637 2010-04-08  Bruno Haible  <bruno@clisp.org>
4638
4639         Fix side effects from tests-related modules.
4640         * modules/dprintf-posix (Comment): New section.
4641         * modules/fprintf-posix (Comment): Likewise.
4642         * modules/obstack-printf-posix (Comment): Likewise.
4643         * modules/printf-posix (Comment): Likewise.
4644         * modules/snprintf-posix (Comment): Likewise.
4645         * modules/sprintf-posix (Comment): Likewise.
4646         * modules/vasnprintf-posix (Comment): Likewise.
4647         * modules/vasprintf-posix (Comment): Likewise.
4648         * modules/vdprintf-posix (Comment): Likewise.
4649         * modules/vfprintf-posix (Comment): Likewise.
4650         * modules/vprintf-posix (Comment): Likewise.
4651         * modules/vsnprintf-posix (Comment): Likewise.
4652         * modules/vsprintf-posix (Comment): Likewise.
4653         * modules/xprintf-posix (Comment): Likewise.
4654         * modules/xvasprintf-posix (Comment): Likewise.
4655         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4656         * modules/floorf-tests (Depends-on): Likewise.
4657         * modules/round-tests (Depends-on): Likewise.
4658         * modules/roundf-tests (Depends-on): Likewise.
4659         * modules/trunc-tests (Depends-on): Likewise.
4660         * modules/truncf-tests (Depends-on): Likewise.
4661         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4662         'fprintf-posix' module is not present.
4663         * tests/test-floorf2.c (check): Likewise.
4664         * tests/test-trunc2.c (check): Likewise.
4665         * tests/test-truncf2.c (check): Likewise.
4666         * tests/test-round2.c (equal): Likewise.
4667         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4668
4669 2010-04-07  Karl Berry  <karl@gnu.org>
4670
4671         * config/srclist.txt,
4672         * config/srclistvars.sh,
4673         * config/srclist-update: doc fixes.
4674
4675 2010-04-07  Jim Meyering  <meyering@redhat.com>
4676
4677         maint.mk: add a PATH crosschecking syntax-check rule
4678         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4679         Useful if you use a test like the one in help-version (coreutils,
4680         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4681         printed by prog --version.
4682
4683 2010-04-06  Bruno Haible  <bruno@clisp.org>
4684
4685         Fix link error on mingw.
4686         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4687         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4688
4689 2010-04-06  Bruno Haible  <bruno@clisp.org>
4690
4691         Assume rmdir exists.
4692         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4693
4694 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4695
4696         doc: update users.txt
4697         * users.txt: Add gcal.
4698
4699 2010-04-06  Jim Meyering  <meyering@redhat.com>
4700
4701         init.sh: simply unset TMPDIR rather than risking env -i
4702         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4703         although it probably works fine on all Unix-based systems, some
4704         systems (Cygwin?) cannot tolerate a totally cleared environment.
4705         Suggestion from Eric Blake.
4706
4707 2010-04-06  Jim Meyering  <meyering@redhat.com>
4708
4709         init.sh: portability fix: use env's POSIX-specified -i option not -u
4710         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4711         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4712
4713 2010-04-05  Bruno Haible  <bruno@clisp.org>
4714
4715         btowc: Work around Cygwin 1.7.2 bug.
4716         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4717         does not map NUL to 0.
4718         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4719
4720 2010-04-05  Bruno Haible  <bruno@clisp.org>
4721
4722         Make the multithread modules work on Cygwin 1.7.2.
4723         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4724         imported symbols can be declared weak, so that it returns "no" on
4725         Cygwin 1.7.2.
4726
4727 2010-04-05  Bruno Haible  <bruno@clisp.org>
4728
4729         Use the module 'strncat'.
4730         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4731
4732         Tests for module 'strncat'.
4733         * modules/strncat-tests: New file.
4734         * tests/test-strncat.c: New file.
4735
4736         New module 'strncat'.
4737         * lib/string.in.h (strncat): New declaration.
4738         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4739         * m4/strncat.m4: New file, based on m4/memchr.m4.
4740         * modules/strncat: New file.
4741         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4742         is declared.
4743         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4744         REPLACE_STRNCAT.
4745         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4746         REPLACE_STRNCAT.
4747         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4748         module.
4749         * tests/test-string-c++.cc: Check signature of strncat.
4750
4751 2010-04-05  Jim Meyering  <meyering@redhat.com>
4752
4753         xstrtoumax-tests: convert to use init.sh
4754         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4755         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4756         Use Exit, not exit.
4757         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4758
4759         xstrtoimax-tests: convert to use init.sh
4760         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4761         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4762         Use Exit, not exit.
4763         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4764
4765 2010-04-05  Bruno Haible  <bruno@clisp.org>
4766
4767         sys_socket: Avoid #define replacements in C++ mode.
4768         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4769         warning to the function if possible, rather than #defining the symbol
4770         to a dysfunctional alias.
4771
4772 2010-04-05  Bruno Haible  <bruno@clisp.org>
4773
4774         fseeko: Fix C++ test error on mingw.
4775         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4776         gl_FUNC_FSEEKO.
4777         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4778         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4779         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4780         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4781
4782 2010-04-05  Bruno Haible  <bruno@clisp.org>
4783
4784         duplocale: Improve test output.
4785         * tests/test-duplocale.c (main): Print reason for skipped test.
4786
4787 2010-04-05  Bruno Haible  <bruno@clisp.org>
4788
4789         Assume rmdir exists.
4790         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4791         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4792
4793 2010-04-05  Bruno Haible  <bruno@clisp.org>
4794
4795         Fix link error on Solaris 8 with cc.
4796         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4797
4798 2010-04-05  Bruno Haible  <bruno@clisp.org>
4799
4800         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4801         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4802
4803 2010-04-05  Bruno Haible  <bruno@clisp.org>
4804
4805         vasprintf: Update documentation.
4806         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4807
4808 2010-04-05  Bruno Haible  <bruno@clisp.org>
4809
4810         ptsname: Improve test.
4811         * tests/test-ptsname.c (main): Also try the various master names of BSD
4812         systems.
4813
4814 2010-04-05  Bruno Haible  <bruno@clisp.org>
4815
4816         memchr: Avoid a possible C++ test error.
4817         * lib/string.in.h (memchr): Provide declaration if function is missing.
4818         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4819         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4821         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4822
4823 2010-04-05  Bruno Haible  <bruno@clisp.org>
4824
4825         strtok_r: Improve idiom.
4826         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4827         AC_LIBOBJ is used.
4828
4829 2010-04-05  Bruno Haible  <bruno@clisp.org>
4830
4831         strdup: Improve idiom.
4832         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
4833         AC_LIBOBJ is used.
4834         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
4835         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
4836         when AC_LIBOBJ is used.
4837
4838 2010-04-05  Bruno Haible  <bruno@clisp.org>
4839
4840         mbsinit, mbrtowc, wcrtomb: Improve idioms.
4841         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
4842         don't set REPLACE_MBSINIT to 1.
4843         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
4844         don't set REPLACE_MBRTOWC to 1.
4845         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
4846         exist, don't set REPLACE_MBSRTOWCS to 1.
4847         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
4848         exist, don't set REPLACE_MBSNRTOWCS to 1.
4849         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
4850         don't set REPLACE_WCRTOMB to 1.
4851         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
4852         exist, don't set REPLACE_WCSRTOMBS to 1.
4853         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
4854         exist, don't set REPLACE_WCSNRTOMBS to 1.
4855
4856 2010-04-05  Bruno Haible  <bruno@clisp.org>
4857
4858         ldexpl: Improve idiom.
4859         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
4860         make sure to set HAVE_DECL_LDEXPL to 0.
4861
4862 2010-04-05  Jim Meyering  <meyering@redhat.com>
4863
4864         xstrtol-tests: convert to use init.sh
4865         * modules/xstrtol-tests (Files): Add tests/init.sh.
4866         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4867         Use Exit, not exit.
4868         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4869
4870         atexit-tests: convert to use init.sh
4871         * modules/atexit-tests (Files): Add tests/init.sh.
4872         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4873         Use Exit, not exit.
4874         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4875
4876         init.sh: fix typo
4877         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
4878
4879         init.sh: make it easier for a test script to write to the tty, ...
4880         when using automake's parallel-tests mode.
4881         * tests/init.sh (stderr_fileno_): Define overridable variable.
4882         (warn_): New function, to use it.
4883         (fail_, skip_, framework_failure_): Use warn_.
4884
4885 2010-04-04  Bruno Haible  <bruno@clisp.org>
4886
4887         btowc: Avoid warning.
4888         * lib/btowc.c: Include <stdlib.h>.
4889         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
4890
4891 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4892             Bruno Haible  <bruno@clisp.org>
4893
4894         wchar: Port to NetBSD 1.5.
4895         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
4896         * lib/wctype.in.h (WEOF): Likewise.
4897
4898 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
4899             Bruno Haible  <bruno@clisp.org>
4900
4901         Port extended stdio to NetBSD 1.5.
4902         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
4903         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
4904         older.
4905
4906 2010-04-04  Bruno Haible  <bruno@clisp.org>
4907
4908         string: Remove unused substitution.
4909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4910         HAVE_DECL_STRERROR.
4911         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
4912
4913 2010-04-04  Bruno Haible  <bruno@clisp.org>
4914
4915         strtod: Avoid a possible C++ test error.
4916         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
4917         set REPLACE_STRTOD.
4918
4919 2010-04-04  Bruno Haible  <bruno@clisp.org>
4920
4921         strerror: Update documentation.
4922         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
4923
4924 2010-04-04  Bruno Haible  <bruno@clisp.org>
4925
4926         stdio: Fix some C++ test errors on Solaris 8 with GCC.
4927         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
4928         _GL_CXXALIAS_SYS_CAST.
4929
4930 2010-04-04  Bruno Haible  <bruno@clisp.org>
4931
4932         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4933         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
4934         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
4935         REPLACE_FREXPL to 1.
4936         * doc/posix-functions/frexpl.texi: Update documentation.
4937
4938 2010-04-04  Bruno Haible  <bruno@clisp.org>
4939
4940         math: Fix some C++ test errors on Solaris 8 and Cygwin.
4941         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
4942
4943 2010-04-04  Bruno Haible  <bruno@clisp.org>
4944
4945         Implement nanosleep for native Windows.
4946         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
4947
4948 2010-04-04  Bruno Haible  <bruno@clisp.org>
4949
4950         math: Fix some C++ test errors on Solaris 8.
4951         * lib/math.in.h (truncf, trunc): Use simpler idiom.
4952
4953 2010-04-04  Bruno Haible  <bruno@clisp.org>
4954
4955         math: Fix some C++ test errors on Cygwin.
4956         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
4957         truncl): Provide declaration if the system does not have it.
4958         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
4959         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
4960         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
4961         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
4962         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
4963         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
4964         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
4965         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
4966         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
4967         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
4968         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
4969         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
4970         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
4971         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
4972         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
4973         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
4974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
4975         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4976         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4977         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
4978         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
4979         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
4980
4981 2010-04-04  Bruno Haible  <bruno@clisp.org>
4982
4983         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
4984         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4985         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4986         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4987         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4988         * m4/isinf.m4 (gl_ISINF): Likewise.
4989         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4990
4991 2010-04-04  Bruno Haible  <bruno@clisp.org>
4992
4993         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
4994         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4995
4996 2010-04-04  Bruno Haible  <bruno@clisp.org>
4997
4998         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
4999         * modules/tmpfile (configure.ac): Update.
5000
5001         tmpfile: Fix C++ test error on mingw.
5002         * lib/stdio.in.h (tmpfile): New declaration.
5003         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
5004         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
5005         * modules/tmpfile (Depends-on): Add stdio.
5006         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5007         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
5008         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
5009         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
5010         REPLACE_TMPFILE.
5011         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
5012
5013 2010-04-04  Bruno Haible  <bruno@clisp.org>
5014
5015         ioctl: Fix C++ test error on mingw.
5016         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
5017         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
5018         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
5019
5020 2010-04-03  Bruno Haible  <bruno@clisp.org>
5021
5022         wcwidth: Fix C++ test error on mingw.
5023         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
5024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
5025         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
5026
5027 2010-04-03  Bruno Haible  <bruno@clisp.org>
5028
5029         nanosleep: Fix C++ test error on mingw.
5030         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
5031         * lib/time.in.h (nanosleep): Use modern idiom.
5032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
5033         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
5034         REPLACE_NANOSLEEP to 1.
5035         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
5036         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
5037
5038 2010-04-03  Bruno Haible  <bruno@clisp.org>
5039
5040         strptime: Fix C++ test error on mingw.
5041         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
5042         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
5043         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
5044         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
5045         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
5046         not REPLACE_STRPTIME.
5047         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
5048         REPLACE_STRPTIME.
5049
5050 2010-04-03  Bruno Haible  <bruno@clisp.org>
5051
5052         timegm: Fix C++ test error on mingw.
5053         * lib/time.in.h (timegm): Use modern idiom.
5054         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
5055         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
5056         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
5057         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
5058
5059 2010-04-03  Bruno Haible  <bruno@clisp.org>
5060
5061         timegm: Assume declaration if function exists.
5062         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
5063         if it exists. Don't clobber ac_cv_func_timegm.
5064
5065 2010-04-03  Bruno Haible  <bruno@clisp.org>
5066
5067         time_r: Fix C++ test error on mingw.
5068         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
5069         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
5070         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
5071         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
5072         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
5073
5074 2010-04-03  Bruno Haible  <bruno@clisp.org>
5075
5076         time_r: Minor updates.
5077         * modules/time_r (Description): Mention the provided functions.
5078         * lib/time_r.c: Don't include <string.h>.
5079         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
5080         * doc/posix-functions/localtime_r.texi: Likewise.
5081
5082 2010-04-03  Bruno Haible  <bruno@clisp.org>
5083
5084         time: Fix regression introduced on 2010-03-08.
5085         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
5086         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
5087
5088 2010-04-03  Jim Meyering  <meyering@redhat.com>
5089
5090         maint.mk: don't silently disable project-specific syntax-check rules
5091         * top/maint.mk (_prohibit_regexp): Define, to help people realize
5092         that they need to convert their project-specific syntax-check rules
5093         to use the new _sc_search_regexp.
5094
5095 2010-04-03  Bruno Haible  <bruno@clisp.org>
5096
5097         fchdir: Fix regression introduced on 2010-03-08.
5098         * lib/unistd.in.h (fchdir): Fix declaration.
5099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
5100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
5101         REPLACE_FCHDIR.
5102         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
5103         REPLACE_FCHDIR.
5104
5105 2010-04-03  Bruno Haible  <bruno@clisp.org>
5106
5107         getpagesize: Fix C++ test error on mingw.
5108         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
5109         system does not declare the function.
5110         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
5111         declared.
5112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5113         HAVE_DECL_GETPAGESIZE.
5114         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
5115
5116 2010-04-03  Bruno Haible  <bruno@clisp.org>
5117
5118         stdio: Make C++ tests work on mingw.
5119         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
5120         does not declare the function.
5121
5122 2010-04-03  Bruno Haible  <bruno@clisp.org>
5123
5124         ftello: Fix C++ test error on mingw.
5125         * lib/stdio.in.h (ftello): Use modern idiom.
5126         * lib/ftello.c (ftello): Renamed from rpl_ftello.
5127         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
5128         is missing and that it needs to be replaced.
5129         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
5130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
5131         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
5132
5133 2010-04-03  Bruno Haible  <bruno@clisp.org>
5134
5135         fseeko: Fix C++ test error on mingw.
5136         * lib/stdio.in.h (fseeko): Use modern idiom.
5137         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
5138         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
5139         is missing and that it needs to be replaced.
5140         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
5141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
5142         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
5143
5144 2010-04-03  Bruno Haible  <bruno@clisp.org>
5145
5146         mkstemp: Fix C++ test error on mingw.
5147         * lib/stdlib.in.h (mkstemp): Use modern idiom.
5148         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
5149         function is missing and that it needs to be replaced.
5150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
5151         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
5152
5153 2010-04-03  Bruno Haible  <bruno@clisp.org>
5154
5155         stpncpy: Fix C++ test error on mingw.
5156         * lib/string.in.h (stpncpy): Use modern idiom.
5157         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
5158         function is missing and that it needs to be replaced.
5159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5160         REPLACE_STPNCPY.
5161         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5162
5163 2010-04-03  Bruno Haible  <bruno@clisp.org>
5164
5165         sys_stat: Fix C++ test error on mingw.
5166         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5167         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5168
5169 2010-04-03  Bruno Haible  <bruno@clisp.org>
5170
5171         pty: Update doc.
5172         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5173
5174 2010-04-03  Bruno Haible  <bruno@clisp.org>
5175
5176         unistd: Fix C++ test error on mingw.
5177         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5178
5179 2010-04-03  Bruno Haible  <bruno@clisp.org>
5180
5181         Update doc regarding mingw.
5182         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5183         * doc/glibc-functions/login_tty.texi: Likewise.
5184         * doc/glibc-functions/forkpty.texi: Likewise.
5185
5186 2010-04-03  Bruno Haible  <bruno@clisp.org>
5187
5188         stdlib: Avoid compilation failure of c-strtold on mingw.
5189         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5190
5191 2010-04-03  Bruno Haible  <bruno@clisp.org>
5192
5193         locale: Make C++ tests work on Cygwin and mingw.
5194         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5195         cannot provide the function.
5196         Reported by Simon Josefsson.
5197
5198 2010-04-03  Bruno Haible  <bruno@clisp.org>
5199
5200         localename: Port to MacOS X 10.6.
5201         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5202         memory layout of the locales in MacOS X 10.6 as well.
5203         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5204
5205 2010-04-02  Bruno Haible  <bruno@clisp.org>
5206
5207         gnulib-tool: Ensure that long-running tests are executed last.
5208         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5209         running tests after the one for the other tests.
5210
5211 2010-04-02  Bruno Haible  <bruno@clisp.org>
5212
5213         gnulib-tool: Ensure the tests in the main directory are executed first.
5214         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5215         start with the current directory.
5216
5217 2010-04-02  Bruno Haible  <bruno@clisp.org>
5218
5219         Tests for module 'havelib', moved here from GNU gettext.
5220         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5221         modifications.
5222         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5223         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5224         with modifications.
5225         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5226         modifications.
5227         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5228         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5229         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5230         with modifications.
5231         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5232         with modifications.
5233         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5234         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5235         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5236         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5237         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5238         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5239         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5240         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5241         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5242         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5243         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5244         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5245         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5246         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5247         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5248         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5249         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5250         with modifications.
5251         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5252         with modifications.
5253         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5254         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5255         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5256         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5257         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5258         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5259         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5260         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5261         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5262         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5263         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5264         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5265         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5266         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5267         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5268         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5269         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5270         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5271         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5272         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5273         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5274         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5275         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5276         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5277         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5278         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5279         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5280         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5281         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5282         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5283         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5284         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5285         * tests/havelib/rpathx/rpathx.c: New file, from
5286         gettext/autoconf-lib-link.
5287         * tests/havelib/rpathx/Makefile.am: New file, from
5288         gettext/autoconf-lib-link.
5289         * tests/havelib/rpathx/configure.ac: New file, from
5290         gettext/autoconf-lib-link with modifications.
5291         * tests/havelib/rpathy/rpathy.c: New file, from
5292         gettext/autoconf-lib-link.
5293         * tests/havelib/rpathy/Makefile.am: New file, from
5294         gettext/autoconf-lib-link.
5295         * tests/havelib/rpathy/configure.ac: New file, from
5296         gettext/autoconf-lib-link with modifications.
5297         * tests/havelib/rpathz/rpathz.c: New file, from
5298         gettext/autoconf-lib-link.
5299         * tests/havelib/rpathz/Makefile.am: New file, from
5300         gettext/autoconf-lib-link.
5301         * tests/havelib/rpathz/configure.ac: New file, from
5302         gettext/autoconf-lib-link with modifications.
5303         * tests/havelib/rpathlx/usex.c: New file, from
5304         gettext/autoconf-lib-link.
5305         * tests/havelib/rpathlx/Makefile.am: New file, from
5306         gettext/autoconf-lib-link.
5307         * tests/havelib/rpathlx/configure.ac: New file, from
5308         gettext/autoconf-lib-link with modifications.
5309         * tests/havelib/rpathly/usey.c: New file, from
5310         gettext/autoconf-lib-link.
5311         * tests/havelib/rpathly/Makefile.am: New file, from
5312         gettext/autoconf-lib-link.
5313         * tests/havelib/rpathly/configure.ac: New file, from
5314         gettext/autoconf-lib-link with modifications.
5315         * tests/havelib/rpathlz/usez.c: New file, from
5316         gettext/autoconf-lib-link.
5317         * tests/havelib/rpathlz/Makefile.am: New file, from
5318         gettext/autoconf-lib-link.
5319         * tests/havelib/rpathlz/configure.ac: New file, from
5320         gettext/autoconf-lib-link with modifications.
5321         * tests/havelib/rpathlyx/usey.c: New file, from
5322         gettext/autoconf-lib-link.
5323         * tests/havelib/rpathlyx/Makefile.am: New file, from
5324         gettext/autoconf-lib-link.
5325         * tests/havelib/rpathlyx/configure.ac: New file, from
5326         gettext/autoconf-lib-link with modifications.
5327         * tests/havelib/rpathlzyx/usez.c: New file, from
5328         gettext/autoconf-lib-link.
5329         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5330         gettext/autoconf-lib-link.
5331         * tests/havelib/rpathlzyx/configure.ac: New file, from
5332         gettext/autoconf-lib-link with modifications.
5333         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5334         with modifications.
5335
5336 2010-04-02  Bruno Haible  <bruno@clisp.org>
5337
5338         gnulib-tool: Create distributed built sources also for the tests.
5339         * gnulib-tool (func_create_testdir): Also generate distributed built
5340         sources in the tests directory.
5341
5342 2010-04-02  Bruno Haible  <bruno@clisp.org>
5343
5344         gnulib-tool: Obey user's environment variables.
5345         * gnulib-tool (func_create_testdir): When creating built sources,
5346         respect the environment variables for autoconf, automake, etc. given by
5347         the user.
5348
5349 2010-04-02  Bruno Haible  <bruno@clisp.org>
5350
5351         gnulib-tool: Provide the value of --m4-base to modules.
5352         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5353         of gl_m4_base.
5354
5355 2010-04-02  Eric Blake  <eblake@redhat.com>
5356
5357         maint.mk: fix some fallout
5358         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5359         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5360
5361 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5362
5363         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5364         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5365         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5366         (sc_cast_of_x_alloc_return_value): Likewise.
5367         (sc_cast_of_alloca_return_value): Likewise.
5368         (sc_space_tab): Likewise.
5369         (sc_prohibit_atoi_atof): Likewise.
5370         (sc_prohibit_magic_number_exit): Likewise.
5371         (sc_error_exit_success): Likewise.
5372         (sc_file_system): Likewise.
5373         (sc_prohibit_have_config_h): Likewise.
5374         (sc_require_config_h): Likewise.
5375         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5376         (sc_obsolete_symbols): Likewise.
5377         (sc_changelog): Likewise.
5378         (sc_program_name): Likewise.
5379         (sc_the_the): Likewise.
5380         (sc_trailing_blank): Likewise.
5381         (sc_two_space_separator_in_usage): Likewise.
5382         (sc_useless_cpp_parens): Likewise.
5383         (sc_GPL_version): Likewise.
5384         (sc_GFDL_version): Likewise.
5385         (sc_texinfo_acronym): Likewise.
5386         (sc_prohibit_cvs_keyword): Likewise.
5387         (sc_prohibit_stat_st_blocks): Likewise.
5388         (sc_prohibit_S_IS_definition): Likewise.
5389         (sc_redundant_const): Likewise.
5390         (sc_makefile_TAB_only_indentation): Likewise.
5391         (sc_m4_quote_check): Likewise.
5392         (sc_makefile_path_separator_check): Likewise.
5393         (sc_copyright_check): Likewise.
5394         (sc_Wundef_boolean): Likewise.
5395         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5396
5397         maint.mk: match 0 or more whitespace-before-function-call '('
5398         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5399         that have zero or two-and-more spaces between the function name
5400         and the open parenthesis.
5401         (sc_error_message_warn_fatal): Likewise.
5402         (sc_error_message_uppercase): Likewise.
5403         (sc_error_message_period): Likewise.
5404
5405 2010-03-31  Eric Blake  <eblake@redhat.com>
5406
5407         maint.mk: check for [ as well as test
5408         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5409         Based on a libvirt report by Matthias Bolte.
5410
5411         gnumakefile: don't squelch _version output
5412         * top/GNUmakefile (_version): Create one-shot dependency rather
5413         than using $(shell) when version must be regenerated.
5414         (_autoreconf): Run verbosely, by default.
5415
5416         sys_time: avoid compiler warnings
5417         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5418         unconditional, fixing regression from 2010-03-29.
5419         Reported by Simon Josefsson.
5420
5421 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5422
5423         maint.mk: s/_header_without_use/_sc_header_without_use/
5424         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5425         (sc_prohibit_assert_without_use): Use the new name.
5426         (sc_prohibit_close_stream_without_use): Likewise.
5427         (sc_prohibit_getopt_without_use): Likewise.
5428         (sc_prohibit_quotearg_without_use): Likewise.
5429         (sc_prohibit_quote_without_use): Likewise.
5430         (sc_prohibit_long_options_without_use): Likewise.
5431         (sc_prohibit_inttostr_without_use): Likewise.
5432         (sc_prohibit_ignore_value_without_use): Likewise.
5433         (sc_prohibit_error_without_use): Likewise.
5434         (sc_prohibit_xalloc_without_use): Likewise.
5435         (sc_prohibit_hash_without_use): Likewise.
5436         (sc_prohibit_hash_pjw_without_use): Likewise.
5437         (sc_prohibit_safe_read_without_use): Likewise.
5438         (sc_prohibit_argmatch_without_use): Likewise.
5439         (sc_prohibit_canonicalize_without_use): Likewise.
5440         (sc_prohibit_root_dev_ino_without_use): Likewise.
5441         (sc_prohibit_openat_without_use): Likewise.
5442         (sc_prohibit_c_ctype_without_use): Likewise.
5443         (sc_prohibit_signal_without_use): Likewise.
5444         (sc_prohibit_intprops_without_use): Likewise.
5445
5446 2010-03-30  Eric Blake  <eblake@redhat.com>
5447
5448         maint: improve module indicators
5449         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5450         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5451         columns, and avoid extra macro expansion.
5452
5453         fdopendir: work around FreeBSD bug
5454         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5455         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5456         * modules/dirent (Makefile.am): Substitute it.
5457         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5458         declaration.
5459         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5460         fix.
5461         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5462
5463 2010-03-29  Bruno Haible  <bruno@clisp.org>
5464
5465         Emit #pragma system_header after the inclusion guard, not before.
5466         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5467         guard that spans the entire file, not before. This enables an
5468         optimization in GCC's preprocessor.
5469         * lib/ctype.in.h: Likewise.
5470         * lib/dirent.in.h: Likewise.
5471         * lib/errno.in.h: Likewise.
5472         * lib/float.in.h: Likewise.
5473         * lib/getopt.in.h: Likewise.
5474         * lib/iconv.in.h: Likewise.
5475         * lib/langinfo.in.h: Likewise.
5476         * lib/locale.in.h: Likewise.
5477         * lib/math.in.h: Likewise.
5478         * lib/netdb.in.h: Likewise.
5479         * lib/netinet_in.in.h: Likewise.
5480         * lib/pty.in.h: Likewise.
5481         * lib/sched.in.h: Likewise.
5482         * lib/se-selinux.in.h: Likewise.
5483         * lib/search.in.h: Likewise.
5484         * lib/spawn.in.h: Likewise.
5485         * lib/stdarg.in.h: Likewise.
5486         * lib/stdint.in.h: Likewise.
5487         * lib/string.in.h: Likewise.
5488         * lib/strings.in.h: Likewise.
5489         * lib/sys_file.in.h: Likewise.
5490         * lib/sys_ioctl.in.h: Likewise.
5491         * lib/sys_time.in.h: Likewise.
5492         * lib/sys_times.in.h: Likewise.
5493         * lib/sys_utsname.in.h: Likewise.
5494         * lib/sys_wait.in.h: Likewise.
5495         * lib/sysexits.in.h: Likewise.
5496         * lib/wctype.in.h: Likewise.
5497
5498 2010-03-28  James Youngman  <jay@gnu.org>
5499
5500         save-cwd: don't leak a file descriptor when the caller execs.
5501         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5502         saved file descriptor.
5503         * modules/save-cwd (Depends-on): Depend on cloexec.
5504
5505 2010-03-29  Bruno Haible  <bruno@clisp.org>
5506
5507         Remove vestiges of fts-lgpl module.
5508         * lib/fts_.h: Assume GNULIB_FTS is 1.
5509         * lib/fts.c: Likewise.
5510         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5511
5512 2010-03-28  Bruno Haible  <bruno@clisp.org>
5513
5514         Fix definition of tests witness macro.
5515         * gnulib-tool (func_import): Fix definition of witness macro.
5516
5517 2010-03-28  Bruno Haible  <bruno@clisp.org>
5518
5519         Fix ioctl's protoype on glibc systems.
5520         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5521         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5522         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5523         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5524         signature. If not, arrange to replace the ioctl function.
5525         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5526         REPLACE_IOCTL.
5527         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5528         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5529         Reported by Ludovic Courtès <ludo@gnu.org>.
5530
5531 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5532
5533         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5534         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5535         made it so grep -r --include=GLOB* ... did not work.
5536
5537 2010-03-26  Jim Meyering  <meyering@redhat.com>
5538             Eric Blake  <eblake@redhat.com>
5539
5540         maint.mk: prohibit use of test's -o and -a operators
5541         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5542
5543 2010-03-28  Bruno Haible  <bruno@clisp.org>
5544
5545         Remove unused GNULIB_XYZ macro definitions.
5546         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5547         invocation.
5548
5549 2010-03-28  Bruno Haible  <bruno@clisp.org>
5550
5551         Mark privileged tests modules.
5552         * modules/idpriv-drop-tests (Status): New section.
5553         * modules/idpriv-droptemp-tests (Status): New section.
5554
5555 2010-03-28  Bruno Haible  <bruno@clisp.org>
5556
5557         Split C++ tests into separate tests modules.
5558         * modules/dirent-c++-tests: New file, extracted from
5559         modules/dirent-tests.
5560         * modules/dirent-tests: Depend on it.
5561         * modules/fcntl-h-c++-tests: New file, extracted from
5562         modules/fcntl-h-tests.
5563         * modules/fcntl-h-tests: Depend on it.
5564         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5565         * modules/glob-tests: Depend on it.
5566         * modules/iconv-h-c++-tests: New file, extracted from
5567         modules/iconv-h-tests.
5568         * modules/iconv-h-tests: Depend on it.
5569         * modules/langinfo-c++-tests: New file, extracted from
5570         modules/langinfo-tests.
5571         * modules/langinfo-tests: Depend on it.
5572         * modules/locale-c++-tests: New file, extracted from
5573         modules/locale-tests.
5574         * modules/locale-tests: Depend on it.
5575         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5576         * modules/math-tests: Depend on it.
5577         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5578         * modules/pty-tests: Depend on it.
5579         * modules/search-c++-tests: New file, extracted from
5580         modules/search-tests.
5581         * modules/search-tests: Depend on it.
5582         * modules/signal-c++-tests: New file, extracted from
5583         modules/signal-tests.
5584         * modules/signal-tests: Depend on it.
5585         * modules/spawn-c++-tests: New file, extracted from
5586         modules/spawn-tests.
5587         * modules/spawn-tests: Depend on it.
5588         * modules/stdio-c++-tests: New file, extracted from
5589         modules/stdio-tests.
5590         * modules/stdio-tests: Depend on it.
5591         * modules/stdlib-c++-tests: New file, extracted from
5592         modules/stdlib-tests.
5593         * modules/stdlib-tests: Depend on it.
5594         * modules/string-c++-tests: New file, extracted from
5595         modules/string-tests.
5596         * modules/string-tests: Depend on it.
5597         * modules/sys_ioctl-c++-tests: New file, extracted from
5598         modules/sys_ioctl-tests.
5599         * modules/sys_ioctl-tests: Depend on it.
5600         * modules/sys_select-c++-tests: New file, extracted from
5601         modules/sys_select-tests.
5602         * modules/sys_select-tests: Depend on it.
5603         * modules/sys_socket-c++-tests: New file, extracted from
5604         modules/sys_socket-tests.
5605         * modules/sys_socket-tests: Depend on it.
5606         * modules/sys_stat-c++-tests: New file, extracted from
5607         modules/sys_stat-tests.
5608         * modules/sys_stat-tests: Depend on it.
5609         * modules/sys_time-c++-tests: New file, extracted from
5610         modules/sys_time-tests.
5611         * modules/sys_time-tests: Depend on it.
5612         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5613         * modules/time-tests: Depend on it.
5614         * modules/unistd-c++-tests: New file, extracted from
5615         modules/unistd-tests.
5616         * modules/unistd-tests: Depend on it.
5617         * modules/wchar-c++-tests: New file, extracted from
5618         modules/wchar-tests.
5619         * modules/wchar-tests: Depend on it.
5620         * modules/wctype-c++-tests: New file, extracted from
5621         modules/wctype-tests.
5622         * modules/wctype-tests: Depend on it.
5623         Reported by Simon Josefsson.
5624
5625 2010-03-28  Bruno Haible  <bruno@clisp.org>
5626
5627         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5628         * gnulib-tool (func_exists_module): New function, extracted from
5629         func_verify_module.
5630         (func_verify_module): Use it.
5631         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5632         'foo' only if 'foo' exists.
5633         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5634         module.
5635
5636 2010-03-28  Bruno Haible  <bruno@clisp.org>
5637
5638         gnulib-tool: Add support for special categories of tests.
5639         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5640         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5641         (func_usage): Document them.
5642         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5643         inc_unportable_tests, inc_all_tests): New variables.
5644         (func_acceptable): Consider these variables.
5645         (func_modules_transitive_closure): Make it work when the 'Status' field
5646         consists of multiple words.
5647         (func_import): Store and restore the values of inc_cxx_tests,
5648         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5649         inc_all_tests in gnulib-comp.m4.
5650         (func_create_testdir): Set inc_all_tests to true.
5651         * doc/gnulib.texi (Extra tests modules): New section.
5652         Suggested by Jim Meyering.
5653
5654 2010-03-28  Bruno Haible  <bruno@clisp.org>
5655
5656         ansi-c++-opt: Allow turning off the C++ build by default.
5657         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5658         gl_CXX_CHOICE_DEFAULT_NO is defined.
5659         Requested by Eric Blake.
5660
5661 2010-03-28  Bruno Haible  <bruno@clisp.org>
5662
5663         unistd: Avoid #define replacements in C++ mode.
5664         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5665         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5666         setsockopt, shutdown, select): In C++, attach a warning to the function
5667         if possible, rather than #defining the symbol to a dysfunctional alias.
5668         Reported by John W. Eaton <jwe@gnu.org>.
5669
5670 2010-03-28  Bruno Haible  <bruno@clisp.org>
5671
5672         Fix link errors on mingw.
5673         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5674         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5675         $(LIBSOCKET).
5676         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5677         $(LIBSOCKET).
5678
5679 2010-03-28  Bruno Haible  <bruno@clisp.org>
5680             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5681
5682         lib-ignore: Determine different options for different compilers.
5683         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5684         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5685         Add comments.
5686         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5687         * NEWS: Mention the change.
5688
5689 2010-03-27  Bruno Haible  <bruno@clisp.org>
5690
5691         Remove unused GNULIB_XYZ macro definitions.
5692         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5693         * modules/fseek (configure.ac): Likewise.
5694         * modules/ioctl (configure.ac): Likewise.
5695         * modules/open (configure.ac): Likewise.
5696         * modules/stdlib-safer (configure.ac): Likewise.
5697
5698 2010-03-27  Bruno Haible  <bruno@clisp.org>
5699
5700         Add a remark about certain modules.
5701         * modules/malloc (Comment): New section.
5702         * modules/realloc (Comment): Likewise.
5703         * modules/sigpipe (Comment): Likewise.
5704
5705 2010-03-27  Bruno Haible  <bruno@clisp.org>
5706
5707         Resolve conflict between the two kinds of module indicators.
5708         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5709         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5710         * modules/canonicalize (configure.ac): Invoke
5711         gl_MODULE_INDICATOR_FOR_TESTS.
5712         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5713         GNULIB_XYZ.
5714         * tests/test-dirent-c++.cc: Likewise.
5715         * tests/test-dirent-safer.c: Likewise.
5716         * tests/test-dup2.c: Likewise.
5717         * tests/test-fchdir.c: Likewise.
5718         * tests/test-fcntl-h-c++.cc: Likewise.
5719         * tests/test-getopt.c: Likewise.
5720         * tests/test-getopt.h: Likewise.
5721         * tests/test-langinfo-c++.cc: Likewise.
5722         * tests/test-locale-c++.cc: Likewise.
5723         * tests/test-math-c++.cc: Likewise.
5724         * tests/test-pty-c++.cc: Likewise.
5725         * tests/test-search-c++.cc: Likewise.
5726         * tests/test-signal-c++.cc: Likewise.
5727         * tests/test-spawn-c++.cc: Likewise.
5728         * tests/test-stdio-c++.cc: Likewise.
5729         * tests/test-stdlib-c++.cc: Likewise.
5730         * tests/test-string-c++.cc: Likewise.
5731         * tests/test-sys_ioctl-c++.cc: Likewise.
5732         * tests/test-sys_select-c++.cc: Likewise.
5733         * tests/test-sys_socket-c++.cc: Likewise.
5734         * tests/test-sys_stat-c++.cc: Likewise.
5735         * tests/test-sys_time-c++.cc: Likewise.
5736         * tests/test-time-c++.cc: Likewise.
5737         * tests/test-unistd-c++.cc: Likewise.
5738         * tests/test-wchar-c++.cc: Likewise.
5739         * tests/uninorm/test-u8-nfc.c: Likewise.
5740         * tests/uninorm/test-u8-nfd.c: Likewise.
5741         * tests/uninorm/test-u8-nfkc.c: Likewise.
5742         * tests/uninorm/test-u8-nfkd.c: Likewise.
5743         * tests/uninorm/test-u16-nfc.c: Likewise.
5744         * tests/uninorm/test-u16-nfd.c: Likewise.
5745         * tests/uninorm/test-u16-nfkc.c: Likewise.
5746         * tests/uninorm/test-u16-nfkd.c: Likewise.
5747         * tests/uninorm/test-u32-nfc.c: Likewise.
5748         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5749         * tests/uninorm/test-u32-nfd.c: Likewise.
5750         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5751         * tests/uninorm/test-u32-nfkc.c: Likewise.
5752         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5753         * tests/uninorm/test-u32-nfkd.c: Likewise.
5754         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5755         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5756
5757 2010-03-27  Bruno Haible  <bruno@clisp.org>
5758
5759         Distinguish two kinds of module indicators.
5760         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5761         gl_MODULE_INDICATOR.
5762         (gl_MODULE_INDICATOR): New macro.
5763         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5764         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5765         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5766         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5767         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5768         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5769         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5770         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5771         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5772         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5773         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5774         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5776         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5777         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5778         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5779         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5780         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5781         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5782         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5783         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5784         * modules/cloexec (configure.ac): Likewise.
5785         * modules/getopt-gnu (configure.ac): Likewise.
5786         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5787         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5788         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5789         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5790
5791 2010-03-27  Bruno Haible  <bruno@clisp.org>
5792
5793         New module description field 'Comment'.
5794         * gnulib-tool: New option --extract-comment.
5795         (func_usage): Document it.
5796         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5797         (func_get_comment): New function.
5798         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5799
5800 2010-03-27  Bruno Haible  <bruno@clisp.org>
5801
5802         Addendum to 2010-02-07 commit.
5803         * gnulib-tool (func_usage): Document --extract-applicability option.
5804
5805 2010-03-27  Bruno Haible  <bruno@clisp.org>
5806
5807         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5808         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5809         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5810         rather than link errors.
5811
5812 2010-03-27  Bruno Haible  <bruno@clisp.org>
5813
5814         Avoid side effects from tests-related modules on the compilation of lib.
5815         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5816         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5817         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5818         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5819         macro.
5820         (func_import): Define a witness macro. Assign it a value that depends
5821         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5822         tests-related modules.
5823         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5824         Reported by Jim Meyering.
5825
5826 2010-03-27  Bruno Haible  <bruno@clisp.org>
5827
5828         Factorize common .m4 code.
5829         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
5830         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
5831         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
5832         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
5833         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5834         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
5835         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
5836         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5837         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5838         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5839         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
5840         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5841         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5842         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5843         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5844         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
5845         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5846         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5847         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5848         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
5849         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
5850         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5851         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5852         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5853         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5854         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5855         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
5856         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
5857         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
5858         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5859         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5860         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5861
5862 2010-03-27  Bruno Haible  <bruno@clisp.org>
5863
5864         Fix a compilation error on Cygwin with g++ >= 4.3.
5865         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
5866         if it is undefined or if we alias it to chmod.
5867         (lstat): Don't warn about the use of this function if it is undefined
5868         or if we alias it to stat.
5869         Reported by Simon Josefsson.
5870
5871 2010-03-27  Bruno Haible  <bruno@clisp.org>
5872
5873         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
5874         * modules/getlogin (configure.ac): Update.
5875
5876         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
5877         * modules/getlogin_r (configure.ac): Update.
5878
5879         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
5880         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
5881         * modules/inet_ntop (configure.ac): Update.
5882
5883         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
5884         * modules/inet_pton (configure.ac): Update.
5885
5886         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
5887         * modules/mbslen (configure.ac): Update.
5888
5889         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
5890         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
5891         * modules/forkpty (configure.ac): Update.
5892         * modules/openpty (configure.ac): Update.
5893
5894 2010-03-26  Simon Josefsson  <simon@josefsson.org>
5895
5896         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
5897         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
5898
5899 2010-03-25  Eric Blake  <eblake@redhat.com>
5900
5901         maint: use pragma consistently across replacement headers
5902         * lib/ctype.in.h (system_header): Hoist for consistent placement.
5903         * lib/dirent.in.h (system_header): Likewise.
5904         * lib/errno.in.h (system_header): Likewise.
5905         * lib/float.in.h (system_header): Likewise.
5906         * lib/getopt.in.h (system_header): Likewise.
5907         * lib/iconv.in.h (system_header): Likewise.
5908         * lib/inttypes.in.h (system_header): Likewise.
5909         * lib/langinfo.in.h (system_header): Likewise.
5910         * lib/locale.in.h (system_header): Likewise.
5911         * lib/math.in.h (system_header): Likewise.
5912         * lib/netdb.in.h (system_header): Likewise.
5913         * lib/netinet_in.in.h (system_header): Likewise.
5914         * lib/pty.in.h (system_header): Likewise.
5915         * lib/sched.in.h (system_header): Likewise.
5916         * lib/se-selinux.in.h (system_header): Likewise.
5917         * lib/search.in.h (system_header): Likewise.
5918         * lib/spawn.in.h (system_header): Likewise.
5919         * lib/stdarg.in.h (system_header): Likewise.
5920         * lib/stdint.in.h (system_header): Likewise.
5921         * lib/string.in.h (system_header): Likewise.
5922         * lib/strings.in.h (system_header): Likewise.
5923         * lib/sys_file.in.h (system_header): Likewise.
5924         * lib/sys_ioctl.in.h (system_header): Likewise.
5925         * lib/sys_socket.in.h (system_header): Likewise.
5926         * lib/sys_times.in.h (system_header): Likewise.
5927         * lib/sys_utsname.in.h (system_header): Likewise.
5928         * lib/sys_wait.in.h (system_header): Likewise.
5929         * lib/sysexits.in.h (system_header): Likewise.
5930         * lib/unistd.in.h (system_header): Likewise.
5931         * lib/wctype.in.h (system_header): Likewise.
5932
5933         arpa/inet: fix mingw compilation warning
5934         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
5935         Reported by Matthew Bolte.
5936
5937 2010-03-25  Bruno Haible  <bruno@clisp.org>
5938
5939         Avoid collision between gnulib wrapper and libintl wrapper.
5940         * lib/printf.c (printf): Don't define if a printf wrapper is already
5941         defined in intl/printf.c.
5942         Reported by Michel Boaventura <michel@michelboaventura.com>.
5943
5944 2010-03-25  Bruno Haible  <bruno@clisp.org>
5945
5946         Use ANSI C.
5947         * lib/readutmp.h (getutent): Provide ANSI C prototype.
5948
5949 2010-03-25  Bruno Haible  <bruno@clisp.org>
5950
5951         Minor formatting changes.
5952         * lib/acosl.c: Insert space before function argument list.
5953         * lib/argz.c: Likewise.
5954         * lib/asinl.c: Likewise.
5955         * lib/expl.c: Likewise.
5956         * lib/gen-uni-tables.c: Likewise.
5957         * lib/gettext.h: Likewise.
5958         * lib/glthread/lock.h: Likewise.
5959         * lib/tanl.c: Likewise.
5960         * lib/uniname/uniname.c: Likewise.
5961         * tests/test-idpriv-drop.c: Likewise.
5962         * tests/test-idpriv-droptemp.c: Likewise.
5963         * tests/test-lock.c: Likewise.
5964         * tests/test-tls.c: Likewise.
5965         * lib/argp-help.c: Insert space before function-like macro argument
5966         list.
5967         * lib/memcmp.c: Likewise.
5968         * tests/test-base64.c: Likewise.
5969         * lib/localename.c: Insert space before sizeof's argument list.
5970         * lib/safe-alloc.h: Likewise.
5971         * lib/file-set.h: Insert space before macro argument list.
5972         * tests/test-argp.c: Likewise.
5973         * lib/argp-namefrob.h: Insert space before function parameter list.
5974         * lib/getaddrinfo.c: Likewise.
5975         * lib/netdb.in.h: Likewise.
5976         * lib/parse-duration.h: Likewise.
5977         * lib/parse-duration.c: Likewise.
5978         * lib/poll.c: Likewise.
5979         * lib/select.c: Likewise.
5980         * lib/trim.h: Likewise.
5981         * tests/test-usleep.c: Likewise.
5982         * lib/ldexpl.c: Insert space before function parameter list and before
5983         function argument list.
5984         * lib/logl.c: Likewise.
5985         * lib/sqrtl.c: Likewise.
5986         * lib/trim.c: Likewise.
5987         * lib/cosl.c: Use GNU style indentation. Insert space before function
5988         argument list.
5989         * lib/sinl.c: Likewise.
5990         * lib/tsearch.c: Insert space after 'for'.
5991         Reported by Jim Meyering.
5992
5993 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
5994
5995         * maint.mk (sc_Wundef_boolean): Check for the presence of the
5996         config header before grepping, as it's not present before
5997         autoreconf/configure are run.  Reported by Simon Josefsson.
5998
5999 2010-03-23  Bruno Haible  <bruno@clisp.org>
6000
6001         pt_chown: Make it work with automake < 1.11.
6002         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
6003         Reported by Simon Josefsson.
6004
6005 2010-03-23  Bruno Haible  <bruno@clisp.org>
6006
6007         pt_chown: Don't depend on GPLed modules.
6008         * lib/pt_chown.c: Don't include idpriv.h.
6009         (main): Don't drop privileges.
6010         * modules/pt_chown (Depends-on): Remove idpriv-drop.
6011         Reported by Simon Josefsson.
6012
6013 2010-03-24  Simon Josefsson  <simon@josefsson.org>
6014
6015         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
6016         suggestions from karl@freefriends.org (Karl Berry).
6017
6018 2010-03-22  Eric Blake  <eblake@redhat.com>
6019
6020         gethostname: further tweaks
6021         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
6022         are overriding gethostname.
6023         Suggested by Bruno Haible.
6024
6025 2010-03-21  Bruno Haible  <bruno@clisp.org>
6026
6027         Fix comments.
6028         * lib/forkpty.c (rpl_forkpty): Fix comment.
6029         * lib/openpty.c (rpl_openpty): Likewise.
6030         Reported by Eric Blake.
6031
6032 2010-03-22  Eric Blake  <eblake@redhat.com>
6033
6034         gethostname: fix build on mingw
6035         * lib/unistd.in.h (includes): Work around fact that mingw
6036         <winsock2.h> re-includes <unistd.h>, by avoiding any
6037         redeclarations if we are being included by <winsock2.h>.
6038         Reported by Matthias Bolte.
6039
6040 2010-03-21  Bruno Haible  <bruno@clisp.org>
6041
6042         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6043         * lib/forkpty.c (forkpty): New replacement function, from glibc with
6044         modifications.
6045         * lib/pty.in.h (forkpty): Update declaration. Add comments.
6046         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
6047         provide the replacement.
6048         * modules/forkpty (Depends-on): Add openpty, login_tty.
6049         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
6050         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
6051         * doc/glibc-functions/forkpty.texi: More supported platforms.
6052         * config/srclist.txt: Add forkpty.c (commented).
6053
6054 2010-03-21  Bruno Haible  <bruno@clisp.org>
6055
6056         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
6057         (Makefile.am): Verify that PTY_LIB is defined.
6058
6059         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
6060
6061 2010-03-21  Bruno Haible  <bruno@clisp.org>
6062
6063         Tests for module 'login_tty'.
6064         * modules/login_tty-tests: New file.
6065         * tests/test-login_tty.c: New file.
6066
6067         New module 'login_tty'.
6068         * lib/login_tty.c: New file.
6069         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
6070         * modules/login_tty: New file.
6071         * doc/glibc-functions/login_tty.texi: Mention the new module.
6072
6073 2010-03-21  Bruno Haible  <bruno@clisp.org>
6074
6075         login_tty: Documentation.
6076         * doc/glibc-functions/login_tty.texi: New file.
6077         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
6078
6079 2010-03-21  Bruno Haible  <bruno@clisp.org>
6080
6081         pty: Consistent macro naming.
6082         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
6083         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
6084         * modules/pty (configure.ac): Update.
6085
6086 2010-03-21  Bruno Haible  <bruno@clisp.org>
6087
6088         Tests for openpty: Make stricter.
6089         * tests/test-openpty.c (main): Add test of canonical processing and
6090         erase.
6091         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
6092
6093         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6094         * lib/openpty.c (openpty): New replacement function.
6095         * lib/pty.in.h: Include <termios.h>.
6096         (openpty): Update declaration. Add comments.
6097         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
6098         is not declared, arrange to provide the replacement. Check for _getpty
6099         and posix_openpt.
6100         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
6101         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
6102         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
6103         * modules/pty-tests (test_pty_c___LDADD): New variable.
6104         * doc/glibc-functions/openpty.texi: More supported platforms.
6105
6106 2010-03-21  Bruno Haible  <bruno@clisp.org>
6107
6108         setenv: Tweaks.
6109         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
6110         the test program.
6111         * doc/posix-functions/setenv.texi: Update platforms list.
6112
6113 2010-03-21  Bruno Haible  <bruno@clisp.org>
6114
6115         New module 'unlockpt'.
6116         * lib/unlockpt.c: New file, from glibc with modifications.
6117         * m4/unlockpt.m4: New file.
6118         * modules/unlockpt: New file.
6119         * lib/stdlib.in.h (unlockpt): New declaration.
6120         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
6121         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
6122         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
6123         HAVE_UNLOCKPT.
6124         * doc/posix-functions/unlockpt.texi: Mention the new module.
6125         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
6126         * config/srclist.txt: Add unlockpt.c (commented).
6127
6128 2010-03-21  Jim Meyering  <meyering@redhat.com>
6129
6130         maint.mk: prohibit inclusion of "intprops.h" without use
6131         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
6132
6133 2010-03-21  Bruno Haible  <bruno@clisp.org>
6134
6135         New module 'grantpt'.
6136         * lib/grantpt.c: New file, from glibc with modifications.
6137         * m4/grantpt.m4: New file.
6138         * modules/grantpt: New file.
6139         * lib/stdlib.in.h (grantpt): New declaration.
6140         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
6141         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
6142         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
6143         HAVE_GRANTPT.
6144         * doc/posix-functions/grantpt.texi: Mention the new module.
6145         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
6146         * config/srclist.txt: Add grantpt.c (commented).
6147
6148 2010-03-21  Bruno Haible  <bruno@clisp.org>
6149
6150         New module 'pt_chown'.
6151         * lib/pt_chown.c: New file, from glibc with modifications.
6152         * lib/pty-private.h: New file, from glibc with modifications.
6153         * modules/pt_chown: New file.
6154         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
6155
6156 2010-03-21  Bruno Haible  <bruno@clisp.org>
6157
6158         Tests for module 'ptsname'.
6159         * modules/ptsname-tests: New file.
6160         * tests/test-ptsname.c: New file.
6161
6162         New module 'ptsname'.
6163         * lib/ptsname.c: New file, from glibc with modifications.
6164         * m4/ptsname.m4: New file.
6165         * modules/ptsname: New file.
6166         * lib/stdlib.in.h (ptsname): New declaration.
6167         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6168         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6169         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6170         HAVE_PTSNAME.
6171         * doc/posix-functions/ptsname.texi: Mention the new module.
6172         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6173         * config/srclist.txt: Add ptsname.c (commented).
6174
6175 2010-03-21  Bruno Haible  <bruno@clisp.org>
6176
6177         Tests for module 'ttyname_r'.
6178         * modules/ttyname_r-tests: New file.
6179         * tests/test-ttyname_r.c: New file.
6180
6181         New module 'ttyname_r'.
6182         * lib/ttyname_r.c: New file.
6183         * m4/ttyname_r.m4: New file.
6184         * modules/ttyname_r: New file.
6185         * lib/unistd.in.h (ttyname_r): New declaration.
6186         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6187         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6188         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6189         HAVE_TTYNAME_R.
6190         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6191         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6192
6193 2010-03-20  Bruno Haible  <bruno@clisp.org>
6194
6195         signal: Undefine macro definitions in C++ mode.
6196         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6197         sigfillset): Undefine macro definitions from the system header in C++
6198         mode.
6199         Reported by John W. Eaton <jwe@gnu.org>.
6200
6201 2010-03-20  Bruno Haible  <bruno@clisp.org>
6202
6203         Ensure no #include statements inside extern "C" { ... }.
6204         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6205         contain #include statements.
6206         * lib/time.in.h: Likewise.
6207
6208 2010-03-20  Bruno Haible  <bruno@clisp.org>
6209
6210         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6211         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6212         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6213         Reported by John W. Eaton <jwe@gnu.org>.
6214
6215 2010-03-20  Bruno Haible  <bruno@clisp.org>
6216
6217         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6218         Reported by Jim Meyering.
6219
6220 2010-03-20  Bruno Haible  <bruno@clisp.org>
6221
6222         pipe: Set errno upon failure.
6223         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6224         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6225         errno value in error message.
6226
6227 2010-03-20  Bruno Haible  <bruno@clisp.org>
6228             Jim Meyering  <meyering@redhat.com>
6229
6230         lchown: Avoid "unused variable" warning.
6231         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6232
6233 2010-03-20  Bruno Haible  <bruno@clisp.org>
6234
6235         Work around unlink() bug on MacOS X 10.5.6.
6236         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6237         attempting to unlink a parent directory.
6238         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6239         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6240         activate for the replacement function.
6241         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6242
6243 2010-03-20  Bruno Haible  <bruno@clisp.org>
6244
6245         Fix link errors on Solaris 8.
6246         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6247         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6248
6249 2010-03-19  Jim Meyering  <meyering@redhat.com>
6250
6251         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6252         The _LIBC implementation of build_range_exp correctly honors the
6253         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6254         However, the non-_LIBC implementation would ignore that syntax-bit
6255         flag and return REG_ERANGE unconditionally.
6256         This change makes it honor that flag.
6257         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6258         Make two pointer parameters "const".
6259         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6260         (parse_bracket_exp): Update caller.
6261
6262         regex.m4: correct the reversed range endpoint ([b-a]) test
6263         * m4/regex.m4: When requiring that [b-a] evoke failure,
6264         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6265         test pass once again for x86-based systems.
6266
6267 2010-03-19  Bruno Haible  <bruno@clisp.org>
6268
6269         scandir: Fix link error on Solaris 8.
6270         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6271         macros.
6272
6273 2010-03-19  Bruno Haible  <bruno@clisp.org>
6274
6275         getusershell: Fix documentation.
6276         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6277         module.
6278         * doc/glibc-functions/setusershell.texi: Likewise.
6279
6280         getusershell: Provide declaration, missing on Solaris 9.
6281         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6282         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6283         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6284         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6286         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6287         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6288         HAVE_GETUSERSHELL.
6289         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6290
6291 2010-03-19  Bruno Haible  <bruno@clisp.org>
6292
6293         wctype: Provide iswblank function.
6294         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6295         exists and is fine.
6296         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6297         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6298         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6299         * doc/posix-functions/iswblank.texi: Update.
6300
6301 2010-03-19  Bruno Haible  <bruno@clisp.org>
6302
6303         Tests of module 'pty' in C++ mode.
6304         * modules/pty-tests: New file.
6305         * tests/test-pty-c++.cc: New file.
6306         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6307
6308 2010-03-19  Eric Blake  <eblake@redhat.com>
6309
6310         logb: fix documentation
6311         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6312         1.5 declaration bug.
6313
6314         forkpty, openpty: prefer glibc's const-safe prototype
6315         * lib/forkpty.c (rpl_forkpty): New file.
6316         * lib/openpty.c (rpl_openpty): Likewise.
6317         * modules/forkpty (Files): Distribute it.
6318         * modules/openpty (Files): Likewise.
6319         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6320         check...
6321         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6322         replacement for for non-const BSD signature.
6323         * modules/pty (Makefile.am): Substitute witnesses.
6324         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6325         * tests/test-forkpty.c: Update signature check.
6326         * tests/test-openpty.c: Likewise.
6327         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6328         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6329
6330         forkpty, openpty: split functions into new modules
6331         * modules/pty (Makefile.am): Substitute new witnesses.
6332         (Libraries): Move library detection...
6333         * modules/forkpty: ...into new module.
6334         * modules/openpty: Another new module.
6335         * modules/pty-tests: Rename and split...
6336         * modules/forkpty-tests: ...to this...
6337         * modules/openpty-tests: ...and this.
6338         * tests/test-pty.c: Rename and split...
6339         * tests/test-forkpty.c: ...to this...
6340         * tests/test-openpty.c: ...and this.
6341         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6342         (gl_PTY): Split library searching...
6343         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6344         (gl_FORKPTY, gl_OPENPTY): New macros.
6345         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6346         * NEWS: Mention the split.
6347         * MODULES.html.sh (Misc): Document the modules.
6348         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6349         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6350
6351         pty: improve replacement header
6352         * lib/pty.in.h: New file.
6353         * modules/pty (Files): Ship it.
6354         (Makefile.am): Always build replacement.
6355         * m4/pty.m4: Rename...
6356         * m4/pty_h.m4: ...to this.
6357         (gl_PTY): Modernize setting of witness macros; update check of
6358         forkpty to take proper advantage of cache.
6359         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6360
6361         getopt: avoid compiler warning
6362         * lib/getopt.c (attribute_hidden): Remove unused macro.
6363
6364 2010-03-18  Bruno Haible  <bruno@clisp.org>
6365
6366         Fix link errors on Solaris 8.
6367         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6368         * modules/search-tests (test_search_c___LDADD): Likewise.
6369         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6370         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6371         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6372         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6373         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6374         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6375         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6376
6377 2010-03-18  Bruno Haible  <bruno@clisp.org>
6378
6379         Fix bug introduced on 2010-03-14.
6380         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6381         (gl_SPAWN_H): Require it.
6382         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6383         Reported by Simon Josefsson.
6384
6385 2010-03-18  Bruno Haible  <bruno@clisp.org>
6386
6387         Fix typo introduced on 2009-12-31.
6388         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6389         posix_spawn_file_actions_adddup2.
6390
6391 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6392         and Eric Blake  <eblake@redhat.com>
6393
6394         test-vc-list-files-git: make more robust
6395         * tests/test-vc-list-files-git.sh: Unset problematic environment
6396         variables.  Chain commands together.
6397
6398 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6399
6400         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6401         `AC_CHECK_DECL' invocation.
6402
6403 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6404
6405         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6406         appears before executable statements. Suggested by Petr Sumbera
6407         <Petr.Sumbera@Sun.COM>.
6408
6409 2010-03-14  Bruno Haible  <bruno@clisp.org>
6410
6411         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6412         portability problems. Instead use a simpler test.
6413         (main): Check that invalid arguments are rejected only on Linux.
6414
6415 2010-03-14  Bruno Haible  <bruno@clisp.org>
6416
6417         Fix bug introduced on 2009-12-31.
6418         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6419         gl_PREREQ_SYS_H_WINSOCK2 always.
6420         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6421         SYS_SOCKET_H variable.
6422         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6423         Update comments.
6424         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6425         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6426         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6427         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6428         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6429
6430 2010-03-14  Bruno Haible  <bruno@clisp.org>
6431
6432         Fix values returned by sinl, cosl.
6433         * lib/trigl.h: Add specification comments.
6434         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6435         that combines the values from the precomputed table with the values of
6436         the Chebyshev polynomials.
6437
6438 2010-03-14  Bruno Haible  <bruno@clisp.org>
6439
6440         Fix compilation error when modules 'posix_spawn[p]' are not used.
6441         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6442         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6443
6444 2010-03-14  Bruno Haible  <bruno@clisp.org>
6445
6446         Fix compilation error on mingw when module 'time_r' is not used.
6447         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6448         is 1.
6449         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6450         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6451         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6452         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6453
6454 2010-03-14  Bruno Haible  <bruno@clisp.org>
6455
6456         Fix compilation error with Sun C.
6457         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6458         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6459         instead of GCC specific ULONG_LONG_MAX.
6460         * lib/xstrtoll.c: Likewise.
6461         * lib/xstrtoull.c: Likewise.
6462
6463 2010-03-13  Bruno Haible  <bruno@clisp.org>
6464
6465         Allow the user to disable C++ code and tests.
6466         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6467         (gl_PROG_ANSI_CXX): Require it.
6468
6469 2010-03-13  Bruno Haible  <bruno@clisp.org>
6470
6471         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6472         cases.
6473
6474 2010-03-13  Bruno Haible  <bruno@clisp.org>
6475
6476         Test that gnulib does not break the standard C++ headers.
6477         * tests/test-locale-c++2.cc: New file.
6478         * modules/locale-tests (Files): Add it.
6479         (Makefile.am): Compile it for test-locale-c++.
6480         * tests/test-math-c++2.cc: New file.
6481         * modules/math-tests (Files): Add it.
6482         (Makefile.am): Compile it for test-math-c++.
6483         * tests/test-signal-c++2.cc: New file.
6484         * modules/signal-tests (Files): Add it.
6485         (Makefile.am): Compile it for test-signal-c++.
6486         * tests/test-stdio-c++2.cc: New file.
6487         * modules/stdio-tests (Files): Add it.
6488         (Makefile.am): Compile it for test-stdio-c++.
6489         * tests/test-stdlib-c++2.cc: New file.
6490         * modules/stdlib-tests (Files): Add it.
6491         (Makefile.am): Compile it for test-stdlib-c++.
6492         * tests/test-string-c++2.cc: New file.
6493         * modules/string-tests (Files): Add it.
6494         (Makefile.am): Compile it for test-string-c++.
6495         * tests/test-time-c++2.cc: New file.
6496         * modules/time-tests (Files): Add it.
6497         (Makefile.am): Compile it for test-time-c++.
6498         Reported by John W. Eaton <jwe@gnu.org>.
6499
6500 2010-03-13  Bruno Haible  <bruno@clisp.org>
6501
6502         * gnulib-tool (func_usage): Clarify which options are available for
6503         --create-testdir and --create-megatestdir.
6504
6505 2010-03-13  Bruno Haible  <bruno@clisp.org>
6506
6507         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6508         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6509         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6510         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6511         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6512         when appropriate.
6513         Reported by Jim Meyering.
6514
6515 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6516
6517         * gnulib-tool (func_import): Explain origin of code.
6518
6519 2010-03-12  Bruno Haible  <bruno@clisp.org>
6520
6521         Fix problem with automake's definition of CXXLINK.
6522         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6523         Reported by Simon Josefsson and Ludovic Courtès.
6524
6525 2010-03-12  Bruno Haible  <bruno@clisp.org>
6526
6527         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6528         stable releases.
6529
6530 2010-03-11  Bruno Haible  <bruno@clisp.org>
6531
6532         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6533         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6534         whether the system provides one variant or multiple variants of the
6535         function.
6536         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6537         C++ compilers.
6538         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6539         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6540         Reported by Jim Meyering.
6541
6542 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6543
6544         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6545
6546 2010-03-08  Bruno Haible  <bruno@clisp.org>
6547
6548         gnulib-tool: Add support for --libtool in --create-testdir.
6549         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6550         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6551
6552 2010-03-08  Eric Blake  <eblake@redhat.com>
6553
6554         gnulib-tool.texi: mention possibility of git submodule
6555         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6556         submodules.
6557         * doc/.gitignore: Ignore another generated file.
6558
6559 2010-03-08  Karl Berry  <karl@gnu.org>
6560
6561         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6562         of committing gnulib files while skipping others.
6563
6564 2010-03-07  Bruno Haible  <bruno@clisp.org>
6565
6566         Tests of module 'wctype' in C++ mode.
6567         * tests/test-wctype-c++.cc: New file.
6568         * modules/wctype-tests (Files): Add it and tests/signature.h.
6569         (Depends-on): Add ansi-c++-opt.
6570         (Makefile.am): Arrange to compile and run test-wctype-c++.
6571
6572         Tests of module 'wchar' in C++ mode.
6573         * tests/test-wchar-c++.cc: New file.
6574         * modules/wchar-tests (Files): Add it and tests/signature.h.
6575         (Depends-on): Add ansi-c++-opt.
6576         (Makefile.am): Arrange to compile and run test-wchar-c++.
6577         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6578         gl_MODULE_INDICATOR.
6579
6580         Tests of module 'unistd' in C++ mode.
6581         * tests/test-unistd-c++.cc: New file.
6582         * modules/unistd-tests (Files): Add it and tests/signature.h.
6583         (Depends-on): Add ansi-c++-opt.
6584         (Makefile.am): Arrange to compile and run test-unistd-c++.
6585         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6586         gl_MODULE_INDICATOR.
6587
6588         Tests of module 'time' in C++ mode.
6589         * tests/test-time-c++.cc: New file.
6590         * modules/time-tests (Files): Add it and tests/signature.h.
6591         (Depends-on): Add ansi-c++-opt.
6592         (Makefile.am): Arrange to compile and run test-time-c++.
6593         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6594
6595         Tests of module 'sys_time' in C++ mode.
6596         * tests/test-sys_time-c++.cc: New file.
6597         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6598         (Depends-on): Add ansi-c++-opt.
6599         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6600         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6601         gl_MODULE_INDICATOR.
6602
6603         Tests of module 'sys_stat' in C++ mode.
6604         * tests/test-sys_stat-c++.cc: New file.
6605         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6606         (Depends-on): Add ansi-c++-opt.
6607         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6608         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6609         gl_MODULE_INDICATOR.
6610
6611         Tests of module 'sys_socket' in C++ mode.
6612         * tests/test-sys_socket-c++.cc: New file.
6613         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6614         (Depends-on): Add ansi-c++-opt.
6615         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6616         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6617         gl_MODULE_INDICATOR.
6618
6619         Tests of module 'sys_select' in C++ mode.
6620         * tests/test-sys_select-c++.cc: New file.
6621         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6622         (Depends-on): Add ansi-c++-opt.
6623         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6624         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6625         gl_MODULE_INDICATOR.
6626
6627         Tests of module 'sys_ioctl' in C++ mode.
6628         * tests/test-sys_ioctl-c++.cc: New file.
6629         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6630         (Depends-on): Add ansi-c++-opt.
6631         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6632         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6633         gl_MODULE_INDICATOR.
6634
6635         Tests of module 'string' in C++ mode.
6636         * tests/test-string-c++.cc: New file.
6637         * modules/string-tests (Files): Add it and tests/signature.h.
6638         (Depends-on): Add ansi-c++-opt.
6639         (Makefile.am): Arrange to compile and run test-string-c++.
6640         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6641         gl_MODULE_INDICATOR.
6642
6643         Tests of module 'stdlib' in C++ mode.
6644         * tests/test-stdlib-c++.cc: New file.
6645         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6646         (Depends-on): Add ansi-c++-opt.
6647         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6648         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6649         gl_MODULE_INDICATOR.
6650
6651         Tests of module 'stdio' in C++ mode.
6652         * tests/test-stdio-c++.cc: New file.
6653         * modules/stdio-tests (Files): Add it and tests/signature.h.
6654         (Depends-on): Add ansi-c++-opt.
6655         (Makefile.am): Arrange to compile and run test-stdio-c++.
6656         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6657         gl_MODULE_INDICATOR.
6658
6659         Tests of module 'spawn' in C++ mode.
6660         * tests/test-spawn-c++.cc: New file.
6661         * modules/spawn-tests (Files): Add it and tests/signature.h.
6662         (Depends-on): Add ansi-c++-opt.
6663         (Makefile.am): Arrange to compile and run test-spawn-c++.
6664         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6665         gl_MODULE_INDICATOR.
6666
6667         Tests of module 'signal' in C++ mode.
6668         * tests/test-signal-c++.cc: New file.
6669         * modules/signal-tests (Files): Add it and tests/signature.h.
6670         (Depends-on): Add ansi-c++-opt.
6671         (Makefile.am): Arrange to compile and run test-signal-c++.
6672         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6673         gl_MODULE_INDICATOR.
6674
6675         Tests of module 'search' in C++ mode.
6676         * tests/test-search-c++.cc: New file.
6677         * modules/search-tests (Files): Add it and tests/signature.h.
6678         (Depends-on): Add ansi-c++-opt.
6679         (Makefile.am): Arrange to compile and run test-search-c++.
6680         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6681         gl_MODULE_INDICATOR.
6682
6683         Tests of module 'math' in C++ mode.
6684         * tests/test-math-c++.cc: New file.
6685         * modules/math-tests (Files): Add it and tests/signature.h.
6686         (Depends-on): Add ansi-c++-opt.
6687         (Makefile.am): Arrange to compile and run test-math-c++.
6688         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6689
6690         Tests of module 'locale' in C++ mode.
6691         * tests/test-locale-c++.cc: New file.
6692         * modules/locale-tests (Files): Add it and tests/signature.h.
6693         (Depends-on): Add ansi-c++-opt.
6694         (Makefile.am): Arrange to compile and run test-locale-c++.
6695         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6696         gl_MODULE_INDICATOR.
6697
6698         Tests of module 'langinfo' in C++ mode.
6699         * tests/test-langinfo-c++.cc: New file.
6700         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6701         (Depends-on): Add ansi-c++-opt.
6702         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6703         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6704         gl_MODULE_INDICATOR.
6705
6706         Tests of module 'iconv-h' in C++ mode.
6707         * tests/test-iconv-h-c++.cc: New file.
6708         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6709         (Depends-on): Add ansi-c++-opt.
6710         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6711
6712         Tests of module 'glob' in C++ mode.
6713         * tests/test-glob-c++.cc: New file.
6714         * modules/glob-tests (Files): Add it.
6715         (Depends-on): Add ansi-c++-opt.
6716         (Makefile.am): Arrange to compile and run test-glob-c++.
6717
6718         Tests of module 'fcntl-h' in C++ mode.
6719         * tests/test-fcntl-h-c++.cc: New file.
6720         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6721         (Depends-on): Add ansi-c++-opt.
6722         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6723         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6724         gl_MODULE_INDICATOR.
6725
6726         Tests of module 'dirent' in C++ mode.
6727         * tests/test-dirent-c++.cc: New file.
6728         * modules/dirent-tests (Files): Add it and tests/signature.h.
6729         (Depends-on): Add ansi-c++-opt.
6730         (Makefile.am): Arrange to compile and run test-dirent-c++.
6731         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6732         gl_MODULE_INDICATOR.
6733
6734         New module 'ansi-c++-opt'.
6735         * modules/ansi-c++-opt: New file.
6736         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6737
6738         Document C++ namespace mode.
6739         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6740
6741         wctype: Avoid #define replacements in C++ mode.
6742         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6743         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6744         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6745         In C++, define a namespaced alias symbol.
6746         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6747         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6748         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6749         rule.
6750
6751         wchar: Avoid #define replacements in C++ mode.
6752         * lib/wchar.in.h: Include c++defs.h.
6753         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6754         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6755         symbol.
6756         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6757         * modules/wchar (Depends-on): Add c++defs.
6758         (Makefile.am): Update wchar.h rule.
6759
6760         unistd: Avoid #define replacements in C++ mode.
6761         * lib/unistd.in.h: Include c++defs.h.
6762         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6763         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6764         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6765         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6766         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6767         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6768         symbol.
6769         (environ): Update.
6770         * modules/unistd (Depends-on): Add c++defs.
6771         (Makefile.am): Update unistd.h rule.
6772
6773         time: Avoid #define replacements in C++ mode.
6774         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6775         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6776         define a namespaced alias symbol.
6777         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6778         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6779         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6780         * modules/time (Depends-on): Add c++defs, warn-on-use.
6781         (Makefile.am): Update time.h rule.
6782         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6783         * modules/nanosleep (configure.ac): Likewise.
6784         * modules/strptime (configure.ac): Likewise.
6785         * modules/timegm (configure.ac): Likewise.
6786
6787         sys_time: Avoid #define replacements in C++ mode.
6788         * lib/sys_time.in.h: Include c++defs.h.
6789         (gettimeofday): In C++, define a namespaced alias symbol.
6790         * modules/sys_time (Depends-on): Add c++defs.
6791         (Makefile.am): Update sys/time.h rule.
6792
6793         sys_stat: Avoid #define replacements in C++ mode.
6794         * lib/sys_stat.in.h: Include c++defs.h.
6795         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6796         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6797         namespaced alias symbol.
6798         In C++, define a namespaced alias symbol.
6799         * modules/sys_stat (Depends-on): Add c++defs.
6800         (Makefile.am): Update sys/stat.h rule.
6801
6802         sys_socket: Avoid #define replacements in C++ mode.
6803         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6804         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6805         definitions also when the system has a <sys/socket.h>.
6806         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6807         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6808         In C++, define a namespaced alias symbol.
6809         * modules/sys_socket (Depends-on): Add c++defs.
6810         (Makefile.am): Update sys/socket.h rule.
6811
6812         sys_select: Avoid #define replacements in C++ mode.
6813         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6814         definitions also when the system has a <sys/select.h>.
6815         (select): In C++, define a namespaced alias symbol.
6816         * modules/sys_select (Depends-on): Add c++defs.
6817         (Makefile.am): Update sys/select.h rule.
6818
6819         sys_ioctl: Avoid #define replacements in C++ mode.
6820         * lib/sys_ioctl.in.h: Include c++defs.h.
6821         (ioctl): In C++, define a namespaced alias symbol.
6822         * modules/sys_ioctl (Depends-on): Add c++defs.
6823         (Makefile.am): Update sys/ioctl.h rule.
6824
6825         string: Avoid #define replacements in C++ mode.
6826         * lib/string.in.h: Include c++defs.h.
6827         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6828         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6829         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6830         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
6831         strsignal, strverscmp): In C++, define a namespaced alias symbol.
6832         * modules/string (Depends-on): Add c++defs.
6833         (Makefile.am): Update string.h rule.
6834
6835         stdlib: Avoid #define replacements in C++ mode.
6836         * lib/stdlib.in.h: Include c++defs.h.
6837         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
6838         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
6839         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
6840         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
6841         symbol.
6842         * modules/stdlib (Depends-on): Add c++defs.
6843         (Makefile.am): Update stdlib.h rule.
6844
6845         stdio: Avoid #define replacements in C++ mode.
6846         * lib/stdio.in.h: Include c++defs.h.
6847         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
6848         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
6849         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
6850         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
6851         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
6852         namespaced alias symbol.
6853         * modules/stdio (Depends-on): Add c++defs.
6854         (Makefile.am): Update stdio.h rule.
6855
6856         spawn: Avoid #define replacements in C++ mode.
6857         * lib/spawn.in.h: Include c++defs.h.
6858         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6859         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6860         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6861         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6862         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6863         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6864         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6865         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6866         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6867         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6868         In C++, define a namespaced alias symbol.
6869         * modules/spawn (Depends-on): Add c++defs.
6870         (Makefile.am): Update spawn.h rule.
6871
6872         signal: Avoid #define replacements in C++ mode.
6873         * lib/signal.in.h: Include c++defs.h.
6874         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6875         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
6876         namespaced alias symbol.
6877         * modules/signal (Depends-on): Add c++defs.
6878         (Makefile.am): Update signal.h rule.
6879
6880         search: Avoid #define replacements in C++ mode.
6881         * lib/search.in.h: Include c++defs.h.
6882         (_gl_search_compar_fn, _gl_search_action_fn): New types.
6883         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
6884         symbol.
6885         * modules/search (Depends-on): Add c++defs.
6886         (Makefile.am): Update search.h rule.
6887
6888         math: Avoid #define replacements in C++ mode.
6889         * lib/math.in.h: Include c++defs.h.
6890         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
6891         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
6892         trunc, truncl): In C++, define a namespaced alias symbol.
6893         * modules/math (Depends-on): Add c++defs.
6894         (Makefile.am): Update math.h rule.
6895
6896         locale: Avoid #define replacements in C++ mode.
6897         * lib/locale.in.h: Include c++defs.h.
6898         (duplocale): In C++, define a namespaced alias symbol.
6899         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
6900         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
6901         * modules/locale (Depends-on): Add c++defs.
6902         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
6903
6904         langinfo: Avoid #define replacements in C++ mode.
6905         * lib/langinfo.in.h: Include c++defs.h.
6906         (nl_langinfo): In C++, define a namespaced alias symbol.
6907         * modules/langinfo (Depends-on): Add c++defs.
6908         (Makefile.am): Update langinfo.h rule.
6909
6910         iconv-h: Avoid #define replacements in C++ mode.
6911         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
6912         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
6913         symbol.
6914         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
6915         whenever iconv is present.
6916         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
6917         (Makefile.am): Update iconv.h rule.
6918
6919         glob: Avoid #define replacements in C++ mode.
6920         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
6921         (_gl_glob_errfunc_fn): New type.
6922         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
6923         symbol.
6924         * modules/glob (Depends-on): Add c++defs, warn-on-use.
6925         (Makefile.am): Update glob.h rule.
6926
6927         fcntl-h: Avoid #define replacements in C++ mode.
6928         * lib/fcntl.in.h: Include c++defs.h.
6929         (fcntl, open, openat): In C++, define a namespaced alias symbol.
6930         * modules/fcntl-h (Depends-on): Add c++defs.
6931         (Makefile.am): Update fcntl.h rule.
6932
6933         dirent: Avoid #define replacements in C++ mode.
6934         * lib/dirent.in.h: Include c++defs.h.
6935         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
6936         namespaced alias symbol.
6937         (dirfd): Update declaration.
6938         * modules/dirent (Depends-on): Add c++defs.
6939         (Makefile.am): Update dirent.h rule.
6940
6941         ctype: Make it usable in C++ code.
6942         * lib/ctype.in.h: Include c++defs.h.
6943         (isblank): Declare as extern "C".
6944         * modules/ctype (Depends-on): Add c++defs.
6945         (Makefile.am): Update ctype.h rule.
6946
6947         New module 'c++defs'.
6948         * modules/c++defs: New file.
6949         * build-aux/c++defs.h: New file.
6950         Reported by John W. Eaton <jwe@gnu.org>.
6951
6952 2010-03-07  Bruno Haible  <bruno@clisp.org>
6953
6954         logb: Provide missing declaration for Cygwin.
6955         * lib/math.in.h (logb): New declaration.
6956         * m4/logb.m4: New file.
6957         * modules/logb (Files): Add m4/logb.m4.
6958         (Depends-on): Add math.
6959         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
6960         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
6961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
6962         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
6963         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
6964
6965 2010-03-07  Bruno Haible  <bruno@clisp.org>
6966
6967         Fix test-cond link error.
6968         * tests/test-cond.c: Include <stdio.h>.
6969
6970 2010-03-07  Bruno Haible  <bruno@clisp.org>
6971
6972         Fix test-dirent-safer link error.
6973         * modules/dirent-safer-tests (Makefile.am): Define
6974         test_dirent_safer_LDADD.
6975
6976 2010-03-07  Bruno Haible  <bruno@clisp.org>
6977
6978         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
6979         among default module list.
6980
6981 2010-03-07  Bruno Haible  <bruno@clisp.org>
6982
6983         Fix link error on platforms with GNU libiconv.
6984         * modules/unistr/u8-strcoll-tests (Makefile): Define
6985         test_u8_strcoll_LDADD.
6986         * modules/unistr/u16-strcoll-tests (Makefile): Define
6987         test_u16_strcoll_LDADD.
6988         * modules/unistr/u32-strcoll-tests (Makefile): Define
6989         test_u32_strcoll_LDADD.
6990
6991 2010-03-07  Bruno Haible  <bruno@clisp.org>
6992
6993         Use POSIX declarations for socket functions.
6994         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
6995         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
6996         rpl_sendto): Change declaration to match POSIX.
6997         * lib/connect.c (rpl_connect): Likewise.
6998         * lib/accept.c (rpl_accept): Likewise.
6999         * lib/bind.c (rpl_bind): Likewise.
7000         * lib/getpeername.c (rpl_getpeername): Likewise.
7001         * lib/getsockname.c (rpl_getsockname): Likewise.
7002         * lib/recv.c (rpl_recv): Likewise.
7003         * lib/send.c (rpl_send): Likewise.
7004         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7005         * lib/sendto.c (rpl_sendto): Likewise.
7006
7007 2010-03-06  Bruno Haible  <bruno@clisp.org>
7008
7009         Clarify access, euidaccess, faccessat.
7010         * doc/posix-functions/faccessat.texi: Mention security problem under
7011         "Other problems", not "Portability problems".
7012         * doc/posix-functions/access.texi: Likewise. Mention a related security
7013         problem.
7014         * doc/glibc-functions/euidaccess.texi: Mention security problems.
7015         * lib/euidaccess.c: Add comments about platforms.
7016         * lib/unistd.in.h (access, euidaccess): Add warnings.
7017
7018 2010-03-07  Bruno Haible  <bruno@clisp.org>
7019
7020         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
7021         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
7022         (POSIX_SPAWN_SETSCHEDULER): Likewise.
7023         (POSIX_SPAWN_USEVFORK): Define in a way that works when
7024         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7025         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
7026         declare when POSIX_SPAWN_SETSCHEDULER is zero.
7027         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
7028         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
7029         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
7030         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
7031         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
7032         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
7033         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
7034         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
7035         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
7036         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
7037         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
7038         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
7039         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
7040         Likewise.
7041         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
7042         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
7043         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
7044         Likewise.
7045         * tests/test-spawn.c (main): Make it work when
7046         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7047
7048 2010-03-07  Bruno Haible  <bruno@clisp.org>
7049
7050         Fix incorrect Makefile.am generation in German locale.
7051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7052         Execute sed command with character range in C locale.
7053
7054 2010-03-06  Bruno Haible  <bruno@clisp.org>
7055
7056         Tests for module 'iconv-h'.
7057         * modules/iconv-h-tests: New file.
7058         * tests/test-iconv-h.c: New file.
7059
7060         New module 'iconv-h'.
7061         * modules/iconv-h: New file.
7062         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
7063         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
7064         (configure.ac): Remove gl_ICONV_H.
7065         (Makefile.am): Remove rule for iconv.h.
7066
7067 2010-03-06  Bruno Haible  <bruno@clisp.org>
7068
7069         More consistent naming of *.m4 files.
7070         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
7071         * modules/wctype (Files): Update.
7072
7073         More consistent naming of *.m4 files.
7074         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
7075         * modules/wchar (Files): Update.
7076
7077 2010-03-06  Jim Meyering  <meyering@redhat.com>
7078
7079         euidaccess: relax license to LGPLv2+
7080         * modules/euidaccess (License): Relax to LGPLv2+.
7081
7082 2010-03-06  Bruno Haible  <bruno@clisp.org>
7083
7084         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
7085         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
7086         (Makefile.am): Augment lib_SOURCES instead.
7087
7088 2010-03-04  Jim Meyering  <meyering@redhat.com>
7089
7090         utime: remove obsolete module
7091         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
7092         unnecessary for years, and has been marked as obsolete for 10 months.
7093         * modules/utime: Remove file.
7094         * lib/utime.c: Remove file.
7095         * m4/utime.m4: Remove file.
7096         * m4/utimes-null.m4: Remove file.
7097         * doc/posix-functions/utime.texi (utime): Remove reference to
7098         the module.  Move the sole "fixed by gnulib" item into the
7099         "problems not fixed by Gnulib" list.
7100         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
7101
7102 2010-03-05  Simon Josefsson  <simon@josefsson.org>
7103
7104         * modules/exit (License): Relax license to LGPLv2+.
7105         (Status): Mark as obsolete.
7106         * NEWS: Mention deprecated 'exit' module.
7107         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
7108         of now obsolete 'exit'.
7109
7110 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7111
7112         fts-lgpl: remove unused module
7113         * modules/fts-lgpl: Remove.
7114         * MODULES.html.sh (func_all_modules): Adjust.
7115         * check-module (find_included_lib_files): Adjust.
7116         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
7117
7118 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
7119
7120         copy-acl: enhance Solaris ACL error handling
7121         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
7122         * lib/set-mode-acl.c (qset_acl): Likewise.
7123
7124 2010-03-02  Bruno Haible  <bruno@clisp.org>
7125
7126         spawn: Don't override the system defined values on FreeBSD 8.
7127         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
7128         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
7129         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
7130         if HAVE_POSIX_SPAWN is 1.
7131         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
7132
7133 2010-03-01  Bruno Haible  <bruno@clisp.org>
7134
7135         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
7136         regarding Automake.
7137
7138 2010-02-25  Bruno Haible  <bruno@clisp.org>
7139
7140         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
7141         * gnulib-tool: Define 'echo' as a function only before the ksh alias
7142         setting, not afterwards.
7143         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7144
7145 2010-02-24  Eric Blake  <eblake@redhat.com>
7146
7147         bootstrap, git-version-gen: use timestamp
7148         * build-aux/git-version-gen (scriptversion): Force UTC.
7149         * build-aux/bootstrap (scriptversion): New variable.
7150
7151         bootstrap: allow older git
7152         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
7153         older than 1.6.4.  Requested by the libvirt project.
7154
7155 2010-02-23  Eric Blake  <eblake@redhat.com>
7156
7157         warn-on-use: work with old autoconf
7158         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7159         AS_VAR semantics of autoconf 2.60.
7160         Reported by Bruno Haible.
7161
7162         bootstrap: improve some comments
7163         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7164         clarification comments.
7165
7166         gettimeofday: provide correct function
7167         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7168         when replacement is declared, otherwise provide gettimeofday.
7169         Reported by Michael Goffioul.
7170
7171 2010-02-23  Jim Meyering  <meyering@redhat.com>
7172
7173         lib-ignore: relax license to "unlimited", not LGPLv2+
7174         * modules/lib-ignore (License): Relax to "unlimited".
7175
7176 2010-02-23  Jim Meyering  <meyering@redhat.com>
7177
7178         lib-ignore: relax license to LGPLv2+
7179         * modules/lib-ignore (License): Relax to LGPLv2+.
7180
7181 2010-02-22  Eric Blake  <eblake@redhat.com>
7182
7183         lseek: avoid bash 3.2 broken pipe bug
7184         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7185         warning from bash 3.2.
7186         Reported by Ben Pfaff, with analysis from Bruno Haible.
7187
7188         bootstrap: support non-FSF copyright holder
7189         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7190         bootstrap.conf override of COPYRIGHT_HOLDER.
7191         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7192
7193         bootstrap: interoperate with gettext 0.14.1
7194         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7195
7196         bootstrap: allow for alternate submodule location
7197         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7198         hardcoding submodule location.
7199         (gnulib_mk): Allow direct use of Makefile.am.
7200
7201         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7202         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7203         rather than reconfiguring where the submodule points.
7204
7205         gettimeofday: restore support for platforms that lack function
7206         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7207         replacement if function is missing.
7208         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7209         * modules/sys_time (Makefile.am): Substitute it.
7210         * lib/sys_time.in.h (gettimeofday): Check it.
7211         Reported by Michael Goffioul.
7212
7213 2010-02-21  Bruno Haible  <bruno@clisp.org>
7214
7215         * lib/stdio.in.h (obstack_printf): Fix typo.
7216
7217 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7218
7219         vc-list-files: use bzr ls's -R option
7220         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7221         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7222
7223 2010-02-21  Jim Meyering  <meyering@redhat.com>
7224
7225         init.sh: fix EXEEXT shims to work also for names like test-prog
7226         * tests/init.sh: Re-exec a better shell, when needed.
7227         If the current shell lacks support for posix $(...), an init.sh-using
7228         test will now try to find a shell that supports that.  If EXEEXT is
7229         nonempty, we also require support for hyphen-in-alias-name and shell
7230         substitutions like ${var#glob}.  Failure to find such a shell results
7231         in a skipped test.
7232
7233 2010-02-21  Bruno Haible  <bruno@clisp.org>
7234
7235         Really work around around "broken pipe" error message from bash 3.2.
7236         * gnulib-tool (func_reset_sigpipe): Remove function.
7237         (echo): In bash 3.2, define to a function that uses printf.
7238         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7239
7240 2010-02-20  Bruno Haible  <bruno@clisp.org>
7241
7242         Restore support for automake 1.9.6 with autoconf 2.61.
7243         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7244         Reported by James Youngman <jay@gnu.org>.
7245
7246 2010-02-20  Bruno Haible  <bruno@clisp.org>
7247
7248         Improve *printf warning condition.
7249         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7250         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7251         and the function is overridden due to SIGPIPE emulation.
7252
7253 2010-02-20  Bruno Haible  <bruno@clisp.org>
7254
7255         * lib/stdio.in.h: Tweak comments.
7256
7257 2010-02-19  Bruno Haible  <bruno@clisp.org>
7258
7259         Make it easier to find modules. New gnulib-tool option '--find'.
7260         * gnulib-tool: New option --find.
7261         (func_usage): Document it.
7262         (func_sanitize_modulelist): New function, extracted from
7263         func_all_modules.
7264         (func_all_modules): Invoke it.
7265         * doc/gnulib-tool.texi (Which modules?): New node.
7266
7267 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7268
7269         * lib/sys_select.in.h: Provide select replacement even if
7270         sys/select.h exists on a system, for Interix.
7271
7272 2010-02-18  Jim Meyering  <meyering@redhat.com>
7273
7274         init.sh: don't use $(...) just yet
7275         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7276         to accommodate e.g., Solaris' /bin/sh.
7277
7278 2010-02-17  Bruno Haible  <bruno@clisp.org>
7279
7280         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7281         Reported by Ludovic Courtès <ludo@gnu.org>.
7282
7283 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7284
7285         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7286         linking with -lintl.
7287
7288 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7289
7290         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7291         if not provided by the system's netdb.h.  Reported by
7292         ludo@gnu.org (Ludovic Courtès).
7293
7294 2010-02-15  Jim Meyering  <meyering@redhat.com>
7295
7296         init.sh: improve portability and efficiency
7297         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7298         "dummy" in a for loop.
7299         Use '!', not '^' to select the complement of a character set used
7300         in a "case" statement.
7301         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7302         Suggestions from Eric Blake.
7303
7304         init.sh: automatically accommodate programs with the .exe suffix
7305         Automatically arrange for an invocation of "prog" to execute the
7306         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7307         may use the simpler "prog", yet still work when built on a system
7308         that requires specifying the added suffix.
7309         Do this by constructing a function named "prog" that invokes
7310         "prog.exe" for each .exe file in selected directories.
7311         * tests/init.sh (find_exe_basenames_): New function.
7312         (create_exe_shim_functions_): New function.
7313         (path_prepend_): Use it.
7314
7315         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7316         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7317         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7318
7319 2010-02-14  Jim Meyering  <meyering@redhat.com>
7320
7321         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7322         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7323         (sc_prohibit_hash_pjw_without_use): New rule.
7324
7325         maint.mk: allow the default upload destination dir to be overridden
7326         * top/maint.mk (upload_dest_dir_): Define with a default that
7327         preserves the status quo.
7328         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7329         Reported by Peter Simons.
7330
7331         maint.mk: prohibit inclusion of "hash.h" without_use
7332         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7333
7334 2010-02-10  Jim Meyering  <meyering@redhat.com>
7335
7336         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7337         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7338
7339 2010-02-09  Eric Blake  <ebb9@byu.net>
7340         and Bruno Haible  <bruno@clisp.org>
7341
7342         obstack-printf-posix: ensure declaration
7343         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7344         extracted from gl_FUNC_OBSTACK_PRINTF.
7345         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7346         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7347         Likewise.
7348         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7349         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7350         0.
7351
7352 2010-02-08  Bruno Haible  <bruno@clisp.org>
7353
7354         gnulib-tool: Fix typo in 2010-02-07 commit.
7355         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7356         Reported by Eric Blake.
7357
7358 2010-02-07  Bruno Haible  <bruno@clisp.org>
7359
7360         gnulib-tool: Fix up caching patches.
7361         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7362         option --no-cache. Use associative arrays when supported by the shell.
7363         (sed_comments): New variable.
7364         (modcache): Renamed from do_cache.
7365         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7366         abbreviate unnecessarily.
7367         (have_associative): New variable.
7368         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7369         way also for ksh and zsh.
7370         (func_init_sed_convert_to_cache_statements): New function, extracted
7371         from func_cache_lookup_module. Add support for associative arrays.
7372         Don't set the c_MODULE_cached variable here. Ignore all lines before
7373         the first field header. Remove only the final newline, not all trailing
7374         newlines. Support empty fields correctly. Limit the use of 'eval' to
7375         assignments.
7376         (func_get_description, func_get_status, func_get_notice,
7377         func_get_applicability, func_get_filelist, func_get_dependencies,
7378         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7379         func_get_automake_snippet, func_get_include_directive,
7380         func_get_link_directive, func_get_license, func_get_maintainer):
7381         Update documentation. List the unoptimized code first. Add support for
7382         associative arrays. Limit the use of 'eval' to assignments.
7383         (func_get_applicability): Undo stylistic pessimisations.
7384         (func_get_automake_snippet, func_get_include_directive): Reduce code
7385         duplication.
7386         (func_modules_transitive_closure, func_modules_add_dummy,
7387         func_modules_notice, func_modules_to_filelist, func_add_file,
7388         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7389         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7390         func_create_testdir, func_create_megatestdir): Update documentation.
7391
7392 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7393
7394         * gnulib-tool (func_cache_lookup_module): Store the module name
7395         belonging to the cache variable; error out if two different
7396         module names map to the same cache variable name.
7397
7398 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7399
7400         gnulib-tool: Make caching optional.
7401         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7402         Update matching short versions of --no-changelog.
7403         (func_usage): Update.
7404         (sed_extract_cache_prog): Renamed from ...
7405         (sed_extract_prog): ... this; revert to old extraction script.
7406         (func_get_description, func_get_status)
7407         (func_get_notice, func_get_applicability, func_get_filelist)
7408         (func_get_dependencies, func_get_autoconf_early_snippet)
7409         (func_get_autoconf_snippet, func_get_automake_snippet)
7410         (func_get_include_directive, func_get_link_directive)
7411         (func_get_license, func_get_maintainer): If $do_cache is false,
7412         use old, non-caching extraction scripts.
7413         Suggestion by Bruno Haible.
7414
7415 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7416
7417         gnulib-tool: cache module metainformation.
7418         * gnulib-tool (sed_extract_prog): Match newline before each
7419         header, and rewrite header to a shell variable suffix.
7420         (func_cache_var, func_cache_lookup_module): New functions,
7421         to turn a module name into a cache variable prefix, and to
7422         look up and cache module metainformation.
7423         (func_get_description, func_get_status)
7424         (func_get_notice, func_get_applicability, func_get_filelist)
7425         (func_get_dependencies, func_get_autoconf_early_snippet)
7426         (func_get_autoconf_snippet, func_get_automake_snippet)
7427         (func_get_include_directive, func_get_link_directive)
7428         (func_get_license, func_get_maintainer): Use
7429         func_cache_lookup_module.
7430
7431 2010-02-07  Bruno Haible  <bruno@clisp.org>
7432
7433         fnctl: Fix missing dependency.
7434         * modules/fcntl (Depends-on): Add getdtablesize.
7435         Reported by John W. Eaton <jwe@gnu.org>.
7436
7437 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7438
7439         Argp: fix recognition of short alias options.
7440
7441         * lib/argp-parse.c (convert_options): Fix improper use of
7442         `|' between character values.
7443         * tests/test-argp.c (group1_option): New alias option
7444         --read (-r).
7445         (group1_parser): Special handling for 'r'.
7446         (test15): New test case.
7447         (test_fun): Add test15.
7448         * tests/test-argp-2.sh: Update expected --help and --usage
7449         outputs.
7450
7451 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7452
7453         * tests/test-argp.c: Fix indentation.
7454
7455 2010-02-04  Eric Blake  <ebb9@byu.net>
7456
7457         gettimeofday: expose type of second argument
7458         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7459         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7460         * tests/test-gettimeofday.c: Use it to silence warning.
7461         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7462         the issue.
7463
7464 2010-02-03  Jim Meyering  <meyering@redhat.com>
7465
7466         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7467         * lib/regcomp.c (TYPE_SIGNED): Define.
7468         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7469
7470         regcomp.c: avoid a new -Wshadow warning
7471         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7472
7473 2010-02-01  Jim Meyering  <meyering@redhat.com>
7474
7475         removing useless parentheses in cpp #define directives
7476         For motivation, see commit c0221df4, "define STREQ(a,b)
7477         consistently, removing useless parentheses"
7478         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7479         * lib/mountlist.c (MNT_IGNORE): Likewise.
7480         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7481
7482 2010-02-01  Eric Blake  <ebb9@byu.net>
7483
7484         sys_time: use link-warning
7485         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7486         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7487         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7488         * modules/sys_time (Depends-on): Add warn-on-use.
7489         (Makefile.am): Always build replacement.
7490         (configure.ac): Update substitutions.
7491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7492         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7493         bother with SYS_TIME_H.
7494         * modules/gettimeofday (configure.ac): Declare indicator.
7495         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7496         in use.
7497
7498         closein-tests: silence compiler warning
7499         * tests/test-closein.c (main): Ignore fread result.
7500         * modules/closein-tests (Depends-on): Add ignore-value.
7501
7502         tests: silence warning about system return
7503         * tests/test-areadlink-with-size.c (main): Ignore system result.
7504         * tests/test-areadlink.c (main): Likewise.
7505         * tests/test-areadlinkat-with-size.c (main): Likewise.
7506         * tests/test-areadlinkat.c (main): Likewise.
7507         * tests/test-canonicalize-lgpl.c (main): Likewise.
7508         * tests/test-canonicalize.c (main): Likewise.
7509         * tests/test-chown.c (main): Likewise.
7510         * tests/test-fchownat.c (main): Likewise.
7511         * tests/test-fdutimensat.c (main): Likewise.
7512         * tests/test-fstatat.c (main): Likewise.
7513         * tests/test-futimens.c (main): Likewise.
7514         * tests/test-lchown.c (main): Likewise.
7515         * tests/test-link.c (main): Likewise.
7516         * tests/test-linkat.c (main): Likewise.
7517         * tests/test-lstat.c (main): Likewise.
7518         * tests/test-mkdir.c (main): Likewise.
7519         * tests/test-mkdirat.c (main): Likewise.
7520         * tests/test-mkfifo.c (main): Likewise.
7521         * tests/test-mkfifoat.c (main): Likewise.
7522         * tests/test-mknod.c (main): Likewise.
7523         * tests/test-readlink.c (main): Likewise.
7524         * tests/test-remove.c (main): Likewise.
7525         * tests/test-rename.c (main): Likewise.
7526         * tests/test-renameat.c (main): Likewise.
7527         * tests/test-rmdir.c (main): Likewise.
7528         * tests/test-symlink.c (main): Likewise.
7529         * tests/test-symlinkat.c (main): Likewise.
7530         * tests/test-unlink.c (main): Likewise.
7531         * tests/test-unlinkat.c (main): Likewise.
7532         * tests/test-utimens.c (main): Likewise.
7533         * tests/test-utimensat.c (main): Likewise.
7534         * modules/areadlink-tests (Depends-on): Add ignore-value.
7535         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7536         * modules/areadlinkat-tests (Depends-on): Likewise.
7537         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7538         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7539         * modules/canonicalize-tests (Depends-on): Likewise.
7540         * modules/chown-tests (Depends-on): Likewise.
7541         * modules/fdutimensat-tests (Depends-on): Likewise.
7542         * modules/futimens-tests (Depends-on): Likewise.
7543         * modules/lchown-tests (Depends-on): Likewise.
7544         * modules/link-tests (Depends-on): Likewise.
7545         * modules/linkat-tests (Depends-on): Likewise.
7546         * modules/lstat-tests (Depends-on): Likewise.
7547         * modules/mkdir-tests (Depends-on): Likewise.
7548         * modules/mkfifo-tests (Depends-on): Likewise.
7549         * modules/mkfifoat-tests (Depends-on): Likewise.
7550         * modules/mknod-tests (Depends-on): Likewise.
7551         * modules/openat-tests (Depends-on): Likewise.
7552         * modules/readlink-tests (Depends-on): Likewise.
7553         * modules/remove-tests (Depends-on): Likewise.
7554         * modules/rename-tests (Depends-on): Likewise.
7555         * modules/renameat-tests (Depends-on): Likewise.
7556         * modules/rmdir-tests (Depends-on): Likewise.
7557         * modules/symlink-tests (Depends-on): Likewise.
7558         * modules/symlinkat-tests (Depends-on): Likewise.
7559         * modules/unlink-tests (Depends-on): Likewise.
7560         * modules/utimens-tests (Depends-on): Likewise.
7561         * modules/utimensat-tests (Depends-on): Likewise.
7562
7563 2010-01-31  Bruno Haible  <bruno@clisp.org>
7564
7565         Perform the same test for many <math.h> functions.
7566         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7567         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7568         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7569         of gl_MATHFUNC.
7570         * modules/acos (configure.ac): Likewise.
7571         * modules/asin (configure.ac): Likewise.
7572         * modules/atan (configure.ac): Likewise.
7573         * modules/atan2 (configure.ac): Likewise.
7574         * modules/cbrt (configure.ac): Likewise.
7575         * modules/copysign (configure.ac): Likewise.
7576         * modules/cos (configure.ac): Likewise.
7577         * modules/cosh (configure.ac): Likewise.
7578         * modules/erf (configure.ac): Likewise.
7579         * modules/erfc (configure.ac): Likewise.
7580         * modules/exp (configure.ac): Likewise.
7581         * modules/fmod (configure.ac): Likewise.
7582         * modules/hypot (configure.ac): Likewise.
7583         * modules/j0 (configure.ac): Likewise.
7584         * modules/j1 (configure.ac): Likewise.
7585         * modules/jn (configure.ac): Likewise.
7586         * modules/lgamma (configure.ac): Likewise.
7587         * modules/log (configure.ac): Likewise.
7588         * modules/log10 (configure.ac): Likewise.
7589         * modules/log1p (configure.ac): Likewise.
7590         * modules/pow (configure.ac): Likewise.
7591         * modules/remainder (configure.ac): Likewise.
7592         * modules/sin (configure.ac): Likewise.
7593         * modules/sinh (configure.ac): Likewise.
7594         * modules/tan (configure.ac): Likewise.
7595         * modules/tanh (configure.ac): Likewise.
7596         * modules/y0 (configure.ac): Likewise.
7597         * modules/y1 (configure.ac): Likewise.
7598         * modules/yn (configure.ac): Likewise.
7599         Suggested by Paolo Bonzini.
7600
7601 2010-01-31  Bruno Haible  <bruno@clisp.org>
7602
7603         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7604
7605 2010-01-31  Bruno Haible  <bruno@clisp.org>
7606
7607         Work around getdelim() bug on FreeBSD 8.0.
7608         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7609         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7610         not work.
7611         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7612         is 1.
7613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7614         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7615         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7616         a non-zero size.
7617         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7618
7619 2010-01-31  Bruno Haible  <bruno@clisp.org>
7620
7621         Work around getline() bug on FreeBSD 8.0.
7622         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7623         and a non-zero size.
7624         * tests/test-getline.c (main): Likewise.
7625         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7626         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7627
7628 2010-01-28  Eric Blake  <ebb9@byu.net>
7629
7630         regex: fix build failure
7631         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7632         platforms.
7633
7634 2010-01-28  Jim Meyering  <meyering@redhat.com>
7635
7636         regex: do not ignore memory allocation failure
7637         * lib/regex_internal.c (create_cd_newstate): Detect
7638         re_node_set_init_copy failure.   Extracted from glibc commit
7639         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7640
7641         regex: sync more white-space changes from libc
7642         * lib/regex_internal.c: White-space only changes.
7643         * lib/regexec.c: Likewise.
7644
7645         regex: add many uses of __attribute_warn_unused_result__
7646         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7647         * lib/regexec.c: Likewise.
7648         Extracted from a messy glibc commit.
7649
7650         regcomp.c: spelling and merge-artifact from glibc
7651         * lib/regcomp.c: Merge remainder of glibc's
7652         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7653
7654         regcomp.c: sync white-space changes from glibc
7655         * lib/regcomp.c: Merge to accommodate white space
7656         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7657
7658         regcomp.c: do not ignore internal return values
7659         * lib/regcomp.c: Do not ignore internal return values.
7660         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7661         but without its white-space changes and spelling fixes.
7662
7663         regex_internal.h: define __attribute_warn_unused_result__
7664         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7665
7666         maint: add a syntax-check rule to check for vulnerable Makefile.in
7667         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7668
7669 2010-01-27  Jim Meyering  <meyering@redhat.com>
7670
7671         ncftpput-ftp: clean up spaces
7672         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7673         Remove trailing blanks.
7674
7675 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7676
7677         * build-aux/git-version-gen: Fix copyright statement.
7678         * build-aux/gnupload: Likewise.
7679         * tests/test-arcfour.c: Likewise.
7680         * tests/test-arctwo.c: Likewise.
7681         * tests/test-count-one-bits.c: Likewise.
7682         * tests/test-crc.c: Likewise.
7683         * tests/test-des.c: Likewise.
7684         * tests/test-gc-arcfour.c: Likewise.
7685         * tests/test-gc-arctwo.c: Likewise.
7686         * tests/test-gc-des.c: Likewise.
7687         * tests/test-gc-hmac-md5.c: Likewise.
7688         * tests/test-gc-hmac-sha1.c: Likewise.
7689         * tests/test-gc-md2.c: Likewise.
7690         * tests/test-gc-md4.c: Likewise.
7691         * tests/test-gc-md5.c: Likewise.
7692         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7693         * tests/test-gc-rijndael.c: Likewise.
7694         * tests/test-gc-sha1.c: Likewise.
7695         * tests/test-gc.c: Likewise.
7696         * tests/test-gethostname.c: Likewise.
7697         * tests/test-gettimeofday.c: Likewise.
7698         * tests/test-hash.c: Likewise.
7699         * tests/test-hmac-md5.c: Likewise.
7700         * tests/test-hmac-sha1.c: Likewise.
7701         * tests/test-md2.c: Likewise.
7702         * tests/test-md4.c: Likewise.
7703         * tests/test-md5.c: Likewise.
7704         * tests/test-memchr.c: Likewise.
7705         * tests/test-memchr2.c: Likewise.
7706         * tests/test-memcmp.c: Likewise.
7707         * tests/test-memmem.c: Likewise.
7708         * tests/test-memrchr.c: Likewise.
7709         * tests/test-rawmemchr.c: Likewise.
7710         * tests/test-read-file.c: Likewise.
7711         * tests/test-rijndael.c: Likewise.
7712         * tests/test-sockets.c: Likewise.
7713         * tests/test-strchrnul.c: Likewise.
7714         * tests/test-strstr.c: Likewise.
7715         * tests/test-strtod.c: Likewise.
7716         * build-aux/ncftpput-ftp: Likewise.
7717
7718 2010-01-26  Eric Blake  <ebb9@byu.net>
7719
7720         ignore-value: update recommended header name
7721         * modules/ignore-value (Include): Only use <> for headers that
7722         exist in glibc.
7723
7724 2010-01-26  Jim Meyering  <meyering@redhat.com>
7725
7726         test-userspec.c: avoid compiler warnings
7727         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7728         and "initialization discards qualifiers..." warnings.
7729         Put the first "uid" in its own scope, and make char* members "const".
7730
7731 2010-01-25  Bruno Haible  <bruno@clisp.org>
7732
7733         gnulib-tool: Make warning diagnostics consistent.
7734         * gnulib-tool (func_warning): New function.
7735         Use it everywhere where gnulib-tool produces output to stderr and it is
7736         not a fatal error.
7737
7738 2010-01-25  Bruno Haible  <bruno@clisp.org>
7739
7740         Fix test dependencies.
7741         * modules/xstrtol-tests (Depends-on): Add inttypes.
7742         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7743
7744 2010-01-25 Pádraig Brady <P@draigBrady.com>
7745
7746         syntax-check: detect incorrect boolean macro values in config.h
7747         * modules/maintainer-makefile (configure.ac): Parameterize the location
7748         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7749         The logic is from Eric Blake and the location indicated by Jim Meyering.
7750         Note the more natural CONFIG_HEADER name is prohibited by automake
7751         for backwards compatibility reasons.
7752         * top/maint.mk (sc_Wundef_boolean): New rule.
7753
7754 2010-01-25  Jim Meyering  <meyering@redhat.com>
7755
7756         bootstrap: detect MacOS 10.6's shasum, too
7757         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7758         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7759
7760 2010-01-23  Jim Meyering  <meyering@redhat.com>
7761
7762         xstrtoll: new module
7763         * modules/xstrtoll: New file.
7764         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7765         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7766         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7767         ./configure fails if you use this module and lack "long long".
7768         * modules/xstrtoll-tests: New module.
7769         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7770         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7771         new init.sh-based test framework.
7772
7773 2010-01-24  Bruno Haible  <bruno@clisp.org>
7774
7775         Tests for module 'yn'.
7776         * modules/yn-tests: New file.
7777         * tests/test-yn.c: New file.
7778
7779         Tests for module 'y1'.
7780         * modules/y1-tests: New file.
7781         * tests/test-y1.c: New file.
7782
7783         Tests for module 'y0'.
7784         * modules/y0-tests: New file.
7785         * tests/test-y0.c: New file.
7786
7787         Tests for module 'tanh'.
7788         * modules/tanh-tests: New file.
7789         * tests/test-tanh.c: New file.
7790
7791         Tests for module 'tan'.
7792         * modules/tan-tests: New file.
7793         * tests/test-tan.c: New file.
7794
7795         Tests for module 'sqrt'.
7796         * modules/sqrt-tests: New file.
7797         * tests/test-sqrt.c: New file.
7798
7799         Tests for module 'sinh'.
7800         * modules/sinh-tests: New file.
7801         * tests/test-sinh.c: New file.
7802
7803         Tests for module 'sin'.
7804         * modules/sin-tests: New file.
7805         * tests/test-sin.c: New file.
7806
7807         Tests for module 'rint'.
7808         * modules/rint-tests: New file.
7809         * tests/test-rint.c: New file.
7810
7811         Tests for module 'remainder'.
7812         * modules/remainder-tests: New file.
7813         * tests/test-remainder.c: New file.
7814
7815         Tests for module 'pow'.
7816         * modules/pow-tests: New file.
7817         * tests/test-pow.c: New file.
7818
7819         Tests for module 'nextafter'.
7820         * modules/nextafter-tests: New file.
7821         * tests/test-nextafter.c: New file.
7822
7823         Tests for module 'modf'.
7824         * modules/modf-tests: New file.
7825         * tests/test-modf.c: New file.
7826
7827         Tests for module 'logb'.
7828         * modules/logb-tests: New file.
7829         * tests/test-logb.c: New file.
7830
7831         Tests for module 'log1p'.
7832         * modules/log1p-tests: New file.
7833         * tests/test-log1p.c: New file.
7834
7835         Tests for module 'log10'.
7836         * modules/log10-tests: New file.
7837         * tests/test-log10.c: New file.
7838
7839         Tests for module 'log'.
7840         * modules/log-tests: New file.
7841         * tests/test-log.c: New file.
7842
7843         Tests for module 'lgamma'.
7844         * modules/lgamma-tests: New file.
7845         * tests/test-lgamma.c: New file.
7846
7847         Tests for module 'ldexp'.
7848         * modules/ldexp-tests: New file.
7849         * tests/test-ldexp.c: New file.
7850
7851         Tests for module 'jn'.
7852         * modules/jn-tests: New file.
7853         * tests/test-jn.c: New file.
7854
7855         Tests for module 'j1'.
7856         * modules/j1-tests: New file.
7857         * tests/test-j1.c: New file.
7858
7859         Tests for module 'j0'.
7860         * modules/j0-tests: New file.
7861         * tests/test-j0.c: New file.
7862
7863         Tests for module 'hypot'.
7864         * modules/hypot-tests: New file.
7865         * tests/test-hypot.c: New file.
7866
7867         Tests for module 'fmod'.
7868         * modules/fmod-tests: New file.
7869         * tests/test-fmod.c: New file.
7870
7871         Tests for module 'fabs'.
7872         * modules/fabs-tests: New file.
7873         * tests/test-fabs.c: New file.
7874
7875         Tests for module 'exp'.
7876         * modules/exp-tests: New file.
7877         * tests/test-exp.c: New file.
7878
7879         Tests for module 'erfc'.
7880         * modules/erfc-tests: New file.
7881         * tests/test-erfc.c: New file.
7882
7883         Tests for module 'erf'.
7884         * modules/erf-tests: New file.
7885         * tests/test-erf.c: New file.
7886
7887         Tests for module 'cosh'.
7888         * modules/cosh-tests: New file.
7889         * tests/test-cosh.c: New file.
7890
7891         Tests for module 'cos'.
7892         * modules/cos-tests: New file.
7893         * tests/test-cos.c: New file.
7894
7895         Tests for module 'copysign'.
7896         * modules/copysign-tests: New file.
7897         * tests/test-copysign.c: New file.
7898
7899         Tests for module 'cbrt'.
7900         * modules/cbrt-tests: New file.
7901         * tests/test-cbrt.c: New file.
7902
7903         Tests for module 'atan2'.
7904         * modules/atan2-tests: New file.
7905         * tests/test-atan2.c: New file.
7906
7907         Tests for module 'atan'.
7908         * modules/atan-tests: New file.
7909         * tests/test-atan.c: New file.
7910
7911         Tests for module 'asin'.
7912         * modules/asin-tests: New file.
7913         * tests/test-asin.c: New file.
7914
7915         Tests for module 'acos'.
7916         * modules/acos-tests: New file.
7917         * tests/test-acos.c: New file.
7918
7919 2010-01-24  Bruno Haible  <bruno@clisp.org>
7920
7921         Fix tests for common <math.h> functions.
7922         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
7923         code snippet that references the function pointer, rather than merely
7924         calling the function. Substitute the FUNC_LIBM variable.
7925         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
7926         * modules/acos (configure.ac): Likewise.
7927         * modules/asin (configure.ac): Likewise.
7928         * modules/atan (configure.ac): Likewise.
7929         * modules/atan2 (configure.ac): Likewise.
7930         * modules/cbrt (configure.ac): Likewise.
7931         * modules/copysign (configure.ac): Likewise.
7932         * modules/cos (configure.ac): Likewise.
7933         * modules/cosh (configure.ac): Likewise.
7934         * modules/erf (configure.ac): Likewise.
7935         * modules/erfc (configure.ac): Likewise.
7936         * modules/exp (configure.ac): Likewise.
7937         * modules/fabs (configure.ac): Likewise.
7938         * modules/fmod (configure.ac): Likewise.
7939         * modules/hypot (configure.ac): Likewise.
7940         * modules/j0 (configure.ac): Likewise.
7941         * modules/j1 (configure.ac): Likewise.
7942         * modules/jn (configure.ac): Likewise.
7943         * modules/ldexp (configure.ac): Likewise.
7944         * modules/lgamma (configure.ac): Likewise.
7945         * modules/log (configure.ac): Likewise.
7946         * modules/log10 (configure.ac): Likewise.
7947         * modules/log1p (configure.ac): Likewise.
7948         * modules/logb (configure.ac): Likewise.
7949         * modules/modf (configure.ac): Likewise.
7950         * modules/nextafter (configure.ac): Likewise.
7951         * modules/pow (configure.ac): Likewise.
7952         * modules/remainder (configure.ac): Likewise.
7953         * modules/rint (configure.ac): Likewise.
7954         * modules/sin (configure.ac): Likewise.
7955         * modules/sinh (configure.ac): Likewise.
7956         * modules/tan (configure.ac): Likewise.
7957         * modules/tanh (configure.ac): Likewise.
7958         * modules/y0 (configure.ac): Likewise.
7959         * modules/y1 (configure.ac): Likewise.
7960         * modules/yn (configure.ac): Likewise.
7961
7962 2010-01-24  Bruno Haible  <bruno@clisp.org>
7963
7964         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
7965         * tests/test-acosl.c (x): New variable.
7966         (main): Store argument in x and fetch it from x.
7967         * tests/test-asinl.c (x): New variable.
7968         (main): Store argument in x and fetch it from x.
7969         * tests/test-atanl.c (x): New variable.
7970         (main): Store argument in x and fetch it from x.
7971         * tests/test-cosl.c (x): New variable.
7972         (main): Store argument in x and fetch it from x.
7973         * tests/test-expl.c (x): New variable.
7974         (main): Store argument in x and fetch it from x.
7975         * tests/test-logl.c (x): New variable.
7976         (main): Store argument in x and fetch it from x.
7977         * tests/test-sinl.c (x): New variable.
7978         (main): Store argument in x and fetch it from x.
7979         * tests/test-sqrtl.c (x): New variable.
7980         (main): Store argument in x and fetch it from x.
7981         * tests/test-tanl.c (x): New variable.
7982         (main): Store argument in x and fetch it from x.
7983
7984 2010-01-24  Bruno Haible  <bruno@clisp.org>
7985
7986         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
7987         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
7988         assignments to the initial TESTS_ENVIRONMENT.
7989         * doc/gnulib.texi (Unit test modules): Document it.
7990         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
7991         TESTS_ENVIRONMENT.
7992         * modules/btowc-tests (Makefile.am): Likewise.
7993         * modules/c-stack-tests (Makefile.am): Likewise.
7994         * modules/c-strcase-tests (Makefile.am): Likewise.
7995         * modules/copy-file-tests (Makefile.am): Likewise.
7996         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7997         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7998         * modules/mbrtowc-tests (Makefile.am): Likewise.
7999         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8000         * modules/mbscasestr-tests (Makefile.am): Likewise.
8001         * modules/mbschr-tests (Makefile.am): Likewise.
8002         * modules/mbscspn-tests (Makefile.am): Likewise.
8003         * modules/mbsinit-tests (Makefile.am): Likewise.
8004         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8005         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8006         * modules/mbspbrk-tests (Makefile.am): Likewise.
8007         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8008         * modules/mbsrchr-tests (Makefile.am): Likewise.
8009         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8010         * modules/mbsspn-tests (Makefile.am): Likewise.
8011         * modules/mbsstr-tests (Makefile.am): Likewise.
8012         * modules/nl_langinfo-tests (Makefile.am): Likewise.
8013         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
8014         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
8015         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
8016         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
8017         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8018         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
8019         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
8020         * modules/wcrtomb-tests (Makefile.am): Likewise.
8021         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
8022         * modules/wcsrtombs-tests (Makefile.am): Likewise.
8023         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
8024         assignments from TESTS_ENVIRONMENT.
8025         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
8026         augmentation.
8027         * modules/argp-version-etc-tests (Makefile.am): Likewise.
8028         * modules/atexit-tests (Makefile.am): Likewise.
8029         * modules/binary-io-tests (Makefile.am): Likewise.
8030         * modules/closein-tests (Makefile.am): Likewise.
8031         * modules/dprintf-posix-tests (Makefile.am): Likewise.
8032         * modules/exclude-tests (Makefile.am): Likewise.
8033         * modules/fflush-tests (Makefile.am): Likewise.
8034         * modules/fpending-tests (Makefile.am): Likewise.
8035         * modules/fprintf-posix-tests (Makefile.am): Likewise.
8036         * modules/freadahead-tests (Makefile.am): Likewise.
8037         * modules/freadptr-tests (Makefile.am): Likewise.
8038         * modules/freadseek-tests (Makefile.am): Likewise.
8039         * modules/fseek-tests (Makefile.am): Likewise.
8040         * modules/fseeko-tests (Makefile.am): Likewise.
8041         * modules/ftell-tests (Makefile.am): Likewise.
8042         * modules/ftello-tests (Makefile.am): Likewise.
8043         * modules/idpriv-drop-tests (Makefile.am): Likewise.
8044         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
8045         * modules/lseek-tests (Makefile.am): Likewise.
8046         * modules/parse-duration-tests (Makefile.am): Likewise.
8047         * modules/perror-tests (Makefile.am): Likewise.
8048         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
8049         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
8050         * modules/pipe-tests (Makefile.am): Likewise.
8051         * modules/pread-tests (Makefile.am): Likewise.
8052         * modules/printf-posix-tests (Makefile.am): Likewise.
8053         * modules/select-tests (Makefile.am): Likewise.
8054         * modules/sigpipe-tests (Makefile.am): Likewise.
8055         * modules/tsearch-tests (Makefile.am): Likewise.
8056         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
8057         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
8058         * modules/uniname/uniname-tests (Makefile.am): Likewise.
8059         * modules/uniwidth/width-tests (Makefile.am): Likewise.
8060         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
8061         * modules/version-etc-tests (Makefile.am): Likewise.
8062         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
8063         * modules/vprintf-posix-tests (Makefile.am): Likewise.
8064         * modules/xalloc-die-tests (Makefile.am): Likewise.
8065         * modules/xprintf-posix-tests (Makefile.am): Likewise.
8066         * modules/xstrtoimax-tests (Makefile.am): Likewise.
8067         * modules/xstrtol-tests (Makefile.am): Likewise.
8068         * modules/xstrtoumax-tests (Makefile.am): Likewise.
8069         * modules/yesno-tests (Makefile.am): Likewise.
8070         Suggested by Jim Meyering.
8071
8072 2010-01-24  Bruno Haible  <bruno@clisp.org>
8073
8074         More documentation.
8075         * doc/gnulib.texi (Writing modules): New chapter.
8076         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
8077         the new chapter.
8078
8079 2010-01-24  Jim Meyering  <meyering@redhat.com>
8080
8081         maint.mk: do not prepend "./" after filtering
8082         * top/maint.mk (_prepend_srcdir_prefix): New variable
8083         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
8084         "./" when $(srcdir) is ".".
8085
8086         define STREQ(a,b) consistently, removing useless parentheses
8087         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
8088         since the only risk is that "a" or "b" contains an unparenthesized
8089         comma, but if either did that, STREQ would have 3 or more arguments.
8090         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
8091         * lib/fts.c (STREQ): Remove unnecessary parentheses.
8092         * lib/hash-triple.c (STREQ): Likewise.
8093         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
8094         * lib/getugroups.c (STREQ): Likewise.
8095
8096 2010-01-23  Jim Meyering  <meyering@redhat.com>
8097
8098         maint.mk: fix syntax-check in a non-srcdir build directory
8099         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
8100         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
8101
8102 2010-01-22  Jim Meyering  <meyering@redhat.com>
8103
8104         userspec: add unit tests
8105         * tests/test-userspec.c: New file.
8106         * modules/userspec-tests: Likewise.
8107
8108 2010-01-21  Jim Meyering  <meyering@redhat.com>
8109
8110         maint.mk: handle source file names containing "." robustly
8111         * top/maint.mk (_dot_escaped_srcdir): Define.
8112         (VC_LIST): Use it in LHS of sed substitution.
8113
8114 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
8115
8116         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
8117         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
8118         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
8119         from a non-srcdir build.
8120
8121 2010-01-20  Eric Blake  <ebb9@byu.net>
8122
8123         warn-on-use: use instead of link-warning
8124         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
8125         * modules/unistd (Depends-on, Makefile.am): Likewise.
8126         * modules/arpa_inet (Depends-on): Replace link-warning with
8127         warn-on-use.
8128         (Makefile.am): Update rules accordingly.
8129         * modules/ctype (Depends-on, Makefile.am): Likewise.
8130         * modules/dirent (Depends-on, Makefile.am): Likewise.
8131         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
8132         * modules/inttypes (Depends-on, Makefile.am): Likewise.
8133         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8134         * modules/locale (Depends-on, Makefile.am): Likewise.
8135         * modules/math (Depends-on, Makefile.am): Likewise.
8136         * modules/search (Depends-on, Makefile.am): Likewise.
8137         * modules/signal (Depends-on, Makefile.am): Likewise.
8138         * modules/spawn (Depends-on, Makefile.am): Likewise.
8139         * modules/stdlib (Depends-on, Makefile.am): Likewise.
8140         * modules/string (Depends-on, Makefile.am): Likewise.
8141         * modules/strings (Depends-on, Makefile.am): Likewise.
8142         * modules/sys_file (Depends-on, Makefile.am): Likewise.
8143         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
8144         * modules/sys_select (Depends-on, Makefile.am): Likewise.
8145         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
8146         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
8147         * modules/sys_times (Depends-on, Makefile.am): Likewise.
8148         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8149         * modules/wchar (Depends-on, Makefile.am): Likewise.
8150         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
8151         should be poisoned.
8152         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
8153         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
8154         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
8155         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8156         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8157         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8158         * m4/math_h.m4 (gl_MATH_H): Likewise.
8159         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8160         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8161         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8162         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8163         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8164         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8165         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8166         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8167         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8168         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8170         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8171         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8172         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8173         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8174         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8175         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8176         GL_LINK_WARNING.
8177         * lib/ctype.in.h: Likewise.
8178         * lib/dirent.in.h: Likewise.
8179         * lib/fcntl.in.h: Likewise.
8180         * lib/inttypes.in.h: Likewise.
8181         * lib/langinfo.in.h: Likewise.
8182         * lib/locale.in.h: Likewise.
8183         * lib/math.in.h: Likewise.
8184         * lib/search.in.h: Likewise.
8185         * lib/signal.in.h: Likewise.
8186         * lib/spawn.in.h: Likewise.
8187         * lib/stdio.in.h: Likewise.
8188         * lib/stdlib.in.h: Likewise.
8189         * lib/string.in.h: Likewise.
8190         * lib/strings.in.h: Likewise.
8191         * lib/sys_file.in.h: Likewise.
8192         * lib/sys_ioctl.in.h: Likewise.
8193         * lib/sys_select.in.h: Likewise.
8194         * lib/sys_socket.in.h: Likewise.
8195         * lib/sys_stat.in.h: Likewise.
8196         * lib/sys_times.in.h: Likewise.
8197         * lib/sys_utsname.in.h: Likewise.
8198         * lib/unistd.in.h: Likewise.
8199         * lib/wchar.in.h: Likewise.
8200
8201 2010-01-20  Bruno Haible  <bruno@clisp.org>
8202
8203         Avoid duplicate -lm.
8204         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8205         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8207         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8208         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8209         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8210         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8211         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8212         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8213         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8214         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8215         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8216         Reported by Paolo Bonzini.
8217
8218 2010-01-19  Bruno Haible  <bruno@clisp.org>
8219
8220         langinfo, nl_langinfo: Relicense under LGPLv2+.
8221         * modules/langinfo (License): Change to LGPLv2+.
8222         * modules/nl_langinfo (License): Likewise.
8223         Patch by David Lutterkort <lutter@redhat.com>.
8224
8225 2010-01-19  Bruno Haible  <bruno@clisp.org>
8226
8227         Avoid compilation error with cc on OSF/1 5.1.
8228         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8229         statement, not before.
8230         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8231
8232 2010-01-18  Bruno Haible  <bruno@clisp.org>
8233
8234         Avoid a link error due to the __printf__ symbol.
8235         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8236         and 2.6.x.
8237         (__format__, __printf__): Remove definitions.
8238         * lib/argp-fmtstream.h: Likewise.
8239         * lib/argp.h: Likewise.
8240         * lib/error.h: Likewise.
8241         * lib/vasnprintf.h: Likewise.
8242         * lib/xprintf.h: Likewise.
8243         * lib/xvasprintf.h: Likewise.
8244         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8245
8246 2010-01-18  Bruno Haible  <bruno@clisp.org>
8247
8248         Tests for module 'tanl'.
8249         * modules/tanl-tests: New file.
8250         * tests/test-tanl.c: New file.
8251
8252         Tests for module 'sqrtl'.
8253         * modules/sqrtl-tests: New file.
8254         * tests/test-sqrtl.c: New file.
8255
8256         Tests for module 'sinl'.
8257         * modules/sinl-tests: New file.
8258         * tests/test-sinl.c: New file.
8259
8260         Tests for module 'logl'.
8261         * modules/logl-tests: New file.
8262         * tests/test-logl.c: New file.
8263
8264         Tests for module 'expl'.
8265         * modules/expl-tests: New file.
8266         * tests/test-expl.c: New file.
8267
8268         Tests for module 'cosl'.
8269         * modules/cosl-tests: New file.
8270         * tests/test-cosl.c: New file.
8271
8272         Tests for module 'atanl'.
8273         * modules/atanl-tests: New file.
8274         * tests/test-atanl.c: New file.
8275
8276         Tests for module 'asinl'.
8277         * modules/asinl-tests: New file.
8278         * tests/test-asinl.c: New file.
8279
8280         Tests for module 'acosl'.
8281         * modules/acosl-tests: New file.
8282         * tests/test-acosl.c: New file.
8283
8284         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8285         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8286         tanl): Use the standard gnulib idiom.
8287         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8288         * lib/sinl.c: Likewise.
8289         * lib/tanl.c: Don't include trigl.c.
8290         (kernel_tanl): Make static.
8291         * lib/sincosl.c: Include trigl.h first.
8292         * lib/trigl.c: Likewise.
8293         * m4/acosl.m4: New file.
8294         * m4/asinl.m4: New file.
8295         * m4/atanl.m4: New file.
8296         * m4/cosl.m4: New file.
8297         * m4/expl.m4: New file.
8298         * m4/logl.m4: New file.
8299         * m4/sinl.m4: New file.
8300         * m4/sqrtl.m4: New file.
8301         * m4/tanl.m4: New file.
8302         * m4/mathl.m4: Remove file.
8303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8304         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8305         Don't initialize GNULIB_MATHL.
8306         * modules/acosl: New file.
8307         * modules/asinl: New file.
8308         * modules/atanl: New file.
8309         * modules/cosl: New file.
8310         * modules/expl: New file.
8311         * modules/logl: New file.
8312         * modules/sinl: New file.
8313         * modules/sqrtl: New file.
8314         * modules/tanl: New file.
8315         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8316         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8317         substitute GNULIB_MATHL.
8318         * modules/mathl: Rewritten.
8319         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8320         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8321         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8322         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8323         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8324         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8325         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8326         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8327         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8328
8329 2010-01-18  Bruno Haible  <bruno@clisp.org>
8330
8331         sqrt: Make gl_FUNC_SQRT requirable.
8332         * m4/sqrt.m4: New file.
8333         * modules/sqrt (Files): Add it.
8334         (configure.ac): Invoke gl_FUNC_SQRT.
8335
8336 2010-01-18  Bruno Haible  <bruno@clisp.org>
8337
8338         New modules for common <math.h> functions.
8339         * m4/mathfunc.m4: New file.
8340         * modules/acos: New file.
8341         * modules/asin: New file.
8342         * modules/atan: New file.
8343         * modules/atan2: New file.
8344         * modules/cbrt: New file.
8345         * modules/copysign: New file.
8346         * modules/cos: New file.
8347         * modules/cosh: New file.
8348         * modules/erf: New file.
8349         * modules/erfc: New file.
8350         * modules/exp: New file.
8351         * modules/fabs: New file.
8352         * modules/fmod: New file.
8353         * modules/hypot: New file.
8354         * modules/j0: New file.
8355         * modules/j1: New file.
8356         * modules/jn: New file.
8357         * modules/ldexp: New file.
8358         * modules/lgamma: New file.
8359         * modules/log: New file.
8360         * modules/log10: New file.
8361         * modules/log1p: New file.
8362         * modules/logb: New file.
8363         * modules/modf: New file.
8364         * modules/nextafter: New file.
8365         * modules/pow: New file.
8366         * modules/remainder: New file.
8367         * modules/rint: New file.
8368         * modules/sin: New file.
8369         * modules/sinh: New file.
8370         * modules/sqrt: New file.
8371         * modules/tan: New file.
8372         * modules/tanh: New file.
8373         * modules/y0: New file.
8374         * modules/y1: New file.
8375         * modules/yn: New file.
8376         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8377         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8378         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8379         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8380         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8381         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8382         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8383         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8384         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8385         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8386         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8387         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8388         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8389         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8390         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8391         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8392         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8393         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8394         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8395         * doc/posix-functions/log.texi: Mention the 'log' module.
8396         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8397         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8398         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8399         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8400         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8401         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8402         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8403         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8404         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8405         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8406         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8407         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8408         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8409         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8410         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8411         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8412
8413 2010-01-18  Jim Meyering  <meyering@redhat.com>
8414
8415         ignore-value: relax license to LGPLv2+
8416         * modules/ignore-value (License): Relax to LGPLv2+.
8417
8418         getdate: don't leak when TZ contains two or more '"'s
8419         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8420         double quote in TZ after the first one.
8421
8422         readtokens: do not leak internal token_lengths buffer
8423         * lib/readtokens.c (readtokens): Free the local, lengths,
8424         when the supplied "token_lengths" parameter is NULL.
8425
8426 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8427
8428         Fix a couple of missing LIBTHREAD link failures on AIX.
8429         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8430         $(LIBTHREAD).
8431         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8432
8433         Link test-poll against INET_PTON_LIB.
8434         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8435         for inet_pton on Solaris 10.
8436
8437 2010-01-17  Bruno Haible  <bruno@clisp.org>
8438
8439         unistdio/*-sprintf: Fix typo in module description.
8440         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8441         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8442         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8443         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8444         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8445         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8446         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8447         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8448
8449 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8450
8451         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8452         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8453         variables in shell case patterns, for AIX and HP-UX ksh.
8454
8455         Split large sed scripts, for HP-UX sed.
8456         * modules/stdio: Split sed scripts around 50 sed commands,
8457         to avoid HP-UX limit of 99 commands, in the near future.
8458         * modules/string: Likewise.
8459         * modules/unistd: Likewise.
8460
8461         gnulib-tool: avoid writing in the current directory.
8462         * gnulib-tool (func_emit_lib_Makefile_am)
8463         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8464         not in the current directory, so concurrent gnulib-tool
8465         instances do not interfere.
8466
8467 2010-01-16  Jim Meyering  <meyering@redhat.com>
8468
8469         doc: update users.txt
8470         * users.txt: Add grep.
8471         (diffutils, gzip): Update URLs.
8472
8473 2010-01-12  Bruno Haible  <bruno@clisp.org>
8474
8475         posix_spawn: Avoid test failure on Cygwin.
8476         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8477         characters.
8478         Reported by Simon Josefsson.
8479
8480 2010-01-12  Bruno Haible  <bruno@clisp.org>
8481
8482         * tests/test-cond.c (main): When skipping the test, show the reason.
8483
8484 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8485
8486         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8487
8488 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8489
8490         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8491         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8492
8493 2010-01-12  Eric Blake  <ebb9@byu.net>
8494
8495         build: guarantee AS_VAR_IF
8496         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8497         (gl_AS_VAR_IF): Move...
8498         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8499         Reported by Simon Josefsson.
8500
8501 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8502
8503         * lib/stdio.in.h: Fix typo.
8504
8505 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8506
8507         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8508         libgpg-error.
8509
8510 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8511
8512         * tests/test-xalloc-die.sh: Use $EXEEXT.
8513
8514 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8515             Bruno Haible  <bruno@clisp.org>
8516
8517         getlogin, getlogin_r: Avoid test failure.
8518         * tests/test-getlogin.c: Include <stdio.h>.
8519         (main): Skip the test when the function fails because stdin is not a
8520         tty.
8521         * tests/test-getlogin_r.c: Include <stdio.h>.
8522         (main): Skip the test when the function fails because stdin is not a
8523         tty.
8524
8525 2010-01-11  Eric Blake  <ebb9@byu.net>
8526
8527         tests: avoid more large file warnings
8528         * tests/test-fflush.c: Avoid warning about ftell use.
8529         * tests/test-fseek.c: Avoid warning about fseek use.
8530
8531 2010-01-10  Bruno Haible  <bruno@clisp.org>
8532
8533         nproc: Work better on Linux when /proc and /sys are not mounted.
8534         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8535         as lower bound when, on glibc/Linux systems,
8536         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8537         Suggested by Pádraig Brady <P@draigbrady.com>.
8538         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8539
8540         nproc: Refactor.
8541         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8542         extracted from num_processors.
8543         (num_processors): Call it.
8544
8545 2010-01-11  Jim Meyering  <meyering@redhat.com>
8546
8547         utimecmp: avoid new warning from upcoming gcc-4.5.0
8548         * lib/utimecmp.c (BILLION): Define using #define rather than an
8549         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8550
8551 2010-01-11  Eric Blake  <ebb9@byu.net>
8552
8553         math: add portability warnings for classification macros
8554         * modules/math (Depends-on): Add warn-on-use.
8555         (Makefile.am): Provide new substitutions.
8556         * m4/math_h.m4 (gl_MATH_H): Require inline.
8557         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8558         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8559         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8560         implement warnings.
8561
8562         unistd: warn on use of environ without module
8563         * modules/unistd (Depends-on): Add warn-on-use.
8564         (Makefile.am): Provide new substitutions.
8565         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8566         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8567
8568         stdio: warn on suspicious uses
8569         * modules/stdio (Depends-on): Add warn-on-use.
8570         (Makefile.am): Provide new substitutions.
8571         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8572         fseeko.
8573         * lib/stdio.in.h (gets): Always warn on use.
8574         (fseek, ftell): Adjust when warnings are issued, and honor
8575         _GL_NO_LARGE_FILES as a way to silence the warning.
8576         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8577         any warning about large file offsets.
8578         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8579         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8580         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8581         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8582         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8583         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8584         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8585         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8586
8587         warn-on-use: new module
8588         * modules/warn-on-use: New file.
8589         * build-aux/warn-on-use.h: Likewise.
8590         * m4/warn-on-use.m4: Likewise.
8591         * MODULES.html.sh (Support for building): Mention it.
8592
8593 2010-01-10  Bruno Haible  <bruno@clisp.org>
8594
8595         Tests for module 'unistr/u32-strdup'.
8596         * modules/unistr/u32-strdup-tests: New file.
8597         * tests/unistr/test-u32-strdup.c: New file.
8598
8599         Tests for module 'unistr/u16-strdup'.
8600         * modules/unistr/u16-strdup-tests: New file.
8601         * tests/unistr/test-u16-strdup.c: New file.
8602
8603         Tests for module 'unistr/u8-strdup'.
8604         * modules/unistr/u8-strdup-tests: New file.
8605         * tests/unistr/test-u8-strdup.c: New file.
8606         * tests/unistr/test-strdup.h: New file.
8607
8608         Tests for module 'unistr/u32-strncmp'.
8609         * modules/unistr/u32-strncmp-tests: New file.
8610         * tests/unistr/test-u32-strncmp.c: New file.
8611
8612         Tests for module 'unistr/u16-strncmp'.
8613         * modules/unistr/u16-strncmp-tests: New file.
8614         * tests/unistr/test-u16-strncmp.c: New file.
8615
8616         Tests for module 'unistr/u8-strncmp'.
8617         * modules/unistr/u8-strncmp-tests: New file.
8618         * tests/unistr/test-u8-strncmp.c: New file.
8619         * tests/unistr/test-strncmp.h: New file.
8620
8621         Tests for module 'unistr/u32-strcoll'.
8622         * modules/unistr/u32-strcoll-tests: New file.
8623         * tests/unistr/test-u32-strcoll.c: New file.
8624
8625         Tests for module 'unistr/u16-strcoll'.
8626         * modules/unistr/u16-strcoll-tests: New file.
8627         * tests/unistr/test-u16-strcoll.c: New file.
8628
8629         Tests for module 'unistr/u8-strcoll'.
8630         * modules/unistr/u8-strcoll-tests: New file.
8631         * tests/unistr/test-u8-strcoll.c: New file.
8632
8633         Tests for module 'unistr/u32-strcmp'.
8634         * modules/unistr/u32-strcmp-tests: New file.
8635         * tests/unistr/test-u32-strcmp.c: New file.
8636         * tests/unistr/test-u32-strcmp.h: New file.
8637
8638         Tests for module 'unistr/u16-strcmp'.
8639         * modules/unistr/u16-strcmp-tests: New file.
8640         * tests/unistr/test-u16-strcmp.c: New file.
8641         * tests/unistr/test-u16-strcmp.h: New file.
8642
8643         Tests for module 'unistr/u8-strcmp'.
8644         * modules/unistr/u8-strcmp-tests: New file.
8645         * tests/unistr/test-u8-strcmp.c: New file.
8646         * tests/unistr/test-u8-strcmp.h: New file.
8647         * tests/unistr/test-strcmp.h: New file.
8648
8649         Tests for module 'unistr/u32-strncat'.
8650         * modules/unistr/u32-strncat-tests: New file.
8651         * tests/unistr/test-u32-strncat.c: New file.
8652
8653         Tests for module 'unistr/u16-strncat'.
8654         * modules/unistr/u16-strncat-tests: New file.
8655         * tests/unistr/test-u16-strncat.c: New file.
8656
8657         Tests for module 'unistr/u8-strncat'.
8658         * modules/unistr/u8-strncat-tests: New file.
8659         * tests/unistr/test-u8-strncat.c: New file.
8660         * tests/unistr/test-strncat.h: New file.
8661
8662         Tests for module 'unistr/u32-strcat'.
8663         * modules/unistr/u32-strcat-tests: New file.
8664         * tests/unistr/test-u32-strcat.c: New file.
8665
8666         Tests for module 'unistr/u16-strcat'.
8667         * modules/unistr/u16-strcat-tests: New file.
8668         * tests/unistr/test-u16-strcat.c: New file.
8669
8670         Tests for module 'unistr/u8-strcat'.
8671         * modules/unistr/u8-strcat-tests: New file.
8672         * tests/unistr/test-u8-strcat.c: New file.
8673         * tests/unistr/test-strcat.h: New file.
8674
8675         Tests for module 'unistr/u32-stpncpy'.
8676         * modules/unistr/u32-stpncpy-tests: New file.
8677         * tests/unistr/test-u32-stpncpy.c: New file.
8678
8679         Tests for module 'unistr/u16-stpncpy'.
8680         * modules/unistr/u16-stpncpy-tests: New file.
8681         * tests/unistr/test-u16-stpncpy.c: New file.
8682
8683         Tests for module 'unistr/u8-stpncpy'.
8684         * modules/unistr/u8-stpncpy-tests: New file.
8685         * tests/unistr/test-u8-stpncpy.c: New file.
8686         * tests/unistr/test-stpncpy.h: New file.
8687
8688         Tests for module 'unistr/u32-strncpy'.
8689         * modules/unistr/u32-strncpy-tests: New file.
8690         * tests/unistr/test-u32-strncpy.c: New file.
8691
8692         Tests for module 'unistr/u16-strncpy'.
8693         * modules/unistr/u16-strncpy-tests: New file.
8694         * tests/unistr/test-u16-strncpy.c: New file.
8695
8696         Tests for module 'unistr/u8-strncpy'.
8697         * modules/unistr/u8-strncpy-tests: New file.
8698         * tests/unistr/test-u8-strncpy.c: New file.
8699         * tests/unistr/test-strncpy.h: New file.
8700
8701         Tests for module 'unistr/u32-stpcpy'.
8702         * modules/unistr/u32-stpcpy-tests: New file.
8703         * tests/unistr/test-u32-stpcpy.c: New file.
8704
8705         Tests for module 'unistr/u16-stpcpy'.
8706         * modules/unistr/u16-stpcpy-tests: New file.
8707         * tests/unistr/test-u16-stpcpy.c: New file.
8708
8709         Tests for module 'unistr/u8-stpcpy'.
8710         * modules/unistr/u8-stpcpy-tests: New file.
8711         * tests/unistr/test-u8-stpcpy.c: New file.
8712         * tests/unistr/test-stpcpy.h: New file.
8713
8714         Tests for module 'unistr/u32-strcpy'.
8715         * modules/unistr/u32-strcpy-tests: New file.
8716         * tests/unistr/test-u32-strcpy.c: New file.
8717
8718         Tests for module 'unistr/u16-strcpy'.
8719         * modules/unistr/u16-strcpy-tests: New file.
8720         * tests/unistr/test-u16-strcpy.c: New file.
8721
8722         Tests for module 'unistr/u8-strcpy'.
8723         * modules/unistr/u8-strcpy-tests: New file.
8724         * tests/unistr/test-u8-strcpy.c: New file.
8725         * tests/unistr/test-strcpy.h: New file.
8726
8727         Tests for module 'unistr/u32-strnlen'.
8728         * modules/unistr/u32-strnlen-tests: New file.
8729         * tests/unistr/test-u32-strnlen.c: New file.
8730
8731         Tests for module 'unistr/u16-strnlen'.
8732         * modules/unistr/u16-strnlen-tests: New file.
8733         * tests/unistr/test-u16-strnlen.c: New file.
8734
8735         Tests for module 'unistr/u8-strnlen'.
8736         * modules/unistr/u8-strnlen-tests: New file.
8737         * tests/unistr/test-u8-strnlen.c: New file.
8738         * tests/unistr/test-strnlen.h: New file.
8739
8740         Tests for module 'unistr/u32-strlen'.
8741         * modules/unistr/u32-strlen-tests: New file.
8742         * tests/unistr/test-u32-strlen.c: New file.
8743
8744         Tests for module 'unistr/u16-strlen'.
8745         * modules/unistr/u16-strlen-tests: New file.
8746         * tests/unistr/test-u16-strlen.c: New file.
8747
8748         Tests for module 'unistr/u8-strlen'.
8749         * modules/unistr/u8-strlen-tests: New file.
8750         * tests/unistr/test-u8-strlen.c: New file.
8751
8752         Tests for module 'unistr/u32-prev'.
8753         * modules/unistr/u32-prev-tests: New file.
8754         * tests/unistr/test-u32-prev.c: New file.
8755
8756         Tests for module 'unistr/u16-prev'.
8757         * modules/unistr/u16-prev-tests: New file.
8758         * tests/unistr/test-u16-prev.c: New file.
8759
8760         Tests for module 'unistr/u8-prev'.
8761         * modules/unistr/u8-prev-tests: New file.
8762         * tests/unistr/test-u8-prev.c: New file.
8763
8764         Tests for module 'unistr/u32-next'.
8765         * modules/unistr/u32-next-tests: New file.
8766         * tests/unistr/test-u32-next.c: New file.
8767
8768         Tests for module 'unistr/u16-next'.
8769         * modules/unistr/u16-next-tests: New file.
8770         * tests/unistr/test-u16-next.c: New file.
8771
8772         Tests for module 'unistr/u8-next'.
8773         * modules/unistr/u8-next-tests: New file.
8774         * tests/unistr/test-u8-next.c: New file.
8775
8776         Tests for module 'unistr/u32-strmbtouc'.
8777         * modules/unistr/u32-strmbtouc-tests: New file.
8778         * tests/unistr/test-u32-strmbtouc.c: New file.
8779
8780         Tests for module 'unistr/u16-strmbtouc'.
8781         * modules/unistr/u16-strmbtouc-tests: New file.
8782         * tests/unistr/test-u16-strmbtouc.c: New file.
8783
8784         Tests for module 'unistr/u8-strmbtouc'.
8785         * modules/unistr/u8-strmbtouc-tests: New file.
8786         * tests/unistr/test-u8-strmbtouc.c: New file.
8787
8788         Tests for module 'unistr/u32-strmblen'.
8789         * modules/unistr/u32-strmblen-tests: New file.
8790         * tests/unistr/test-u32-strmblen.c: New file.
8791
8792         Tests for module 'unistr/u16-strmblen'.
8793         * modules/unistr/u16-strmblen-tests: New file.
8794         * tests/unistr/test-u16-strmblen.c: New file.
8795
8796         Tests for module 'unistr/u8-strmblen'.
8797         * modules/unistr/u8-strmblen-tests: New file.
8798         * tests/unistr/test-u8-strmblen.c: New file.
8799
8800         Tests for module 'unistr/u32-cpy-alloc'.
8801         * modules/unistr/u32-cpy-alloc-tests: New file.
8802         * tests/unistr/test-u32-cpy-alloc.c: New file.
8803
8804         Tests for module 'unistr/u16-cpy-alloc'.
8805         * modules/unistr/u16-cpy-alloc-tests: New file.
8806         * tests/unistr/test-u16-cpy-alloc.c: New file.
8807
8808         Tests for module 'unistr/u8-cpy-alloc'.
8809         * modules/unistr/u8-cpy-alloc-tests: New file.
8810         * tests/unistr/test-u8-cpy-alloc.c: New file.
8811         * tests/unistr/test-cpy-alloc.h: New file.
8812
8813         Tests for module 'unistr/u32-mbsnlen'.
8814         * modules/unistr/u32-mbsnlen-tests: New file.
8815         * tests/unistr/test-u32-mbsnlen.c: New file.
8816
8817         Tests for module 'unistr/u16-mbsnlen'.
8818         * modules/unistr/u16-mbsnlen-tests: New file.
8819         * tests/unistr/test-u16-mbsnlen.c: New file.
8820
8821         Tests for module 'unistr/u8-mbsnlen'.
8822         * modules/unistr/u8-mbsnlen-tests: New file.
8823         * tests/unistr/test-u8-mbsnlen.c: New file.
8824
8825         Tests for module 'unistr/u32-chr'.
8826         * modules/unistr/u32-chr-tests: New file.
8827         * tests/unistr/test-u32-chr.c: New file.
8828
8829         Tests for module 'unistr/u16-chr'.
8830         * modules/unistr/u16-chr-tests: New file.
8831         * tests/unistr/test-u16-chr.c: New file.
8832
8833         Tests for module 'unistr/u8-chr'.
8834         * modules/unistr/u8-chr-tests: New file.
8835         * tests/unistr/test-u8-chr.c: New file.
8836         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8837
8838         Tests for module 'unistr/u32-cmp2'.
8839         * modules/unistr/u32-cmp2-tests: New file.
8840         * tests/unistr/test-u32-cmp2.c: New file.
8841
8842         Tests for module 'unistr/u16-cmp2'.
8843         * modules/unistr/u16-cmp2-tests: New file.
8844         * tests/unistr/test-u16-cmp2.c: New file.
8845
8846         Tests for module 'unistr/u8-cmp2'.
8847         * modules/unistr/u8-cmp2-tests: New file.
8848         * tests/unistr/test-u8-cmp2.c: New file.
8849         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
8850
8851         Tests for module 'unistr/u32-cmp'.
8852         * modules/unistr/u32-cmp-tests: New file.
8853         * tests/unistr/test-u32-cmp.c: New file.
8854
8855         Tests for module 'unistr/u16-cmp'.
8856         * modules/unistr/u16-cmp-tests: New file.
8857         * tests/unistr/test-u16-cmp.c: New file.
8858
8859         Tests for module 'unistr/u8-cmp'.
8860         * modules/unistr/u8-cmp-tests: New file.
8861         * tests/unistr/test-u8-cmp.c: New file.
8862         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
8863
8864         Tests for module 'unistr/u32-set'.
8865         * modules/unistr/u32-set-tests: New file.
8866         * tests/unistr/test-u32-set.c: New file.
8867
8868         Tests for module 'unistr/u16-set'.
8869         * modules/unistr/u16-set-tests: New file.
8870         * tests/unistr/test-u16-set.c: New file.
8871
8872         Tests for module 'unistr/u8-set'.
8873         * modules/unistr/u8-set-tests: New file.
8874         * tests/unistr/test-u8-set.c: New file.
8875         * tests/unistr/test-set.h: New file.
8876
8877         Tests for module 'unistr/u32-move'.
8878         * modules/unistr/u32-move-tests: New file.
8879         * tests/unistr/test-u32-move.c: New file.
8880
8881         Tests for module 'unistr/u16-move'.
8882         * modules/unistr/u16-move-tests: New file.
8883         * tests/unistr/test-u16-move.c: New file.
8884
8885         Tests for module 'unistr/u8-move'.
8886         * modules/unistr/u8-move-tests: New file.
8887         * tests/unistr/test-u8-move.c: New file.
8888         * tests/unistr/test-move.h: New file.
8889
8890         Tests for module 'unistr/u32-cpy'.
8891         * modules/unistr/u32-cpy-tests: New file.
8892         * tests/unistr/test-u32-cpy.c: New file.
8893
8894         Tests for module 'unistr/u16-cpy'.
8895         * modules/unistr/u16-cpy-tests: New file.
8896         * tests/unistr/test-u16-cpy.c: New file.
8897
8898         Tests for module 'unistr/u8-cpy'.
8899         * modules/unistr/u8-cpy-tests: New file.
8900         * tests/unistr/test-u8-cpy.c: New file.
8901         * tests/unistr/test-cpy.h: New file.
8902
8903 2010-01-09  Bruno Haible  <bruno@clisp.org>
8904
8905         Tests for module 'unistr/u32-uctomb'.
8906         * modules/unistr/u32-uctomb-tests: New file.
8907         * tests/unistr/test-u32-uctomb.c: New file.
8908
8909         Tests for module 'unistr/u16-uctomb'.
8910         * modules/unistr/u16-uctomb-tests: New file.
8911         * tests/unistr/test-u16-uctomb.c: New file.
8912
8913         Tests for module 'unistr/u8-uctomb'.
8914         * modules/unistr/u8-uctomb-tests: New file.
8915         * tests/unistr/test-u8-uctomb.c: New file.
8916
8917         Tests for module 'unistr/u32-mbtoucr'.
8918         * modules/unistr/u32-mbtoucr-tests: New file.
8919         * tests/unistr/test-u32-mbtoucr.c: New file.
8920
8921         Tests for module 'unistr/u16-mbtoucr'.
8922         * modules/unistr/u16-mbtoucr-tests: New file.
8923         * tests/unistr/test-u16-mbtoucr.c: New file.
8924
8925         Tests for module 'unistr/u8-mbtoucr'.
8926         * modules/unistr/u8-mbtoucr-tests: New file.
8927         * tests/unistr/test-u8-mbtoucr.c: New file.
8928
8929         Tests for module 'unistr/u32-mbtouc'.
8930         * modules/unistr/u32-mbtouc-tests: New file.
8931         * tests/unistr/test-u32-mbtouc.c: New file.
8932
8933         Tests for module 'unistr/u16-mbtouc'.
8934         * modules/unistr/u16-mbtouc-tests: New file.
8935         * tests/unistr/test-u16-mbtouc.c: New file.
8936
8937         Tests for module 'unistr/u8-mbtouc'.
8938         * modules/unistr/u8-mbtouc-tests: New file.
8939         * tests/unistr/test-u8-mbtouc.c: New file.
8940
8941         Tests for module 'unistr/u32-mbtouc-unsafe'.
8942         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
8943         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
8944         * tests/unistr/test-u32-mbtouc.h: New file.
8945
8946         Tests for module 'unistr/u16-mbtouc-unsafe'.
8947         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
8948         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
8949         * tests/unistr/test-u16-mbtouc.h: New file.
8950
8951         Tests for module 'unistr/u8-mbtouc-unsafe'.
8952         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
8953         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
8954         * tests/unistr/test-u8-mbtouc.h: New file.
8955
8956         Tests for module 'unistr/u32-mblen'.
8957         * modules/unistr/u32-mblen-tests: New file.
8958         * tests/unistr/test-u32-mblen.c: New file.
8959
8960         Tests for module 'unistr/u16-mblen'.
8961         * modules/unistr/u16-mblen-tests: New file.
8962         * tests/unistr/test-u16-mblen.c: New file.
8963
8964         Tests for module 'unistr/u8-mblen'.
8965         * modules/unistr/u8-mblen-tests: New file.
8966         * tests/unistr/test-u8-mblen.c: New file.
8967
8968         Tests for module 'unistr/u32-to-u16'.
8969         * modules/unistr/u32-to-u16-tests: New file.
8970         * tests/unistr/test-u32-to-u16.c: New file.
8971
8972         Tests for module 'unistr/u32-to-u8'.
8973         * modules/unistr/u32-to-u8-tests: New file.
8974         * tests/unistr/test-u32-to-u8.c: New file.
8975
8976         Tests for module 'unistr/u16-to-u32'.
8977         * modules/unistr/u16-to-u32-tests: New file.
8978         * tests/unistr/test-u16-to-u32.c: New file.
8979
8980         Tests for module 'unistr/u16-to-u8'.
8981         * modules/unistr/u16-to-u8-tests: New file.
8982         * tests/unistr/test-u16-to-u8.c: New file.
8983
8984         Tests for module 'unistr/u8-to-u32'.
8985         * modules/unistr/u8-to-u32-tests: New file.
8986         * tests/unistr/test-u8-to-u32.c: New file.
8987
8988         Tests for module 'unistr/u8-to-u16'.
8989         * modules/unistr/u8-to-u16-tests: New file.
8990         * tests/unistr/test-u8-to-u16.c: New file.
8991
8992         Tests for module 'unistr/u32-check'.
8993         * modules/unistr/u32-check-tests: New file.
8994         * tests/unistr/test-u32-check.c: New file.
8995
8996         Tests for module 'unistr/u16-check'.
8997         * modules/unistr/u16-check-tests: New file.
8998         * tests/unistr/test-u16-check.c: New file.
8999
9000         Tests for module 'unistr/u8-check'.
9001         * modules/unistr/u8-check-tests: New file.
9002         * tests/unistr/test-u8-check.c: New file.
9003
9004         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
9005         (category_equals): New function.
9006         (main): Add more tests.
9007         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
9008
9009         * tests/unictype/test-bidi_byname.c (main): Add more tests.
9010
9011 2010-01-10  Bruno Haible  <bruno@clisp.org>
9012
9013         unistr/u*-strcoll: Try harder to distinguish different strings.
9014         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
9015         compare s1 and s2 to see if they are different.
9016
9017 2010-01-10  Bruno Haible  <bruno@clisp.org>
9018
9019         unistr/u*-stpncpy: Fix the return value.
9020         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
9021         description of the return value consistent with stpncpy in glibc.
9022         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
9023         written non-NUL unit.
9024
9025 2010-01-10  Bruno Haible  <bruno@clisp.org>
9026
9027         unistr/u*-next: Add missing dependencies.
9028         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
9029         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
9030         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
9031
9032 2010-01-10  Bruno Haible  <bruno@clisp.org>
9033
9034         unistr/u8-mbsnlen: Fix return value for incomplete character.
9035         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
9036         u8_mblen.
9037         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
9038         Remove unistr/u8-mblen.
9039         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
9040         u16_mblen.
9041         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
9042         Remove unistr/u16-mblen.
9043
9044 2010-01-10  Bruno Haible  <bruno@clisp.org>
9045
9046         wchar: Fix compilation error when <wchar.h> is used from coreutils.
9047         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
9048         Reported by Brian Gough <bjg@gnu.org> and
9049         Chris Clayton <chris2553@googlemail.com> via
9050         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
9051
9052 2010-01-09  Bruno Haible  <bruno@clisp.org>
9053
9054         unistr/u16-to-u32: Reject invalid input.
9055         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
9056         u16_mbtouc.
9057         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
9058         Remove unistr/u16-mbtouc.
9059
9060         unistr/u16-to-u8: Reject invalid input.
9061         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
9062         u16_mbtouc.
9063         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
9064         Remove unistr/u16-mbtouc.
9065
9066         unistr/u8-to-u32: Reject invalid input.
9067         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
9068         u8_mbtouc.
9069         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
9070         Remove unistr/u8-mbtouc.
9071
9072         unistr/u8-to-u16: Reject invalid input.
9073         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
9074         u8_mbtouc.
9075         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
9076         Remove unistr/u8-mbtouc.
9077
9078 2010-01-09  Bruno Haible  <bruno@clisp.org>
9079
9080         Tests for module 'getlogin'.
9081         * modules/getlogin-tests: New file.
9082         * tests/test-getlogin.c: New file.
9083
9084         New module 'getlogin'.
9085         * lib/unistd.in.h (getlogin): New declaration.
9086         * lib/getlogin.c: New file.
9087         * m4/getlogin.m4: New file.
9088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
9089         HAVE_GETLOGIN.
9090         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
9091         HAVE_GETLOGIN.
9092         * modules/getlogin: New file.
9093         * doc/posix-functions/getlogin.texi: Mention the new module.
9094         Reported by John W. Eaton <jwe@gnu.org>.
9095
9096 2010-01-09  Bruno Haible  <bruno@clisp.org>
9097
9098         getlogin_r: Support for native Windows.
9099         * lib/getlogin_r.c: Include <windows.h>
9100         (getlogin_r): Implement for native Windows.
9101         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
9102         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
9103         via John W. Eaton <jwe@gnu.org>.
9104
9105 2010-01-09  Bruno Haible  <bruno@clisp.org>
9106
9107         getlogin_r: Small fixes.
9108         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
9109         succeeds.
9110         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
9111         before testing whether getlogin_r is declared. No need to set
9112         HAVE_DECL_GETLOGIN_R to 1.
9113         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
9114
9115 2010-01-09  Bruno Haible  <bruno@clisp.org>
9116
9117         * lib/unistd.in.h (getlogin_r): Add comment.
9118
9119 2010-01-09  Bruno Haible  <bruno@clisp.org>
9120
9121         Tests for module 'getlogin_r'.
9122         * modules/getlogin_r-tests: New file.
9123         * tests/test-getlogin_r.c: New file.
9124
9125 2010-01-09  Jim Meyering  <meyering@redhat.com>
9126
9127         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
9128         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
9129         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
9130
9131 2010-01-08  Simon Josefsson  <simon@josefsson.org>
9132
9133         * lib/dup2.c (rpl_dup2): Improve comment.
9134
9135 2010-01-08  Eric Blake  <ebb9@byu.net>
9136
9137         maint.mk: allow packages to add makefile @@ exceptions
9138         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
9139         (sc_makefile_check): Rename...
9140         (sc_makefile_at_at_check): ...to this, and use hook.
9141
9142         dup2: work around mingw bug
9143         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
9144         Reported by Simon Josefsson.
9145
9146 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
9147
9148         glob: Fix C++ compilation.
9149         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
9150         C++.
9151
9152 2010-01-07  Bruno Haible  <bruno@clisp.org>
9153
9154         Fix indentation of wctype.in.h, broken since 2007-01-06.
9155         * lib/wctype.in.h: Fix indentation of preprocessor directives.
9156
9157 2010-01-07  Bruno Haible  <bruno@clisp.org>
9158
9159         mbslen: Avoid collision with system function.
9160         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9161         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9162         * m4/mbslen.m4: New file.
9163         * modules/mbslen (Files): Add it.
9164         (configure.ac): Invoke gl_MBSLEN.
9165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9166         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9167         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9168         via Ian Beckwith <ianb@erislabs.net>.
9169
9170 2010-01-07  Bruno Haible  <bruno@clisp.org>
9171
9172         dirent: Document the last fix.
9173         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9174
9175 2010-01-07  Bruno Haible  <bruno@clisp.org>
9176
9177         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9178         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9179         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9180         va_list are defined.
9181         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9182         Reported by Eric Blake.
9183
9184 2010-01-07  Bruno Haible  <bruno@clisp.org>
9185
9186         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9187         * modules/xlist (Depends-on): Add 'list',
9188         * modules/xoset (Depends-on): Add 'oset'.
9189         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9190
9191 2010-01-07  Bruno Haible  <bruno@clisp.org>
9192
9193         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9194         * doc/posix-functions/strncasecmp.texi: Likewise.
9195
9196 2010-01-07  Bruno Haible  <bruno@clisp.org>
9197
9198         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9199
9200 2010-01-07  John W. Eaton  <jwe@octave.org>
9201
9202         wctype: allow C++ use
9203         * lib/wctype.in.h: Add extern "C" block for C++.
9204
9205 2010-01-06  Eric Blake  <ebb9@byu.net>
9206
9207         maint.mk: detect incorrect GFDL usage
9208         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9209
9210 2010-01-06  Jim Meyering  <meyering@redhat.com>
9211         and Eric Blake  <ebb9@byu.net>
9212
9213         maint.mk: ignore multi-line copyright in NEWS
9214         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9215
9216 2010-01-06  Eric Blake  <ebb9@byu.net>
9217
9218         select: add missing dependency
9219         * modules/select-tests (Depends-on): Move sockets dependency...
9220         * modules/select (Depends-on): ...here.
9221         Reported by Ian Beckwith.
9222
9223         doc: regenerate INSTALL
9224         * doc/INSTALL: Reflect recent autoconf update.
9225         * doc/INSTALL.ISO: Likewise.
9226         * doc/INSTALL.UTF-8: Likewise.
9227
9228         pread: fix compilation on glibc
9229         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9230         Reported by Ralf Wildenhues.
9231
9232         dirent: fix test failure
9233         * lib/dirent.in.h (includes): Guarantee ino_t.
9234         Reported by Ralf Wildenhues.
9235
9236 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9237
9238         linkat, renameat: avoid bad free
9239         * lib/at-func2.c (at_func2): Fix typo.
9240         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9241
9242 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9243
9244         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9245         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9246         to avoid failure of symlink test later.
9247
9248 2010-01-06  Eric Blake  <ebb9@byu.net>
9249
9250         stdio, unistd: guarantee ssize_t
9251         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9252         2008 are exposed when needed.
9253         * lib/stdio.in.h (includes): Likewise.
9254         Reported by Ralf Wildenhues.
9255
9256 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9257
9258         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9259         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9260         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9261
9262 2010-01-06  Jim Meyering  <meyering@redhat.com>
9263
9264         readtokens: this module *does* require xalloc.h
9265         It uses only functions that were omitted by the old syntax-check rule.
9266         * lib/readtokens.c: Include "xalloc.h" once again.
9267         * modules/readtokens (Depends-on): Add xalloc.
9268         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9269
9270 2010-01-05  Eric Blake  <ebb9@byu.net>
9271
9272         maint: support 'make announcement' from a VPATH build
9273         * top/maint.mk (announcement): Look for correct NEWS file.
9274
9275 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9276
9277         utimens (fdutimens): ignore a negative FD, per contract
9278         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9279         when we have a valid file descriptor.  Otherwise, using a brand
9280         new glibc (with just-patched futimens that now fails with EBADF)
9281         would cause this function to fail with ENOSYS.
9282         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9283         See also http://bugzilla.redhat.com/552320.
9284
9285 2010-01-05  Eric Blake  <ebb9@byu.net>
9286
9287         strcase: document what it provides
9288         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9289         gnulib module.
9290         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9291         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9292
9293 2010-01-05  Jim Meyering  <meyering@redhat.com>
9294
9295         maint: remove useless inclusions of "xalloc.h"
9296         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9297         * lib/readtokens.c: Likewise.
9298         * lib/same.c: Likewise.
9299         * modules/getloadavg (Depends-on): Remove xalloc.
9300         * modules/readtokens: Likewise.
9301         * modules/same: Likewise.
9302
9303         maint.mk: include 4 more function names in alloca.h-checking regexp
9304         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9305         regexp.  Before, we would give a false-positive (saying alloca.h
9306         is included unnecessarily) when the only uses involved omitted symbols.
9307
9308         xalloc.h: use consistent formatting
9309         * lib/xalloc.h: Move declarations to start in the first column.
9310
9311 2010-01-05  Eric Blake  <ebb9@byu.net>
9312
9313         mkdir: avoid xalloc
9314         * lib/mkdir.c (includes): Drop unused header.
9315         Reported by John W. Eaton.
9316
9317 2010-01-04  Jim Meyering  <meyering@redhat.com>
9318
9319         nl_langinfo: avoid configure-time syntax error
9320         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9321         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9322         the empty string.  Don't let that provoke a shell syntax error.
9323
9324         regcomp, regexec, fnmatch: avoid array bounds read error
9325         * lib/regcomp.c (build_equiv_class): From glibc:
9326         Use only the low 24 bits of a findidx return value as an index
9327         into the weights array.  Patch by Ulrich Drepper:
9328         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9329         * lib/regexec.c (check_node_accept_bytes): Likewise.
9330         * lib/fnmatch_loop.c (FCT): Likewise.
9331
9332         regcomp: skip collseq lookup when there are no rules
9333         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9334         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9335
9336         regcomp: recognize ill-formed { } expressions
9337         * lib/regcomp.c (parse_dup_op): From glibc:
9338         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9339
9340         regcomp: fix typo in comment
9341         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9342         s/satisfy/satisfies/.
9343
9344         regcomp: sync from glibc: remove dead store
9345         * lib/regcomp.c (duplicate_node_closure): Remove useless
9346         search_duplicated_node call and dead store.
9347
9348         regcomp: sync from glibc; always use nl_langinfo
9349         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9350         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9351         * modules/regex (Depends-on): Add nl_langinfo.
9352
9353 2010-01-04  Eric Blake  <ebb9@byu.net>
9354
9355         fdopendir: fix configure test
9356         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9357
9358 2010-01-01  Bruno Haible  <bruno@clisp.org>
9359
9360         wchar: Remove unused configure check.
9361         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9362
9363 2010-01-01  Eric Blake  <ebb9@byu.net>
9364
9365         headers: make check of system header explicit
9366         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9367         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9368         ourselves.
9369         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9370         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9371         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9372         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9373         internals.
9374         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9375         missing.
9376         Suggested by Bruno Haible.
9377
9378 2010-01-01  Jim Meyering  <meyering@redhat.com>
9379
9380         ChangeLog: tweak to eliminate unnecessary copyright line
9381         * ChangeLog: Remove a copyright line that was mistakenly updated
9382         by today's update-copyright run.  Reported by Eric Blake.
9383
9384         test-update-copyright: don't let envvar setting cause test failure
9385         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9386
9387 2010-01-01  Bruno Haible  <bruno@clisp.org>
9388
9389         localename: Avoid gcc warning.
9390         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9391         function if it is not used.
9392
9393 2010-01-01  Jim Meyering  <meyering@redhat.com>
9394
9395         update nearly all FSF copyright year lists to include 2010
9396         Use the same procedure as for 2009, outlined in
9397         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9398
9399         version-etc: set COPYRIGHT_YEAR to 2010
9400         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9401
9402 2009-12-31  Eric Blake  <ebb9@byu.net>
9403
9404         doc: correct availability of cygwin 1.5.x getopt
9405         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9406         variables.
9407         * doc/posix-functions/opterr.texi (opterr): Likewise.
9408         * doc/posix-functions/optind.texi (optind): Likewise.
9409         * doc/posix-functions/optopt.texi (optopt): Likewise.
9410         * doc/posix-functions/tzname.texi (tzname): Likewise.
9411
9412         openat: update maintainer
9413         * modules/openat (Maintainer): Add myself.
9414
9415         utimens: avoid shadowing warning
9416         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9417         buffers into one, to avoid shadowing, as well as avoiding a
9418         redundant stat.
9419         Reported by Jim Meyering.
9420
9421         test-dup2: avoid compiler warning
9422         * tests/test-dup2.c (is_inheritable): Only define if used.
9423
9424 2010-01-01  Bruno Haible  <bruno@clisp.org>
9425
9426         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9427         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9428         defined, use wctomb instead of wcrtomb.
9429
9430 2010-01-01  Bruno Haible  <bruno@clisp.org>
9431
9432         iconv: Reject native Solaris iconv.
9433         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9434         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9435
9436 2009-12-31  Bruno Haible  <bruno@clisp.org>
9437
9438         * tests/test-signal.c (main): Remove test of 'SIG'.
9439
9440 2009-12-31  Bruno Haible  <bruno@clisp.org>
9441
9442         spawn: Fix incomplete fix.
9443         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9444         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9445         warnings for GNULIB_POSIXCHECK again.
9446         Reported by Eric Blake.
9447
9448 2009-12-31  Bruno Haible  <bruno@clisp.org>
9449
9450         Avoid namespace pollution on glibc systems.
9451         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9452         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9453         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9454         glibc systems.
9455
9456 2009-12-31  Bruno Haible  <bruno@clisp.org>
9457
9458         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9459         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9460         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9461         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9462         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9463         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9464         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9465
9466 2009-12-31  Bruno Haible  <bruno@clisp.org>
9467
9468         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9469         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9470         afterwards.
9471
9472 2009-12-31  Bruno Haible  <bruno@clisp.org>
9473
9474         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9475         SYS_UTSNAME_H.
9476
9477 2009-12-31  Bruno Haible  <bruno@clisp.org>
9478
9479         spawn: Fix misapplied patch.
9480         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9481         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9482         warnings for GNULIB_POSIXCHECK.
9483
9484 2009-12-31  Bruno Haible  <bruno@clisp.org>
9485
9486         times: Update after sys_times changed.
9487         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9488         * modules/times (Files): Add it.
9489         (configure.ac): Invoke gl_FUNC_TIMES.
9490
9491 2009-12-31  Bruno Haible  <bruno@clisp.org>
9492
9493         Use AC_C_INLINE where necessary.
9494         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9495         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9497         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9498         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9499         * m4/mbiter.m4 (gl_MBITER): Likewise.
9500         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9501         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9502         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9503         * modules/u64 (configure.ac): Likewise.
9504
9505 2009-12-31  Bruno Haible  <bruno@clisp.org>
9506
9507         Use AC_C_INLINE instead of module 'inline' where possible.
9508         * modules/inline (Description): Clarify purpose.
9509         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9510         * modules/count-one-bits (Depends-on): Remove inline.
9511         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9512         * modules/openat (Depends-on): Remove inline.
9513         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9514         instead of depending on module 'inline'.
9515         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9516         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9517         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9518         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9519         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9520         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9521         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9522         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9523         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9524         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9525         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9526         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9527         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9528         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9529         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9530         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9531         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9532         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9533         Likewise.
9534         * modules/unictype/property-ascii-hex-digit (Depends-on,
9535         configure.ac): Likewise.
9536         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9537         configure.ac): Likewise.
9538         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9539         configure.ac): Likewise.
9540         * modules/unictype/property-bidi-block-separator (Depends-on,
9541         configure.ac): Likewise.
9542         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9543         configure.ac): Likewise.
9544         * modules/unictype/property-bidi-common-separator (Depends-on,
9545         configure.ac): Likewise.
9546         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9547         Likewise.
9548         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9549         configure.ac): Likewise.
9550         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9551         configure.ac): Likewise.
9552         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9553         configure.ac): Likewise.
9554         * modules/unictype/property-bidi-european-digit (Depends-on,
9555         configure.ac): Likewise.
9556         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9557         configure.ac): Likewise.
9558         * modules/unictype/property-bidi-left-to-right (Depends-on,
9559         configure.ac): Likewise.
9560         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9561         configure.ac): Likewise.
9562         * modules/unictype/property-bidi-other-neutral (Depends-on,
9563         configure.ac): Likewise.
9564         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9565         Likewise.
9566         * modules/unictype/property-bidi-segment-separator (Depends-on,
9567         configure.ac): Likewise.
9568         * modules/unictype/property-bidi-whitespace (Depends-on,
9569         configure.ac): Likewise.
9570         * modules/unictype/property-combining (Depends-on, configure.ac):
9571         Likewise.
9572         * modules/unictype/property-composite (Depends-on, configure.ac):
9573         Likewise.
9574         * modules/unictype/property-currency-symbol (Depends-on,
9575         configure.ac): Likewise.
9576         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9577         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9578         Likewise.
9579         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9580         configure.ac): Likewise.
9581         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9582         Likewise.
9583         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9584         Likewise.
9585         * modules/unictype/property-extender (Depends-on, configure.ac):
9586         Likewise.
9587         * modules/unictype/property-format-control (Depends-on, configure.ac):
9588         Likewise.
9589         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9590         Likewise.
9591         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9592         Likewise.
9593         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9594         Likewise.
9595         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9596         Likewise.
9597         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9598         Likewise.
9599         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9600         Likewise.
9601         * modules/unictype/property-id-start (Depends-on, configure.ac):
9602         Likewise.
9603         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9604         Likewise.
9605         * modules/unictype/property-ids-binary-operator (Depends-on,
9606         configure.ac): Likewise.
9607         * modules/unictype/property-ids-trinary-operator (Depends-on,
9608         configure.ac): Likewise.
9609         * modules/unictype/property-ignorable-control (Depends-on,
9610         configure.ac): Likewise.
9611         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9612         Likewise.
9613         * modules/unictype/property-join-control (Depends-on, configure.ac):
9614         Likewise.
9615         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9616         Likewise.
9617         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9618         Likewise.
9619         * modules/unictype/property-logical-order-exception (Depends-on,
9620         configure.ac): Likewise.
9621         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9622         Likewise.
9623         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9624         * modules/unictype/property-non-break (Depends-on, configure.ac):
9625         Likewise.
9626         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9627         Likewise.
9628         * modules/unictype/property-numeric (Depends-on, configure.ac):
9629         Likewise.
9630         * modules/unictype/property-other-alphabetic (Depends-on,
9631         configure.ac): Likewise.
9632         * modules/unictype/property-other-default-ignorable-code-point
9633         (Depends-on, configure.ac): Likewise.
9634         * modules/unictype/property-other-grapheme-extend (Depends-on,
9635         configure.ac): Likewise.
9636         * modules/unictype/property-other-id-continue (Depends-on,
9637         configure.ac): Likewise.
9638         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9639         Likewise.
9640         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9641         Likewise.
9642         * modules/unictype/property-other-math (Depends-on, configure.ac):
9643         Likewise.
9644         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9645         Likewise.
9646         * modules/unictype/property-paired-punctuation (Depends-on,
9647         configure.ac): Likewise.
9648         * modules/unictype/property-paragraph-separator (Depends-on,
9649         configure.ac): Likewise.
9650         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9651         Likewise.
9652         * modules/unictype/property-pattern-white-space (Depends-on,
9653         configure.ac): Likewise.
9654         * modules/unictype/property-private-use (Depends-on, configure.ac):
9655         Likewise.
9656         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9657         Likewise.
9658         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9659         Likewise.
9660         * modules/unictype/property-radical (Depends-on, configure.ac):
9661         Likewise.
9662         * modules/unictype/property-sentence-terminal (Depends-on,
9663         configure.ac): Likewise.
9664         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9665         Likewise.
9666         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9667         * modules/unictype/property-terminal-punctuation (Depends-on,
9668         configure.ac): Likewise.
9669         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9670         Likewise.
9671         * modules/unictype/property-unassigned-code-value (Depends-on,
9672         configure.ac): Likewise.
9673         * modules/unictype/property-unified-ideograph (Depends-on,
9674         configure.ac): Likewise.
9675         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9676         Likewise.
9677         * modules/unictype/property-variation-selector (Depends-on,
9678         configure.ac): Likewise.
9679         * modules/unictype/property-white-space (Depends-on, configure.ac):
9680         Likewise.
9681         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9682         Likewise.
9683         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9684         Likewise.
9685         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9686         Likewise.
9687         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9688         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9689         Likewise.
9690
9691 2009-12-31  Bruno Haible  <bruno@clisp.org>
9692
9693         Remove unnecessary AC_C_INLINE invocation.
9694         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9695         since 2009-08-21.
9696
9697 2009-12-31  Jim Meyering  <meyering@redhat.com>
9698
9699         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9700         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9701         With this change, we can all remove the gpg_key_ID = ... definition
9702         from our respective cfg.mk files.
9703
9704         maint.mk: create announcement template in ~/, not in /tmp
9705         * top/maint.mk (emit_upload_commands): Adjust.
9706         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9707         Remove temporary file, .ci-msg.
9708
9709 2009-12-31  Eric Blake  <ebb9@byu.net>
9710
9711         link-warning: always build headers with link warnings
9712         * modules/arpa_inet (Makefile.am): Always build replacement
9713         header.
9714         * modules/ctype (Makefile.am): Likewise.
9715         * modules/dirent (Makefile.am): Likewise.
9716         * modules/inttypes (Makefile.am): Likewise.
9717         * modules/langinfo (Makefile.am): Likewise.
9718         * modules/locale (Makefile.am): Likewise.
9719         * modules/spawn (Makefile.am): Likewise.
9720         * modules/sys_file (Makefile.am): Likewise.
9721         * modules/sys_ioctl (Makefile.am): Likewise.
9722         * modules/sys_select (Makefile.am): Likewise.
9723         * modules/sys_socket (Makefile.am): Likewise.
9724         * modules/sys_times (Makefile.am): Likewise.
9725         * modules/sys_utsname (Makefile.am): Likewise.
9726         * modules/sys_wait (Makefile.am): Likewise.
9727         * modules/wchar (Makefile.am): Likewise.
9728         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9729         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9730         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9731         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9732         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9733         Likewise.
9734         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9735         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9736         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9737         Likewise.
9738         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9739         Likewise.
9740         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9741         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9742         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9743         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9744         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9745         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9746         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9747         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9748         (gl_WCHAR_H_DEFAULTS): Likewise.
9749
9750 2009-12-31  Eric Blake  <ebb9@byu.net>
9751
9752         signal, spawn: use link warnings
9753         * lib/signal.in.h (sigset_t): Make unconditional.
9754         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9755         (sigpending, sigprocmask, sigaction): Add link warnings.
9756         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9757         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9758         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9759         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9760         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9761         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9762         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9763         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9764         (posix_spawn_file_actions_destroy)
9765         (posix_spawn_file_actions_addopen)
9766         (posix_spawn_file_actions_addclose)
9767         (posix_spawn_file_actions_adddup2): Likewise.
9768         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9769         * tests/test-signal.c (main): Enhance test.
9770
9771         spawn: improve wrapper support
9772         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9773         (gl_SPAWN_H_DEFAULTS): New defaults.
9774         * modules/spawn (Makefile.am): Substitute them.
9775         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9776         Only declare if missing or broken.
9777
9778         sys_times, sys_utsname: use include_next
9779         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9780         header.
9781         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9782         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9783         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9784         * modules/sys_times (Depends-on): Add include_next.
9785         (Makefile.am): Substitute additional values.
9786         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9787         * lib/sys_times.in.h (includes): Include native header, if
9788         available.
9789         * lib/sys_utsname.in.h (includes): Likewise.
9790         * tests/test-sys_times.c (main): Enhance test.
9791
9792         fdutimensat: revert prior patch
9793         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9794         utimens.h.
9795         Reported by Bruno Haible.
9796
9797 2009-12-30  Eric Blake  <ebb9@byu.net>
9798
9799         sys_wait: drop link-warning dependency
9800         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9801         link-warning efforts.
9802         * lib/sys_wait.in.h: Likewise.
9803
9804         fdutimensat: remove bogus dependency
9805         * modules/fdutimensat (Depends-on): Drop inline.
9806
9807         unistd: fix typo
9808         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9809
9810 2009-12-30  Bruno Haible  <bruno@clisp.org>
9811
9812         Fix compilation error with Solaris cc.
9813         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9814         * lib/unicase/u16-is-invariant.c: Likewise.
9815         * lib/unicase/u32-is-invariant.c: Likewise.
9816         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9817
9818 2009-12-30  Bruno Haible  <bruno@clisp.org>
9819
9820         Fix test crash.
9821         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9822         locales.
9823         Reported by Simon Josefsson <simon@josefsson.org>.
9824
9825 2009-12-30  Bruno Haible  <bruno@clisp.org>
9826
9827         Fix compilation error on most platforms.
9828         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
9829         Reported by Simon Josefsson <simon@josefsson.org>
9830         and Nelson H. F. Beebe <beebe@math.utah.edu>.
9831
9832 2009-12-30  Eric Blake  <ebb9@byu.net>
9833
9834         futimens, utimensat: work around ntfs-3g bug
9835         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
9836         a ctime bug is present, and expand workaround to cover ntfs-3g.
9837         * lib/utimens.c (fdutimens, lutimens): Likewise.
9838         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
9839         (validate_timespec): Adjust return value.
9840         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
9841         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9842         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
9843
9844 2009-12-29  Eric Blake  <ebb9@byu.net>
9845
9846         link-warning: make usage consistent
9847         * modules/ctype (Depends-on): Add link-warning.
9848         (Makefile.am): Update rules accordingly.
9849         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9850         * modules/locale (Depends-on, Makefile.am): Likewise.
9851         * modules/sys_file (Makefile.am): Likewise.
9852         * modules/getopt-posix (Makefile.am): Delete unused link warning
9853         efforts.
9854         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
9855         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
9856         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
9857         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
9858
9859         stdio: remove unused variables
9860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
9861         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
9862         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9863
9864         tests: test more substitute headers
9865         * modules/ctype-tests: New file.
9866         * modules/dirent-tests: Likewise.
9867         * modules/spawn-tests: Likewise.
9868         * modules/sys_file-tests: Likewise.
9869         * modules/sys_ioctl-tests: Likewise.
9870         * modules/sys_wait-tests: Likewise.
9871         * tests/test-ctype.c: Likewise.
9872         * tests/test-dirent.c: Likewise.
9873         * tests/test-spawn.c: Likewise.
9874         * tests/test-sys_file.c: Likewise.
9875         * tests/test-sys_ioctl.c: Likewise.
9876         * tests/test-sys_wait.c: Likewise.
9877         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
9878         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
9879         whether or not flock is in use.
9880
9881         tests: remove License section from module
9882         * modules/arpa_inet-tests: Remove unneeded section.
9883         * modules/byteswap-tests: Likewise.
9884         * modules/ceilf-tests: Likewise.
9885         * modules/ceill-tests: Likewise.
9886         * modules/crypto/des-tests: Likewise.
9887         * modules/crypto/gc-arcfour-tests: Likewise.
9888         * modules/crypto/gc-arctwo-tests: Likewise.
9889         * modules/crypto/gc-des-tests: Likewise.
9890         * modules/crypto/gc-hmac-md5-tests: Likewise.
9891         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9892         * modules/crypto/gc-md2-tests: Likewise.
9893         * modules/crypto/gc-md4-tests: Likewise.
9894         * modules/crypto/gc-md5-tests: Likewise.
9895         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9896         * modules/crypto/gc-rijndael-tests: Likewise.
9897         * modules/crypto/gc-sha1-tests: Likewise.
9898         * modules/crypto/gc-tests: Likewise.
9899         * modules/crypto/md2-tests: Likewise.
9900         * modules/crypto/md4-tests: Likewise.
9901         * modules/fcntl-h-tests: Likewise.
9902         * modules/floorf-tests: Likewise.
9903         * modules/floorl-tests: Likewise.
9904         * modules/frexp-nolibm-tests: Likewise.
9905         * modules/frexp-tests: Likewise.
9906         * modules/frexpl-nolibm-tests: Likewise.
9907         * modules/frexpl-tests: Likewise.
9908         * modules/getaddrinfo-tests: Likewise.
9909         * modules/inttypes-tests: Likewise.
9910         * modules/isfinite-tests: Likewise.
9911         * modules/isinf-tests: Likewise.
9912         * modules/ldexpl-tests: Likewise.
9913         * modules/locale-tests: Likewise.
9914         * modules/math-tests: Likewise.
9915         * modules/netdb-tests: Likewise.
9916         * modules/netinet_in-tests: Likewise.
9917         * modules/printf-frexp-tests: Likewise.
9918         * modules/printf-frexpl-tests: Likewise.
9919         * modules/priv-set-tests: Likewise.
9920         * modules/random_r-tests: Likewise.
9921         * modules/round-tests: Likewise.
9922         * modules/roundf-tests: Likewise.
9923         * modules/roundl-tests: Likewise.
9924         * modules/search-tests: Likewise.
9925         * modules/select-tests: Likewise.
9926         * modules/signal-tests: Likewise.
9927         * modules/stdbool-tests: Likewise.
9928         * modules/stddef-tests: Likewise.
9929         * modules/stdint-tests: Likewise.
9930         * modules/stdio-tests: Likewise.
9931         * modules/stdlib-tests: Likewise.
9932         * modules/string-tests: Likewise.
9933         * modules/strings-tests: Likewise.
9934         * modules/sys_select-tests: Likewise.
9935         * modules/sys_socket-tests: Likewise.
9936         * modules/sys_stat-tests: Likewise.
9937         * modules/sys_time-tests: Likewise.
9938         * modules/sys_utsname-tests: Likewise.
9939         * modules/sysexits-tests: Likewise.
9940         * modules/time-tests: Likewise.
9941         * modules/trunc-tests: Likewise.
9942         * modules/truncf-tests: Likewise.
9943         * modules/truncl-tests: Likewise.
9944         * modules/tsearch-tests: Likewise.
9945         * modules/unistd-tests: Likewise.
9946         * modules/wchar-tests: Likewise.
9947         * modules/wctype-tests: Likewise.
9948
9949         tests: fix license on several tests
9950         * tests/test-des.c: Update to GPLv3+.
9951         * tests/test-flock.c: Likewise.
9952         * tests/test-fsync.c: Likewise.
9953         * tests/test-futimens.h: Likewise.
9954         * tests/test-gc-arcfour.c: Likewise.
9955         * tests/test-gc-arctwo.c: Likewise.
9956         * tests/test-gc-des.c: Likewise.
9957         * tests/test-gc-hmac-md5.c: Likewise.
9958         * tests/test-gc-hmac-sha1.c: Likewise.
9959         * tests/test-gc-md2.c: Likewise.
9960         * tests/test-gc-md4.c: Likewise.
9961         * tests/test-gc-md5.c: Likewise.
9962         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9963         * tests/test-gc-rijndael.c: Likewise.
9964         * tests/test-gc-sha1.c: Likewise.
9965         * tests/test-gc.c: Likewise.
9966         * tests/test-getcwd.c: Likewise.
9967         * tests/test-link.c: Likewise.
9968         * tests/test-link.h: Likewise.
9969         * tests/test-lutimens.h: Likewise.
9970         * tests/test-md2.c: Likewise.
9971         * tests/test-md4.c: Likewise.
9972         * tests/test-mkdir.h: Likewise.
9973         * tests/test-rename.c: Likewise.
9974         * tests/test-rename.h: Likewise.
9975         * tests/test-safe-alloc.c: Likewise.
9976         * tests/test-utimens-common.h: Likewise.
9977         * tests/test-utimens.h: Likewise.
9978
9979         maint: sync license texts
9980         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
9981         * doc/gpl-3.0.texi: Revert copyright year update.
9982         * doc/lgpl-3.0.texi: Likewise.
9983
9984 2009-12-29  Jim Meyering  <meyering@redhat.com>
9985
9986         update nearly all FSF copyright year lists to include 2009
9987         The files named by the following are exempted:
9988             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
9989               test -f "$dst" && { echo "$dst"; continue; }
9990               test -d "$dst" || continue
9991               echo "$dst"/$(basename "$src")
9992             done > exempt
9993             git ls-files tests/unictype >> exempt
9994         In the remaining files, convert to all-interval notation if
9995         - there is already at least one year interval like 2000-2003
9996         - the file is maintained by me
9997         - the file is in lib/uni*/, where that style already prevails
9998         Otherwise, use update-copyright's default.
9999
10000 2009-12-29  Simon Josefsson  <simon@josefsson.org>
10001         and Eric Blake  <ebb9@byu.net>
10002
10003         tests: don't require debug system() to pass
10004         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
10005         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10006         * tests/test-unlink.h (test_unlink_func): Likewise.
10007         * tests/test-fstatat.c (main): ...into callers.
10008         * tests/test-lstat.c (main): Likewise.
10009         * tests/test-rmdir.c (main): Likewise.
10010         * tests/test-unlink.c (main): Likewise.
10011         * tests/test-unlinkat.c (main): Likewise.
10012         * tests/test-areadlink-with-size.c (main): Don't require a
10013         debug-only system call to pass, aiding cross-testing to mingw.
10014         * tests/test-areadlink.c (main): Likewise.
10015         * tests/test-areadlinkat-with-size.c (main): Likewise.
10016         * tests/test-areadlinkat.c (main): Likewise.
10017         * tests/test-canonicalize-lgpl.c (main): Likewise.
10018         * tests/test-canonicalize.c (main): Likewise.
10019         * tests/test-chown.c (main): Likewise.
10020         * tests/test-fchownat.c (main): Likewise.
10021         * tests/test-lchown.c (main): Likewise.
10022         * tests/test-fdutimensat.c (main): Likewise.
10023         * tests/test-futimens.c (main): Likewise.
10024         * tests/test-link.c (main): Likewise.
10025         * tests/test-linkat.c (main): Likewise.
10026         * tests/test-mkdir.c (main): Likewise.
10027         * tests/test-mkdirat.c (main): Likewise.
10028         * tests/test-mkfifo.c (main): Likewise.
10029         * tests/test-mkfifoat.c (main): Likewise.
10030         * tests/test-mknod.c (main): Likewise.
10031         * tests/test-readlink.c (main): Likewise.
10032         * tests/test-remove.c (main): Likewise.
10033         * tests/test-rename.c (main): Likewise.
10034         * tests/test-renameat.c (main): Likewise.
10035         * tests/test-symlink.c (main): Likewise.
10036         * tests/test-symlinkat.c (main): Likewise.
10037         * tests/test-utimens.c (main): Likewise.
10038         * tests/test-utimensat.c (main): Likewise.
10039
10040 2009-12-29  Simon Josefsson  <simon@josefsson.org>
10041
10042         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
10043         on $(UNUSED_PARAMETER_H) to avoid build failure.
10044
10045 2009-12-28  Jim Meyering  <meyering@redhat.com>
10046
10047         update-copyright: you may specify a max. line length other than 72
10048         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10049
10050         maint: use consistent FSF copyright line syntax
10051         * lib/posixtm.c: Add missing comma in FSF copyright line.
10052         * lib/posixtm.h: Likewise.
10053         * lib/getugroups.c: Add missing ", Inc.".
10054
10055         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
10056         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
10057         FSF copyright line.  Remove trailing blanks.
10058
10059 2009-12-28  Eric Blake  <ebb9@byu.net>
10060
10061         test-dup2: reduce dependencies
10062         * modules/cloexec (Configure.ac): Set witness.
10063         * modules/dup2-tests (Depends-on): Drop cloexec.
10064         * tests/test-dup2.c (main): Skip portion of test if cloexec module
10065         not present.
10066         Suggested by Bruno Haible.
10067
10068 2009-12-26  Bruno Haible  <bruno@clisp.org>
10069
10070         Remove an unneeded dependency.
10071         * modules/fseterr (Depends-on): Remove dup2.
10072
10073 2009-12-26  Eric Blake  <ebb9@byu.net>
10074
10075         tests: use macros.h in more places
10076         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
10077         (ASSERT_STREAM): Provide default of stderr.
10078         * tests/test-dirent-safer.c: Include macros.h, using alternate
10079         stream for assertions.
10080         * tests/test-dup-safer.c: Likewise.
10081         * tests/test-freopen-safer.c: Likewise.
10082         * tests/test-getopt.c: Likewise.
10083         * tests/test-openat-safer.c: Likewise.
10084         * tests/test-pipe.c: Likewise.
10085         * tests/test-popen-safer.c: Likewise.
10086         * modules/dirent-safer-tests (Files): Include macros.h.
10087         * modules/unistd-safer-tests (Files): Likewise.
10088         * modules/freopen-safer-tests (Files): Likewise.
10089         * modules/getopt-posix-tests (Files): Likewise.
10090         * modules/openat-safer-tests (Files): Likewise.
10091         * modules/pipe-tests (Files): Likewise.
10092
10093 2009-12-26  Bruno Haible  <bruno@clisp.org>
10094
10095         javacomp: Portability fix.
10096         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
10097         that it also works on Solaris.
10098
10099 2009-12-26  Bruno Haible  <bruno@clisp.org>
10100
10101         localename: Fix storage allocation of gl_locale_name_thread's result.
10102         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
10103         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
10104         all platforms that have 'uselocale'.
10105         (gl_locale_name_thread_unsafe): New function, extracted from
10106         gl_locale_name_thread.
10107         (gl_locale_name_thread): Call struniq on all platforms that have
10108         'uselocale'.
10109         * tests/test-localename.c (test_locale_name_thread): Check that the
10110         resulting strings are permanently allocated.
10111         * modules/localename-tests (Depends-on): Add strdup.
10112
10113 2009-12-26  Bruno Haible  <bruno@clisp.org>
10114
10115         * tests/test-localename.c (categories): Fill in the strings.
10116
10117 2009-12-26  Jim Meyering  <meyering@redhat.com>
10118
10119         isdir: complete the removal of m4/isdir.m4
10120         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
10121
10122         isdir: clean up, since at least grep still uses it
10123         * lib/isdir.c: Include "isdir.h".
10124         (S_ISDIR): Remove now-unneeded definition.
10125         * modules/isdir (Files): Add lib/isdir.h.
10126         * lib/isdir.h: New file, with declaration.
10127         * m4/isdir.m4: Remove file -- unneeded.
10128
10129 2009-12-25  Bruno Haible  <bruno@clisp.org>
10130
10131         selinux-h: Make generated .h files standalone.
10132         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
10133         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
10134         * lib/se-selinux.in.h: Likewise.
10135         * modules/selinux-h (Depends-on): Add unused-parameter.
10136         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
10137         selinux/selinux.h and selinux/context.h.
10138         Suggested by Eric Blake.
10139
10140 2009-12-25  Bruno Haible  <bruno@clisp.org>
10141
10142         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
10143         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
10144         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
10145         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
10146         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
10147
10148 2009-12-24  Bruno Haible  <bruno@clisp.org>
10149
10150         openat: Fix warning.
10151         * lib/openat-proc.c: Include <unistd.h>.
10152
10153 2009-12-24  Bruno Haible  <bruno@clisp.org>
10154
10155         New module 'unused-parameter'.
10156         * build-aux/unused-parameter.h: New file, extracted from earlier
10157         gnulib-common.m4.
10158         * modules/unused-parameter: New file.
10159         * lib/unistr.h: Include unused-parameter.h.
10160         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10161         _GL_UNUSED.
10162         * modules/unistr/base (Depends-on): Add unused-parameter.
10163
10164 2009-12-24  Bruno Haible  <bruno@clisp.org>
10165
10166         Add missing dependencies to 'extensions' module.
10167         * m4/extensions.m4: Add comment.
10168         * modules/accept4 (Depends-on): Add extensions.
10169         * modules/dup3 (Depends-on): Likewise.
10170         * modules/fcntl (Depends-on): Likewise.
10171         * modules/futimens (Depends-on): Likewise.
10172         * modules/mknod (Depends-on): Likewise.
10173         * modules/pipe2 (Depends-on): Likewise.
10174         * modules/stat-time (Depends-on): Likewise.
10175         * modules/strcasestr-simple (Depends-on): Likewise.
10176         * modules/strsignal (Depends-on): Likewise.
10177         * modules/utimensat (Depends-on): Likewise.
10178         * modules/localcharset (Depends-on): Likewise. Needed because of
10179         gl_FCNTL_O_FLAGS.
10180         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10181         AC_TYPE_MBSTATE_T.
10182         * modules/wcsnrtombs (Depends-on): Likewise.
10183         * modules/wcsrtombs (Depends-on): Likewise.
10184
10185 2009-12-24  Bruno Haible  <bruno@clisp.org>
10186
10187         binary-io: Avoid gcc warning due to SET_BINARY.
10188         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10189         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10190
10191 2009-12-24  Bruno Haible  <bruno@clisp.org>
10192
10193         Avoid future namespace pollution on glibc systems.
10194         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10195         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10196         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10197         glibc systems.
10198
10199 2009-12-24  Bruno Haible  <bruno@clisp.org>
10200
10201         Refactor common macros used in tests.
10202         * tests/macros.h: New file.
10203         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10204         and/or <stdlib.h>, if appropriate.
10205         (ASSERT, SIZEOF): Remove macros.
10206         * tests/test-areadlink-with-size.c: Likewise.
10207         * tests/test-areadlinkat.c: Likewise.
10208         * tests/test-areadlinkat-with-size.c: Likewise.
10209         * tests/test-argmatch.c: Likewise.
10210         * tests/test-argv-iter.c: Likewise.
10211         * tests/test-array-mergesort.c: Likewise.
10212         * tests/test-array_list.c: Likewise.
10213         * tests/test-array_oset.c: Likewise.
10214         * tests/test-avltree_list.c: Likewise.
10215         * tests/test-avltree_oset.c: Likewise.
10216         * tests/test-avltreehash_list.c: Likewise.
10217         * tests/test-base64.c: Likewise.
10218         * tests/test-binary-io.c: Likewise.
10219         * tests/test-bitrotate.c: Likewise.
10220         * tests/test-btowc.c: Likewise.
10221         * tests/test-byteswap.c: Likewise.
10222         * tests/test-c-ctype.c: Likewise.
10223         * tests/test-c-stack.c: Likewise.
10224         * tests/test-c-strcasecmp.c: Likewise.
10225         * tests/test-c-strcasestr.c: Likewise.
10226         * tests/test-c-strncasecmp.c: Likewise.
10227         * tests/test-c-strstr.c: Likewise.
10228         * tests/test-canonicalize-lgpl.c: Likewise.
10229         * tests/test-canonicalize.c: Likewise.
10230         * tests/test-carray_list.c: Likewise.
10231         * tests/test-ceilf1.c: Likewise.
10232         * tests/test-ceilf2.c: Likewise.
10233         * tests/test-ceill.c: Likewise.
10234         * tests/test-chown.c: Likewise.
10235         * tests/test-cloexec.c: Likewise.
10236         * tests/test-copy-acl.c: Likewise.
10237         * tests/test-copy-file.c: Likewise.
10238         * tests/test-count-one-bits.c: Likewise.
10239         * tests/test-dprintf-posix.c: Likewise.
10240         * tests/test-dup2.c: Likewise.
10241         * tests/test-dup3.c: Likewise.
10242         * tests/test-duplocale.c: Likewise.
10243         * tests/test-fbufmode.c: Likewise.
10244         * tests/test-fchdir.c: Likewise.
10245         * tests/test-fchownat.c: Likewise.
10246         * tests/test-fcntl-safer.c: Likewise.
10247         * tests/test-fcntl.c: Likewise.
10248         * tests/test-fdopendir.c: Likewise.
10249         * tests/test-fdutimensat.c: Likewise.
10250         * tests/test-fflush2.c: Likewise.
10251         * tests/test-file-has-acl.c: Likewise.
10252         * tests/test-filevercmp.c: Likewise.
10253         * tests/test-flock.c: Likewise.
10254         * tests/test-floorf1.c: Likewise.
10255         * tests/test-floorf2.c: Likewise.
10256         * tests/test-floorl.c: Likewise.
10257         * tests/test-fnmatch.c: Likewise.
10258         * tests/test-fopen.h: Likewise.
10259         * tests/test-fpending.c: Likewise.
10260         * tests/test-fprintf-posix.c: Likewise.
10261         * tests/test-fpurge.c: Likewise.
10262         * tests/test-freadable.c: Likewise.
10263         * tests/test-freadahead.c: Likewise.
10264         * tests/test-freading.c: Likewise.
10265         * tests/test-freadptr.c: Likewise.
10266         * tests/test-freadptr2.c: Likewise.
10267         * tests/test-freadseek.c: Likewise.
10268         * tests/test-freopen.c: Likewise.
10269         * tests/test-frexp.c: Likewise.
10270         * tests/test-frexpl.c: Likewise.
10271         * tests/test-fseek.c: Likewise.
10272         * tests/test-fseeko.c: Likewise.
10273         * tests/test-fstatat.c: Likewise.
10274         * tests/test-fstrcmp.c: Likewise.
10275         * tests/test-fsync.c: Likewise.
10276         * tests/test-ftell.c: Likewise.
10277         * tests/test-ftello.c: Likewise.
10278         * tests/test-func.c: Likewise.
10279         * tests/test-futimens.c: Likewise.
10280         * tests/test-fwritable.c: Likewise.
10281         * tests/test-fwriting.c: Likewise.
10282         * tests/test-getcwd.c: Likewise.
10283         * tests/test-getdate.c: Likewise.
10284         * tests/test-getdelim.c: Likewise.
10285         * tests/test-getdtablesize.c: Likewise.
10286         * tests/test-getgroups.c: Likewise.
10287         * tests/test-getline.c: Likewise.
10288         * tests/test-getndelim2.c: Likewise.
10289         * tests/test-glob.c: Likewise.
10290         * tests/test-hash.c: Likewise.
10291         * tests/test-i-ring.c: Likewise.
10292         * tests/test-iconv-utf.c: Likewise.
10293         * tests/test-iconv.c: Likewise.
10294         * tests/test-idpriv-drop.c: Likewise.
10295         * tests/test-idpriv-droptemp.c: Likewise.
10296         * tests/test-inet_ntop.c: Likewise.
10297         * tests/test-inet_pton.c: Likewise.
10298         * tests/test-isblank.c: Likewise.
10299         * tests/test-isfinite.c: Likewise.
10300         * tests/test-isinf.c: Likewise.
10301         * tests/test-isnan.c: Likewise.
10302         * tests/test-isnand.h: Likewise.
10303         * tests/test-isnanf.h: Likewise.
10304         * tests/test-isnanl.h: Likewise.
10305         * tests/test-lchown.c: Likewise.
10306         * tests/test-ldexpl.c: Likewise.
10307         * tests/test-link.c: Likewise.
10308         * tests/test-linkat.c: Likewise.
10309         * tests/test-linked_list.c: Likewise.
10310         * tests/test-linkedhash_list.c: Likewise.
10311         * tests/test-localename.c: Likewise.
10312         * tests/test-lseek.c: Likewise.
10313         * tests/test-lstat.c: Likewise.
10314         * tests/test-mbmemcasecmp.c: Likewise.
10315         * tests/test-mbmemcasecoll.c: Likewise.
10316         * tests/test-mbrtowc.c: Likewise.
10317         * tests/test-mbscasecmp.c: Likewise.
10318         * tests/test-mbscasestr1.c: Likewise.
10319         * tests/test-mbscasestr2.c: Likewise.
10320         * tests/test-mbscasestr3.c: Likewise.
10321         * tests/test-mbscasestr4.c: Likewise.
10322         * tests/test-mbschr.c: Likewise.
10323         * tests/test-mbscspn.c: Likewise.
10324         * tests/test-mbsinit.c: Likewise.
10325         * tests/test-mbsncasecmp.c: Likewise.
10326         * tests/test-mbsnrtowcs.c: Likewise.
10327         * tests/test-mbspbrk.c: Likewise.
10328         * tests/test-mbspcasecmp.c: Likewise.
10329         * tests/test-mbsrchr.c: Likewise.
10330         * tests/test-mbsrtowcs.c: Likewise.
10331         * tests/test-mbsspn.c: Likewise.
10332         * tests/test-mbsstr1.c: Likewise.
10333         * tests/test-mbsstr2.c: Likewise.
10334         * tests/test-mbsstr3.c: Likewise.
10335         * tests/test-memchr.c: Likewise.
10336         * tests/test-memchr2.c: Likewise.
10337         * tests/test-memcmp.c: Likewise.
10338         * tests/test-memmem.c: Likewise.
10339         * tests/test-memrchr.c: Likewise.
10340         * tests/test-mkdir.c: Likewise.
10341         * tests/test-mkdirat.c: Likewise.
10342         * tests/test-mkfifo.c: Likewise.
10343         * tests/test-mkfifoat.c: Likewise.
10344         * tests/test-mknod.c: Likewise.
10345         * tests/test-nanosleep.c: Likewise.
10346         * tests/test-nl_langinfo.c: Likewise.
10347         * tests/test-obstack-printf.c: Likewise.
10348         * tests/test-open.c: Likewise.
10349         * tests/test-openat.c: Likewise.
10350         * tests/test-pipe-filter-gi1.c: Likewise.
10351         * tests/test-pipe-filter-gi2-main.c: Likewise.
10352         * tests/test-pipe-filter-ii1.c: Likewise.
10353         * tests/test-pipe-filter-ii2-main.c: Likewise.
10354         * tests/test-pipe2.c: Likewise.
10355         * tests/test-popen.h: Likewise.
10356         * tests/test-posixtm.c: Likewise.
10357         * tests/test-pread.c: Likewise.
10358         * tests/test-printf-frexp.c: Likewise.
10359         * tests/test-printf-frexpl.c: Likewise.
10360         * tests/test-printf-posix.c: Likewise.
10361         * tests/test-priv-set.c: Likewise.
10362         * tests/test-quotearg.c: Likewise.
10363         * tests/test-random_r.c: Likewise.
10364         * tests/test-rawmemchr.c: Likewise.
10365         * tests/test-rbtree_list.c: Likewise.
10366         * tests/test-rbtree_oset.c: Likewise.
10367         * tests/test-rbtreehash_list.c: Likewise.
10368         * tests/test-readlink.c: Likewise.
10369         * tests/test-remove.c: Likewise.
10370         * tests/test-rename.c: Likewise.
10371         * tests/test-renameat.c: Likewise.
10372         * tests/test-rmdir.c: Likewise.
10373         * tests/test-round1.c: Likewise.
10374         * tests/test-roundf1.c: Likewise.
10375         * tests/test-roundl.c: Likewise.
10376         * tests/test-safe-alloc.c: Likewise.
10377         * tests/test-sameacls.c: Likewise.
10378         * tests/test-set-mode-acl.c: Likewise.
10379         * tests/test-setenv.c: Likewise.
10380         * tests/test-sigaction.c: Likewise.
10381         * tests/test-signbit.c: Likewise.
10382         * tests/test-sleep.c: Likewise.
10383         * tests/test-snprintf-posix.c: Likewise.
10384         * tests/test-snprintf.c: Likewise.
10385         * tests/test-sprintf-posix.c: Likewise.
10386         * tests/test-stat-time.c: Likewise.
10387         * tests/test-stat.c: Likewise.
10388         * tests/test-strcasestr.c: Likewise.
10389         * tests/test-strchrnul.c: Likewise.
10390         * tests/test-strerror.c: Likewise.
10391         * tests/test-striconv.c: Likewise.
10392         * tests/test-striconveh.c: Likewise.
10393         * tests/test-striconveha.c: Likewise.
10394         * tests/test-strsignal.c: Likewise.
10395         * tests/test-strstr.c: Likewise.
10396         * tests/test-strtod.c: Likewise.
10397         * tests/test-strverscmp.c: Likewise.
10398         * tests/test-symlink.c: Likewise.
10399         * tests/test-symlinkat.c: Likewise.
10400         * tests/test-trunc1.c: Likewise.
10401         * tests/test-trunc2.c: Likewise.
10402         * tests/test-truncf1.c: Likewise.
10403         * tests/test-truncf2.c: Likewise.
10404         * tests/test-truncl.c: Likewise.
10405         * tests/test-uname.c: Likewise.
10406         * tests/test-unlink.c: Likewise.
10407         * tests/test-unlinkat.c: Likewise.
10408         * tests/test-unsetenv.c: Likewise.
10409         * tests/test-usleep.c: Likewise.
10410         * tests/test-utimens.c: Likewise.
10411         * tests/test-utimensat.c: Likewise.
10412         * tests/test-vasnprintf-posix.c: Likewise.
10413         * tests/test-vasnprintf-posix2.c: Likewise.
10414         * tests/test-vasnprintf.c: Likewise.
10415         * tests/test-vasprintf-posix.c: Likewise.
10416         * tests/test-vasprintf.c: Likewise.
10417         * tests/test-vdprintf-posix.c: Likewise.
10418         * tests/test-vfprintf-posix.c: Likewise.
10419         * tests/test-vprintf-posix.c: Likewise.
10420         * tests/test-vsnprintf-posix.c: Likewise.
10421         * tests/test-vsnprintf.c: Likewise.
10422         * tests/test-vsprintf-posix.c: Likewise.
10423         * tests/test-wcrtomb.c: Likewise.
10424         * tests/test-wcsnrtombs.c: Likewise.
10425         * tests/test-wcsrtombs.c: Likewise.
10426         * tests/test-wctype.c: Likewise.
10427         * tests/test-wcwidth.c: Likewise.
10428         * tests/test-xfprintf-posix.c: Likewise.
10429         * tests/test-xmemdup0.c: Likewise.
10430         * tests/test-xprintf-posix.c: Likewise.
10431         * tests/test-xvasprintf.c: Likewise.
10432         * tests/unicase/test-locale-language.c: Likewise.
10433         * tests/unicase/test-mapping-part1.h: Likewise.
10434         * tests/unicase/test-predicate-part1.h: Likewise.
10435         * tests/unicase/test-u8-casecmp.c: Likewise.
10436         * tests/unicase/test-u8-casecoll.c: Likewise.
10437         * tests/unicase/test-u8-casefold.c: Likewise.
10438         * tests/unicase/test-u8-is-cased.c: Likewise.
10439         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10440         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10441         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10442         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10443         * tests/unicase/test-u8-tolower.c: Likewise.
10444         * tests/unicase/test-u8-totitle.c: Likewise.
10445         * tests/unicase/test-u8-toupper.c: Likewise.
10446         * tests/unicase/test-u16-casecmp.c: Likewise.
10447         * tests/unicase/test-u16-casecoll.c: Likewise.
10448         * tests/unicase/test-u16-casefold.c: Likewise.
10449         * tests/unicase/test-u16-is-cased.c: Likewise.
10450         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10451         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10452         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10453         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10454         * tests/unicase/test-u16-tolower.c: Likewise.
10455         * tests/unicase/test-u16-totitle.c: Likewise.
10456         * tests/unicase/test-u16-toupper.c: Likewise.
10457         * tests/unicase/test-u32-casecmp.c: Likewise.
10458         * tests/unicase/test-u32-casecoll.c: Likewise.
10459         * tests/unicase/test-u32-casefold.c: Likewise.
10460         * tests/unicase/test-u32-is-cased.c: Likewise.
10461         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10462         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10463         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10464         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10465         * tests/unicase/test-u32-tolower.c: Likewise.
10466         * tests/unicase/test-u32-totitle.c: Likewise.
10467         * tests/unicase/test-u32-toupper.c: Likewise.
10468         * tests/unicase/test-ulc-casecmp.c: Likewise.
10469         * tests/unicase/test-ulc-casecoll.c: Likewise.
10470         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10471         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10472         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10473         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10474         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10475         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10476         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10477         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10478         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10479         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10480         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10481         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10482         * tests/unictype/test-bidi_byname.c: Likewise.
10483         * tests/unictype/test-bidi_name.c: Likewise.
10484         * tests/unictype/test-bidi_of.c: Likewise.
10485         * tests/unictype/test-bidi_test.c: Likewise.
10486         * tests/unictype/test-block_list.c: Likewise.
10487         * tests/unictype/test-block_of.c: Likewise.
10488         * tests/unictype/test-block_test.c: Likewise.
10489         * tests/unictype/test-categ_and.c: Likewise.
10490         * tests/unictype/test-categ_and_not.c: Likewise.
10491         * tests/unictype/test-categ_byname.c: Likewise.
10492         * tests/unictype/test-categ_name.c: Likewise.
10493         * tests/unictype/test-categ_none.c: Likewise.
10494         * tests/unictype/test-categ_of.c: Likewise.
10495         * tests/unictype/test-categ_or.c: Likewise.
10496         * tests/unictype/test-categ_test_withtable.c: Likewise.
10497         * tests/unictype/test-combining.c: Likewise.
10498         * tests/unictype/test-decdigit.c: Likewise.
10499         * tests/unictype/test-digit.c: Likewise.
10500         * tests/unictype/test-mirror.c: Likewise.
10501         * tests/unictype/test-numeric.c: Likewise.
10502         * tests/unictype/test-pr_byname.c: Likewise.
10503         * tests/unictype/test-pr_test.c: Likewise.
10504         * tests/unictype/test-predicate-part1.h: Likewise.
10505         * tests/unictype/test-scripts.c: Likewise.
10506         * tests/unictype/test-sy_c_ident.c: Likewise.
10507         * tests/unictype/test-sy_java_ident.c: Likewise.
10508         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10509         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10510         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10511         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10512         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10513         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10514         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10515         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10516         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10517         * tests/uninorm/test-compat-decomposition.c: Likewise.
10518         * tests/uninorm/test-composition.c: Likewise.
10519         * tests/uninorm/test-decomposing-form.c: Likewise.
10520         * tests/uninorm/test-decomposition.c: Likewise.
10521         * tests/uninorm/test-u8-nfc.c: Likewise.
10522         * tests/uninorm/test-u8-nfd.c: Likewise.
10523         * tests/uninorm/test-u8-nfkc.c: Likewise.
10524         * tests/uninorm/test-u8-nfkd.c: Likewise.
10525         * tests/uninorm/test-u8-normcmp.c: Likewise.
10526         * tests/uninorm/test-u8-normcoll.c: Likewise.
10527         * tests/uninorm/test-u16-nfc.c: Likewise.
10528         * tests/uninorm/test-u16-nfd.c: Likewise.
10529         * tests/uninorm/test-u16-nfkc.c: Likewise.
10530         * tests/uninorm/test-u16-nfkd.c: Likewise.
10531         * tests/uninorm/test-u16-normcmp.c: Likewise.
10532         * tests/uninorm/test-u16-normcoll.c: Likewise.
10533         * tests/uninorm/test-u32-nfc.c: Likewise.
10534         * tests/uninorm/test-u32-nfd.c: Likewise.
10535         * tests/uninorm/test-u32-nfkc.c: Likewise.
10536         * tests/uninorm/test-u32-nfkd.c: Likewise.
10537         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10538         * tests/uninorm/test-u32-normcmp.c: Likewise.
10539         * tests/uninorm/test-u32-normcoll.c: Likewise.
10540         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10541         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10542         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10543         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10544         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10545         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10546         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10547         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10548         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10549         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10550         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10551         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10552         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10553         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10554         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10555         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10556         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10557         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10558         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10559         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10560         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10561         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10562         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10563         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10564         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10565         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10566         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10567         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10568         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10569         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10570         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10571         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10572         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10573         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10574         * tests/uniwidth/test-u8-width.c: Likewise.
10575         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10576         * tests/uniwidth/test-u16-width.c: Likewise.
10577         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10578         * tests/uniwidth/test-u32-width.c: Likewise.
10579         * tests/uniwidth/test-uc_width.c: Likewise.
10580         * tests/uniwidth/test-uc_width2.c: Likewise.
10581         * modules/acl-tests (Files): Add tests/macros.h.
10582         * modules/areadlink-tests (Files): Likewise.
10583         * modules/areadlink-with-size-tests (Files): Likewise.
10584         * modules/areadlinkat-tests (Files): Likewise.
10585         * modules/areadlinkat-with-size-tests (Files): Likewise.
10586         * modules/argmatch-tests (Files): Likewise.
10587         * modules/argv-iter-tests (Files): Likewise.
10588         * modules/array-list-tests (Files): Likewise.
10589         * modules/array-mergesort-tests (Files): Likewise.
10590         * modules/array-oset-tests (Files): Likewise.
10591         * modules/avltree-list-tests (Files): Likewise.
10592         * modules/avltree-oset-tests (Files): Likewise.
10593         * modules/avltreehash-list-tests (Files): Likewise.
10594         * modules/base64-tests (Files): Likewise.
10595         * modules/binary-io-tests (Files): Likewise.
10596         * modules/bitrotate-tests (Files): Likewise.
10597         * modules/btowc-tests (Files): Likewise.
10598         * modules/byteswap-tests (Files): Likewise.
10599         * modules/c-ctype-tests (Files): Likewise.
10600         * modules/c-stack-tests (Files): Likewise.
10601         * modules/c-strcase-tests (Files): Likewise.
10602         * modules/c-strcasestr-tests (Files): Likewise.
10603         * modules/c-strstr-tests (Files): Likewise.
10604         * modules/canonicalize-lgpl-tests (Files): Likewise.
10605         * modules/canonicalize-tests (Files): Likewise.
10606         * modules/carray-list-tests (Files): Likewise.
10607         * modules/ceilf-tests (Files): Likewise.
10608         * modules/ceill-tests (Files): Likewise.
10609         * modules/chown-tests (Files): Likewise.
10610         * modules/cloexec-tests (Files): Likewise.
10611         * modules/copy-file-tests (Files): Likewise.
10612         * modules/count-one-bits-tests (Files): Likewise.
10613         * modules/dprintf-posix-tests (Files): Likewise.
10614         * modules/dup2-tests (Files): Likewise.
10615         * modules/dup3-tests (Files): Likewise.
10616         * modules/duplocale-tests (Files): Likewise.
10617         * modules/fbufmode-tests (Files): Likewise.
10618         * modules/fchdir-tests (Files): Likewise.
10619         * modules/fcntl-safer-tests (Files): Likewise.
10620         * modules/fcntl-tests (Files): Likewise.
10621         * modules/fdopendir-tests (Files): Likewise.
10622         * modules/fdutimensat-tests (Files): Likewise.
10623         * modules/fflush-tests (Files): Likewise.
10624         * modules/filevercmp-tests (Files): Likewise.
10625         * modules/flock-tests (Files): Likewise.
10626         * modules/floorf-tests (Files): Likewise.
10627         * modules/floorl-tests (Files): Likewise.
10628         * modules/fnmatch-tests (Files): Likewise.
10629         * modules/fopen-safer-tests (Files): Likewise.
10630         * modules/fopen-tests (Files): Likewise.
10631         * modules/fpending-tests (Files): Likewise.
10632         * modules/fprintf-posix-tests (Files): Likewise.
10633         * modules/fpurge-tests (Files): Likewise.
10634         * modules/freadable-tests (Files): Likewise.
10635         * modules/freadahead-tests (Files): Likewise.
10636         * modules/freading-tests (Files): Likewise.
10637         * modules/freadptr-tests (Files): Likewise.
10638         * modules/freadseek-tests (Files): Likewise.
10639         * modules/freopen-tests (Files): Likewise.
10640         * modules/frexp-nolibm-tests (Files): Likewise.
10641         * modules/frexp-tests (Files): Likewise.
10642         * modules/frexpl-nolibm-tests (Files): Likewise.
10643         * modules/frexpl-tests (Files): Likewise.
10644         * modules/fseek-tests (Files): Likewise.
10645         * modules/fseeko-tests (Files): Likewise.
10646         * modules/fstrcmp-tests (Files): Likewise.
10647         * modules/fsync-tests (Files): Likewise.
10648         * modules/ftell-tests (Files): Likewise.
10649         * modules/ftello-tests (Files): Likewise.
10650         * modules/func-tests (Files): Likewise.
10651         * modules/futimens-tests (Files): Likewise.
10652         * modules/fwritable-tests (Files): Likewise.
10653         * modules/fwriting-tests (Files): Likewise.
10654         * modules/getcwd-tests (Files): Likewise.
10655         * modules/getdate-tests (Files): Likewise.
10656         * modules/getdelim-tests (Files): Likewise.
10657         * modules/getdtablesize-tests (Files): Likewise.
10658         * modules/getgroups-tests (Files): Likewise.
10659         * modules/getline-tests (Files): Likewise.
10660         * modules/getndelim2-tests (Files): Likewise.
10661         * modules/glob-tests (Files): Likewise.
10662         * modules/hash-tests (Files): Likewise.
10663         * modules/i-ring-tests (Files): Likewise.
10664         * modules/iconv-tests (Files): Likewise.
10665         * modules/iconv_open-utf-tests (Files): Likewise.
10666         * modules/idpriv-drop-tests (Files): Likewise.
10667         * modules/idpriv-droptemp-tests (Files): Likewise.
10668         * modules/inet_ntop-tests (Files): Likewise.
10669         * modules/inet_pton-tests (Files): Likewise.
10670         * modules/isblank-tests (Files): Likewise.
10671         * modules/isfinite-tests (Files): Likewise.
10672         * modules/isinf-tests (Files): Likewise.
10673         * modules/isnan-tests (Files): Likewise.
10674         * modules/isnand-nolibm-tests (Files): Likewise.
10675         * modules/isnand-tests (Files): Likewise.
10676         * modules/isnanf-nolibm-tests (Files): Likewise.
10677         * modules/isnanf-tests (Files): Likewise.
10678         * modules/isnanl-nolibm-tests (Files): Likewise.
10679         * modules/isnanl-tests (Files): Likewise.
10680         * modules/lchown-tests (Files): Likewise.
10681         * modules/ldexpl-tests (Files): Likewise.
10682         * modules/link-tests (Files): Likewise.
10683         * modules/linkat-tests (Files): Likewise.
10684         * modules/linked-list-tests (Files): Likewise.
10685         * modules/linkedhash-list-tests (Files): Likewise.
10686         * modules/localename-tests (Files): Likewise.
10687         * modules/lseek-tests (Files): Likewise.
10688         * modules/lstat-tests (Files): Likewise.
10689         * modules/mbmemcasecmp-tests (Files): Likewise.
10690         * modules/mbmemcasecoll-tests (Files): Likewise.
10691         * modules/mbrtowc-tests (Files): Likewise.
10692         * modules/mbscasecmp-tests (Files): Likewise.
10693         * modules/mbscasestr-tests (Files): Likewise.
10694         * modules/mbschr-tests (Files): Likewise.
10695         * modules/mbscspn-tests (Files): Likewise.
10696         * modules/mbsinit-tests (Files): Likewise.
10697         * modules/mbsncasecmp-tests (Files): Likewise.
10698         * modules/mbsnrtowcs-tests (Files): Likewise.
10699         * modules/mbspbrk-tests (Files): Likewise.
10700         * modules/mbspcasecmp-tests (Files): Likewise.
10701         * modules/mbsrchr-tests (Files): Likewise.
10702         * modules/mbsrtowcs-tests (Files): Likewise.
10703         * modules/mbsspn-tests (Files): Likewise.
10704         * modules/mbsstr-tests (Files): Likewise.
10705         * modules/memchr-tests (Files): Likewise.
10706         * modules/memchr2-tests (Files): Likewise.
10707         * modules/memcmp-tests (Files): Likewise.
10708         * modules/memmem-tests (Files): Likewise.
10709         * modules/memrchr-tests (Files): Likewise.
10710         * modules/mkdir-tests (Files): Likewise.
10711         * modules/mkfifo-tests (Files): Likewise.
10712         * modules/mkfifoat-tests (Files): Likewise.
10713         * modules/mknod-tests (Files): Likewise.
10714         * modules/nanosleep-tests (Files): Likewise.
10715         * modules/nl_langinfo-tests (Files): Likewise.
10716         * modules/obstack-printf-tests (Files): Likewise.
10717         * modules/open-tests (Files): Likewise.
10718         * modules/openat-tests (Files): Likewise.
10719         * modules/pipe-filter-gi-tests (Files): Likewise.
10720         * modules/pipe-filter-ii-tests (Files): Likewise.
10721         * modules/pipe2-tests (Files): Likewise.
10722         * modules/popen-safer-tests (Files): Likewise.
10723         * modules/popen-tests (Files): Likewise.
10724         * modules/posixtm-tests (Files): Likewise.
10725         * modules/pread-tests (Files): Likewise.
10726         * modules/printf-frexp-tests (Files): Likewise.
10727         * modules/printf-frexpl-tests (Files): Likewise.
10728         * modules/printf-posix-tests (Files): Likewise.
10729         * modules/priv-set-tests (Files): Likewise.
10730         * modules/quotearg-tests (Files): Likewise.
10731         * modules/random_r-tests (Files): Likewise.
10732         * modules/rawmemchr-tests (Files): Likewise.
10733         * modules/rbtree-list-tests (Files): Likewise.
10734         * modules/rbtree-oset-tests (Files): Likewise.
10735         * modules/rbtreehash-list-tests (Files): Likewise.
10736         * modules/readlink-tests (Files): Likewise.
10737         * modules/remove-tests (Files): Likewise.
10738         * modules/rename-tests (Files): Likewise.
10739         * modules/renameat-tests (Files): Likewise.
10740         * modules/rmdir-tests (Files): Likewise.
10741         * modules/round-tests (Files): Likewise.
10742         * modules/roundf-tests (Files): Likewise.
10743         * modules/roundl-tests (Files): Likewise.
10744         * modules/safe-alloc-tests (Files): Likewise.
10745         * modules/setenv-tests (Files): Likewise.
10746         * modules/sigaction-tests (Files): Likewise.
10747         * modules/signbit-tests (Files): Likewise.
10748         * modules/sleep-tests (Files): Likewise.
10749         * modules/snprintf-posix-tests (Files): Likewise.
10750         * modules/snprintf-tests (Files): Likewise.
10751         * modules/sprintf-posix-tests (Files): Likewise.
10752         * modules/stat-tests (Files): Likewise.
10753         * modules/stat-time-tests (Files): Likewise.
10754         * modules/strcasestr-tests (Files): Likewise.
10755         * modules/strchrnul-tests (Files): Likewise.
10756         * modules/strerror-tests (Files): Likewise.
10757         * modules/striconv-tests (Files): Likewise.
10758         * modules/striconveh-tests (Files): Likewise.
10759         * modules/striconveha-tests (Files): Likewise.
10760         * modules/strsignal-tests (Files): Likewise.
10761         * modules/strstr-tests (Files): Likewise.
10762         * modules/strtod-tests (Files): Likewise.
10763         * modules/strverscmp-tests (Files): Likewise.
10764         * modules/symlink-tests (Files): Likewise.
10765         * modules/symlinkat-tests (Files): Likewise.
10766         * modules/trunc-tests (Files): Likewise.
10767         * modules/truncf-tests (Files): Likewise.
10768         * modules/truncl-tests (Files): Likewise.
10769         * modules/uname-tests (Files): Likewise.
10770         * modules/unicase/cased-tests (Files): Likewise.
10771         * modules/unicase/ignorable-tests (Files): Likewise.
10772         * modules/unicase/locale-language-tests (Files): Likewise.
10773         * modules/unicase/tolower-tests (Files): Likewise.
10774         * modules/unicase/totitle-tests (Files): Likewise.
10775         * modules/unicase/toupper-tests (Files): Likewise.
10776         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10777         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10778         * modules/unicase/u8-casefold-tests (Files): Likewise.
10779         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10780         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10781         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10782         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10783         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10784         * modules/unicase/u8-tolower-tests (Files): Likewise.
10785         * modules/unicase/u8-totitle-tests (Files): Likewise.
10786         * modules/unicase/u8-toupper-tests (Files): Likewise.
10787         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10788         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10789         * modules/unicase/u16-casefold-tests (Files): Likewise.
10790         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10791         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10792         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10793         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10794         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10795         * modules/unicase/u16-tolower-tests (Files): Likewise.
10796         * modules/unicase/u16-totitle-tests (Files): Likewise.
10797         * modules/unicase/u16-toupper-tests (Files): Likewise.
10798         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10799         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10800         * modules/unicase/u32-casefold-tests (Files): Likewise.
10801         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10802         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10803         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10804         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10805         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10806         * modules/unicase/u32-tolower-tests (Files): Likewise.
10807         * modules/unicase/u32-totitle-tests (Files): Likewise.
10808         * modules/unicase/u32-toupper-tests (Files): Likewise.
10809         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10810         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10811         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10812         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10813         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10814         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10815         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10816         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10817         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10818         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10819         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10820         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10821         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10822         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10823         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10824         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10825         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10826         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10827         * modules/unictype/block-list-tests (Files): Likewise.
10828         * modules/unictype/block-of-tests (Files): Likewise.
10829         * modules/unictype/block-test-tests (Files): Likewise.
10830         * modules/unictype/category-C-tests (Files): Likewise.
10831         * modules/unictype/category-Cc-tests (Files): Likewise.
10832         * modules/unictype/category-Cf-tests (Files): Likewise.
10833         * modules/unictype/category-Cn-tests (Files): Likewise.
10834         * modules/unictype/category-Co-tests (Files): Likewise.
10835         * modules/unictype/category-Cs-tests (Files): Likewise.
10836         * modules/unictype/category-L-tests (Files): Likewise.
10837         * modules/unictype/category-Ll-tests (Files): Likewise.
10838         * modules/unictype/category-Lm-tests (Files): Likewise.
10839         * modules/unictype/category-Lo-tests (Files): Likewise.
10840         * modules/unictype/category-Lt-tests (Files): Likewise.
10841         * modules/unictype/category-Lu-tests (Files): Likewise.
10842         * modules/unictype/category-M-tests (Files): Likewise.
10843         * modules/unictype/category-Mc-tests (Files): Likewise.
10844         * modules/unictype/category-Me-tests (Files): Likewise.
10845         * modules/unictype/category-Mn-tests (Files): Likewise.
10846         * modules/unictype/category-N-tests (Files): Likewise.
10847         * modules/unictype/category-Nd-tests (Files): Likewise.
10848         * modules/unictype/category-Nl-tests (Files): Likewise.
10849         * modules/unictype/category-No-tests (Files): Likewise.
10850         * modules/unictype/category-P-tests (Files): Likewise.
10851         * modules/unictype/category-Pc-tests (Files): Likewise.
10852         * modules/unictype/category-Pd-tests (Files): Likewise.
10853         * modules/unictype/category-Pe-tests (Files): Likewise.
10854         * modules/unictype/category-Pf-tests (Files): Likewise.
10855         * modules/unictype/category-Pi-tests (Files): Likewise.
10856         * modules/unictype/category-Po-tests (Files): Likewise.
10857         * modules/unictype/category-Ps-tests (Files): Likewise.
10858         * modules/unictype/category-S-tests (Files): Likewise.
10859         * modules/unictype/category-Sc-tests (Files): Likewise.
10860         * modules/unictype/category-Sk-tests (Files): Likewise.
10861         * modules/unictype/category-Sm-tests (Files): Likewise.
10862         * modules/unictype/category-So-tests (Files): Likewise.
10863         * modules/unictype/category-Z-tests (Files): Likewise.
10864         * modules/unictype/category-Zl-tests (Files): Likewise.
10865         * modules/unictype/category-Zp-tests (Files): Likewise.
10866         * modules/unictype/category-Zs-tests (Files): Likewise.
10867         * modules/unictype/category-and-not-tests (Files): Likewise.
10868         * modules/unictype/category-and-tests (Files): Likewise.
10869         * modules/unictype/category-byname-tests (Files): Likewise.
10870         * modules/unictype/category-name-tests (Files): Likewise.
10871         * modules/unictype/category-none-tests (Files): Likewise.
10872         * modules/unictype/category-of-tests (Files): Likewise.
10873         * modules/unictype/category-or-tests (Files): Likewise.
10874         * modules/unictype/category-test-withtable-tests (Files): Likewise.
10875         * modules/unictype/combining-class-tests (Files): Likewise.
10876         * modules/unictype/ctype-alnum-tests (Files): Likewise.
10877         * modules/unictype/ctype-alpha-tests (Files): Likewise.
10878         * modules/unictype/ctype-blank-tests (Files): Likewise.
10879         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
10880         * modules/unictype/ctype-digit-tests (Files): Likewise.
10881         * modules/unictype/ctype-graph-tests (Files): Likewise.
10882         * modules/unictype/ctype-lower-tests (Files): Likewise.
10883         * modules/unictype/ctype-print-tests (Files): Likewise.
10884         * modules/unictype/ctype-punct-tests (Files): Likewise.
10885         * modules/unictype/ctype-space-tests (Files): Likewise.
10886         * modules/unictype/ctype-upper-tests (Files): Likewise.
10887         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
10888         * modules/unictype/decimal-digit-tests (Files): Likewise.
10889         * modules/unictype/digit-tests (Files): Likewise.
10890         * modules/unictype/mirror-tests (Files): Likewise.
10891         * modules/unictype/numeric-tests (Files): Likewise.
10892         * modules/unictype/property-alphabetic-tests (Files): Likewise.
10893         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
10894         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
10895         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
10896         Likewise.
10897         * modules/unictype/property-bidi-block-separator-tests (Files):
10898         Likewise.
10899         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
10900         Likewise.
10901         * modules/unictype/property-bidi-common-separator-tests (Files):
10902         Likewise.
10903         * modules/unictype/property-bidi-control-tests (Files): Likewise.
10904         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
10905         Likewise.
10906         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
10907         Likewise.
10908         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
10909         Likewise.
10910         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
10911         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
10912         Likewise.
10913         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
10914         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
10915         Likewise.
10916         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
10917         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
10918         * modules/unictype/property-bidi-segment-separator-tests (Files):
10919         Likewise.
10920         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
10921         * modules/unictype/property-byname-tests (Files): Likewise.
10922         * modules/unictype/property-combining-tests (Files): Likewise.
10923         * modules/unictype/property-composite-tests (Files): Likewise.
10924         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
10925         * modules/unictype/property-dash-tests (Files): Likewise.
10926         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
10927         * modules/unictype/property-default-ignorable-code-point-tests (Files):
10928         Likewise.
10929         * modules/unictype/property-deprecated-tests (Files): Likewise.
10930         * modules/unictype/property-diacritic-tests (Files): Likewise.
10931         * modules/unictype/property-extender-tests (Files): Likewise.
10932         * modules/unictype/property-format-control-tests (Files): Likewise.
10933         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
10934         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
10935         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
10936         * modules/unictype/property-hex-digit-tests (Files): Likewise.
10937         * modules/unictype/property-hyphen-tests (Files): Likewise.
10938         * modules/unictype/property-id-continue-tests (Files): Likewise.
10939         * modules/unictype/property-id-start-tests (Files): Likewise.
10940         * modules/unictype/property-ideographic-tests (Files): Likewise.
10941         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
10942         * modules/unictype/property-ids-trinary-operator-tests (Files):
10943         Likewise.
10944         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
10945         * modules/unictype/property-iso-control-tests (Files): Likewise.
10946         * modules/unictype/property-join-control-tests (Files): Likewise.
10947         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
10948         * modules/unictype/property-line-separator-tests (Files): Likewise.
10949         * modules/unictype/property-logical-order-exception-tests (Files):
10950         Likewise.
10951         * modules/unictype/property-lowercase-tests (Files): Likewise.
10952         * modules/unictype/property-math-tests (Files): Likewise.
10953         * modules/unictype/property-non-break-tests (Files): Likewise.
10954         * modules/unictype/property-not-a-character-tests (Files): Likewise.
10955         * modules/unictype/property-numeric-tests (Files): Likewise.
10956         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
10957         * modules/unictype/property-other-default-ignorable-code-point-tests
10958         (Files): Likewise.
10959         * modules/unictype/property-other-grapheme-extend-tests (Files):
10960         Likewise.
10961         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
10962         * modules/unictype/property-other-id-start-tests (Files): Likewise.
10963         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
10964         * modules/unictype/property-other-math-tests (Files): Likewise.
10965         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
10966         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
10967         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
10968         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
10969         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
10970         * modules/unictype/property-private-use-tests (Files): Likewise.
10971         * modules/unictype/property-punctuation-tests (Files): Likewise.
10972         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
10973         * modules/unictype/property-radical-tests (Files): Likewise.
10974         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
10975         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
10976         * modules/unictype/property-space-tests (Files): Likewise.
10977         * modules/unictype/property-terminal-punctuation-tests (Files):
10978         Likewise.
10979         * modules/unictype/property-test-tests (Files): Likewise.
10980         * modules/unictype/property-titlecase-tests (Files): Likewise.
10981         * modules/unictype/property-unassigned-code-value-tests (Files):
10982         Likewise.
10983         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
10984         * modules/unictype/property-uppercase-tests (Files): Likewise.
10985         * modules/unictype/property-variation-selector-tests (Files): Likewise.
10986         * modules/unictype/property-white-space-tests (Files): Likewise.
10987         * modules/unictype/property-xid-continue-tests (Files): Likewise.
10988         * modules/unictype/property-xid-start-tests (Files): Likewise.
10989         * modules/unictype/property-zero-width-tests (Files): Likewise.
10990         * modules/unictype/scripts-tests (Files): Likewise.
10991         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
10992         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
10993         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
10994         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
10995         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
10996         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
10997         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
10998         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
10999         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
11000         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
11001         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
11002         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
11003         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
11004         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
11005         * modules/uninorm/composition-tests (Files): Likewise.
11006         * modules/uninorm/decomposing-form-tests (Files): Likewise.
11007         * modules/uninorm/decomposition-tests (Files): Likewise.
11008         * modules/uninorm/filter-tests (Files): Likewise.
11009         * modules/uninorm/nfc-tests (Files): Likewise.
11010         * modules/uninorm/nfd-tests (Files): Likewise.
11011         * modules/uninorm/nfkc-tests (Files): Likewise.
11012         * modules/uninorm/nfkd-tests (Files): Likewise.
11013         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
11014         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
11015         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
11016         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
11017         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
11018         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
11019         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
11020         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
11021         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
11022         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
11023         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
11024         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
11025         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
11026         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
11027         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
11028         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
11029         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
11030         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
11031         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
11032         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
11033         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
11034         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
11035         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
11036         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
11037         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
11038         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
11039         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
11040         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
11041         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
11042         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
11043         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
11044         * modules/uniwidth/u8-width-tests (Files): Likewise.
11045         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
11046         * modules/uniwidth/u16-width-tests (Files): Likewise.
11047         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
11048         * modules/uniwidth/u32-width-tests (Files): Likewise.
11049         * modules/uniwidth/width-tests (Files): Likewise.
11050         * modules/unlink-tests (Files): Likewise.
11051         * modules/unsetenv-tests (Files): Likewise.
11052         * modules/usleep-tests (Files): Likewise.
11053         * modules/utimens-tests (Files): Likewise.
11054         * modules/utimensat-tests (Files): Likewise.
11055         * modules/vasnprintf-posix-tests (Files): Likewise.
11056         * modules/vasnprintf-tests (Files): Likewise.
11057         * modules/vasprintf-posix-tests (Files): Likewise.
11058         * modules/vasprintf-tests (Files): Likewise.
11059         * modules/vdprintf-posix-tests (Files): Likewise.
11060         * modules/vfprintf-posix-tests (Files): Likewise.
11061         * modules/vprintf-posix-tests (Files): Likewise.
11062         * modules/vsnprintf-posix-tests (Files): Likewise.
11063         * modules/vsnprintf-tests (Files): Likewise.
11064         * modules/vsprintf-posix-tests (Files): Likewise.
11065         * modules/wcrtomb-tests (Files): Likewise.
11066         * modules/wcsnrtombs-tests (Files): Likewise.
11067         * modules/wcsrtombs-tests (Files): Likewise.
11068         * modules/wctype-tests (Files): Likewise.
11069         * modules/wcwidth-tests (Files): Likewise.
11070         * modules/xmemdup0-tests (Files): Likewise.
11071         * modules/xprintf-posix-tests (Files): Likewise.
11072         * modules/xvasprintf-tests (Files): Likewise.
11073
11074 2009-12-24  Eric Blake  <ebb9@byu.net>
11075
11076         test-nanosleep: fix typo
11077         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
11078         patch.
11079         Reported by Bruno Haible.
11080
11081 2009-12-24  Bruno Haible  <bruno@clisp.org>
11082
11083         Reduce namespace pollution on glibc systems.
11084         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
11085         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
11086         systems.
11087         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
11088         <getopt.h> on glibc systems.
11089         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
11090         systems.
11091         * lib/fcntl.c: Include <unistd.h> here instead.
11092
11093 2009-12-24  Bruno Haible  <bruno@clisp.org>
11094
11095         * lib/stdlib.in.h (includes): Fix typo in today's commit.
11096
11097 2009-12-24  Eric Blake  <ebb9@byu.net>
11098
11099         tests: add signature checks
11100         * tests/signature.h (SIGNATURE_CHECK): New file.
11101         * modules/atexit-tests (Files): Use it.
11102         * modules/btowc-tests (Files): Likewise.
11103         * modules/canonicalize-lgpl-tests (Files): Likewise.
11104         * modules/ceilf-tests (Files): Likewise.
11105         * modules/ceill-tests (Files): Likewise.
11106         * modules/chown-tests (Files): Likewise.
11107         * modules/dprintf-posix-tests (Files): Likewise.
11108         * modules/dup2-tests (Files): Likewise.
11109         * modules/dup3-tests (Files): Likewise.
11110         * modules/duplocale-tests (Files): Likewise.
11111         * modules/fchdir-tests (Files): Likewise.
11112         * modules/fcntl-tests (Files): Likewise.
11113         * modules/fdopendir-tests (Files): Likewise.
11114         * modules/fflush-tests (Files): Likewise.
11115         * modules/flock-tests (Files): Likewise.
11116         * modules/floorf-tests (Files): Likewise.
11117         * modules/floorl-tests (Files): Likewise.
11118         * modules/fnmatch-tests (Files): Likewise.
11119         * modules/fopen-tests (Files): Likewise.
11120         * modules/fprintf-posix-tests (Files): Likewise.
11121         * modules/freopen-tests (Files): Likewise.
11122         * modules/frexp-nolibm-tests (Files): Likewise.
11123         * modules/frexp-tests (Files): Likewise.
11124         * modules/frexpl-nolibm-tests (Files): Likewise.
11125         * modules/frexpl-tests (Files): Likewise.
11126         * modules/fseek-tests (Files): Likewise.
11127         * modules/fseeko-tests (Files): Likewise.
11128         * modules/fsync-tests (Files): Likewise.
11129         * modules/ftell-tests (Files): Likewise.
11130         * modules/ftello-tests (Files): Likewise.
11131         * modules/futimens-tests (Files): Likewise.
11132         * modules/getaddrinfo-tests (Files): Likewise.
11133         * modules/getcwd-tests (Files): Likewise.
11134         * modules/getdelim-tests (Files): Likewise.
11135         * modules/getdtablesize-tests (Files): Likewise.
11136         * modules/getgroups-tests (Files): Likewise.
11137         * modules/gethostname-tests (Files): Likewise.
11138         * modules/getline-tests (Files): Likewise.
11139         * modules/getopt-posix-tests (Files): Likewise.
11140         * modules/gettimeofday-tests (Files): Likewise.
11141         * modules/glob-tests (Files): Likewise.
11142         * modules/iconv-tests (Files): Likewise.
11143         * modules/inet_ntop-tests (Files): Likewise.
11144         * modules/inet_pton-tests (Files): Likewise.
11145         * modules/isblank-tests (Files): Likewise.
11146         * modules/lchown-tests (Files): Likewise.
11147         * modules/ldexpl-tests (Files): Likewise.
11148         * modules/link-tests (Files): Likewise.
11149         * modules/linkat-tests (Files): Likewise.
11150         * modules/lseek-tests (Files): Likewise.
11151         * modules/lstat-tests (Files): Likewise.
11152         * modules/mbrtowc-tests (Files): Likewise.
11153         * modules/mbsinit-tests (Files): Likewise.
11154         * modules/mbsnrtowcs-tests (Files): Likewise.
11155         * modules/mbsrtowcs-tests (Files): Likewise.
11156         * modules/memchr-tests (Files): Likewise.
11157         * modules/memcmp-tests (Files): Likewise.
11158         * modules/memmem-tests (Files): Likewise.
11159         * modules/memrchr-tests (Files): Likewise.
11160         * modules/mkdir-tests (Files): Likewise.
11161         * modules/mkfifo-tests (Files): Likewise.
11162         * modules/mkfifoat-tests (Files): Likewise.
11163         * modules/mknod-tests (Files): Likewise.
11164         * modules/nanosleep-tests (Files): Likewise.
11165         * modules/nl_langinfo-tests (Files): Likewise.
11166         * modules/obstack-printf-tests (Files): Likewise.
11167         * modules/open-tests (Files): Likewise.
11168         * modules/openat-tests (Files): Likewise.
11169         * modules/perror-tests (Files): Likewise.
11170         * modules/pipe2-tests (Files): Likewise.
11171         * modules/poll-tests (Files): Likewise.
11172         * modules/popen-tests (Files): Likewise.
11173         * modules/posix_spawn-tests (Files): Likewise.
11174         * modules/posix_spawnp-tests (Files): Likewise.
11175         * modules/pread-tests (Files): Likewise.
11176         * modules/printf-posix-tests (Files): Likewise.
11177         * modules/pty-tests (Files): Likewise.
11178         * modules/random_r-tests (Files): Likewise.
11179         * modules/rawmemchr-tests (Files): Likewise.
11180         * modules/readlink-tests (Files): Likewise.
11181         * modules/remove-tests (Files): Likewise.
11182         * modules/rename-tests (Files): Likewise.
11183         * modules/renameat-tests (Files): Likewise.
11184         * modules/rmdir-tests (Files): Likewise.
11185         * modules/round-tests (Files): Likewise.
11186         * modules/roundf-tests (Files): Likewise.
11187         * modules/roundl-tests (Files): Likewise.
11188         * modules/select-tests (Files): Likewise.
11189         * modules/setenv-tests (Files): Likewise.
11190         * modules/sigaction-tests (Files): Likewise.
11191         * modules/sleep-tests (Files): Likewise.
11192         * modules/snprintf-posix-tests (Files): Likewise.
11193         * modules/snprintf-tests (Files): Likewise.
11194         * modules/sprintf-posix-tests (Files): Likewise.
11195         * modules/stat-tests (Files): Likewise.
11196         * modules/strcasestr-tests (Files): Likewise.
11197         * modules/strchrnul-tests (Files): Likewise.
11198         * modules/strerror-tests (Files): Likewise.
11199         * modules/strsignal-tests (Files): Likewise.
11200         * modules/strstr-tests (Files): Likewise.
11201         * modules/strtod-tests (Files): Likewise.
11202         * modules/strverscmp-tests (Files): Likewise.
11203         * modules/symlink-tests (Files): Likewise.
11204         * modules/symlinkat-tests (Files): Likewise.
11205         * modules/times-tests (Files): Likewise.
11206         * modules/trunc-tests (Files): Likewise.
11207         * modules/truncf-tests (Files): Likewise.
11208         * modules/truncl-tests (Files): Likewise.
11209         * modules/tsearch-tests (Files): Likewise.
11210         * modules/uname-tests (Files): Likewise.
11211         * modules/unlink-tests (Files): Likewise.
11212         * modules/unsetenv-tests (Files): Likewise.
11213         * modules/usleep-tests (Files): Likewise.
11214         * modules/utimensat-tests (Files): Likewise.
11215         * modules/vasprintf-tests (Files): Likewise.
11216         * modules/vdprintf-posix-tests (Files): Likewise.
11217         * modules/vfprintf-posix-tests (Files): Likewise.
11218         * modules/vprintf-posix-tests (Files): Likewise.
11219         * modules/vsnprintf-posix-tests (Files): Likewise.
11220         * modules/vsnprintf-tests (Files): Likewise.
11221         * modules/vsprintf-posix-tests (Files): Likewise.
11222         * modules/wcrtomb-tests (Files): Likewise.
11223         * modules/wcsnrtombs-tests (Files): Likewise.
11224         * modules/wcsrtombs-tests (Files): Likewise.
11225         * modules/wcwidth-tests (Files): Likewise.
11226         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11227         * tests/test-isinf.c (isinf): Likewise.
11228         * tests/test-isnan.c (isnan): Likewise.
11229         * tests/test-signbit.c (signbit): Likewise.
11230         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11231         declaration, either as macro or with correct signature.
11232         (select): Ensure function under test is declared with correct
11233         signature in correct header.
11234         * tests/test-atexit.c (atexit): Likewise.
11235         * tests/test-btowc.c (btowc): Likewise.
11236         * tests/test-canonicalize-lgpl.c (realpath)
11237         (canonicalize_file_name): Likewise.
11238         * tests/test-ceilf1.c (ceilf): Likewise.
11239         * tests/test-ceill.c (ceill): Likewise.
11240         * tests/test-chown.c (chown): Likewise.
11241         * tests/test-dprintf-posix.c (dprintf): Likewise.
11242         * tests/test-dup2.c (dup2): Likewise.
11243         * tests/test-dup3.c (dup3): Likewise.
11244         * tests/test-duplocale.c (duplocale): Likewise.
11245         * tests/test-fchdir.c (fchdir): Likewise.
11246         * tests/test-fchownat.c (fchownat): Likewise.
11247         * tests/test-fcntl.c (fcntl): Likewise.
11248         * tests/test-fdopendir.c (fdopendir): Likewise.
11249         * tests/test-fflush.c (fflush): Likewise.
11250         * tests/test-flock.c (flock): Likewise.
11251         * tests/test-floorf1.c (floorf): Likewise.
11252         * tests/test-floorl.c (floorl): Likewise.
11253         * tests/test-fnmatch.c (fnmatch): Likewise.
11254         * tests/test-fopen.c (fopen): Likewise.
11255         * tests/test-fprintf-posix.c (fprintf): Likewise.
11256         * tests/test-freopen.c (freopen): Likewise.
11257         * tests/test-frexp.c (frexp): Likewise.
11258         * tests/test-frexpl.c (frexpl): Likewise.
11259         * tests/test-fseek.c (fseek): Likewise.
11260         * tests/test-fseeko.c (fseeko): Likewise.
11261         * tests/test-fstatat.c (fstatat): Likewise.
11262         * tests/test-fsync.c (fsync): Likewise.
11263         * tests/test-ftell.c (ftell): Likewise.
11264         * tests/test-ftello.c (ftello): Likewise.
11265         * tests/test-futimens.c (futimens): Likewise.
11266         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11267         (gai_strerror): Likewise.
11268         * tests/test-getcwd.c (getcwd): Likewise.
11269         * tests/test-getdelim.c (getdelim): Likewise.
11270         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11271         * tests/test-getgroups.c (getgroups): Likewise.
11272         * tests/test-gethostname.c (gethostname): Likewise.
11273         * tests/test-getline.c (getline): Likewise.
11274         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11275         Likewise.
11276         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11277         * tests/test-glob.c (glob, globfree): Likewise.
11278         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11279         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11280         * tests/test-inet_pton.c (inet_pton): Likewise.
11281         * tests/test-isblank.c (isblank): Likewise.
11282         * tests/test-lchown.c (lchown): Likewise.
11283         * tests/test-ldexpl.c (ldexpl): Likewise.
11284         * tests/test-link.c (link): Likewise.
11285         * tests/test-linkat.c (linkat): Likewise.
11286         * tests/test-lseek.c (lseek): Likewise.
11287         * tests/test-lstat.c (lstat): Likewise.
11288         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11289         * tests/test-mbsinit.c (mbsinit): Likewise.
11290         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11291         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11292         * tests/test-memchr.c (memchr): Likewise.
11293         * tests/test-memcmp.c (memcmp): Likewise.
11294         * tests/test-memmem.c (memmem): Likewise.
11295         * tests/test-memrchr.c (memrchr): Likewise.
11296         * tests/test-mkdir.c (mkdir): Likewise.
11297         * tests/test-mkdirat.c (mkdirat): Likewise.
11298         * tests/test-mkfifo.c (mkfifo): Likewise.
11299         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11300         * tests/test-mknod.c (mknod): Likewise.
11301         * tests/test-nanosleep.c (nanosleep): Likewise.
11302         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11303         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11304         Likewise.
11305         * tests/test-open.c (open): Likewise.
11306         * tests/test-openat.c (openat): Likewise.
11307         * tests/test-perror.c (perror): Likewise.
11308         * tests/test-pipe2.c (pipe2): Likewise.
11309         * tests/test-poll.c (poll): Likewise.
11310         * tests/test-popen.c (popen, pclose): Likewise.
11311         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11312         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11313         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11314         (posix_spawn_file_actions_destroy)
11315         (posix_spawn_file_actions_addclose)
11316         (posix_spawn_file_actions_addopen)
11317         (posix_spawn_file_actions_adddup2): Likewise.
11318         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11319         * tests/test-pread.c (pread): Likewise.
11320         * tests/test-printf-posix.c (printf): Likewise.
11321         * tests/test-pty.c (openpty, forkpty): Likewise.
11322         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11323         (random_r): Likewise.
11324         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11325         * tests/test-readlink.c (readlink): Likewise.
11326         * tests/test-remove.c (remove): Likewise.
11327         * tests/test-rename.c (rename): Likewise.
11328         * tests/test-renameat.c (renameat): Likewise.
11329         * tests/test-rmdir.c (rmdir): Likewise.
11330         * tests/test-round1.c (round): Likewise.
11331         * tests/test-roundf1.c (roundf): Likewise.
11332         * tests/test-roundl.c (roundl): Likewise.
11333         * tests/test-setenv.c (setenv): Likewise.
11334         * tests/test-sigaction.c (sigaction): Likewise.
11335         * tests/test-sleep.c (sleep): Likewise.
11336         * tests/test-snprintf.c (snprintf): Likewise.
11337         * tests/test-sprintf-posix.c (sprintf): Likewise.
11338         * tests/test-stat.c (stat): Likewise.
11339         * tests/test-stpncpy.c (stpncpy): Likewise.
11340         * tests/test-strcasestr.c (strcasestr): Likewise.
11341         * tests/test-strchrnul.c (strchrnul): Likewise.
11342         * tests/test-strerror.c (strerror): Likewise.
11343         * tests/test-strsignal.c (strsignal): Likewise.
11344         * tests/test-strstr.c (strstr): Likewise.
11345         * tests/test-strtod.c (strtod): Likewise.
11346         * tests/test-strverscmp.c (strverscmp): Likewise.
11347         * tests/test-symlink.c (symlink): Likewise.
11348         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11349         * tests/test-times.c (times): Likewise.
11350         * tests/test-trunc1.c (trunc): Likewise.
11351         * tests/test-truncf1.c (truncf): Likewise.
11352         * tests/test-truncl.c (truncl): Likewise.
11353         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11354         Likewise.
11355         * tests/test-uname.c (uname): Likewise.
11356         * tests/test-unlink.c (unlink): Likewise.
11357         * tests/test-unlinkat.c (unlinkat): Likewise.
11358         * tests/test-unsetenv.c (unsetenv): Likewise.
11359         * tests/test-usleep.c (usleep): Likewise.
11360         * tests/test-utimensat.c (utimensat): Likewise.
11361         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11362         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11363         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11364         * tests/test-vprintf-posix.c (vprintf): Likewise.
11365         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11366         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11367         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11368         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11369         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11370         * tests/test-wcwidth.c (wcwidth): Likewise.
11371
11372         build: pull in conditional headers during GNULIB_POSIXCHECK
11373         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11374         definitions from any conditionally-included headers.
11375         * lib/stdlib.in.h (includes): Likewise.
11376         * lib/unistd.in.h (includes): Likewise.
11377
11378 2009-12-24  Bruno Haible  <bruno@clisp.org>
11379
11380         * tests/test-argv-iter.c: Include header file being tested immediately
11381         after config.h.
11382         * tests/test-base64.c: Likewise.
11383         * tests/test-flock.c: Likewise.
11384         * tests/test-fsync.c: Likewise.
11385         * tests/test-getdate.c: Likewise.
11386         * tests/test-getndelim2.c: Likewise.
11387         * tests/test-isfinite.c: Likewise.
11388         * tests/test-isinf.c: Likewise.
11389         * tests/test-strerror.c: Likewise.
11390         * tests/test-strsignal.c: Likewise.
11391
11392 2009-12-23  Eric Blake  <ebb9@byu.net>
11393
11394         unistd: work around cygwin bug
11395         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11396         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11397         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11398
11399 2009-12-23  Bruno Haible  <bruno@clisp.org>
11400
11401         localename: More tests.
11402         * tests/test-localename.c (SIZEOF): New macro.
11403         (categories): New variable.
11404         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11405         test_locale_name_default): Add test w.r.t. thread locale.
11406         (test_locale_name_thread): New function.
11407         (main): Invoke it.
11408
11409         localename: Make aware of thread locale.
11410         * lib/localename.h (gl_locale_name_thread): New declaration.
11411         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11412         behaviour with respect to thread locale.
11413         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11414         <langinfo.h>, glthread/lock.h.
11415         (SIZE_BITS): New macro.
11416         (string_hash): New function.
11417         (struct hash_node): New type.
11418         (HASH_TABLE_SIZE): New macro.
11419         (struniq_hash_table, struniq_lock): New variables.
11420         (struniq): New function.
11421         (gl_locale_name_thread): New function.
11422         (gl_locale_name): Invoke it.
11423         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11424         * modules/localename (Depends-on): Add lock.
11425         Reported by Mike Gran <spk121@yahoo.com>.
11426
11427 2009-12-23  Eric Blake  <ebb9@byu.net>
11428
11429         va-args: new module
11430         * modules/va-args: New file.
11431         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11432         * MODULES.html.sh (Core language properties): Mention it.
11433
11434         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11435         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11436         named alias for __attribute__((__unused__)).
11437         * lib/chown.c: Update client.
11438         * lib/fchmodat.c: Likewise.
11439         * lib/fts.c: Likewise.
11440         * lib/getdate.y: Likewise.
11441         * lib/getgroups.c: Likewise.
11442         * lib/getopt.c: Likewise.
11443         * lib/getugroups.c: Likewise.
11444         * lib/mkdir.c: Likewise.
11445         * lib/mkfifo.c: Likewise.
11446         * lib/mkfifoat.c: Likewise.
11447         * lib/mknod.c: Likewise.
11448         * lib/mknodat.c: Likewise.
11449         * lib/readlink.c: Likewise.
11450         * lib/se-context.in.h: Likewise.
11451         * lib/se-selinux.in.h: Likewise.
11452         * lib/sockets.c: Likewise.
11453         * lib/symlink.c: Likewise.
11454         * lib/symlinkat.c: Likewise.
11455         * lib/unicodeio.c: Likewise.
11456         * lib/unistr.h: Likewise.
11457         * tests/test-areadlink.c: Likewise.
11458         * tests/test-areadlinkat.c: Likewise.
11459         * tests/test-filenamecat.c: Likewise.
11460         * tests/test-fseeko.c: Likewise.
11461         * tests/test-ftello.c: Likewise.
11462         * tests/test-getdate.c: Likewise.
11463         * tests/test-getgroups.c: Likewise.
11464         * tests/test-gethostname.c: Likewise.
11465         * tests/test-quotearg.c: Likewise.
11466         * tests/test-version-etc.c: Likewise.
11467         * tests/test-xalloc-die.c: Likewise.
11468         * tests/test-xfprintf-posix.c: Likewise.
11469         * tests/test-xprintf-posix.c: Likewise.
11470         * tests/test-xvasprintf.c: Likewise.
11471
11472         tests: avoid compiler warnings
11473         * tests/test-fcntl.c (main): Delete unused parameters.
11474         * tests/test-freopen-safer.c (main): Likewise.
11475         * tests/test-xalloc-die.c (main): Mark unused parameters.
11476         * tests/test-fseeko.c (main): Likewise.
11477         * tests/test-ftello.c (main): Likewise.
11478         * tests/test-nanosleep.c (main): Avoid declaration warning.
11479         * tests/test-sleep.c (main): Likewise.
11480         * tests/test-unsetenv.c (main): Silence warning about string
11481         literal.
11482         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11483
11484 2009-12-23  Bruno Haible  <bruno@clisp.org>
11485
11486         * tests/test-localename.c (test_locale_name): New function, extracted
11487         from main. Also test mixed situations.
11488         (test_locale_name_posix, test_locale_name_environ,
11489         test_locale_name_default): New functions.
11490         (main): Invoke them all.
11491         * modules/localename-tests (configure.ac): Test for newlocale.
11492
11493 2009-12-23  Bruno Haible  <bruno@clisp.org>
11494
11495         unistd: Ensure getcwd gets declared before being overridden.
11496         * lib/unistd.in.h: Conditionally include <io.h>.
11497
11498 2009-12-22  Bruno Haible  <bruno@clisp.org>
11499
11500         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11501         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11502         (gl_WCHAR_H): Invoke it.
11503         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11504         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11505         Reported by Karl Berry <karl@freefriends.org>.
11506
11507 2009-12-22  Eric Blake  <ebb9@byu.net>
11508
11509         math, unistd: avoid redundant includes
11510         * lib/math.in.h (isnan): No need to re-include <math.h>.
11511         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11512
11513         getsubopt: work around cygwin bug
11514         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11515         avoid conflicting with system getsubopt.
11516         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11517         bug.
11518
11519         getopt: synchronize from glibc
11520         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11521         parameter order.  Adjust all callers.
11522         (_getopt_internal_r, main): Adjust quoting in error messages.
11523         Drop considerations for outdated POSIX 1003.2 error message.
11524         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11525         callers.
11526         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11527
11528         test-getopt: test stderr behavior
11529         * modules/getopt-posix-tests (Depends-on): Add dup2.
11530         * tests/test-getopt.c (ASSERT): Avoid stderr.
11531         (main): Move stderr to a temporary file.
11532         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11533         Instead, add parameter to inform caller if output occurred.
11534         (test_getopt): Adjust all existing tests to expect silence, and
11535         add new tests of leading ":".
11536         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11537         glibc shortcomings with leading "-:" or "+:" in optstring.
11538         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11539         Likewise.
11540         * doc/posix-functions/getopt.texi (getopt): Likewise.
11541
11542         test-getopt: enhance test
11543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11544         supports optind=0.
11545         * tests/test-getopt.c (OPTIND_MIN): Move...
11546         * tests/test-getopt.h (OPTIND_MIN): ...here.
11547         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11548         Require that optind=0 works, since modern BSD supports it in
11549         addition to optreset, and since coreutils expects it.
11550         (test_getopt_long_only): New test.
11551         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11552         glibc shortcomings with 'W;', and enforcement of optind=0.
11553         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11554         Likewise.
11555
11556 2009-12-21  Bruno Haible  <bruno@clisp.org>
11557
11558         localename: Improvements for MacOS X and Cygwin.
11559         * lib/localename.h (gl_locale_name_environ): New declaration.
11560         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11561         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11562         (gl_locale_name_posix): Invoke it.
11563         (gl_locale_name_default): Add comments. Use Windows native API also on
11564         Cygwin.
11565
11566 2009-12-21  Bruno Haible  <bruno@clisp.org>
11567
11568         Update list of Win32 locale ids.
11569         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11570         (LANG_SAMI): Renamed from LANG_SAAMI.
11571         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11572         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11573         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11574         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11575         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11576         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11577         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11578         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11579         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11580         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11581         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11582         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11583         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11584         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11585         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11586         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11587         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11588         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11589         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11590         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11591         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11592         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11593         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11594         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11595         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11596         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11597         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11598         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11599         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11600         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11601         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11602         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11603         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11604         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11605         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11606         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11607         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11608         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11609         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11610         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11611         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11612         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11613         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11614         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11615         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11616         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11617         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11618         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11619         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11620         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11621         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11622         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11623         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11624         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11625         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11626         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11627         Add more languages and countries for Sami, Sorbian. Add more countries
11628         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11629         for Pashto. Change country for Syriac, Tswana.
11630
11631 2009-12-21  Eric Blake  <ebb9@byu.net>
11632
11633         test-utimens: avoid spurious failure
11634         * tests/test-chown.h (nap): Factor...
11635         * tests/nap.h: ...into new file.
11636         * tests/test-lchown.h (nap): Avoid duplication.
11637         * tests/test-utimens-common.h (nap): Use shared implementation,
11638         necessary on file systems with 1-second resolution.
11639         * modules/chown-tests (Files): Include new file.
11640         * modules/fdutimensat-tests (Files): Likewise.
11641         * modules/futimens-tests (Files): Likewise.
11642         * modules/lchown-tests (Files): Likewise.
11643         * modules/openat-tests (Files): Likewise.
11644         * modules/utimens-tests (Files): Likewise.
11645         * modules/utimensat-tests (Files): Likewise.
11646
11647 2009-12-19  Eric Blake  <ebb9@byu.net>
11648
11649         futimens, utimensat: work around Linux bug
11650         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11651         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11652         * lib/utimensat.c (rpl_utimensat): Work around it.
11653         * lib/futimens.c (rpl_futimens): Adjust comment.
11654
11655         utimens: work around Linux ctime bug
11656         * lib/utimens.c (detect_ctime_bug): New helper function.
11657         (update_timespec): Differentiate between workaround needed for
11658         this bug vs. what is needed for systems that lack utimensat.
11659         (fdutimens, lutimens): Work around bug.
11660
11661         utimens: check for ctime update
11662         * tests/test-utimens-common.h (check_ctime): Define.
11663         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11664         * tests/test-futimens.h (test_futimens): Likewise.
11665         * tests/test-lutimens.h (test_lutimens): Likewise.
11666         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11667         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11668
11669 2009-12-19  Bruno Haible  <bruno@clisp.org>
11670
11671         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11672         * tests/test-dprintf-posix2.sh: New file.
11673         * tests/test-dprintf-posix2.c: New file.
11674         * modules/dprintf-posix-tests (Files): Add them.
11675         (configure.ac): Check for getrlimit and setrlimit.
11676         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11677
11678 2009-12-19  Bruno Haible  <bruno@clisp.org>
11679
11680         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11681         * tests/test-fprintf-posix3.sh: New file.
11682         * tests/test-fprintf-posix3.c: New file.
11683         * modules/fprintf-posix-tests (Files): Add them.
11684         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11685
11686 2009-12-19  Eric Blake  <ebb9@byu.net>
11687
11688         dirfd: fix prototype
11689         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11690         * lib/dirfd.c (dirfd): Likewise.
11691
11692         canonicalize: reduce memory usage
11693         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11694         allocation to size.
11695         Reported by Solar Designer <solar@openwall.com>.
11696
11697 2009-12-19  Bruno Haible  <bruno@clisp.org>
11698
11699         New module attribute 'Applicability'.
11700         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11701         * gnulib-tool: New option --extract-applicability.
11702         (func_usage): Document it.
11703         (sed_extract_prog): Recognize it.
11704         (func_get_applicability): New function.
11705         (func_import): Generalize handling of 'link-warning' module.
11706         * modules/link-warning (Applicability): New section.
11707         * modules/arg-nonnull (Applicability): New section.
11708         Repoted by Simon Josefsson <simon@josefsson.org>.
11709
11710 2009-12-19  Bruno Haible  <bruno@clisp.org>
11711
11712         fflush: tweak
11713         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11714         * lib/fseeko.c (rpl_fseeko): Likewise.
11715
11716 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11717
11718         * lib/gl_list.h: Fix typo in comment.
11719
11720 2009-12-16  Eric Blake  <ebb9@byu.net>
11721
11722         fcntl: use to simplify other modules
11723         * modules/cloexec (Depends-on): Add fcntl.
11724         * modules/fchdir (Depends-on): Likewise.
11725         * modules/fd-safer-flag (Depends-on): Likewise.
11726         * modules/unistd-safer (Depends-on): Likewise.
11727         * modules/dup3 (configure.ac): Set module indicator.
11728         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11729         missing.
11730         * lib/fchdir.c (_gl_register_dup): Fix comment.
11731         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11732         * lib/dup-safer.c (dup_safer): Likewise.
11733         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11734         * lib/dup3.c (dup3): Likewise.
11735         * tests/test-fchdir.c (main): Enhance test.
11736         Fixes a dup_cloexec bug reported by Ondřej Vašík.
11737
11738         fcntl: port portions of fcntl to mingw
11739         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11740         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11741         replacement for mingw.
11742         * modules/fcntl (Description): Update.
11743         (Depends-on): Add dup2.
11744         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11745         * modules/fcntl-h (Makefile.am): Substitute it.
11746         * lib/fcntl.in.h (fcntl): Update declaration.
11747         (F_DUPFD, F_GETFD): New macros, when needed.
11748         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11749         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11750         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11751         we now guarantee.
11752
11753         fcntl: work around cygwin bug in F_DUPFD
11754         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11755         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11756         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11757         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11758         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11759
11760         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11761         * modules/fcntl (Files): List new files.
11762         (configure.ac): Run a test.
11763         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11764         * lib/fcntl.c (rpl_fcntl): Likewise.
11765         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11766         (gl_FCNTL_H): Always replace fcntl.h.
11767         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11768         * lib/fcntl.in.h (fcntl): Declare replacement.
11769         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11770         needed, plus a witness.
11771         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11772         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11773         * tests/test-fcntl.c: New file.
11774         * modules/fcntl-tests: Likewise.
11775
11776         binary-io: avoid potential compilation warning
11777         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11778         directives.
11779
11780         fflush: avoid compilation error on NetBSD
11781         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11782         between off_t and fpos_t, since the latter is sometimes a struct.
11783         * lib/fseeko.c (rpl_fseeko): Likewise.
11784         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11785
11786 2009-12-15  Eric Blake  <ebb9@byu.net>
11787
11788         fcntl-h, stdio, sys_ioctl: fix declarations
11789         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11790         function must not take arguments.
11791         * lib/sys_ioctl.in.h (ioctl): Likewise.
11792         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11793         (open): Add a link warning.
11794
11795 2009-12-15  Jim Meyering  <meyering@redhat.com>
11796
11797         areadlink, areadlink-with-size: relax license to LGPLv2+
11798         * modules/areadlink (License): Relax to LGPLv2+.
11799         * modules/areadlink-with-size (License): Likewise.
11800
11801 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11802             Bruno Haible  <bruno@clisp.org>
11803
11804         *printf: Fix memory leak.
11805         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11806         * lib/vfprintf.c (vfprintf): Likewise.
11807         * lib/dprintf.c (dprintf): Likewise.
11808         * lib/vdprintf.c (vdprintf): Likewise.
11809
11810 2009-12-14  Eric Blake  <ebb9@byu.net>
11811
11812         accept4: adjust module dependencies
11813         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11814
11815         utimens: one more try at avoiding compiler warning
11816         * lib/utimens.c (lutimens): Lower scope of result.
11817
11818 2009-12-13  Bruno Haible  <bruno@clisp.org>
11819
11820         Move the malloc checking from module 'list' to new module 'xlist'.
11821         * modules/xlist: New file.
11822         * lib/gl_xlist.h: New file.
11823         * lib/gl_xlist.c: New file.
11824         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11825         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11826         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11827         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11828         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
11829         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
11830         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
11831         gl_sortedlist_nx_add): New declarations.
11832         (struct gl_list_implementation): Rename and change methods accordingly.
11833         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
11834         (gl_list_nx_create): Renamed from gl_list_create.
11835         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11836         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11837         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11838         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11839         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11840         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11841         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11842         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11843         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
11844         gl_list_create_empty.
11845         (gl_list_nx_create): Renamed from gl_list_create.
11846         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
11847         (gl_list_nx_set_at): Renamed from gl_list_set_at.
11848         (gl_list_nx_add_first): Renamed from gl_list_add_first.
11849         (gl_list_nx_add_last): Renamed from gl_list_add_last.
11850         (gl_list_nx_add_before): Renamed from gl_list_add_before.
11851         (gl_list_nx_add_after): Renamed from gl_list_add_after.
11852         (gl_list_nx_add_at): Renamed from gl_list_add_at.
11853         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
11854         * lib/gl_array_list.c: Don't include xalloc.h.
11855         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
11856         NULL upon out-of-memory.
11857         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
11858         out-of-memory.
11859         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
11860         Change return type to 'int'.
11861         (gl_array_nx_set_at): Renamed from gl_array_set_at.
11862         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11863         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
11864         upon out-of-memory.
11865         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
11866         upon out-of-memory.
11867         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
11868         upon out-of-memory.
11869         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
11870         upon out-of-memory.
11871         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
11872         out-of-memory.
11873         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
11874         Update.
11875         (gl_array_list_implementation): Update.
11876         * lib/gl_carray_list.c: Don't include xalloc.h.
11877         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
11878         Return NULL upon out-of-memory.
11879         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
11880         out-of-memory.
11881         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
11882         Change return type to 'int'.
11883         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
11884         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
11885         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
11886         upon out-of-memory.
11887         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
11888         upon out-of-memory.
11889         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
11890         out-of-memory.
11891         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
11892         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
11893         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
11894         Update.
11895         (gl_carray_list_implementation): Update.
11896         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
11897         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
11898         gl_linked_create_empty. Return NULL upon out-of-memory.
11899         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
11900         out-of-memory.
11901         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
11902         Change return type to 'int'. Return -1 upon out-of-memory.
11903         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
11904         out-of-memory.
11905         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
11906         upon out-of-memory.
11907         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
11908         upon out-of-memory.
11909         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
11910         NULL upon out-of-memory.
11911         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
11912         upon out-of-memory.
11913         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
11914         out-of-memory.
11915         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
11916         Update.
11917         * lib/gl_linked_list.c: Don't include xalloc.h.
11918         (gl_linked_list_implementation): Update.
11919         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
11920         (add_to_bucket): Change return type to 'int'.
11921         (gl_linkedhash_list_implementation): Update.
11922         * lib/gl_anytree_list1.h (free_subtree): New function.
11923         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
11924         gl_tree_create_empty. Return NULL upon out-of-memory.
11925         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
11926         Change return type to 'int'. Return -1 upon out-of-memory.
11927         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
11928         out-of-memory.
11929         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
11930         (gl_tree_remove_node): New function, moved here from
11931         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
11932         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
11933         Update.
11934         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
11935         malloc, not xmalloc. Return NULL upon out-of-memory.
11936         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11937         out-of-memory.
11938         (gl_tree_remove_node_from_tree): New function, extracted from
11939         gl_tree_remove_node.
11940         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11941         upon out-of-memory.
11942         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11943         out-of-memory.
11944         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11945         upon out-of-memory.
11946         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11947         upon out-of-memory.
11948         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11949         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
11950         not xmalloc. Return NULL upon out-of-memory.
11951         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
11952         out-of-memory.
11953         (gl_tree_remove_node_from_tree): New function, extracted from
11954         gl_tree_remove_node.
11955         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
11956         upon out-of-memory.
11957         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
11958         out-of-memory.
11959         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
11960         upon out-of-memory.
11961         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
11962         upon out-of-memory.
11963         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
11964         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
11965         gl_anytree_list1.h before gl_anyavltree_list2.h.
11966         (gl_avltree_list_implementation): Update.
11967         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
11968         gl_anytree_list1.h before gl_anyavltree_list2.h.
11969         (gl_rbtree_list_implementation): Update.
11970         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
11971         Change return type to 'int'. Return -1 upon out-of-memory. Use
11972         __builtin_expect.
11973         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
11974         (gl_avltreehash_list_implementation): Update.
11975         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
11976         (gl_rbtreehash_list_implementation): Update.
11977         * modules/array-list (Depends-on): Remove xalloc.
11978         * modules/carray-list (Depends-on): Likewise.
11979         * modules/linked-list (Depends-on): Likewise.
11980         * modules/linkedhash-list (Depends-on): Likewise.
11981         * modules/avltree-list (Depends-on): Likewise.
11982         * modules/rbtree-list (Depends-on): Likewise.
11983         * modules/avltreehash-list (Depends-on): Likewise.
11984         * modules/rbtreehash-list (Depends-on): Likewise.
11985
11986         * modules/xsublist: New file.
11987         * lib/gl_xsublist.h: New file.
11988         * lib/gl_xsublist.c: New file.
11989         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
11990         (gl_sublist_nx_create): New declaration.
11991         * lib/gl_sublist.c: Don't include xalloc.h.
11992         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
11993         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
11994         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
11995         Change return type to 'int'. Return -1 upon out-of-memory.
11996         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
11997         upon out-of-memory.
11998         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
11999         NULL upon out-of-memory.
12000         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
12001         upon out-of-memory.
12002         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
12003         NULL upon out-of-memory.
12004         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
12005         NULL upon out-of-memory.
12006         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
12007         upon out-of-memory.
12008         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
12009         (gl_sublist_list_implementation): Update.
12010         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
12011         upon out-of-memory.
12012         * modules/sublist (Depends-on): Remove xalloc.
12013
12014         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
12015         * tests/test-carray_list.c: Likewise.
12016         * tests/test-linked_list.c: Likewise.
12017         * tests/test-linkedhash_list.c: Likewise.
12018         * tests/test-avltree_list.c: Likewise.
12019         * tests/test-rbtree_list.c: Likewise.
12020         * tests/test-avltreehash_list.c: Likewise.
12021         * tests/test-rbtreehash_list.c: Likewise.
12022         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
12023         * modules/carray-list-tests (Makefile.am): Likewise.
12024         * modules/linked-list-tests (Makefile.am): Likewise.
12025         * modules/linkedhash-list-tests (Makefile.am): Likewise.
12026         * modules/avltree-list-tests (Makefile.am): Likewise.
12027         * modules/rbtree-list-tests (Makefile.am): Likewise.
12028         * modules/avltreehash-list-tests (Makefile.am): Likewise.
12029         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
12030
12031         * NEWS: Mention the changes.
12032
12033         * lib/clean-temp.c: Include gl_xlist.h.
12034         * modules/clean-temp (Depends-on): Add xlist.
12035
12036         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
12037         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
12038
12039         * tests/test-array_oset.c: Include gl_xlist.h.
12040         * modules/array-oset-tests (Depends-on): Add xlist.
12041
12042         Reported by José E. Marchesi <jemarch@gnu.org>.
12043
12044 2009-12-13  Bruno Haible  <bruno@clisp.org>
12045
12046         Move the malloc checking from module 'oset' to new module 'xoset'.
12047         * modules/xoset: New file.
12048         * lib/gl_xoset.h: New file.
12049         * lib/gl_xoset.c: New file.
12050         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
12051         declarations.
12052         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
12053         (struct gl_oset_implementation): Rename and change methods accordingly.
12054         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
12055         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12056         'int'. Mark as __warn_unused_result__.
12057         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
12058         gl_oset_create_empty.
12059         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12060         'int'.
12061         * lib/gl_array_oset.c: Don't include xalloc.h.
12062         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
12063         malloc, not xmalloc.
12064         (grow): Change return type to 'int'. Don't call xalloc_die.
12065         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
12066         to 'int'.
12067         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
12068         'int'.
12069         (gl_array_oset_implementation): Update.
12070         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
12071         gl_tree_create_empty.
12072         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
12073         'int'.
12074         * lib/gl_avltree_oset.c: Don't include xalloc.h.
12075         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12076         xmalloc.
12077         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12078         not xmalloc.
12079         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12080         xmalloc.
12081         (gl_avltree_oset_implementation): Update.
12082         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
12083         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12084         xmalloc.
12085         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12086         not xmalloc.
12087         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12088         xmalloc.
12089         (gl_rbtree_oset_implementation): Update.
12090         * modules/array-oset (Depends-on): Remove xalloc.
12091         * modules/avltree-oset (Depends-on): Likewise.
12092         * modules/rbtree-oset (Depends-on): Likewise.
12093         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
12094         * tests/test-avltree_oset.c: Likewise.
12095         * tests/test-rbtree_oset.c: Likewise.
12096         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
12097         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
12098         * modules/rbtree-oset-tests (Makefile.am): Likewise.
12099         * NEWS: Mention the change.
12100
12101 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
12102
12103         maint.mk: allow a project to override release-prep commands
12104         * top/maint.mk (alpha, beta, stable): Move release-preparatory
12105         commands into a new rule.
12106         (release-prep): New rule.
12107         (release-prep-hook): New overridable variable.
12108
12109 2009-12-13  Bruno Haible  <bruno@clisp.org>
12110
12111         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
12112
12113 2009-12-13  Jim Meyering  <meyering@redhat.com>
12114
12115         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
12116         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
12117
12118 2009-12-12  Bruno Haible  <bruno@clisp.org>
12119
12120         duplocale: Tweak.
12121         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
12122
12123 2009-12-12  Karl Berry  <karl@gnu.org>
12124
12125         * config/srclist.txt (strtoll.c): tab changes, no more sync.
12126
12127 2009-12-12  Bruno Haible  <bruno@clisp.org>
12128
12129         * m4/po.m4: Undo incorrect untabification.
12130
12131 2009-12-12  Bruno Haible  <bruno@clisp.org>
12132
12133         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
12134         * modules/c-strtod (Depends-on): Add locale.
12135         * modules/c-strtold (Depends-on): Likewise.
12136
12137 2009-12-12  Bruno Haible  <bruno@clisp.org>
12138
12139         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
12140
12141 2009-12-11  Eric Blake  <ebb9@byu.net>
12142
12143         setenv: relax requirement in light of POSIX ruling
12144         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
12145         not NULL.
12146         * tests/test-setenv.c (main): Relax test.
12147         * tests/test-unsetenv.c (main): Likewise.
12148         * doc/posix-functions/setenv.texi (setenv): Document this.
12149         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12150
12151 2009-12-11  Bruno Haible  <bruno@clisp.org>
12152
12153         New module 'fd-safer-flag'.
12154         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
12155         * lib/dup-safer.c (dup_safer_flag): Remove function.
12156         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
12157         * lib/fd-safer.c (fd_safer_flag): Remove function.
12158         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12159         * modules/cloexec (configure.ac): Drop indicator macro.
12160         * modules/fd-safer-flag: New file.
12161         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12162         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12163         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12164
12165 2009-12-11  Bruno Haible  <bruno@clisp.org>
12166
12167         Tests for module 'nl_langinfo'.
12168         * modules/nl_langinfo-tests: New file.
12169         * tests/test-nl_langinfo.sh: New file.
12170         * tests/test-nl_langinfo.c: New file.
12171
12172         New module 'nl_langinfo'.
12173         * lib/nl_langinfo.c: New file.
12174         * m4/nl_langinfo.m4: New file.
12175         * modules/nl_langinfo: New file.
12176         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12177
12178 2009-12-11  Bruno Haible  <bruno@clisp.org>
12179
12180         Tests for module 'langinfo'.
12181         * modules/langinfo-tests: New file.
12182         * tests/test-langinfo.c: New file.
12183
12184         New module 'langinfo'.
12185         * lib/langinfo.in.h: New file.
12186         * m4/langinfo_h.m4: New file.
12187         * modules/langinfo: New file.
12188         * doc/posix-headers/langinfo.texi: Mention the new module.
12189
12190 2009-12-11  Bruno Haible  <bruno@clisp.org>
12191
12192         * lib/config.charset: Untabify.
12193
12194 2009-12-11  Bruno Haible  <bruno@clisp.org>
12195
12196         * modules/unistd-safer (configure.ac): Drop indicator macro.
12197
12198 2009-12-11  Bruno Haible  <bruno@clisp.org>
12199
12200         Move pipe2-safer code to its own file.
12201         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12202         * lib/pipe-safer.c (pipe2_safer): Remove function.
12203         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12204         (Makefile.am): Add it to lib_SOURCES.
12205
12206 2009-12-10  Bruno Haible  <bruno@clisp.org>
12207
12208         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12209
12210 2009-12-10  Bruno Haible  <bruno@clisp.org>
12211
12212         Declare which arguments expect non-NULL values, for GCC and clang.
12213         * build-aux/arg-nonnull.h: New file.
12214         * modules/arg-nonnull: New file.
12215         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12216         (inet_ntop, inet_pton): Use it.
12217         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12218         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12219         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12220         (open, openat): Use it.
12221         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12222         (fnmatch): Use it.
12223         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12224         (getopt, getopt_long, getopt_long_only): Use it.
12225         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12226         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12227         Use it.
12228         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12229         (iconv_open): Use it.
12230         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12231         (strtoimax, strtoumax): Use it.
12232         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12233         (duplocale): Use it.
12234         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12235         (frexp, frexpl): Use it.
12236         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12237         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12238         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12239         (tsearch, tfind, tdelete, twalk): Use it.
12240         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12241         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12242         sigpending): Use it.
12243         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12244         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12245         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12246         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12247         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12248         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12249         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12250         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12251         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12252         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12253         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12254         Use it.
12255         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12256         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12257         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12258         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12259         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12260         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12261         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12262         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12263         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12264         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12265         strtoull, unsetenv): Use it.
12266         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12267         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12268         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12269         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12270         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12271         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12272         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12273         (strcasecmp, strncasecmp): Use it.
12274         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12275         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12276         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12277         rpl_setsockopt): Use it.
12278         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12279         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12280         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12281         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12282         (gettimeofday): Use it.
12283         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12284         (times): Use it.
12285         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12286         (uname): Use it.
12287         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12288         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12289         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12290         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12291         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12292         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12293         unlinkat, write): Use it.
12294         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12295         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12296         * lib/argv-iter.h: Include arg-nonnull.h.
12297         (_ATTRIBUTE_NONNULL_): Remove macro.
12298         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12299         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12300         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12301         optimization.
12302         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12303         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12304         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12305         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12306         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12307         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12308         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12309         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12310         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12311         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12312         * modules/dirent (Depends-on): Add arg-nonnull.
12313         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12314         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12315         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12316         * modules/fnmatch (Depends-on): Add arg-nonnull.
12317         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12318         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12319         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12320         * modules/glob (Depends-on): Add arg-nonnull.
12321         (Makefile.am): Insert arg-nonnull.h into glob.h.
12322         * modules/iconv_open (Depends-on): Add arg-nonnull.
12323         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12324         * modules/inttypes (Depends-on): Add arg-nonnull.
12325         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12326         * modules/locale (Depends-on): Add arg-nonnull.
12327         (Makefile.am): Insert arg-nonnull.h into locale.h.
12328         * modules/math (Depends-on): Add arg-nonnull.
12329         (Makefile.am): Insert arg-nonnull.h into math.h.
12330         * modules/netdb (Depends-on): Add arg-nonnull.
12331         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12332         * modules/search (Depends-on): Add arg-nonnull.
12333         (Makefile.am): Insert arg-nonnull.h into search.h.
12334         * modules/signal (Depends-on): Add arg-nonnull.
12335         (Makefile.am): Insert arg-nonnull.h into signal.h.
12336         * modules/spawn (Depends-on): Add arg-nonnull.
12337         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12338         * modules/stdio (Depends-on): Add arg-nonnull.
12339         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12340         * modules/stdlib (Depends-on): Add arg-nonnull.
12341         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12342         * modules/string (Depends-on): Add arg-nonnull.
12343         (Makefile.am): Insert arg-nonnull.h into string.h.
12344         * modules/strings (Depends-on): Add arg-nonnull.
12345         (Makefile.am): Insert arg-nonnull.h into strings.h.
12346         * modules/sys_socket (Depends-on): Add arg-nonnull.
12347         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12348         * modules/sys_stat (Depends-on): Add arg-nonnull.
12349         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12350         * modules/sys_time (Depends-on): Add arg-nonnull.
12351         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12352         * modules/sys_times (Depends-on): Add arg-nonnull.
12353         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12354         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12355         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12356         * modules/time (Depends-on): Add arg-nonnull.
12357         (Makefile.am): Insert arg-nonnull.h into time.h.
12358         * modules/unistd (Depends-on): Add arg-nonnull.
12359         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12360         * modules/wchar (Depends-on): Add arg-nonnull.
12361         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12362         * modules/argv-iter (Depends-on): Add arg-nonnull.
12363         * tests/test-canonicalize.c (null_ptr): New function.
12364         (main): Use it.
12365         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12366         (main): Use it.
12367         * tests/test-memmem.c (null_ptr): New function.
12368         (main): Use it.
12369         Reported by Jim Meyering.
12370
12371 2009-12-10  Bruno Haible  <bruno@clisp.org>
12372
12373         Use spaces for indentation, not tabs.
12374         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12375         * m4/*.m4: Untabify.
12376         * build-aux/*.h: Untabify.
12377         * tests/**/*.[hc]: Untabify.
12378         * README: New section "Indent with spaces, not TABs", based on
12379         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12380         * NEWS: Mention the change.
12381
12382 2009-12-10  Bruno Haible  <bruno@clisp.org>
12383
12384         pty test: Fix link error.
12385         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12386         test_pty_LDADD.
12387
12388 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12389
12390         * modules/pty: New file.
12391         * modules/pty-tests: New file.
12392         * m4/pty.m4: New file.
12393         * tests/test-pty.c: New file.
12394         * doc/glibc-headers/pty.texi: Modified.
12395         * doc/glibc-functions/forkpty.texi: Modified.
12396         * doc/glibc-functions/openpty.texi: Modified.
12397
12398 2009-12-10  Bruno Haible  <bruno@clisp.org>
12399
12400         Avoid syntax error in C++ mode.
12401         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12402
12403 2009-12-10  Bruno Haible  <bruno@clisp.org>
12404
12405         Use sed with option -e.
12406         * gnulib-tool (func_version, func_emit_copyright_notice,
12407         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12408         option -e to sed.
12409         * modules/link-warning (Makefile.am): Likewise.
12410
12411 2009-12-10  Jim Meyering  <meyering@redhat.com>
12412
12413         mgetgroups: do not write bytes beyond end of malloc'd buffer
12414         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12415         username, we call getgroups with a one-element-shorter buffer,
12416         but still told it the length was original, max_n_groups.
12417
12418 2009-12-09  Eric Blake  <ebb9@byu.net>
12419
12420         cloexec: relax license
12421         * modules/cloexec (Maintainer): Add myself.
12422         (License): Use LGPL, not GPL.
12423
12424         link-warning: optimize generation
12425         * modules/link-warning (Makefile.am): Reduce process usage.
12426
12427 2009-12-09  Bruno Haible  <bruno@clisp.org>
12428
12429         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12430         workaround was added on 2009-11-17.
12431
12432 2009-12-09  Jim Meyering  <meyering@redhat.com>
12433             Bruno Haible  <bruno@clisp.org>
12434
12435         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12436         * modules/link-warning (Makefile.am): Make the comment-removing sed
12437         command more robust in the face of bootstrap-prepended comment lines.
12438
12439 2009-12-09  Bruno Haible  <bruno@clisp.org>
12440
12441         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12442         most one group.
12443
12444 2009-12-09  Simon Josefsson <simon@josefsson.org>
12445             Bruno Haible  <bruno@clisp.org>
12446
12447         * build-aux/link-warning.h: Add copyright notice.
12448         * modules/link-warning (Makefile.am): Generate link-warning.h from
12449         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12450         * NEWS: Mention change in link-warning module.
12451         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12452         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12453         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12454         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12455         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12456         * modules/math (Makefile.am): Add dependency to math.h.
12457         * modules/search (Makefile.am): Add dependency to search.h.
12458         * modules/signal (Makefile.am): Add dependency to signal.h.
12459         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12460         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12461         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12462         * modules/string (Makefile.am): Add dependency to string.h.
12463         * modules/strings (Makefile.am): Add dependency to strings.h.
12464         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12465         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12466         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12467         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12468         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12469         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12470         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12471         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12472         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12473
12474 2009-12-09  Bruno Haible  <bruno@clisp.org>
12475
12476         fchdir: Optimize away rpl_fstat when possible.
12477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12478         REPLACE_OPEN_DIRECTORY.
12479         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12480
12481 2009-12-09  Bruno Haible  <bruno@clisp.org>
12482
12483         * lib/fchdir.c: Update comment.
12484
12485 2009-12-09  Bruno Haible  <bruno@clisp.org>
12486
12487         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12488
12489 2009-12-08  Eric Blake  <ebb9@byu.net>
12490
12491         fchdir: avoid memory leak on re-registration.
12492         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12493
12494 2009-12-08  Jim Meyering  <meyering@redhat.com>
12495
12496         init.sh: avoid Solaris 10 /bin/sh portability problem
12497         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12498         sourced script:
12499           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12500           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12501           bar
12502         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12503         and two tests used that idiom.
12504         * tests/init.sh: Update suggested usage comments.
12505         (path_prepend_): New function, to be used in place
12506         of the --src-path=DIR option.
12507         (setup_): Move PATH-prepending code into path_prepend_.
12508         * tests/test-pread.sh: Adapt to new usage.
12509         * tests/test-xalloc-die.sh: Likewise.
12510
12511 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12512
12513         * doc/gnulib.texi (Glibc pty.h): Add.
12514         * doc/glibc-functions/forkpty.texi: Add.
12515         * doc/glibc-functions/openpty.texi: Add.
12516         Suggested by Bruno Haible.
12517
12518 2009-12-08  Eric Blake  <ebb9@byu.net>
12519
12520         fchdir: fix logic bugs
12521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12522         * tests/test-fchdir.c (main): Enhance test.
12523         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12524         is in use.
12525
12526         dup2: fix logic bugs
12527         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12528         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12529         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12530         exists.
12531         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12532
12533 2009-12-07  Eric Blake  <ebb9@byu.net>
12534
12535         unlink: fix m4 detection
12536         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12537
12538         unistd-safer: add unit test
12539         * modules/unistd-safer-tests: New file.
12540         * tests/test-dup-safer.c: Likewise.
12541         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12542         * tests/test-dup2.c (setmode): Likewise.
12543         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12544
12545         cloexec: preserve text vs. binary across dup_cloexec
12546         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12547         mode.
12548         * modules/dup2-tests (Depends-on): Add binary-io.
12549         * modules/cloexec-tests (Depends-on): Likewise.
12550         * tests/test-dup2.c (setmode, is_mode): New helpers.
12551         (main): Add tests that translation mode is preserved.
12552         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12553         Reported by Bruno Haible.
12554
12555         mgetgroups: reduce duplicate listings
12556         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12557         resulting array.
12558         * tests/test-chown.h (test_chown): Simplify client.
12559         * tests/test-lchown.h (test_lchown): Likewise.
12560
12561 2009-12-06  Bruno Haible  <bruno@clisp.org>
12562
12563         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12564         value.
12565
12566 2009-12-06  Bruno Haible  <bruno@clisp.org>
12567
12568         * lib/progname.c: Include stdio.h, stdlib.h.
12569         (set_program_name): Reject a NULL argument.
12570
12571 2009-12-05  Eric Blake  <ebb9@byu.net>
12572
12573         pipe2-safer: new module
12574         * modules/pipe2-safer: New file.
12575         * lib/unistd-safer.h (pipe2_safer): New prototype.
12576         * lib/unistd--.h (pipe2): New wrapper.
12577         * lib/pipe-safer.c (pipe2_safer): New function.
12578         * modules/pipe (Depends-on): Add pipe2-safer.
12579         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12580
12581         stdlib-safer: preserve cloexec flag for mkostemp[s]
12582         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12583         fd_safer_flag.
12584
12585         unistd-safer: allow preservation of cloexec status via flag
12586         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12587         prototypes.
12588         * lib/dup-safer.c (dup_safer_flag): New function.
12589         * lib/fd-safer.c (fd_safer_flag): Likewise.
12590         * modules/cloexec (configure.ac): Set witness.
12591
12592         test-dup2: enhance test
12593         * modules/dup2-tests (Depends-on): Add cloexec.
12594         * tests/test-dup2.c (main): Enhance test.
12595
12596         cloexec: add dup_cloexec
12597         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12598         header and comments.
12599         * lib/cloexec.c (set_cloexec_flag): Add comments.
12600         (dup_cloexec): New function, with mingw implementation borrowed
12601         from...
12602         * lib/w32spawn.h (dup_noinherit): ...here.
12603         * modules/execute (Depends-on): Add cloexec.
12604         * modules/pipe (Depends-on): Likewise.
12605         * modules/cloexec (Depends-on): Add dup2.
12606         * modules/cloexec-tests (Files): New file.
12607         * tests/test-cloexec.c: Likewise.
12608
12609         test-xalloc-die: fix test for mingw
12610         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12611         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12612         directory and .exe suffix off argv[0] output.
12613
12614         test-fseeko: fix test for mingw
12615         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12616         than undefining fseek, so test will pass on mingw.
12617
12618 2009-12-05  Bruno Haible  <bruno@clisp.org>
12619
12620         * lib/progname.h (set_program_name): Clarify specification.
12621         * lib/progname.c (set_program_name): Likewise.
12622         Reported by Jim Meyering.
12623
12624 2009-12-05  Jim Meyering  <meyering@redhat.com>
12625
12626         maint.mk: backslash-escape parens in default regexp
12627         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12628         backslash-escape the literal parentheses.
12629
12630         maint.mk: news-date-check: use grep -E
12631         * top/maint.mk (today): Define a Make variable, not a...
12632         (news-date-check): ...shell variable.
12633         (news-date-regexp): Use the Make variable.
12634         Use grep's -E option.  Change the failing diagnostic to mention
12635         the variable, $(news-date-regexp).
12636
12637 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12638
12639         maintainer-makefile: allow customization of NEWS entry format
12640         * top/maint.mk (news-date-regexp): New overridable variable.
12641         (news-date-check): Use it.
12642
12643 2009-12-04  Eric Blake  <ebb9@byu.net>
12644
12645         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12646         * lib/mgetgroups.h (xgetgroups): New prototype.
12647         * lib/mgetgroups.c (xgetgroups): New wrapper.
12648         (mgetgroups): Handle ENOSYS.
12649         * modules/mgetgroups (Depends-on): Add realloc.
12650         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12651
12652         mgetgroups: avoid argument promotion issues with -1
12653         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12654         for invalid gid_t.
12655         * tests/test-chown.h (getegid, test_chown): Likewise.
12656         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12657
12658 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12659
12660         exclude: Fix header file problems.
12661         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12662
12663 2009-12-01  Jim Meyering  <meyering@redhat.com>
12664
12665         fts: fts_open: do not let an empty string cause immediate failure
12666         This is required in support of GNU rm, for which the command
12667         "rm A '' B" must process and remove both A and B, in spite of
12668         the empty string argument.
12669         * lib/fts.c (fts_open): Do not let the presence of an empty string
12670         cause fts_open to fail immediately.  Most fts-using tools must be
12671         able to process all arguments, in order, and can be expected to
12672         diagnose such arguments themselves.
12673
12674 2009-11-30  Eric Blake  <ebb9@byu.net>
12675
12676         utimens: fix compilation error
12677         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12678         Declare variable at right scope.
12679
12680 2009-11-29  Jim Meyering  <meyering@redhat.com>
12681
12682         bootstrap: handle perl-5.11's changed --version output
12683         * build-aux/bootstrap (get_version): Handle perl separately,
12684         since perl-5.11's --version output is different.
12685
12686 2009-11-28  Jim Meyering  <meyering@redhat.com>
12687
12688         userspec: depend on the inttostr module, too
12689         * modules/userspec (Depends-on): Add inttostr.
12690
12691         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12692         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12693         number of MAXUID when it evaluates to (uid_t) -1.
12694         Likewise for group ID.  Reported by Matt McCutchen in
12695         <http://savannah.gnu.org/bugs/?28113>
12696
12697         userspec: reformat to use spaces, not TABs
12698         * lib/userspec.c: Expand TABs to spaces.
12699         Add Emacs' "indent-tabs-mode: nil" hint.
12700
12701 2009-11-27  Eric Blake  <ebb9@byu.net>
12702
12703         getopt-gnu: flush out another BSD bug
12704         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12705         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12706         flush out BSD bug.
12707         * tests/test-getopt.h (test_getopt): End lists with NULL.
12708         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12709         (test_getopt_long_posix): Enhance test.
12710         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12711         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12712         getopt-gnu.
12713         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12714         Likewise.
12715
12716 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12717
12718         * modules/idpriv-droptemp-tests (Notice): Fix text.
12719
12720 2009-11-27  Jim Meyering  <meyering@redhat.com>
12721
12722         test-xalloc-die: avoid spurious failure due to libtool argv difference
12723         In a libtool-enabled project, this test would fail due to a difference
12724         in the emitted program name, e.g.,
12725         -test-xalloc-die: memory exhausted
12726         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12727         Use program to avoid that.
12728         * modules/xalloc-die-tests (Depends-on): Add progname.
12729         * tests/test-xalloc-die.c: Include progname.h".
12730         (program_name): Remove decl.
12731         (main): Call set_program_name.
12732         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12733
12734 2009-11-26  Richard Jones  <rjones@redhat.com>
12735
12736         w32sock: leave win32 error in place.
12737         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12738
12739 2009-11-26  Eric Blake  <ebb9@byu.net>
12740
12741         init.sh: suggest to use skip_ and fail_ functions in comments
12742         * tests/init.sh: Add a sentence.
12743
12744 2009-11-25  Bruno Haible  <bruno@clisp.org>
12745
12746         init.sh: add documentation in comments
12747         * tests/init.sh: Add some developer and user documentation.
12748
12749 2009-11-26  Jim Meyering  <meyering@redhat.com>
12750
12751         init.sh: accommodate even those who specify bogus srcdir manually
12752         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12753         configure-time tests to be sanitized, so that there is no need to
12754         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12755         (with no double quotes) suffices.  However, since tests may be
12756         invoked manually, and since you may explicitly set srcdir to the
12757         name of a directory containing spaces, do quote its uses here.
12758         * tests/test-pread.sh: Likewise.
12759         Suggested by Bruno Haible.
12760
12761         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12762         * tests/test-pread.sh: Write no data into the pipe, because
12763         test-pread actually reads none.  This avoids a diagnostic,
12764         "bash: echo: write error: Broken pipe", that arises in the unusual
12765         event something is ignoring SIGPIPE, and might be interpreted
12766         as some sort of failure.  Reported by Bruno Haible.
12767
12768 2009-11-25  Jim Meyering  <meyering@redhat.com>
12769
12770         test-pread: cover failure with ESPIPE and EINVAL
12771         * tests/test-pread.c (main): Test for failure, too.
12772         * tests/test-pread.sh: Invoke with stdin on a pipe.
12773         Suggested by Eric Blake.
12774
12775         pread: improvement and fix
12776         * modules/pread (Depends-on): Depend on lseek, for portability to
12777         e.g., mingw.  Suggested by Eric Blake.
12778         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12779
12780         unistd.in.h: correct declaration of pread
12781         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12782         Reported by Richard W.M. Jones.
12783
12784         test-pread.sh: distribute the test script
12785         * modules/pread-tests (Files): Include test-pread.sh.
12786
12787         test-pread.sh: clean up
12788         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12789         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12790         That is unnecessary, since it's always ".".
12791         Suggestion from Eric Blake.
12792
12793         test-pread.sh: make executable
12794         * tests/test-pread.sh: Set executable bit.
12795         Reported by Eric Blake.
12796
12797         correct typo in test-pread.sh
12798         * tests/test-pread.sh: Add #! line.
12799
12800         test pread
12801         * tests/test-pread.c: New file.
12802         * tests/test-pread.sh: Likewise.
12803         * modules/pread-tests: Likewise.
12804
12805         pread: new module
12806         * modules/pread: New file.
12807         * lib/unistd.in.h (pread): Define/declare.
12808         * lib/pread.c (pread): New file.
12809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12810         * modules/unistd (Makefile.am): Substitute witnesses.
12811         * doc/posix-functions/pread.texi (pread): Update.
12812         * MODULES.html.sh: Add pread.
12813
12814 2009-11-25  Jim Meyering  <meyering@redhat.com>
12815
12816         tests/init.sh: new file to be used via most *.sh tests
12817         * tests/init.sh: New file.
12818
12819 2009-11-25  Eric Blake  <ebb9@byu.net>
12820
12821         utimens: work around older Linux failure with symlinks
12822         * lib/utimens.c (lutimensat_works_really): New variable.
12823         (fdutimens, lutimens): Use it to manage kernels that support
12824         nanosecond times on files, but not on symlinks.
12825         Reported by Ondřej Vašík.
12826
12827         utimes: fix configure grammar
12828         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
12829
12830 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
12831
12832         regex: Fix fastmap for multibyte character ranges.
12833         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
12834         characters when a multibyte character range is included.
12835
12836 2009-11-22  Andy Wingo  <wingo@pobox.com>
12837
12838         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
12839         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
12840
12841 2009-11-24  Bruno Haible  <bruno@clisp.org>
12842
12843         doc: Most *_l functions exist in MacOS X 10.5.
12844         * doc/posix-functions/duplocale.texi: Update platforms list.
12845         * doc/posix-functions/freelocale.texi: Likewise.
12846         * doc/posix-functions/newlocale.texi: Likewise.
12847         * doc/posix-functions/uselocale.texi: Likewise.
12848         * doc/posix-functions/isalnum_l.texi: Likewise.
12849         * doc/posix-functions/isalpha_l.texi: Likewise.
12850         * doc/posix-functions/isblank_l.texi: Likewise.
12851         * doc/posix-functions/iscntrl_l.texi: Likewise.
12852         * doc/posix-functions/isdigit_l.texi: Likewise.
12853         * doc/posix-functions/isgraph_l.texi: Likewise.
12854         * doc/posix-functions/islower_l.texi: Likewise.
12855         * doc/posix-functions/isprint_l.texi: Likewise.
12856         * doc/posix-functions/ispunct_l.texi: Likewise.
12857         * doc/posix-functions/isspace_l.texi: Likewise.
12858         * doc/posix-functions/isupper_l.texi: Likewise.
12859         * doc/posix-functions/iswalnum_l.texi: Likewise.
12860         * doc/posix-functions/iswalpha_l.texi: Likewise.
12861         * doc/posix-functions/iswblank_l.texi: Likewise.
12862         * doc/posix-functions/iswcntrl_l.texi: Likewise.
12863         * doc/posix-functions/iswctype_l.texi: Likewise.
12864         * doc/posix-functions/iswdigit_l.texi: Likewise.
12865         * doc/posix-functions/iswgraph_l.texi: Likewise.
12866         * doc/posix-functions/iswlower_l.texi: Likewise.
12867         * doc/posix-functions/iswprint_l.texi: Likewise.
12868         * doc/posix-functions/iswpunct_l.texi: Likewise.
12869         * doc/posix-functions/iswspace_l.texi: Likewise.
12870         * doc/posix-functions/iswupper_l.texi: Likewise.
12871         * doc/posix-functions/iswxdigit_l.texi: Likewise.
12872         * doc/posix-functions/isxdigit_l.texi: Likewise.
12873         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
12874         * doc/posix-functions/strcasecmp_l.texi: Likewise.
12875         * doc/posix-functions/strcoll_l.texi: Likewise.
12876         * doc/posix-functions/strfmon_l.texi: Likewise.
12877         * doc/posix-functions/strftime_l.texi: Likewise.
12878         * doc/posix-functions/strncasecmp_l.texi: Likewise.
12879         * doc/posix-functions/strxfrm_l.texi: Likewise.
12880         * doc/posix-functions/tolower_l.texi: Likewise.
12881         * doc/posix-functions/toupper_l.texi: Likewise.
12882         * doc/posix-functions/towctrans_l.texi: Likewise.
12883         * doc/posix-functions/towlower_l.texi: Likewise.
12884         * doc/posix-functions/towupper_l.texi: Likewise.
12885         * doc/posix-functions/wcscoll_l.texi: Likewise.
12886         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12887         * doc/posix-functions/wctrans_l.texi: Likewise.
12888         * doc/posix-functions/wctype_l.texi: Likewise.
12889         * doc/glibc-functions/strptime_l.texi: Likewise.
12890         * doc/glibc-functions/strtod_l.texi: Likewise.
12891         * doc/glibc-functions/strtof_l.texi: Likewise.
12892         * doc/glibc-functions/strtol_l.texi: Likewise.
12893         * doc/glibc-functions/strtold_l.texi: Likewise.
12894         * doc/glibc-functions/strtoll_l.texi: Likewise.
12895         * doc/glibc-functions/strtoul_l.texi: Likewise.
12896         * doc/glibc-functions/strtoull_l.texi: Likewise.
12897         * doc/glibc-functions/wcsftime_l.texi: Likewise.
12898         * doc/glibc-functions/wcstod_l.texi: Likewise.
12899         * doc/glibc-functions/wcstof_l.texi: Likewise.
12900         * doc/glibc-functions/wcstol_l.texi: Likewise.
12901         * doc/glibc-functions/wcstold_l.texi: Likewise.
12902         * doc/glibc-functions/wcstoll_l.texi: Likewise.
12903         * doc/glibc-functions/wcstoul_l.texi: Likewise.
12904         * doc/glibc-functions/wcstoull_l.texi: Likewise.
12905
12906 2009-11-24  Bruno Haible  <bruno@clisp.org>
12907
12908         duplocale: Fix logic bug.
12909         * lib/duplocale.c: Don't include <langinfo.h>.
12910         (_NL_LOCALE_NAME): Remove macro.
12911         (rpl_duplocale): Use setlocale instead of nl_langinfo.
12912         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
12913
12914 2009-11-23  Jim Meyering  <meyering@redhat.com>
12915
12916         test-update-copyright: don't hard-code /usr/bin/perl
12917         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
12918         perl to print the current year.  Gilles Espinasse reported that
12919         the replaced use of perl was hard-coded as /usr/bin/perl.
12920
12921 2009-11-23  Bruno Haible  <bruno@clisp.org>
12922
12923         duplocale: Add support for glibc 2.3.x.
12924         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
12925
12926 2009-11-22  Bruno Haible  <bruno@clisp.org>
12927
12928         vasnprintf: Tiny optimization.
12929         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
12930         MacOS X.
12931
12932 2009-11-22  Bruno Haible  <bruno@clisp.org>
12933
12934         Tests for module 'duplocale'.
12935         * modules/duplocale-tests: New file.
12936         * tests/test-duplocale.c: New file.
12937
12938         New module 'duplocale'.
12939         * m4/duplocale.m4: New file.
12940         * lib/locale.in.h (duplocale): New declaration.
12941         * lib/duplocale.c: New file.
12942         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
12943         gl_LOCALE_H_DEFAULTS): New macros.
12944         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
12945         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
12946         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
12947         REPLACE_DUPLOCALE.
12948         * modules/duplocale: New file.
12949         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
12950
12951 2009-11-22  Bruno Haible  <bruno@clisp.org>
12952
12953         * modules/locale-tests (configure.ac): Test for newlocale function.
12954         * tests/test-locale.c: When the system has extended locale functions,
12955         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
12956
12957         locale: Make locale_t available when possible.
12958         * lib/locale.in.h: Include <xlocale.h> when it exists.
12959         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
12960         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
12961         * modules/locale (Depends-on): Add extensions.
12962         (Makefile.am): Also substitute HAVE_XLOCALE_H.
12963         * doc/posix-headers/locale.texi: Document the problem with locale_t.
12964
12965 2009-11-22  Bruno Haible  <bruno@clisp.org>
12966
12967         Add comments.
12968         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
12969         invocation.
12970         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
12971         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12972         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12973
12974 2009-11-22  Bruno Haible  <bruno@clisp.org>
12975
12976         error: account for the possibility of freopen (stdout).
12977         * lib/error.c: Include <unistd.h>.
12978         (flush_stdout): New function, extracted from error and error_at_line.
12979         Determine stdout's fd dynamically.
12980         (error, error_at_line): Invoke flush_stdout.
12981         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
12982         * modules/error (Depends-on): Add unistd.
12983
12984 2009-11-22  Bruno Haible  <bruno@clisp.org>
12985
12986         diffseq: Add comment.
12987         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
12988
12989 2009-11-22  Jim Meyering  <meyering@redhat.com>
12990
12991         c-stack: avoid defining an unused static function
12992         * lib/c-stack.c (find_stack_direction): Do not define this function
12993         when it will not be used.
12994
12995         diffseq: avoid spurious gcc warnings
12996         * lib/diffseq.h (IF_LINT2): Define.
12997         (compareseq): Use it to initialize two members of "part".
12998         This avoids two used-uninitialized warnings.
12999
13000 2009-11-21  Jim Meyering  <meyering@redhat.com>
13001
13002         c-stack: avoid "ignoring return value of `write'" warning
13003         * lib/c-stack.c: Include "ignore-value.h".
13004         (die): Explicitly ignore each write return value.
13005         * modules/c-stack (Depends-on): Add ignore-value.
13006
13007 2009-11-21  Bruno Haible  <bruno@clisp.org>
13008
13009         diffseq: reduce scope of variable 'best'.
13010         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
13011         variable, earlier used for two different purposes.
13012
13013 2009-11-21  Jim Meyering  <meyering@redhat.com>
13014
13015         diffseq: remove useless assignment to "best"
13016         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
13017         assignment.  At that point "best" is already guaranteed to be zero.
13018
13019 2009-11-20  Eric Blake  <ebb9@byu.net>
13020
13021         build: mention ftp redirector in release announcements
13022         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
13023         values that used to come from cfg.mk; mention FTP redirect URL.
13024         * build-aux/announce-gen: Mention the mirror list.
13025         Suggested by Karl Berry.
13026
13027         nanosleep: improve port to mingw
13028         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
13029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
13030         LIB_NANOSLEEP, but only when needed.
13031         * modules/select (Link): Document LIBSOCKET.
13032         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
13033         enough.
13034
13035         nanosleep: work around cygwin bug
13036         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
13037         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
13038         bug.
13039         (getnow): Delete, not needed.
13040         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
13041         LIB_CLOCK_GETTIME.
13042         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
13043         clock-time, gettime.
13044         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
13045         bug.
13046         * modules/nanosleep-tests: New test.
13047         * tests/test-nanosleep.c: New file.
13048
13049         sleep: work around cygwin bug
13050         * lib/sleep.c (rpl_sleep): Work around the bug.
13051         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
13052         (gl_PREREQ_SLEEP): Delete unused macro.
13053         * modules/sleep (Depends-on): Add verify.
13054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13055         * modules/unistd (Makefile.am): Substitute witness.
13056         * lib/unistd.in.h (sleep): Update prototype.
13057         * doc/posix-functions/sleep.texi (sleep): Document the bug.
13058         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
13059         * modules/sleep-tests (Depends-on): Check for alarm.
13060
13061 2009-11-20  Jim Meyering  <meyering@redhat.com>
13062
13063         maint.mk: improve sc_prohibit_magic_number_exit
13064         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
13065         so it does not match uses like System.exit(1).
13066         Add comments showing how to correct all offenders.
13067
13068 2009-11-19  Eric Blake  <ebb9@byu.net>
13069
13070         xalloc-die-tests: add missing library
13071         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
13072
13073         test-xvasprintf: silence compiler warnings
13074         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
13075         empty string from gcc.
13076
13077 2009-11-19  Jim Meyering  <meyering@redhat.com>
13078
13079         xfreopen: new module, from coreutils
13080         * modules/xfreopen: New module.
13081         * lib/xfreopen.c: New file.
13082         * lib/xfreopen.h: New file.
13083         * MODULES.html.sh (File stream based Input/Output"): Add it.
13084
13085 2009-11-19  Eric Blake  <ebb9@byu.net>
13086
13087         manywarnings: depend on warnings
13088         * modules/manywarnings (Depends-on): Add warnings.
13089
13090         build: avoid compiler warnings
13091         * lib/select.c (rpl_select): Delete unused variable.
13092         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
13093
13094 2009-11-18  Eric Blake  <ebb9@byu.net>
13095
13096         tests: avoid false negative with --with-packager
13097         * tests/test-version-etc.sh: Discard packager information.
13098         * tests/test-argp-version-etc-1.sh: Likewise.
13099         Reported by Mike Frysinger.
13100
13101         utimens: fix regression on Solaris
13102         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
13103         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
13104         can only change fd timestamps via futimesat.  Instead, use an
13105         additional witness macro to avoid BSD bug.
13106         Reported by Jim Meyering.
13107
13108 2009-11-17  Eric Blake  <ebb9@byu.net>
13109
13110         usleep: use it to simplify tests
13111         * modules/stat-time-tests (Depends-on): Add usleep.
13112         (configure.ac): Drop usleep check.
13113         * modules/chown-tests (Depends-on, configure.ac): Likewise.
13114         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
13115         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
13116         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
13117         * modules/openat-tests (Depends-on, configure.ac): Likewise.
13118         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
13119         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
13120         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
13121         Likewise.
13122         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
13123         * tests/test-lchown.h (nap): Likewise.
13124         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
13125         * tests/test-stat-time.c (nap): Likewise.
13126         * tests/test-utimens-common.h (nap): Update comments.
13127
13128         usleep: new module
13129         * modules/usleep: New file.
13130         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13131         * lib/usleep.c (usleep): Likewise.
13132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13133         * modules/unistd (Makefile.am): Substitute witnesses.
13134         * lib/unistd.in.h (usleep): Add declaration.
13135         * doc/pastposix-functions/usleep.texi (usleep): Document this.
13136         * MODULES.html.sh (Date and time): Likewise.
13137         * modules/usleep-tests (Depends-on): New test.
13138         * tests/test-usleep.c: New file.
13139
13140         chown: work around OpenBSD bug
13141         * lib/chown.c (rpl_chown): Work around the bug.
13142         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
13143         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
13144         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
13145         * modules/chown (Depends-on): Add stdbool.
13146         * modules/lchown (Depends-on): Likewise.
13147         * doc/posix-functions/chown.texi (chown): Document the bug.
13148         * doc/posix-functions/lchown.texi (lchown): Likewise.
13149         * tests/test-lchown.h (test_chown): Relax test.
13150
13151         mkstemp: avoid conflict with C++ keyword template
13152         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
13153         * lib/mkostemp.c (mkostemp): Likewise.
13154         * lib/mkostemps.c (mkostemps): Likewise.
13155         * lib/mkstemp.c (mkstemp): Likewise.
13156         * lib/mkstemps.c (mkstemps): Likewise.
13157
13158         xalloc-die-tests: optimize
13159         * tests/test-xalloc-die.sh: Reduce number of processes.
13160
13161 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13162
13163         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13164         patch from ludo@gnu.org (Ludovic Courtès).
13165
13166 2009-11-17  Jim Meyering  <meyering@redhat.com>
13167
13168         version-etc: use proper license string
13169         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13170         * modules/version-etc-fsf: Likewise.
13171
13172 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13173
13174         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13175         printed to stdout.  Deal with EOL differences.
13176
13177 2009-11-17  Eric Blake  <ebb9@byu.net>
13178
13179         unsetenv: work around Solaris bug
13180         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13181         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13182         Reported by Jim Meyering.
13183
13184         vasnprintf: avoid compiler warnings
13185         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13186         variables.
13187         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13188
13189 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13190
13191         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13192         settings since xalloc-die is no longer the self test,
13193         xalloc-die.sh is.
13194
13195 2009-11-17  Jim Meyering  <meyering@redhat.com>
13196
13197         test-xalloc-die.sh: make the code agree with the commit log
13198         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13199         at the end, just in case you happen to have a test-xalloc-die
13200         program in some other PATH directory.
13201
13202         test-xalloc-die.sh: fix a portability bug
13203         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13204         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13205         Otherwise, argv[0] (as often seen in diagnostics) would be too
13206         system-dependent, sometimes with, and sometimes without the leading "./".
13207
13208         version-etc-fsf: relax license to LGPLv3+
13209         * modules/version-etc-fsf (License): Relax license.
13210
13211 2009-11-16  Eric Blake  <ebb9@byu.net>
13212
13213         xalloc-die-tests: avoid printing null pointer
13214         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13215         shell script.
13216         * tests/test-xalloc-die.c (program_name): Declare.
13217         * tests/test-xalloc-die.sh (tmpfiles): New file.
13218
13219         setenv, unsetenv: work around various bugs
13220         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13221         (setenv) [HAVE_SETENV]: Work around bugs.
13222         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13223         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13224         for bugs.
13225         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13226         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13228         * modules/stdlib (Makefile.am): Update substitutions.
13229         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13230         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13231         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13232         * modules/setenv-tests: New test.
13233         * modules/unsetenv-tests: Likewise.
13234         * tests/test-setenv.c: New file.
13235         * tests/test-unsetenv.c: Likewise.
13236
13237 2009-11-16  Jim Meyering  <meyering@redhat.com>
13238
13239         version-etc: relax license to LGPLv3+
13240         * modules/version-etc (License): Relax license.
13241
13242         better AC_REQUIRE expanded-before-required-warning avoidance
13243         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13244         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13245         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13246         which is no longer needed.
13247
13248 2009-11-16  Eric Blake  <ebb9@byu.net>
13249
13250         test-freading: clean up temporary file
13251         * tests/test-freading.c (main): Remove file on success, and use
13252         ASSERT more liberally.
13253         Reported by Jim Meyering.
13254
13255 2009-11-16  Jim Meyering  <meyering@redhat.com>
13256
13257         avoid new AC_REQUIRE expanded-before-required warnings
13258         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13259         merely using it.
13260         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13261         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13262
13263 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13264
13265         * tests/test-xalloc-die.c: New file.
13266         * modules/xalloc-die-tests: New file.
13267         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13268         XFAIL_TESTS so it can be appended by modules.
13269
13270 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13271
13272         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13273         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13274
13275 2009-11-14  Eric Blake  <ebb9@byu.net>
13276
13277         fnmatch: avoid compiler warning
13278         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13279         to silence compiler warning about mismatch signedness in ?:.
13280         Reported by Robert Millan.
13281
13282         intprops: add double-inclusion guard
13283         * lib/intprops.h: Allow idempotent includes.
13284         Suggested by Bruce Korb.
13285
13286         openat: detect Solaris fchownat bug
13287         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13288         penalizing glibc chownat when only lchownat is broken.
13289         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13290         trailing slash bugs.
13291         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13292         * modules/openat-tests (Files): Include more files.
13293         (Depends-on): Add mgetgroups, sleep, stat-time.
13294         (configure.ac): Add additional checks.
13295         (Makefile.am): Build new test.
13296         * tests/test-fchownat.c: New file.
13297
13298         lchown: detect Solaris and FreeBSD bug
13299         * lib/lchown.c (rpl_lchown): Work around bug.
13300         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13302         * modules/unistd (Makefile.am): Populate it.
13303         * lib/unistd.in.h (lchown): Update declaration.
13304         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13305         * modules/lchown-tests: New file.
13306         * tests/test-lchown.h (test_lchown): Likewise.
13307         * tests/test-lchown.c (main): Likewise.
13308
13309         chown: detect Solaris and FreeBSD bug
13310         * lib/chown.c (rpl_chown): Work around bug.
13311         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13312         (gl_PREREQ_CHOWN): Delete.
13313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13314         * modules/unistd (Makefile.am): Populate it.
13315         * lib/unistd.in.h (chown): Update declaration.
13316         * lib/lchown.c (chown): Update client.
13317         * modules/lchown (Depends-on): Add lstat.
13318         * doc/posix-functions/chown.texi (chown): Document the bug.
13319         * doc/posix-functions/getgroups.texi (getgroups): Document
13320         getgroups pitfall.
13321         * modules/chown-tests: New file.
13322         * tests/test-chown.h (test_chown): Likewise.
13323         * tests/test-chown.c (main): Likewise.
13324
13325 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13326
13327         gnulib-tool: correctly detect absence of m4 directories
13328         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13329
13330 2009-11-14  Jim Meyering  <meyering@redhat.com>
13331
13332         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13333         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13334
13335 2009-11-14  John W. Eaton  <jwe@gnu.org>
13336
13337         strftime.h: wrap funtion declaration in extern "C" block
13338         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13339
13340 2009-11-13  Eric Blake  <ebb9@byu.net>
13341
13342         getgroups: avoid compiler warning
13343         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13344
13345         getgroups: work around FreeBSD bug
13346         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13347         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13348         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13349         * tests/test-getgroups.c (main): Fix buffer overrun.
13350
13351         getgroups: avoid compilation failure
13352         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13353         * modules/getgroups (Depends-on): Add stdint.
13354
13355 2009-11-13  Jim Meyering  <meyering@redhat.com>
13356
13357         test-getgroups: avoid compilation failure
13358         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13359
13360 2009-11-13  Eric Blake  <ebb9@byu.net>
13361
13362         mgetgroups: new module, taken from coreutils
13363         * modules/mgetgroups: New file.
13364         * lib/mgetgroups.h: Likewise.
13365         * lib/mgetgroups.c (mgetgroups): Likewise.
13366         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13367         * MODULES.html.sh (Users and groups): Mention it.
13368
13369         getgroups: don't expose GETGROUPS_T to user
13370         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13371         an element at a time if GETGROUPS_T is wrong size.
13372         * lib/getugroups.h (getugroups): Change signature.
13373         * lib/unistd.in.h (getgroups): Likewise.
13374         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13375         signature needs fixing.
13376         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13377         AC_TYPE_GETGROUPS.
13378         * modules/group-member (Depends-on): Add getgroups.
13379         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13380         (group_member): Rely on getgroups replacement.
13381         * lib/getugroups.c (getugroups): Use gid_t.
13382         * tests/test-getgroups.c (main): Likewise.
13383         * NEWS: Mention the signature change.
13384         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13385         problem with signature.
13386         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13387         GETGROUPS_T is still useful for setgroups.
13388
13389         getgroups, getugroups: provide stubs for mingw
13390         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13391         * lib/getugroups.c (getugroups): Likewise.
13392         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13393         function.  Modernize replacement scheme.
13394         (gl_PREREQ_GETGROUPS): Delete.
13395         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13396         * modules/getgroups (configure.ac): Declare witness.
13397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13398         * modules/unistd (Depends-on): Substitute witness.
13399         * lib/unistd.in.h (getgroups): Declare replacement.
13400
13401         getgroups: avoid calling exit
13402         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13403         drop xalloc.
13404         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13405         dependencies.
13406         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13407         exiting, in the rare case of malloc failure.
13408
13409         getgroups: fix logic error
13410         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13411         has more than 20 groups.
13412         * modules/getgroups-tests: New test.
13413         * tests/test-getgroups.c: New file.
13414
13415 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13416
13417         * tests/test-base64.c: Improve.
13418
13419 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13420
13421         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13422         Blake <ebb9@byu.net>.
13423
13424 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13425
13426         * tests/test-xvasprintf.c: Add %s%s related checks.
13427
13428 2009-11-12  Eric Blake  <ebb9@byu.net>
13429
13430         version-etc: match standards.texi style
13431         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13432         and use <> only for URLs.
13433
13434 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13435
13436         fts: do not fail on a submount during traversal
13437         * lib/fts.c (fts_build): Read the stat info again after opening
13438         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13439         Original report at http://bugzilla.redhat.com/501848.
13440
13441 2009-11-12  Jim Meyering  <meyering@redhat.com>
13442
13443         bootstrap: sync from coreutils
13444         * build-aux/bootstrap (bootstrap_epilogue): New function.
13445         Use git_modules_config in one more place.  This make bootstrap's
13446         --gnulib-srcdir option more useful for testing.
13447
13448         bootstrap: generalize autoheader check
13449         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13450         AC_CONFIG_HEADERS.
13451
13452 2009-11-11  Eric Blake  <ebb9@byu.net>
13453
13454         mkfifoat: use new modules for Solaris and BSD bugs
13455         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13456         * lib/mkfifoat.c (mknodat): Split...
13457         * lib/mknodat.c (mknodat): ...into new file.
13458         * modules/mkfifoat (Files): Ship new file.
13459         (Depends-on): Add mkfifo, mknod.
13460         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13461         (Depends-on): Add symlink.
13462         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13463         redundant with test_mkfifo.h.
13464         (do_mkfifoat, do_mknodat): New helpers.
13465
13466         mknod: new module
13467         * modules/mknod: New file.
13468         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13469         * lib/mknod.c (mknod): Likewise.
13470         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13471         defaults.
13472         * modules/sys_stat (Makefile.am): Substitute them.
13473         * lib/sys_stat.in.h (mknod): Declare replacement.
13474         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13475         Document it.
13476         * doc/posix-functions/mknod.texi (mknod): Likewise.
13477         * modules/mknod-tests: New test.
13478         * tests/test-mknod.c: Likewise.
13479
13480         mkfifo: new module
13481         * modules/mkfifo: New file.
13482         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13483         * lib/mkfifo.c (mkfifo): Likewise.
13484         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13485         defaults.
13486         * modules/sys_stat (Makefile.am): Substitute them.
13487         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13488         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13489         Document it.
13490         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13491         * modules/mkfifo-tests: New test.
13492         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13493         from test-mkfifoat.c.
13494         * tests/test-mkfifo.c: New file.
13495
13496         readlink: detect FreeBSD bug
13497         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13498         slash on symlink.
13499         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13500         * tests/test-readlink.h (test_readlink): Enhance test.
13501
13502         symlink: detect FreeBSD bug
13503         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13504         slash on symlink.
13505         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13506         * tests/test-symlink.h (test_symlink): Enhance test.
13507
13508 2009-11-10  Eric Blake  <ebb9@byu.net>
13509
13510         link: detect FreeBSD bug
13511         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13512         symlink.
13513         * doc/posix-functions/link.texi (link): Document the bug.
13514         * tests/test-link.h (test_link): Enhance test.
13515         * tests/test-linkat.c (main): Update caller.
13516
13517         unlink, remove: detect FreeBSD bug
13518         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13519         slash on symlink.
13520         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13521         * doc/posix-functions/remove.texi (remove): Likewise.
13522         * tests/test-unlink.h (test_unlink): Enhance test.
13523         * tests/test-remove.c (main): Likewise.
13524
13525 2009-11-09  Eric Blake  <ebb9@byu.net>
13526
13527         rename: detect FreeBSD bug
13528         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13529         slash on symlink.
13530         * modules/renameat-tests (Depends-on): Add filenamecat.
13531         * tests/test-rename.h (test_rename): Allow one more errno.
13532         * tests/test-renameat.c (main): Likewise.
13533         * doc/posix-functions/rename.texi (rename): Document the bug.
13534
13535         open: detect FreeBSD bug
13536         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13537         symlink.
13538         * doc/posix-functions/open.texi (open): Document the bug.
13539         * doc/posix-functions/utimes.texi (utimes): Likewise.
13540         * tests/test-open.h (test_open): Add parameters, and test symlink
13541         handling.
13542         * tests/test-open.c (main): Adjust caller.
13543         * tests/test-fcntl-safer.c (main): Likewise.
13544         * modules/open-tests (Depends-on): Add stdbool, symlink.
13545         * modules/fcntl-safer-tests (Depends-on): Likewise.
13546         * tests/test-openat.c (main): Add test-open tests.
13547
13548         stat: detect FreeBSD bug
13549         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13550         symlink.
13551         * doc/posix-functions/stat.texi (stat): Document the bug.
13552         * tests/test-stat.h (test_stat_func): Add argument.
13553         * tests/test-stat.c (main): Adjust caller.
13554         * tests/test-fstatat.c (main): Likewise.
13555         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13556         Reported by Jim Meyering.
13557
13558 2009-11-09  James Youngman  <jay@gnu.org>
13559
13560         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13561         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13562
13563 2009-11-08  Jim Meyering  <meyering@redhat.com>
13564
13565         utimens: remove invalid futimesat call
13566         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13567         It used the file descriptor of the target file as the DIR_FD
13568         parameter and NULL as the file name.  That caused failure with
13569         errno == EFAULT on FreeBSD-8.0-rc2
13570
13571 2009-11-07  Eric Blake  <ebb9@byu.net>
13572
13573         fflush, freadseek: use fseeko, not fseek
13574         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13575         (clear_ungetc_buffer): Avoid potential problems on large files.
13576         * lib/freadseek.c (freadseek): Likewise.
13577         * modules/freadseek (Depends-on): Add fseeko.
13578         * modules/fseek (configure.ac): Set a witness.
13579         * tests/test-fflush.c (main): Use fseeko.
13580         * tests/test-fpurge.c (fseek): Disable link warning.
13581         * tests/test-freadable.c (fseek): Likewise.
13582         * tests/test-freading.c (fseek): Likewise.
13583         * tests/test-fseeko.c (fseek): Likewise.
13584         * tests/test-ftell.c (fseek): Likewise.
13585         * tests/test-ftello.c (fseek): Likewise.
13586         * tests/test-fwritable.c (fseek): Likewise.
13587         * tests/test-fwriting.c (fseek): Likewise.
13588
13589 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13590
13591         * modules/memchr (Depends-on): Drop getpagesize dependency.
13592
13593 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13594
13595         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13596         Reported by Ludovic Courtès.
13597         * build-aux/pmccabe2html: Improve example usage.
13598         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13599
13600 2009-11-06  Jim Meyering  <meyering@redhat.com>
13601
13602         do-release-commit-and-tag: New module.
13603         Automate the release-commit and tag process.
13604         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13605         * modules/do-release-commit-and-tag: New file.
13606         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13607
13608 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13609
13610         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13611         because test-select.c uses inet_pton.
13612
13613 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13614
13615         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13616         GETADDRINFO_LIB.  Bump serial number.
13617         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13618         Suggested by Eric Blake <ebb9@byu.net>.
13619
13620 2009-11-05  Eric Blake  <ebb9@byu.net>
13621
13622         strtod: detect darwin bug
13623         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13624         Reported by Leo Davis.
13625
13626         freopen-safer: new module
13627         * modules/freopen-safer: New module.
13628         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13629         * lib/freopen-safer.c (freopen_safer): New file.
13630         * lib/stdio-safer.h (freopen_safer): New declaration.
13631         * lib/stdio--.h (freopen): New override.
13632         * MODULES.html.sh (File stream based Input/Output): Mention it.
13633         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13634         freopen-safer module.
13635         * doc/posix-functions/stderr.texi (stderr): Likewise.
13636         * doc/posix-functions/stdin.texi (stdin): Likewise.
13637         * doc/posix-functions/stdout.texi (stdout): Likewise.
13638         * modules/freopen-safer-tests: New test.
13639         * tests/test-reopen-safer.c: New file.
13640
13641 2009-11-05  Jim Meyering  <meyering@redhat.com>
13642
13643         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13644         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13645
13646 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13647
13648         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13649
13650 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13651
13652         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13653
13654 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13655
13656         Fix link error.
13657         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13658         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13659
13660 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13661
13662         * tests/test-func.c: Also test value of __func__.
13663
13664 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13665
13666         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13667         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13668
13669 2009-11-05  Bruno Haible  <bruno@clisp.org>
13670
13671         Fix link error.
13672         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13673         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13674         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13675
13676 2009-11-05  Bruno Haible  <bruno@clisp.org>
13677
13678         Tests for module 'inet_pton'.
13679         * modules/inet_pton-tests: New file.
13680         * tests/test-inet_pton.c: New file.
13681
13682 2009-11-05  Bruno Haible  <bruno@clisp.org>
13683
13684         Tests for module 'inet_ntop'.
13685         * modules/inet_ntop-tests: New file.
13686         * tests/test-inet_ntop.c: New file.
13687
13688 2009-11-04  Eric Blake  <ebb9@byu.net>
13689
13690         stdlib-safer: wrap all mkstemp variants
13691         * modules/mkostemp (configure.ac): Set witness.
13692         * modules/mkostemps (configure.ac): Likewise.
13693         * modules/mkstemps (configure.ac): Likewise.
13694         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13695         (mkstemps_safer): Wrap more functions.
13696         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13697         wrapping.
13698         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13699         (mkstemps_safer): Implement the wrappers.
13700
13701         mkstemps, mkostemps: new modules
13702         * modules/mkostemps: New module.
13703         * modules/mkstemps: Likewise.
13704         * lib/mkostemps.c (mkostemps): New file.
13705         * lib/mkstemps.c (mkstemps): Likewise.
13706         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13707         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13709         * modules/stdlib (Makefile.am): Substitute them.
13710         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13711         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13712         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13713         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13714         * MODULES.html.sh (File system functions): Mention them.
13715
13716         tempname: resync from glibc
13717         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13718         same values for __GT_FILE as glibc.  Abort even when assertions
13719         are disabled.
13720         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13721         match its value otherwise.  Allow idempotent inclusion.
13722         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13723         * lib/mkostemp.c (mkostemp): Likewise.
13724         * lib/mkstemp.c (mkstemp): Likewise.
13725         * lib/tmpfile.c (tmpfile): Likewise.
13726         * NEWS: Document this.
13727
13728         utimens: fix use of futimens on older Linux
13729         * lib/utimens.c (fdutimens): Use updated, rather than original,
13730         timespec to avoid bug in older Linux kernel.
13731         Reported by Simon Josefsson.
13732
13733 2009-11-04  Bruno Haible  <bruno@clisp.org>
13734
13735         Make num_processors more flexible and consistent.
13736         * lib/nproc.h (enum nproc_query): New type.
13737         (num_processors): Add a 'query' argument.
13738         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13739         (num_processors): Add a 'query' argument. Test the value of the
13740         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13741         mingw, count the number of CPUs available for the current process.
13742         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13743         Check for sched_getaffinity and sched_getaffinity_np.
13744         * modules/nproc (Depends-on): Add c-ctype, extensions.
13745         * NEWS: Mention the change.
13746
13747 2009-11-03  Bruno Haible  <bruno@clisp.org>
13748
13749         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13750
13751 2009-11-03  Jim Meyering  <meyering@redhat.com>
13752
13753         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13754         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13755         if it is defined.
13756
13757 2009-11-02  Eric Blake  <ebb9@byu.net>
13758
13759         mktime, timegm: share common declaration
13760         * lib/mktime-internal.h: New file.
13761         * lib/mktime.c: Use it rather than open-coding a declaration.
13762         * lib/timegm.c: Likewise.
13763         * modules/mktime (Files): Ship it.
13764         * modules/timegm (Files): Likewise.
13765         Suggested by Bruno Haible.
13766
13767         test-update-copyright: update test to match script changes
13768         * tests/test-update-copyright.sh: Avoid hard-coding perl
13769         location.  Don't update *.bak created by earlier runs.
13770
13771 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13772             Simon Josefsson  <simon@josefsson.org>
13773             Bruno Haible  <bruno@clisp.org>
13774
13775         Fix link error on Solaris 8.
13776         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13777         also in libnsl. Define also INET_PTON_LIB.
13778         * modules/inet_pton (Link): New section.
13779
13780 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13781             Bruno Haible  <bruno@clisp.org>
13782
13783         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13784         * modules/inet_ntop (Link): New section.
13785         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13786
13787 2009-11-02  Eric Blake  <ebb9@byu.net>
13788
13789         maint: avoid compiler warnings in m4 macros
13790         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13791         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13792
13793 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13794
13795         * m4/pmccabe2html.m4: Remove file.
13796         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13797         function.  Change maintainer.
13798         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13799         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13800         Courtès).
13801
13802 2009-10-31  Eric Blake  <ebb9@byu.net>
13803
13804         fseeko: fix m4 regression
13805         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13806         regression from 2009-10-27.
13807         Reported by Ralf Wildenhues.
13808
13809 2009-10-31  Jim Meyering  <meyering@redhat.com>
13810
13811         inttostr: aesthetics and improved (compile-time) safety
13812         Define inttype_is_signed rather than inttype_is_unsigned,
13813         since the sole use is via "#if inttype_is_signed".
13814         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13815         inttype_is_unsigned.
13816         * lib/offtostr.c (inttype_is_signed): Likewise.
13817         * lib/uinttostr.c (inttype_is_signed): Likewise.
13818         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13819         * lib/inttostr.c (inttostr): Use verify to cross-check the
13820         inttype_is_signed value and the signedness of the actual type.
13821         * modules/inttostr (Depends-on): Add verify.
13822
13823 2009-10-30  Eric Blake  <ebb9@byu.net>
13824
13825         build: avoid compiler warnings
13826         * lib/fchmodat.c (lchmod): Mark unused variables.
13827         * lib/getopt.c (_getopt_initialize): Likewise.
13828         * lib/mktime.c (__mktime_internal): Provide prototype.
13829         * lib/inttostr.c (inttostr): Avoid compiler warning even with
13830         older gcc that do not understand #pragma GCC diagnostic.
13831         * lib/uinttostr.c (inttype_is_unsigned): Define.
13832         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
13833
13834 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13835
13836         stat: fix compilation on AIX
13837         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
13838         only see struct stat64.
13839
13840 2009-10-30  Eric Blake  <ebb9@byu.net>
13841
13842         exclude: make more robust
13843         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
13844         rather than masking a coding bug.
13845         Suggested by Bruno Haible.
13846
13847 2009-10-30  Jim Meyering  <meyering@redhat.com>
13848
13849         perl scripts: remove #!/usr/bin/perl in favor of more portable...
13850         Rather than putting #!/usr/bin/perl on the first line,
13851         start with a variant of what's recommended by "man perlrun" that
13852         invokes the first "perl" program from your shell's search path.
13853         * build-aux/gitlog-to-changelog: Replace #!... as above.
13854         Add a "Local Variables" perl mode setting.
13855         Prompted by a patch from Ludovic Courtès.
13856         Improved by Eric Blake.
13857         * build-aux/useless-if-before-free: Likewise.
13858         * build-aux/announce-gen: Likewise.
13859         * build-aux/update-copyright: Likewise.
13860
13861 2009-10-29  Eric Blake  <ebb9@byu.net>
13862
13863         filenamecat-lgpl: adjust clients
13864         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
13865         filenamecat.
13866         * modules/renameat (Depends-on): Likewise.
13867
13868         filenamecat: split into filenamecat-lgpl
13869         * modules/filenamecat-lgpl: New module.
13870         * modules/filenamecat (Files): Move library-safe files into
13871         filenamecat-lgpl.
13872         (Depends-on): Add filenamecat-lgpl.
13873         (configure.ac): Declare witness.
13874         * lib/filenamecat.h (file_name_concat): Only declare when using
13875         GPL module.
13876         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
13877         Move...
13878         * lib/filenamecat-lgpl.c: ...into new file.
13879         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
13880         (gl_FILE_NAME_CONCAT): Use it.
13881         * MODULES.html.sh (File system functions): Mention new module.
13882
13883         argp: avoid memory leak
13884         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
13885         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
13886         base_name, since the latter malloc()s and can call exit().
13887         Leak introduced 2006-07-03.
13888
13889         dirname-lgpl: adjust clients that don't need full dirname
13890         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
13891         * modules/filenamecat (Depends-on): Likewise.
13892         * modules/linkat (Depends-on): Likewise.
13893         * modules/mkancesdirs (Depends-on): Likewise.
13894         * modules/mkdir (Depends-on): Likewise.
13895         * modules/openat (Depends-on): Likewise.
13896         * modules/savewd (Depends-on): Likewise.
13897         * modules/rename (Depends-on): Likewise.
13898         (License): Relax license.
13899         * modules/mkdir-tests (Depends-on): Drop progname.
13900         (Makefile.am): Delete unneeded LDADD.
13901         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
13902
13903         dirname: split into dirname-lgpl
13904         * modules/dirname-lgpl: New module.
13905         * modules/dirname (Files): Move library-safe files into
13906         dirname-lgpl.
13907         (Depends-on): Add dirname-lgpl.
13908         (configure.ac): Declare witness.
13909         * modules/double-slash-root (License): Relax license.
13910         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
13911         module.
13912         * lib/dirname.c (dir_len, mdir_name): Move...
13913         * lib/dirname-lgpl.c: ...into new file.
13914         * lib/basename.c (last_component, base_len): Move...
13915         * lib/basename-lgpl.c: ...into new file.
13916         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
13917         (gl_DIRNAME): Use it.
13918         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
13919         Mention new module.
13920         * modules/dirname-tests (Depends-on): Add progname.
13921         * tests/test-dirname.c (program_name): Delete.
13922
13923         mkdir: make safe for libraries
13924         * modules/mkdir (Depends-on): Drop xalloc.
13925         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
13926         exit.
13927
13928         tests: avoid some compiler warnings
13929         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
13930         literals.
13931         * tests/test-memchr.c (main): Avoid type mismatch.
13932         * tests/test-arpa_inet.c (main): Avoid unused parameters.
13933         * tests/test-base64.c (main): Likewise.
13934         * tests/test-getdelim.c (main): Likewise.
13935         * tests/test-gethostname.c (main): Likewise.
13936         * tests/test-getline.c (main): Likewise.
13937         * tests/test-netinet_in.c (main): Likewise.
13938         * tests/test-select.c (open_server_socket, main): Likewise.
13939         * tests/test-select-stdin.c (main): Likewise.
13940         * tests/test-sockets.c (main): Likewise.
13941         * tests/test-strsignal.c (main): Likewise.
13942         * tests/test-sys_select.c (main): Likewise.
13943         * tests/test-sys_socket.c (main): Likewise.
13944         * tests/test-u64.c (main): Likewise.
13945         * tests/test-xfprintf-posix.c (main): Likewise.
13946         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
13947
13948         sockets: avoid compiler warning
13949         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
13950
13951         maint: detect usage(1) and other suspicious exits
13952         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
13953
13954 2009-10-29  Jim Meyering  <meyering@redhat.com>
13955
13956         timespec: long-to-int truncation could make timespec_cmp malfunction
13957         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
13958         a multiple of 2^32 nanoseconds as no difference.
13959
13960 2009-10-28  Jim Meyering  <meyering@redhat.com>
13961
13962         fprintftime: wrap macro code argument in "do {...} while(0)"
13963         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
13964         cpy macro must be a statement that can be followed by a semicolon.
13965         Now that the else clause contains a comment and is hence longer
13966         than one line, I require curly braces.  That in turn requires
13967         that we wrap this code block in the standard do...while(0).
13968
13969         fprintftime: remove stray semicolon from previous change
13970         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
13971
13972         fprintftime: avoid a warning about ignored fwrite return value
13973         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
13974         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
13975         that is unsafe.
13976         * modules/fprintftime (Depends-on): Add ignore-value.
13977
13978         exclude: avoid an unwarranted warning
13979         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
13980
13981 2009-10-27  Eric Blake  <ebb9@byu.net>
13982
13983         fseek: avoid compilation failure when fflush is replaced
13984         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
13985         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
13986         module is in use.
13987         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
13988         module is not in use; since REPLACE_FSEEK worked otherwise.
13989         (GNULIB_FTELLO): Likewise for ftell.
13990         Reported by Ian Beckwith and others.
13991
13992 2009-10-27  Bruno Haible  <bruno@clisp.org>
13993
13994         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
13995         Reported by Jim Meyering.
13996
13997 2009-10-27  Jim Meyering  <jim@meyering.net>
13998             Bruno Haible  <bruno@clisp.org>
13999
14000         Avoid warning despite dropping the return value of fwrite.
14001         * lib/unicodeio.c: Include ignore-value.h.
14002         (fwrite_success_callback): Explicitly ignore fwrite's return value.
14003         * modules/unicodeio (Depends-on): Add ignore-value.
14004
14005 2009-10-26  Eric Blake  <ebb9@byu.net>
14006
14007         areadlinkat: fix fallback path
14008         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
14009         pointer and zero.
14010
14011 2009-10-22  Pádraig Brady  <P@draigBrady.com>
14012
14013         Use a better IO block size for modern systems
14014         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
14015         * lib/md2.c: Likewise.
14016         * lib/md4.c: Likewise.
14017         * lib/md5.c: Likewise.
14018         * lib/sha1.c: Likewise.
14019         * lib/sha256.c: Likewise.
14020         * lib/sha512.c: Likewise.
14021
14022 2009-10-22  Eric Blake  <ebb9@byu.net>
14023
14024         tests: avoid several compiler warnings
14025         * tests/test-getcwd.c (main): Avoid buffer underflow.
14026         * tests/test-getdate.c (main): String literals are not safe with
14027         putenv, so use setenv.  Declare unused argument.
14028         * modules/getdate-tests (Depends-on): Add setenv.
14029         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
14030         problems with string literals in char *.
14031         * tests/test-hash.c (main): Avoid shadowing declaration.
14032         (insert_new): Treat string literals as char const *.
14033         * tests/test-getopt.h (test_getopt): Likewise.
14034         (getopt_loop): Alter types to minimize casting elsewhere.
14035         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
14036         (test_getopt_long_posix): Likewise.
14037         (do_getopt_long): Add wrapper to minimize casting.
14038         * tests/test-atexit.c (clear_temp_file): Use void.
14039         * tests/test-areadlink-with-size.c (main): Declare unused
14040         arguments.
14041         * tests/test-areadlink.c (main): Likewise.
14042         * tests/test-areadlinkat-with-size.c (main): Likewise.
14043         * tests/test-areadlinkat.c (main): Likewise.
14044         * tests/test-canonicalize-lgpl.c (main): Likewise.
14045         * tests/test-canonicalize.c (main): Likewise.
14046         * tests/test-dirent-safer.c (main): Likewise.
14047         * tests/test-dirname.c (main): Likewise.
14048         * tests/test-dup2.c (main): Likewise.
14049         * tests/test-fchdir.c (main): Likewise.
14050         * tests/test-fcntl-h.c (main): Likewise.
14051         * tests/test-fcntl-safer.c (main): Likewise.
14052         * tests/test-fdopendir.c (main): Likewise.
14053         * tests/test-fdutimensat.c (main): Likewise.
14054         * tests/test-fflush.c (main): Likewise.
14055         * tests/test-filenamecat.c (main): Likewise.
14056         * tests/test-filevercmp.c (main): Likewise.
14057         * tests/test-fopen-safer.c (main): Likewise.
14058         * tests/test-fopen.c (main): Likewise.
14059         * tests/test-fpending.c (main): Likewise.
14060         * tests/test-fpurge.c (main): Likewise.
14061         * tests/test-freading.c (main): Likewise.
14062         * tests/test-fstatat.c (main): Likewise.
14063         * tests/test-fsync.c (main): Likewise.
14064         * tests/test-futimens.c (main): Likewise.
14065         * tests/test-getndelim2.c (main): Likewise.
14066         * tests/test-gettimeofday.c (main): Likewise.
14067         * tests/test-getopt.c (main): Likewise.
14068         * tests/test-i-ring.c (main): Likewise.
14069         * tests/test-inttypes.c (main): Likewise.
14070         * tests/test-link.c (main): Likewise.
14071         * tests/test-lstat.c (main): Likewise.
14072         * tests/test-math.c (main): Likewise.
14073         * tests/test-md5.c (main): Likewise.
14074         * tests/test-memchr2.c (main): Likewise.
14075         * tests/test-memrchr.c (main): Likewise.
14076         * tests/test-mkdir.c (main): Likewise.
14077         * tests/test-mkdirat.c (main): Likewise.
14078         * tests/test-mkfifoat.c (main): Likewise.
14079         * tests/test-open.c (main): Likewise.
14080         * tests/test-openat-safer.c (main): Likewise.
14081         * tests/test-openat.c (main): Likewise.
14082         * tests/test-quotearg.c (main): Likewise.
14083         * tests/test-rawmemchr.c (main): Likewise.
14084         * tests/test-readlink.c (main): Likewise.
14085         * tests/test-remove.c (main): Likewise.
14086         * tests/test-rename.c (main): Likewise.
14087         * tests/test-renameat.c (main): Likewise.
14088         * tests/test-rmdir.c (main): Likewise.
14089         * tests/test-sha1.c (main): Likewise.
14090         * tests/test-signal.c (main): Likewise.
14091         * tests/test-sigaction.c (main): Likewise.
14092         * tests/test-stat.c (main): Likewise.
14093         * tests/test-stat-time.c (main): Likewise.
14094         * tests/test-stddef.c (main): Likewise.
14095         * tests/test-stdint.c (main): Likewise.
14096         * tests/test-stdio.c (main): Likewise.
14097         * tests/test-stdlib.c (main): Likewise.
14098         * tests/test-strchrnul.c (main): Likewise.
14099         * tests/test-strerror.c (main): Likewise.
14100         * tests/test-string.c (main): Likewise.
14101         * tests/test-strtod.c (main): Likewise.
14102         * tests/test-strverscmp.c (main): Likewise.
14103         * tests/test-symlink.c (main): Likewise.
14104         * tests/test-symlinkat.c (main): Likewise.
14105         * tests/test-sys_stat.c (main): Likewise.
14106         * tests/test-sys_time.c (main): Likewise.
14107         * tests/test-time.c (main): Likewise.
14108         * tests/test-unistd.c (main): Likewise.
14109         * tests/test-unlink.c (main): Likewise.
14110         * tests/test-unlinkat.c (main): Likewise.
14111         * tests/test-utimens.c (main): Likewise.
14112         * tests/test-utimensat.c (main): Likewise.
14113         * tests/test-version-etc.c (main): Likewise.
14114         * tests/test-wchar.c (main): Likewise.
14115         * tests/test-wctype.c (main): Likewise.
14116         * tests/test-xprintf-posix.c (main): Likewise.
14117         * tests/test-posixtm.c (main): Likewise.
14118         (STREQ): Delete unused macro.
14119         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
14120         shadowed variables.
14121         * tests/test-memchr.c (main): Likewise.
14122
14123 2009-10-21  Eric Blake  <ebb9@byu.net>
14124
14125         areadlinkat: avoid failure on older glibc
14126         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
14127         rather than mis-comparing 0 against FUNC_RESULT of char*.
14128
14129 2009-10-21  Bruno Haible  <bruno@clisp.org>
14130
14131         * modules/stpncpy (License): Relicense under LGPLv2+.
14132         Reported by David Lutterkort <lutter@redhat.com>.
14133
14134 2009-10-20  Eric Blake  <ebb9@byu.net>
14135
14136         utimensat: work around Solaris 9 bug
14137         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
14138         has trailing slash bugs.
14139         * tests/test-lutimens.h (test_lutimens): Enhance test.
14140         * tests/test-utimens.h (test_utimens): Likewise.
14141         * doc/posix-functions/utime.texi (utime): Enhance documentation.
14142         * doc/posix-functions/utimes.texi (utimes): Likewise.
14143         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14144         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
14145         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
14146         * doc/posix-functions/futimens.texi (futimens): Likewise.
14147
14148         fdutimensat: new module
14149         * modules/fdutimensat: New file.
14150         * lib/fdutimensat.c (fdutimensat): Likewise.
14151         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
14152         * MODULES.html.sh (File system functions): Mention module.
14153         * modules/fdutimensat-tests: New test.
14154         * tests/test-fdutimensat.c: Likewise.
14155
14156         doc: regenerate INSTALL
14157         * doc/INSTALL: Reflect recent autoconf update.
14158         * doc/INSTALL.ISO: Likewise.
14159         * doc/INSTALL.UTF-8: Likewise.
14160
14161 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14162
14163         acl: warn if ACL support is not detected
14164         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14165
14166 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14167
14168         * lib/nproc.h: Add extern "C" block for C++.
14169
14170 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14171             Bruno Haible  <bruno@clisp.org>
14172
14173         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14174         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14175         * doc/posix-functions/isalpha.texi: Likewise.
14176         * doc/posix-functions/isblank.texi: Likewise.
14177         * doc/posix-functions/iscntrl.texi: Likewise.
14178         * doc/posix-functions/isdigit.texi: Likewise.
14179         * doc/posix-functions/isgraph.texi: Likewise.
14180         * doc/posix-functions/islower.texi: Likewise.
14181         * doc/posix-functions/isprint.texi: Likewise.
14182         * doc/posix-functions/ispunct.texi: Likewise.
14183         * doc/posix-functions/isspace.texi: Likewise.
14184         * doc/posix-functions/isupper.texi: Likewise.
14185         * doc/posix-functions/isxdigit.texi: Likewise.
14186
14187 2009-10-18  Bruno Haible  <bruno@clisp.org>
14188
14189         Tests for module 'isblank'.
14190         * modules/isblank-tests: New file.
14191         * tests/test-isblank.c: New file.
14192
14193         New module 'isblank'.
14194         * lib/isblank.c: New file.
14195         * m4/isblank.m4: New file.
14196         * modules/isblank: New file.
14197         * doc/posix-functions/isblank.texi: Mention the new module.
14198
14199 2009-10-18  Bruno Haible  <bruno@clisp.org>
14200
14201         New module 'ctype'.
14202         * lib/ctype.in.h: New file.
14203         * m4/ctype.m4: New file.
14204         * modules/ctype: New file.
14205         * doc/posix-headers/ctype.texi: Mention the new module.
14206
14207 2009-10-18  Jim Meyering  <meyering@redhat.com>
14208
14209         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14210         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14211         right after its initialization, rather than farther down.
14212         Keeping these in close proximity makes it easier to ensure
14213         that each such variable is initialized.  E.g.,
14214
14215             LIB_CLOCK_GETTIME=
14216             AC_SUBST([LIB_CLOCK_GETTIME])
14217
14218         This change also increments these serial numbers.
14219         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14220         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14221         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14222
14223 2009-10-18  Bruno Haible  <bruno@clisp.org>
14224
14225         Don't let environment variables perturb build.
14226         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14227         (gl_PREREQ_GETHRXTIME): ... not here.
14228
14229 2009-10-18  Bruno Haible  <bruno@clisp.org>
14230
14231         Avoid symlink attack in localcharset module.
14232         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14233         (O_NOFOLLOW): Define fallback.
14234         (get_charset_aliases): Don't open the file if it is a symbolic link.
14235         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14236         gl_FCNTL_H.
14237         (gl_FCNTL_H): Require it.
14238         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14239         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14240         Reported by Fergal Glynn <fglynn@veracode.com>.
14241
14242 2009-10-18  Bruno Haible  <bruno@clisp.org>
14243
14244         Implement nproc for mingw.
14245         * lib/nproc.c: Include <windows.h>
14246         (num_processors): On native Windows platforms, try GetSystemInfo.
14247
14248 2009-10-18  Bruno Haible  <bruno@clisp.org>
14249
14250         Implement nproc for IRIX.
14251         * lib/nproc.c: Include <sys/sysmp.h>.
14252         (num_processors): On IRIX systems, try sysmp.
14253         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14254
14255 2009-10-18  Bruno Haible  <bruno@clisp.org>
14256
14257         Implement nproc for HP-UX.
14258         * lib/nproc.c: Include <sys/pstat.h>
14259         (num_processors): On HP-UX systems, try pstat_getdynamic.
14260         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14261         pstat_getdynamic.
14262
14263 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14264             Bruno Haible  <bruno@clisp.org>
14265
14266         Implement nproc for NetBSD, OpenBSD.
14267         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14268         (ARRAY_SIZE): New macro.
14269         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14270         * m4/nproc.m4: New file.
14271         * modules/nproc (Files): Add m4/nproc.m4.
14272         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14273         (Makefile.am): Instead, augment lib_SOURCES.
14274
14275 2009-10-18  Bruno Haible  <bruno@clisp.org>
14276
14277         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14278         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14279         sys/param.h.
14280
14281 2009-10-16  Eric Blake  <ebb9@byu.net>
14282
14283         utimensat: new module
14284         * modules/utimensat: New file.
14285         * lib/utimensat.c (utimensat): Likewise.
14286         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14287         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14288         so we can work around Linux bugs.
14289         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14290         * modules/sys_stat (Makefile.am): Substitute them.
14291         * lib/sys_stat.in.h (utimensat): Declare it.
14292         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14293         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14294         * modules/utimensat-tests: New test.
14295         * tests/test-utimensat.c: Likewise.
14296
14297         utimens: let lutimens work on non-symlinks
14298         * lib/utimens.c (lutimens): Fall back to utimens rather than
14299         failing with ENOSYS, when file is not a symlink.
14300         (utimens): Reduce redirection.
14301         * tests/test-lutimens.h (test_lutimens): Update test to cover
14302         non-symlinks.
14303         * tests/test-utimens.h (test_utimens): Update test to cover
14304         symlinks.
14305         * tests/test-utimens.c (main): Update caller.
14306
14307         utimens: cache whether utimensat syscall works
14308         * lib/utimens.c (utimensat_works_really): New cache variable.
14309         (fdutimens, lutimens): Use it to avoid failing syscall.
14310
14311         test-stat-time, test-utimens: improve portability
14312         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14313         ext4 on alpha, and for cygwin.
14314         * tests/test-utimens-common.h: New file.
14315         (nap): Factor delays into single function.
14316         * tests/test-lutimens.h (test_lutimens): Use new header.
14317         * tests/test-futimens.h (test_futimens): Likewise.
14318         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14319         timestamps to occur from same machine, as was done previously for
14320         test_utimens.
14321         * modules/utimens-tests (Files): Ship new file.
14322         * modules/futimens-tests (Files): Likewise.
14323         Reported in part by Jim Meyering.
14324
14325         sys_stat: sort replacement declarations
14326         * lib/sys_stat.in.h: Sort declarations.
14327         * lib/futimens.c (futimens): Fix typo.
14328
14329 2009-10-15  Jim Meyering  <meyering@redhat.com>
14330
14331         don't let environment settings perturb build
14332         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14333         could cause a configure-time and/or build-time malfunction.
14334         Typically, a configure-time function-in-library test is performed
14335         via code like this:
14336
14337           LIB_VAR=
14338           AC_SUBST([LIB_VAR])
14339           prefix_saved_LIBS=$LIBS
14340             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14341                        [test "$ac_cv_search_FUNC" = "none required" ||
14342                         LIB_VAR=$ac_cv_search_FUNC])
14343           LIBS=$prefix_saved_LIBS
14344
14345         However, in each of the files affected by this change, the LIB_VAR=
14346         initialization was omitted.  Thus, when set in the environment, its
14347         value would propagate into generated Makefiles when FUNC is not found
14348         in LIB_NAME.
14349         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14350         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14352
14353 2009-10-14  Eric Blake  <ebb9@byu.net>
14354
14355         fchdir: avoid infinite recursion in mingw
14356         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14357         recursing.
14358
14359         test-stat-time: port to mingw
14360         * tests/test-stat-time.c (force_unlink): Return a value.
14361         (test_ctime) [W32]: Fix compilation error.
14362         (nap): Don't call usleep with too large an argument.  Use
14363         force_unlink.
14364         * doc/pastposix-functions/usleep.texi (usleep): Document the
14365         portability issue.
14366
14367 2009-10-13  Jim Meyering  <meyering@redhat.com>
14368
14369         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14370         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14371         * modules/pipe-filter-ii: Likewise.
14372         * modules/sys_socket-tests: Likewise.
14373         * modules/tsearch-tests: Likewise.
14374         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14375         (check): Depend on it.
14376
14377 2009-10-12  Eric Blake  <ebb9@byu.net>
14378
14379         utimens-tests: port to NFS file systems
14380         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14381         comparisons to avoid spurious failures from timestamp drift
14382         between NFS machines.
14383
14384 2009-10-12  Eric Blake  <ebb9@byu.net>
14385
14386         stat-time-tests: minor cleanups
14387         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14388         * tests/test-stat-time.c (nap): Separate assignment from call.
14389         Suggested by Paolo Bonzini and Bruno Haible.
14390
14391         sys_stat: guarantee struct timespec
14392         * lib/sys_stat.in.h (includes): Always include <time.h>
14393         * modules/sys_stat (Depends-on): Add time.
14394         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14395         mode_t permission values.
14396         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14397         get at subsecond timestamps.
14398
14399 2009-10-10  Eric Blake  <ebb9@byu.net>
14400
14401         futimens: new module
14402         * modules/futimens: New file.
14403         * lib/futimens.c (futimens): Likewise.
14404         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14405         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14406         we can work around Linux bugs.
14407         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14408         * modules/sys_stat (Makefile.am): Substitute them.
14409         * lib/sys_stat.in.h (futimens): Declare it.
14410         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14411         * doc/posix-functions/futimens.texi (futimens): Likewise.
14412         * modules/futimens-tests: New test.
14413         * tests/test-futimens.c: Likewise.
14414
14415         utimens: introduce fdutimens
14416         * lib/utimens.h (fdutimens): New prototype.
14417         * lib/utimens.c (gl_futimens): Move guts...
14418         (fdutimens): ...to new interface.
14419         * tests/test-utimens.c (do_fdutimens): Use it.
14420
14421         utimens: add UTIME_NOW and UTIME_OMIT support
14422         * lib/utimens.c (validate_timespec, update_timespec): New helper
14423         functions.
14424         (gl_futimens, lutimens): Use them.
14425         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14426         stdbool, sys_stat.
14427         (Link): Mention resulting library dependency.
14428         * modules/utimecmp (Link): Likewise.
14429         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14430         (Makefile.am): Pick up library dependency.
14431         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14432         definition.
14433         * tests/test-sys_stat.c: Test the definitions.
14434         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14435         * NEWS: Document library dependency.
14436
14437         utimecmp: support symlink timestamps
14438         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14439         hashing when possible.  Use pathconf when available.
14440         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14441         * modules/utimecmp (Depends-on): Add lstat.
14442
14443         utimens: add lutimens interface
14444         * lib/utimens.c (lutimens): New function.
14445         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14446         * lib/utimens.h (lutimens): Declare new interface.
14447         * tests/test-utimens.c (main): Enhance test.
14448         * tests/test-lutimens.h (test_lutimens): New file.
14449         * modules/utimens-tests (Files): Distribute it.
14450         (Depends-on): Add symlink.
14451         (configure.ac): Check for usleep.
14452
14453         utimens: validate futimens usage
14454         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14455         fewer syscalls on failure later on.  Avoid compiler warning on
14456         mingw.
14457         * modules/utimens (Depends-on): Add dup2.
14458
14459         utimens: add test
14460         * modules/utimens-tests: New test.
14461         * tests/test-utimens.h: New file.
14462         * tests/test-futimens.h: Likewise.
14463         * tests/test-utimens.c: Likewise.
14464
14465         doc: mention timestamp portability issues
14466         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14467         instead.
14468         * doc/posix-functions/utime.texi (utime): Likewise.
14469         * doc/posix-functions/utimes.texi (utimes): Likewise.
14470         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14471         instead.
14472         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14473         module.
14474         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14475         Mention weakness with symlink timestamps.
14476         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14477         to utimensat/futimens instead.
14478         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14479
14480         test-dup2: enhance test
14481         * tests/test-dup2.c (main): Also check AT_FDCWD.
14482
14483         test-stat-time: avoid more spurious failures
14484         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14485         xfs; and avoid race if the two timestamps cross quantization edge.
14486
14487         relocatable: prefer 'file system' over 'filesystem'
14488         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14489         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14490         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14491         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14492         * lib/relocatable.c (compute_curr_prefix): Likewise.
14493
14494 2009-10-10  Jim Meyering  <meyering@redhat.com>
14495
14496         stat-time-tests: check for the usleep function
14497         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14498
14499 2009-10-10  Bruno Haible  <bruno@clisp.org>
14500
14501         * modules/xnanosleep: Put the Link section after the Include section.
14502
14503 2009-10-09  Eric Blake  <ebb9@byu.net>
14504
14505         dup2: work around FreeBSD 6.1 bug
14506         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14507         * doc/posix-functions/dup2.texi (dup2): Document it.
14508         Reported by Nelson H. F. Beebe and Jim Meyering.
14509
14510         test-stat-time: port to buggy NFS clients
14511         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14512         (test_ctime): Also skip test if mtime and ctime are skewed.
14513
14514         maint: prefer 'file system' over 'filesystem'
14515         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14516         * doc/posix-functions/lstat.texi (lstat): Likewise.
14517         * lib/file-has-acl.c (file_has_acl): Likewise.
14518         * lib/fwriteerror.c [TEST]: Likewise.
14519         * tests/test-areadlink.h (test_areadlink): Likewise.
14520         * tests/test-areadlinkat-with-size.c (main): Likewise.
14521         * tests/test-areadlinkat.c (main): Likewise.
14522         * tests/test-canonicalize-lgpl.c (main): Likewise.
14523         * tests/test-canonicalize.c (main): Likewise.
14524         * tests/test-fstatat.c (main): Likewise.
14525         * tests/test-linkat.c (main): Likewise.
14526         * tests/test-lstat.h (test_lstat_func): Likewise.
14527         * tests/test-mkdir.h (test_mkdir): Likewise.
14528         * tests/test-readlink.h (test_readlink): Likewise.
14529         * tests/test-remove.c (main): Likewise.
14530         * tests/test-rename.h (test_rename): Likewise.
14531         * tests/test-renameat.c (main): Likewise.
14532         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14533         * tests/test-symlink.h (test_symlink): Likewise.
14534         * tests/test-symlinkat.c (main): Likewise.
14535         * tests/test-unlink.h (test_unlink_func): Likewise.
14536         * tests/test-unlinkat.c (main): Likewise.
14537
14538         maint: make realtime library usage explicit
14539         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14540         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14541         * modules/settime (Link): Likewise.
14542         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14543
14544         test-stat-time: speed up execution
14545         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14546         warning on mingw.
14547         (nap): New helper function.
14548         (prepare_test): Use it to reduce sleep time.
14549         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14550         execution.
14551         * modules/stat-time-tests (configure.ac): Check for usleep.
14552
14553 2009-10-09  Jim Meyering  <meyering@redhat.com>
14554
14555         selinux-h: always use getfilecon wrappers
14556         * lib/getfilecon.c: New file.
14557         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14558         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14559         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14560         (fgetfilecon): Provide a stub.
14561         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14562         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14563         file unconditionally.
14564         When <selinux/selinux.h> is found, arrange to use wrappers.
14565         * modules/selinux-h (Files): Add getfilecon.c.
14566         (Makefile.am): Substitute include-next-related bits
14567         into the now-always-generated selinux/selinux.h file.
14568         * doc/glibc-functions/lgetfilecon.texi: New file.
14569         * doc/glibc-functions/fgetfilecon.texi: New file.
14570         * doc/glibc-functions/getfilecon.texi: New file.
14571         * doc/glibc-functions/getfilecon-desc.texi: New file.
14572         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14573         which to pull in the new files.
14574         * MODULES.html.sh (Misc): Add selinux-h.
14575
14576 2009-10-08  Jim Meyering  <meyering@redhat.com>
14577
14578         unistd: fix comment typo
14579         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14580
14581 2009-10-08  Eric Blake  <ebb9@byu.net>
14582
14583         areadlink: use SIZE_MAX consistently
14584         * modules/areadlink (Depends-on): Add stdint.
14585         * modules/areadlink-with-size (Depends-on): Likewise.
14586         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14587         gives NULL; drop sys/types, since unistd gives size_t; and add
14588         stdint for SIZE_MAX.
14589         (SIZE_MAX): Rely on headers.
14590         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14591         and add stdint.
14592         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14593         (SIZE_MAX): Likewise.
14594         (INITIAL_BUF_SIZE): Turn into enum.
14595         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14596
14597 2009-10-08  Jim Meyering  <meyering@redhat.com>
14598
14599         areadlinkat: avoid compilation failure
14600         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14601         Fix typo in comment.
14602
14603 2009-10-07  Eric Blake  <ebb9@byu.net>
14604
14605         areadlinkat-with-size: new module
14606         * modules/areadlinkat-with-size: New module.
14607         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14608         * lib/areadlink.h (areadlinkat): Declare it.
14609         * MODULES.html.sh (File system functions): Mention it.
14610         * modules/areadlinkat-with-size-tests: New test.
14611         * tests/test-areadlinkat-with-size.c: New file.
14612
14613         xreadlinkat: new module
14614         * modules/xreadlinkat: New module.
14615         * lib/xreadlinkat.c (xreadlinkat): New file.
14616         * lib/xreadlink.h (xreadlinkat): Declare it.
14617         * MODULES.html.sh (File system functions): Mention it.
14618
14619         areadlinkat: new module
14620         * lib/at-func.c (FUNC_FAIL): New define.
14621         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14622         * modules/areadlinkat: New module.
14623         * lib/linkat.c (areadlinkat): Move...
14624         * lib/areadlinkat.c (areadlinkat): ...to new file.
14625         * lib/areadlink.h (areadlinkat): Declare it.
14626         * modules/linkat (Depends-on): Add areadlinkat.
14627         * MODULES.html.sh (File system functions): Mention it.
14628         * modules/areadlinkat-tests: New test.
14629         * tests/test-areadlinkat.c: New file.
14630
14631         areadlink, areadlink-with-size: add tests
14632         * modules/areadlink-tests: New test.
14633         * modules/areadlink-with-size-tests: Likewise.
14634         * tests/test-areadlink.h: New file.
14635         * tests/test-areadlink.c: Likewise.
14636         * tests/test-areadlink-with-size.c: Likewise.
14637
14638         maint: minor cleanups
14639         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14640         _UNUSED_PARAMETER_ instead.
14641         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14642         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14643         * modules/linkat-tests (Files): Distribute test-link.h.
14644
14645         openat, utimens: whitespace cleanup
14646         * lib/openat.c: Prefer space throughout, rather than mix of 8
14647         spaces vs. tabs.
14648         * lib/at-func.c: Likewise.
14649         * lib/utimens.c: Likewise.
14650
14651         openat: avoid using wrong fd
14652         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14653         working directory chooses same fd.
14654         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14655
14656         mkdir, mkdirat: fix cygwin 1.5.x bug
14657         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14658         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14659         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14660         bug.
14661         (gl_PREREQ_MKDIR): Delete unused macro.
14662         * modules/mkdir (Files): Track file rename.
14663         (configure.ac): Update macro name.
14664         * modules/openat (Depends-on): Add mkdir.
14665         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14666
14667         mkdir, mkdirat: add tests
14668         * modules/mkdir-tests: New test.
14669         * tests/test-mkdir.h: New file.
14670         * tests/test-mkdir.c: Likewise.
14671         * tests/test-mkdirat.c: Likewise.
14672         * modules/openat-tests (Files): Add new files.
14673         (Makefile.am): Run new test.
14674
14675 2009-10-06  Eric Blake  <ebb9@byu.net>
14676
14677         doc: tweak *at function documentation
14678         * doc/posix-functions/faccessat.texi (faccessat): Mention
14679         known issue with replacement.
14680         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14681         * doc/posix-functions/linkat.texi (linkat): Likewise.
14682         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14683         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14684         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14685         * doc/posix-functions/renameat.texi (renameat): Likewise.
14686         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14687
14688         openat: fix GNU/Hurd bug in unlinkat
14689         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14690         broken.
14691         * doc/posix-functions/unlink.texi (unlink): Document this.
14692         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14693
14694         fdopendir: fix GNU/Hurd bug
14695         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14696         allowing non-directory fds.
14697         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14698         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14699         * modules/dirent (Makefile.am): Substitute it.
14700         * lib/dirent.in.h (fdopendir): Declare replacement.
14701         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14702         * tests/test-fdopendir.c (main): Test something other than
14703         /dev/null, since on Hurd that behaves like a directory.
14704
14705         test-symlink: port to GNU/Hurd
14706         * tests/test-symlink.h (test_symlink): Relax expected errno.
14707
14708         doc: tweak more cygwin information
14709         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14710         now compatible with glibc.
14711         * doc/posix-functions/getopt.texi (getopt): Likewise.
14712
14713         getopt-gnu: add another test
14714         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14715         guarantee behavior relied on by m4.
14716         * tests/test-getopt.c (main): Use it.
14717         * modules/getopt-posix-tests (Depends-on): Add setenv.
14718         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14719
14720         getopt: fix compilation on darwin
14721         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14722         include.
14723         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14724         Reported by Ludovic Courtès.
14725
14726 2009-10-06  Bruno Haible  <bruno@clisp.org>
14727
14728         * modules/size_max (Description): Discourage its use.
14729         Reported by Simon Josefsson.
14730
14731 2009-10-06  Jim Meyering  <meyering@redhat.com>
14732
14733         linkat: avoid compilation failure
14734         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14735
14736 2009-10-05  Eric Blake  <ebb9@byu.net>
14737
14738         linkat: support Linux 2.6.17
14739         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14740         linkat on Linux, but allow cache variable override.
14741         * lib/linkat.c (rpl_linkat): Define override.
14742         * modules/linkat (Depends-on): Add symlinkat.
14743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14744         * modules/unistd (Makefile.am): Substitute it.
14745         * lib/unistd.in.h (linkat): Declare replacement.
14746         Reported by Pádraig Brady.
14747
14748         quotearg: port test to systems with C.UTF-8 locale
14749         * tests/test-quotearg.c (struct result_strings): Add another
14750         member, differentiating between C.ASCII and C.UTF-8 handling.
14751         (compare_strings): Add parameter.
14752         (main): Adjust all callers.
14753
14754         getopt: avoid clash with FreeBSD _getopt_internal
14755         * lib/getopt.in.h (_getopt_internal): Override the name.
14756         * lib/getopt_int.h (includes): Pick up any overrides.
14757         Reported by Reuben Thomas.
14758
14759         hash: allow C89 compilation
14760         * lib/hash.c (check_tuning): Move declaration before statement.
14761         Reported by Reuben Thomas.
14762
14763 2009-10-05  Karl Berry  <karl@gnu.org>
14764
14765         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14766
14767 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14768             Bruno Haible  <bruno@clisp.org>
14769
14770         * lib/uname.c (uname): Use a table-driven algorithm to compute
14771         Windows NT versions.
14772
14773 2009-10-04  Bruno Haible  <bruno@clisp.org>
14774
14775         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14776         program_invocation_short_name.
14777         * modules/progname (configure.ac): Test for presence of
14778         program_invocation_short_name.
14779         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14780
14781 2009-10-04  Bruno Haible  <bruno@clisp.org>
14782
14783         * lib/progname.c (set_program_name): Fix comment.
14784         Reported by Jim Meyering.
14785
14786 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14787             Bruno Haible  <bruno@clisp.org>
14788
14789         * lib/uname.c: Include <string.h>.
14790         (uname): Do only one call to GetVersionEx in the common case.
14791
14792 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14793             Bruno Haible  <bruno@clisp.org>
14794
14795         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14796         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14797         (uname): Add support for Windows CE and various non-x86 CPU types.
14798
14799 2009-10-03  Bruno Haible  <bruno@clisp.org>
14800
14801         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14802         invocation to tests/configure.ac.
14803         Reported by Ian Beckwith <ianb@erislabs.net>.
14804
14805 2009-10-02  Eric Blake  <ebb9@byu.net>
14806
14807         fchdir: avoid compiler warning
14808         * lib/fchdir.c (canonicalize_file_name)
14809         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14810
14811         test-open: support mingw errno values
14812         * tests/test-open.h (test_open): Relax test.
14813         * tests/test-fopen.h (test_fopen): Likewise.
14814         * tests/test-openat-safer.c (main): Likewise.
14815
14816         open: fix opening directory on mingw
14817         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14818
14819         test-open: on GNU/Hurd, /dev/null is a directory
14820         * tests/test-fopen.h (main): Rename...
14821         (test_fopen): ...to this.  Use a guaranteed non-directory when
14822         confirming open behavior on trailing slash.
14823         * tests/test-openat-safer.c (main): Likewise.
14824         * tests/test-open.h (main): Likewise....
14825         (test_open): ...to this.
14826         * tests/test-fopen.c (main): Adjust caller.
14827         * tests/test-fopen-safer.c (main): Likewise.
14828         * tests/test-open.c (main): Likewise.
14829         * tests/test-fcntl-safer.c (main): Likewise.
14830         Reported by Samuel Thibault.
14831
14832         rename, fchdir: don't ignore chdir failure
14833         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
14834         * lib/rename.c (rpl_rename) [W32]: Likewise.
14835         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
14836         an empty destination directory if source cannot be renamed,
14837         although there is still possibility for failure.
14838         * doc/posix-functions/rename.texi (rename): Document the race.
14839         Reported by Jim Meyering.
14840
14841         maint: cleanup whitespace in recent commits
14842         * lib/rename.c (rpl_rename): Remove tabs.
14843         * tests/test-link.h (test_link): Likewise.
14844         * lib/fchdir.c (get_name): Likewise.
14845         Reported by Jim Meyering.
14846
14847 2009-10-02  Ben Pfaff  <blp@gnu.org>
14848
14849         relocatable-prog-wrapper: Add missing dependency on
14850         double-slash-root.
14851         * modules/relocatable-prog-wrapper: Add dependency.
14852         Reported by Ian Beckwith <ianb@erislabs.net>.
14853
14854 2009-10-02  Eric Blake  <ebb9@byu.net>
14855
14856         renameat: fix Solaris bugs
14857         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
14858         needed fixing.
14859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
14860         * modules/stdio (Makefile.am): Substitute it.
14861         * lib/stdio.in.h (renameat): Declare replacement.
14862         * lib/renameat.c (rpl_renameat): Implement fix.
14863
14864         renameat: new module
14865         * modules/renameat: New file.
14866         * lib/renameat.c (renameat): Likewise.
14867         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
14868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
14869         * modules/stdio (Makefile.am): Substitute them.
14870         * lib/stdio.in.h (renameat): Declare it.
14871         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14872         * doc/posix-functions/renameat.texi (renameat): Likewise.
14873         * modules/renameat-tests: New test.
14874         * tests/test-renameat.c: Likewise.
14875
14876         rename: fix mingw bugs
14877         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
14878         directory overwrite bugs.
14879
14880         rename: fix another cygwin 1.5 bug
14881         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
14882         checks.
14883         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
14884         unnecessary cygwin workarounds.  Also work around bug with moving
14885         full directory onto an empty one.
14886         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
14887
14888         rename-dest-slash: merge into rename module
14889         * modules/rename-dest-slash (Status): Mark obsolete.
14890         (Depends-on): Add rename.
14891         (Files): Let rename do it all.
14892         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
14893         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
14894         * m4/rename-dest-slash.m4: ...so this file can be deleted.
14895         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
14896         * lib/rename.c (rpl_rename): Update comments.
14897
14898         rename: fix cygwin 1.5.x bugs
14899         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
14900         * lib/rename.c (rpl_rename): Work around them.
14901         * modules/rename (Depends-on): Add same-inode.
14902
14903         rename: fix Solaris 10 bug
14904         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14905         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
14906         was the only bug.
14907
14908         rename: fix Solaris 9 bug
14909         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
14910         on non-directory.  Avoid calling exit.
14911         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
14912         strdup.
14913         * modules/rename-tests (Depends-on): Drop lstat.
14914         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
14915         (gl_PREREQ_RENAME): Delete unused macro.
14916
14917         rename-dest-slash: fix NetBSD bug
14918         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
14919         links.
14920         * modules/rename-dest-slash (Depends-on): Add same-inode.
14921
14922         rename-tests: new test, exposes several platform bugs
14923         * modules/rename-tests: New file.
14924         * tests/test-rename.h: Likewise.
14925         * tests/test-rename.c: Likewise.
14926         * doc/posix-functions/rename.texi (rename): Improve documentation,
14927         including bugs that will eventually be fixed in gnulib.
14928
14929 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
14930
14931         * lib/uname.c: Include <stdlib.h>
14932         (uname): Assume version info is available.
14933
14934 2009-10-02  Jim Meyering  <meyering@redhat.com>
14935
14936         gnu-web-doc-update: correct --help output
14937         * build-aux/gnu-web-doc-update: Make --help output relevant.
14938
14939         gnu-web-doc-update: add standard options
14940         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
14941
14942         gnu-web-doc-update: New module.
14943         Use this script to automatically update the on-line web documentation
14944         for your GNU project at http://www.gnu.org/software/$pkg/manual/
14945         * modules/gnu-web-doc-update: New file, from coreutils.
14946         * build-aux/gnu-web-doc-update: New script.
14947
14948 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
14949
14950         link: LoadLibrary is not needed.
14951         * lib/link.c: Use GetModuleHandle.
14952
14953 2009-10-01  Eric Blake  <ebb9@byu.net>
14954
14955         getopt: bump serial number
14956         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
14957         change.
14958
14959         tests: tighten link, rmdir, and remove tests
14960         * tests/test-link.h (includes): No need to use <config.h> here.
14961         Clean up if directory hard link was created, otherwise test for
14962         trailing '.'.
14963         * tests/test-linkat.c (main): Simplify.
14964         * tests/test-remove.c (main): Enhance test for trailing '.'.
14965         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14966
14967 2009-10-01  Jim Meyering  <meyering@redhat.com>
14968
14969         maint.mk: requiring "make major" was annoying, for a "minor" release.
14970         What is intended is "stable", to contrast with alpha and beta,
14971         so require "make stable", not "make major".
14972         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
14973         (get_tool_versions): Likewise.
14974         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
14975
14976 2009-09-30  Ben Pfaff  <blp@gnu.org>
14977
14978         Fix broken build of replacement for Windows tmpfile().
14979         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
14980         flags argument added along with the 'mkostemp' module.
14981
14982 2009-09-28  Bruno Haible  <bruno@clisp.org>
14983
14984         Avoid identifier clash with POSIX function 'remove' defined as a macro.
14985         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
14986         to 'remove_elt'.
14987         (gl_list_remove): Update.
14988         * lib/gl_list.c (gl_list_remove): Update.
14989         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
14990         to 'remove_elt'.
14991         (gl_oset_remove): Update.
14992         * lib/gl_list.c (gl_oset_remove): Update.
14993         Reported by Eric Blake.
14994
14995 2009-09-28  Eric Blake  <ebb9@byu.net>
14996
14997         doc: mention yet more cygwin 1.7 status
14998         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
14999         cygwin.
15000         * doc/glibc-functions/execvpe.texi (execvpe): New file.
15001         * doc/gnulib.texi (Glibc unistd.h): Mention it.
15002
15003         argp: fix test failure
15004         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
15005         that are not upper-case.  Pass correct range to tolower.
15006
15007 2009-09-27  Jim Meyering  <meyering@redhat.com>
15008
15009         test-yesno: work around sparc-dash here-document infelicity
15010         Without this change, the literal \177 byte in a here document
15011         would make dash 0.5.5.1-3 access uninitialized memory.
15012         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
15013         Instead, use a marker, "@", and filter through tr to create the desired
15014         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
15015
15016 2009-09-27  Bruno Haible  <bruno@clisp.org>
15017
15018         Disable untested support for new flavours of ACLs on AIX.
15019         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
15020         progress.
15021         * lib/set-mode-acl.c (qset_acl): Likewise.
15022
15023 2008-12-07  Bruno Haible  <bruno@clisp.org>
15024
15025         Add support for new flavours of ACLs on AIX. (Untested.)
15026         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
15027         (file_has_acl): Add support for newer AIX.
15028         * lib/set-mode-acl.c (qset_acl): Likewise.
15029         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
15030         Rainer Tammer <tammer@tammer.net>.
15031
15032 2009-09-26  Eric Blake  <ebb9@byu.net>
15033
15034         argp: fix compilation of getopt
15035         * lib/getopt.in.h (includes): Use different guard than glibc.
15036         Reported by Sergey Poznyakoff.
15037
15038         doc: mention more cygwin 1.7 status
15039         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
15040         bug.
15041         * doc/posix-functions/execl.texi (execl): Likewise.
15042         * doc/posix-functions/execle.texi (execle): Likewise.
15043         * doc/posix-functions/execlp.texi (execlp): Likewise.
15044         * doc/posix-functions/execv.texi (execv): Likewise.
15045         * doc/posix-functions/execve.texi (execve): Likewise.
15046         * doc/posix-functions/execvp.texi (execvp): Likewise.
15047         * doc/glibc-functions/canonicalize_file_name.texi
15048         (canonicalize_file_name): Cygwin 1.7 now provides this.
15049         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
15050         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
15051         on AT_SYMLINK_NOFOLLOW.
15052
15053 2009-09-24  Eric Blake  <ebb9@byu.net>
15054
15055         test-linkat: make test more robust
15056         * tests/test-linkat.c (main): Avoid collision with EEXIST.
15057
15058         getopt: fix inclusion guards for cygwin
15059         * modules/getopt-posix (Depends-on): Add include-next.
15060         (Makefile.am): Substitute more items in replacement header.
15061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
15062         <getopt.h>.
15063         * lib/getopt.in.h (includes): Use split inclusion guard, and
15064         prefer <getopt.h> over include <unistd.h> when one is present.
15065         (option): Also override name of 'struct option'.
15066
15067         same-inode: revert prior change; it is not yet ready
15068         * NEWS: Undo mention of this change.
15069         * lib/same-inode.h (same-inode.h): Undo tri-state change.
15070         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15071         * lib/cycle-check.c (cycle_check): Likewise.
15072         * lib/same.c (same_name): Likewise.
15073         * lib/at-func2.c (at_func2): Likewise.
15074
15075 2009-09-23  Eric Blake  <ebb9@byu.net>
15076
15077         linkat: new module
15078         * modules/linkat: New file.
15079         * lib/at-func2.c (at_func2): Likewise.
15080         * lib/linkat.c (linkat): Likewise.
15081         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15082         * lib/openat-priv.h (at_func2): Add declaration.
15083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15084         * modules/unistd (Makefile.am): Substitute them.
15085         * lib/unistd.in.h (linkat): Declare it.
15086         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15087         * doc/posix-functions/linkat.texi (linkat): Likewise.
15088         * doc/posix-functions/link.texi (link): Tweak wording.
15089         * tests/test-link.c (main): Move guts...
15090         * tests/test-link.h (test_link): ...into new file.
15091         * modules/linkat-tests: New test.
15092         * tests/test-linkat.c: Likewise.
15093         * modules/link-tests (Files): Ship new file.
15094         (Depends-on): Add stdbool.
15095
15096         dirname: add library-safe mdir_name
15097         * lib/dirname.h (mdir_name): New prototype.
15098         * lib/dirname.c (dir_name): Move guts...
15099         (mdir_name): ...to new function that avoids xalloc_die.
15100
15101         fchdir: another mingw fix
15102         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
15103         * lib/fchdir.c (get_name): New helper method; skips canonicalize
15104         on mingw (where it has not yet been ported), and make it optional
15105         elsewhere.
15106         (_gl_register_fd): Use it.
15107
15108         same-inode: make SAME_INODE tri-state, to port to mingw
15109         * NEWS: Mention this change.
15110         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
15111         st_ino always being 0.
15112         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15113         * lib/cycle-check.c (cycle_check): Likewise.
15114         * lib/same.c (same_name): Likewise.
15115
15116         lstat: avoid mingw compilation error
15117         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
15118         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
15119         lstat ourselves.
15120         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
15121         was adequate.
15122         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
15123         the checks for lstat.
15124         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
15125
15126         link: fix test failure on Solaris 9
15127         * lib/link.c (rpl_link): Don't assume link will catch bogus
15128         trailing slash on source.
15129
15130         test-symlinkat: enhance test
15131         * tests/test-readlink.c (main): Move guts...
15132         * tests/test-readlink.h (test_readlink): ...into new file.
15133         * tests/test-symlink.c (main): Move guts...
15134         * tests/test-symlink.h (test_symlink): ...into new file.
15135         * tests/test-symlinkat.c (main): Use new files for further
15136         coverage.
15137         (do_symlink, do_readlink): New helper functions.
15138         * modules/symlink-tests (Files): Ship new file.
15139         (Depends-on): Add stdbool.
15140         * modules/readlink-tests (Files): Ship new file.
15141         (Depends-on): Add stdbool.
15142         * modules/symlinkat-tests (Files): Use new files.
15143
15144 2009-09-23  Eric Blake  <ebb9@byu.net>
15145
15146         readlink: document portability issue with symlink length
15147         * doc/posix-functions/lstat.texi (lstat): Mention that some file
15148         systems have bogus st_size on symlinks, and mention the
15149         areadlink-with-size module.
15150         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15151         * doc/posix-functions/readlink.texi (readlink): Mention the
15152         areadlink module, and ERANGE failure.
15153         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15154         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
15155
15156         readlink: fix Solaris 9 bug with trailing slash
15157         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
15158         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15159         * doc/posix-functions/readlink.texi (readlink): Document this.
15160         * modules/readlink-tests: New test.
15161         * tests/test-readlink.c: Likewise.
15162
15163         readlink: fix cygwin 1.5.x bug with return type
15164         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15165         * lib/unistd.in.h (readlink): Use ssize_t.
15166         * lib/readlink.c (readlink): Likewise.
15167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15168         * modules/unistd (Makefile.am): Substitute it.
15169         * lib/unistd.in.h (readlink): Declare replacement.
15170         * doc/posix-functions/readlink.texi (readlink): Document this.
15171
15172         symlink: use throughout gnulib
15173         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15174         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15175         symlink is not used.
15176         * modules/symlinkat (Depends-on): Add symlink.
15177         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15178         * modules/canonicalize-tests (Depends-on): Likewise.
15179         * modules/lstat-tests (Depends-on): Likewise.
15180         * modules/openat-tests (Depends-on): Likewise.
15181         * modules/remove-tests (Depends-on): Likewise.
15182         * modules/rmdir-tests (Depends-on): Likewise.
15183         * modules/unlink-tests (Depends-on): Likewise.
15184         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15185         * tests/test-canonicalize.c (symlink): Likewise.
15186         * tests/test-fstatat.c (symlink): Likewise.
15187         * tests/test-lstat.c (symlink): Likewise.
15188         * tests/test-remove.c (symlink): Likewise.
15189         * tests/test-rmdir.c (symlink): Likewise.
15190         * tests/test-unlink.c (symlink): Likewise.
15191         * tests/test-unlinkat.c (symlink): Likewise.
15192
15193         symlink: new module, for Solaris 9 bug
15194         * modules/symlink: New file.
15195         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15196         * lib/symlink.c: Likewise.
15197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15198         * modules/unistd (Makefile.am): Substitute them.
15199         * lib/unistd.in.h (symlink): Declare replacement.
15200         * MODULES.html.sh (File system functions): Mention it.
15201         * doc/posix-functions/symlink.texi (symlink): Likewise.
15202         * modules/symlink-tests: New test.
15203         * tests/test-symlink.c: Likewise.
15204
15205 2009-09-23  Bruno Haible  <bruno@clisp.org>
15206
15207         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15208         when needed.
15209         Test case: gnulib-tool --import --with-tests atexit inttypes.
15210         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15211
15212 2009-09-23  Bruno Haible  <bruno@clisp.org>
15213
15214         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15215         subcommand, not in a subshell.
15216
15217 2009-09-22  Eric Blake  <ebb9@byu.net>
15218
15219         unistd: sort replacement declarations
15220         * lib/unistd.in.h: Sort declarations.
15221
15222         open, openat: minor optimization
15223         * lib/open.c (open): If open succeeded, len is non-zero.
15224         * lib/openat.c (rpl_openat): Likewise.
15225
15226         link-follow: ensure correct result
15227         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15228         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15229         distinguish between possible failures.
15230
15231 2009-09-21  Eric Blake  <ebb9@byu.net>
15232
15233         fts: avoid compiler warning
15234         * lib/fts.c (dirent_inode_sort_may_be_useful)
15235         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15236
15237 2009-09-19  Bruno Haible  <bruno@clisp.org>
15238
15239         * lib/progreloc.c (canonicalize_file_name): New declaration.
15240
15241 2009-09-19  Eric Blake  <ebb9@byu.net>
15242
15243         link: fix quoting
15244         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15245
15246         openat: fix openat bugs on Solaris 9
15247         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15248         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15249         * modules/openat (Depends-on): Add open.
15250         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15251         * modules/fcntl-h (Makefile.am): Substitute it.
15252         * lib/fcntl.in.h (openat): Declare replacement.
15253         * doc/posix-functions/openat.texi (openat): Document this.
15254
15255         openat: move fstatat and unlinkat into correct files
15256         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15257         compiled.
15258         * lib/openat.c (fstatat, unlinkat): Move...
15259         * lib/fstatat.c (fstatat): ...into correct files.
15260         * lib/unlinkat.c (unlinkat): Likewise.
15261
15262         openat: fix unlinkat bugs on Solaris 9
15263         * lib/unlinkat.c (unlinkat): New file.
15264         * modules/openat (Depends-on): Add unlink.
15265         (Files): Distribute it.
15266         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15267         trailing slash behavior is broken.
15268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15269         * modules/unistd (Makefile.am): Substitute it.
15270         * lib/unistd.in.h (unlinkat): Declare replacement.
15271         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15272
15273         openat: fix fstatat bugs on Solaris 9
15274         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15275         stat.
15276         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15277
15278         test-unlinkat: enhance test, to expose Solaris 9 bug
15279         * tests/test-unlink.c (main): Factor guts...
15280         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15281         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15282         * tests/test-rmdir.c (main): Adjust caller.
15283         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15284         (unlinker): New helper function.
15285         (rmdirat): Enhance check.
15286         * modules/rmdir-tests (Depends-on): Add stdbool.
15287         * modules/unlink-tests (Depends-on): Likewise.
15288         (Files): Add test-unlink.h.
15289         * modules/openat-tests (Files): Likewise.
15290         (Depends-on): Add unlinkdir.
15291
15292         test-fstatat: new test, to expose Solaris 9 bugs
15293         * tests/test-stat.c (main): Factor guts...
15294         * tests/test-stat.h (test_stat_func): ...into new file.
15295         * tests/test-lstat.c (main): Factor guts...
15296         * tests/test-lstat.h (test_lstat_func): ...into new file.
15297         * tests/test-fstatat.c: New file.
15298         * modules/stat-tests (Files): Add test-stat.h.
15299         * modules/lstat-tests (Files): Add test-lstat.h.
15300         (Depends-on): Add stdbool.
15301         * modules/openat-tests (Depends-on): Add pathmax.
15302         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15303         (Makefile.am): Run new test.
15304
15305         remove: new module, for mingw and Solaris 9 bugs
15306         * modules/remove: New file.
15307         * lib/remove.c: Likewise.
15308         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15310         * modules/stdio (Makefile.am): Use them.
15311         * lib/stdio.in.h (remove): Declare replacement.
15312         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15313         * doc/posix-functions/remove.texi (remove): Likewise.
15314         * modules/remove-tests: New test.
15315         * tests/test-remove.c: Likewise.
15316
15317         unlink: new module, for Solaris 9 bug
15318         * modules/unlink: New file.
15319         * lib/unlink.c: Likewise.
15320         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15322         * modules/unistd (Makefile.am): Use them.
15323         * lib/unistd.in.h (stat): Declare replacement.
15324         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15325         * doc/posix-functions/unlink.texi (unlink): Likewise.
15326         * modules/unlink-tests: New test.
15327         * tests/test-unlink.c: Likewise.
15328
15329         lstat: fix Solaris 9 bug
15330         * lib/lstat.c (lstat): Also check for trailing slash on
15331         non-symlink, non-directories.  Use stat module to simplify logic.
15332         * doc/posix-functions/lstat.texi (lstat): Document it.
15333         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15334         (configure.ac): Check for symlink.
15335         * tests/test-lstat.c (main): Add more tests.
15336
15337         stat: add as dependency to other modules
15338         * modules/chown (Depends-on): Add stat.
15339         * modules/euidaccess (Depends-on): Likewise.
15340         * modules/fchdir (Depends-on): Likewise.
15341         * modules/isdir (Depends-on): Likewise.
15342         * modules/link (Depends-on): Likewise.
15343         * modules/lstat (Depends-on): Likewise.
15344         * modules/mkdir-p (Depends-on): Likewise.
15345         * modules/modechange (Depends-on): Likewise.
15346         * modules/open (Depends-on): Likewise.
15347         * modules/readlink (Depends-on): Likewise.
15348         * modules/same (Depends-on): Likewise.
15349
15350         stat: fix Solaris 9 bug
15351         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15352         slash.
15353         * lib/stat.c (rpl_stat): Work around it.
15354         * doc/posix-functions/stat.texi (stat): Update documentation.
15355
15356         stat: new module, for mingw bug
15357         * modules/stat: New file.
15358         * lib/stat.c: Likewise.
15359         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15360         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15361         * modules/sys_stat (Makefile.am): Use them.
15362         * lib/sys_stat.in.h (stat): Declare replacement.
15363         * lib/openat.c (fstatat): Deal with lstat and stat being function
15364         macros.
15365         * modules/openat (Depends-on): Add inline.
15366         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15367         * doc/posix-functions/stat.texi (stat): Likewise.
15368         * modules/stat-tests: New test.
15369         * tests/test-stat.c: Likewise.
15370
15371 2009-09-19  Jim Meyering  <meyering@redhat.com>
15372
15373         syntax-check: detect unnecessary inclusion of canonicalize.h
15374         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15375
15376 2009-09-19  Eric Blake  <ebb9@byu.net>
15377
15378         canonicalize-lgpl: adjust clients to use correct header
15379         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15380         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15381         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15382         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15383         * lib/progreloc.c (includes): Likewise.
15384
15385 2009-09-19  Jim Meyering  <meyering@redhat.com>
15386
15387         test-posixtm.c: correct a comment
15388         * tests/test-posixtm.c: Correct first-line comment.
15389         Spotted by Eric Blake.
15390
15391 2009-09-16  Jim Meyering  <meyering@redhat.com>
15392
15393         posixtm-tests: make T const-correct; add a test case
15394         * tests/test-posixtm.c (T): Declare const.
15395         Add a test for -(2^31+1).
15396         Remove useless can-succeed-only-in-2002 test.
15397
15398         posixtm-tests: adjust the sole failing test
15399         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15400         expected output matches what mktime now produces.  Cross-checked via
15401         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15402
15403         posixtm: move #ifdef'd tests into a new module
15404         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15405         * tests/test-posixtm.c: ... this new file.
15406         * modules/posixtm-tests: New module.
15407
15408 2009-09-19  Eric Blake  <ebb9@byu.net>
15409
15410         openat: simplify use of at-func.c
15411         * lib/at-func.c (includes): Include prerequisites here, to
15412         simplify requirements on client files.
15413         * lib/openat-priv.h: Add double-inclusion guard.
15414         * lib/faccessat.c (includes): Simplify.
15415         * lib/fchmodat.c (includes): Likewise.
15416         * lib/fchownat.c (includes): Likewise.
15417         * lib/mkdirat.c (includes): Likewise.
15418         * lib/mkfifoat.c (includes): Likewise.
15419         * lib/symlinkat.c (includes): Likewise.
15420
15421         openat: allow return of fd 0
15422         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15423         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15424         unistd-safer.
15425         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15426         <fcntl.h>; this module does not leak fds.
15427         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15428         must be allowed to return 0, leaving openat_safer to add the
15429         safety.
15430         (openat_permissive): Avoid writing to just-opened fd 2 if
15431         restoring the current directory fails.
15432         * lib/openat-die.c (openat_restore_fail): Add comment.
15433         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15434         (save_cwd): Guarantee safe fd, but without use of open_safer.
15435         * tests/test-openat.c: New test.
15436         * modules/openat-tests (Files, Makefile.am): Distribute and build
15437         new file.
15438
15439         relocatable-prog-wrapper: fix build
15440         * modules/relocatable-prog-wrapper (Files): Update name of
15441         canonicalize m4 file, broken on 2009-09-17.
15442         Reported by emad hajjar <aleppos@hotmail.com>.
15443
15444 2009-09-19  Bruno Haible  <bruno@clisp.org>
15445
15446         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15447         * lib/safe-alloc.c: Likewise.
15448         Reported by Ian Beckwith <ianb@erislabs.net>.
15449
15450 2009-09-18  Bruno Haible  <bruno@clisp.org>
15451
15452         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15453         Reported by <erobles@sensacd.com.mx>.
15454
15455 2009-09-17  Eric Blake  <ebb9@byu.net>
15456
15457         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15458         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15459         slashes when checking if last component is missing.
15460         * tests/test-canonicalize.c (main): Test this.
15461
15462         canonicalize, canonicalize-lgpl: honor // if distinct from /
15463         * modules/canonicalize (Files): Add double-slash-root.m4.
15464         * modules/canonicalize-lgpl (Files): Likewise.
15465         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15466         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15467         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15468         fallback definition.
15469         (canonicalize_filename_mode): Use it to protect //.
15470         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15471         (__realpath): Likewise.
15472         * tests/test-canonicalize.c (main): Test this.
15473         * tests/test-canonicalize-lgpl.c (main): Likewise.
15474         * modules/canonicalize-tests (Depends-on): Add same-inode.
15475         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15476
15477         canonicalize-lgpl: fix glibc bug with trailing slash
15478         * m4/canonicalize-lgpl.m4: Move contents...
15479         * m4/canonicalize.m4: ...here.
15480         (gl_CANONICALIZE_LGPL): Factor realpath check...
15481         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15482         glibc 2.3.5 bug, fixed 2005-04-27.
15483         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15484         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15485         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15486         * modules/canonicalize-lgpl (Files): Manage file rename.
15487         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15488         * modules/stdlib (Makefile.am): Substitute witness.
15489         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15490         is needed.
15491         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15492         replacement is required.
15493         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15494         * doc/glibc-functions/canonicalize_file_name.texi
15495         (canonicalize_file_name): Document this.
15496         * doc/posix-functions/realpath.texi (realpath): Likewise.
15497
15498         canonicalize-lgpl: reject non-directory with trailing slash
15499         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15500         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15501         catches failures in glibc 2.3.5.
15502         * tests/test-canonicalize.c (main): Likewise.
15503
15504         canonicalize-lgpl: use native realpath if it works
15505         * lib/canonicalize-lgpl.c (realpath): Guard with
15506         FUNC_REALPATH_WORKS.
15507         * lib/stdlib.in.h (realpath): Make declaration optional based on
15508         HAVE_REALPATH.
15509         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15510         native realpath works.
15511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15512         * modules/stdlib (Makefile.am): Substitute witness.
15513
15514         canonicalize, canonicalize-lgpl: use <stdlib.h>
15515         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15516         (Include): Mention <stdlib.h>.
15517         (configure.ac): Mention functions we provide.
15518         * modules/canonicalize (configure.ac): Likewise.
15519         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15520         realpath if canonicalize_file_name is missing.
15521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15522         * modules/stdlib (Makefile.am): Substitute witnesses.
15523         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15524         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15525         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15526         * NEWS: Document this.
15527         * doc/glibc-functions/canonicalize_file_name.texi
15528         (canonicalize_file_name): Likewise.
15529         * doc/posix-functions/realpath.texi (realpath): Likewise.
15530         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15531
15532         test-canonicalize: consolidate into single C program
15533         * tests/test-canonicalize.sh: Delete; move setup into...
15534         * tests/test-canonicalize.c (main): ...the program, making it
15535         easier to run in debugger.  Add some tests.
15536         * modules/canonicalize-tests (Files): Remove unused file.
15537         (Depends-on): Add progname.
15538         (configure.ac, Makefile.am): Simplify.
15539
15540         test-canonicalize-lgpl: consolidate into single C program
15541         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15542         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15543         easier to run in debugger.  Add some tests.
15544         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15545         (configure.ac, Makefile.am): Simplify.
15546
15547         canonicalize: avoid resolvepath
15548         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15549         unnecessary checks.
15550         * lib/canonicalize.c (includes): Simplify.
15551         (canonicalize_file_name): Drop resolvepath implementation.
15552         * modules/canonicalize (Depends-on): Drop filenamecat.
15553
15554         canonicalize: don't lose errno
15555         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15556         over calls to free.
15557
15558         canonicalize: simplify errno handling
15559         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15560         assignment.
15561
15562         canonicalize, canonicalize-lgpl: update module dependencies
15563         * modules/canonicalize (Depends-on): Add extensions, lstat,
15564         pathmax, stdlib.
15565         (Files): Drop pathmax.h.
15566         (configure.ac): Adjust macro name.
15567         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15568         lstat, stdlib, sys_stat.
15569         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15570         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15571         extensions.
15572         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15573         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15574         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15575         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15576         declaration, if available.
15577         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15578         we can rely on the readlink module.
15579         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15580         (includes): Use <unistd.h> unconditionally.
15581
15582 2009-09-17  Eric Blake  <ebb9@byu.net>
15583
15584         maint: make Include sections of modules consistent
15585         * modules/alloca: Use only header name; no need to list #include.
15586         * modules/alloca-opt: Likewise.
15587         * modules/arpa_inet: Likewise.
15588         * modules/canon-host: Likewise.
15589         * modules/configmake: Likewise.
15590         * modules/dirent: Likewise.
15591         * modules/eealloc: Likewise.
15592         * modules/environ: Likewise.
15593         * modules/fchdir: Likewise.
15594         * modules/fcntl: Likewise.
15595         * modules/fcntl-h: Likewise.
15596         * modules/gethrxtime: Likewise.
15597         * modules/gettime: Likewise.
15598         * modules/ignore-value: Likewise.
15599         * modules/inet_ntop: Likewise.
15600         * modules/inet_pton: Likewise.
15601         * modules/inttypes: Likewise.
15602         * modules/isnand-nolibm: Likewise.
15603         * modules/isnanf-nolibm: Likewise.
15604         * modules/mbchar: Likewise.
15605         * modules/mbfile: Likewise.
15606         * modules/mbiter: Likewise.
15607         * modules/mbuiter: Likewise.
15608         * modules/netdb: Likewise.
15609         * modules/netinet_in: Likewise.
15610         * modules/nproc: Likewise.
15611         * modules/pagealign_alloc: Likewise.
15612         * modules/poll: Likewise.
15613         * modules/printf-frexp: Likewise.
15614         * modules/pthread: Likewise.
15615         * modules/putenv: Likewise.
15616         * modules/random_r: Likewise.
15617         * modules/relocatable-prog: Likewise.
15618         * modules/search: Likewise.
15619         * modules/select: Likewise.
15620         * modules/selinux-h: Likewise.
15621         * modules/settime: Likewise.
15622         * modules/signal: Likewise.
15623         * modules/size_max: Likewise.
15624         * modules/socklen: Likewise.
15625         * modules/ssize_t: Likewise.
15626         * modules/stdarg: Likewise.
15627         * modules/stdbool: Likewise.
15628         * modules/stddef: Likewise.
15629         * modules/stdint: Likewise.
15630         * modules/stdio: Likewise.
15631         * modules/stdlib: Likewise.
15632         * modules/string: Likewise.
15633         * modules/strings: Likewise.
15634         * modules/sys_file: Likewise.
15635         * modules/sys_ioctl: Likewise.
15636         * modules/sys_select: Likewise.
15637         * modules/sys_socket: Likewise.
15638         * modules/sys_stat: Likewise.
15639         * modules/sys_time: Likewise.
15640         * modules/sys_times: Likewise.
15641         * modules/sys_utsname: Likewise.
15642         * modules/sys_wait: Likewise.
15643         * modules/sysexits: Likewise.
15644         * modules/time: Likewise.
15645         * modules/times: Likewise.
15646         * modules/tmpfile: Likewise.
15647         * modules/trim: Likewise.
15648         * modules/unistd: Likewise.
15649         * modules/wchar: Likewise.
15650         * modules/wctype: Likewise.
15651
15652 2009-09-17  Bruno Haible  <bruno@clisp.org>
15653
15654         Make getdate.y compile on QNX and NetBSD 5 / i386.
15655         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15656         TIME_T_FITS_IN_LONG_INT.
15657         * lib/getdate.y (long_time_t): New type.
15658         (relative_time): Change type of 'seconds' field to long_time_t.
15659         (get_date): Update types of local variables. Check against overflow
15660         during conversion from long_time_t to time_t.
15661         Reported by Matt Kraai <kraai@ftbfs.org>
15662         and Hasso Tepper <hasso@netbsd.org>.
15663
15664 2009-09-17  Bruno Haible  <bruno@clisp.org>
15665
15666         * modules/COPYING: Update copyright years.
15667         * modules/README: Likeiwse.
15668         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15669         Reported by Ian Beckwith <ianb@erislabs.net>.
15670
15671 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15672
15673         * users.txt: Update references for gnuit package.
15674
15675 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15676
15677         * m4/getdelim.m4: Fix typo in copyright line.
15678
15679 2009-09-17  Bruno Haible  <bruno@clisp.org>
15680
15681         * lib/atoll.c: Use the standard header with GPL copyright.
15682         * lib/argz.in.h: Likewise.
15683         * lib/glob.c: Likewise.
15684         * lib/glob-libc.h: Likewise.
15685         * lib/random_r.c: Likewise.
15686         * lib/siglist.h: Likewise.
15687         * lib/strsignal.c: Likewise.
15688         Reported by Ian Beckwith <ianb@erislabs.net>.
15689
15690 2009-09-17  Eric Blake  <ebb9@byu.net>
15691
15692         rmdir: ensure correct dependency order
15693         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15694
15695 2009-09-17  Bruno Haible  <bruno@clisp.org>
15696
15697         Disable assertion that fails on NetBSD 5 / i386.
15698         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15699         Reported by Sam Steingold <sds@gnu.org>
15700         and Hasso Tepper <hasso@netbsd.org>.
15701
15702 2009-09-16  Eric Blake  <ebb9@byu.net>
15703
15704         unlinkdir: port to mingw
15705         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15706         on which no one can unlink a directory.
15707
15708         stdlib: sort witness names
15709         * modules/stdlib (Makefile.am): Sort replacements.
15710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15711         * lib/stdlib.in.h: Likewise.
15712
15713         parse-duration-tests: avoid link failure
15714         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15715         LIBINTL.
15716         Reported by Tom G. Christensen.
15717
15718         openat-tests: ensure unlinkat behaves like rmdir
15719         * tests/test-rmdir.c (main): Factor guts...
15720         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15721         * modules/rmdir-tests (Files): Ship new file.
15722         * modules/openat-tests: New test.
15723         * tests/test-unlinkat.c: Likewise.
15724
15725         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15726         * modules/rmdir-errno (Status, Notice): Now obsolete.
15727
15728         rmdir: work around cygwin 1.5.x and mingw bugs
15729         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15730         * lib/rmdir.c (rmdir): Work around it.
15731         * modules/rmdir (Status, Notice): No longer obsolete.
15732         (Files): Add dos.m4.
15733         (Depends-on): Add unistd.
15734         (configure.ac): Set witnesses.
15735         (License): Relax to LGPLv2+.
15736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15737         * modules/unistd (Makefile.am): Substitute witnesses.
15738         * lib/unistd.in.h (rmdir): Declare replacement.
15739         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15740         * modules/rmdir-tests: New tests.
15741         * tests/test-rmdir.c: Likewise.
15742
15743 2009-09-15  Eric Blake  <ebb9@byu.net>
15744
15745         fchdir: improve use of replacement functions
15746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15747         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15748         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15749         REPLACE_CLOSEDIR.
15750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15751         * modules/sys_stat (Makefile.am): Substitute correct witness.
15752         * modules/dirent (Makefile.am): Likewise.
15753         * modules/unistd (Makefile.am): Likewise.
15754         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15755         * lib/unistd.in.h (dup): Likewise.
15756         * lib/sys_stat.in.h (fstat): Likewise.
15757
15758         maint: ignore gnulib-tool temp files
15759         * .gitignore: Ignore files created during gnulib-tool --test.
15760
15761 2009-09-13  Jim Meyering  <meyering@redhat.com>
15762
15763         posixtm: don't reject a time that specify "60" as the number of seconds
15764         * lib/posixtm.c (posixtime): The code to reject invalid dates
15765         would also reject a time specified with the .60 suffix.
15766         But POSIX allows that, in order to accommodate leap seconds.
15767         So don't reject it.
15768         (main): Adjust tests accordingly.
15769         * modules/posixtm (Depends-on): Add stpcpy.
15770
15771 2009-09-11  Jim Meyering  <meyering@redhat.com>
15772
15773         announce-gen: include [$release_type] in emitted Subject:
15774         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15775         e.g., [stable] in the emitted Subject: line.
15776
15777 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15778
15779         Remove obsolete macros from several modules.
15780         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15781         obsolete Autoconf macros with their modern counterparts.
15782         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15783         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15785         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15786         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15787         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15788         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15789         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15790         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15791         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15792         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15793         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15794         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15795         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15796         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15797         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15798         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15799         * m4/time_r.m4 (gl_TIME_R): Likewise.
15800         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15801         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15802         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15803
15804         Fix copyright header in build-aux scripts.
15805         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15806         recommendation.
15807         * build-aux/ncftpput-ftp: Likewise.
15808         * build-aux/update-copyright: Likewise.
15809
15810 2009-09-09  Eric Blake  <ebb9@byu.net>
15811
15812         test-link: allow Linux choice of errno
15813         * tests/test-link.c (main): Relax test for alternate error.
15814
15815         strndup: fix improper m4 caching
15816         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15817         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15818         (gl_PREREQ_STRNDUP): Delete.
15819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15820         * modules/string (Makefile.am): Substitute it.
15821         * lib/string.in.h (strndup): Modernize prototype.
15822
15823         getcwd: port to mingw
15824         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15825         different from the POSIX assumptions made throughout the getcwd
15826         module; fortunately, the mingw getcwd does not need replacement.
15827         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15828         * modules/getcwd-tests: New test.
15829         * tests/test-getcwd.c: Likewise.
15830
15831         link: fix platform bugs
15832         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
15833         * lib/link.c (link): Work around them.  Fix related mingw bug.
15834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
15835         * modules/unistd (Makefile.am): Substitute it.
15836         * lib/unistd.in.h (link): Declare replacement.
15837         * doc/posix-functions/link.texi (link): Document this.
15838         * modules/link (Depends-on): Add strdup-posix, sys_stat.
15839
15840         test-link: consolidate into single C program, test more cases
15841         * tests/test-link.sh: Delete.
15842         * tests/test-link.c: Test more error conditions.  Exposes bugs on
15843         at least Cygwin and Solaris.
15844         * modules/link-tests (Files): Remove unused file.
15845         (Depends-on): Add errno, sys_stat.
15846         (Makefile.am): Simplify.
15847
15848 2009-09-08  Bruno Haible  <bruno@clisp.org>
15849
15850         Work around towlower, towupper bug on mingw.
15851         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
15852         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
15853         * doc/posix-functions/towlower.texi: Mention the mingw bug.
15854         * doc/posix-functions/towupper.texi: Likewise.
15855         Reported by Eric Blake.
15856
15857 2009-09-08  Jim Meyering  <meyering@redhat.com>
15858
15859         build: don't try to run autoheader if we don't use it
15860         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
15861         is not used in configure.ac.
15862
15863 2009-09-08  Eric Blake  <ebb9@byu.net>
15864
15865         euidaccess: fix compilation error
15866         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
15867
15868         rawmemchr: relax license
15869         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
15870         okay.
15871         Reported by Jim Meyering.
15872
15873         mkfifoat: new module
15874         * modules/mkfifoat: New file.
15875         * lib/mkfifoat.c: Likewise.
15876         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
15877         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15878         * modules/sys_stat (Makefile.am): Use them.
15879         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
15880         * MODULES.html.sh (File system functions): Mention module.
15881         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15882         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15883         * modules/mkfifoat-tests: New test.
15884         * tests/test-mkfifoat.c: Likewise.
15885
15886         strchrnul: relax license
15887         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
15888         okay.
15889         Reported by Jim Meyering.
15890
15891 2009-09-08  Eric Blake  <ebb9@byu.net>
15892
15893         fstatat: fix compilation on Solaris
15894         * lib/fstatat.c (includes): Add fcntl.h.
15895         Reported by Pádraig Brady.
15896
15897 2009-09-07  Eric Blake  <ebb9@byu.net>
15898
15899         rename: modernize replacement
15900         * modules/rename (Depends-on): Add stdio.
15901         (configure.ac): Declare witness.
15902         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
15903         stdio take care of replacement.
15904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
15905         * modules/stdio (Makefile.am): Substitute them.
15906         * lib/stdio.in.h (rename): Declare replacement.
15907         * lib/rename.c (includes): Allow cross-compilation to non-windows
15908         machines.
15909         * doc/posix-functions/rename.texi (rename): Improve
15910         documentation.
15911
15912         stdio: sort witness names
15913         * modules/stdio (Makefile.am): Sort replacements.
15914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15915         * lib/stdio.in.h: Likewise.
15916
15917         getcwd: minor cleanups
15918         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
15919         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
15920
15921         openat: provide more convenience names
15922         * modules/faccessat (configure.ac): Add C witness.
15923         * lib/unistd.in.h (readlinkat): Fix typo.
15924         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
15925         convenience wrappers.
15926         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
15927         wrappers in syntax checks.
15928
15929 2009-09-06  Eric Blake  <ebb9@byu.net>
15930
15931         doc: fix comments in recent patches
15932         * lib/faccessat.c: Mention correct function.
15933         * lib/fchmodat.c: Likewise.
15934         * lib/fchownat.c: Likewise.
15935         * lib/symlinkat.c: Likewise.
15936         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
15937         constants.
15938
15939         faccessat, symlinkat: continue cleanup of previous patch
15940         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
15941         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
15942         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
15943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
15944         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
15945         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
15946         set.
15947
15948 2009-09-06  Bruno Haible  <bruno@clisp.org>
15949
15950         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
15951         (fstatat): Declare if GNULIB_FSTATAT is set.
15952         (mkdirat): Declare if GNULIB_MKDIRAT is set.
15953         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
15954         (unlinkat): Declare if GNULIB_UNLINKAT is set.
15955         * modules/fcntl-h (Files): Remove m4/openat.m4.
15956         * modules/sys_stat (Files): Remove m4/openat.m4.
15957         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
15958         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
15959         * modules/unistd (Files): Remove m4/openat.m4.
15960         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
15961         GNULIB_OPENAT.
15962         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
15963         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
15964         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
15965         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
15966         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
15967         gl_OPENAT_DEFAULTS.
15968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
15969         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
15970         Don't require gl_OPENAT_DEFAULTS.
15971         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
15972         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
15973         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
15974         (gl_OPENAT_DEFAULTS): Remove macro.
15975
15976 2009-09-06  Bruno Haible  <bruno@clisp.org>
15977
15978         * modules/openat (configure.ac): Remove unneeded witness.
15979
15980 2009-09-06  Bruno Haible  <bruno@clisp.org>
15981
15982         Set errno to ENOSYS when a function is entirely unsupported.
15983         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
15984         EOPNOTSUPP.
15985         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15986         * modules/chown (Depends-on): Remove errno.
15987
15988 2009-09-06  Bruno Haible  <bruno@clisp.org>
15989
15990         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
15991
15992 2009-09-06  Bruno Haible  <bruno@clisp.org>
15993
15994         * lib/sys_stat.in.h: Fix preprocessor command indentation.
15995
15996 2009-09-06  Ben Pfaff  <blp@gnu.org>
15997             Bruno Haible  <bruno@clisp.org>
15998
15999         Work around a glibc bug in strtok_r.
16000         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
16001         Undefine if UNDEFINE_STRTOK_R is set.
16002         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
16003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16004         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
16005         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
16006         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
16007         UNDEFINE_STRTOK_R.
16008         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
16009
16010 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16011
16012         exclude: minor fix
16013         * lib/exclude.c: Include wctype.h
16014
16015 2009-09-06  Akim Demaille  <demaille@gostai.com>
16016
16017         bootstrap: improve error message
16018         * build-aux/bootstrap (find_tool): Upon failure, report the list
16019         of candidates.
16020         Honor the initial value of the envvar.
16021
16022 2009-09-05  Eric Blake  <ebb9@byu.net>
16023
16024         symlinkat: new module
16025         * modules/symlinkat: New file.
16026         * lib/symlinkat.c: Likewise.
16027         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16029         * modules/unistd (Makefile.am): Use them.
16030         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
16031         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
16032         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
16033         * MODULES.html.sh (File system functions): Mention module.
16034         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16035         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16036         * modules/symlinkat-tests: New test.
16037         * tests/test-symlinkat.c: Likewise.
16038
16039         test-openat-safer: add more checks
16040         * tests/test-openat-safer.c (main): Check more code paths.
16041
16042 2009-09-05  Jim Meyering  <meyering@redhat.com>
16043
16044         syntax-check: detect unnecessary inclusion of openat.h
16045         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
16046
16047 2009-09-05  Bruno Haible  <bruno@clisp.org>
16048
16049         Support towlower, towupper.
16050         * doc/posix-functions/towlower.texi: Mention module wctype.
16051         * doc/posix-functions/towupper.texi: Likewise.
16052         * lib/wctype.in.h (towlower, towupper): New functions.
16053         * tests/test-wctype.c: Include stdio.h, stdlib.h.
16054         (ASSERT): New macro.
16055         (e): New variable.
16056         (main): Test also towlower, towupper. Test WEOF argument.
16057         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16058
16059 2009-09-05  Bruno Haible  <bruno@clisp.org>
16060
16061         Fix conversion behaviour when the input is invalid.
16062         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
16063         mark occurring in first pass of indirect conversion.
16064         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
16065         input.
16066         Found by clang's static analyzer.
16067
16068 2009-09-05  Bruno Haible  <bruno@clisp.org>
16069
16070         * tests/test-striconveh.c (main): Test indirect conversion on platforms
16071         where direct conversion is possible.
16072
16073 2009-09-04  Eric Blake  <ebb9@byu.net>
16074
16075         openat: fail with ENOENT on empty name
16076         * lib/openat-proc.c (openat_proc_name): Special-case the empty
16077         buffer.
16078
16079         link-follow: fix logic bug in prior patch
16080         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
16081         reversed sense of yes and no in prior patch.  Avoid confusing
16082         compilation failure with desired semantics.
16083
16084         link-follow: accomodate mingw and cross-compilation
16085         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
16086         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
16087         cross-compilation results to -1, to make linkat easier to
16088         implement when cross-compiling.  Trivially support mingw.
16089         * modules/link-follow (configure.ac): Call new name.
16090         * NEWS: Mention this.
16091
16092 2009-09-03  Eric Blake  <ebb9@byu.net>
16093
16094         faccessat: compile replacement
16095         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
16096         needed.
16097
16098         fts: fix compilation error
16099         * lib/fts.c (includes): Re-add "openat.h", for
16100         openat_needs_fchdir.
16101
16102         faccessat: new module
16103         * modules/faccessat: New file.
16104         * lib/faccessat.c: Likewise.
16105         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16107         * modules/unistd (Makefile.am): Use it.
16108         * lib/unistd.in.h (faccessat): Declare it.
16109         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
16110         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
16111         * MODULES.html.sh (File system functions): Mention it.
16112         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
16113         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16114
16115         euidaccess: prefer POSIX over non-standard implementation
16116         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
16117         * lib/euidaccess.c (euidaccess): Use it if available.
16118
16119         openat: make template easier to use
16120         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
16121         AT_FUNC_F2 to be undefined.
16122         (VALIDATE_FLAG): New macro; use it to reject bad flags.
16123         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
16124         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
16125         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
16126         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
16127         Likewise.
16128         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
16129         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
16130         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
16131         Likewise.
16132
16133         openat: declare in POSIX headers
16134         * NEWS: Mention this.
16135         * modules/openat (configure.ac): Declare witnesses.
16136         (Depends-on): Add fcntl-h, sys_stat, unistd.
16137         (Include): Mention correct headers.
16138         * modules/fcntl-h (Depends-on): Add link-warning.
16139         (Files): Add openat.m4.
16140         (Makefile.am): Substitute witnesses.
16141         * modules/sys_stat (Files, Makefile.am): Likewise.
16142         * modules/unistd (Files, Makefile.am): Likewise.
16143         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
16144         (gl_OPENAT_DEFAULTS): New macro.
16145         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
16146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
16147         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
16148         (SYS_STAT_H): Remove unused variable.
16149         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
16150         * lib/fcntl--.h (includes): Remove unneeded header.
16151         * lib/openat-safer.c (includes): Likewise.
16152         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
16153         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
16154         appropriate headers.
16155         (__OPENAT_PREFIX): Delete.
16156         * lib/fcntl.in.h (openat): Provide declaration.
16157         (AT_FDCWD): Fix Solaris bug.
16158         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16159         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16160         * lib/fchmodat.c (includes):  Adjust to find declaration.
16161         * lib/fchownat.c (includes): Likewise.
16162         * lib/mkdirat.c (includes): Likewise.
16163         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16164         still visible.
16165
16166 2009-09-02  Eric Blake  <ebb9@byu.net>
16167
16168         errno: use consistently
16169         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16170         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16171         * lib/canonicalize.c (ELOOP): Likewise.
16172         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16173         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16174         * lib/lchown.c (EOPNOTSUPP): Likewise.
16175         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16176         * lib/savewd.c (ESTALE): Likewise.
16177         * lib/settime.c (ENOSYS): Likewise.
16178         * lib/utimens.c (ENOSYS): Likewise.
16179         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16180         * lib/chdir-safer.c (ELOOP): Likewise.
16181         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16182         * modules/c-stack (Depends-on): Add errno.
16183         * modules/canonicalize (Depends-on): Likewise.
16184         * modules/chdir-safer (Depends-on): Likewise.
16185         * modules/fdopendir (Depends-on): Likewise.
16186         * modules/inet_ntop (Depends-on): Likewise.
16187         * modules/inet_pton (Depends-on): Likewise.
16188         * modules/lchown (Depends-on): Likewise.
16189         * modules/openat (Depends-on): Likewise.
16190         * modules/savewd (Depends-on): Likewise.
16191         * modules/settime (Depends-on): Likewise.
16192         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16193
16194         fts: avoid leaking fds
16195         * modules/fts (Depends-on): Add cloexec.
16196         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16197         flag.
16198
16199         fts: make directory fds more robust
16200         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16201         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16202
16203         backupfile, chdir-long, fts, savedir: make safer
16204         * lib/backupfile.c (includes): Use "dirent--.h", since
16205         numbered_backup can write to stderr during readdir.
16206         * lib/savedir.c (includes): Likewise.
16207         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16208         emulation can write to stderr on failure.
16209         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16210         * lib/getcwd.c: Document why opendir_safer is unused.
16211         * lib/glob.c: Likewise.
16212         * lib/scandir.c: Likewise.
16213         * lib/openat-proc.c: Likewise, for open_safer.
16214         * modules/backupfile (Depends-on): Add dirent-safer.
16215         * modules/savedir (Depends-on): Likewise.
16216         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16217         * modules/chdir-long (Depends-on): Add openat-safer.
16218
16219         openat-safer: new module
16220         * modules/openat-safer: New file.
16221         * lib/openat-safer.c: Likewise.
16222         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16223         * lib/fcntl-safer.h (openat_safer): Declare.
16224         * lib/fcntl--.h (openat): Override.
16225         * MODULES.html.sh (File descriptor based I/O): Mention it.
16226         * lib/openat.h: Add double-inclusion guards.
16227         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16228         "fcntl--.h", so we can implement openat.
16229         * modules/openat-safer-tests: New test.
16230         * tests/test-openat-safer.c: New file.
16231
16232         dirent-safer: new module
16233         * modules/dirent-safer: New file.
16234         * lib/dirent--.h: Likewise.
16235         * lib/dirent-safer.h: Likewise.
16236         * lib/opendir-safer.c: Likewise.
16237         * m4/dirent-safer.m4: Likewise.
16238         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16239         * modules/dirent-safer-tests: New test.
16240         * tests/test-dirent-safer.c: New file.
16241         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16242
16243         fdopendir: optimize on mingw
16244         * lib/unistd.in.h (_gl_directory_name): New prototype.
16245         * lib/fchdir.c (_gl_directory_name): Implement it.
16246         (fchdir): Use it to simplify implementation.
16247         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16248         fchdir, when available, to avoid calling [f]chdir().
16249
16250         fdopendir: split into its own module
16251         * lib/openat.c (fdopendir): Move...
16252         * lib/fdopendir.c: ...into new file.
16253         * modules/fdopendir: New module.
16254         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16255         * modules/openat (Depends-on): Add fdopendir.
16256         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16257         fdopendir here.
16258         * modules/savedir (Depends-on): Only need fdopendir, not full
16259         openat.
16260         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16261         * lib/openat.h (fdopendir): Drop prototype.
16262         * lib/dirent.in.h (fdopendir): Provide prototype.
16263         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16264         * modules/dirent (Makefile.am): Substitute them.
16265         * MODULES.html.sh (File system functions): Mention it.
16266         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16267         * modules/fdopendir-tests: New file.
16268         * tests/test-fdopendir.c: Likewise.
16269
16270         fchdir: use more consistent macro convention
16271         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16272         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16273         REPLACE_FCHDIR, rather than relying on config.h macros.
16274         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16275         inside a single make-time REPLACE_FCHDIR block, rather than using
16276         the config.h FCHDIR_REPLACEMENT.
16277         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16278         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16279         Manage fstat replacement.
16280         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16281         REPLACE_FCHDIR.
16282         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16283         (Makefile.am): Substitute REPLACE_FCHDIR.
16284         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16285         FCHDIR_REPLACEMENT.
16286         * lib/dup-safer.c (dup_safer): Likewise.
16287         * lib/dup2.c (rpl_dup2): Likewise.
16288         * lib/dup3.c (rpl_dup3): Likewise.
16289         * lib/open.c (rpl_open): Likewise.
16290
16291         fchdir: simplify error handling, and support dup3
16292         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16293         stdbool, malloc-posix, realloc-posix.
16294         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16295         (ensure_dirs_slot): Return false on allocation failure.
16296         (rpl_dup2): Delete.
16297         (_gl_register_dup): New function.
16298         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16299         (_gl_register_fd): Close fd on allocation failure.
16300         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16301         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16302         prototype.
16303         (rpl_dup2_fchdir): Delete prototype.
16304         * lib/open.c (open): Update caller.
16305         * lib/dup2.c (dup2): Track fchdir metadata.
16306         * lib/dup3.c (dup3): Likewise.
16307         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16309
16310 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16311
16312         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16313         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16314         don't pass arguments to AC_OUTPUT.
16315
16316 2009-09-02  Bruno Haible  <bruno@clisp.org>
16317
16318         * modules/mkdtemp (License): Relicense under LGPLv2+.
16319         Reported by Paolo Bonzini.
16320
16321 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16322
16323         Replace uses of obsolete autoconf macros in Jim's modules.
16324         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16325         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16326         can evoke a warning from autoconf when run with -Wobsolete
16327         enabled.  They were declared obsolete for good reasons (see
16328         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16329         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16330         should not continue using the deprecated macros.
16331         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16332         obsolete Autoconf macros with modern counterparts.
16333         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16334         * m4/dos.m4 (gl_AC_DOS): Likewise.
16335         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16336         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16337         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16338         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16339         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16341         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16342         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16343         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16344         Likewise.
16345         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16346         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16347         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16348         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16349         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16350         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16351
16352 2009-09-01  Eric Blake  <ebb9@byu.net>
16353
16354         fchdir: fix off-by-one bug in previous patch
16355         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16356         (_gl_unregister_fd): Delete useless if.
16357
16358 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16359
16360         maint.mk: sort the list of syntax-check rules
16361         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16362         easier to get a sense of progress when the rules are run sequentially
16363         and take a long time.
16364
16365 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16366
16367         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16368         * modules/netinet_in: Likewise.
16369         * modules/sys_file: Likewise.
16370         * modules/sys_ioctl: Likewise.
16371         * modules/sys_select: Likewise.
16372         * modules/sys_socket: Likewise.
16373         * modules/sys_stat: Likewise.
16374         * modules/sys_time: Likewise.
16375         * modules/sys_times: Likewise.
16376         * modules/sys_utsname: Likewise.
16377         * modules/sys_wait: Likewise.
16378
16379 2009-09-01  Jim Meyering  <meyering@redhat.com>
16380
16381         fts: help ensure that return values are not ignored
16382         * lib/fts_.h (__GNUC_PREREQ): Define.
16383         (__attribute_warn_unused_result__): Define.
16384         (fts_children, fts_close, fts_open, fts_read): Declare with
16385         __attribute_warn_unused_result__.
16386
16387         fts: fts_close now fails also when closing a dir file descriptor fails
16388         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16389         and propagate to caller, along with errno.
16390
16391         announce-gen: correct formatting in --help output
16392         * build-aux/announce-gen (usage): Move the one-line description in
16393         --help output "up", to where it belongs, just after Usage:.
16394
16395 2009-08-31  Eric Blake  <ebb9@byu.net>
16396
16397         fchdir: port to mingw
16398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16399         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16400         opened, then use a substitute.
16401         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16402         replacement.
16403         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16404         (_gl_register_fd): No need to check stat if open already filters
16405         all directories.
16406         (fchdir): Fix error condition to match POSIX.
16407         * modules/fchdir (Depends-on): Add sys_stat.
16408         * doc/posix-functions/open.texi (open): Document the limitation.
16409         * modules/fchdir-tests: New file.
16410         * tests/test-fchdir.c: Likewise.
16411
16412         canonicalize: allow cross-testing from cygwin to mingw
16413         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16414         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16415         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16416         Likewise.
16417         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16418         target does not support symlinks.
16419         * tests/test-canonicalize-lgpl.sh: Likewise.
16420
16421         chown: avoid compilation warning on mingw
16422         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16423         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16424         mingw.
16425         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16426         * modules/chown (Depends-on): Add errno.
16427
16428 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16429
16430         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16431         command.
16432
16433 2009-08-31  Jim Meyering  <meyering@redhat.com>
16434
16435         canonicalize: remove useless initialization
16436         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16437         initialization of local, "end".
16438
16439 2009-08-30  Bruno Haible  <bruno@clisp.org>
16440
16441         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16442         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16443         ENOSYS.
16444
16445 2009-08-30  Bruno Haible  <bruno@clisp.org>
16446
16447         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16448         /usr/xpg4/bin/tr when it exists.
16449         * tests/test-pipe-filter-gi1.sh: Likewise.
16450
16451 2009-08-30  Bruno Haible  <bruno@clisp.org>
16452
16453         Work around deficient /usr/bin/id program on Solaris.
16454         * tests/test-file-has-acl.sh (ID): New variable.
16455         * tests/test-set-mode-acl.sh (ID): Likewise.
16456         * tests/test-copy-acl.sh (ID): Likewise.
16457         * tests/test-copy-file.sh (ID): Likewise.
16458
16459 2009-08-30  Bruno Haible  <bruno@clisp.org>
16460
16461         New module 'xstriconveh'.
16462         * lib/xstriconveh.h: New file.
16463         * lib/xstriconveh.c: New file.
16464         * modules/xstriconveh: New file.
16465
16466 2009-08-30  Bruno Haible  <bruno@clisp.org>
16467
16468         Make it easier to use mem_cd_iconveh.
16469         * lib/striconveh.h (iconveh_t): New type.
16470         (iconveh_open, iconveh_close): New declarations.
16471         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16472         with a single 'const iconveh_t *' argument.
16473         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16474         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16475         with a single 'const iconveh_t *' argument.
16476         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16477         * tests/test-striconveh.c (main): Update.
16478         * NEWS: Mention the change.
16479
16480 2009-08-30  Bruno Haible  <bruno@clisp.org>
16481
16482         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16483         problem.
16484
16485 2009-08-30  Bruno Haible  <bruno@clisp.org>
16486
16487         Work around iconv_open problem on Solaris.
16488         * lib/iconv_open-solaris.gperf: New file.
16489         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16490         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16491         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16492         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16493         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16494         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16495
16496 2009-08-29  Jim Meyering  <meyering@redhat.com>
16497
16498         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16499         * top/maint.mk (cvs-check): Remove target; it was just an alias
16500         to the better-named vc-diff-check.
16501         (maintainer-distcheck): Remove rule.  It was used only from
16502         the (alpha/beta/major) target, and all of its commands but one
16503         were coreutils-specific.
16504         (vc-dist): Remove rule.
16505         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16506         Run vc-diff-check, not vc-dist.
16507         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16508
16509 2009-08-27  Bruno Haible  <bruno@clisp.org>
16510
16511         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16512         of 0.
16513
16514 2009-08-27  Bruno Haible  <bruno@clisp.org>
16515
16516         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16517         compilers.
16518         * doc/func.texi: Document the SunPRO C bug.
16519
16520 2009-08-27  Bruno Haible  <bruno@clisp.org>
16521
16522         Fix link error on Solaris.
16523         * tests/test-parse-duration.c (xstrdup): Remove function.
16524
16525 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16526
16527         ignore-value: handle pointer types, too
16528         * lib/ignore-value.h (__attribute__): Remove definition.
16529         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16530         of a more concise and more-often effective "(void) i" statement.
16531         (ignore_ptr): New function to suppress warnings from functions that
16532         return pointers, and to make it explicit that one function doesn't
16533         handle all cases.
16534
16535 2009-08-25  Bruno Haible  <bruno@clisp.org>
16536
16537         dup2: work around a Linux bug.
16538         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16539         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16540         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16541         Reported by Simon Josefsson.
16542
16543 2009-08-25  Jim Meyering  <meyering@redhat.com>
16544
16545         libguestfs uses gnulib
16546         * users.txt: Add libguestfs.
16547
16548 2009-08-24  Eric Blake  <ebb9@byu.net>
16549
16550         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16551         * lib/pipe2.c (includes): Add binary-io.h.
16552         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16553
16554 2009-08-24  Bruno Haible  <bruno@clisp.org>
16555
16556         Tolerate declared but missing accept4 syscall.
16557         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16558         available.
16559         * lib/sys_socket.in.h (accept4): If the function is already present,
16560         override it.
16561         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16562         * modules/accept4 (Makefile.am): Compile accept4.c always.
16563         Reported by Paolo Bonzini and Eric Blake.
16564
16565 2009-08-23  Bruno Haible  <bruno@clisp.org>
16566
16567         New module 'accept4'.
16568         * lib/sys_socket.in.h (accept4): New declaration.
16569         * lib/accept4.c: New file.
16570         * m4/accept4.m4: New file.
16571         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16572         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16573         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16574         HAVE_ACCEPT4.
16575         * modules/accept4: New file.
16576         * doc/glibc-functions/accept4.texi: Mention the new module.
16577
16578 2009-08-24  Jim Meyering  <meyering@redhat.com>
16579
16580         progname: also set global program_invocation_name, when possible
16581         Before this change, a libtool-enabled program that calls glibc's
16582         error function would report the program name as
16583         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16584         * modules/progname (configure.ac): Check for a declaration of
16585         program_invocation_name.
16586         * lib/progname.c:  Include <errno.h>.
16587         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16588         Set program_invocation_name.
16589
16590 2009-08-23  Bruno Haible  <bruno@clisp.org>
16591
16592         * lib/dup3.c: Include <string.h>.
16593
16594 2009-08-23  Bruno Haible  <bruno@clisp.org>
16595
16596         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16597         * lib/pipe2.c (pipe2): Likewise.
16598         Suggested by Eric Blake.
16599
16600 2009-08-23  Bruno Haible  <bruno@clisp.org>
16601
16602         Tolerate declared but missing dup3 syscall.
16603         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16604         * lib/unistd.in.h (dup3): If the function is already present,
16605         override it.
16606         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16607         * modules/dup3 (Makefile.am): Compile dup3.c always.
16608         Reported by Paolo Bonzini.
16609
16610 2009-08-23  Bruno Haible  <bruno@clisp.org>
16611
16612         Tolerate declared but missing pipe2 syscall.
16613         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16614         available.
16615         * lib/unistd.in.h (pipe2): If the function is already present,
16616         override it.
16617         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16618         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16619         Reported by Paolo Bonzini.
16620
16621 2009-08-23  Bruno Haible  <bruno@clisp.org>
16622
16623         * lib/pipe2.c (pipe2): Move #ifs inside function.
16624
16625 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16626
16627         quotearg: document limitations of quote_these_too
16628         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16629         those limitations are created.
16630         * lib/quotearg.h (set_char_quoting): Document that digits and
16631         letters that are special after backslash are not permitted.
16632         (quotearg_char): Cross-reference set_char_quoting documentation.
16633
16634 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16635
16636         quotearg: implement custom_quoting_style
16637         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16638         right_quote fields.
16639         (set_custom_quoting): New public function.
16640         (quotearg_buffer_restyled): Add left_quote and right_quote
16641         arguments, handle them very much like locale quoting, and update
16642         all uses.
16643         (quotearg_n_custom): New public function.
16644         (quotearg_n_custom_mem): New public function.
16645         (quotearg_custom): New public function.
16646         (quotearg_custom_mem): New public function.
16647         * lib/quotearg.h: Prototype and document new public functions.
16648         (enum quoting_style): For escape_quoting_style and
16649         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16650         ignored even though they're otherwise like c_quoting_style.
16651         Add custom_quoting_style member and document with comparison to
16652         clocale_quoting_style.
16653         * tests/test-quotearg.c (custom_quotes): New array.
16654         (custom_results): New array.
16655         (main): Extend to test custom quoting.
16656
16657 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16658
16659         quotearg: fix right quote escaping when it's in quote_these_too
16660         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16661         quote, be sure to prepend only one backslash.
16662         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16663         (main): Test it.
16664
16665 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16666
16667         quotearg-tests: test escaping of embedded locale quotes
16668         * tests/test-quotearg.c (struct result_strings): Add member for
16669         new input.
16670         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16671         (inputs): Add new input.
16672         (results_g): Add expected results.
16673         (flag_results): Likewise.
16674         (locale_results): Likewise.
16675         (compare_strings): Check those.
16676
16677 2009-08-23  Bruno Haible  <bruno@clisp.org>
16678
16679         Tests for module 'dup3'.
16680         * modules/dup3-tests: New file.
16681         * tests/test-dup3.c: New file.
16682
16683         New module 'dup3'.
16684         * lib/unistd.in.h (dup3): New declaration.
16685         * lib/dup3.c: New file.
16686         * m4/dup3.m4: New file.
16687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16688         HAVE_DUP3.
16689         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16690         * modules/dup3: New file.
16691         * doc/glibc-functions/dup3.texi: Mention the new module.
16692
16693 2009-08-23  Bruno Haible  <bruno@clisp.org>
16694
16695         Tweak the dup2 test.
16696         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16697         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16698         the test file is still empty. Fix argument order of lseek.
16699
16700 2009-08-23  Bruno Haible  <bruno@clisp.org>
16701
16702         Avoid test link errors when the modules getopt-gnu, gettext are used.
16703         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16705
16706 2009-08-23  Bruno Haible  <bruno@clisp.org>
16707
16708         Fix getdtablesize() on mingw.
16709         * lib/getdtablesize.c (getdtablesize): Implement differently.
16710         * lib/unistd.in.h (getdtablesize): Improve comment.
16711
16712 2009-08-23  Bruno Haible  <bruno@clisp.org>
16713
16714         New module 'mkostemp'.
16715         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16716         * lib/stdlib.in.h (mksotemp): New declaration.
16717         * lib/mkostemp.c: New file, from glibc with modifications.
16718         * lib/tempname.h (GT_FILE): Remove outdated comment.
16719         (gen_tempname): Add flags argument.
16720         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16721         (__GT_FILE): Map to 1.
16722         (small_open, large_open): Remove macros.
16723         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16724         * lib/mkstemp.c (mkstemp): Update.
16725         * lib/mkdtemp.c (mkdtemp): Likewise.
16726         * m4/mkostemp.m4: New file.
16727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16728         HAVE_MKOSTEMP.
16729         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16730         HAVE_MKOSTEMP.
16731         * modules/mkostemp: New file, based on modules/mkstemp.
16732         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16733         * NEWS: Mention the change.
16734
16735 2009-08-23  Bruno Haible  <bruno@clisp.org>
16736
16737         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16738         Reported by Eric Blake.
16739
16740 2009-08-23  Bruno Haible  <bruno@clisp.org>
16741
16742         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16743         Reported by Eric Blake.
16744
16745 2009-08-23  Bruno Haible  <bruno@clisp.org>
16746
16747         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16748         * modules/pipe2 (Depends-on): Likewise.
16749
16750 2009-08-23  Eric Blake  <ebb9@byu.net>
16751
16752         fcntl-h: add O_TTY_INIT support
16753         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16754         * tests/test-fcntl-h.c (o): Test it.
16755         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16756
16757         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16758         * modules/fcntl: Move <fcntl.h> header replacement...
16759         * modules/fcntl-h: ...to new name, so as not to collide with
16760         like-named function.
16761         * tests/test-fcntl.c: Rename...
16762         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16763         * modules/fcntl-tests: Rename...
16764         * modules/fcntl-h-tests: ...to this.  Update test file name.
16765         * modules/chdir-long (Depends-on): Update clients.
16766         * modules/chdir-safer (Depends-on): Likewise.
16767         * modules/fcntl-safer (Depends-on): Likewise.
16768         * modules/fts (Depends-on): Likewise.
16769         * modules/mkancesdirs (Depends-on): Likewise.
16770         * modules/mkdir-p (Depends-on): Likewise.
16771         * modules/open (Depends-on): Likewise.
16772         * modules/savewd (Depends-on): Likewise.
16773         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16774         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16775
16776 2009-08-22  Bruno Haible  <bruno@clisp.org>
16777
16778         * modules/binary-io (License): Relicense under LGPL.
16779         * modules/pipe2 (License): Likewise.
16780
16781 2009-08-22  Bruno Haible  <bruno@clisp.org>
16782
16783         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16784         return value.
16785         * lib/pipe-filter-gi.c (filter_init): Likewise.
16786         Reported by Eric Blake.
16787
16788 2009-08-22  Bruno Haible  <bruno@clisp.org>
16789
16790         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16791         * modules/pipe (Depends-on): Add pipe2.
16792
16793 2009-08-22  Bruno Haible  <bruno@clisp.org>
16794
16795         Tests for module 'pipe2'.
16796         * modules/pipe2-tests: New file.
16797         * tests/test-pipe2.c: New file.
16798
16799         New module 'pipe2'.
16800         * lib/unistd.in.h (pipe2): New declaration.
16801         * lib/pipe2.c: New file.
16802         * m4/pipe2.m4: New file.
16803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16804         HAVE_PIPE2.
16805         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16806         * modules/pipe2: New file.
16807         * doc/glibc-functions/pipe2.texi: Mention the new module.
16808
16809 2009-08-22  Bruno Haible  <bruno@clisp.org>
16810
16811         Reference some new glibc functions.
16812         * doc/glibc-functions/accept4.texi: New file.
16813         * doc/glibc-functions/dup3.texi: New file.
16814         * doc/glibc-functions/mkostemp.texi: New file.
16815         * doc/glibc-functions/pipe2.texi: New file.
16816         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16817         (Glibc sys/socket.h): Refer to accept4.
16818         (Glibc unistd.h): Refer to dup3, pipe2.
16819         Reported by Eric Blake.
16820
16821 2009-08-22  Jim Meyering  <meyering@redhat.com>
16822             Bruno Haible  <bruno@clisp.org>
16823
16824         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16825         This makes it so packages using automake-1.11's silent-rules option
16826         can print e.g., a single "GEN    configmake.h" line, rather than
16827         the 30+ statements that perform the job.  If you want to see the
16828         actual commands, you can still run "make V=1".
16829         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
16830         so that make output is abbreviated when those variables are defined
16831         appropriately.
16832         * modules/argz: Likewise.
16833         * modules/arpa_inet: Likewise.
16834         * modules/byteswap: Likewise.
16835         * modules/configmake: Likewise.
16836         * modules/dirent: Likewise.
16837         * modules/errno: Likewise.
16838         * modules/fcntl: Likewise.
16839         * modules/float: Likewise.
16840         * modules/fnmatch: Likewise.
16841         * modules/getopt-posix: Likewise.
16842         * modules/glob: Likewise.
16843         * modules/iconv_open: Likewise.
16844         * modules/inttypes: Likewise.
16845         * modules/localcharset: Likewise.
16846         * modules/locale: Likewise.
16847         * modules/math: Likewise.
16848         * modules/netdb: Likewise.
16849         * modules/netinet_in: Likewise.
16850         * modules/poll: Likewise.
16851         * modules/posix_spawnp-tests: Likewise.
16852         * modules/sched: Likewise.
16853         * modules/search: Likewise.
16854         * modules/selinux-h: Likewise.
16855         * modules/signal: Likewise.
16856         * modules/spawn: Likewise.
16857         * modules/stdarg: Likewise.
16858         * modules/stdbool: Likewise.
16859         * modules/stddef: Likewise.
16860         * modules/stdint: Likewise.
16861         * modules/stdio: Likewise.
16862         * modules/stdlib: Likewise.
16863         * modules/string: Likewise.
16864         * modules/strings: Likewise.
16865         * modules/sys_file: Likewise.
16866         * modules/sys_ioctl: Likewise.
16867         * modules/sys_select: Likewise.
16868         * modules/sys_socket: Likewise.
16869         * modules/sys_stat: Likewise.
16870         * modules/sys_time: Likewise.
16871         * modules/sys_times: Likewise.
16872         * modules/sys_utsname: Likewise.
16873         * modules/sys_wait: Likewise.
16874         * modules/sysexits: Likewise.
16875         * modules/time: Likewise.
16876         * modules/unistd: Likewise.
16877         * modules/wchar: Likewise.
16878         * modules/wctype: Likewise.
16879
16880 2009-08-22  Jim Meyering  <meyering@redhat.com>
16881
16882         announce-gen: detect write failure
16883         * build-aux/announce-gen: Add Coda at end.
16884         Remove equivalent-but-more-verbose block at top.
16885
16886 2009-08-19  Akim Demaille  <demaille@gostai.com>
16887
16888         bootstrap: --help to stdout.
16889         * bootstrap (usage): Don't send --help to stderr.
16890         Use a here doc instead of a long string.
16891
16892 2009-08-21  Eric Blake  <ebb9@byu.net>
16893
16894         test-popen-safer: split from test-popen
16895         * tests/test-popen.c (main): Move...
16896         * tests/test-popen.h: ...into new file.
16897         * tests/test-popen-safer2.c: New file.
16898         * modules/popen-tests (Files): Add test-popen.h.
16899         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
16900         Suggested by Bruno Haible.
16901
16902         test-fcntl-safer: split from test-open
16903         * tests/test-open.c (main): Move...
16904         * tests/test-open.h: ...into new file.
16905         * tests/test-fcntl-safer.c: New file.
16906         * modules/open-tests (Files): Add test-open.h.
16907         * modules/fcntl-safer-tests: New file.
16908         Suggested by Bruno Haible.
16909
16910         test-fopen-safer: split from test-fopen
16911         * tests/test-fopen.c (main): Move...
16912         * tests/test-fopen.h: ...into new file.
16913         * tests/test-fopen-safer.c: New file.
16914         * modules/fopen-tests (Files): Add test-fopen.h.
16915         * modules/fopen-safer-tests: New file.
16916         Suggested by Bruno Haible.
16917
16918 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16919
16920         popen-safer: test O_CLOEXEC at run-time.
16921         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
16922
16923 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
16924
16925         fcntl: move more flags to the header
16926         * lib/cloexec.c: Do not define FD_CLOEXEC here.
16927         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
16928         * lib/fcntl.in.h: Do both things here.
16929
16930 2009-08-21  Jim Meyering  <meyering@redhat.com>
16931
16932         consistently remove $@-t before redirecting to it
16933         * modules/argz: Remove $@-t and $@ before redirecting to the former.
16934         * modules/alloca-opt: Likewise.
16935         * modules/byteswap: Likewise.
16936         * modules/fnmatch: Likewise.
16937         * modules/getopt-posix: Likewise.
16938         * modules/glob: Likewise.
16939         * modules/poll: Likewise.
16940         * modules/posix_spawnp-tests: Likewise.
16941         * modules/sys_socket: Likewise.
16942         * modules/sysexits: Likewise.
16943
16944 2009-08-21  Eric Blake  <ebb9@byu.net>
16945
16946         popen: simplify access to original popen
16947         * lib/popen.c (rpl_popen): No need to worry about popen being a
16948         macro.
16949         Reported by Bruno Haible.
16950
16951 2009-08-20  Eric Blake  <ebb9@byu.net>
16952
16953         build: avoid some compiler warnings
16954         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
16955         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
16956         type.
16957         (new_exclude_segment, excluded_file_pattern_p)
16958         (excluded_file_name_p): Reduce scope.
16959         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
16960         old-style declaration.
16961
16962 2009-08-20  Simon Josefsson  <simon@josefsson.org>
16963
16964         * tests/test-exclude1.sh: Handle Windows EOL.
16965         * tests/test-exclude2.sh: Likewise.
16966         * tests/test-exclude3.sh: Likewise.
16967         * tests/test-exclude4.sh: Likewise.
16968         * tests/test-exclude5.sh: Likewise.
16969         * tests/test-exclude6.sh: Likewise.
16970         * tests/test-exclude7.sh: Likewise.
16971
16972 2009-08-19  Akim Demaille  <demaille@gostai.com>
16973
16974         bootstrap: find sha1sum when named gsha1sum.
16975         * bootstrap (find_tool): New.
16976         ($SHA1SUM): New.
16977         Use it.
16978
16979 2009-08-20  Jim Meyering  <meyering@redhat.com>
16980
16981         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
16982         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
16983         expression that converts "." in a file name to "\." in the resulting
16984         regexp.  Start with a dummy statement, so that prior shell variable
16985         definitions are expanded portably.  Reported by Simon Josefsson.
16986
16987 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
16988
16989         Fix polling for writeability of a screen buffer.
16990         * lib/poll.c: Distinguish input and screen buffers for the
16991         Win32 implementation.
16992         * lib/select.c: Likewise.
16993
16994 2009-08-19  Eric Blake  <ebb9@byu.net>
16995
16996         popen-safer: prevent popen from clobbering std descriptors
16997         * modules/popen-safer: New file.
16998         * lib/popen-safer.c: Likewise.
16999         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
17000         * lib/stdio--.h (popen): Provide override.
17001         * lib/stdio-safer.h (popen_safer): Provide declaration.
17002         * tests/test-popen.c (includes): Partially test this.
17003         * modules/popen-safer-tests: New file, for more tests.
17004         * tests/test-popen-safer.c: Likewise.
17005         * MODULES.html.sh (file stream based Input/Output): Mention it.
17006
17007         tests: test some of the *-safer modules
17008         * modules/fopen-safer (Depends-on): Add fopen.
17009         * modules/fcntl-safer (Depends-on): Add fcntl.
17010         * modules/stdlib-safer (Depends-on): Add stdlib.
17011         (configure.ac): Set indicator.
17012         * modules/unistd-safer (configure.ac): Likewise.
17013         * modules/tmpfile-safer (configure.ac): Likewise.
17014         (Depends-on): Add tmpfile.
17015         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
17016         active.
17017         * tests/test-fopen.c (includes): Test safer versions when they are
17018         in use.
17019         * tests/test-open.c (includes): Likewise.
17020
17021         popen: fix cygwin 1.5 bug when stdin closed
17022         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
17023         * modules/popen: New file.
17024         * modules/popen-tests: Likewise.
17025         * tests/test-popen.c: Likewise.
17026         * m4/popen.m4: Likewise.
17027         * lib/popen.c: Likewise.
17028         * lib/stdio.in.h (popen): New declaration.
17029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
17030         * modules/stdio (Makefile.am): Likewise.
17031         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
17032
17033 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
17034
17035         maint.mk: give full control over update-copyright exclusions
17036         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
17037         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
17038         (update-copyright): Don't force inclusion of top-level
17039         ChangeLog.  Don't force exclusion of all COPYING files, but make
17040         them the default exclusion instead.
17041
17042 2009-08-16  Bruno Haible  <bruno@clisp.org>
17043
17044         Fix test failures on Solaris 10.
17045         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
17046         tests when Solaris iconv() is used.
17047         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17048         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17049         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17050         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17051         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17052
17053 2009-08-16  Bruno Haible  <bruno@clisp.org>
17054
17055         Fix test failures on Solaris 10.
17056         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
17057         'tr' program and pass it as first argument.
17058         * tests/test-pipe-filter-gi1.sh: Likewise.
17059         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
17060         program as first argument.
17061         * tests/test-pipe-filter-gi1.c (main): Likewise.
17062
17063 2009-08-16  Eric Blake  <ebb9@byu.net>
17064
17065         fpurge: fix previous commits
17066         * modules/fpurge (Makefile.am): Make replacement conditional,
17067         partially reverting 2007-04-29 change; missed in previous
17068         attempt.
17069         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
17070         is missing.
17071
17072 2009-08-16  Bruno Haible  <bruno@clisp.org>
17073
17074         Clarify fpurge's effect on the file position.
17075         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
17076         * tests/test-fpurge.c (main): Make a second pass for checking the file
17077         position.
17078
17079 2009-08-16  Bruno Haible  <bruno@clisp.org>
17080
17081         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
17082         declaration of fpurge is missing.
17083         * tests/test-fpurge.c (main): Check that the file has not more contents
17084         than expected. Close the file before removing it.
17085
17086 2009-08-15  Eric Blake  <ebb9@byu.net>
17087
17088         fpurge: don't wrap working cygwin implementation
17089         * lib/fpurge.c (fpurge): Fix comment typo.
17090         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
17091         1.7 to avoid replacement.
17092         * tests/test-fpurge.c (main): Enhance test.
17093
17094 2009-08-15  Eric Blake  <ebb9@byu.net>
17095         and Jim Meyering  <meyering@redhat.com>
17096
17097         test-update-copyright: skip if perl is insufficient
17098         * tests/test-update-copyright.sh: Failure to run maintainer tool
17099         should not cause testsuite failure on cygwin 1.5.
17100
17101 2009-08-14  Eric Blake  <ebb9@byu.net>
17102
17103         doc: mention more functions added in cygwin 1.7.0
17104         * doc/posix-headers/limits.texi (limits.h): Update for recent
17105         cygwin additions.
17106         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
17107         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17108         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
17109         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
17110         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
17111
17112 2009-08-14  Eric Blake  <ebb9@byu.net>
17113
17114         maint.mk: simplify update-copyright rule
17115         * top/maint.mk (update-copyright-local): Delete, and document how
17116         to do it in cfg.mk instead.
17117         (update-copyright-exclude-regexp): Delete, and document how to do
17118         it in .x-update-copyright instead.
17119         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
17120         exclude ChangeLog.
17121
17122 2009-08-14  Bruno Haible  <bruno@clisp.org>
17123
17124         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
17125
17126 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17127
17128         maint.mk: support update-copyright-env
17129         * top/maint.mk (update-copyright-env): Define place-holder.
17130         (update-copyright): Expand $(update-copyright-env) before
17131         invoking update-copyright.
17132
17133 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17134
17135         update-copyright: implement forced reformatting
17136         * build-aux/update-copyright: Implement and document
17137         UPDATE_COPYRIGHT_FORCE.
17138         * tests/test-update-copyright.sh: Test it.
17139
17140 2009-08-14  Eric Blake  <ebb9@byu.net>
17141         and Bruno Haible  <bruno@clisp.org>
17142
17143         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
17144         * tests/test-locale.c: Revert previous patch related to NULL.
17145         * tests/test-stdio.c: Likewise.
17146         * tests/test-stdlib.c: Likewise.
17147         * tests/test-string.c: Likewise.
17148         * tests/test-unistd.c: Likewise.
17149         * modules/time-tests (Depends-on): Add verify.
17150         * modules/wchar-tests (Depends-on): Likewise.
17151         * tests/test-time.c: Test for NULL compliance.
17152         * tests/test-wchar.c: Likewise.
17153         * modules/locale (Depends-on): Add stddef.
17154         * modules/stdio (Depends-on): Likewise.
17155         * modules/stdlib (Depends-on): Likewise.
17156         * modules/string (Depends-on): Likewise.
17157         * modules/time (Depends-on): Likewise.
17158         * modules/unistd (Depends-on): Likewise.
17159         * modules/wchar (Depends-on): Likewise.
17160         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17161         * lib/stdlib.in.h (includes): Likewise.
17162         * lib/string.in.h (includes): Likewise.
17163         * lib/time.in.h (includes): Likewise.
17164         * lib/unistd.in.h (includes): Likewise.
17165         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17166         replaced.
17167         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17168         * m4/stddef_h.m4: New file.
17169         * modules/stddef: Likewise.
17170         * lib/stddef.in.h: Likewise.
17171         * modules/stddef-tests: Likewise.
17172         * tests/test-stddef.c: Likewise.
17173         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17174         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17175         * doc/posix-headers/locale.texi (locale.h): Likewise.
17176         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17177         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17178         * doc/posix-headers/string.texi (string.h): Likewise.
17179         * doc/posix-headers/time.texi (time.h): Likewise.
17180         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17181         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17182
17183 2009-08-14  Eric Blake  <ebb9@byu.net>
17184
17185         doc: improve git diff of texinfo files
17186         * .gitattributes: Add rule for *.texi files, with hint on how to
17187         use it.
17188         Copied from m4, and based on a report by Bruno Haible.
17189
17190 2009-08-14  Bruno Haible  <bruno@clisp.org>
17191
17192         Disable multithread support by default on Cygwin 1.5.x for real.
17193         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17194
17195 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17196
17197         update-copyright: much ado about intervals
17198         * build-aux/update-copyright: Implement and document
17199         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17200         of copyright year intervals.
17201         Also, document UPDATE_COPYRIGHT_YEAR.
17202         * tests/test-update-copyright.sh: Test it.
17203
17204         update-copyright: convert 2-digit to 4-digit years
17205         * build-aux/update-copyright: Implement and document.
17206         * tests/test-update-copyright.sh: Update.
17207
17208 2009-08-14  Jim Meyering  <meyering@redhat.com>
17209
17210         test-exclude: avoid coreutils "make check" failure
17211         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17212         just as in test-argmatch.c.
17213
17214 2009-08-13  Eric Blake  <ebb9@byu.net>
17215
17216         test-dup2: fix bad assumption
17217         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17218         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17219
17220         test-version-etc: fix CRLF portability issue
17221         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17222         recognize \r.
17223         * tests/test-argp-version-etc-1.sh: Likewise.
17224
17225         getopt: update client modules
17226         * modules/argp (Depends-on): Use getopt-gnu.
17227         * modules/git-merge-changelog (Depends-on): Likewise.
17228         * modules/long-options (Depends-on): Likewise.
17229         * modules/xstrtol (Depends-on): Likewise.
17230
17231 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17232
17233         * tests/test-version-etc.sh: Don't fail on different
17234         project/version.  Don't fail on CRLF differences.  Rewrite to use
17235         multiple -e instead of multiple sed forks, suggested by Eric Blake
17236         <ebb9@byu.net>.
17237         * tests/test-argp-version-etc-1.sh: Likewise.
17238
17239 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17240
17241         * tests/test-version-etc.sh: Don't fail on different
17242         project/version.
17243
17244 2009-08-12  Bruno Haible  <bruno@clisp.org>
17245
17246         Tests for modules 'getopt-posix', 'getopt-gnu'.
17247         * modules/getopt-posix-tests: New file.
17248         * tests/test-getopt.c: New file.
17249         * tests/test-getopt.h: New file.
17250         * tests/test-getopt_long.h: New file.
17251
17252         New modules 'getopt-posix', 'getopt-gnu'.
17253         * modules/getopt-gnu: New file, renamed from modules/getopt.
17254         * modules/getopt-posix: New file.
17255         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17256         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17257         (gl_GETOPT): Remove macro.
17258         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17259         Disable the test against BSD systems that declare optreset. Test
17260         against mingw bug. Test against lack of support of optional arguments
17261         on many platforms.
17262         * doc/glibc-headers/getopt.texi: Update module name and list of
17263         relevant platforms.
17264         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17265         'getopt-gnu' and more portability problems.
17266         * NEWS: Mention the changes.
17267
17268 2009-08-12  Bruno Haible  <bruno@clisp.org>
17269
17270         Ensure that optarg etc. get declared by <unistd.h>.
17271         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17272         AC_USE_SYSTEM_EXTENSIONS.
17273         * modules/getopt (Depends-on): Add 'extensions'.
17274
17275 2009-08-12  Bruno Haible  <bruno@clisp.org>
17276
17277         Avoid test link errors.
17278         * modules/pipe-filter-ii-tests (Makefile.am): Define
17279         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17280         * modules/pipe-filter-gi-tests (Makefile.am): Define
17281         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17282         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17283
17284 2009-08-12  Bruno Haible  <bruno@clisp.org>
17285
17286         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17287         gl_GETOPT_SUBSTITUTE before.
17288         (gl_GETOPT): Use it.
17289         * m4/argp.m4 (gl_ARGP): Update.
17290         Reported by Sergey Poznyakoff.
17291
17292         * m4/getopt.m4: Reorder macros.
17293         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17294         (gl_GETOPT_SUBSTITUTE): Remove macro.
17295
17296 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17297
17298         Minor improvement in gitlog-to-changelog
17299
17300         * build-aux/gitlog-to-changelog: New option `--format' makes
17301         output format string configurable.
17302
17303 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17304
17305         Optimize exclude: use hash tables for non-wildcard patterns.
17306
17307         * lib/exclude.c: Include hash.h and mbuiter.h
17308         (struct exclude_pattern, exclude_segment): New data types.
17309         (struct exclude): Rewrite.
17310         (fnmatch_pattern_has_wildcards): New function.
17311         (new_exclude_segment, free_exclude_segment): New functions.
17312         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17313         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17314         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17315         * modules/exclude: Depend on hash and mbuiter.
17316
17317         * modules/exclude-tests: New file.
17318         * tests/test-exclude.c: New file.
17319         * tests/test-exclude1.sh: New file.
17320         * tests/test-exclude2.sh: New file.
17321         * tests/test-exclude3.sh: New file.
17322         * tests/test-exclude4.sh: New file.
17323         * tests/test-exclude5.sh: New file.
17324         * tests/test-exclude6.sh: New file.
17325         * tests/test-exclude7.sh: New file.
17326
17327 2009-08-12  Bruno Haible  <bruno@clisp.org>
17328
17329         Ensure that getopt() gets declared by <unistd.h>.
17330         * lib/unistd.in.h: Conditionally include getopt.h.
17331         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17332         Set GNULIB_UNISTD_H_GETOPT.
17333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17334         GNULIB_UNISTD_H_GETOPT.
17335         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17336
17337 2009-08-12  Bruno Haible  <bruno@clisp.org>
17338
17339         Clarify logic.
17340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17341         gl_replace_getopt instead of GETOPT_H.
17342
17343 2009-08-12  Bruno Haible  <bruno@clisp.org>
17344
17345         * m4/getopt.m4: Add comments.
17346
17347 2009-08-12  Bruno Haible  <bruno@clisp.org>
17348
17349         Disable multithread support by default on Cygwin 1.5.x.
17350         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17351         set gl_use_threads=no if not specified otherwise.
17352
17353 2009-08-11  Bruno Haible  <bruno@clisp.org>
17354
17355         Avoid compilation error on NetBSD 5.0.
17356         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17357         * tests/test-stdio.c: Likewise.
17358         * tests/test-stdlib.c: Likewise.
17359         * tests/test-string.c: Likewise.
17360         * tests/test-unistd.c: Likewise.
17361         Reported by Greg Troxel <gdt@ir.bbn.com>
17362         at <https://savannah.gnu.org/support/?106973>.
17363
17364 2009-08-11  Bruno Haible  <bruno@clisp.org>
17365
17366         * modules/dup2-tests (Depends-on): Remove close.
17367
17368         Undo 2009-07-19 commit.
17369         * modules/acl-tests (Depends-on): Remove close.
17370         * modules/binary-io-tests (Depends-on): Likewise.
17371         * modules/closein-tests (Depends-on): Likewise.
17372         * modules/flock-tests (Depends-on): Likewise.
17373         * modules/fsync-tests (Depends-on): Likewise.
17374         * modules/lseek-tests (Depends-on): Likewise.
17375         * modules/pipe-tests (Depends-on): Likewise.
17376         * modules/posix_spawn-tests (Depends-on): Likewise.
17377         * modules/posix_spawnp-tests (Depends-on): Likewise.
17378         * modules/stat-time-tests (Depends-on): Likewise.
17379         * modules/yesno-tests (Depends-on): Likewise.
17380
17381 2009-08-10  Bruno Haible  <bruno@clisp.org>
17382
17383         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17384
17385 2009-08-10  Bruno Haible  <bruno@clisp.org>
17386
17387         Fix a gcc warning.
17388         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17389
17390 2009-08-10  Bruno Haible  <bruno@clisp.org>
17391
17392         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17393         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17394         not only the first time.
17395         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17396         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17397         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17398         is 1, not only the the first time.
17399
17400 2009-08-10  Bruno Haible  <bruno@clisp.org>
17401
17402         Make it possible to use module 'gethostname' without module 'close'.
17403         * lib/unistd.in.h (close): Evoke a link error only if
17404         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17406         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17407         * modules/unistd (Makefile.am): Substitute
17408         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17409         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17410         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17411         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17412         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17413         * modules/sys_ioctl (Makefile.am): Substitute
17414         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17415         * modules/socket (configure.ac): On native Windows, set
17416         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17417         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17418         Reported by Sam Steingold <sds@gnu.org>.
17419
17420 2009-08-10  Bruno Haible  <bruno@clisp.org>
17421
17422         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17423         * modules/ioctl (configure.ac): Likewise.
17424
17425 2009-08-10  Bruno Haible  <bruno@clisp.org>
17426
17427         Avoid collision between gnulib wrapper and libintl wrapper.
17428         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17429         already defined in intl/printf.c.
17430         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17431         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17432
17433 2009-08-09  Bruno Haible  <bruno@clisp.org>
17434
17435         Make <sys/select.h> really self-contained, also on Solaris 10.
17436         * lib/sys_select.in.h: Include <string.h>.
17437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17438         Solaris 10 problem.
17439         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17440         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17441         Reported by Jim Meyering.
17442
17443 2009-08-09  Bruno Haible  <bruno@clisp.org>
17444
17445         Avoid warnings from 'aclocal' that are due to a use of macro name
17446         AM_XGETTEXT_OPTION that is not defined in automake.
17447         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17448         automake.
17449         * modules/error (configure.ac): Likewise.
17450         * modules/propername (configure.ac): Likewise.
17451         * modules/vasprintf (configure.ac): Likewise.
17452         * modules/verror (configure.ac): Likewise.
17453         * modules/xprintf (configure.ac): Likewise.
17454         * modules/xvasprintf (configure.ac): Likewise.
17455
17456 2009-08-08  Bruno Haible  <bruno@clisp.org>
17457
17458         Avoid compilation error in C++ mode.
17459         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17460         Reported by Sam Steingold <sds@gnu.org>.
17461
17462 2009-08-08  Bruno Haible  <bruno@clisp.org>
17463
17464         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17465         for the various Unix platforms.
17466         * doc/posix-headers/limits.texi: Update platforms list regarding
17467         HOST_NAME_MAX.
17468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17469
17470 2009-08-07  Jim Meyering  <meyering@redhat.com>
17471
17472         selinux-at: fix typo in a comment
17473         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17474         Spotted by Paolo Bonzini.
17475
17476         selinux-at: remove redundant m4 code, add documentation
17477         * modules/selinux-at (configure.ac): Remove redundant code.
17478         LIB_SELINUX is already set via the dependent module, selinux-h.
17479         (Include): Add quotes around selinux-at.h.
17480         * lib/selinux-at.h: Add documentation.
17481         Reported by Bruno Haible in
17482         http://marc.info/?l=gnulib-bug&m=124958988300749
17483
17484 2009-08-07  Bruno Haible  <bruno@clisp.org>
17485
17486         Avoid link error on MacOS X 10.3 and 10.4.
17487         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17488         on non-ELF systems.
17489         * lib/argp-pv.c (argp_program_version): Likewise.
17490         Reported by Simon Josefsson.
17491
17492 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17493
17494         * tests/test-version-etc.sh: Use $EXEEXT.
17495
17496 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17497
17498         update-copyright: update documentation to point to maint.mk
17499         * build-aux/update-copyright: Here.
17500
17501 2009-08-06  Jim Meyering  <meyering@redhat.com>
17502
17503         maint.mk: support update-copyright-local
17504         * top/maint.mk (update-copyright-local): Define place-holder.
17505         (update-copyright): Depend on $(update-copyright-local).
17506
17507 2009-08-06  Jim Meyering  <meyering@redhat.com>
17508
17509         selinux-at: new module
17510         Initially written for coreutils, this module will soon be
17511         used by findutils, too.
17512         * MODULES.html.sh [Misc]: Add selinux-at.
17513         * lib/selinux-at.h: New file, from coreutils.
17514         * lib/selinux-at.c: Likewise.
17515         * modules/selinux-at: Likewise.
17516         (License): Change from LGPL to GPL, since it depends
17517         on the GPL'd openat module.
17518
17519         doc: update README
17520         * README: Remove references to cogito.
17521         Remove cvs-repo-updating instructions from 2007.
17522         Don't imply that CVS is better if you have limited disk space.
17523
17524 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17525
17526         update-copyright: support C-style comments
17527         * build-aux/update-copyright: Implement and document.
17528         * tests/test-update-copyright.sh: Test.
17529
17530 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17531
17532         update-copyright: support omitted "(C)"
17533         * build-aux/update-copyright: Implement and document.  Also,
17534         allow variable whitespace before "(C)".
17535         * tests/test-update-copyright.sh: Test.
17536
17537 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17538
17539         update-copyright: don't trip on non-FSF copyright statements
17540         * build-aux/update-copyright: Fix so that the first correctly
17541         formatted FSF copyright statement is recognized no matter what
17542         appears before it.  Update documentation.
17543         * tests/test-update-copyright.sh: Test that.
17544
17545 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17546
17547         update-copyright: clean up code a little
17548         * build-aux/update-copyright: Append "_re" to the name of any
17549         variable holding a regular expression.
17550         Replace "old" and "new" with "stmt" in variable names.
17551         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17552         handled correctly.
17553         Format code more consistently.
17554
17555 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17556
17557         update-copyright-tests: improve portability
17558         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17559         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17560
17561 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17562
17563         update-copyright: support @copyright{} and &copy;
17564         * build-aux/update-copyright: Implement and document.
17565         * tests/test-update-copyright.sh: Test.
17566
17567 2009-08-04  Jim Meyering  <meyering@redhat.com>
17568
17569         update-copyright-tests: correctly test EOL=\r\n handling
17570         * tests/test-update-copyright.sh: Put \r at the end of some lines
17571         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17572
17573         maint.mk: make update-copyright exclusion list more configurable
17574         * top/maint.mk (update-copyright): Default to excluding COPYING,
17575         but allow an override, in case someone does want to update that file.
17576
17577         maint.mk: don't update copyright date in COPYING
17578         * top/maint.mk (update-copyright): Exclude COPYING.
17579
17580         maint.mk: add a copyright-updating rule
17581         * top/maint.mk (update-copyright): New rule.
17582         Derived from coreutils/Makefile.am.
17583
17584         update-copyright: rename some variables
17585         * build-aux/update-copyright: Rename a few variables for clarity.
17586         Tweak syntax.  List Joel E. Denny as coauthor.
17587
17588 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17589
17590         update-copyright: fix bug for 2-digit last year and add tests
17591         * build-aux/update-copyright: Fix bug.
17592         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17593         specified.
17594         * modules/update-copyright-tests: New
17595         * tests/test-update-copyright.sh: New.
17596
17597 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17598
17599         update-copyright: handle leading tabs in line prefix
17600         * build-aux/update-copyright: Count leading tabs as 8 spaces
17601         when computing margin.  This helps with the formatting of
17602         ChangeLogs, for example.
17603         Fix documentation a little.
17604
17605 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17606
17607         update-copyright: support EOL=\r\n
17608         * build-aux/update-copyright: Implement that.
17609
17610 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17611
17612         update-copyright: automatically format copyright statements
17613         * build-aux/update-copyright: Implement that.
17614         Also, be a little more predictable and safer by always failing
17615         when the full copyright format is not perfectly recognized as an
17616         unbroken whole.  Discussed at
17617         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17618         Rewrite documentation.
17619
17620 2009-08-03  Bruno Haible  <bruno@clisp.org>
17621
17622         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17623
17624 2009-08-02  Bruno Haible  <bruno@clisp.org>
17625
17626         Tests for module 'uname'.
17627         * modules/uname-tests: New file.
17628         * tests/test-uname.c: New file.
17629
17630         New module 'uname'.
17631         * lib/uname.c: New file.
17632         * m4/uname.m4: New file.
17633         * modules/uname: New file.
17634         * doc/posix-functions/uname.texi: Mention the new module.
17635
17636 2009-08-02  Bruno Haible  <bruno@clisp.org>
17637
17638         Tests for module 'sys_utsname'.
17639         * modules/sys_utsname-tests: New file.
17640         * tests/test-sys_utsname.c: New file.
17641
17642         New module 'sys_utsname'.
17643         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17644         * m4/sys_utsname_h.m4: New file.
17645         * modules/sys_utsname: New file.
17646         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17647
17648 2009-08-02  Bruno Haible  <bruno@clisp.org>
17649
17650         Implicitly initialize the sockets library.
17651         * lib/gethostname.c: Include sockets.h.
17652         (rpl_gethostname): Invoke gl_sockets_startup.
17653         * lib/socket.c: Include sockets.h.
17654         (rpl_socket): Invoke gl_sockets_startup.
17655         * modules/gethostname (Depends-on): Add sockets.
17656         * modules/socket (Depends-on): Likewise.
17657         * tests/test-poll.c: Don't include sockets.h.
17658         (main): Don't invoke gl_sockets_startup.
17659         * tests/test-select.c: Don't include sockets.h.
17660         (main): Don't invoke gl_sockets_startup.
17661
17662 2009-08-02  Bruno Haible  <bruno@clisp.org>
17663
17664         Allow multiple calls to gl_sockets_startup.
17665         * lib/sockets.c (initialized_sockets_version): New variable.
17666         (gl_sockets_startup): Do nothing if already called for this or a higher
17667         version.
17668         (gl_sockets_cleanup): Reset initialized_sockets_version.
17669
17670 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17671
17672         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17673         different project/version.
17674
17675 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17676             Bruno Haible  <bruno@clisp.org>
17677
17678         Tests for module 'pipe-filter-gi'.
17679         * modules/pipe-filter-gi-tests: New file.
17680         * tests/test-pipe-filter-gi1.sh: New file.
17681         * tests/test-pipe-filter-gi1.c: New file.
17682         * tests/test-pipe-filter-gi2.sh: New file.
17683         * tests/test-pipe-filter-gi2-main.c: New file.
17684         * tests/test-pipe-filter-gi2-child.c: New file.
17685
17686         New module 'pipe-filter-gi'.
17687         * lib/pipe-filter-gi.c: New file.
17688         * modules/pipe-filter-gi: New file.
17689
17690 2009-08-02  Bruno Haible  <bruno@clisp.org>
17691             Paolo Bonzini  <bonzini@gnu.org>
17692
17693         Tests for module 'pipe-filter-ii'.
17694         * modules/pipe-filter-ii-tests: New file.
17695         * tests/test-pipe-filter-ii1.sh: New file.
17696         * tests/test-pipe-filter-ii1.c: New file.
17697         * tests/test-pipe-filter-ii2.sh: New file.
17698         * tests/test-pipe-filter-ii2-main.c: New file.
17699         * tests/test-pipe-filter-ii2-child.c: New file.
17700
17701         New module 'pipe-filter-ii'.
17702         * lib/pipe-filter.h: New file.
17703         * lib/pipe-filter-ii.c: New file.
17704         * lib/pipe-filter-aux.h: New file.
17705         * modules/pipe-filter-ii: New file.
17706
17707 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17708
17709         * lib/gc-libgcrypt.c: Change copyright to FSF.
17710         * lib/gc-gnulib.c: Likewise.
17711
17712 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17713
17714         * lib/gethostname.c: Include limits.h.
17715
17716 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17717             Bruno Haible  <bruno@clisp.org>
17718
17719         Ensure HOST_NAME_MAX as part of the gethostname module.
17720         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17721         define also HOST_NAME_MAX.
17722         * tests/test-gethostname.c: Include <limits.h>.
17723         (main): Check also HOST_NAME_MAX.
17724         * doc/posix-headers/limits.texi: Document the mingw problem.
17725
17726 2009-08-02  Bruno Haible  <bruno@clisp.org>
17727
17728         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17729         Add comments.
17730
17731 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17732
17733         * lib/gethostname.c: Add Windows wrapper.
17734         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17735         * modules/gethostname: Depend on sys_socket & errno, for also
17736         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17737         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17738
17739 2009-07-31  Jim Meyering  <meyering@redhat.com>
17740
17741         getloadavg: fix symbol name in comment
17742         * lib/getloadavg.c: Correct a typo I introduced when adding
17743         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17744         Matt Kraai spotted the problem.
17745
17746 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17747
17748         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17749         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17750         code also if ! defined N_NAME_POINTER.
17751         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17752         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17753         but the n_name member is a 12-byte array.
17754
17755 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17756
17757         update-copyright: generalize comment handling
17758         * build-aux/update-copyright: Handle copyright statements
17759         within more comment styles.
17760         Document usage.
17761         Report any file with an external copyright holder or parse failure.
17762
17763 2009-07-29  Jim Meyering  <meyering@redhat.com>
17764
17765         mktime: correct setting of REPLACE_MKTIME
17766         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17767
17768         update-copyright: new module
17769         * modules/update-copyright: New file.
17770         * build-aux/update-copyright: New file.
17771         * MODULES.html.sh (maint+release support): Add update-copyright.
17772
17773 2009-07-27  Bruno Haible  <bruno@clisp.org>
17774
17775         Fix compilation error when <ctime> is used and mktime is replaced.
17776         * lib/time.in.h (mktime): New declaration.
17777         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17778         REPLACE_MKTIME instead of defining mktime in config.h.
17779         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17780         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17781         Reported by Ross McFarland <rwmcfa1@neces.com>.
17782
17783 2009-07-27  Bruno Haible  <bruno@clisp.org>
17784
17785         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17786         Reported by Matt Kraai <mkraai@beckman.com>.
17787
17788 2009-07-25  Jim Meyering  <meyering@redhat.com>
17789
17790         maint.mk: avoid warnings about missing files
17791         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17792         diagnostic when .prev-version does not exist.
17793         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17794         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17795         nonexistent cfg.mk.
17796         Suggestions from Simon Josefsson.
17797
17798 2009-07-25  Bruno Haible  <bruno@clisp.org>
17799
17800         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17801         defined as macros. Needed on QNX 6.4.1.
17802         Reported by Matt Kraai <mkraai@beckman.com>.
17803
17804 2009-07-23  Jim Meyering  <meyering@redhat.com>
17805
17806         maint.mk: invoke "make dist" with a working value of XZ_OPT
17807         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17808
17809 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17810
17811         Make fseeko.c compile on QNX.
17812         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17813
17814 2009-07-22  Peter Simons  <simons@cryp.to>
17815
17816         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17817         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17818         * lib/md4.h: Likewise.
17819         * lib/md5.h: Likewise.
17820         * lib/sha1.h: Likewise.
17821         * lib/sha256.h: Likewise.
17822         * lib/sha512.h: Likewise.
17823
17824         tests-sha1: don't assign literal string to 'char *' variable
17825         * tests/test-sha1.c (main): Declare locals with "const" to match
17826         attributes of the right hand side.
17827
17828 2009-07-21  Eric Blake  <ebb9@byu.net>
17829
17830         dup2: fix more mingw problems
17831         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
17832         fd to itself.
17833         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17834         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
17835         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
17836         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
17837         care of mingw bugs.
17838
17839 2009-07-21  Jim Meyering  <meyering@redhat.com>
17840
17841         vc-list-files: avoid failure when /bin/sh is dash
17842         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
17843         On some Debian based systems, /bin/sh is a symlink to dash, and running
17844         this command would omit the "/" following each 'tests' prefix:
17845           dash -x build-aux/vc-list-files -C . tests
17846         That is because bash and dash work differently:
17847           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
17848           bash ok
17849           dash odd
17850
17851 2009-07-21  Eric Blake  <ebb9@byu.net>
17852
17853         dup2-tests: test previous patch
17854         * modules/dup2-tests: New file.
17855         * tests/test-dup2.c: Likewise.
17856         * tests/test-open.c (main): Avoid unspecified behavior.
17857         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
17858         test.
17859
17860         dup2: work around mingw and cygwin 1.5 bug
17861         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
17862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17863         * modules/unistd (Makefile.am): Substitute it.
17864         * lib/unistd.in.h (dup2): Declare the replacement.
17865         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
17866         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
17867         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
17868         * modules/execute (Depends-on): Add dup2.
17869         * modules/fseterr (Depends-on): Likewise.
17870         * modules/pipe (Depends-on): Likewise.
17871         * modules/posix_spawn-internal (Depends-on): Likewise.
17872
17873 2009-07-21  Bruno Haible  <bruno@clisp.org>
17874
17875         * modules/.gitattributes: New file.
17876
17877 2009-07-20  Bruno Haible  <bruno@clisp.org>
17878
17879         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
17880         (main): Use it.
17881
17882 2009-07-20  Eric Blake  <ebb9@byu.net>
17883
17884         test-pipe: make a bit more robust.
17885         * tests/test-pipe.c (myerr): Allow error messages regardless of
17886         what we do to stderr.
17887         (test_pipe): Rearrange to avoid deadlock.
17888         (child_main): Try a larger read, to ensure we avoided deadlock.
17889         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
17890         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
17891         if misused.
17892
17893 2009-07-19  Jim Meyering  <meyering@redhat.com>
17894
17895         fts: avoid false-positive cycle-detection
17896         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
17897         for each new command line argument.
17898
17899 2009-07-19  Bruno Haible  <bruno@clisp.org>
17900
17901         Fix build error on mingw with the modules sys_select and unistd.
17902         * modules/acl-tests (Depends-on): Add close.
17903         * modules/binary-io-tests (Depends-on): Likewise.
17904         * modules/closein-tests (Depends-on): Likewise.
17905         * modules/flock-tests (Depends-on): Likewise.
17906         * modules/fsync-tests (Depends-on): Likewise.
17907         * modules/lseek-tests (Depends-on): Likewise.
17908         * modules/pipe-tests (Depends-on): Likewise.
17909         * modules/posix_spawn-tests (Depends-on): Likewise.
17910         * modules/posix_spawnp-tests (Depends-on): Likewise.
17911         * modules/stat-time-tests (Depends-on): Likewise.
17912         * modules/yesno-tests (Depends-on): Likewise.
17913
17914 2009-07-19  Bruno Haible  <bruno@clisp.org>
17915
17916         Unify conditionals.
17917         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
17918         macros, not at the compiler macros.
17919         * lib/pipe.c: Likewise.
17920         * lib/execute.c: Likewise.
17921         * lib/spawni.c: Likewise.
17922
17923 2009-07-19  Bruno Haible  <bruno@clisp.org>
17924
17925         Fix handling of closed stdin/stdout/stderr on mingw.
17926         * lib/w32spawn.h: Include unistd.h.
17927         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
17928         file descriptor with O_NOINHERIT flag.
17929         (fd_safer_noinherit): New function, based on fd-safer.c.
17930         (dup_safer_noinherit): New function, based on dup-safer.c.
17931         (undup_safer_noinherit): New function.
17932         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
17933         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
17934         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
17935         instead of fd_safer.
17936         * tests/test-pipe.c: Include <windows.h>.
17937         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
17938
17939         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
17940         from main.
17941         (test_pipe): Pass an extra argument for disambiguation.
17942         (main): Invoke parent_main or child_main.
17943
17944         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
17945         consistently.
17946
17947 2009-07-18  Eric Blake  <ebb9@byu.net>
17948
17949         test-pipe: fix mingw build
17950         * tests/test-pipe.c (main): Avoid fcntl on mingw.
17951
17952 2009-07-18  Bruno Haible  <bruno@clisp.org>
17953
17954         * modules/pipe-tests (Makefile.am): Fix typo.
17955
17956 2009-07-18  Eric Blake  <ebb9@byu.net>
17957
17958         error: fix mingw build
17959         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
17960         Reported by Bruno Haible.
17961
17962         error: avoid undefined use of stdout
17963         * lib/error.c (error, error_at_line): Check that fd 1 is open
17964         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
17965         is handling faults and the close_stdout module wants to report the
17966         detection of closed stdout as an error.
17967
17968 2009-07-17  Eric Blake  <ebb9@byu.net>
17969
17970         pipe: be robust in face of closed fds
17971         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
17972         should cause child to misbehave.
17973         * modules/pipe-tests: New module.
17974         * tests/test-pipe.c: New file.
17975         * tests/test-pipe.sh: New file.
17976         Reported by Akim Demaille.
17977
17978 2009-07-14  Bruno Haible  <bruno@clisp.org>
17979
17980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
17981         Reported by anonymous kc.
17982
17983 2009-07-07  Jim Meyering  <meyering@redhat.com>
17984
17985         maint.mk: don't look for translatable strings in *.m4 or *.mk
17986         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
17987         when searching for translatable strings.
17988
17989 2009-07-05  Jim Meyering  <meyering@redhat.com>
17990
17991         remove superfluous parentheses in STREQ definition
17992         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
17993         * lib/getugroups.c (STREQ): Likewise.
17994         * lib/fnmatch.c (STREQ): Likewise.
17995         Spotted by Bruno Haible.
17996
17997 2009-07-04  Jim Meyering  <meyering@redhat.com>
17998
17999         argv-iter: new module
18000         * MODULES.html.sh: Add argv-iter.
18001         * lib/argv-iter.c, lib/argv-iter.h: New files.
18002         * modules/argv-iter: New file.
18003         * modules/argv-iter-tests: New file.
18004         * tests/test-argv-iter.c: Test it.
18005
18006 2009-07-04  Bruno Haible  <bruno@clisp.org>
18007
18008         Fix assertion.
18009         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
18010         contains more exact copies of a given entry than file2, leave the extra
18011         copies unpaired rather than aborting.
18012         Reported by Eric Blake.
18013
18014 2009-07-02  Bruno Haible  <bruno@clisp.org>
18015
18016         Speedup git-merge-changelog for git cherry-pick.
18017         * lib/git-merge-changelog.c (struct entries_mapping): New type.
18018         (entries_mapping_get): New function, extracted from compute_mapping.
18019         (entries_mapping_reverse_get): New function.
18020         (compute_mapping): Add a 'full' argument. Return the result in a
18021         'struct entries_mapping'.
18022         (main): Update. Access the mappings through entries_mapping_get.
18023         Reported by Eric Blake.
18024
18025 2009-07-02  Bruno Haible  <bruno@clisp.org>
18026
18027         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
18028         best_i.
18029
18030 2009-07-02  Bruno Haible  <bruno@clisp.org>
18031
18032         Speed up approximate search for matching ChangeLog entries.
18033         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
18034         argument. Call fstrcmp_bounded instead of fstrcmp.
18035         (compute_mapping, try_split_merged_entry, main): Update callers.
18036
18037 2009-07-02  Bruno Haible  <bruno@clisp.org>
18038
18039         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
18040
18041 2009-06-30  Bruno Haible  <bruno@clisp.org>
18042
18043         Reduce the number of uc_is_cased calls.
18044         * lib/unicase.h (casing_suffix_context_t): Add
18045         'first_char_except_ignorable' field.
18046         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
18047         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
18048         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
18049         Update initializer.
18050         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
18051         case-ignorable characters.
18052         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
18053         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
18054         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
18055         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
18056         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
18057
18058 2009-06-30  Bruno Haible  <bruno@clisp.org>
18059
18060         Tests for module 'unicase/ignorable'.
18061         * modules/unicase/ignorable-tests: New file.
18062         * tests/unicase/test-ignorable.c: New file, generated by
18063         gen-uni-tables.
18064
18065         Tests for module 'unicase/cased'.
18066         * modules/unicase/cased-tests: New file.
18067         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
18068         * tests/unicase/test-predicate-part1.h: New file, derived from
18069         tests/unictype/test-predicate-part1.h.
18070         * tests/unicase/test-predicate-part2.h: New file, same as
18071         tests/unictype/test-predicate-part2.h.
18072
18073         Fix evaluation of "Before C" condition of FINAL_SIGMA.
18074         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
18075         (output_casing_properties): New function.
18076         (main): Call it.
18077         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
18078         * lib/unicase/cased.c: Include unictype/bitmap.h.
18079         (uc_is_cased): Define through a bitmap lookup.
18080         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
18081         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
18082         (uc_is_case_ignorable): Define through a bitmap lookup.
18083         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
18084         lib/unictype/bitmap.h.
18085         (Depends-on): Add inline. Clean up.
18086         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
18087         lib/unictype/bitmap.h.
18088         (Depends-on): Add inline. Clean up.
18089         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
18090         recognition.
18091         * tests/unicase/test-u16-tolower.c (main): Likewise.
18092         * tests/unicase/test-u32-tolower.c (main): Likewise.
18093
18094 2009-06-30  Bruno Haible  <bruno@clisp.org>
18095
18096         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
18097         * lib/unicase/u16-casemap.c: Likewise.
18098         * lib/unicase/u32-casemap.c: Likewise.
18099
18100 2009-06-29  Bruno Haible  <bruno@clisp.org>
18101
18102         Define u32_casefold as a wrapper around u32_ct_casefold.
18103         * lib/unicase/u32-casefold.c: Update.
18104         * modules/unicase/u32-casefold (Depends-on): Add
18105         unicase/u32-ct-casefold, unicase/empty-prefix-context,
18106         unicase/empty-suffix-context. Clean up.
18107
18108         Define u16_casefold as a wrapper around u16_ct_casefold.
18109         * lib/unicase/u16-casefold.c: Update.
18110         * modules/unicase/u16-casefold (Depends-on): Add
18111         unicase/u16-ct-casefold, unicase/empty-prefix-context,
18112         unicase/empty-suffix-context. Clean up.
18113
18114         Define u8_casefold as a wrapper around u8_ct_casefold.
18115         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
18116         * lib/unicase/u8-casefold.c: Update.
18117         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
18118         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18119
18120         Define u32_totitle as a wrapper around u32_ct_totitle.
18121         * lib/unicase/u32-totitle.c: Update.
18122         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
18123         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18124
18125         Define u16_totitle as a wrapper around u16_ct_totitle.
18126         * lib/unicase/u16-totitle.c: Update.
18127         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
18128         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18129
18130         Define u8_totitle as a wrapper around u8_ct_totitle.
18131         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
18132         functions.
18133         (FUNC): Delegate to U_CT_TOTITLE.
18134         * lib/unicase/u8-totitle.c: Update.
18135         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
18136         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18137
18138         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
18139         invocation.
18140         * modules/unicase/u32-tolower (Depends-on): Add
18141         unicase/empty-prefix-context, unicase/empty-suffix-context.
18142
18143         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
18144         invocation.
18145         * modules/unicase/u16-tolower (Depends-on): Add
18146         unicase/empty-prefix-context, unicase/empty-suffix-context.
18147
18148         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
18149         * modules/unicase/u8-tolower (Depends-on): Add
18150         unicase/empty-prefix-context, unicase/empty-suffix-context.
18151
18152         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
18153         invocation.
18154         * modules/unicase/u32-toupper (Depends-on): Add
18155         unicase/empty-prefix-context, unicase/empty-suffix-context.
18156
18157         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
18158         invocation.
18159         * modules/unicase/u16-toupper (Depends-on): Add
18160         unicase/empty-prefix-context, unicase/empty-suffix-context.
18161
18162         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18163         * modules/unicase/u8-toupper (Depends-on): Add
18164         unicase/empty-prefix-context, unicase/empty-suffix-context.
18165
18166         New module 'unicase/u32-ct-casefold'.
18167         * lib/unicase/u32-ct-casefold.c: New file.
18168         * modules/unicase/u32-ct-casefold: New file.
18169
18170         New module 'unicase/u16-ct-casefold'.
18171         * lib/unicase/u16-ct-casefold.c: New file.
18172         * modules/unicase/u16-ct-casefold: New file.
18173
18174         New module 'unicase/u8-ct-casefold'.
18175         * lib/unicase/u8-ct-casefold.c: New file.
18176         * lib/unicase/u-ct-casefold.h: New file, derived from
18177         lib/unicase/u-casefold.h.
18178         * modules/unicase/u8-ct-casefold: New file.
18179
18180         New module 'unicase/u32-ct-totitle'.
18181         * lib/unicase/u32-ct-totitle.c: New file.
18182         * modules/unicase/u32-ct-totitle: New file.
18183
18184         New module 'unicase/u16-ct-totitle'.
18185         * lib/unicase/u16-ct-totitle.c: New file.
18186         * modules/unicase/u16-ct-totitle: New file.
18187
18188         New module 'unicase/u8-ct-totitle'.
18189         * lib/unicase/u8-ct-totitle.c: New file.
18190         * lib/unicase/u-ct-totitle.h: New file, derived from
18191         lib/unicase/u-totitle.h.
18192         * modules/unicase/u8-ct-totitle: New file.
18193
18194         New module 'unicase/u32-ct-tolower'.
18195         * lib/unicase/u32-ct-tolower.c: New file.
18196         * modules/unicase/u32-ct-tolower: New file.
18197
18198         New module 'unicase/u16-ct-tolower'.
18199         * lib/unicase/u16-ct-tolower.c: New file.
18200         * modules/unicase/u16-ct-tolower: New file.
18201
18202         New module 'unicase/u8-ct-tolower'.
18203         * lib/unicase/u8-ct-tolower.c: New file.
18204         * modules/unicase/u8-ct-tolower: New file.
18205
18206         New module 'unicase/u32-ct-toupper'.
18207         * lib/unicase/u32-ct-toupper.c: New file.
18208         * modules/unicase/u32-ct-toupper: New file.
18209
18210         New module 'unicase/u16-ct-toupper'.
18211         * lib/unicase/u16-ct-toupper.c: New file.
18212         * modules/unicase/u16-ct-toupper: New file.
18213
18214         New module 'unicase/u8-ct-toupper'.
18215         * lib/unicase/u8-ct-toupper.c: New file.
18216         * modules/unicase/u8-ct-toupper: New file.
18217
18218         Add context arguments to u*_casemap functions.
18219         * lib/unicase/unicasemap.h: Include unicase.h.
18220         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18221         suffix_context arguments.
18222         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18223         functions.
18224         (FUNC): Add prefix_context and suffix_context arguments. Use
18225         uc_is_cased and uc_is_case_ignorable.
18226         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18227         * lib/unicase/u16-casemap.c: Likewise.
18228         * lib/unicase/u32-casemap.c: Likewise.
18229         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18230         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18231         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18232         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18233         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18234         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18235
18236         New module 'unicase/u32-suffix-context'.
18237         * lib/unicase/u32-suffix-context.c: New file.
18238         * modules/unicase/u32-suffix-context: New file.
18239
18240         New module 'unicase/u16-suffix-context'.
18241         * lib/unicase/u16-suffix-context.c: New file.
18242         * modules/unicase/u16-suffix-context: New file.
18243
18244         New module 'unicase/u8-suffix-context'.
18245         * lib/unicase/u8-suffix-context.c: New file.
18246         * lib/unicase/u-suffix-context.h: New file.
18247         * modules/unicase/u8-suffix-context: New file.
18248
18249         New module 'unicase/empty-suffix-context'.
18250         * lib/unicase/empty-suffix-context.c: New file.
18251         * modules/unicase/empty-suffix-context: New file.
18252
18253         New module 'unicase/u32-prefix-context'.
18254         * lib/unicase/u32-prefix-context.c: New file.
18255         * modules/unicase/u32-prefix-context: New file.
18256
18257         New module 'unicase/u16-prefix-context'.
18258         * lib/unicase/u16-prefix-context.c: New file.
18259         * modules/unicase/u16-prefix-context: New file.
18260
18261         New module 'unicase/u8-prefix-context'.
18262         * lib/unicase/u8-prefix-context.c: New file.
18263         * lib/unicase/u-prefix-context.h: New file.
18264         * lib/unicase/context.h: New file.
18265         * modules/unicase/u8-prefix-context: New file.
18266
18267         New module 'unicase/empty-prefix-context'.
18268         * lib/unicase/empty-prefix-context.c: New file.
18269         * modules/unicase/empty-prefix-context: New file.
18270
18271         New module 'unicase/ignorable'.
18272         * lib/unicase/ignorable.c: New file.
18273         * modules/unicase/ignorable: New file.
18274
18275         New module 'unicase/cased'.
18276         * lib/unicase/caseprop.h: New file.
18277         * lib/unicase/cased.c: New file.
18278         * modules/unicase/cased: New file.
18279
18280         New functions for case mapping of substrings.
18281         * lib/unicase.h (casing_prefix_context_t): New type.
18282         (unicase_empty_prefix_context): New variable.
18283         (u8_casing_prefix_context, u16_casing_prefix_context,
18284         u32_casing_prefix_context, u8_casing_prefixes_context,
18285         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18286         declarations.
18287         (casing_suffix_context_t): New type.
18288         (unicase_empty_suffix_context): New variable.
18289         (u8_casing_suffix_context, u16_casing_suffix_context,
18290         u32_casing_suffix_context, u8_casing_suffixes_context,
18291         u16_casing_suffixes_context, u32_casing_suffixes_context,
18292         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18293         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18294         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18295         declarations.
18296
18297 2009-06-28  Jim Meyering  <meyering@redhat.com>
18298
18299         boostrap: indent only with spaces
18300         * build-aux/bootstrap: Indent only with spaces, never TABs.
18301
18302         bootstrap: split long lines
18303         * build-aux/bootstrap: Keep line length < 80.
18304
18305         bootstrap: sync from coreutils
18306         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18307         just as autoreconf does.  Verify a list of prerequisite
18308         package-name,version-number pairs if defined in bootstrap.conf.
18309         Refer to README-prereq, if prerequisites are not satisfied.
18310
18311 2009-06-27  Eric Blake  <ebb9@byu.net>
18312
18313         tests: add test for bogus NULL definition
18314         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18315         * tests/test-stdlib.c: Likewise.
18316         * tests/test-string.c: Likewise.
18317         * tests/test-locale.c: Likewise.
18318         * tests/test-unistd.c: Likewise.
18319         * modules/stdio-tests (Depends-on): Add verify.
18320         * modules/stdlib-tests (Depends-on): Likewise.
18321         * modules/string-tests (Depends-on): Likewise.
18322         * modules/locale-tests (Depends-on): Likewise.
18323         * modules/unistd-tests (Depends-on): Likewise.
18324
18325 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18326
18327         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18328         self-explaining comment.
18329         * m4/selinux-selinux-h: Update serial.
18330         (gl_LIBSELINUX): New macro, adding a warning for missing development
18331         packages to code extracted from...
18332         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18333         Add warning for missing development packages here, too.
18334
18335 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18336
18337         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18338
18339 2009-06-25  Eric Blake  <ebb9@byu.net>
18340
18341         version-etc: fix regression
18342         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18343         gcc.
18344         (version_etc): Use it, to catch bugs with trailing NULL.
18345         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18346         (version_etc_va): Fix logic bug.
18347         * modules/version-etc-tests: Add test.
18348         * tests/test-version-etc.c: New file.
18349         * tests/test-version-etc.sh: Likewise.
18350
18351 2009-06-25  Sam Steingold  <sds@gnu.org>
18352
18353         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18354         mbtowc declaration.
18355
18356 2009-06-25  Eric Blake  <ebb9@byu.net>
18357
18358         fpurge: migrate into <stdio.h>
18359         * lib/fpurge.h: Delete...
18360         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18361         * lib/fpurge.c (fpurge): Change declaring header.
18362         * modules/fpurge (Files): Drop deleted file.
18363         (Depends-on): Add stdio.
18364         (configure.ac): Set witness.
18365         * modules/stdio (Makefile.am): Support fpurge macros.
18366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18367         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18368         * lib/fflush.c: Update client.
18369         * tests/test-fpurge.c: Likewise.
18370         * NEWS: Mention the change.
18371
18372 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18373
18374         * lib/argp-version-etc.c (program_authors): Add const
18375         qualifier.
18376         * lib/version-etc.c: Fix typos in the comments.
18377         * modules/argp-version-etc: Depends on version-etc.
18378
18379 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18380
18381         argp-version-etc: new module.
18382
18383         * lib/argp-version-etc.c: New file.
18384         * lib/argp-version-etc.h: New file.
18385         * modules/argp-version-etc: New file.
18386         * modules/argp-version-etc-tests: New file.
18387         * tests/test-argp-version-etc.c: New test.
18388         * tests/test-argp-version-etc-1.sh: New test.
18389
18390 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18391
18392         Provide additional interfaces and documentation for version-etc
18393         module.
18394
18395         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18396         interfaces.
18397         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18398         prototypes.
18399
18400 2009-06-24  Bruno Haible  <bruno@clisp.org>
18401
18402         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18403         HAVE_LIB${NAME} macro.
18404         Reported by Sam Steingold <sds@gnu.org>.
18405
18406 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18407
18408         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18409         needed.
18410
18411 2009-06-21  Bruno Haible  <bruno@clisp.org>
18412
18413         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18414         work.
18415         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18416         together with LIB${NAME}, LTLIB${NAME}.
18417         Reported by Sam Steingold <sds@gnu.org>.
18418
18419 2009-06-20  Jim Meyering  <meyering@redhat.com>
18420
18421         tests: make sc_require_test_exit_idiom more generic
18422         * top/maint.mk (Exit_witness_file): New overridable variable.
18423         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18424         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18425
18426 2009-06-19  Jim Meyering  <meyering@redhat.com>
18427
18428         hash: reverse order of src/dst parameters in an internal interface
18429         * lib/hash.c (transfer_entries): Reverse order of parameters to
18430         put DST before SRC.  Adjust callers.
18431
18432         tests: test-hash: avoid wholesale duplication
18433         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18434         Instead, use a loop and add a single conditional.
18435
18436         tests: test-hash: allow seed selection via a command line argument
18437         * tests/test-hash.c (get_seed): New function.
18438         (main): Use it.
18439
18440 2009-06-19  Eric Blake  <ebb9@byu.net>
18441
18442         hash: avoid memory leak on allocation failure
18443         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18444         failure.  Factor repeated algorithm...
18445         (transfer_entries): ...into new helper routine.
18446         (hash_delete): React to hash_rehash return value.
18447
18448         hash: reduce memory pressure in hash_rehash no-op case
18449         * lib/hash.c (next_prime): Avoid overflow.
18450         (hash_initialize): Factor bucket size computation...
18451         (compute_bucket_size): ...into new helper function.
18452         (hash_rehash): Use new function and open coding to reduce memory
18453         pressure, and avoid a memory leak in USE_OBSTACK code.
18454         Reported by Jim Meyering.
18455
18456 2009-06-18  Eric Blake  <ebb9@byu.net>
18457
18458         hash: make rotation more obvious
18459         * modules/hash (Depends-on): Add bitrotate and stdint.
18460         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18461         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18462         (SIZE_MAX): Rely on headers for definition.
18463         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18464         (raw_hasher): Use rotr_sz.
18465         Suggested by Jim Meyering.
18466
18467         hash: fix memory leak in last patch
18468         * lib/hash.c (hash_rehash): Avoid memory leak.
18469
18470         hash: avoid no-op rehashing
18471         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18472
18473         hash: provide default callback functions
18474         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18475         (hash_initialize): Use them as defaults.
18476         * tests/test-hash.c (main): Test this.
18477
18478         hash: minor optimization
18479         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18480         when possible.
18481         (hash_initialize): Document this promise.
18482         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18483         * tests/test-hash.c (hash_compare_strings): Test this.
18484
18485 2009-06-18  Bruno Haible  <bruno@clisp.org>
18486
18487         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18488         going to be replaced anyway.
18489
18490 2009-06-18  Bruno Haible  <bruno@clisp.org>
18491
18492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18493         in one place.
18494         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18495         be replaced anyway.
18496
18497 2009-06-18  Eric Blake  <ebb9@byu.net>
18498
18499         hash: check for resize before insertion
18500         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18501         threshold before insertion, so that a pathological hash_rehash
18502         that fills every bucket can still trigger another rehash.
18503
18504 2009-06-18  Jim Meyering  <meyering@redhat.com>
18505
18506         hash-tests: add a loop around the small tests
18507         * tests/test-hash.c (main): Repeat small tests with selected
18508         small initial table sizes.
18509
18510 2009-06-17  Eric Blake  <ebb9@byu.net>
18511
18512         hash: minor cleanups
18513         * lib/hash.h (hash_entry): Make opaque, by moving...
18514         * lib/hash.c (hash_entry): ...here.
18515         (hash_insert): Clarify restrictions on what can be inserted.
18516         (hash_get_next): Clarify when it is safe to remove an element
18517         during traversal.
18518         (check_tuning): Skip verification when tuning is known safe.
18519         (hash_initialize): Clarify restrictions on tuning.
18520
18521 2009-06-17  Jim Meyering  <jim@meyering.net>
18522         and Eric Blake  <ebb9@byu.net>
18523
18524         hash-tests: new module
18525         * modules/hash-tests: New file.
18526         * tests/test-hash.c: New file.
18527
18528 2009-06-17  Eric Blake  <ebb9@byu.net>
18529
18530         strstr-simple: document new module
18531         * MODULES.html.sh: Document new module.
18532
18533         strstr, strcasestr: replace on platforms with broken memchr
18534         * modules/strstr: Split into...
18535         * modules/strstr-simple: ...new module that does not care about
18536         performance, but does care about glibc bug.
18537         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18538         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18539         if platform memchr is broken, per Debian bug 521737.
18540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18541         memchr.
18542         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18543         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18544         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18545         * modules/mountlist (Depends-on): Add strstr-simple.
18546         * modules/gen-uni-tables (Depends-on): Likewise.
18547         * modules/argz (Depends-on): Add strstr.
18548
18549 2009-06-17  Bruno Haible  <bruno@clisp.org>
18550
18551         * modules/posix_spawn-internal (Depends-on): Add errno.
18552
18553 2009-06-17  Bruno Haible  <bruno@clisp.org>
18554
18555         Define missing ESTALE on Interix 3.5.
18556         * lib/errno.in.h (ESTALE): Assign a value if missing.
18557         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18558         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18559         missing.
18560         * doc/posix-headers/errno.texi: Mention the Interix bug.
18561         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18562
18563 2009-06-15  Eric Blake  <ebb9@byu.net>
18564
18565         memchr, memchr2: add valgrind exception
18566         * lib/memchr.valgrind: New file.
18567         * lib/memchr2.valgrind: New file.
18568         * modules/memchr (Files): Distribute valgrind file.
18569         * modules/memchr2 (Files): Likewise.
18570
18571         docs: memchr is no longer obsolete
18572         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18573         * lib/string.in.h (memchr): Simplify logic.
18574
18575 2009-06-14  Jim Meyering  <meyering@redhat.com>
18576
18577         link-follow: fix the "checking..." message to not mention trailing slash
18578         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18579         never considered trailing slashes.
18580
18581 2009-06-14  Bruno Haible  <bruno@clisp.org>
18582
18583         * m4/memchr.m4: Mention also the bug on IA-64.
18584         * doc/posix-functions/memchr.texi: Likewise.
18585
18586 2009-06-12  Eric Blake  <ebb9@byu.net>
18587
18588         memchr: detect broken x86_64 and alpha implementations
18589         * modules/memchr-tests (Depends-on): Move mmap detection...
18590         * modules/memchr (Depends-on): ...here.
18591         (configure.ac): Set indicator.
18592         * lib/string.in.h (memchr): Declare replacement.
18593         * modules/string (Makefile.am): Trigger replacement.
18594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18595         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18596         bugs.
18597         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18598         * modules/getpagesize (License): Relax license.
18599
18600 2009-06-11  Bruno Haible  <bruno@clisp.org>
18601
18602         * lib/idpriv.h: Add more references.
18603
18604 2009-06-08  Bruno Haible  <bruno@clisp.org>
18605
18606         Tests for module 'idpriv-droptemp'.
18607         * modules/idpriv-droptemp-tests: New file.
18608         * tests/test-idpriv-droptemp.sh: New file.
18609         * tests/test-idpriv-droptemp.su.sh: New file.
18610         * tests/test-idpriv-droptemp.c: New file.
18611
18612         New module 'idpriv-droptemp'.
18613         * lib/idpriv-droptemp.c: New file.
18614         * modules/idpriv-droptemp: New file.
18615
18616 2009-06-08  Bruno Haible  <bruno@clisp.org>
18617
18618         Tests for module 'idpriv-drop'.
18619         * modules/idpriv-drop-tests: New file.
18620         * tests/test-idpriv-drop.sh: New file.
18621         * tests/test-idpriv-drop.su.sh: New file.
18622         * tests/test-idpriv-drop.c: New file.
18623
18624         New module 'idpriv-drop'.
18625         * lib/idpriv.h: New file.
18626         * lib-idpriv-drop.c: New file.
18627         * m4/idpriv.m4: New file.
18628         * modules/idpriv-drop: New file.
18629
18630 2009-06-08  Bruno Haible  <bruno@clisp.org>
18631
18632         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18633         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18634         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18635         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18636         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18637         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18638         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18639
18640 2009-06-08  Eric Blake  <ebb9@byu.net>
18641
18642         test-strstr: use memory fence, when possible
18643         * tests/test-strstr.c (main): Use memory fence, in order to be
18644         more likely to trigger Debian bug 521737.
18645         * modules/strstr-tests (Files): Pull in additional files.
18646
18647         memchr: no longer obsolete, for wider field testing
18648         * modules/memchr (Status, Notice): Delete, this module is no
18649         longer obsolete.
18650         * modules/vasnprintf (Depends-on): Add memchr.
18651
18652 2009-06-07  Jim Meyering  <meyering@redhat.com>
18653
18654         hash: declare some functions with the warn_unused_result attribute
18655         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18656
18657 2009-06-07  Bruno Haible  <bruno@clisp.org>
18658
18659         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18660         Reported by Eric Blake.
18661
18662 2009-06-06  Eric Blake  <ebb9@byu.net>
18663
18664         test-alignof: fix typo with long double
18665         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18666         compiler error.
18667
18668 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18669
18670         Escape non-texinfo { and }s.
18671         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18672         markup error.
18673
18674 2009-06-04  Jim Meyering  <meyering@redhat.com>
18675
18676         gitlog-to-changelog: don't infloop on an empty commit log
18677         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18678         Reported by Boris Petersen <transacid@centerim.org>.
18679
18680 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18681
18682         version-etc: extend for packagers
18683         Add three new configure options, intended for packagers:
18684           --with-packager="packager name"
18685           --with-packager-version="packager-specific version"
18686           --with-packager-bug-reports="packager bug reporting"
18687         An example with coreutils:
18688           $ ./configure \
18689             --with-packager=Gentoo \
18690             --with-packager-bug-report=http://bugs.gentoo.org/ \
18691             --with-packager-version="patchset 1.6"
18692           $ ./src/ls --version | head -n2
18693           ls (GNU coreutils) 7.1-dirty
18694           Packaged by Gentoo (patchset 1.6)
18695         Note that the bug reporting info via --help doesn't show up because
18696         coreutils uses its own custom emit_bug_reporting_address() implementation
18697         in src/system.h.  If it didn't, it'd look like:
18698           $ ./src/ls --help | tail -n4
18699           Report bugs to <bug-coreutils@gnu.org>.
18700           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18701           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18702           General help using GNU software: <http://www.gnu.org/gethelp/>.
18703         * lib/version-etc.c: Print new information, if provided.
18704         * m4/version-etc.m4: New file.
18705         * modules/version-etc (Files): Add m4/version-etc.m4.
18706         (configure.ac): Add gl_VERSION_ETC.
18707
18708 2009-05-31  Bruno Haible  <bruno@clisp.org>
18709
18710         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18711         and 'int64_t'.
18712         * modules/alignof-tests (Dependencies): Add stdint.
18713         Reported by Eric Blake.
18714
18715 2009-05-31  Bruno Haible  <bruno@clisp.org>
18716
18717         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18718         restriction due to compiler bugs.
18719         Reported by Eric Blake.
18720
18721 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18722             Bruno Haible  <bruno@clisp.org>
18723
18724         Fix test-alignof failure.
18725         * lib/alignof.h (alignof_slot): New macro.
18726         (alignof_type): New macro, with the same semantics as the previous
18727         'alignof'.
18728         (alignof): Alias to alignof_slot.
18729         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18730         check that the results are usable as constant expressions.
18731
18732 2009-05-31  Bruno Haible  <bruno@clisp.org>
18733
18734         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18735         * tests/test-memchr.c (main): Check that memchr does not read past the
18736         first occurrence of the byte.
18737         * tests/test-strstr.c (main): Update comment.
18738         Suggested by Eric Blake.
18739
18740 2009-05-30  Bruno Haible  <bruno@clisp.org>
18741
18742         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18743         detail how to use dumpbin.
18744         Reported by David Byron <dbyron@dbyron.com>.
18745
18746 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18747
18748         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18749
18750 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18751
18752         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18753
18754 2009-05-28  Bruno Haible  <bruno@clisp.org>
18755
18756         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18757         build-aux/ files.
18758
18759 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18760
18761         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18762
18763 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18764
18765         * gnulib-tool (sed_transform_main_lib_file)
18766         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18767         regexps.
18768
18769 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18770
18771         * tests/test-strstr.c: Add another self-test.
18772         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18773         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18774
18775 2009-05-23  Bruno Haible  <bruno@clisp.org>
18776
18777         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18778         change.
18779
18780 2009-05-21  Bruno Haible  <bruno@clisp.org>
18781
18782         Simplify use of mode_t varargs.
18783         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18784         uses 'mode_t' or 'int'.
18785         * lib/openat.c (openat): Likewise.
18786         * lib/open-safer.c (open_safer): Likewise.
18787         * m4/mode_t.m4: New file.
18788         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18789         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18790         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18791         * modules/open (Files): Add m4/mode_t.m4.
18792         * modules/openat (Files): Likewise.
18793         * modules/fcntl-safer (Files): Likewise.
18794         Suggested by Eric Blake.
18795
18796 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18797
18798         * doc/glibc-functions/fallocate.texi: New file.
18799         * doc/gnulib.texi: Include it.
18800
18801 2009-05-21  Eric Blake  <ebb9@byu.net>
18802             Bruno Haible  <bruno@clisp.org>
18803
18804         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18805         invocations.
18806         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18807
18808 2009-05-21  Eric Blake  <ebb9@byu.net>
18809             Bruno Haible  <bruno@clisp.org>
18810
18811         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18812         include_next. Fix of 2008-11-20 commit.
18813         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18814         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18815         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18816         NEXT_MATH_H.
18817         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18818         instead of NEXT_MATH_H.
18819
18820 2009-05-21  Bruno Haible  <bruno@clisp.org>
18821
18822         Avoid redefinition warnings for SIZE_MAX.
18823         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18824         Reported by Simon Josefsson.
18825
18826 2009-05-21  Bruno Haible  <bruno@clisp.org>
18827
18828         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
18829         AC_CACHE_VAL.
18830
18831 2009-05-20  Bruno Haible  <bruno@clisp.org>
18832
18833         Make zeroptr.h work on mingw.
18834         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
18835         mprotect.
18836         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
18837         * modules/memchr2-tests (configure.ac): Likewise.
18838         * modules/memcmp-tests (configure.ac): Likewise.
18839         * modules/memmem-tests (configure.ac): Likewise.
18840         * modules/memrchr-tests (configure.ac): Likewise.
18841         Reported by Simon Josefsson.
18842
18843 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18844
18845         * tests/test-glob.c: Include string.h for strcmp prototype.
18846
18847 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18848
18849         * modules/getdelim (Depends-on): Add explicit stdint, although it
18850         was implicitly already pulled in via realloc-posix.
18851         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
18852
18853 2009-05-20  Simon Josefsson  <simon@josefsson.org>
18854
18855         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
18856         G. Christensen" <tgc@jupiterrise.com>.
18857         * m4/sys_socket_h.m4: Check for sa_family_t.
18858         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
18859         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
18860         * tests/test-sys_socket.c: Check that sa_family_t works.
18861
18862 2009-05-18  Eric Blake  <ebb9@byu.net>
18863
18864         maint.mk: allow gnulib_dir in VPATH build
18865         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
18866
18867 2009-05-15  Jim Meyering  <meyering@redhat.com>
18868
18869         maint.mk: Give gnulib_dir a default definition.
18870         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
18871         Thus, most packages no longer need to specify this variable in cfg.mk
18872
18873 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
18874
18875         rename.m4: fix typos that would make non-mingw cross-configure fail
18876         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
18877
18878 2009-05-13  Eric Blake  <ebb9@byu.net>
18879
18880         mmap-anon: avoid out-of-order autoconf expansion
18881         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
18882         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
18883         * modules/memchr-tests (Depends-on): Add extensions.
18884         * modules/memchr2-tests (Depends-on): Add extensions.
18885         * modules/memcmp-tests (Depends-on): Add extensions.
18886         * modules/memmem-tests (Depends-on): Add extensions.
18887         * modules/memrchr-tests (Depends-on): Add extensions.
18888
18889 2009-05-13  Bruno Haible  <bruno@clisp.org>
18890
18891         Make some tests ISO C 99 compliant.
18892         * tests/zerosize-ptr.h: New file.
18893         * tests/test-memchr.c: Include zerosize-ptr.h.
18894         (main): Use a zero-size object pointer instead of NULL.
18895         * tests/test-memchr2.c: Include zerosize-ptr.h.
18896         (main): Use a zero-size object pointer instead of NULL.
18897         * tests/test-memcmp.c: Include zerosize-ptr.h.
18898         (main): Use a zero-size object pointer instead of NULL.
18899         * tests/test-memmem.c: Include zerosize-ptr.h.
18900         (main): Use a zero-size object pointer instead of NULL.
18901         * tests/test-memrchr.c: Include zerosize-ptr.h.
18902         (main): Use a zero-size object pointer instead of NULL.
18903         * modules/memchr-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/memchr2-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/memcmp-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/memmem-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         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
18920         m4/mmap-anon.m4.
18921         (Depends-on): Add getpagesize.
18922         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
18923
18924 2009-05-12  Bruno Haible  <bruno@clisp.org>
18925
18926         Tests for module 'alignof'.
18927         * modules/alignof-tests: New file.
18928         * tests/test-alignof.c: New file.
18929
18930 2009-05-12  Bruno Haible  <bruno@clisp.org>
18931
18932         Fix alignof macro.
18933         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
18934         vendor compilers that are always correct.
18935
18936 2009-05-12  Bruno Haible  <bruno@clisp.org>
18937
18938         Make the MAP_ANONYMOUS detection work on HP-UX 11.
18939         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
18940         not whether its fully works.
18941
18942 2009-05-12  Bruno Haible  <bruno@clisp.org>
18943
18944         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
18945
18946 2009-05-12  Jim Meyering  <meyering@redhat.com>
18947
18948         * top/maint.mk: Adjust backslash alignment.
18949
18950 2009-05-11  Simon Josefsson  <simon@josefsson.org>
18951
18952         * top/maint.mk: Make $(srcdir)/build-aux configurable.
18953
18954 2009-05-11  Eric Blake  <ebb9@byu.net>
18955
18956         argp: avoid undefined behavior
18957         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
18958         macros.
18959
18960 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18961
18962         * tests/test-vc-list-files-git.sh: Do git config of user.email and
18963         user.name to prevent git commit from complaining.
18964
18965 2009-05-10  Bruno Haible  <bruno@clisp.org>
18966
18967         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
18968         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
18969         it rewrites every file name only once.
18970         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
18971
18972 2009-05-08  Bruno Haible  <bruno@clisp.org>
18973
18974         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
18975         instead of 'max'.
18976
18977 2009-05-08  Simon Josefsson  <simon@josefsson.org>
18978
18979         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
18980         sockaddr_storage test.
18981
18982 2009-05-07  Simon Josefsson  <simon@josefsson.org>
18983
18984         * modules/sys_socket (Makefile.am): Substitute
18985         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
18986         * m4/sys_socket_h.m4: Check for sockaddr_storage.
18987         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
18988         * tests/test-sys_socket.c: Check sockaddr_storage.
18989
18990 2009-05-08  Bruno Haible  <bruno@clisp.org>
18991
18992         New module 'alignof'.
18993         * lib/alignof.h: New file.
18994         * modules/alignof: New file.
18995
18996 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
18997             Bruno Haible  <bruno@clisp.org>
18998
18999         Fix test-file-has-acl on FreeBSD.
19000         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
19001         mask is implicitly added.
19002         * tests/test-file-has-acl.c: Include <signal.h>.
19003         (main): Terminate the test after 5 seconds.
19004         * modules/acl-tests (configure.ac): Check for alarm function.
19005
19006 2009-05-04  Bruno Haible  <bruno@clisp.org>
19007
19008         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
19009         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
19010         * modules/errno (configure.ac): Drop AC_REQUIRE.
19011         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
19012         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
19013
19014 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19015
19016         * modules/glob-tests: New module.
19017         * tests/test-glob.c: Add.
19018
19019 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19020
19021         * modules/fnmatch-tests: New module.
19022         * tests/test-fnmatch.c: Add.
19023
19024 2009-05-04  Eric Blake  <ebb9@byu.net>
19025
19026         maint: make the new no-submodule-changes rule VPATH-safe
19027         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
19028
19029 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19030             Bruno Haible  <bruno@clisp.org>
19031
19032         acl: Fix infinite loop on FreeBSD.
19033         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
19034         of return value from acl_get_entry.
19035         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
19036         Likewise.
19037
19038 2009-05-03  Bruno Haible  <bruno@clisp.org>
19039
19040         * lib/acl-internal.h (acl_entries): Clarify return value.
19041         * lib/acl_entries.c (acl_entries): Likewise.
19042
19043 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19044
19045         Bug fix in acl module.
19046         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
19047
19048 2009-05-03  Bruno Haible  <bruno@clisp.org>
19049
19050         Create gperf-generated file in the source dir, not in the build dir.
19051         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
19052         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
19053         * modules/unicase/locale-language (unicase/locale-languages.h):
19054         Likewise.
19055         * modules/unicase/special-casing (unicase/special-casing-table.h):
19056         Likewise.
19057         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
19058         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
19059         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
19060         Reported by Ralf Wildenhues.
19061
19062 2009-05-03  Bruno Haible  <bruno@clisp.org>
19063
19064         * modules/fnmatch (Description, configure.ac): Taken from
19065         fnmatch-posix.
19066         * modules/fnmatch-posix: Turn into a symbolic reference to the
19067         'fnmatch' module, and deprecate.
19068         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
19069
19070 2009-05-03  Bruno Haible  <bruno@clisp.org>
19071
19072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
19073         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
19074         Reported by Ralf Wildenhues.
19075
19076 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19077
19078         * m4/fnmatch.m4: Fix fnmatch re-define.
19079
19080 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19081
19082         priv-set: new module and tests; adapt write-any-file
19083         * lib/priv-set.c: New file.
19084         * lib/priv-set.h: New file.
19085         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
19086         * lib/write-any-file.c: Simplify by using priv-set module.
19087         * m4/priv-set.m4: New file.
19088         * modules/priv-set: New file.
19089         * modules/unlinkdir: Add dependency on priv-set module.
19090         * modules/write-any-file: Likewise.
19091
19092         Tests for module 'priv-set'.
19093         * modules/priv-set-tests: New file.
19094         * tests/test-priv-set.c: New file.
19095
19096 2009-05-03  Jim Meyering  <meyering@redhat.com>
19097             Bruno Haible  <bruno@clisp.org>
19098
19099         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
19100         use the converted UTF-8 variant of the name instead.
19101
19102 2009-05-03  Jim Meyering  <meyering@redhat.com>
19103
19104         tests: tighten some getdate tests
19105         * tests/test-getdate.c (main): Tighten tests: require equality,
19106         not just greater than.  Set TZ envvar to UTC0.
19107
19108 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19109
19110         getdate: correctly interpret "next monday" when run on a Monday
19111         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
19112         that e.g., "next tues" (when run on a tuesday) results in a date
19113         that is one week in the future, and not today's date.
19114         I.e., add a week when the wday is the same as the current one.
19115         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
19116         and earlier by Martin Bernreuther and Jan Minář.
19117         * tests/test-getdate.c (main): Check that "next DAY" is always in
19118         the future and that "last DAY" is always in the past.
19119
19120 2009-05-02  Jim Meyering  <meyering@redhat.com>
19121
19122         build: ensure that a release build fails when a submodule is unclean
19123         * top/maint.mk (no-submodule-changes): New rule.
19124         (alpha beta major): Depend on it.
19125
19126 2009-05-02  Bruno Haible  <bruno@clisp.org>
19127
19128         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
19129         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
19130         shell variable gl_fnmatch_required to detect which variant is
19131         requested.
19132         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
19133         gl_FUNC_FNMATCH_POSIX.
19134         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
19135         exclude fnmatch-posix.
19136
19137 2009-05-02  Bruno Haible  <bruno@clisp.org>
19138
19139         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
19140         * modules/mbsrtowcs (License): Change to LGPLv2+.
19141         * modules/strnlen1 (License): Likewise.
19142         Reported by Simon Josefsson.
19143
19144 2009-05-02  Bruno Haible  <bruno@clisp.org>
19145
19146         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
19147         "cross".
19148         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
19149         gnulib-tool was called with option --source-base=lib.
19150
19151 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19152
19153         Use automake *-local hooks without commands, for extensibility.
19154         * modules/localcharset (Makefile.am): Rename install-exec-local
19155         rule to install-exec-localcharset, and make it a prerequisite of
19156         install-exec-local.  Likewise, rename the uninstall-local rule to
19157         uninstall-localcharset, and make it a prerequisite of the former.
19158
19159 2009-05-01  Bruno Haible  <bruno@clisp.org>
19160
19161         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19162         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19163         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19165         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19166         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19167         m4/locale-zh.m4, m4/codeset.m4.
19168
19169         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19170         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19171         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19172         m4/locale-zh.m4.
19173
19174         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19175         REPLACE_WCRTOMB if mbstate_t must be replaced.
19176         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19177         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19178
19179 2009-05-01  Bruno Haible  <bruno@clisp.org>
19180
19181         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19182         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19183         dngettext, dcngettext, textdomain, bindtextdomain,
19184         bind_textdomain_codeset): Undefine before redefining.
19185
19186 2009-04-30  Bruno Haible  <bruno@clisp.org>
19187
19188         Fix bug introduced on 2009-04-25.
19189         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19190         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19191         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19192         is defined.
19193         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19194         is defined.
19195         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19196         is defined.
19197         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19198
19199 2009-04-28  Bruno Haible  <bruno@clisp.org>
19200
19201         Comment tweaks.
19202         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19203         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19204         * lib/unicase.h (u*_casexfrm): Likewise.
19205         Reported by Paolo Bonzini.
19206
19207 2009-04-28  Bruno Haible  <bruno@clisp.org>
19208
19209         Fix a compilation error.
19210         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19211         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19212         Reported by Jim Meyering.
19213
19214 2009-04-27  Bruno Haible  <bruno@clisp.org>
19215
19216         New module 'libunistring'.
19217         * modules/libunistring: New file.
19218         * m4/libunistring.m4: New file.
19219         * MODULES.html.sh (Unicode string functions): Add it.
19220
19221 2009-04-27  Eric Blake  <ebb9@byu.net>
19222
19223         maint.mk: allow package-specific header to provide <config.h>
19224         * top/maint.mk (sc_require_config_h): New variable.
19225         (sc_require_config_h, sc_require_config_h_first): Use it.
19226
19227 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19228
19229         * top/maint.mk (sc_avoid_if_before_free): Except
19230         useless-if-before-free script.
19231
19232 2009-04-27  Eric Blake  <ebb9@byu.net>
19233
19234         maintainer-makefile: depend on all required helper scripts
19235         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19236         useless-if-before-free.
19237         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19238         version, rather than assuming gnulib checkout is available.
19239         Reported by Simen Josefsson.
19240
19241 2009-04-26  Bruno Haible  <bruno@clisp.org>
19242
19243         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19244         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19245         "../" or "..".
19246
19247 2009-04-26  Bruno Haible  <bruno@clisp.org>
19248
19249         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19250         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19251         AC_LIB_HAVE_LINKFLAGS.
19252
19253 2009-04-26  Bruno Haible  <bruno@clisp.org>
19254
19255         Simplify calling convention of u*_conv_from_encoding.
19256         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19257         u32_conv_from_encoding): Expect a resultbuf argument and return the
19258         result directly as a pointer.
19259         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19260         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19261         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19262         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19263         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19264         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19265         Update.
19266         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19267         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19268         * lib/vasnprintf.c (VASNPRINTF): Update.
19269         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19270         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19271         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19272         * NEWS: Mention the change.
19273
19274 2009-04-26  Bruno Haible  <bruno@clisp.org>
19275
19276         Simplify calling convention of u*_conv_to_encoding.
19277         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19278         u32_conv_to_encoding): Expect a resultbuf argument and return the
19279         result directly as a pointer.
19280         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19281         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19282         freeing scaled_offsets if mem_iconveha failed.
19283         * lib/unicase/u-casexfrm.h (FUNC): Update.
19284         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19285         * lib/vasnprintf.c (VASNPRINTF): Update.
19286         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19287         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19288         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19289         * NEWS: Mention the change.
19290
19291 2009-04-26  Bruno Haible  <bruno@clisp.org>
19292
19293         Avoid test failures on AIX and OSF/1.
19294         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19295         malloc(0).
19296         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19297         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19298         Likewise.
19299         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19300         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19301         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19302         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19303         * doc/posix-functions/malloc.texi: Document the portability problem
19304         related to malloc(0).
19305
19306 2009-04-26  Bruno Haible  <bruno@clisp.org>
19307
19308         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19309         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19310         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19311
19312 2009-04-25  Bruno Haible  <bruno@clisp.org>
19313
19314         Avoid link error when creating a namespace clean library.
19315         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19316         as macro with arguments if already defined as an alias.
19317         * lib/signbitf.c (gl_signbitf): Don't undefine.
19318         * lib/signbitd.c (gl_signbitd): Don't undefine.
19319         * lib/signbitl.c (gl_signbitl): Don't undefine.
19320
19321 2009-04-25  Jim Meyering  <meyering@redhat.com>
19322
19323         vc-list-files: fix another quoting bug
19324         * build-aux/vc-list-files: Avoid sed backslash expansion
19325         of pathological directory names.
19326
19327 2009-04-25  Eric Blake  <ebb9@byu.net>
19328
19329         vc-list-files: fix shell quoting error
19330         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19331         timestamp.
19332
19333 2009-04-25  Jim Meyering  <meyering@redhat.com>
19334
19335         vc-list-files: restore lost functionality with subdir argument
19336         * build-aux/vc-list-files: When given a non-"." sub-directory
19337         argument, substitute the $dir/ prefix back onto each resulting name.
19338         Otherwise, coreutils' root_tests check would fail.
19339
19340 2009-04-24  Eric Blake  <ebb9@byu.net>
19341
19342         vc-list-files: ignore git symlinks
19343         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19344         than ls-files, to ignore git symlinks.
19345
19346         maint.mk: import improvements from m4
19347         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19348         (move_if_change): Delete unused macro.
19349         (news-date-check, vc-diff-check): Support VPATH builds.
19350         (announcement): Likewise.  Split --bootstrap-tools list...
19351         (boostrap-tools): ...into separate list, which can be overridden
19352         in cfg.mk.
19353         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19354         requiring dependency on useless-if-before-free module.
19355         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19356         Support VPATH builds.
19357
19358 2009-04-24  Jim Meyering  <meyering@redhat.com>
19359
19360         maint.mk: remove coreutils-specific rules and variables
19361         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19362         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19363         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19364
19365         maint.mk: remove obsolete rule
19366         * top/maint.mk (rel-check): Remove rule.
19367         (WGET, WGETFLAGS): Remove now-unused variables.
19368
19369 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19370
19371         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19372         consistency.
19373
19374         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19375         '$(PATH_SEPARATOR)' instead of ':'.
19376
19377 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19378
19379         * lib/getopt1.c (main): Use 'const' for static array.
19380
19381 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19382
19383         * top/maint.mk: Sync with coreutils.
19384         * NEWS: Explain incompatibilities.
19385
19386 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19387             Bruno Haible  <bruno@clisp.org>
19388
19389         Fix cross-compilation results.
19390         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19391         statement, as third argument of AC_TRY_RUN.
19392         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19393         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19394         Likewise.
19395         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19396         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19397         Likewise.
19398         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19399         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19400         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19401
19402 2009-04-20  Bruno Haible  <bruno@clisp.org>
19403
19404         Avoid test failure on mingw.
19405         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19406
19407 2009-04-20  Bruno Haible  <bruno@clisp.org>
19408
19409         Avoid compilation error on mingw.
19410         * modules/localename-tests (Depends-on): Add locale.
19411
19412 2009-04-19  Bruno Haible  <bruno@clisp.org>
19413
19414         Support for building a shared library on Windows platforms.
19415         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19416         (main): Test the presence of UNINORM_NFC here.
19417         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19418         (main): Test the presence of UNINORM_NFD here.
19419         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19420         (main): Test the presence of UNINORM_NFKC here.
19421         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19422         (main): Test the presence of UNINORM_NFKD here.
19423
19424 2009-04-19  Bruno Haible  <bruno@clisp.org>
19425
19426         Avoid a compiler warning.
19427         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19428         Change type of variable 'sequence'.
19429
19430 2009-04-19  Bruno Haible  <bruno@clisp.org>
19431
19432         * modules/configmake (Makefile.am): When the contents of configmake.h
19433         does not change, arrange to preserve its modification time.
19434
19435 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19436
19437         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19438         gettext domain.
19439
19440 2009-04-16  Jim Meyering  <meyering@redhat.com>
19441
19442         useless-if-before-free: improve conversion code
19443         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19444         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19445
19446 2009-04-14  Bruno Haible  <bruno@clisp.org>
19447
19448         * modules/fcntl (Depends-on): Add extensions.
19449         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19450
19451 2009-04-12  Ben Pfaff  <blp@gnu.org>
19452
19453         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19454         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19455
19456 2009-03-20  Ben Pfaff  <blp@gnu.org>
19457
19458         Make rename replace existing destinations on Windows.
19459         * m4/rename.m4: Add test for Mingw.
19460         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19461         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19462         * doc/posix-functions/rename.texi: Document.
19463
19464 2009-04-10  Bruno Haible  <bruno@clisp.org>
19465
19466         New include file "iconveh.h".
19467         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19468         * lib/striconveh.h: Include it.
19469         (enum iconv_ilseq_handler): Remove definition.
19470         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19471         striconveh.h.
19472         * lib/striconveha.c: Include striconveh.h.
19473         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19474         * modules/striconveh (Files): Add lib/iconveh.h.
19475         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19476         lib/striconveh.h.
19477
19478 2009-04-10  Bruno Haible  <bruno@clisp.org>
19479
19480         * lib/uniconv.h: Update comment.
19481
19482 2009-04-10  Bruno Haible  <bruno@clisp.org>
19483
19484         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19485         always.
19486         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19487         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19488         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19489         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19490         "unistring-notinline.h", so that the function gets defined always.
19491         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19492         * lib/unistr/u8-uctomb.c: Likewise.
19493         * lib/unistr/u16-mbtouc.c: Likewise.
19494         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19495         * lib/unistr/u16-uctomb.c: Likewise.
19496         * lib/unistr/u32-mbtouc.c: Likewise.
19497         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19498         * lib/unistr/u32-uctomb.c: Likewise.
19499
19500 2009-04-10  Bruno Haible  <bruno@clisp.org>
19501
19502         Mark 'utime' obsolete.
19503         * modules/utime (Status, Notice): New sections.
19504         Suggested by Jim Meyering.
19505
19506         Fix cross-compile guess for utime test.
19507         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19508         autoconf.
19509         * doc/posix-functions/utime.texi: Give more precisions.
19510         Reported by Jan <ipif@ymail.com>.
19511
19512 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19513
19514         filevercmp: correct today's change
19515         * lib/filevercmp.c: Also handle coreutils' test inputs.
19516         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19517
19518         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19519         for reporting it.
19520         * lib/filevercmp.c: Special handle for "", "." and "..".
19521         * tests/test-filevercmp.c: Enlarge the set suite.
19522
19523 2009-04-07  Jim Meyering  <meyering@redhat.com>
19524
19525         useless-if-before-free: show how to remove braced useless free, too
19526         * build-aux/useless-if-before-free: still only in a comment, though.
19527
19528 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19529
19530         maint.mk: import changes to syntax-check macros from coreutils
19531         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19532         Use them in the relevant macros.
19533
19534 2009-04-06  Bruno Haible  <bruno@clisp.org>
19535
19536         Fix unportable use of bit-fields.
19537         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19538         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19539         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19540
19541 2009-04-06  Bruno Haible  <bruno@clisp.org>
19542
19543         Avoid test failures on AIX and OSF/1.
19544         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19545         that malloc(0) = NULL.
19546         * tests/unicase/test-u8-tolower.c (check): Likewise.
19547         * tests/unicase/test-u8-totitle.c (check): Likewise.
19548         * tests/unicase/test-u8-toupper.c (check): Likewise.
19549         * tests/unicase/test-u16-casefold.c (check): Likewise.
19550         * tests/unicase/test-u16-tolower.c (check): Likewise.
19551         * tests/unicase/test-u16-totitle.c (check): Likewise.
19552         * tests/unicase/test-u16-toupper.c (check): Likewise.
19553         * tests/unicase/test-u32-casefold.c (check): Likewise.
19554         * tests/unicase/test-u32-tolower.c (check): Likewise.
19555         * tests/unicase/test-u32-totitle.c (check): Likewise.
19556         * tests/unicase/test-u32-toupper.c (check): Likewise.
19557         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19558         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19559         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19560         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19561         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19562         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19563         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19564         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19565         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19566         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19567         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19568         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19569
19570 2009-04-05  Bruno Haible  <bruno@clisp.org>
19571
19572         Work around an autoconf limitation.
19573         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19574         comment line if it would be longer than 3 KB.
19575
19576 2009-04-05  Bruno Haible  <bruno@clisp.org>
19577
19578         Avoid test failure with libiconv-1.13.
19579         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19580         of the expected test results.
19581
19582 2009-04-05  Bruno Haible  <bruno@clisp.org>
19583
19584         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19585         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19586         that it should be installed.
19587
19588 2009-04-05  Bruno Haible  <bruno@clisp.org>
19589
19590         * gnulib-tool: New option --copy-file.
19591         (func_usage): Document it.
19592         (func_dest_tmpfilename): Moved out of func_import.
19593         (func_add_file, func_update_file): New functions, extracted from
19594         func_import.
19595         (func_import): Update.
19596
19597 2009-04-05  Karl Berry  <karl@gnu.org>
19598
19599         * README: prominently mention gnulib-tool.
19600         Rearrange sections so getting the code is near the top.
19601
19602 2009-04-05  Bruno Haible  <bruno@clisp.org>
19603
19604         * lib/unicase.h: Mention u*_cmp2.
19605         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19606         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19607         * lib/unicase/ulc-casecmp.c: Likewise.
19608         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19609         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19610         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19611         unistr/u8-cmp.
19612         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19613         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19614         unistr/u16-cmp.
19615         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19616         unistr/u32-cmp.
19617
19618         * lib/uninorm.h: Mention u*_cmp2.
19619         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19620         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19621         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19622         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19623         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19624         unistr/u8-cmp.
19625         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19626         unistr/u16-cmp.
19627         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19628         unistr/u32-cmp.
19629
19630         New module 'unistr/u32-cmp2'.
19631         * lib/unistr/u32-cmp2.c: New file.
19632         * modules/unistr/u32-cmp2: New file.
19633
19634         New module 'unistr/u16-cmp2'.
19635         * lib/unistr/u16-cmp2.c: New file.
19636         * modules/unistr/u16-cmp2: New file.
19637
19638         New module 'unistr/u8-cmp2'.
19639         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19640         * lib/unistr/u8-cmp2.c: New file.
19641         * lib/unistr/u-cmp2.h: New file.
19642         * modules/unistr/u8-cmp2: New file.
19643
19644 2009-04-05  Bruno Haible  <bruno@clisp.org>
19645
19646         * lib/unictype.h (uc_property_is_valid): New macro.
19647         * tests/unictype/test-pr_byname.c (main): Use it.
19648
19649         * lib/unistr.h: Doc fixes.
19650         * lib/uniconv.h: Doc fixes.
19651         * lib/unictype.h: Doc fixes.
19652
19653 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19654
19655         Port coreutils 7.2 to Solaris 8.
19656
19657         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19658         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19659         for Solaris 8.  This is a bit of a hack, as it means it's the
19660         caller's responsibility to add -lnsl if needed, but most likely it
19661         won't be needed since only getaddrinfo uses this and getaddrinfo
19662         isn't needed on Solaris 8.
19663
19664         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19665         problem to Solaris 8 encountered with coreutils 7.2, which
19666         resulted in a message "fnmatch.c:292: warning: passing argument 4
19667         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19668         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19669
19670 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19671
19672         * m4/ld-version-script.m4: Add FIXME comment.
19673
19674 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19675
19676         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19677         SOVERSION variable.
19678
19679 2009-04-02  Bruno Haible  <bruno@clisp.org>
19680
19681         * Makefile (info, html, dvi, pdf): Combine the rules.
19682         Suggested by Jim Meyering.
19683
19684 2009-04-01  Bruno Haible  <bruno@clisp.org>
19685
19686         * Makefile (info, html, dvi, pdf): New targets.
19687         Reported by Reuben Thomas <rrt@sc3d.org>.
19688
19689 2009-04-01  Bruno Haible  <bruno@clisp.org>
19690
19691         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19692         can be put into PATH.
19693         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19694
19695 2009-04-01  Bruno Haible  <bruno@clisp.org>
19696
19697         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19698
19699 2009-04-01  Bruno Haible  <bruno@clisp.org>
19700
19701         Rename module 'visibility'.
19702         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19703         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19704         * doc/gnulib.texi: Update.
19705         * MODULES.html.sh (Misc): Update.
19706         * NEWS: Mention the change.
19707
19708 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19709
19710         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19711         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19712         Eric Blake <ebb9@byu.net> for review.
19713         * MODULES.html.sh: Add lib-msvc-compat.
19714         * doc/gnulib.texi: Link to new section.
19715         * m4/ld-output-def.m4: New file.
19716         * doc/ld-output-def.texi: New file.
19717
19718 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19719
19720         Rename ld-version-script to lib-symbol-versions.  Suggested by
19721         Bruno Haible <bruno@clisp.org>.
19722         * modules/ld-version-script: Renamed to lib-symbol-versions.
19723         * doc/ld-version-script.texi: Fix module name.
19724         * MODULES.html.sh: Add lib-symbol-versions.
19725
19726 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19727
19728         * modules/u64-tests: New file.
19729         * tests/test-u64.c: New file.
19730
19731 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19732
19733         * MODULES.html.sh: Mention u64.
19734         * modules/u64: New module.
19735         * modules/crypto/sha512: Depend on u64 module instead of providing
19736         u64.h.
19737
19738 2009-03-27  Eric Blake  <ebb9@byu.net>
19739
19740         test-strerror: make debugging EAI_SYSTEM easier
19741         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19742         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19743         failure was EAI_SYSTEM.
19744
19745 2009-03-25  Bruno Haible  <bruno@clisp.org>
19746
19747         Fix a problem with --enable-relocatable on Solaris 7.
19748         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19749         since 2008-02-24.
19750
19751 2009-03-25  Eric Blake  <ebb9@byu.net>
19752
19753         test-sockets: avoid gcc warning
19754         * tests/test-sockets.c (main): Silence compiler warning.
19755
19756 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19757
19758         New modules nproc, pthread, contributed by Glen Lenker.
19759
19760         * MODULES.html.sh: Add pthread, nproc.
19761         * lib/nproc.c: New file.
19762         * lib/nproc.h: New file.
19763         * lib/pthread.in.h: New file.
19764         * m4/pthread.m4: New file.
19765         * modules/nproc: New file.
19766         * modules/pthread: New file.
19767
19768 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19769
19770         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19771         New variable.
19772
19773 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19774
19775         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19776         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19777         * tests/test-filevercmp.c: Add tests for backup suffixes.
19778
19779 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19780
19781         * modules/stdlib (Depends-on): Add stdint, needed when defining
19782         struct random_data on, for example, HP-UX 10.20.  Reported by
19783         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19784
19785 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19786
19787         * lib/readline.c (readline): Call fflush on stdout after printing
19788         prompt.
19789
19790 2009-03-20  Bruno Haible  <bruno@clisp.org>
19791
19792         Remove dependency from 'close' module to -lws2_32 on native Windows.
19793         * lib/close-hook.h: New file.
19794         * lib/close-hook.c: New file.
19795         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19796         w32sock.h.
19797         (_gl_close_fd_maybe_socket): Remove function.
19798         (rpl_close): Invoke execute_all_close_hooks instead of
19799         _gl_close_fd_maybe_socket.
19800         * lib/sockets.c: Include close-hook.h, w32sock.h.
19801         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19802         (close_sockets_hook): New variable.
19803         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19804         (gl_sockets_cleanup): Unregister it.
19805         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19806         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19807         * modules/close-hook: New file.
19808         * modules/close (Files): Remove lib/w32sock.h.
19809         (Depends-on): Add close-hook.
19810         (Link): Remove section.
19811         * modules/sockets (Files): Add lib/w32sock.h.
19812         (Depends-on): Add close-hook.
19813         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19814         invocation.
19815         * NEWS: Mention that LIB_CLOSE is gone.
19816
19817 2009-03-23  Eric Blake  <ebb9@byu.net>
19818
19819         signal-tests: test previous patch
19820         * tests/test-signal.c: New file.
19821         * modules/signal-tests: Likewise.
19822
19823         signal.h: always support 'volatile sig_atomic_t'
19824         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19825         (gl_SIGNAL_H_DEFAULTS): Add a default.
19826         * modules/signal (Makefile.am): Substitute if needed.
19827         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19828         users can blindly add volatile.
19829         * doc/posix-headers/signal.texi (signal.h): Document it.
19830         Reported by Matthew Woehlke.
19831
19832 2009-03-23  Jim Meyering  <meyering@redhat.com>
19833
19834         pathmax: PATH_MAX: use pathconf only when available
19835         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
19836         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
19837         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
19838         This avoids a link failure in a PSP cross-compilation environment
19839         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
19840
19841         * lib/vasnprintf.c (divide): Fix typo in comment.
19842
19843 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19844
19845         * gnulib-tool (func_filter_filelist): Fix comment.
19846
19847 2009-03-20  Bruno Haible  <bruno@clisp.org>
19848
19849         Make sockets.h self-contained.
19850         * lib/sockets.c: Include sockets.h first.
19851         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
19852
19853 2009-03-19  Eric Blake  <ebb9@byu.net>
19854
19855         doc: mention more functions added in cygwin 1.7.0
19856         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
19857         addition.
19858         * doc/posix-functions/log2f.texi: Likewise.
19859
19860 2009-03-19  Jim Meyering  <meyering@redhat.com>
19861
19862         fsusage: avoid syntax error due to statement-before-declaration
19863         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
19864         after all declarations.  Reported by Matthew Woehlke in
19865         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
19866
19867 2009-03-18  Eric Blake  <ebb9@byu.net>
19868
19869         build-aux/compile: sync from automake
19870         * build-aux/compile: New file, from automake.
19871         * config/srclist.txt: Mention build-aux/compile.
19872
19873 2009-03-17  Bruno Haible  <bruno@clisp.org>
19874
19875         * lib/git-merge-changelog.c: Fix typo in comment.
19876         Reported by Reuben Thomas <rrt@sc3d.org>.
19877
19878 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
19879
19880         * m4/regex.m4: update and improve help for
19881         --without-included-regex.
19882
19883 2009-03-17  Simon Josefsson  <simon@josefsson.org>
19884
19885         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
19886         failure on missing include files.
19887
19888 2009-03-17  Eric Blake  <ebb9@byu.net>
19889
19890         doc: mention more functions added in cygwin 1.7.0
19891         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
19892         addition.
19893         * doc/posix-functions/fwscanf.texi: Likewise.
19894         * doc/posix-functions/swprintf.texi: Likewise.
19895         * doc/posix-functions/swscanf.texi: Likewise.
19896         * doc/posix-functions/vfwprintf.texi: Likewise.
19897         * doc/posix-functions/vfwscanf.texi: Likewise.
19898         * doc/posix-functions/vswprintf.texi: Likewise.
19899         * doc/posix-functions/vswscanf.texi: Likewise.
19900         * doc/posix-functions/vwprintf.texi: Likewise.
19901         * doc/posix-functions/vwscanf.texi: Likewise.
19902         * doc/posix-functions/wcscasecmp.texi: Likewise.
19903         * doc/posix-functions/wcsdup.texi: Likewise.
19904         * doc/posix-functions/wcsftime.texi: Likewise.
19905         * doc/posix-functions/wcsncasecmp.texi: Likewise.
19906         * doc/posix-functions/wprintf.texi: Likewise.
19907         * doc/posix-functions/wscanf.texi: Likewise.
19908         * doc/glibc-functions/gethostbyname2.texi: Likewise.
19909
19910 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19911
19912         maint.mk: really add $(AM_MAKEFLAGS)
19913         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
19914         was inadvertently omitted in the last commit.
19915         Spotted by Bruno Haible.
19916
19917         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
19918         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
19919         $(AM_MAKEFLAGS)' rather than plain `make'.
19920
19921         gnulib-tool: execute $MAKE not make
19922         * gnulib-tool: Default $MAKE to 'make'.
19923         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
19924         than make.  Initialize $MAKE in the do-autobuild script.
19925
19926         gnulib-tool: use $MAKE not make in generated files
19927         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
19928         make, in generated files.  Initialize $MAKE in the do-autobuild
19929         script.
19930
19931         * top/GNUmakefile (_have-git-version-gen): Fix typo.
19932
19933         GNUmakefile: disable parallelism only for multiple, recursive targets
19934         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
19935         additions in the Makefile.
19936         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
19937         by Automake.
19938         (.NOTPARALLEL): Only disable parallel builds if multiple targets
19939         are listed on the command line and at least one of them is
19940         listed in $(ALL_RECURSIVE_TARGETS).
19941
19942 2009-03-14  Bruno Haible  <bruno@clisp.org>
19943
19944         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
19945         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
19946         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
19947         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
19948         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
19949         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
19950         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
19951         unistr/u8-uctomb.
19952         * modules/unistr/u8-strchr (Depends-on): Likewise.
19953         * modules/unistr/u8-strrchr (Depends-on): Likewise.
19954         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
19955         unistr/u16-uctomb.
19956         * modules/unistr/u16-strchr (Depends-on): Likewise.
19957         * modules/unistr/u16-strrchr (Depends-on): Likewise.
19958
19959 2009-03-12  Bruno Haible  <bruno@clisp.org>
19960
19961         Work around select() bug on Interix 3.5.
19962         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
19963         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
19964         * m4/select.m4: New file.
19965         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
19966         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
19967         * modules/select (Files): Add m4/select.m4.
19968         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
19969         * modules/nanosleep (Depends-on): Add select.
19970         * modules/poll (Depends-on): Likewise.
19971         * doc/posix-functions/select.texi: Mention the Interix bug.
19972         Reported by Markus Duft <mduft@gentoo.org>.
19973
19974         * lib/select.c: Renamed from lib/winsock-select.c.
19975         * modules/select (Files): Add lib/select.c, remove
19976         lib/winsock-select.c.
19977         (configure.ac): Update.
19978
19979 2009-03-12  Jim Meyering  <meyering@redhat.com>
19980
19981         avoid gcc warnings about unused macro definitions
19982         * lib/readtokens.c (STREQ): Remove unused definition.
19983         * lib/xmalloc.c (SIZE_MAX): Likewise.
19984         * lib/openat-die.c (N_): Likewise.
19985         * lib/mountlist.c (SIZE_MAX): Remove definition.
19986         Instead, include <stdint.h>.
19987         * lib/readutmp.c: Likewise.
19988         * modules/readutmp (Depends-on): Add stdint.
19989         * modules/mountlist (Depends-on): Add stdint.
19990         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
19991
19992 2009-03-10  Bruno Haible  <bruno@clisp.org>
19993
19994         Tests for module 'mbmemcasecoll'.
19995         * modules/mbmemcasecoll-tests: New file.
19996         * tests/test-mbmemcasecoll1.sh: New file.
19997         * tests/test-mbmemcasecoll2.sh: New file.
19998         * tests/test-mbmemcasecoll3.sh: New file.
19999         * tests/test-mbmemcasecoll.c: New file.
20000
20001         New module 'mbmemcasecoll'.
20002         * lib/mbmemcasecoll.h: New file.
20003         * lib/mbmemcasecoll.c: New file.
20004         * modules/mbmemcasecoll: New file.
20005
20006         * tests/test-mbmemcasecmp.h: New file, extracted from
20007         tests/test-mbmemcasecmp.c.
20008         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
20009         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
20010         (main): Update.
20011         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
20012
20013 2009-03-09  Bruno Haible  <bruno@clisp.org>
20014
20015         Tests for module 'mbmemcasecmp'.
20016         * modules/mbmemcasecmp-tests: New file.
20017         * tests/test-mbmemcasecmp1.sh: New file.
20018         * tests/test-mbmemcasecmp2.sh: New file.
20019         * tests/test-mbmemcasecmp3.sh: New file.
20020         * tests/test-mbmemcasecmp.c: New file.
20021
20022         New module 'mbmemcasecmp'.
20023         * lib/mbmemcasecmp.h: New file.
20024         * lib/mbmemcasecmp.c: New file.
20025         * modules/mbmemcasecmp: New file.
20026
20027 2009-03-09  Bruno Haible  <bruno@clisp.org>
20028
20029         Tests for module 'unicase/ulc-casecoll'.
20030         * modules/unicase/ulc-casecoll-tests: New file.
20031         * tests/unicase/test-ulc-casecoll1.sh: New file.
20032         * tests/unicase/test-ulc-casecoll2.sh: New file.
20033         * tests/unicase/test-ulc-casecoll.c: New file.
20034
20035         New module 'unicase/ulc-casecoll'.
20036         * lib/unicase.h (ulc_casecoll): New declaration.
20037         * lib/unicase/ulc-casecoll.c: New file.
20038         * modules/unicase/ulc-casecoll: New file.
20039
20040         New module 'unicase/ulc-casexfrm'.
20041         * lib/unicase.h (ulc_casexfrm): New declaration.
20042         * lib/unicase/ulc-casexfrm.c: New file.
20043         * modules/unicase/ulc-casexfrm: New file.
20044
20045 2009-03-09  Bruno Haible  <bruno@clisp.org>
20046
20047         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
20048         invocations.
20049
20050         * m4/mbscasecmp.m4: Remove file.
20051         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
20052         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
20053
20054         * m4/mbscasestr.m4: Remove file.
20055         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
20056         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
20057
20058         * m4/mbschr.m4: Remove file.
20059         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
20060         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
20061
20062         * m4/mbscspn.m4: Remove file.
20063         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
20064         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
20065
20066         * m4/mbslen.m4: Remove file.
20067         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
20068         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
20069
20070         * m4/mbsncasecmp.m4: Remove file.
20071         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
20072         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
20073
20074         * m4/mbsnlen.m4: Remove file.
20075         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
20076         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
20077
20078         * m4/mbspbrk.m4: Remove file.
20079         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
20080         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
20081
20082         * m4/mbspcasecmp.m4: Remove file.
20083         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
20084         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
20085
20086         * m4/mbsrchr.m4: Remove file.
20087         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
20088         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
20089
20090         * m4/mbssep.m4: Remove file.
20091         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
20092         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
20093
20094         * m4/mbsspn.m4: Remove file.
20095         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
20096         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
20097
20098         * m4/mbsstr.m4: Remove file.
20099         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
20100         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
20101
20102         * m4/mbstok_r.m4: Remove file.
20103         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
20104         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
20105
20106         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
20107
20108         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
20109         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
20110
20111         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
20112
20113 2009-03-08  Bruno Haible  <bruno@clisp.org>
20114
20115         Tests for module 'unicase/ulc-casecmp'.
20116         * modules/unicase/ulc-casecmp-tests: New file.
20117         * tests/unicase/test-ulc-casecmp1.sh: New file.
20118         * tests/unicase/test-ulc-casecmp2.sh: New file.
20119         * tests/unicase/test-ulc-casecmp.c: New file.
20120
20121         New module 'unicase/ulc-casecmp'.
20122         * lib/unicase.h (ulc_casecmp): New declaration.
20123         * lib/unicase/ulc-casecmp.c: New file.
20124         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
20125         'const SRC_UNIT *'.
20126         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
20127         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
20128         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
20129         * modules/unicase/ulc-casecmp: New file.
20130
20131         Tests for module 'unicase/u32-is-cased'.
20132         * modules/unicase/u32-is-cased-tests: New file.
20133         * tests/unicase/test-u32-is-cased.c: New file.
20134
20135         Tests for module 'unicase/u16-is-cased'.
20136         * modules/unicase/u16-is-cased-tests: New file.
20137         * tests/unicase/test-u16-is-cased.c: New file.
20138
20139         Tests for module 'unicase/u8-is-cased'.
20140         * modules/unicase/u8-is-cased-tests: New file.
20141         * tests/unicase/test-u8-is-cased.c: New file.
20142         * tests/unicase/test-is-cased.h: New file.
20143
20144         New module 'unicase/u32-is-cased'.
20145         * lib/unicase/u32-is-cased.c: New file.
20146         * modules/unicase/u32-is-cased: New file.
20147
20148         New module 'unicase/u16-is-cased'.
20149         * lib/unicase/u16-is-cased.c: New file.
20150         * modules/unicase/u16-is-cased: New file.
20151
20152         New module 'unicase/u8-is-cased'.
20153         * lib/unicase/u8-is-cased.c: New file.
20154         * lib/unicase/u-is-cased.h: New file.
20155         * modules/unicase/u8-is-cased: New file.
20156
20157         Tests for module 'unicase/u32-is-casefolded'.
20158         * modules/unicase/u32-is-casefolded-tests: New file.
20159         * tests/unicase/test-u32-is-casefolded.c: New file.
20160
20161         Tests for module 'unicase/u16-is-casefolded'.
20162         * modules/unicase/u16-is-casefolded-tests: New file.
20163         * tests/unicase/test-u16-is-casefolded.c: New file.
20164
20165         Tests for module 'unicase/u8-is-casefolded'.
20166         * modules/unicase/u8-is-casefolded-tests: New file.
20167         * tests/unicase/test-u8-is-casefolded.c: New file.
20168         * tests/unicase/test-is-casefolded.h: New file.
20169
20170         New module 'unicase/u32-is-casefolded'.
20171         * lib/unicase/u32-is-casefolded.c: New file.
20172         * modules/unicase/u32-is-casefolded: New file.
20173
20174         New module 'unicase/u16-is-casefolded'.
20175         * lib/unicase/u16-is-casefolded.c: New file.
20176         * modules/unicase/u16-is-casefolded: New file.
20177
20178         New module 'unicase/u8-is-casefolded'.
20179         * lib/unicase/u8-is-casefolded.c: New file.
20180         * modules/unicase/u8-is-casefolded: New file.
20181
20182         Tests for module 'unicase/u32-is-titlecase'.
20183         * modules/unicase/u32-is-titlecase-tests: New file.
20184         * tests/unicase/test-u32-is-titlecase.c: New file.
20185
20186         Tests for module 'unicase/u16-is-titlecase'.
20187         * modules/unicase/u16-is-titlecase-tests: New file.
20188         * tests/unicase/test-u16-is-titlecase.c: New file.
20189
20190         Tests for module 'unicase/u8-is-titlecase'.
20191         * modules/unicase/u8-is-titlecase-tests: New file.
20192         * tests/unicase/test-u8-is-titlecase.c: New file.
20193         * tests/unicase/test-is-titlecase.h: New file.
20194
20195         New module 'unicase/u32-is-titlecase'.
20196         * lib/unicase/u32-is-titlecase.c: New file.
20197         * modules/unicase/u32-is-titlecase: New file.
20198
20199         New module 'unicase/u16-is-titlecase'.
20200         * lib/unicase/u16-is-titlecase.c: New file.
20201         * modules/unicase/u16-is-titlecase: New file.
20202
20203         New module 'unicase/u8-is-titlecase'.
20204         * lib/unicase/u8-is-titlecase.c: New file.
20205         * modules/unicase/u8-is-titlecase: New file.
20206
20207         Tests for module 'unicase/u32-is-lowercase'.
20208         * modules/unicase/u32-is-lowercase-tests: New file.
20209         * tests/unicase/test-u32-is-lowercase.c: New file.
20210
20211         Tests for module 'unicase/u16-is-lowercase'.
20212         * modules/unicase/u16-is-lowercase-tests: New file.
20213         * tests/unicase/test-u16-is-lowercase.c: New file.
20214
20215         Tests for module 'unicase/u8-is-lowercase'.
20216         * modules/unicase/u8-is-lowercase-tests: New file.
20217         * tests/unicase/test-u8-is-lowercase.c: New file.
20218         * tests/unicase/test-is-lowercase.h: New file.
20219
20220         New module 'unicase/u32-is-lowercase'.
20221         * lib/unicase/u32-is-lowercase.c: New file.
20222         * modules/unicase/u32-is-lowercase: New file.
20223
20224         New module 'unicase/u16-is-lowercase'.
20225         * lib/unicase/u16-is-lowercase.c: New file.
20226         * modules/unicase/u16-is-lowercase: New file.
20227
20228         New module 'unicase/u8-is-lowercase'.
20229         * lib/unicase/u8-is-lowercase.c: New file.
20230         * modules/unicase/u8-is-lowercase: New file.
20231
20232         Tests for module 'unicase/u32-is-uppercase'.
20233         * modules/unicase/u32-is-uppercase-tests: New file.
20234         * tests/unicase/test-u32-is-uppercase.c: New file.
20235
20236         Tests for module 'unicase/u16-is-uppercase'.
20237         * modules/unicase/u16-is-uppercase-tests: New file.
20238         * tests/unicase/test-u16-is-uppercase.c: New file.
20239
20240         Tests for module 'unicase/u8-is-uppercase'.
20241         * modules/unicase/u8-is-uppercase-tests: New file.
20242         * tests/unicase/test-u8-is-uppercase.c: New file.
20243         * tests/unicase/test-is-uppercase.h: New file.
20244
20245         New module 'unicase/u32-is-uppercase'.
20246         * lib/unicase/u32-is-uppercase.c: New file.
20247         * modules/unicase/u32-is-uppercase: New file.
20248
20249         New module 'unicase/u16-is-uppercase'.
20250         * lib/unicase/u16-is-uppercase.c: New file.
20251         * modules/unicase/u16-is-uppercase: New file.
20252
20253         New module 'unicase/u8-is-uppercase'.
20254         * lib/unicase/u8-is-uppercase.c: New file.
20255         * modules/unicase/u8-is-uppercase: New file.
20256
20257         New module 'unicase/u32-is-invariant'.
20258         * lib/unicase/u32-is-invariant.c: New file.
20259         * modules/unicase/u32-is-invariant: New file.
20260
20261         New module 'unicase/u16-is-invariant'.
20262         * lib/unicase/u16-is-invariant.c: New file.
20263         * modules/unicase/u16-is-invariant: New file.
20264
20265         New module 'unicase/u8-is-invariant'.
20266         * lib/unicase/u8-is-invariant.c: New file.
20267         * lib/unicase/invariant.h: New file.
20268         * lib/unicase/u-is-invariant.h: New file.
20269         * modules/unicase/u8-is-invariant: New file.
20270
20271         Tests for module 'unicase/u32-casecoll'.
20272         * modules/unicase/u32-casecoll-tests: New file.
20273         * tests/unicase/test-u32-casecoll.c: New file.
20274
20275         Tests for module 'unicase/u16-casecoll'.
20276         * modules/unicase/u16-casecoll-tests: New file.
20277         * tests/unicase/test-u16-casecoll.c: New file.
20278
20279         Tests for module 'unicase/u8-casecoll'.
20280         * modules/unicase/u8-casecoll-tests: New file.
20281         * tests/unicase/test-u8-casecoll.c: New file.
20282
20283         New module 'unicase/u32-casecoll'.
20284         * lib/unicase/u32-casecoll.c: New file.
20285         * modules/unicase/u32-casecoll: New file.
20286
20287         New module 'unicase/u16-casecoll'.
20288         * lib/unicase/u16-casecoll.c: New file.
20289         * modules/unicase/u16-casecoll: New file.
20290
20291         New module 'unicase/u8-casecoll'.
20292         * lib/unicase/u8-casecoll.c: New file.
20293         * lib/unicase/u-casecoll.h: New file.
20294         * modules/unicase/u8-casecoll: New file.
20295
20296         New module 'unicase/u32-casexfrm'.
20297         * lib/unicase/u32-casexfrm.c: New file.
20298         * modules/unicase/u32-casexfrm: New file.
20299
20300         New module 'unicase/u16-casexfrm'.
20301         * lib/unicase/u16-casexfrm.c: New file.
20302         * modules/unicase/u16-casexfrm: New file.
20303
20304         New module 'unicase/u8-casexfrm'.
20305         * lib/unicase/u8-casexfrm.c: New file.
20306         * lib/unicase/u-casexfrm.h: New file.
20307         * modules/unicase/u8-casexfrm: New file.
20308
20309         Tests for module 'unicase/u32-casecmp'.
20310         * modules/unicase/u32-casecmp-tests: New file.
20311         * tests/unicase/test-u32-casecmp.c: New file.
20312
20313         Tests for module 'unicase/u16-casecmp'.
20314         * modules/unicase/u16-casecmp-tests: New file.
20315         * tests/unicase/test-u16-casecmp.c: New file.
20316
20317         Tests for module 'unicase/u8-casecmp'.
20318         * modules/unicase/u8-casecmp-tests: New file.
20319         * tests/unicase/test-u8-casecmp.c: New file.
20320         * tests/unicase/test-casecmp.h: New file.
20321
20322         New module 'unicase/u32-casecmp'.
20323         * lib/unicase/u32-casecmp.c: New file.
20324         * modules/unicase/u32-casecmp: New file.
20325
20326         New module 'unicase/u16-casecmp'.
20327         * lib/unicase/u16-casecmp.c: New file.
20328         * modules/unicase/u16-casecmp: New file.
20329
20330         New module 'unicase/u8-casecmp'.
20331         * lib/unicase/u8-casecmp.c: New file.
20332         * lib/unicase/u-casecmp.h: New file.
20333         * modules/unicase/u8-casecmp: New file.
20334
20335         Tests for module 'unicase/u32-casefold'.
20336         * modules/unicase/u32-casefold-tests: New file.
20337         * tests/unicase/test-u32-casefold.c: New file.
20338
20339         Tests for module 'unicase/u16-casefold'.
20340         * modules/unicase/u16-casefold-tests: New file.
20341         * tests/unicase/test-u16-casefold.c: New file.
20342
20343         Tests for module 'unicase/u8-casefold'.
20344         * modules/unicase/u8-casefold-tests: New file.
20345         * tests/unicase/test-u8-casefold.c: New file.
20346
20347         New module 'unicase/u32-casefold'.
20348         * lib/unicase/u32-casefold.c: New file.
20349         * modules/unicase/u32-casefold: New file.
20350
20351         New module 'unicase/u16-casefold'.
20352         * lib/unicase/u16-casefold.c: New file.
20353         * modules/unicase/u16-casefold: New file.
20354
20355         New module 'unicase/u8-casefold'.
20356         * lib/unicase/u8-casefold.c: New file.
20357         * lib/unicase/u-casefold.h: New file.
20358         * modules/unicase/u8-casefold: New file.
20359
20360         New module 'unicase/tocasefold'.
20361         * lib/unicase/casefold.h: New file.
20362         * lib/unicase/tocasefold.c: New file.
20363         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20364         * modules/unicase/tocasefold: New file.
20365
20366         Tests for module 'unicase/u32-totitle'.
20367         * modules/unicase/u32-totitle-tests: New file.
20368         * tests/unicase/test-u32-totitle.c: New file.
20369
20370         Tests for module 'unicase/u16-totitle'.
20371         * modules/unicase/u16-totitle-tests: New file.
20372         * tests/unicase/test-u16-totitle.c: New file.
20373
20374         Tests for module 'unicase/u8-totitle'.
20375         * modules/unicase/u8-totitle-tests: New file.
20376         * tests/unicase/test-u8-totitle.c: New file.
20377
20378         New module 'unicase/u32-totitle'.
20379         * lib/unicase/u32-totitle.c: New file.
20380         * modules/unicase/u32-totitle: New file.
20381
20382         New module 'unicase/u16-totitle'.
20383         * lib/unicase/u16-totitle.c: New file.
20384         * modules/unicase/u16-totitle: New file.
20385
20386         New module 'unicase/u8-totitle'.
20387         * lib/unicase/u8-totitle.c: New file.
20388         * lib/unicase/u-totitle.h: New file.
20389         * modules/unicase/u8-totitle: New file.
20390
20391         Tests for module 'unicase/u32-tolower'.
20392         * modules/unicase/u32-tolower-tests: New file.
20393         * tests/unicase/test-u32-tolower.c: New file.
20394
20395         Tests for module 'unicase/u16-tolower'.
20396         * modules/unicase/u16-tolower-tests: New file.
20397         * tests/unicase/test-u16-tolower.c: New file.
20398
20399         Tests for module 'unicase/u8-tolower'.
20400         * modules/unicase/u8-tolower-tests: New file.
20401         * tests/unicase/test-u8-tolower.c: New file.
20402
20403         New module 'unicase/u32-tolower'.
20404         * lib/unicase/u32-tolower.c: New file.
20405         * modules/unicase/u32-tolower: New file.
20406
20407         New module 'unicase/u16-tolower'.
20408         * lib/unicase/u16-tolower.c: New file.
20409         * modules/unicase/u16-tolower: New file.
20410
20411         New module 'unicase/u8-tolower'.
20412         * lib/unicase/u8-tolower.c: New file.
20413         * modules/unicase/u8-tolower: New file.
20414
20415         Tests for module 'unicase/u32-toupper'.
20416         * modules/unicase/u32-toupper-tests: New file.
20417         * tests/unicase/test-u32-toupper.c: New file.
20418
20419         Tests for module 'unicase/u16-toupper'.
20420         * modules/unicase/u16-toupper-tests: New file.
20421         * tests/unicase/test-u16-toupper.c: New file.
20422
20423         Tests for module 'unicase/u8-toupper'.
20424         * modules/unicase/u8-toupper-tests: New file.
20425         * tests/unicase/test-u8-toupper.c: New file.
20426
20427         New module 'unicase/u32-toupper'.
20428         * lib/unicase/u32-toupper.c: New file.
20429         * modules/unicase/u32-toupper: New file.
20430
20431         New module 'unicase/u16-toupper'.
20432         * lib/unicase/u16-toupper.c: New file.
20433         * modules/unicase/u16-toupper: New file.
20434
20435         New module 'unicase/u8-toupper'.
20436         * lib/unicase/u8-toupper.c: New file.
20437         * modules/unicase/u8-toupper: New file.
20438
20439         New module 'unicase/u32-casemap'.
20440         * lib/unicase/u32-casemap.c: New file.
20441         * modules/unicase/u32-casemap: New file.
20442
20443         New module 'unicase/u16-casemap'.
20444         * lib/unicase/u16-casemap.c: New file.
20445         * modules/unicase/u16-casemap: New file.
20446
20447         New module 'unicase/u8-casemap'.
20448         * lib/unicase/unicasemap.h: New file.
20449         * lib/unicase/u8-casemap.c: New file.
20450         * lib/unicase/u-casemap.h: New file.
20451         * modules/unicase/u8-casemap: New file.
20452
20453         New module 'unicase/special-casing'.
20454         * lib/unicase/special-casing.h: New file.
20455         * lib/unicase/special-casing.c: New file.
20456         * lib/unicase/special-casing-table.gperf: New file, generated by
20457         gen-uni-tables.c.
20458         * modules/unicase/special-casing: New file.
20459
20460         Tests for module 'unicase/locale-language'.
20461         * modules/unicase/locale-language-tests: New file.
20462         * tests/unicase/test-locale-language.sh: New file.
20463         * tests/unicase/test-locale-language.c: New file.
20464
20465         New module 'unicase/locale-language'.
20466         * lib/unicase/locale-language.c: New file.
20467         * lib/unicase/locale-languages.gperf: New file.
20468         * modules/unicase/locale-language: New file.
20469
20470         Generate more tables for case conversion and case folding.
20471         * lib/gen-uni-tables.c (SCC_*): New enum items.
20472         (struct special_casing_rule): New type.
20473         (casing_rules, num_casing_rules, allocated_casing_rules): New
20474         variables.
20475         (add_casing_rule, fill_casing_rules): New functions.
20476         (struct casefold_rule): New type.
20477         (casefolding_rules, num_casefolding_rules,
20478         allocated_casefolding_rules): New variables.
20479         (fill_casefolding_rules): New function.
20480         (unicode_casefold): New variable.
20481         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20482         sort_casing_rules, output_casing_rules): New functions.
20483         (main): Accept to more arguments: SpecialCasing.txt and
20484         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20485         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20486         Output mapping for casefolding.
20487
20488         * lib/unicase.h: Include stdbool.h, uninorm.h.
20489         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20490         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20491         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20492         arguments.
20493         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20494         resultp arguments.
20495         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20496         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20497         resultp arguments.
20498         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20499         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20500         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20501         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20502         declarations.
20503         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20504
20505 2009-03-08  Bruno Haible  <bruno@clisp.org>
20506
20507         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20508         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20509         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20510         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20511
20512 2009-03-07  Bruno Haible  <bruno@clisp.org>
20513
20514         Adjust u*_normcmp, u*_normcoll API.
20515         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20516         u16_normcoll, u32_normcoll): Change failure conventions.
20517         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20518         errno and return -1.
20519         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20520
20521 2009-03-07  Bruno Haible  <bruno@clisp.org>
20522
20523         Tests for module 'uninorm/u32-normcoll'.
20524         * modules/uninorm/u32-normcoll-tests: New file.
20525         * tests/uninorm/test-u32-normcoll.c: New file.
20526
20527         Tests for module 'uninorm/u16-normcoll'.
20528         * modules/uninorm/u16-normcoll-tests: New file.
20529         * tests/uninorm/test-u16-normcoll.c: New file.
20530
20531         Tests for module 'uninorm/u8-normcoll'.
20532         * modules/uninorm/u8-normcoll-tests: New file.
20533         * tests/uninorm/test-u8-normcoll.c: New file.
20534
20535 2009-03-07  Bruno Haible  <bruno@clisp.org>
20536
20537         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20538         tests/uninorm/test-u32-normcmp.c.
20539         * tests/uninorm/test-u32-normcmp.c: Include it.
20540         (test_nonascii): New function, extracted from main. Add some more
20541         tests.
20542         (main): Invoke test_ascii and test_nonascii.
20543         * modules/uninorm/u32-normcmp-tests (Files): Add
20544         tests/uninorm/test-u32-normcmp.h.
20545         (Depends-on): Remove uninorm/u32-normcmp.
20546
20547         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20548         tests/uninorm/test-u16-normcmp.c.
20549         * tests/uninorm/test-u16-normcmp.c: Include it.
20550         (test_nonascii): New function, extracted from main. Add some more
20551         tests.
20552         (main): Invoke test_ascii and test_nonascii.
20553         * modules/uninorm/u16-normcmp-tests (Files): Add
20554         tests/uninorm/test-u16-normcmp.h.
20555         (Depends-on): Remove uninorm/u16-normcmp.
20556
20557         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20558         tests/uninorm/test-u8-normcmp.c.
20559         * tests/uninorm/test-u8-normcmp.c: Include it.
20560         (test_nonascii): New function, extracted from main. Add some more
20561         tests.
20562         (main): Invoke test_ascii and test_nonascii.
20563         * modules/uninorm/u8-normcmp-tests (Files): Add
20564         tests/uninorm/test-u8-normcmp.h.
20565         (Depends-on): Remove uninorm/u8-normcmp.
20566
20567 2009-03-07  Bruno Haible  <bruno@clisp.org>
20568
20569         New module 'uninorm/u32-normcoll'.
20570         * lib/uninorm/u32-normcoll.c: New file.
20571         * modules/uninorm/u32-normcoll: New file.
20572
20573         New module 'uninorm/u16-normcoll'.
20574         * lib/uninorm/u16-normcoll.c: New file.
20575         * modules/uninorm/u16-normcoll: New file.
20576
20577         New module 'uninorm/u8-normcoll'.
20578         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20579         declarations.
20580         * lib/uninorm/u8-normcoll.c: New file.
20581         * lib/uninorm/u-normcoll.h: New file.
20582         * modules/uninorm/u8-normcoll: New file.
20583
20584         New module 'uninorm/u32-normxfrm'.
20585         * lib/uninorm/u32-normxfrm.c: New file.
20586         * modules/uninorm/u32-normxfrm: New file.
20587
20588         New module 'uninorm/u16-normxfrm'.
20589         * lib/uninorm/u16-normxfrm.c: New file.
20590         * modules/uninorm/u16-normxfrm: New file.
20591
20592         New module 'uninorm/u8-normxfrm'.
20593         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20594         declarations.
20595         * lib/uninorm/u8-normxfrm.c: New file.
20596         * lib/uninorm/u-normxfrm.h: New file.
20597         * modules/uninorm/u8-normxfrm: New file.
20598
20599 2009-03-07  Bruno Haible  <bruno@clisp.org>
20600
20601         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20602         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20603         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20604
20605 2009-03-07  Bruno Haible  <bruno@clisp.org>
20606
20607         New module 'memxfrm'.
20608         * lib/memxfrm.h: New file.
20609         * lib/memxfrm.c: New file.
20610         * modules/memxfrm: New file.
20611
20612 2009-03-07  Bruno Haible  <bruno@clisp.org>
20613
20614         New module 'memcmp2'.
20615         * lib/memcmp2.h: New file.
20616         * lib/memcmp2.c: New file.
20617         * modules/memcmp2: New file.
20618
20619 2009-03-07  Bruno Haible  <bruno@clisp.org>
20620
20621         Tests for module 'uninorm/decomposing-form'.
20622         * modules/uninorm/decomposing-form-tests: New file.
20623         * tests/uninorm/test-decomposing-form.c: New file.
20624
20625         New module 'uninorm/decomposing-form'.
20626         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20627         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20628         Add 'decomposing_variant' field.
20629         * lib/uninorm/decomposing-form.c: New file.
20630         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20631         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20632         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20633         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20634         * modules/uninorm/decomposing-form: New file.
20635         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20636         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20637
20638 2009-03-07  Bruno Haible  <bruno@clisp.org>
20639
20640         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20641         strings.
20642
20643 2009-03-06  Bruno Haible  <bruno@clisp.org>
20644
20645         Tests for module 'uninorm/u32-normcmp'.
20646         * tests/uninorm/test-u32-normcmp.c: New file.
20647         * modules/uninorm/u32-normcmp-tests: New file.
20648
20649         Tests for module 'uninorm/u16-normcmp'.
20650         * tests/uninorm/test-u16-normcmp.c: New file.
20651         * modules/uninorm/u16-normcmp-tests: New file.
20652
20653         Tests for module 'uninorm/u8-normcmp'.
20654         * tests/uninorm/test-u8-normcmp.c: New file.
20655         * modules/uninorm/u8-normcmp-tests: New file.
20656
20657         New module 'uninorm/u32-normcmp'.
20658         * lib/uninorm/u32-normcmp.c: New file.
20659         * modules/uninorm/u32-normcmp: New file.
20660
20661         New module 'uninorm/u16-normcmp'.
20662         * lib/uninorm/u16-normcmp.c: New file.
20663         * modules/uninorm/u16-normcmp: New file.
20664
20665         New module 'uninorm/u8-normcmp'.
20666         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20667         declarations.
20668         * lib/uninorm/u8-normcmp.c: New file.
20669         * lib/uninorm/u-normcmp.h: New file.
20670         * modules/uninorm/u8-normcmp: New file.
20671
20672 2009-03-06  Bruno Haible  <bruno@clisp.org>
20673
20674         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20675         Reported by Eric Blake.
20676
20677 2009-03-06  Eric Blake  <ebb9@byu.net>
20678             Bruno Haible  <bruno@clisp.org>
20679
20680         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20681         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20682         condition.
20683         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20684         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20685         condition.
20686         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20687
20688 2009-03-06  Eric Blake  <ebb9@byu.net>
20689
20690         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20691         to avoid compiler warnings.
20692         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20693
20694 2009-03-05  Bruno Haible  <bruno@clisp.org>
20695
20696         * tests/test-ftell.c (main): Disable test beyond end of file on
20697         FreeMiNT.
20698         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20699
20700 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20701
20702         * lib/filevercmp.c: Move hidden files up in ordering.
20703         * tests/test-filevercmp.c: Add tests for hidden files.
20704
20705 2009-03-04  Bruno Haible  <bruno@clisp.org>
20706
20707         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20708         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20709         AM_CFLAGS.
20710         Reported by Simon Josefsson.
20711
20712 2009-03-03  Bruno Haible  <bruno@clisp.org>
20713
20714         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20715         Reported by Simon Josefsson.
20716
20717         * doc/ld-version-script.texi: Update node reference.
20718
20719 2009-03-03  Bruno Haible  <bruno@clisp.org>
20720
20721         * modules/visibility (License): Change to 'unlimited'.
20722         Suggested by Simon Josefsson.
20723
20724 2009-03-03  Jim Meyering  <meyering@redhat.com>
20725
20726         unlinkdir: cannot_unlink_dir may modify process state
20727         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20728         it's neither thread-safe nor appropriate for use in a library.
20729
20730 2009-03-03  Eric Blake  <ebb9@byu.net>
20731
20732         test-closein: silence test under Darwin
20733         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20734         care if it dies from EPIPE or EBADF.
20735
20736 2009-03-03  Bruno Haible  <bruno@clisp.org>
20737
20738         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20739         earlier.
20740         * doc/visibility.texi: Fix @node and @section.
20741
20742 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20743
20744         * doc/gnulib.texi: Link to sections for ld version script and
20745         visibility.
20746         * doc/visibility.texi: Add @node and @section.
20747         * modules/ld-version-script: New module.
20748         * m4/ld-version-script.m4: New file.
20749         * doc/ld-version-script.texi: New file.
20750
20751 2009-03-02  David Lutterkort  <lutter@redhat.com>
20752
20753         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20755
20756 2009-03-02  Bruno Haible  <bruno@clisp.org>
20757
20758         * doc/visibility.texi: Mention libtool's -export-symbols option.
20759
20760 2009-03-02  Jim Meyering  <meyering@redhat.com>
20761
20762         announce-gen: new option: --no-print-checksums
20763         * build-aux/announce-gen (usage): Describe it.
20764         (print_checksums): Print a newline here, not in the [*] footnote.
20765         (main): Honor it.
20766
20767 2009-03-01  Bruno Haible  <bruno@clisp.org>
20768
20769         Use socklen_t in the native Windows replacements prototypes.
20770         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20771         instead of 'int'.
20772         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20773         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20774         * modules/getsockopt (Depends-on): Add socklen.
20775         * modules/setsockopt (Depends-on): Add socklen.
20776
20777 2009-03-01  Bruno Haible  <bruno@clisp.org>
20778
20779         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20780         least 4.2.
20781
20782 2009-03-01  Eric Blake  <ebb9@byu.net>
20783             Bruno Haible  <bruno@clisp.org>
20784
20785         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20786         error messages.
20787         * lib/wait-process.c (wait_subprocess): Omit error message about
20788         deadly signal sent to the child of termsigp != NULL.
20789
20790 2009-03-01  Eric Blake  <ebb9@byu.net>
20791
20792         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20793
20794 2009-03-01  Bruno Haible  <bruno@clisp.org>
20795
20796         Avoid a gcc warning.
20797         * tests/test-sched.c (b): Make global.
20798         Reported by Eric Blake.
20799
20800 2009-01-19  Martin Lambers  <marlam@marlam.de>
20801
20802         Provide POSIX semantics for socket timeout options on W32.
20803         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20804         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20805         * modules/setsockopt: Depend on sys_time module for struct timeval.
20806         * modules/getsockopt: Depend on sys_time module for struct timeval.
20807
20808 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20809
20810         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20811         __USE_GNU, for consistency with netdb.in.h.
20812         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20813
20814 2009-03-01  Bruno Haible  <bruno@clisp.org>
20815
20816         More support for FreeMiNT.
20817         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20818         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20819
20820 2009-03-01  Bruno Haible  <bruno@clisp.org>
20821
20822         More support for FreeMiNT.
20823         * lib/fpurge.c (fpurge): Correct last commit.
20824         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20825
20826 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20827
20828         Fix unportable awk script in vc-list-files.
20829         * build-aux/vc-list-files: In the replacement awk script, use
20830         substr with a second argument of 1, not zero.
20831         Report by Simon Josefsson.
20832
20833 2009-02-28  Bruno Haible  <bruno@clisp.org>
20834
20835         More support for FreeMiNT.
20836         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
20837         to FreeMiNT today.
20838         * lib/fwriting.c (fwriting): Likewise.
20839         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
20840
20841 2009-02-28  Bruno Haible  <bruno@clisp.org>
20842
20843         * tests/test-freadseek.c (main): Disable test beyond end of file on
20844         FreeMiNT.
20845         * tests/test-ftello.c (main): Likewise.
20846         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20847
20848 2009-02-28  Bruno Haible  <bruno@clisp.org>
20849
20850         Add tentative support for FreeMiNT.
20851         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
20852         * lib/fpurge.c (fpurge): Likewise.
20853         * lib/freadable.c (freadable): Likewise.
20854         * lib/freading.c (freading): Likewise.
20855         * lib/freadptr.c (freadptr): Likewise.
20856         * lib/freadseek.c (freadptrinc): Likewise.
20857         * lib/fseeko.c (rpl_fseeko): Likewise.
20858         * lib/fseterr.c (fseterr): Likewise.
20859         * lib/fwritable.c (fwritable): Likewise.
20860         * lib/fwriting.c (fwriting): Likewise.
20861         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
20862         Hourihane.
20863         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20864
20865 2009-02-28  Bruno Haible  <bruno@clisp.org>
20866
20867         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
20868         SIGCHLD.
20869         Reported by Jim Meyering.
20870
20871 2009-02-28  Bruno Haible  <bruno@clisp.org>
20872
20873         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
20874         Mention the results of these tests on various platforms.
20875         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
20876         order.
20877         * doc/posix-functions/printf.texi: Likewise.
20878         * doc/posix-functions/snprintf.texi: Likewise.
20879         * doc/posix-functions/sprintf.texi: Likewise.
20880         * doc/posix-functions/vfprintf.texi: Likewise.
20881         * doc/posix-functions/vprintf.texi: Likewise.
20882         * doc/posix-functions/vsnprintf.texi: Likewise.
20883         * doc/posix-functions/vsprintf.texi: Likewise.
20884         * doc/glibc-functions/obstack_printf.texi: Likewise.
20885         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20886
20887 2009-02-28  Bruno Haible  <bruno@clisp.org>
20888
20889         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
20890         Reported by Loïc Minier <lool@dooz.org>.
20891
20892 2009-02-27  Bruno Haible  <bruno@clisp.org>
20893
20894         * gnulib-tool (func_import): Make the sed expression used to create the
20895         sed script for updating the .gitignore file POSIX compliant.
20896         Reported by Eric Blake.
20897
20898 2009-02-27  Bruno Haible  <bruno@clisp.org>
20899
20900         * gnulib-tool (sed): Don't alias as "sed --posix".
20901         Reported by Eric Blake.
20902
20903 2009-02-27  Bruno Haible  <bruno@clisp.org>
20904
20905         Avoid test link errors.
20906         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
20907         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
20908         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
20909         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
20910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20911
20912 2009-02-27  Bruno Haible  <bruno@clisp.org>
20913
20914         Avoid spurious "(cached)" in configure output.
20915         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
20916         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
20917         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20918         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20919         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20920         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20921         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20922         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20923         Reported by Eric Blake.
20924
20925 2009-02-27  Eric Blake  <ebb9@byu.net>
20926
20927         printf: fix regression in previous patch
20928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
20929
20930 2009-02-27  Bruno Haible  <bruno@clisp.org>
20931
20932         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
20933         value.
20934         * lib/stdint.in.h: Likewise.
20935         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
20936
20937 2009-02-27  Eric Blake  <ebb9@byu.net>
20938
20939         doc: mention more functions added in cygwin 1.7.0
20940         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
20941         addition.
20942         * doc/posix-functions/open_wmemstream.texi: Likewise.
20943         * doc/posix-functions/wcsnlen.texi: Likewise.
20944         * doc/posix-functions/wcsnrtombs.texi: Likewise.
20945         * doc/posix-functions/wcstod.texi: Likewise.
20946         * doc/posix-functions/wcstof.texi: Likewise.
20947         * doc/posix-functions/wcstoimax.texi: Likewise.
20948         * doc/posix-functions/wcstok.texi: Likewise.
20949         * doc/posix-functions/wcstoumax.texi: Likewise.
20950
20951         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
20952         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
20953         * doc/posix-functions/fprintf.texi: Update.
20954         * doc/posix-functions/printf.texi: Update.
20955         * doc/posix-functions/snprintf.texi: Update.
20956         * doc/posix-functions/sprintf.texi: Update.
20957         * doc/posix-functions/vfprintf.texi: Update.
20958         * doc/posix-functions/vprintf.texi: Update.
20959         * doc/posix-functions/vsnprintf.texi: Update.
20960         * doc/posix-functions/vsprintf.texi: Update.
20961         * doc/glibc-functions/obstack_printf.texi: Update.
20962         * doc/glibc-functions/obstack_vprintf.texi: Update.
20963
20964 2009-02-26  Eric Blake  <ebb9@byu.net>
20965
20966         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
20967         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
20968         compilation bug by using runtime conversion.
20969         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20970         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
20971         * modules/ceill-tests (Files): Use nan.h.
20972         * modules/floorl-tests (Files): Likewise.
20973         * modules/frexpl-tests (Files): Likewise.
20974         * modules/isnanl-tests (Files): Likewise.
20975         * modules/ldexpl-tests (Files): Likewise.
20976         * modules/roundl-tests (Files): Likewise.
20977         * modules/truncl-tests (Files): Likewise.
20978         * tests/test-ceill.c (main): Use a working NaN.
20979         * tests/test-floorl.c (main): Likewise.
20980         * tests/test-frexpl.c (main): Likewise.
20981         * tests/test-isnan.c (test_long_double): Likewise.
20982         * tests/test-isnanl.h (main): Likewise.
20983         * tests/test-ldexpl.h (main): Likewise.
20984         * tests/test-roundl.h (main): Likewise.
20985         * tests/test-truncl.h (main): Likewise.
20986         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
20987
20988 2009-02-26  Eric Blake  <ebb9@byu.net>
20989             Bruno Haible  <bruno@clisp.org>
20990
20991         Work around a *printf bug with %ls on Solaris.
20992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
20993         precision is specified, sprintf stops converting the wide string
20994         argument when the number of bytes that have been produced by this
20995         conversion equals or exceeds the precision.
20996         * doc/posix-functions/fprintf.texi: Update.
20997         * doc/posix-functions/printf.texi: Update.
20998         * doc/posix-functions/snprintf.texi: Update.
20999         * doc/posix-functions/sprintf.texi: Update.
21000         * doc/posix-functions/vfprintf.texi: Update.
21001         * doc/posix-functions/vprintf.texi: Update.
21002         * doc/posix-functions/vsnprintf.texi: Update.
21003         * doc/posix-functions/vsprintf.texi: Update.
21004         * doc/glibc-functions/obstack_printf.texi: Update.
21005         * doc/glibc-functions/obstack_vprintf.texi: Update.
21006
21007 2009-02-26  Eric Blake  <ebb9@byu.net>
21008
21009         stdlib: favor compiler check of random.h
21010         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
21011         to avoid an ObjC random.h installed by Swarm.
21012
21013 2009-02-26  Bruno Haible  <bruno@clisp.org>
21014
21015         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
21016         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
21017         Reported by Gary V. Vaughan <gary@gnu.org>.
21018
21019 2009-02-26  Bruno Haible  <bruno@clisp.org>
21020
21021         Fix *printf behaviour regarding the %ls directive.
21022         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
21023         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
21024         NEED_PRINTF_DIRECTIVE_LS.
21025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
21026         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
21027         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21028         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
21029         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
21030         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
21031         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21032         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21033         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21034         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21035         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21036         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
21037         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21040         * doc/posix-functions/fprintf.texi: Update.
21041         * doc/posix-functions/printf.texi: Update.
21042         * doc/posix-functions/snprintf.texi: Update.
21043         * doc/posix-functions/sprintf.texi: Update.
21044         * doc/posix-functions/vfprintf.texi: Update.
21045         * doc/posix-functions/vprintf.texi: Update.
21046         * doc/posix-functions/vsnprintf.texi: Update.
21047         * doc/posix-functions/vsprintf.texi: Update.
21048         * doc/glibc-functions/obstack_printf.texi: Update.
21049         * doc/glibc-functions/obstack_vprintf.texi: Update.
21050         Reported by Eric Blake.
21051
21052 2009-02-25  Bruno Haible  <bruno@clisp.org>
21053
21054         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
21055         with known value.
21056         Reported by Gary V. Vaughan <gary@gnu.org>.
21057
21058 2009-02-25  Bruno Haible  <bruno@clisp.org>
21059
21060         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
21061         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
21062         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
21063         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
21064         Reported by Gary V. Vaughan <gary@gnu.org>.
21065
21066 2009-02-25  Bruno Haible  <bruno@clisp.org>
21067
21068         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
21069         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
21070         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
21071         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
21072         Reported by Gary V. Vaughan <gary@gnu.org>.
21073
21074 2009-02-25  Eric Blake  <ebb9@byu.net>
21075
21076         tests: skip fseek/ftell tests if ungetc is broken
21077         * m4/ungetc.m4: New file.
21078         * modules/fseek-tests: Split test, so ungetc dependency is
21079         separate from rest of test.
21080         * modules/fseeko-tests: Likewise.
21081         * modules/ftell-tests: Likewise.
21082         * modules/ftello-tests: Likewise.
21083         * tests/test-fseek.c (main): Isolate ungetc dependency.
21084         * tests/test-fseeko.c (main): Likewise.
21085         * tests/test-ftell.c (main): Likewise.
21086         * tests/test-ftello.c (main): Likewise.
21087         * tests/test-fseek2.sh: New file.
21088         * tests/test-fseeko2.sh: Likewise.
21089         * tests/test-ftell2.sh: Likewise.
21090         * tests/test-ftello2.sh: Likewise.
21091
21092 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
21093
21094         test-getaddrinfo: fix usage of skip return code 77
21095         * tests/test-gettaddrinfo.c: Return skip code 77 only
21096         for first occurance of skip (4x77 is not 77)
21097
21098 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
21099
21100         strtod: avoid C99 decl-after-statement
21101         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
21102
21103 2009-02-24  Eric Blake  <ebb9@byu.net>
21104
21105         strtod: detect HP-UX 11.31 bug
21106         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
21107         Reported by Gary V. Vaughan.
21108
21109 2009-02-23  Bruno Haible  <bruno@clisp.org>
21110
21111         Fix invalid read past end of memory block.
21112         * lib/vasnprintf.c (DCHAR_SET): Define.
21113         (local_wcslen): Define only when needed.
21114         (local_strnlen, local_wcsnlen): New functions.
21115         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
21116         directives that involve a conversion ourselves.
21117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
21118         wcsnlen, mbrtowc, wcrtomb.
21119         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
21120         * tests/test-vasprintf-posix.c (test_function): Likewise.
21121         * tests/test-snprintf-posix.h (test_function): Likewise.
21122         * tests/test-sprintf-posix.h (test_function): Likewise.
21123         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21124
21125 2009-02-22  Bruno Haible  <bruno@clisp.org>
21126
21127         Implement new clarified decomposition of Hangul syllables.
21128         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
21129         of type LTV, return only a pairwise decomposition.
21130         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
21131         Likewise.
21132         * tests/uninorm/test-decomposition.c (main): Updated expected result.
21133         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
21134         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
21135
21136 2009-02-22  Bruno Haible  <bruno@clisp.org>
21137
21138         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
21139         zero-length results and shrink excess allocated memory.
21140         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
21141         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
21142         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
21143         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
21144         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
21145         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
21146         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
21147         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
21148         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
21149         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
21150         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
21151         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
21152
21153 2009-02-21  Bruno Haible  <bruno@clisp.org>
21154
21155         * doc/gnulib.texi: Include safe-alloc.texi earlier.
21156         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
21157         spaces after a period. Put a space between a macro name and its
21158         argument list. Trivial rewordings.
21159         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21160         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21161         (main): Return 0 explicitly.
21162
21163 2009-02-21  Bruno Haible  <bruno@clisp.org>
21164
21165         Tests for module 'uninorm/filter'.
21166         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21167         * modules/uninorm/filter-tests: New file.
21168
21169         New module 'uninorm/filter'.
21170         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21171         uninorm_filter_flush, uninorm_filter_free): New declarations.
21172         * lib/uninorm/uninorm-filter.c: New file.
21173         * modules/uninorm/filter: New file.
21174
21175 2009-02-21  Bruno Haible  <bruno@clisp.org>
21176
21177         Tests for module 'uninorm/nfkc'.
21178         * tests/uninorm/test-nfkc.c: New file.
21179         * tests/uninorm/test-u8-nfkc.c: New file.
21180         * tests/uninorm/test-u16-nfkc.c: New file.
21181         * tests/uninorm/test-u32-nfkc.c: New file.
21182         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21183         * tests/uninorm/test-u32-nfkc-big.c: New file.
21184         * modules/uninorm/nfkc-tests: New file.
21185
21186         New module 'uninorm/nfkc'.
21187         * lib/uninorm/nfkc.c: New file.
21188         * modules/uninorm/nfkc: New file.
21189
21190         Tests for module 'uninorm/nfkd'.
21191         * tests/uninorm/test-nfkd.c: New file.
21192         * tests/uninorm/test-u8-nfkd.c: New file.
21193         * tests/uninorm/test-u16-nfkd.c: New file.
21194         * tests/uninorm/test-u32-nfkd.c: New file.
21195         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21196         * tests/uninorm/test-u32-nfkd-big.c: New file.
21197         * modules/uninorm/nfkd-tests: New file.
21198
21199         New module 'uninorm/nfkd'.
21200         * lib/uninorm/nfkd.c: New file.
21201         * modules/uninorm/nfkd: New file.
21202
21203         Tests for module 'uninorm/nfc'.
21204         * tests/uninorm/test-nfc.c: New file.
21205         * tests/uninorm/test-u8-nfc.c: New file.
21206         * tests/uninorm/test-u16-nfc.c: New file.
21207         * tests/uninorm/test-u32-nfc.c: New file.
21208         * tests/uninorm/test-u32-nfc-big.sh: New file.
21209         * tests/uninorm/test-u32-nfc-big.c: New file.
21210         * modules/uninorm/nfc-tests: New file.
21211
21212         New module 'uninorm/nfc'.
21213         * lib/uninorm/nfc.c: New file.
21214         * modules/uninorm/nfc: New file.
21215
21216         Tests for module 'uninorm/nfd'.
21217         * tests/uninorm/test-nfd.c: New file.
21218         * tests/uninorm/test-u8-nfd.c: New file.
21219         * tests/uninorm/test-u16-nfd.c: New file.
21220         * tests/uninorm/test-u32-nfd.c: New file.
21221         * tests/uninorm/test-u32-nfd-big.sh: New file.
21222         * tests/uninorm/test-u32-nfd-big.c: New file.
21223         * tests/uninorm/test-u32-normalize-big.h: New file.
21224         * tests/uninorm/test-u32-normalize-big.c: New file.
21225         * tests/uninorm/NormalizationTest.txt: New file, created from
21226         Unicode 5.1.0 NormalizationTest.txt.
21227         * modules/uninorm/nfd-tests: New file.
21228
21229         New module 'uninorm/nfd'.
21230         * lib/uninorm/nfd.c: New file.
21231         * modules/uninorm/nfd: New file.
21232
21233         New module 'uninorm/u32-normalize'.
21234         * lib/uninorm/u32-normalize.c: New file.
21235         * modules/uninorm/u32-normalize: New file.
21236
21237         New module 'uninorm/u16-normalize'.
21238         * lib/uninorm/u16-normalize.c: New file.
21239         * modules/uninorm/u16-normalize: New file.
21240
21241         New module 'uninorm/u8-normalize'.
21242         * lib/uninorm/u8-normalize.c: New file.
21243         * lib/uninorm/normalize-internal.h: New file.
21244         * lib/uninorm/u-normalize-internal.h: New file.
21245         * modules/uninorm/u8-normalize: New file.
21246
21247         New module 'uninorm/decompose-internal'.
21248         * lib/uninorm/decompose-internal.c: New file.
21249         * modules/uninorm/decompose-internal: New file.
21250
21251         Tests for module 'uninorm/composition'.
21252         * tests/uninorm/test-composition.c: New file.
21253         * modules/uninorm/composition-tests: New file.
21254
21255         New module 'uninorm/composition'.
21256         * lib/uninorm/composition.c: New file.
21257         * lib/uninorm/composition-table.gperf: New file, generated by
21258         gen-uni-tables.
21259         * modules/uninorm/composition: New file.
21260
21261         Tests for module 'uninorm/compat-decomposition'.
21262         * tests/uninorm/test-compat-decomposition.c: New file.
21263         * modules/uninorm/compat-decomposition-tests: New file.
21264
21265         New module 'uninorm/compat-decomposition'.
21266         * lib/uninorm/decompose-internal.h: New file.
21267         * lib/uninorm/compat-decomposition.c: New file.
21268         * modules/uninorm/compat-decomposition: New file.
21269
21270         Tests for module 'uninorm/canonical-decomposition'.
21271         * tests/uninorm/test-canonical-decomposition.c: New file.
21272         * modules/uninorm/canonical-decomposition-tests: New file.
21273
21274         New module 'uninorm/canonical-decomposition'.
21275         * lib/uninorm/canonical-decomposition.c: New file.
21276         * modules/uninorm/canonical-decomposition: New file.
21277
21278         Tests for module 'uninorm/decomposition'.
21279         * tests/uninorm/test-decomposition.c: New file.
21280         * modules/uninorm/decomposition-tests: New file.
21281
21282         New module 'uninorm/decomposition'.
21283         * lib/uninorm/decomposition.c: New file.
21284         * modules/uninorm/decomposition: New file.
21285
21286         New module 'uninorm/decomposition-table'.
21287         * lib/uninorm/decomposition-table.h: New file.
21288         * lib/uninorm/decomposition-table.c: New file.
21289         * lib/uninorm/decomposition-table1.h: New file, generated by
21290         gen-uni-tables.
21291         * lib/uninorm/decomposition-table2.h: New file, generated by
21292         gen-uni-tables.
21293         * modules/uninorm/decomposition-table: New file.
21294
21295         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21296         (UC_DECOMP_*): New enumeration items.
21297         (get_decomposition): New function.
21298         (struct decomp_table): New type.
21299         (output_decomposition, output_decomposition_tables): New functions.
21300         (unicode_composition_exclusions): New variable.
21301         (fill_composition_exclusions, debug_output_composition_tables): New
21302         functions.
21303         (main): Accept one more argument. Invoke fill_composition_exclusions.
21304         Output decomposition and composition tables.
21305
21306         New module 'uninorm/base'.
21307         * lib/uninorm.h: New file.
21308         * lib/unictype.h: Update comment.
21309         * modules/uninorm/base: New file.
21310
21311 2009-02-21  David Lutterkort  <lutter@redhat.com>
21312
21313         Tests for module 'safe-alloc'.
21314         * tests/test-safe-alloc.c: New file.
21315         * modules/safe-alloc-tests: New file.
21316
21317         New module 'safe-alloc'.
21318         * lib/safe-alloc.h: New file.
21319         * lib/safe-alloc.c: New file.
21320         * m4/safe-alloc.m4: New file.
21321         * modules/safe-alloc: New file.
21322         * doc/safe-alloc.texi: New file.
21323         * doc/gnulib.texi: Include it.
21324         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21325         safe-alloc.
21326
21327 2009-02-18  Bruno Haible  <bruno@clisp.org>
21328
21329         Fix link error on non-glibc systems.
21330         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21331         variable.
21332         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21333
21334 2009-02-18  Jim Meyering  <meyering@redhat.com>
21335
21336         fts: avoid used-uninitialized error due to recent change
21337         * lib/fts.c (fts_read): Guard uses of the new member,
21338         parent->fts_n_dirs_remaining, since it's not relevant for
21339         the parent of a directory specified on the command-line.
21340
21341 2009-02-17  James Youngman  <jay@gnu.org>
21342             Bruno Haible  <bruno@clisp.org>
21343
21344         * m4/include_next.m4: Reformulate comment.
21345
21346 2009-02-16  Jim Meyering  <meyering@redhat.com>
21347
21348         fts: add #if guards so that the fts_lgpl module still builds
21349         * lib/fts.c: Guard just-added hash-table-using parts with
21350         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21351         Reported by Simon Josefsson.
21352
21353 2009-02-15  Bruno Haible  <bruno@clisp.org>
21354
21355         * modules/array-mergesort-tests: New file.
21356         * tests/test-array-mergesort.c: New file.
21357
21358         New module 'array-mergesort'.
21359         * modules/array-mergesort: New file.
21360         * lib/array-mergesort.h: New file.
21361
21362 2009-02-15  Bruno Haible  <bruno@clisp.org>
21363
21364         Fix 2009-02-07 commit.
21365         * lib/gen-uni-tables.c (output_predicate, output_category,
21366         output_combclass, output_bidi_category, output_decimal_digit,
21367         output_digit, output_numeric, output_mirror, output_scripts,
21368         output_ident_category, output_simple_mapping): Fix format directives.
21369         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21370
21371 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21372
21373         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21374         fixes are available from IBM.
21375
21376 2009-02-13  Jim Meyering  <meyering@redhat.com>
21377
21378         fts: arrange not to stat non-directories in more cases
21379         This makes GNU find (when it doesn't need to stat each file)
21380         *much* more efficient at traversing reiserfs file systems.
21381         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21382         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21383         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21384         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21385         (leaf_optimization_applies): New function.
21386         (LCO_hash, LCO_compare): New helper functions.
21387         (link_count_optimize_ok): New function.
21388         (fts_stat): Initialize new member (if dir).
21389         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21390         we've just stat'ed a directory.  Skip the stat call when possible.
21391         ---
21392         Note this AFS-related exchange:
21393         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21394         and note find's pioctl call in find/fstype.c.
21395         But that is necessary only if you want to enable the
21396         optimization for AFS, and for now, I don't.
21397
21398         fts: move a function definition "up" (no semantic change)
21399         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21400         "up" to precede upcoming use of a related function.
21401
21402 2009-02-11  Jim Meyering  <meyering@redhat.com>
21403
21404         fts: correct internal computation of nlinks (optimization-related)
21405         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21406         whether the current entry is a directory, so don't test it.
21407
21408 2009-02-10  Bruno Haible  <bruno@clisp.org>
21409
21410         Tests for module 'uniwbrk/ulc-wordbreaks'.
21411         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21412         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21413         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21414
21415         Tests for module 'uniwbrk/u32-wordbreaks'.
21416         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21417         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21418
21419         Tests for module 'uniwbrk/u16-wordbreaks'.
21420         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21421         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21422
21423         Tests for module 'uniwbrk/u8-wordbreaks'.
21424         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21425         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21426
21427 2009-02-10  Bruno Haible  <bruno@clisp.org>
21428
21429         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21430         property.
21431         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21432         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21433         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21434
21435 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21436
21437         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21438         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21439
21440 2009-02-10  Bruno Haible  <bruno@clisp.org>
21441
21442         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21443         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21444         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21445         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21446         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21447         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21448
21449 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21450
21451         * lib/sockets.h (gl_fd_to_handle): New function.
21452
21453         * tests/test-sockets.c: Call gl_fd_to_handle.
21454
21455 2009-02-09  Bruno Haible  <bruno@clisp.org>
21456
21457         * doc/havelib.texi: Document the conventions on bi-arch systems.
21458
21459 2009-02-08  Bruno Haible  <bruno@clisp.org>
21460
21461         Document the AC_LIB_LINKFLAGS macro.
21462         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21463         * doc/gnulib.texi: Include it.
21464
21465 2009-02-08  Bruno Haible  <bruno@clisp.org>
21466
21467         Fix wrong order of sections, compared to TOC.
21468         * doc/gnulib.texi: Include relocatable-maint.texi after the
21469         "Regular expressions" node, not before.
21470
21471 2009-02-08  Bruno Haible  <bruno@clisp.org>
21472
21473         Tests for module 'unicase/totitle'.
21474         * modules/unicase/totitle-tests: New file.
21475
21476         Tests for module 'unicase/tolower'.
21477         * modules/unicase/tolower-tests: New file.
21478
21479         Tests for module 'unicase/toupper'.
21480         * modules/unicase/toupper-tests: New file.
21481         * tests/unicase/test-mapping-part1.h: New file.
21482         * tests/unicase/test-mapping-part2.h: New file.
21483
21484         New module 'unicase/totitle'.
21485         * modules/unicase/totitle: New file.
21486         * lib/unicase/totitle.c: New file.
21487
21488         New module 'unicase/tolower'.
21489         * modules/unicase/tolower: New file.
21490         * lib/unicase/tolower.c: New file.
21491
21492         New module 'unicase/toupper'.
21493         * modules/unicase/toupper: New file.
21494         * lib/unicase/toupper.c: New file.
21495         * lib/unicase/simple-mapping.h: New file.
21496
21497         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21498         (mapping_table): New structure.
21499         (output_simple_mapping): New function.
21500         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21501         * modules/gen-uni-tables (Description): Update.
21502         * lib/unicase/toupper.h: New file, automatically generated by
21503         gen-uni-tables.
21504         * lib/unicase/tolower.h: New file, automatically generated by
21505         gen-uni-tables.
21506         * lib/unicase/totitle.h: New file, automatically generated by
21507         gen-uni-tables.
21508         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21509         gen-uni-tables.
21510         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21511         gen-uni-tables.
21512         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21513         gen-uni-tables.
21514
21515         New module 'unicase/base'.
21516         * modules/unicase/base: New file.
21517         * lib/unicase.h: New file.
21518
21519 2009-02-08  Bruno Haible  <bruno@clisp.org>
21520
21521         New module 'uniwbrk/ulc-wordbreaks'.
21522         * modules/uniwbrk/ulc-wordbreaks: New file.
21523         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21524
21525         New module 'uniwbrk/u32-wordbreaks'.
21526         * modules/uniwbrk/u32-wordbreaks: New file.
21527         * lib/uniwbrk/u32-wordbreaks.c: New file.
21528
21529         New module 'uniwbrk/u16-wordbreaks'.
21530         * modules/uniwbrk/u16-wordbreaks: New file.
21531         * lib/uniwbrk/u16-wordbreaks.c: New file.
21532
21533         New module 'uniwbrk/u8-wordbreaks'.
21534         * modules/uniwbrk/u8-wordbreaks: New file.
21535         * lib/uniwbrk/u8-wordbreaks.c: New file.
21536         * lib/uniwbrk/u-wordbreaks.h: New file.
21537
21538         New module 'uniwbrk/table'.
21539         * modules/uniwbrk/table: New file.
21540         * lib/uniwbrk/wbrktable.h: New file.
21541         * lib/uniwbrk/wbrktable.c: New file.
21542
21543         New module 'uniwbrk/wordbreak-property'.
21544         * modules/uniwbrk/wordbreak-property: New file.
21545         * lib/uniwbrk/wordbreak-property.c: New file.
21546
21547         * lib/gen-uni-tables.c (WBP_*): New enum items.
21548         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21549         (unicode_org_wbp): New variable.
21550         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21551         New functions.
21552         (wbp_table): New structure.
21553         (output_wbp, output_wbrk_tables): New functions.
21554         (main): Accept additional argument. Invoke fill_org_wbp,
21555         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21556         output_wbrk_tables.
21557         * modules/gen-uni-tables (Description): Update.
21558         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21559         gen-uni-tables.
21560
21561         New module 'uniwbrk/base'.
21562         * modules/uniwbrk/base: New file.
21563         * lib/uniwbrk.h: New file.
21564
21565 2009-02-08  Bruno Haible  <bruno@clisp.org>
21566
21567         Update to Unicode 5.1.0.
21568         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21569         U+2185..U+2188.
21570         (is_property_default_ignorable_code_point): Don't include characters
21571         of category Cc or Cs and not-a-characters.
21572         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21573         U+0D79, U+109E, U+109F, U+A60C.
21574         * lib/unictype/bidi_of.h: Regenerated.
21575         * lib/unictype/blocks.h: Regenerated.
21576         * lib/unictype/categ_C.h: Regenerated.
21577         * lib/unictype/categ_Cf.h: Regenerated.
21578         * lib/unictype/categ_Cn.h: Regenerated.
21579         * lib/unictype/categ_L.h: Regenerated.
21580         * lib/unictype/categ_Ll.h: Regenerated.
21581         * lib/unictype/categ_Lm.h: Regenerated.
21582         * lib/unictype/categ_Lo.h: Regenerated.
21583         * lib/unictype/categ_Lu.h: Regenerated.
21584         * lib/unictype/categ_M.h: Regenerated.
21585         * lib/unictype/categ_Mc.h: Regenerated.
21586         * lib/unictype/categ_Me.h: Regenerated.
21587         * lib/unictype/categ_Mn.h: Regenerated.
21588         * lib/unictype/categ_N.h: Regenerated.
21589         * lib/unictype/categ_Nd.h: Regenerated.
21590         * lib/unictype/categ_Nl.h: Regenerated.
21591         * lib/unictype/categ_No.h: Regenerated.
21592         * lib/unictype/categ_P.h: Regenerated.
21593         * lib/unictype/categ_Pd.h: Regenerated.
21594         * lib/unictype/categ_Pe.h: Regenerated.
21595         * lib/unictype/categ_Pf.h: Regenerated.
21596         * lib/unictype/categ_Pi.h: Regenerated.
21597         * lib/unictype/categ_Po.h: Regenerated.
21598         * lib/unictype/categ_Ps.h: Regenerated.
21599         * lib/unictype/categ_S.h: Regenerated.
21600         * lib/unictype/categ_Sk.h: Regenerated.
21601         * lib/unictype/categ_Sm.h: Regenerated.
21602         * lib/unictype/categ_So.h: Regenerated.
21603         * lib/unictype/categ_of.h: Regenerated.
21604         * lib/unictype/combining.h: Regenerated.
21605         * lib/unictype/ctype_alnum.h: Regenerated.
21606         * lib/unictype/ctype_alpha.h: Regenerated.
21607         * lib/unictype/ctype_graph.h: Regenerated.
21608         * lib/unictype/ctype_lower.h: Regenerated.
21609         * lib/unictype/ctype_print.h: Regenerated.
21610         * lib/unictype/ctype_punct.h: Regenerated.
21611         * lib/unictype/ctype_upper.h: Regenerated.
21612         * lib/unictype/decdigit.h: Regenerated.
21613         * lib/unictype/digit.h: Regenerated.
21614         * lib/unictype/mirror.h: Regenerated.
21615         * lib/unictype/numeric.h: Regenerated.
21616         * lib/unictype/pr_alphabetic.h: Regenerated.
21617         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21618         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21619         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21620         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21621         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21622         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21623         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21624         * lib/unictype/pr_combining.h: Regenerated.
21625         * lib/unictype/pr_dash.h: Regenerated.
21626         * lib/unictype/pr_decimal_digit.h: Regenerated.
21627         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21628         * lib/unictype/pr_deprecated.h: Regenerated.
21629         * lib/unictype/pr_diacritic.h: Regenerated.
21630         * lib/unictype/pr_extender.h: Regenerated.
21631         * lib/unictype/pr_format_control.h: Regenerated.
21632         * lib/unictype/pr_grapheme_base.h: Regenerated.
21633         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21634         * lib/unictype/pr_grapheme_link.h: Regenerated.
21635         * lib/unictype/pr_id_continue.h: Regenerated.
21636         * lib/unictype/pr_id_start.h: Regenerated.
21637         * lib/unictype/pr_ideographic.h: Regenerated.
21638         * lib/unictype/pr_ignorable_control.h: Regenerated.
21639         * lib/unictype/pr_lowercase.h: Regenerated.
21640         * lib/unictype/pr_math.h: Regenerated.
21641         * lib/unictype/pr_numeric.h: Regenerated.
21642         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21643         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21644         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21645         * lib/unictype/pr_other_id_continue.h: Regenerated.
21646         * lib/unictype/pr_other_lowercase.h: Regenerated.
21647         * lib/unictype/pr_other_math.h: Regenerated.
21648         * lib/unictype/pr_punctuation.h: Regenerated.
21649         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21650         * lib/unictype/pr_soft_dotted.h: Regenerated.
21651         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21652         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21653         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21654         * lib/unictype/pr_uppercase.h: Regenerated.
21655         * lib/unictype/pr_xid_continue.h: Regenerated.
21656         * lib/unictype/pr_xid_start.h: Regenerated.
21657         * lib/unictype/pr_zero_width.h: Regenerated.
21658         * lib/unictype/scripts.h: Regenerated.
21659         * lib/unictype/scripts_byname.gperf: Regenerated.
21660         * lib/unictype/sy_java_ident.h: Regenerated.
21661         * lib/unilbrk/lbrkprop1.h: Regenerated.
21662         * lib/unilbrk/lbrkprop2.h: Regenerated.
21663         * tests/unictype/test-categ_C.c: Regenerated.
21664         * tests/unictype/test-categ_Cf.c: Regenerated.
21665         * tests/unictype/test-categ_Cn.c: Regenerated.
21666         * tests/unictype/test-categ_L.c: Regenerated.
21667         * tests/unictype/test-categ_Ll.c: Regenerated.
21668         * tests/unictype/test-categ_Lm.c: Regenerated.
21669         * tests/unictype/test-categ_Lo.c: Regenerated.
21670         * tests/unictype/test-categ_Lu.c: Regenerated.
21671         * tests/unictype/test-categ_M.c: Regenerated.
21672         * tests/unictype/test-categ_Mc.c: Regenerated.
21673         * tests/unictype/test-categ_Me.c: Regenerated.
21674         * tests/unictype/test-categ_Mn.c: Regenerated.
21675         * tests/unictype/test-categ_N.c: Regenerated.
21676         * tests/unictype/test-categ_Nd.c: Regenerated.
21677         * tests/unictype/test-categ_Nl.c: Regenerated.
21678         * tests/unictype/test-categ_No.c: Regenerated.
21679         * tests/unictype/test-categ_P.c: Regenerated.
21680         * tests/unictype/test-categ_Pd.c: Regenerated.
21681         * tests/unictype/test-categ_Pe.c: Regenerated.
21682         * tests/unictype/test-categ_Pf.c: Regenerated.
21683         * tests/unictype/test-categ_Pi.c: Regenerated.
21684         * tests/unictype/test-categ_Po.c: Regenerated.
21685         * tests/unictype/test-categ_Ps.c: Regenerated.
21686         * tests/unictype/test-categ_S.c: Regenerated.
21687         * tests/unictype/test-categ_Sk.c: Regenerated.
21688         * tests/unictype/test-categ_Sm.c: Regenerated.
21689         * tests/unictype/test-categ_So.c: Regenerated.
21690         * tests/unictype/test-ctype_alnum.c: Regenerated.
21691         * tests/unictype/test-ctype_alpha.c: Regenerated.
21692         * tests/unictype/test-ctype_graph.c: Regenerated.
21693         * tests/unictype/test-ctype_lower.c: Regenerated.
21694         * tests/unictype/test-ctype_print.c: Regenerated.
21695         * tests/unictype/test-ctype_punct.c: Regenerated.
21696         * tests/unictype/test-ctype_upper.c: Regenerated.
21697         * tests/unictype/test-decdigit.h: Regenerated.
21698         * tests/unictype/test-digit.h: Regenerated.
21699         * tests/unictype/test-numeric.h: Regenerated.
21700         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21701         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21702         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21703         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21704         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21705         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21706         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21707         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21708         * tests/unictype/test-pr_combining.c: Regenerated.
21709         * tests/unictype/test-pr_dash.c: Regenerated.
21710         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21711         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21712         * tests/unictype/test-pr_deprecated.c: Regenerated.
21713         * tests/unictype/test-pr_diacritic.c: Regenerated.
21714         * tests/unictype/test-pr_extender.c: Regenerated.
21715         * tests/unictype/test-pr_format_control.c: Regenerated.
21716         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21717         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21718         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21719         * tests/unictype/test-pr_id_continue.c: Regenerated.
21720         * tests/unictype/test-pr_id_start.c: Regenerated.
21721         * tests/unictype/test-pr_ideographic.c: Regenerated.
21722         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21723         * tests/unictype/test-pr_lowercase.c: Regenerated.
21724         * tests/unictype/test-pr_math.c: Regenerated.
21725         * tests/unictype/test-pr_numeric.c: Regenerated.
21726         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21727         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21728         Regenerated.
21729         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21730         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21731         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21732         * tests/unictype/test-pr_other_math.c: Regenerated.
21733         * tests/unictype/test-pr_punctuation.c: Regenerated.
21734         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21735         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21736         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21737         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21738         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21739         * tests/unictype/test-pr_uppercase.c: Regenerated.
21740         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21741         * tests/unictype/test-pr_xid_start.c: Regenerated.
21742         * tests/unictype/test-pr_zero_width.c: Regenerated.
21743
21744         Update to Unicode 5.1.0.
21745         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21746         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21747         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21748         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21749         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21750         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21751         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21752         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21753         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21754         (nonspacing_table_ind): Update.
21755         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21756
21757         Update to Unicode 5.1.0.
21758         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21759         code transform.
21760         * lib/uniname/uniname.c (unicode_character_name,
21761         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21762         * lib/uniname/uninames.h: Regenerated.
21763         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21764
21765 2009-02-07  Bruno Haible  <bruno@clisp.org>
21766
21767         Merge gen-ctype and gen-lbrk into a single program.
21768         * lib/gen-uni-tables.c: New file, incorporating
21769         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21770         Add directory prefixes to the names of the generated files.
21771         * lib/unictype/gen-ctype.c: Remove file.
21772         * lib/unilbrk/gen-lbrk.c: Remove file.
21773         * modules/gen-uni-tables: New file.
21774         * modules/unictype/gen-ctype: Remove file.
21775         * modules/unilbrk/gen-lbrk: Remove file.
21776
21777 2009-02-07  Bruno Haible  <bruno@clisp.org>
21778
21779         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21780
21781         New module 'unistr/u32-strcoll'.
21782         * modules/unistr/u32-strcoll: New file.
21783         * lib/unistr/u32-strcoll.c: New file.
21784
21785         New module 'unistr/u16-strcoll'.
21786         * modules/unistr/u16-strcoll: New file.
21787         * lib/unistr/u16-strcoll.c: New file.
21788
21789         New module 'unistr/u8-strcoll'.
21790         * modules/unistr/u8-strcoll: New file.
21791         * lib/unistr/u8-strcoll.c: New file.
21792         * lib/unistr/u-strcoll.h: New file.
21793
21794 2009-02-07  Bruno Haible  <bruno@clisp.org>
21795
21796         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21797         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21798         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21799         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21800         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21801         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21802
21803 2009-02-07  Bruno Haible  <bruno@clisp.org>
21804
21805         Make 64-bit clean.
21806         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21807         output_combclass, output_bidi_category, output_decimal_digit,
21808         output_digit, output_numeric, output_mirror, output_scripts,
21809         output_ident_category): Use proper width specifier in format strings.
21810
21811 2009-02-07  Bruno Haible  <bruno@clisp.org>
21812
21813         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21814         failure behaviour.
21815
21816 2009-02-07  Jim Meyering  <meyering@redhat.com>
21817
21818         regex: avoid compilation failure with upcoming gcc-4.4
21819         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21820         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21821         "... error: integer overflow in preprocessor expression".
21822
21823 2009-02-05  Ben Pfaff  <blp@gnu.org>
21824
21825         Fix link errors on Windows when close module is used.
21826         * modules/close: Add $(LIB_CLOSE) to Link section.
21827         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21828         $(LIB_CLOSE) on Windows.
21829
21830 2009-02-05  Jim Meyering  <meyering@redhat.com>
21831
21832         still avoid unused-parameter warnings, but do it cleanly
21833         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
21834         (get_fs_usage): Cast to void instead.
21835         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
21836         (dev_from_mount_options, read_file_system_list): Cast to void.
21837         Prompted by Bruno Haible.
21838
21839 2009-02-04  Jim Meyering  <meyering@redhat.com>
21840
21841         fsusage.c: correct copyright year
21842         * lib/fsusage.c: Reflect year in which the change is pushed into
21843
21844         avoid misc. warnings
21845         * lib/fsusage.c (UNUSED_PARAM): Define.
21846         (get_fs_usage): Mark parameter "disk" as unused.
21847         * lib/getugroups.c (getgrent): Use "void" in prototype.
21848         * lib/mountlist.c: Mark unused parameters.
21849         (read_file_system_list): Declare a local with "const".
21850         * lib/nanosleep.c (getnow): Declare static.
21851         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
21852
21853         dirfd: set errno upon failure
21854         * lib/dirfd.c: Include <errno.h>.
21855         Set errno to ENOTSUP when returning -1.
21856         * modules/dirfd (Depends-on): Add errno.
21857         Suggested by John Kodis <kodis@comcast.net>.
21858
21859 2009-02-01  Bruno Haible  <bruno@clisp.org>
21860
21861         Don't assume sizeof (long) >= sizeof (void *).
21862         * lib/memcmp.c: Include stdint.h.
21863         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
21864         srcp2 to 'const byte *'.
21865         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
21866         types to uintptr_t.
21867         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
21868         * modules/memcmp (Depends-on): Add stdint.
21869         Reported by Ozkan Sezer <sezeroz@gmail.com>.
21870
21871 2009-01-30  Eric Blake  <ebb9@byu.net>
21872
21873         fix more require-before-expand issues
21874         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
21875         expand, AC_PROG_AWK.
21876         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
21877
21878 2009-01-28  Eric Blake  <ebb9@byu.net>
21879
21880         version-etc: use consistent URL formatting
21881         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
21882         Improve formatting.  Use fputs for string without %.
21883
21884 2009-01-28  Jim Meyering  <meyering@redhat.com>
21885
21886         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
21887         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
21888         "underquoted definition of NAME" from autoconf-2.59.
21889
21890 2009-01-28  Bruno Haible  <bruno@clisp.org>
21891
21892         * doc/gnulib.texi: Add "Obsolete modules" to index.
21893
21894 2009-01-28  Jim Meyering  <meyering@redhat.com>
21895
21896         useless-if-before-free: recognize more variants
21897         * build-aux/useless-if-before-free: Also recognize e.g.,
21898         if (NULL != p) free (p);
21899
21900 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
21901
21902         test-getaddrinfo: skip (don't fail) this test when there's no network
21903         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
21904         on the presumption that it means you lack network access.
21905
21906 2009-01-26  Jim Meyering  <meyering@redhat.com>
21907
21908         fflush: avoid warnings on modern systems
21909         * lib/fflush.c (rpl_fflush): Move declarations of locals,
21910         pos and result, into scopes where they're used.
21911
21912 2009-01-26  Eric Blake  <ebb9@byu.net>
21913
21914         Silence warning reintroduced by recent extensions patch.
21915         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
21916         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
21917         autoconf.
21918
21919         Backport improved autoconf semantics of AC_DEFUN_ONCE.
21920         * m4/00gnulib.m4: New file.
21921         * gnulib-tool (func_get_filelist): Always use it.
21922         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
21923         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
21924
21925 2009-01-25  Bruno Haible  <bruno@clisp.org>
21926
21927         Make test-quotearg work on MacOS X and AIX.
21928         * tests/test-quotearg.sh: New file.
21929         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
21930         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
21931         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
21932         include <libintl.h>.
21933         (fake_locale): Remove variable.
21934         (gettext, dgettext, dcgettext): Remove functions.
21935         (main): Instead of setting a fake locale, set a real locale. Call
21936         textdomain and bindtextdomain.
21937         * modules/quotearg-tests (Files): Add the new files.
21938         (Depends-on): Add gettext, setenv, unsetenv.
21939         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21940         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
21941         Augment TESTS_ENVIRONMENT.
21942
21943 2009-01-25  Bruno Haible  <bruno@clisp.org>
21944
21945         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
21946         fr_FR.ISO8859-1 locale on MacOS X.
21947         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
21948         ja_JP.eucJP locale on MacOS X.
21949         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
21950         zh_CN.GB18030 locale on MacOS X.
21951
21952 2009-01-25  Bruno Haible  <bruno@clisp.org>
21953
21954         Avoid link errors on MacOS X 10.3.
21955         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
21956         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21957
21958 2009-01-25  Bruno Haible  <bruno@clisp.org>
21959
21960         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21961         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
21962         * modules/pipe (Files): Remove m4/posix_spawn.m4.
21963         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21964         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
21965         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21966         posix_spawnattr_init, posix_spawnattr_setsigmask,
21967         posix_spawnattr_setflags, posix_spawnattr_destroy.
21968
21969         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
21970         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
21971         * modules/execute (Files): Remove m4/posix_spawn.m4.
21972         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
21973         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
21974         posix_spawnattr_init, posix_spawnattr_setsigmask,
21975         posix_spawnattr_setflags, posix_spawnattr_destroy.
21976
21977 2009-01-25  Bruno Haible  <bruno@clisp.org>
21978
21979         * lib/glthread/threadlib.c: Include <stdlib.h>.
21980
21981 2009-01-25  Bruno Haible  <bruno@clisp.org>
21982
21983         * lib/glthread/threadlib.c (dummy): New declaration.
21984
21985 2009-01-25  Bruno Haible  <bruno@clisp.org>
21986
21987         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
21988         multibyte characters also for the GB18030 encoding. Don't crash when
21989         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
21990
21991 2009-01-25  Bruno Haible  <bruno@clisp.org>
21992
21993         Avoid redefining 'struct random_data' on OSF/1 5.1.
21994         * lib/stdlib.in.h: Include <random.h> if it exists.
21995         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
21996         HAVE_RANDOM_H. Include <random.h> when testing whether
21997         'struct random_data' exists.
21998         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
21999
22000 2009-01-25  Bruno Haible  <bruno@clisp.org>
22001
22002         Don't install charset.alias on MacOS X >= 10.3.
22003         * lib/localcharset.c (DARWIN7): New macro.
22004         (get_charset_aliases): Hardcode the result for Darwin7.
22005         * modules/localcharset (install-exec-local): Don't install
22006         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
22007
22008 2009-01-25  Bruno Haible  <bruno@clisp.org>
22009
22010         Don't install charset.alias on mingw and Cygwin.
22011         * modules/localcharset (install-exec-local): Don't install
22012         charset.alias on mingw and Cygwin, if the file does not yet exist.
22013         The result for these platforms is hardcoded in localcharset.c.
22014
22015 2009-01-25  Bruno Haible  <bruno@clisp.org>
22016
22017         Make it possible again to use AC_GNU_SOURCE together with gnulib.
22018         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
22019         before requiring AC_USE_SYSTEM_EXTENSIONS.
22020
22021 2009-01-25  Jim Meyering  <meyering@redhat.com>
22022
22023         c-strtod: avoid warnings
22024         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
22025         "assignment discards qualifiers from pointer target type" warnings.
22026
22027 2009-01-24  Bruno Haible  <bruno@clisp.org>
22028
22029         Add support for non-UTF-8 locales on MacOS X.
22030         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
22031         canonical encodings. For Darwin 7 and newer, don't map traditional
22032         encodings to UTF-8.
22033         Reported by Vincent Lefevre <vincent@vinc17.org>
22034         at <http://savannah.gnu.org/bugs/?25235>.
22035
22036 2009-01-24  Bruno Haible  <bruno@clisp.org>
22037
22038         * doc/gnulib.texi (Obsolete modules): New section.
22039         Reported by Mike Frysinger <vapier@gentoo.org>.
22040
22041 2009-01-24  Bruno Haible  <bruno@clisp.org>
22042
22043         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
22044         (%.dvi): New rule.
22045
22046 2009-01-24  Bruno Haible  <bruno@clisp.org>
22047
22048         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
22049         Reported by Eric Blake.
22050
22051 2009-01-24  Bruno Haible  <bruno@clisp.org>
22052
22053         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
22054         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
22055         Reported by Gary V. Vaughan <gary@gnu.org>.
22056
22057 2009-01-24  Bruno Haible  <bruno@clisp.org>
22058
22059         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
22060
22061 2009-01-23  Bruno Haible  <bruno@clisp.org>
22062
22063         Make c-strtod, c-strtold usable in libraries.
22064         * lib/c-strtod.c: Include string.h instead of xalloc.h.
22065         (C_STRTOD): Call strdup instead of xstrdup.
22066         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
22067         * modules/c-strtold (Depends-on): Likewise.
22068         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
22069         * NEWS: Mention the change.
22070         Reported by Michael Gold <mgold@ncf.ca>.
22071
22072 2009-01-23  Jim Meyering  <meyering@redhat.com>
22073
22074         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
22075         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
22076         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
22077
22078 2009-01-23  Simon Josefsson  <simon@josefsson.org>
22079
22080         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
22081         GNU CoreUtils.
22082         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
22083         * modules/version-etc (Description): Update.
22084
22085 2009-01-22  Bruno Haible  <bruno@clisp.org>
22086
22087         Cache the C locale object.
22088         * lib/c-strtod.c (c_locale_cache): New variable.
22089         (c_locale): New function.
22090         (C_STRTOD): Use it, and don't call freelocale.
22091         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
22092         Suggested by Paolo Bonzini.
22093
22094 2009-01-21  Bruno Haible  <bruno@clisp.org>
22095
22096         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
22097         conditions other than overflow.
22098
22099 2009-01-21  Bruno Haible  <bruno@clisp.org>
22100
22101         * lib/c-strtod.c: Include errno.h.
22102         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
22103         value from STRTOD_L and STRTOD.
22104
22105 2009-01-21  Bruno Haible  <bruno@clisp.org>
22106         and Jim Meyering  <meyering@redhat.com>
22107
22108         nanosleep: skip configure test (fail it) for apple universal builds
22109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
22110         universal builds, assume that nanosleep does not work.
22111         * modules/nanosleep (Depends-on): Add multiarch.
22112
22113         mktime: skip configure test (fail it) for apple universal builds
22114         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
22115         universal builds, assume that mktime does not work.
22116         * modules/mktime (Depends-on): Add multiarch.
22117
22118 2009-01-21  Eric Blake  <ebb9@byu.net>
22119
22120         multiarch: avoid expand-before-require warning
22121         * modules/multiarch (configure.ac): Require, rather than expand,
22122         gl_MULTIARCH.
22123         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
22124         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
22125         enforce that all clients require it.  Partial reversion of
22126         2008-12-29 patch.
22127
22128         error: avoid expand-before-require warning
22129         * modules/errno (configure.ac): Require, rather than expand,
22130         gl_HEADER_ERRNO_H.
22131         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
22132         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
22133         enforce that all clients require it.
22134
22135         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
22136         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
22137         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
22138         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
22139
22140 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
22141
22142         Revert:
22143         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22144
22145         regex: do not depend on obsolete modules.
22146         * modules/regex: Remove memcmp and memmove.
22147
22148 2009-01-20  Bruno Haible  <bruno@clisp.org>
22149
22150         Make the 'link' module link on Windows NT 4.
22151         * lib/link.c (_WIN32_WINNT): Don't define.
22152         (CreateHardLinkFuncType): New type.
22153         (CreateHardLinkFunc, initialized): New variables.
22154         (initialize): New function.
22155         (link): Invoke CreateHardLink indirectly through the function pointer.
22156
22157 2009-01-20  Bruno Haible  <bruno@clisp.org>
22158
22159         Fix compilation failure on mingw.
22160         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22161
22162 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22163
22164         * doc/c-strtod.texi: Mention a couple of restrictions.
22165
22166 2009-01-20  Jim Meyering  <meyering@redhat.com>
22167
22168         gettimeofday: move more declarations out of functions
22169         * lib/gettimeofday.c: Move extern declarations of tzset and
22170         gmtime out of containing functions.  Prompted by Bruno Haible.
22171
22172 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22173
22174         regex: do not depend on obsolete modules.
22175         * modules/regex: Remove memcmp and memmove.
22176
22177 2009-01-19  Bruno Haible  <bruno@clisp.org>
22178
22179         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22180         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22181         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22182         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22183         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22184
22185 2009-01-19  Bruno Haible  <bruno@clisp.org>
22186
22187         * tests/test-link.c: Include <errno.h>.
22188         (main): Exit with code 77 when a hard link cannot be created due to
22189         the file system.
22190         * tests/test-link.sh: Skip test when a hard link cannot be created due
22191         to the file system.
22192         Suggested by Eric Blake.
22193
22194 2009-01-19  Martin Lambers  <marlam@marlam.de>
22195
22196         * modules/link-tests: New file.
22197         * tests/test-link.sh: New file.
22198         * tests/test-link.c: New file.
22199
22200 2009-01-19  Eric Blake  <ebb9@byu.net>
22201
22202         doc: mention another function added in cygwin 1.7.0
22203         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22204         Another new function in cygwin 1.7.
22205
22206 2009-01-19  Bruno Haible  <bruno@clisp.org>
22207
22208         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22209         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22210         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22211         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22212         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22213         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22214         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22215         * m4/md4.m4 (gl_MD4): Likewise.
22216         * m4/md5.m4 (gl_MD5): Likewise.
22217         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22218         * m4/sha1.m4 (gl_SHA1): Likewise.
22219         * m4/sha256.m4 (gl_SHA256): Likewise.
22220         * m4/sha512.m4 (gl_SHA512): Likewise.
22221
22222 2009-01-19  Bruno Haible  <bruno@clisp.org>
22223
22224         * modules/uniname/uniname-tests (Depends-on): Add progname.
22225         * tests/uniname/test-uninames.c: Include progname.h.
22226         (main): Call set_program_name.
22227
22228         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22229         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22230         (main): Call set_program_name.
22231
22232         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22233         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22234         (main): Call set_program_name.
22235
22236         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22237         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22238         (main): Call set_program_name.
22239
22240         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22241         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22242         (main): Call set_program_name.
22243
22244         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22245         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22246         (main): Call set_program_name.
22247
22248         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22249         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22250         (main): Call set_program_name.
22251
22252         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22253         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22254         (main): Call set_program_name.
22255
22256         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22257         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22258         (main): Call set_program_name.
22259
22260 2009-01-19  Eric Blake  <ebb9@byu.net>
22261
22262         test-unistd: test previous patch
22263         * tests/test-unistd.c: Test *_FILENO macros.
22264
22265         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22266         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22267         Guarantee a definition.
22268         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22269         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22270         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22271         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22272         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22273         Likewise.
22274         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22275         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22276         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22277         Likewise.
22278         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22279         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22280         (STDERR_FILENO): Likewise.
22281         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22282         (STDERR_FILENO): Likewise.
22283         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22284         (STDERR_FILENO): Likewise.
22285         Reported by Elbert Pol.
22286
22287 2009-01-19  Eric Blake  <ebb9@byu.net>
22288
22289         doc: mention more functions added in cygwin 1.7.0
22290         * doc/posix-functions/abort.texi (abort): Update wording related
22291         to cygwin.
22292         * doc/posix-functions/daylight.texi (daylight): Likewise.
22293         * doc/posix-functions/optarg.texi (optarg): Likewise.
22294         * doc/posix-functions/optarg.texi (opterr): Likewise.
22295         * doc/posix-functions/optarg.texi (optind): Likewise.
22296         * doc/posix-functions/optarg.texi (optopt): Likewise.
22297         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22298         worked in 1.5.x, and was withdrawn in 1.7.
22299         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22300         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22301         cygwin versions.
22302         * doc/posix-functions/perror.texi (perror): Likewise.
22303         * doc/posix-functions/printf.texi (printf): Likewise.
22304         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22305         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22306         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22307         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22308         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22309         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22310         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22311         Likewise.
22312         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22313         Likewise.
22314         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22315         this function.
22316         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22317         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22318         Likewise.
22319         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22320         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22321         * doc/posix-functions/confstr.texi (confstr): Likewise.
22322         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22323         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22324         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22325         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22326         * doc/posix-functions/fputws.texi (fputws): Likewise.
22327         * doc/posix-functions/fwide.texi (fwide): Likewise.
22328         * doc/posix-functions/getwc.texi (getwc): Likewise.
22329         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22330         * doc/posix-functions/putwc.texi (putwc): Likewise.
22331         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22332         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22333         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22334         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22335         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22336         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22337         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22338         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22339         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22340         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22341         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22342
22343 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22344
22345         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22346         * lib/ioctl.c: Include <sys/ioctl.h>.
22347
22348 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22349
22350         * modules/getdate-tests (Depends-on): Add progname.
22351         * tests/test-getdate.c: Use progname module, to avoid link errors
22352         on non-glibc systems.
22353
22354 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22355
22356         * modules/filenamecat-tests (Depends-on): Add progname.
22357         * modules/fstrcmp-tests (Depends-on): Likewise.
22358
22359         * tests/test-filenamecat.c: Use progname module, to avoid link
22360         errors on non-glibc systems.
22361         * tests/test-fstrcmp.c: Likewise.
22362
22363 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22364
22365         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22366         * lib/gettimeofday.c: Move extern declaration out of function.
22367
22368 2009-01-18  Bruno Haible  <bruno@clisp.org>
22369
22370         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22371         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22372         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22373
22374 2009-01-18  Bruno Haible  <bruno@clisp.org>
22375
22376         * lib/strftime.c (MEMPCPY): Remove unused macro.
22377         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22378
22379 2009-01-18  Martin Lambers  <marlam@marlam.de>
22380
22381         New module 'link'.
22382         * lib/unistd.in.h (link): New declaration.
22383         * lib/link.c: New file.
22384         * m4/link.m4: New file.
22385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22386         HAVE_LINK.
22387         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22388         * modules/link: New file.
22389         * doc/posix-functions/link.texi: Mention the new module.
22390
22391 2009-01-18  Bruno Haible  <bruno@clisp.org>
22392
22393         * tests/test-avltree_list.c (main): Call set_program_name.
22394         * tests/test-avltree_oset.c (main): Likewise.
22395         * tests/test-obstack-printf.c: Include progname.h.
22396         (main): Call set_program_name.
22397         * tests/test-quotearg.c: Include progname.h.
22398         (main): Call set_program_name.
22399         * tests/test-xmemdup0.c: Include progname.h.
22400         (main): Call set_program_name.
22401
22402 2009-01-18  Bruno Haible  <bruno@clisp.org>
22403
22404         New module 'alphasort'.
22405         * lib/dirent.in.h (alphasort): New declaration.
22406         * lib/alphasort.c: New file, from glibc with modifications.
22407         * m4/alphasort.m4: New file.
22408         * modules/alphasort: New file.
22409         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22410         HAVE_ALPHASORT.
22411         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22412         HAVE_ALPHASORT.
22413         * doc/posix-functions/alphasort.texi: Mention the new module and the
22414         portability problems.
22415
22416 2009-01-18  Bruno Haible  <bruno@clisp.org>
22417
22418         New module 'scandir'.
22419         * lib/dirent.in.h (scandir): New declaration.
22420         * lib/scandir.c: New file, from glibc with modifications.
22421         * m4/scandir.m4: New file.
22422         * modules/scandir: New file.
22423         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22424         HAVE_SCANDIR.
22425         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22426         HAVE_SCANDIR.
22427         * doc/posix-functions/scandir.texi: Mention the new module and the
22428         portability problems.
22429
22430 2009-01-17  Bruno Haible  <bruno@clisp.org>
22431
22432         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22433         Update documentation.
22434         (func_remove_suffix): Escape all dots in the suffix. Update
22435         documentation.
22436         (func_filter_filelist): Update documentation.
22437         Reported by Ralf Wildenhues.
22438
22439 2009-01-17  Bruno Haible  <bruno@clisp.org>
22440
22441         * modules/dprintf-posix-tests: New file.
22442         * tests/test-dprintf-posix.sh: New file.
22443         * tests/test-dprintf-posix.c: New file.
22444
22445         New modules 'dprintf', 'dprintf-posix'.
22446         * lib/stdio.in.h (dprintf): New declaration.
22447         * lib/dprintf.c: New file.
22448         * m4/dprintf.m4: New file.
22449         * m4/dprintf-posix.m4: New file.
22450         * modules/dprintf: New file.
22451         * modules/dprintf-posix: New file.
22452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22453         HAVE_DPRINTF, REPLACE_DPRINTF.
22454         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22455         HAVE_DPRINTF, REPLACE_DPRINTF.
22456         * doc/posix-functions/dprintf.texi: Mention the new modules.
22457
22458 2009-01-17  Bruno Haible  <bruno@clisp.org>
22459
22460         * modules/vdprintf-posix-tests: New file.
22461         * tests/test-vdprintf-posix.sh: New file.
22462         * tests/test-vdprintf-posix.c: New file.
22463
22464         New modules 'vdprintf', 'vdprintf-posix'.
22465         * lib/stdio.in.h (vdprintf): New declaration.
22466         * lib/vdprintf.c: New file.
22467         * m4/vdprintf.m4: New file.
22468         * m4/vdprintf-posix.m4: New file.
22469         * modules/vdprintf: New file.
22470         * modules/vdprintf-posix: New file.
22471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22472         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22473         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22474         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22475         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22476
22477 2009-01-17  Bruno Haible  <bruno@clisp.org>
22478
22479         Fix replacement of fopen on mingw.
22480         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22481         mingw.
22482
22483 2009-01-17  Bruno Haible  <bruno@clisp.org>
22484
22485         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22486         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22487
22488 2009-01-17  Bruno Haible  <bruno@clisp.org>
22489
22490         Avoid test-fflush2.sh failure on mingw.
22491         * tests/test-fflush2.c: Include binary-io.h.
22492         (main): Put standard input into binary mode.
22493         * modules/fflush-tests (Depends-on): Add binary-io.
22494
22495 2009-01-17  Bruno Haible  <bruno@clisp.org>
22496
22497         * lib/wchar.in.h: In another particular situation, include only the
22498         system's <wchar.h> file.
22499         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22500         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22501         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22502
22503 2009-01-17  Bruno Haible  <bruno@clisp.org>
22504
22505         Support for stripping executables in --enable-relocatable.
22506         * build-aux/install-reloc: Expect one more argument, or an environment
22507         variable RELOC_STRIP_PROG. If set, strip the destination program and
22508         its wrapper.
22509         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22510         RELOC_STRIP_PROG.
22511         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22512         to set RELOCATABLE_STRIP.
22513         * NEWS: Mention the new Makefile requirement.
22514
22515 2009-01-17  Bruno Haible  <bruno@clisp.org>
22516
22517         * build-aux/install-reloc: Remove debugging information left over by
22518         C compiler on MacOS X.
22519
22520 2009-01-17  Bruno Haible  <bruno@clisp.org>
22521
22522         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22523         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22524         _NSGetExecutablePath.
22525
22526 2009-01-16  Jim Meyering  <meyering@redhat.com>
22527
22528         strerror: avoid warnings about discarding "const"
22529         * lib/strerror.c (rpl_strerror): Instead of returning a const
22530         string from each and every "case", use a variable, and add a single
22531         cast after the switch.
22532
22533 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22534
22535         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22536
22537 2009-01-16  Bruno Haible  <bruno@clisp.org>
22538
22539         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22540         array initializer syntax that also works in C++ mode.
22541         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22542
22543 2009-01-16  Jim Meyering  <meyering@redhat.com>
22544
22545         poll: suppress a warning
22546         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22547         to ignore "...unsigned expression < 0 is always false" warnings.
22548
22549 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22550
22551         poll: remove declarations of unused variables
22552         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22553         sockbuf and optlen.
22554
22555 2009-01-15  Bruno Haible  <bruno@clisp.org>
22556
22557         Make fflush-after-ungetc POSIX compliant on BSD systems.
22558         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22559         (clear_ungetc_buffer): Implement also for other systems.
22560         (rpl_fflush): On glibc systems, invoke
22561         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22562         clear_ungetc_buffer after fetching the stream's position, not before.
22563
22564 2009-01-15  Bruno Haible  <bruno@clisp.org>
22565
22566         Make fflush-after-ungetc POSIX compliant on glibc systems.
22567         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22568         after ungetc.
22569         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22570         (rpl_fflush): On glibc systems, simply call the system's fflush
22571         function after clearing the ungetc buffer.
22572         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22573         Instead, lseek only to the end of file, then use the system's fseeko
22574         for the rest. On glibc systems, reset the EOF indicator bit.
22575
22576 2009-01-15  Jim Meyering  <meyering@redhat.com>
22577
22578         openmp.m4: revert quote-adding change, for portability to older autoconf
22579         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22580         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22581         Simon Josefsson noticed the problem when using autoconf-2.61.
22582
22583 2009-01-15  Bruno Haible  <bruno@clisp.org>
22584
22585         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22586         * tests/test-fflush2.c (ASSERT): Always fail.
22587         (main): Add two tests for fflush() after ungetc(), taking into account
22588         the Austin Group's clarification.
22589         Suggested by Eric Blake.
22590
22591 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22592
22593         mktime.m4: remove K&R-style function prototypes
22594         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22595         for the Sun C++ compiler.
22596
22597 2009-01-14  Bruno Haible  <bruno@clisp.org>
22598
22599         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22600         while including <wchar.h>.
22601         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22602         the system's <wchar.h> file.
22603         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22604
22605 2009-01-14  Bruno Haible  <bruno@clisp.org>
22606
22607         * m4/csharp.m4: Don't mention gettext on the serial number line.
22608         * m4/csharpexec.m4: Likewise.
22609         * m4/eaccess.m4: Likewise.
22610         * m4/javaexec.m4: Likewise.
22611         * m4/sig_atomic_t.m4: Likewise.
22612         * m4/tmpdir.m4: Likewise.
22613         * m4/intldir.m4: Bump gettext version.
22614         * m4/lib-ld.m4: Likewise.
22615
22616 2009-01-14  Bruno Haible  <bruno@clisp.org>
22617
22618         * lib/progname.c (set_program_name): Add more comments.
22619         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22620
22621 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22622
22623         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22624         were sys/stat.h does not define it.
22625
22626 2009-01-14  Jim Meyering  <meyering@redhat.com>
22627
22628         many *.m4 files: improve m4 quoting
22629         99% of this change was performed by running the following commands:
22630         git ls-files | grep '\.m4$' | xargs perl -pi \
22631           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22632           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22633           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22634           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22635         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22636         The remainder were to add Copyright dates, increment serial numbers,
22637         undo some changes in comments, exclude m4/intl.m4, and add quotes
22638         around the "1" in ",1" where the unusual spacing prohibited the
22639         above regexps from doing the job.  For more details, see
22640         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22641         * m4/acl.m4: Modified.
22642         * m4/afs.m4: Likewise.
22643         * m4/alloca.m4: Likewise.
22644         * m4/argp.m4: Likewise.
22645         * m4/argz.m4: Likewise.
22646         * m4/atexit.m4: Likewise.
22647         * m4/bison-i18n.m4: Likewise.
22648         * m4/bison.m4: Likewise.
22649         * m4/byteswap.m4: Likewise.
22650         * m4/c-stack.m4: Likewise.
22651         * m4/c-strtod.m4: Likewise.
22652         * m4/calloc.m4: Likewise.
22653         * m4/canonicalize-lgpl.m4: Likewise.
22654         * m4/chown.m4: Likewise.
22655         * m4/clock_time.m4: Likewise.
22656         * m4/codeset.m4: Likewise.
22657         * m4/copy-file.m4: Likewise.
22658         * m4/csharp.m4: Likewise.
22659         * m4/csharpcomp.m4: Likewise.
22660         * m4/csharpexec.m4: Likewise.
22661         * m4/d-ino.m4: Likewise.
22662         * m4/d-type.m4: Likewise.
22663         * m4/dirfd.m4: Likewise.
22664         * m4/double-slash-root.m4: Likewise.
22665         * m4/eaccess.m4: Likewise.
22666         * m4/eealloc.m4: Likewise.
22667         * m4/environ.m4: Likewise.
22668         * m4/errno_h.m4: Likewise.
22669         * m4/euidaccess.m4: Likewise.
22670         * m4/execute.m4: Likewise.
22671         * m4/fatal-signal.m4: Likewise.
22672         * m4/fchdir.m4: Likewise.
22673         * m4/fcntl_h.m4: Likewise.
22674         * m4/fileblocks.m4: Likewise.
22675         * m4/filenamecat.m4: Likewise.
22676         * m4/findprog.m4: Likewise.
22677         * m4/flexmember.m4: Likewise.
22678         * m4/fnmatch.m4: Likewise.
22679         * m4/fopen.m4: Likewise.
22680         * m4/fpending.m4: Likewise.
22681         * m4/fprintf-posix.m4: Likewise.
22682         * m4/free.m4: Likewise.
22683         * m4/frexp.m4: Likewise.
22684         * m4/frexpl.m4: Likewise.
22685         * m4/fsusage.m4: Likewise.
22686         * m4/ftruncate.m4: Likewise.
22687         * m4/gc-camellia.m4: Likewise.
22688         * m4/gc-random.m4: Likewise.
22689         * m4/gc.m4: Likewise.
22690         * m4/getaddrinfo.m4: Likewise.
22691         * m4/getcwd-abort-bug.m4: Likewise.
22692         * m4/getcwd-path-max.m4: Likewise.
22693         * m4/getdate.m4: Likewise.
22694         * m4/getdomainname.m4: Likewise.
22695         * m4/getgroups.m4: Likewise.
22696         * m4/gethostname.m4: Likewise.
22697         * m4/gethrxtime.m4: Likewise.
22698         * m4/getline.m4: Likewise.
22699         * m4/getloadavg.m4: Likewise.
22700         * m4/getndelim2.m4: Likewise.
22701         * m4/getpass.m4: Likewise.
22702         * m4/gettext.m4: Likewise.
22703         * m4/gettime.m4: Likewise.
22704         * m4/gettimeofday.m4: Likewise.
22705         * m4/gnulib-common.m4: Likewise.
22706         * m4/group-member.m4: Likewise.
22707         * m4/host-os.m4: Likewise.
22708         * m4/iconv.m4: Likewise.
22709         * m4/iconv_open.m4: Likewise.
22710         * m4/inet_ntop.m4: Likewise.
22711         * m4/inet_pton.m4: Likewise.
22712         * m4/inline.m4: Likewise.
22713         * m4/intldir.m4: Likewise.
22714         * m4/intlmacosx.m4: Likewise.
22715         * m4/intmax.m4: Likewise.
22716         * m4/intmax_t.m4: Likewise.
22717         * m4/inttypes.m4: Likewise.
22718         * m4/inttypes_h.m4: Likewise.
22719         * m4/inttypes-pri.m4: Likewise.
22720         * m4/isapipe.m4: Likewise.
22721         * m4/isnand.m4: Likewise.
22722         * m4/isnanf.m4: Likewise.
22723         * m4/isnanl.m4: Likewise.
22724         * m4/javacomp.m4: Likewise.
22725         * m4/javaexec.m4: Likewise.
22726         * m4/jm-winsz1.m4: Likewise.
22727         * m4/jm-winsz2.m4: Likewise.
22728         * m4/lchown.m4: Likewise.
22729         * m4/lcmessage.m4: Likewise.
22730         * m4/ldexpl.m4: Likewise.
22731         * m4/lib-ld.m4: Likewise.
22732         * m4/lib-link.m4: Likewise.
22733         * m4/libsigsegv.m4: Likewise.
22734         * m4/link-follow.m4: Likewise.
22735         * m4/localcharset.m4: Likewise.
22736         * m4/locale-fr.m4: Likewise.
22737         * m4/locale-ja.m4: Likewise.
22738         * m4/locale-tr.m4: Likewise.
22739         * m4/locale-zh.m4: Likewise.
22740         * m4/lock.m4: Likewise.
22741         * m4/longlong.m4: Likewise.
22742         * m4/ls-mntd-fs.m4: Likewise.
22743         * m4/lstat.m4: Likewise.
22744         * m4/malloc.m4: Likewise.
22745         * m4/mathl.m4: Likewise.
22746         * m4/mbrtowc.m4: Likewise.
22747         * m4/mbstate_t.m4: Likewise.
22748         * m4/mbswidth.m4: Likewise.
22749         * m4/memchr.m4: Likewise.
22750         * m4/memcmp.m4: Likewise.
22751         * m4/memcpy.m4: Likewise.
22752         * m4/memmem.m4: Likewise.
22753         * m4/memmove.m4: Likewise.
22754         * m4/mempcpy.m4: Likewise.
22755         * m4/memrchr.m4: Likewise.
22756         * m4/memset.m4: Likewise.
22757         * m4/minmax.m4: Likewise.
22758         * m4/mkdir-slash.m4: Likewise.
22759         * m4/mkdtemp.m4: Likewise.
22760         * m4/mktime.m4: Likewise.
22761         * m4/mmap-anon.m4: Likewise.
22762         * m4/mountlist.m4: Likewise.
22763         * m4/nanosleep.m4: Likewise.
22764         * m4/nls.m4: Likewise.
22765         * m4/nocrash.m4: Likewise.
22766         * m4/open.m4: Likewise.
22767         * m4/openat.m4: Likewise.
22768         * m4/openmp.m4: Likewise.
22769         * m4/pathmax.m4: Likewise.
22770         * m4/perl.m4: Likewise.
22771         * m4/physmem.m4: Likewise.
22772         * m4/pipe.m4: Likewise.
22773         * m4/po.m4: Likewise.
22774         * m4/poll.m4: Likewise.
22775         * m4/posixtm.m4: Likewise.
22776         * m4/posixver.m4: Likewise.
22777         * m4/printf-frexp.m4: Likewise.
22778         * m4/printf-frexpl.m4: Likewise.
22779         * m4/printf-posix.m4: Likewise.
22780         * m4/printf-posix-rpl.m4: Likewise.
22781         * m4/printf.m4: Likewise.
22782         * m4/progtest.m4: Likewise.
22783         * m4/putenv.m4: Likewise.
22784         * m4/readline.m4: Likewise.
22785         * m4/readlink.m4: Likewise.
22786         * m4/readutmp.m4: Likewise.
22787         * m4/realloc.m4: Likewise.
22788         * m4/regex.m4: Likewise.
22789         * m4/relocatable.m4: Likewise.
22790         * m4/relocatable-lib.m4: Likewise.
22791         * m4/rename-dest-slash.m4: Likewise.
22792         * m4/rename.m4: Likewise.
22793         * m4/rmdir-errno.m4: Likewise.
22794         * m4/rmdir.m4: Likewise.
22795         * m4/roundf.m4: Likewise.
22796         * m4/roundl.m4: Likewise.
22797         * m4/rpmatch.m4: Likewise.
22798         * m4/save-cwd.m4: Likewise.
22799         * m4/selinux-selinux-h.m4: Likewise.
22800         * m4/setenv.m4: Likewise.
22801         * m4/settime.m4: Likewise.
22802         * m4/sig2str.m4: Likewise.
22803         * m4/sig_atomic_t.m4: Likewise.
22804         * m4/signalblocking.m4: Likewise.
22805         * m4/signbit.m4: Likewise.
22806         * m4/sigpipe.m4: Likewise.
22807         * m4/sockets.m4: Likewise.
22808         * m4/sockpfaf.m4: Likewise.
22809         * m4/st_dm_mode.m4: Likewise.
22810         * m4/stat-time.m4: Likewise.
22811         * m4/stdbool.m4: Likewise.
22812         * m4/stdint.m4: Likewise.
22813         * m4/stdint_h.m4: Likewise.
22814         * m4/stpcpy.m4: Likewise.
22815         * m4/stpncpy.m4: Likewise.
22816         * m4/strcase.m4: Likewise.
22817         * m4/strchrnul.m4: Likewise.
22818         * m4/strcspn.m4: Likewise.
22819         * m4/strdup.m4: Likewise.
22820         * m4/strftime.m4: Likewise.
22821         * m4/strndup.m4: Likewise.
22822         * m4/strnlen.m4: Likewise.
22823         * m4/strpbrk.m4: Likewise.
22824         * m4/strptime.m4: Likewise.
22825         * m4/strsep.m4: Likewise.
22826         * m4/strtod.m4: Likewise.
22827         * m4/strtoimax.m4: Likewise.
22828         * m4/strtok_r.m4: Likewise.
22829         * m4/strtol.m4: Likewise.
22830         * m4/strtoll.m4: Likewise.
22831         * m4/strtoul.m4: Likewise.
22832         * m4/strtoull.m4: Likewise.
22833         * m4/strtoumax.m4: Likewise.
22834         * m4/strverscmp.m4: Likewise.
22835         * m4/threadlib.m4: Likewise.
22836         * m4/timegm.m4: Likewise.
22837         * m4/tm_gmtoff.m4: Likewise.
22838         * m4/tmpdir.m4: Likewise.
22839         * m4/tmpfile.m4: Likewise.
22840         * m4/tzset.m4: Likewise.
22841         * m4/uintmax_t.m4: Likewise.
22842         * m4/unlinkdir.m4: Likewise.
22843         * m4/unlocked-io.m4: Likewise.
22844         * m4/uptime.m4: Likewise.
22845         * m4/userspec.m4: Likewise.
22846         * m4/utimbuf.m4: Likewise.
22847         * m4/utime.m4: Likewise.
22848         * m4/utimes-null.m4: Likewise.
22849         * m4/utimes.m4: Likewise.
22850         * m4/vararrays.m4: Likewise.
22851         * m4/vasnprintf.m4: Likewise.
22852         * m4/vfprintf-posix.m4: Likewise.
22853         * m4/vprintf-posix.m4: Likewise.
22854         * m4/wait-process.m4: Likewise.
22855         * m4/wchar_t.m4: Likewise.
22856         * m4/wint_t.m4: Likewise.
22857         * m4/write-any-file.m4: Likewise.
22858         * m4/yield.m4: Likewise.
22859
22860 2009-01-13  Bruno Haible  <bruno@clisp.org>
22861
22862         Avoid test-copy-file.sh failures when ACL support insufficient.
22863         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
22864         TESTS_ENVIRONMENT.
22865         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
22866         Reported by Jim Meyering.
22867
22868 2009-01-13  Bruno Haible  <bruno@clisp.org>
22869
22870         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
22871         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
22872         * modules/unistdio/u8-printf-parse (Files): Likewise.
22873         * modules/unistdio/u32-printf-parse (Files): Likewise.
22874         * modules/unistdio/ulc-printf-parse (Files): Likewise.
22875
22876 2009-01-13  Simon Josefsson  <simon@josefsson.org>
22877
22878         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
22879         and m4/inttypes_h.m4 too.
22880
22881 2009-01-12  Eric Blake  <ebb9@byu.net>
22882
22883         tests: IRIX 6.2 cc can't compile -0.0 into .data
22884         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
22885         rather than at compile-time.
22886         * tests/test-floorl.c (minus_zero): Likewise.
22887         * tests/test-frexpl.c (minus_zero): Likewise.
22888         * tests/test-isnan.c (minus_zerol): Likewise.
22889         * tests/test-isnanl.h (minus_zero): Likewise.
22890         * tests/test-ldexpl.c (minus_zero): Likewise.
22891         * tests/test-roundl.c (minus_zero): Likewise.
22892         * tests/test-signbit.c (minus_zerol): Likewise.
22893         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
22894         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
22895         * tests/test-truncl.c (minus_zero): Likewise.
22896         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
22897         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
22898         Reported by Tom G. Christensen and Nelson H. F. Beebe.
22899
22900 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22901
22902         regex: fix glibc bug 9697
22903         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
22904         handling.
22905
22906 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22907
22908         regex: fix glibc bug 697
22909         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
22910         being NULL also if there are no backreferences.
22911
22912 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
22913
22914         regex: merge glibc changes
22915         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
22916         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
22917         re_string_skip_chars, re_string_reconstruct): Likewise.
22918         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
22919
22920 2009-01-07  Jim Meyering  <meyering@redhat.com>
22921
22922         poll: filter through cppi
22923         * lib/poll.c: Indent cpp directives to reflect nesting.
22924
22925 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
22926
22927         poll: don't return uninitialized
22928         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
22929
22930 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
22931
22932         avoid compile failure on AIX 6.1
22933         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
22934         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
22935
22936 2009-01-04  Jim Meyering  <meyering@redhat.com>
22937
22938         remove duplicate inclusion of <stdio.h>
22939         * tests/test-fprintf-posix.c: Likewise.
22940         * tests/test-printf-posix.c: Likewise.
22941         * tests/test-snprintf-posix.c: Likewise.
22942         * tests/test-sprintf-posix.c: Likewise.
22943         * tests/test-vasprintf-posix.c: Likewise.
22944         * tests/test-vfprintf-posix.c: Likewise.
22945         * tests/test-vprintf-posix.c: Likewise.
22946         * tests/test-vsnprintf-posix.c: Likewise.
22947         * tests/test-vsprintf-posix.c: Likewise.
22948
22949 2009-01-03  Jim Meyering  <meyering@redhat.com>
22950
22951         gnulib-tool: fix sed-based filtering
22952         * gnulib-tool (func_filter_filelist): Remove extra backslash
22953         in sed_fff_filter definition.
22954
22955 2009-01-02  Jim Meyering  <meyering@redhat.com>
22956
22957         strftime: avoid compilation failure on Solaris 2.6
22958         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
22959         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
22960         Don't #define mbrlen or mbsinit, since now they're guaranteed to
22961         be available.  Reported by Tom G. Christensen.  Details in
22962         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
22963
22964 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22965             Bruno Haible  <bruno@clisp.org>
22966
22967         Speed up gnulib-tool by doing more string processing through shell
22968         built-ins.
22969         * gnulib-tool (fast_func_append): New variable.
22970         (func_remove_prefix, func_remove_suffix): New functions.
22971         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
22972         (func_filter_filelist): New function.
22973         (func_get_dependencies): Use func_remove_suffix instead of sed.
22974         (func_get_automake_snippet): Use func_filter_filelist instead of a
22975         subshell and sed invocation.
22976
22977 2009-01-01  Bruno Haible  <bruno@clisp.org>
22978
22979         Fix a security bug.
22980         * gnulib-tool (func_import, import, update): Don't allow the characters
22981         '"', '$', '`', '\' in macro arguments that become part of commands that
22982         are evaluated.
22983
22984 2009-01-01  Bruno Haible  <bruno@clisp.org>
22985
22986         * gnulib-tool (func_reset_sigpipe): Add more comments.
22987
22988 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22989
22990         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
22991         func_emit_tests_Makefile_am, func_import): Abort loops early if we
22992         already know the answer.
22993
22994 2009-01-01  Jim Meyering  <meyering@redhat.com>
22995
22996         * lib/version-etc.c (version_etc_va): Update copyright year.
22997
22998 2008-12-30  Bruno Haible  <bruno@clisp.org>
22999
23000         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
23001         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
23002         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
23003
23004 2008-12-29  Eric Blake  <ebb9@byu.net>
23005
23006         multiarch: avoid autoconf AC_REQUIRE bug
23007         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
23008         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
23009         2.63 and older.
23010         Reported by Bruno Haible, and analyzed in
23011         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
23012
23013 2008-12-29  Bruno Haible  <bruno@clisp.org>
23014
23015         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
23016         files in subdirectories correctly.
23017         Reported by Ralf Wildenhues.
23018
23019 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23020
23021         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
23022         rather than 'join FILE -', for Solaris join.
23023
23024 2008-12-29  Bruno Haible  <bruno@clisp.org>
23025
23026         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
23027         quoting.
23028         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23029         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23030         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23031         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
23032         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23033         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23034         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23035         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23036         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23037         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23038         * m4/nls.m4 (AM_NLS): Likewise.
23039         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
23040         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23041         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23042         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23043         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23044         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23045         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
23046         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23047         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23048         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23049         * m4/xsize.m4 (gl_XSIZE): Likewise.
23050         Suggested by Jim Meyering.
23051
23052 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23053
23054         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
23055         * lib/parse-duration.c: use a switch instead of cascading if's.
23056
23057 2008-12-29  Eric Blake  <ebb9@byu.net>
23058
23059         wchar.h: supply WEOF on Irix 5.3
23060         * lib/wchar.in.h (wint_t): Also supply WEOF.
23061         * lib/wctype.in.h (wint_t): Likewise.
23062         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
23063         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
23064         Reported by Tom G. Christensen.
23065
23066 2008-12-26  Bruno Haible  <bruno@clisp.org>
23067
23068         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
23069         i486, i586, i686.
23070
23071 2008-12-26  Bruno Haible  <bruno@clisp.org>
23072
23073         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
23074
23075 2008-12-26  Bruno Haible  <bruno@clisp.org>
23076
23077         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
23078         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
23079         not __STDC_CONSTANT_MACROS.
23080         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23081
23082 2008-12-25  Bruno Haible  <bruno@clisp.org>
23083
23084         Add support for universal builds to vasnprintf.
23085         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
23086         universal builds, guess no.
23087         * modules/vasnprintf-posix (Depends-on): Add multiarch.
23088         * modules/vasprintf-posix (Depends-on): Likewise.
23089         * modules/fprintf-posix (Depends-on): Likewise.
23090         * modules/vfprintf-posix (Depends-on): Likewise.
23091         * modules/snprintf-posix (Depends-on): Likewise.
23092         * modules/vsnprintf-posix (Depends-on): Likewise.
23093         * modules/sprintf-posix (Depends-on): Likewise.
23094         * modules/vsprintf-posix (Depends-on): Likewise.
23095         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23096         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23097         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23098         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23099         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23100         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23101         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23102
23103         Add support for universal builds to <inttypes.h>.
23104         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
23105         _SCNu64_PREFIX): In Apple
23106         universal builds, define directly, using _LP64.
23107         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
23108         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
23109         * modules/inttypes (Depends-on): Add multiarch.
23110         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23111
23112         Add support for universal builds to <stdint.h>.
23113         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
23114         universal builds, define directly, using _LP64.
23115         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
23116         Apple universal builds, don't test for the size and suffix of ptrdiff_t
23117         and size_t.
23118         * modules/stdint (Depends-on): Add multiarch.
23119         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23120
23121         New module 'multiarch'.
23122         * modules/multiarch: New file.
23123         * m4/multiarch.m4: New file.
23124
23125 2008-12-25  Bruno Haible  <bruno@clisp.org>
23126
23127         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
23128
23129 2008-12-25  Bruno Haible  <bruno@clisp.org>
23130
23131         * modules/btowc (License): Relicense under LGPLv2+.
23132         * modules/mbsinit (License): Likewise.
23133         * modules/mbrtowc (License): Likewise.
23134         * modules/wcrtomb (License): Likewise.
23135         * modules/streq (License): Likewise.
23136         Reported by David Lutterkort <lutter@redhat.com>.
23137
23138 2008-12-23  Bruno Haible  <bruno@clisp.org>
23139
23140         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
23141
23142 2008-12-23  Bruno Haible  <bruno@clisp.org>
23143
23144         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
23145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
23146         GETADDRINFO_LIB, not in LIBS.
23147         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
23148         * modules/canon-host (Link): Likewise.
23149         * NEWS: Mention the change.
23150         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
23151         GETADDRINFO_LIB.
23152
23153 2008-12-22  Bruno Haible  <bruno@clisp.org>
23154
23155         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
23156         * doc/posix-functions/iswalpha_l.texi: Likewise.
23157         * doc/posix-functions/iswblank_l.texi: Likewise.
23158         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23159         * doc/posix-functions/iswctype_l.texi: Likewise.
23160         * doc/posix-functions/iswdigit_l.texi: Likewise.
23161         * doc/posix-functions/iswgraph_l.texi: Likewise.
23162         * doc/posix-functions/iswlower_l.texi: Likewise.
23163         * doc/posix-functions/iswprint_l.texi: Likewise.
23164         * doc/posix-functions/iswpunct_l.texi: Likewise.
23165         * doc/posix-functions/iswspace_l.texi: Likewise.
23166         * doc/posix-functions/iswupper_l.texi: Likewise.
23167         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23168         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23169         * doc/posix-functions/open_wmemstream.texi: Likewise.
23170         * doc/posix-functions/swscanf.texi: Likewise.
23171         * doc/posix-functions/towctrans_l.texi: Likewise.
23172         * doc/posix-functions/towlower.texi: Likewise.
23173         * doc/posix-functions/towlower_l.texi: Likewise.
23174         * doc/posix-functions/towupper.texi: Likewise.
23175         * doc/posix-functions/towupper_l.texi: Likewise.
23176         * doc/posix-functions/vfwprintf.texi: Likewise.
23177         * doc/posix-functions/vfwscanf.texi: Likewise.
23178         * doc/posix-functions/vswscanf.texi: Likewise.
23179         * doc/posix-functions/vwprintf.texi: Likewise.
23180         * doc/posix-functions/vwscanf.texi: Likewise.
23181         * doc/posix-functions/wcpcpy.texi: Likewise.
23182         * doc/posix-functions/wcpncpy.texi: Likewise.
23183         * doc/posix-functions/wcscasecmp.texi: Likewise.
23184         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23185         * doc/posix-functions/wcscoll_l.texi: Likewise.
23186         * doc/posix-functions/wcsdup.texi: Likewise.
23187         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23188         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23189         * doc/posix-functions/wcsnlen.texi: Likewise.
23190         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23191         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23192         * doc/posix-functions/wctrans_l.texi: Likewise.
23193         * doc/posix-functions/wctype_l.texi: Likewise.
23194         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23195         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23196         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23197         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23198         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23199         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23200         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23201         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23202         * doc/glibc-functions/wcschrnul.texi: Likewise.
23203         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23204         * doc/glibc-functions/wcstod_l.texi: Likewise.
23205         * doc/glibc-functions/wcstof_l.texi: Likewise.
23206         * doc/glibc-functions/wcstol_l.texi: Likewise.
23207         * doc/glibc-functions/wcstold_l.texi: Likewise.
23208         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23209         * doc/glibc-functions/wcstoq.texi: Likewise.
23210         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23211         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23212         * doc/glibc-functions/wcstouq.texi: Likewise.
23213         * doc/glibc-functions/wmempcpy.texi: Likewise.
23214
23215 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23216             Eric Blake  <ebb9@byu.net>
23217             Paolo Bonzini  <bonzini@gnu.org>
23218             Bruno Haible  <bruno@clisp.org>
23219
23220         Make c-stack work on Haiku.
23221         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23222         (c_stack_action): Use SA_ONSTACK flag.
23223
23224 2008-12-22  Bruno Haible  <bruno@clisp.org>
23225
23226         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23227
23228 2008-12-22  Bruno Haible  <bruno@clisp.org>
23229
23230         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23231         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23232         being overridden.
23233         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23234         New macros.
23235         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23237         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23238         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23239
23240 2008-12-22  Bruno Haible  <bruno@clisp.org>
23241
23242         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23243         from test code.
23244
23245 2008-12-22  Eric Blake  <ebb9@byu.net>
23246
23247         Avoid gcc warnings on cygwin.
23248         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23249         Avoid unused variable.
23250         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23251         Likewise.
23252
23253 2008-12-22  Bruno Haible  <bruno@clisp.org>
23254
23255         Remove HAVE_MBRTOWC conditionals.
23256         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23257         (mbscasecmp): Assume mbrtowc function.
23258         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23259         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23260         * lib/mbschr.c: Include mbuiter.h unconditionally.
23261         (mbschr): Assume mbrtowc function.
23262         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23263         (mbscspn): Assume mbrtowc function.
23264         * lib/mbslen.c: Include mbuiter.h unconditionally.
23265         (mbslen): Assume mbrtowc function.
23266         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23267         (mbsncasecmp): Assume mbrtowc function.
23268         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23269         (mbsnlen): Assume mbrtowc function.
23270         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23271         (mbspbrk): Assume mbrtowc function.
23272         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23273         (mbspcasecmp): Assume mbrtowc function.
23274         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23275         (mbsrchr): Assume mbrtowc function.
23276         * lib/mbssep.c: Include mbuiter.h unconditionally.
23277         (mbssep): Assume mbrtowc function.
23278         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23279         (mbsspn): Assume mbrtowc function.
23280         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23281         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23282         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23283         (mbstok_r): Assume mbrtowc function.
23284         * lib/propername.c: Include mbuiter.h unconditionally.
23285         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23286         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23287         (trim2): Assume mbrtowc function.
23288         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23289         (mbsnwidth): Assume mbrtowc function.
23290         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23291         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23292         fallback definitions.
23293         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23294
23295 2008-12-22  Bruno Haible  <bruno@clisp.org>
23296
23297         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23298
23299 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23300
23301         * modules/regex: Request emulations for the mb*/wc* functions we need.
23302         * m4/regex.m4: Don't look for those functions here.
23303         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23304
23305 2008-12-22  Bruno Haible  <bruno@clisp.org>
23306
23307         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23308
23309 2008-12-21  Bruno Haible  <bruno@clisp.org>
23310
23311         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23312         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23313         (Include): Remove conditionalization.
23314         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23315         (Include): Remove conditionalization.
23316         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23317         (Include): Remove conditionalization.
23318         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23319         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23320         * NEWS: Mention the change.
23321         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23322         via Sergey Poznyakoff <gray@gnu.org.ua>.
23323
23324 2008-12-21  Bruno Haible  <bruno@clisp.org>
23325
23326         * MODULES.html.sh (Extended multibyte and wide character utilities
23327         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23328         wcrtomb, wcsrtombs.
23329         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23330         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23331         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23332         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23333
23334 2008-12-21  Bruno Haible  <bruno@clisp.org>
23335
23336         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23337
23338 2008-12-21  Bruno Haible  <bruno@clisp.org>
23339
23340         * modules/wcsnrtombs-tests: New file.
23341         * tests/test-wcsnrtombs1.sh: New file.
23342         * tests/test-wcsnrtombs2.sh: New file.
23343         * tests/test-wcsnrtombs3.sh: New file.
23344         * tests/test-wcsnrtombs4.sh: New file.
23345         * tests/test-wcsnrtombs.c: New file.
23346
23347         New module 'wcsnrtombs'.
23348         * lib/wchar.in.h (wcsnrtombs): New declaration.
23349         * lib/wcsnrtombs.c: New file.
23350         * lib/wcsrtombs-state.c: New file.
23351         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23352         (internal_state): Remove variable.
23353         * m4/wcsnrtombs.m4: New file.
23354         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23355         compilation units.
23356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23357         HAVE_WCSNRTOMBS.
23358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23359         HAVE_WCSNRTOMBS.
23360         * modules/wcsnrtombs: New file.
23361         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23362         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23363
23364 2008-12-21  Bruno Haible  <bruno@clisp.org>
23365
23366         * modules/wcsrtombs-tests: New file.
23367         * tests/test-wcsrtombs1.sh: New file.
23368         * tests/test-wcsrtombs2.sh: New file.
23369         * tests/test-wcsrtombs3.sh: New file.
23370         * tests/test-wcsrtombs4.sh: New file.
23371         * tests/test-wcsrtombs.c: New file.
23372
23373         New module 'wcsrtombs'.
23374         * lib/wchar.in.h (wcsrtombs): New declaration.
23375         * lib/wcsrtombs.c: New file.
23376         * m4/wcsrtombs.m4: New file.
23377         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23378         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23380         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23381         * modules/wcsrtombs: New file.
23382         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23383         bugs.
23384
23385 2008-12-21  Bruno Haible  <bruno@clisp.org>
23386
23387         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23388         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23389         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23390         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23391         if not correct.
23392         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23393         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23394         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23395         m4/locale-zh.m4, m4/codeset.m4.
23396         * doc/posix-functions/wcrtomb.texi: Document the bug.
23397
23398 2008-12-21  Bruno Haible  <bruno@clisp.org>
23399
23400         Work around a btowc() bug on IRIX 6.5.
23401         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23402         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23403         REPLACE_WTOBC if not.
23404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23405         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23406         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23407
23408 2008-12-21  Bruno Haible  <bruno@clisp.org>
23409
23410         * modules/wcrtomb-tests: New file.
23411         * tests/test-wcrtomb.sh: New file.
23412         * tests/test-wcrtomb.c: New file.
23413
23414         New module 'wcrtomb'.
23415         * lib/wchar.in.h (wcrtomb): New declaration.
23416         * lib/wcrtomb.c: New file.
23417         * m4/wcrtomb.m4: New file.
23418         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23419         HAVE_WCRTOMB.
23420         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23421         HAVE_WCRTOMB.
23422         * modules/wcrtomb: New file.
23423         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23424
23425 2008-12-21  Bruno Haible  <bruno@clisp.org>
23426
23427         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23428         * modules/mbsrtowcs (Files): Likewise.
23429         * modules/wctob (Files): Likewise.
23430         * modules/c-strcase-tests (Files): Likewise.
23431         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23432         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23433         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23434         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23435         * modules/vasnprintf-posix-tests (Files): Likewise.
23436
23437 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23438
23439         gitlog-to-changelog: pass all command-line arguments to git-log
23440         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23441         it is sometimes convenient to filter the commits in various ways.
23442         gitlog-to-changelog only allows --since to specify a start date,
23443         but git-log itself supports many other filtering mechanisms.
23444         At the moment, I want to filter by branch name.  Rather than
23445         adding a --branch option to gitlog-to-changelog, it seems more
23446         flexible to simply pass all options directly to git-log and let
23447         git do the work.  Notice that this effectively makes --since a
23448         redundant option for gitlog-to-changelog, but removing it would
23449         require current usage to change since calls would then require
23450         an additional '--'.
23451
23452 2008-12-21  Bruno Haible  <bruno@clisp.org>
23453
23454         * modules/mbsnrtowcs-tests: New file.
23455         * tests/test-mbsnrtowcs1.sh: New file.
23456         * tests/test-mbsnrtowcs2.sh: New file.
23457         * tests/test-mbsnrtowcs3.sh: New file.
23458         * tests/test-mbsnrtowcs4.sh: New file.
23459         * tests/test-mbsnrtowcs.c: New file.
23460
23461         New module 'mbsnrtowcs'.
23462         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23463         * lib/mbsnrtowcs.c: New file.
23464         * lib/mbsrtowcs-state.c: New file.
23465         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23466         (internal_state): Remove variable.
23467         * m4/mbsnrtowcs.m4: New file.
23468         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23469         compilation units.
23470         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23471         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23472         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23473         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23474         * modules/mbsnrtowcs: New file.
23475         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23476         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23477         portability problem.
23478
23479 2008-12-21  Bruno Haible  <bruno@clisp.org>
23480
23481         Work around mbsrtowcs bug.
23482         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23483         (gl_FUNC_MBSRTOWCS): Invoke it.
23484         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23485         m4/locale-zh.m4.
23486         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23487
23488 2008-12-21  Bruno Haible  <bruno@clisp.org>
23489
23490         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23491
23492 2008-12-21  Bruno Haible  <bruno@clisp.org>
23493
23494         Update doc for AIX.
23495         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23496         16-bit wchar_t type.
23497         * doc/posix-functions/btowc.texi: Likewise.
23498         * doc/posix-functions/fgetwc.texi: Likewise.
23499         * doc/posix-functions/fgetws.texi: Likewise.
23500         * doc/posix-functions/fputwc.texi: Likewise.
23501         * doc/posix-functions/fputws.texi: Likewise.
23502         * doc/posix-functions/fwide.texi: Likewise.
23503         * doc/posix-functions/fwprintf.texi: Likewise.
23504         * doc/posix-functions/fwscanf.texi: Likewise.
23505         * doc/posix-functions/getwchar.texi: Likewise.
23506         * doc/posix-functions/getwc.texi: Likewise.
23507         * doc/posix-functions/iswalnum.texi: Likewise.
23508         * doc/posix-functions/iswalpha.texi: Likewise.
23509         * doc/posix-functions/iswblank.texi: Likewise.
23510         * doc/posix-functions/iswcntrl.texi: Likewise.
23511         * doc/posix-functions/iswctype.texi: Likewise.
23512         * doc/posix-functions/iswdigit.texi: Likewise.
23513         * doc/posix-functions/iswgraph.texi: Likewise.
23514         * doc/posix-functions/iswlower.texi: Likewise.
23515         * doc/posix-functions/iswprint.texi: Likewise.
23516         * doc/posix-functions/iswpunct.texi: Likewise.
23517         * doc/posix-functions/iswspace.texi: Likewise.
23518         * doc/posix-functions/iswupper.texi: Likewise.
23519         * doc/posix-functions/iswxdigit.texi: Likewise.
23520         * doc/posix-functions/mbrtowc.texi: Likewise.
23521         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23522         * doc/posix-functions/mbstowcs.texi: Likewise.
23523         * doc/posix-functions/mbtowc.texi: Likewise.
23524         * doc/posix-functions/putwchar.texi: Likewise.
23525         * doc/posix-functions/putwc.texi: Likewise.
23526         * doc/posix-functions/swprintf.texi: Likewise.
23527         * doc/posix-functions/tolower.texi: Likewise.
23528         * doc/posix-functions/toupper.texi: Likewise.
23529         * doc/posix-functions/towctrans.texi: Likewise.
23530         * doc/posix-functions/ungetwc.texi: Likewise.
23531         * doc/posix-functions/vswprintf.texi: Likewise.
23532         * doc/posix-functions/wcrtomb.texi: Likewise.
23533         * doc/posix-functions/wcscat.texi: Likewise.
23534         * doc/posix-functions/wcschr.texi: Likewise.
23535         * doc/posix-functions/wcscmp.texi: Likewise.
23536         * doc/posix-functions/wcscoll.texi: Likewise.
23537         * doc/posix-functions/wcscpy.texi: Likewise.
23538         * doc/posix-functions/wcscspn.texi: Likewise.
23539         * doc/posix-functions/wcsftime.texi: Likewise.
23540         * doc/posix-functions/wcslen.texi: Likewise.
23541         * doc/posix-functions/wcsncat.texi: Likewise.
23542         * doc/posix-functions/wcsncmp.texi: Likewise.
23543         * doc/posix-functions/wcsncpy.texi: Likewise.
23544         * doc/posix-functions/wcspbrk.texi: Likewise.
23545         * doc/posix-functions/wcsrchr.texi: Likewise.
23546         * doc/posix-functions/wcsrtombs.texi: Likewise.
23547         * doc/posix-functions/wcsspn.texi: Likewise.
23548         * doc/posix-functions/wcsstr.texi: Likewise.
23549         * doc/posix-functions/wcstod.texi: Likewise.
23550         * doc/posix-functions/wcstof.texi: Likewise.
23551         * doc/posix-functions/wcstoimax.texi: Likewise.
23552         * doc/posix-functions/wcstok.texi: Likewise.
23553         * doc/posix-functions/wcstold.texi: Likewise.
23554         * doc/posix-functions/wcstoll.texi: Likewise.
23555         * doc/posix-functions/wcstol.texi: Likewise.
23556         * doc/posix-functions/wcstombs.texi: Likewise.
23557         * doc/posix-functions/wcstoull.texi: Likewise.
23558         * doc/posix-functions/wcstoul.texi: Likewise.
23559         * doc/posix-functions/wcstoumax.texi: Likewise.
23560         * doc/posix-functions/wcswidth.texi: Likewise.
23561         * doc/posix-functions/wcsxfrm.texi: Likewise.
23562         * doc/posix-functions/wctob.texi: Likewise.
23563         * doc/posix-functions/wctomb.texi: Likewise.
23564         * doc/posix-functions/wctrans.texi: Likewise.
23565         * doc/posix-functions/wctype.texi: Likewise.
23566         * doc/posix-functions/wcwidth.texi: Likewise.
23567         * doc/posix-functions/wmemchr.texi: Likewise.
23568         * doc/posix-functions/wmemcmp.texi: Likewise.
23569         * doc/posix-functions/wmemcpy.texi: Likewise.
23570         * doc/posix-functions/wmemmove.texi: Likewise.
23571         * doc/posix-functions/wmemset.texi: Likewise.
23572         * doc/posix-functions/wprintf.texi: Likewise.
23573         * doc/posix-functions/wscanf.texi: Likewise.
23574
23575 2008-12-21  Bruno Haible  <bruno@clisp.org>
23576
23577         Update doc for HP-UX 11.11.
23578         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23579         in HP-UX version 11.00, not in all versions of HP-UX 11.
23580         * doc/posix-functions/fwide.texi: Likewise.
23581         * doc/posix-functions/fwprintf.texi: Likewise.
23582         * doc/posix-functions/fwscanf.texi: Likewise.
23583         * doc/posix-functions/inet_ntop.texi: Likewise.
23584         * doc/posix-functions/inet_pton.texi: Likewise.
23585         * doc/posix-functions/mbrlen.texi: Likewise.
23586         * doc/posix-functions/mbrtowc.texi: Likewise.
23587         * doc/posix-functions/mbsinit.texi: Likewise.
23588         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23589         * doc/posix-functions/swprintf.texi: Likewise.
23590         * doc/posix-functions/swscanf.texi: Likewise.
23591         * doc/posix-functions/towctrans.texi: Likewise.
23592         * doc/posix-functions/vfwprintf.texi: Likewise.
23593         * doc/posix-functions/vswprintf.texi: Likewise.
23594         * doc/posix-functions/vwprintf.texi: Likewise.
23595         * doc/posix-functions/wcrtomb.texi: Likewise.
23596         * doc/posix-functions/wcsrtombs.texi: Likewise.
23597         * doc/posix-functions/wcsstr.texi: Likewise.
23598         * doc/posix-functions/wctob.texi: Likewise.
23599         * doc/posix-functions/wctrans.texi: Likewise.
23600         * doc/posix-functions/wmemchr.texi: Likewise.
23601         * doc/posix-functions/wmemcmp.texi: Likewise.
23602         * doc/posix-functions/wmemcpy.texi: Likewise.
23603         * doc/posix-functions/wmemmove.texi: Likewise.
23604         * doc/posix-functions/wmemset.texi: Likewise.
23605         * doc/posix-functions/wprintf.texi: Likewise.
23606         * doc/posix-functions/wscanf.texi: Likewise.
23607
23608 2008-12-21  Bruno Haible  <bruno@clisp.org>
23609
23610         Work around a portability problem.
23611         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23612         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23613
23614 2008-12-20  Bruno Haible  <bruno@clisp.org>
23615
23616         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23617         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23618         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23620         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23621
23622         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23623         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23624         set.
23625         (GNULIB_defined_mbstate_t): New macro.
23626         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23627         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23628         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23629         reuses the system's mbrtowc function but works around the bugs.
23630         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23631         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23632         macros.
23633         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23634         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23635         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23636         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23637         REPLACE_MBSINIT if mbsinit needs to be overridden.
23638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23639         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23640         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23641         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23642         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23643         m4/locale-zh.m4.
23644         (Depends): Add mbsinit.
23645         * modules/mbsinit (Depends): Add mbrtowc.
23646         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23647
23648 2008-12-20  Bruno Haible  <bruno@clisp.org>
23649
23650         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23651         so that there are no conversion errors on AIX.
23652         * tests/test-mbsrtowcs.c (main): LIkewise.
23653
23654 2008-12-20  Bruno Haible  <bruno@clisp.org>
23655
23656         Work around wctob bug on Solaris <= 9.
23657         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23658         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23660         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23661         * modules/wctob (Files): Add m4/locale-fr.m4.
23662         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23663
23664 2008-12-20  Bruno Haible  <bruno@clisp.org>
23665
23666         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23667         /dev/null.
23668         * tests/test-select-in.sh: Likewise.
23669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23670
23671 2008-12-20  Bruno Haible  <bruno@clisp.org>
23672
23673         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23674         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23675         Cygwin 1.5.x.
23676
23677 2008-12-20  Bruno Haible  <bruno@clisp.org>
23678
23679         Ensure mbstate_t is defined on HP-UX 11.11.
23680         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23681         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23682         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23683         AC_USE_SYSTEM_EXTENSIONS.
23684         * modules/fnmatch (Depends-on): Add extensions.
23685         * modules/mbrlen (Depends-on): Likewise.
23686         * modules/mbrtowc (Depends-on): Likewise.
23687         * modules/mbsinit (Depends-on): Likewise.
23688         * modules/mbsrtowcs (Depends-on): Likewise.
23689         * modules/mbswidth (Depends-on): Likewise.
23690         * modules/quotearg (Depends-on): Likewise.
23691         * modules/strftime (Depends-on): Likewise.
23692
23693 2008-12-20  Bruno Haible  <bruno@clisp.org>
23694
23695         Ensure wctob is declared on IRIX 6.5.
23696         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23697         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23698         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23700         of HAVE_WCTOB.
23701         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23702         HAVE_WCTOB.
23703         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23704
23705 2008-12-19  Bruno Haible  <bruno@clisp.org>
23706
23707         * modules/mbsrtowcs-tests: New file.
23708         * tests/test-mbsrtowcs1.sh: New file.
23709         * tests/test-mbsrtowcs2.sh: New file.
23710         * tests/test-mbsrtowcs3.sh: New file.
23711         * tests/test-mbsrtowcs4.sh: New file.
23712         * tests/test-mbsrtowcs.c: New file.
23713
23714         New module 'mbsrtowcs'.
23715         * lib/wchar.in.h (mbsrtowcs): New declaration.
23716         * lib/mbsrtowcs.c: New file.
23717         * m4/mbsrtowcs.m4: New file.
23718         * modules/mbsrtowcs: New file.
23719         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23720         HAVE_MBSRTOWCS.
23721         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23722         HAVE_MBSRTOWCS.
23723         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23724
23725 2008-12-19  Bruno Haible  <bruno@clisp.org>
23726
23727         New module 'mbrlen'.
23728         * lib/wchar.in.h (mbrlen): New declaration.
23729         * lib/mbrlen.c: New file.
23730         * m4/mbrlen.m4: New file.
23731         * modules/mbrlen: New file.
23732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23733         HAVE_MBRLEN.
23734         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23735         HAVE_MBRLEN.
23736         * doc/posix-functions/mbrlen.texi: Document the new module.
23737
23738 2008-12-19  Bruno Haible  <bruno@clisp.org>
23739
23740         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23741         * modules/mbrtowc (Depends-on): Add verify.
23742         Suggested by Paul Eggert.
23743
23744 2008-12-18  Bruno Haible  <bruno@clisp.org>
23745
23746         * modules/mbsinit-tests: New file.
23747         * tests/test-mbsinit.sh: New file.
23748         * tests/test-mbsinit.c: New file.
23749
23750 2008-12-18  Bruno Haible  <bruno@clisp.org>
23751
23752         * modules/mbrtowc-tests: New file.
23753         * tests/test-mbrtowc1.sh: New file.
23754         * tests/test-mbrtowc2.sh: New file.
23755         * tests/test-mbrtowc3.sh: New file.
23756         * tests/test-mbrtowc4.sh: New file.
23757         * tests/test-mbrtowc.c: New file.
23758
23759         New module 'mbrtowc'.
23760         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23761         mbsinit and mbrtowc.
23762         (mbrtowc): New declaration.
23763         * lib/mbrtowc.c: New file.
23764         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23765         * modules/mbrtowc: New file.
23766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23767         HAVE_MBRTOWC.
23768         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23769         HAVE_MBRTOWC.
23770         * doc/posix-functions/mbrtowc.texi: Document the new module.
23771
23772 2008-12-18  Bruno Haible  <bruno@clisp.org>
23773
23774         New module 'wctob'.
23775         * lib/wchar.in.h (wctob): New declaration.
23776         * lib/wctob.c: New file.
23777         * m4/wctob.m4: New file.
23778         * modules/wctob: New file.
23779         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23780         HAVE_WCTOB.
23781         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23782         * doc/posix-functions/wctob.texi: Document the new module.
23783
23784 2008-12-18  Bruno Haible  <bruno@clisp.org>
23785
23786         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23787         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23788
23789 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23790
23791         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23792         G. Christensen" <tgc@jupiterrise.com>.
23793
23794         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23795         G. Christensen" <tgc@jupiterrise.com>.
23796
23797         * lib/flock.c: Need to include string.h.  Reported by "Tom
23798         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23799         <ebb9@byu.net>.
23800
23801 2008-12-18  Bruno Haible  <bruno@clisp.org>
23802
23803         * m4/locale-ja.m4: New file, from GNU gettext.
23804
23805 2008-12-17  Bruno Haible  <bruno@clisp.org>
23806
23807         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23808         Suggested by Eric Blake.
23809
23810 2008-12-17  Bruno Haible  <bruno@clisp.org>
23811
23812         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23813
23814 2008-12-17  Bruno Haible  <bruno@clisp.org>
23815
23816         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23817         * modules/mbsinit (Depends-on): Add verify.
23818         Suggested by Paul Eggert.
23819
23820 2008-12-17  Bruno Haible  <bruno@clisp.org>
23821
23822         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23823         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23824         gl_FUNC_MBRTOWC.
23825         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23826         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23827         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23828         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
23829         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
23830         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
23831         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
23832         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
23833         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
23834         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
23835         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
23836         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
23837         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
23838         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
23839         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
23840         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23841         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
23842         * modules/trim (configure.ac): Likewise.
23843
23844 2008-12-17  Bruno Haible  <bruno@clisp.org>
23845
23846         * modules/btowc-tests: New file.
23847         * tests/test-btowc1.sh: New file.
23848         * tests/test-btowc2.sh: New file.
23849         * tests/test-btowc.c: New file.
23850
23851         New module 'btowc'.
23852         * lib/wchar.in.h (btowc): New declaration.
23853         * lib/btowc.c: New file.
23854         * m4/btowc.m4: New file.
23855         * modules/btowc: New file.
23856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
23857         HAVE_BTOWC.
23858         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
23859         * doc/posix-functions/btowc.texi: Document the new module.
23860
23861 2008-12-17  Bruno Haible  <bruno@clisp.org>
23862
23863         New module 'mbsinit'.
23864         * lib/wchar.in.h (mbsinit): New declaration.
23865         * lib/mbsinit.c: New file.
23866         * m4/mbsinit.m4: New file.
23867         * modules/mbsinit: New file.
23868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
23869         HAVE_MBSINIT.
23870         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
23871         HAVE_MBSINIT.
23872         * doc/posix-functions/mbsinit.texi: Document the new module.
23873
23874 2008-12-16  Bruno Haible  <bruno@clisp.org>
23875
23876         * lib/unistd.in.h: Add comment.
23877         * tests/test-environ.c: Don't include <stdlib.h>.
23878
23879 2008-12-16  Bruno Haible  <bruno@clisp.org>
23880
23881         * lib/parse-duration.h (parse_duration): Document return value
23882         convention.
23883         * lib/parse-duration.c: Include specification header first. Add
23884         comments.
23885         (_): Remove macro.
23886         (parse_year_month_day, parse_hour_minute_second): Move side effects
23887         outside of strchr call.
23888         (parse_non_iso8601): Move side effects outside of isspace call.
23889         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
23890         call.
23891
23892 2008-12-16  Bruno Haible  <bruno@clisp.org>
23893
23894         * tests/test-parse-duration.sh: Produce no output when the test
23895         succeeds.
23896
23897 2008-12-16  Bruno Haible  <bruno@clisp.org>
23898
23899         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
23900         expressions.
23901
23902 2008-12-15  Bruno Haible  <bruno@clisp.org>
23903
23904         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
23905         * doc/glibc-functions/flistxattr.texi: Likewise.
23906         * doc/glibc-functions/fopencookie.texi: Likewise.
23907         * doc/glibc-functions/fremovexattr.texi: Likewise.
23908         * doc/glibc-functions/fsetxattr.texi: Likewise.
23909         * doc/glibc-functions/getxattr.texi: Likewise.
23910         * doc/glibc-functions/lgetxattr.texi: Likewise.
23911         * doc/glibc-functions/listxattr.texi: Likewise.
23912         * doc/glibc-functions/llistxattr.texi: Likewise.
23913         * doc/glibc-functions/lremovexattr.texi: Likewise.
23914         * doc/glibc-functions/lsetxattr.texi: Likewise.
23915         * doc/glibc-functions/removexattr.texi: Likewise.
23916         * doc/glibc-functions/setxattr.texi: Likewise.
23917         * doc/posix-functions/open_memstream.texi: Likewise.
23918
23919 2008-12-15  Eric Blake  <ebb9@byu.net>
23920
23921         Update doc for cygwin 1.7.
23922         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
23923         functions.
23924         * doc/posix-functions/fchmodat.texi: Likewise.
23925         * doc/posix-functions/fchownat.texi: Likewise.
23926         * doc/posix-functions/fdopendir.texi: Likewise.
23927         * doc/posix-functions/fmemopen.texi: Likewise.
23928         * doc/posix-functions/freeaddrinfo.texi: Likewise.
23929         * doc/posix-functions/fstatat.texi: Likewise.
23930         * doc/posix-functions/futimens.texi: Likewise.
23931         * doc/posix-functions/gai_strerror.texi: Likewise.
23932         * doc/posix-functions/getaddrinfo.texi: Likewise.
23933         * doc/posix-functions/getnameinfo.texi: Likewise.
23934         * doc/posix-functions/if_freenameindex.texi: Likewise.
23935         * doc/posix-functions/if_indextoname.texi: Likewise.
23936         * doc/posix-functions/if_nameindex.texi: Likewise.
23937         * doc/posix-functions/if_nametoindex.texi: Likewise.
23938         * doc/posix-functions/insque.texi: Likewise.
23939         * doc/posix-functions/linkat.texi: Likewise.
23940         * doc/posix-functions/llrint.texi: Likewise.
23941         * doc/posix-functions/llrintf.texi: Likewise.
23942         * doc/posix-functions/llrintl.texi: Likewise.
23943         * doc/posix-functions/lockf.texi: Likewise.
23944         * doc/posix-functions/lrintl.texi: Likewise.
23945         * doc/posix-functions/mkdirat.texi: Likewise.
23946         * doc/posix-functions/mkfifoat.texi: Likewise.
23947         * doc/posix-functions/mknodat.texi: Likewise.
23948         * doc/posix-functions/mq_close.texi: Likewise.
23949         * doc/posix-functions/mq_getattr.texi: Likewise.
23950         * doc/posix-functions/mq_notify.texi: Likewise.
23951         * doc/posix-functions/mq_open.texi: Likewise.
23952         * doc/posix-functions/mq_receive.texi: Likewise.
23953         * doc/posix-functions/mq_send.texi: Likewise.
23954         * doc/posix-functions/mq_setattr.texi: Likewise.
23955         * doc/posix-functions/mq_timedreceive.texi: Likewise.
23956         * doc/posix-functions/mq_timedsend.texi: Likewise.
23957         * doc/posix-functions/mq_unlink.texi: Likewise.
23958         * doc/posix-functions/open_memstream.texi: Likewise.
23959         * doc/posix-functions/openat.texi: Likewise.
23960         * doc/posix-functions/posix_fadvise.texi: Likewise.
23961         * doc/posix-functions/posix_fallocate.texi: Likewise.
23962         * doc/posix-functions/posix_madvise.texi: Likewise.
23963         * doc/posix-functions/posix_memalign.texi: Likewise.
23964         * doc/posix-functions/posix_openpt.texi: Likewise.
23965         * doc/posix-functions/readlinkat.texi: Likewise.
23966         * doc/posix-functions/remque.texi: Likewise.
23967         * doc/posix-functions/renameat.texi: Likewise.
23968         * doc/posix-functions/rintl.texi: Likewise.
23969         * doc/posix-functions/sem_unlink.texi: Likewise.
23970         * doc/posix-functions/shm_open.texi: Likewise.
23971         * doc/posix-functions/shm_unlink.texi: Likewise.
23972         * doc/posix-functions/signgam.texi: Likewise.
23973         * doc/posix-functions/sigset.texi: Likewise.
23974         * doc/posix-functions/stpcpy.texi: Likewise.
23975         * doc/posix-functions/stpncpy.texi: Likewise.
23976         * doc/posix-functions/strerror.texi: Likewise.
23977         * doc/posix-functions/strtod.texi: Likewise.
23978         * doc/posix-functions/symlinkat.texi: Likewise.
23979         * doc/posix-functions/unlinkat.texi: Likewise.
23980         * doc/posix-functions/utimensat.texi: Likewise.
23981         * doc/glibc-functions/bindresvport.texi: Likewise.
23982         * doc/glibc-functions/dn_expand.texi: Likewise.
23983         * doc/glibc-functions/exp10.texi: Likewise.
23984         * doc/glibc-functions/exp10f.texi: Likewise.
23985         * doc/glibc-functions/fgetxattr.texi: Likewise.
23986         * doc/glibc-functions/flistxattr.texi: Likewise.
23987         * doc/glibc-functions/fopencookie.texi: Likewise.
23988         * doc/glibc-functions/freeifaddrs.texi: Likewise.
23989         * doc/glibc-functions/fremovexattr.texi: Likewise.
23990         * doc/glibc-functions/fsetxattr.texi: Likewise.
23991         * doc/glibc-functions/getifaddrs.texi: Likewise.
23992         * doc/glibc-functions/getxattr.texi: Likewise.
23993         * doc/glibc-functions/lgetxattr.texi: Likewise.
23994         * doc/glibc-functions/listxattr.texi: Likewise.
23995         * doc/glibc-functions/llistxattr.texi: Likewise.
23996         * doc/glibc-functions/lremovexattr.texi: Likewise.
23997         * doc/glibc-functions/lsetxattr.texi: Likewise.
23998         * doc/glibc-functions/pow10.texi: Likewise.
23999         * doc/glibc-functions/pow10f.texi: Likewise.
24000         * doc/glibc-functions/rcmd_af.texi: Likewise.
24001         * doc/glibc-functions/removexattr.texi: Likewise.
24002         * doc/glibc-functions/res_init.texi: Likewise.
24003         * doc/glibc-functions/res_mkquery.texi: Likewise.
24004         * doc/glibc-functions/res_query.texi: Likewise.
24005         * doc/glibc-functions/res_querydomain.texi: Likewise.
24006         * doc/glibc-functions/res_send.texi: Likewise.
24007         * doc/glibc-functions/rresvport_af.texi: Likewise.
24008         * doc/glibc-functions/setxattr.texi: Likewise.
24009         * doc/glibc-functions/strcasestr.texi: Likewise.
24010
24011 2008-12-15  Bruno Haible  <bruno@clisp.org>
24012
24013         Fix compilation error on OSF/1 4.0.
24014         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
24015         <sys/time.h>, simply delegate to the system header.
24016         Reported by Daniel Richard G. <oss@teragram.com>.
24017
24018 2008-12-15  Bruno Haible  <bruno@clisp.org>
24019
24020         * doc/posix-functions/openat.texi: Mention the 'openat' module.
24021         * doc/posix-functions/fchmodat.texi: Likewise.
24022         * doc/posix-functions/fchownat.texi: Likewise.
24023         * doc/posix-functions/fdopendir.texi: Likewise.
24024         * doc/posix-functions/fstatat.texi: Likewise.
24025         * doc/posix-functions/mkdirat.texi: Likewise.
24026         * doc/posix-functions/unlinkat.texi: Likewise.
24027
24028 2008-12-14  Bruno Haible  <bruno@clisp.org>
24029
24030         Update doc for POSIX:2008.
24031         * doc/posix-functions/faccessat.texi: New file.
24032         * doc/posix-functions/fchmodat.texi: New file.
24033         * doc/posix-functions/fchownat.texi: New file.
24034         * doc/posix-functions/fdopendir.texi: New file.
24035         * doc/posix-functions/fstatat.texi: New file.
24036         * doc/posix-functions/futimens.texi: New file.
24037         * doc/posix-functions/linkat.texi: New file.
24038         * doc/posix-functions/mkdirat.texi: New file.
24039         * doc/posix-functions/mkfifoat.texi: New file.
24040         * doc/posix-functions/mknodat.texi: New file.
24041         * doc/posix-functions/open_wmemstream.texi: New file.
24042         * doc/posix-functions/openat.texi: New file.
24043         * doc/posix-functions/psiginfo.texi: New file.
24044         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
24045         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
24046         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
24047         * doc/posix-functions/readlinkat.texi: New file.
24048         * doc/posix-functions/renameat.texi: New file.
24049         * doc/posix-functions/strerror_l.texi: New file.
24050         * doc/posix-functions/symlinkat.texi: New file.
24051         * doc/posix-functions/unlinkat.texi: New file.
24052         * doc/posix-functions/utimensat.texi: New file.
24053         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24054
24055 2008-12-14  Bruno Haible  <bruno@clisp.org>
24056
24057         Update doc for POSIX:2008.
24058         * doc/posix-functions/alphasort.texi: Renamed from
24059         doc/glibc-functions/alphasort.texi.
24060         * doc/posix-functions/dirfd.texi: Renamed from
24061         doc/glibc-functions/dirfd.texi.
24062         * doc/posix-functions/dprintf.texi: Renamed from
24063         doc/glibc-functions/dprintf.texi.
24064         * doc/posix-functions/duplocale.texi: Renamed from
24065         doc/glibc-functions/duplocale.texi.
24066         * doc/posix-functions/fexecve.texi: Renamed from
24067         doc/glibc-functions/fexecve.texi.
24068         * doc/posix-functions/fmemopen.texi: Renamed from
24069         doc/glibc-functions/fmemopen.texi.
24070         * doc/posix-functions/freelocale.texi: Renamed from
24071         doc/glibc-functions/freelocale.texi.
24072         * doc/posix-functions/getdate_err.texi: Renamed from
24073         doc/glibc-functions/getdate_err.texi.
24074         * doc/posix-functions/isalnum_l.texi: Renamed from
24075         doc/glibc-functions/isalnum_l.texi.
24076         * doc/posix-functions/isalpha_l.texi: Renamed from
24077         doc/glibc-functions/isalpha_l.texi.
24078         * doc/posix-functions/isblank_l.texi: Renamed from
24079         doc/glibc-functions/isblank_l.texi.
24080         * doc/posix-functions/iscntrl_l.texi: Renamed from
24081         doc/glibc-functions/iscntrl_l.texi.
24082         * doc/posix-functions/isdigit_l.texi: Renamed from
24083         doc/glibc-functions/isdigit_l.texi.
24084         * doc/posix-functions/isgraph_l.texi: Renamed from
24085         doc/glibc-functions/isgraph_l.texi.
24086         * doc/posix-functions/islower_l.texi: Renamed from
24087         doc/glibc-functions/islower_l.texi.
24088         * doc/posix-functions/isprint_l.texi: Renamed from
24089         doc/glibc-functions/isprint_l.texi.
24090         * doc/posix-functions/ispunct_l.texi: Renamed from
24091         doc/glibc-functions/ispunct_l.texi.
24092         * doc/posix-functions/isspace_l.texi: Renamed from
24093         doc/glibc-functions/isspace_l.texi.
24094         * doc/posix-functions/isupper_l.texi: Renamed from
24095         doc/glibc-functions/isupper_l.texi.
24096         * doc/posix-functions/iswalnum_l.texi: Renamed from
24097         doc/glibc-functions/iswalnum_l.texi.
24098         * doc/posix-functions/iswalpha_l.texi: Renamed from
24099         doc/glibc-functions/iswalpha_l.texi.
24100         * doc/posix-functions/iswblank_l.texi: Renamed from
24101         doc/glibc-functions/iswblank_l.texi.
24102         * doc/posix-functions/iswcntrl_l.texi: Renamed from
24103         doc/glibc-functions/iswcntrl_l.texi.
24104         * doc/posix-functions/iswctype_l.texi: Renamed from
24105         doc/glibc-functions/iswctype_l.texi.
24106         * doc/posix-functions/iswdigit_l.texi: Renamed from
24107         doc/glibc-functions/iswdigit_l.texi.
24108         * doc/posix-functions/iswgraph_l.texi: Renamed from
24109         doc/glibc-functions/iswgraph_l.texi.
24110         * doc/posix-functions/iswlower_l.texi: Renamed from
24111         doc/glibc-functions/iswlower_l.texi.
24112         * doc/posix-functions/iswprint_l.texi: Renamed from
24113         doc/glibc-functions/iswprint_l.texi.
24114         * doc/posix-functions/iswpunct_l.texi: Renamed from
24115         doc/glibc-functions/iswpunct_l.texi.
24116         * doc/posix-functions/iswspace_l.texi: Renamed from
24117         doc/glibc-functions/iswspace_l.texi.
24118         * doc/posix-functions/iswupper_l.texi: Renamed from
24119         doc/glibc-functions/iswupper_l.texi.
24120         * doc/posix-functions/iswxdigit_l.texi: Renamed from
24121         doc/glibc-functions/iswxdigit_l.texi.
24122         * doc/posix-functions/isxdigit_l.texi: Renamed from
24123         doc/glibc-functions/isxdigit_l.texi.
24124         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
24125         doc/glibc-functions/mbsnrtowcs.texi.
24126         * doc/posix-functions/mkdtemp.texi: Renamed from
24127         doc/glibc-functions/mkdtemp.texi.
24128         * doc/posix-functions/newlocale.texi: Renamed from
24129         doc/glibc-functions/newlocale.texi.
24130         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
24131         doc/glibc-functions/nl_langinfo_l.texi.
24132         * doc/posix-functions/open_memstream.texi: Renamed from
24133         doc/glibc-functions/open_memstream.texi.
24134         * doc/posix-functions/opterr.texi: Renamed from
24135         doc/glibc-functions/opterr.texi.
24136         * doc/posix-functions/optind.texi: Renamed from
24137         doc/glibc-functions/optind.texi.
24138         * doc/posix-functions/optopt.texi: Renamed from
24139         doc/glibc-functions/optopt.texi.
24140         * doc/posix-functions/psignal.texi: Renamed from
24141         doc/glibc-functions/psignal.texi.
24142         * doc/posix-functions/scandir.texi: Renamed from
24143         doc/glibc-functions/scandir.texi.
24144         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
24145         doc/glibc-functions/sched_get_priority_min.texi.
24146         * doc/posix-functions/signgam.texi: Renamed from
24147         doc/glibc-functions/signgam.texi.
24148         * doc/posix-functions/stpcpy.texi: Renamed from
24149         doc/glibc-functions/stpcpy.texi.
24150         * doc/posix-functions/stpncpy.texi: Renamed from
24151         doc/glibc-functions/stpncpy.texi.
24152         * doc/posix-functions/strcasecmp_l.texi: Renamed from
24153         doc/glibc-functions/strcasecmp_l.texi.
24154         * doc/posix-functions/strcoll_l.texi: Renamed from
24155         doc/glibc-functions/strcoll_l.texi.
24156         * doc/posix-functions/strfmon_l.texi: Renamed from
24157         doc/glibc-functions/strfmon_l.texi.
24158         * doc/posix-functions/strftime_l.texi: Renamed from
24159         doc/glibc-functions/strftime_l.texi.
24160         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24161         doc/glibc-functions/strncasecmp_l.texi.
24162         * doc/posix-functions/strndup.texi: Renamed from
24163         doc/glibc-functions/strndup.texi.
24164         * doc/posix-functions/strnlen.texi: Renamed from
24165         doc/glibc-functions/strnlen.texi.
24166         * doc/posix-functions/strsignal.texi: Renamed from
24167         doc/glibc-functions/strsignal.texi.
24168         * doc/posix-functions/strxfrm_l.texi: Renamed from
24169         doc/glibc-functions/strxfrm_l.texi.
24170         * doc/posix-functions/timer_gettime.texi: Renamed from
24171         doc/glibc-functions/timer_gettime.texi.
24172         * doc/posix-functions/tolower_l.texi: Renamed from
24173         doc/glibc-functions/tolower_l.texi.
24174         * doc/posix-functions/toupper_l.texi: Renamed from
24175         doc/glibc-functions/toupper_l.texi.
24176         * doc/posix-functions/towctrans_l.texi: Renamed from
24177         doc/glibc-functions/towctrans_l.texi.
24178         * doc/posix-functions/towlower_l.texi: Renamed from
24179         doc/glibc-functions/towlower_l.texi.
24180         * doc/posix-functions/towupper_l.texi: Renamed from
24181         doc/glibc-functions/towupper_l.texi.
24182         * doc/posix-functions/uselocale.texi: Renamed from
24183         doc/glibc-functions/uselocale.texi.
24184         * doc/posix-functions/vdprintf.texi: Renamed from
24185         doc/glibc-functions/vdprintf.texi.
24186         * doc/posix-functions/wcpcpy.texi:
24187         Renamed from doc/glibc-functions/wcpcpy.texi.
24188         * doc/posix-functions/wcpncpy.texi: Renamed from
24189         doc/glibc-functions/wcpncpy.texi.
24190         * doc/posix-functions/wcscasecmp.texi: Renamed from
24191         doc/glibc-functions/wcscasecmp.texi.
24192         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24193         doc/glibc-functions/wcscasecmp_l.texi.
24194         * doc/posix-functions/wcscoll_l.texi: Renamed from
24195         doc/glibc-functions/wcscoll_l.texi.
24196         * doc/posix-functions/wcsdup.texi: Renamed from
24197         doc/glibc-functions/wcsdup.texi.
24198         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24199         doc/glibc-functions/wcsncasecmp.texi.
24200         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24201         doc/glibc-functions/wcsncasecmp_l.texi.
24202         * doc/posix-functions/wcsnlen.texi: Renamed from
24203         doc/glibc-functions/wcsnlen.texi.
24204         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24205         doc/glibc-functions/wcsnrtombs.texi.
24206         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24207         doc/glibc-functions/wcsxfrm_l.texi.
24208         * doc/posix-functions/wctrans_l.texi: Renamed from
24209         doc/glibc-functions/wctrans_l.texi.
24210         * doc/posix-functions/wctype_l.texi: Renamed from
24211         doc/glibc-functions/wctype_l.texi.
24212         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24213         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24214         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24215         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24216         these subsections.
24217         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24218         Remove sections.
24219
24220 2008-12-14  Bruno Haible  <bruno@clisp.org>
24221
24222         Update doc for POSIX:2008.
24223         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24224
24225 2008-12-14  Bruno Haible  <bruno@clisp.org>
24226
24227         Update doc for POSIX:2008.
24228         * doc/pastposix-functions/bcmp.texi: Renamed from
24229         doc/posix-functions/bcmp.texi.
24230         * doc/pastposix-functions/bcopy.texi: Renamed from
24231         doc/posix-functions/bcopy.texi.
24232         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24233         doc/posix-functions/bsd_signal.texi.
24234         * doc/pastposix-functions/bzero.texi: Renamed from
24235         doc/posix-functions/bzero.texi.
24236         * doc/pastposix-functions/ecvt.texi: Renamed from
24237         doc/posix-functions/ecvt.texi.
24238         * doc/pastposix-functions/fcvt.texi: Renamed from
24239         doc/posix-functions/fcvt.texi.
24240         * doc/pastposix-functions/ftime.texi: Renamed from
24241         doc/posix-functions/ftime.texi.
24242         * doc/pastposix-functions/gcvt.texi: Renamed from
24243         doc/posix-functions/gcvt.texi.
24244         * doc/pastposix-functions/getcontext.texi: Renamed from
24245         doc/posix-functions/getcontext.texi.
24246         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24247         doc/posix-functions/gethostbyaddr.texi.
24248         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24249         doc/posix-functions/gethostbyname.texi.
24250         * doc/pastposix-functions/getwd.texi: Renamed from
24251         doc/posix-functions/getwd.texi.
24252         * doc/pastposix-functions/h_errno.texi: Renamed from
24253         doc/posix-functions/h_errno.texi.
24254         * doc/pastposix-functions/index.texi: Renamed from
24255         doc/posix-functions/index.texi.
24256         * doc/pastposix-functions/makecontext.texi: Renamed from
24257         doc/posix-functions/makecontext.texi.
24258         * doc/pastposix-functions/mktemp.texi: Renamed from
24259         doc/posix-functions/mktemp.texi.
24260         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24261         doc/posix-functions/pthread_attr_getstackaddr.texi.
24262         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24263         doc/posix-functions/pthread_attr_setstackaddr.texi.
24264         * doc/pastposix-functions/rindex.texi: Renamed from
24265         doc/posix-functions/rindex.texi.
24266         * doc/pastposix-functions/scalb.texi: Renamed from
24267         doc/posix-functions/scalb.texi.
24268         * doc/pastposix-functions/setcontext.texi: Renamed from
24269         doc/posix-functions/setcontext.texi.
24270         * doc/pastposix-functions/swapcontext.texi: Renamed from
24271         doc/posix-functions/swapcontext.texi.
24272         * doc/pastposix-functions/ualarm.texi: Renamed from
24273         doc/posix-functions/ualarm.texi.
24274         * doc/pastposix-functions/usleep.texi: Renamed from
24275         doc/posix-functions/usleep.texi.
24276         * doc/pastposix-functions/vfork.texi: Renamed from
24277         doc/posix-functions/vfork.texi.
24278         * doc/pastposix-functions/wcswcs.texi: Renamed from
24279         doc/posix-functions/wcswcs.texi.
24280         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24281         (Function Substitutes): Update.
24282
24283 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24284
24285         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24286         m4/strerror.m4.
24287
24288 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24289             Bruno Haible  <bruno@clisp.org>
24290
24291         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24292
24293 2008-12-13  Bruno Haible  <bruno@clisp.org>
24294
24295         * modules/strtoull (Depends-on): Remove unistd.
24296
24297 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24298
24299         * modules/strtoull (Depends-on): Add stdlib.
24300
24301 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24302
24303         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24304
24305 2008-12-10  Jim Meyering  <meyering@redhat.com>
24306
24307         gl_ASSERT: don't say assertions are disabled when they're not
24308         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24309         "checking whether to enable assertions... no", when they are in
24310         fact enabled.  This is solely a bug in the output of configure.
24311         In spite of saying "no", NDEBUG was not defined in that case.
24312         Also, as noted by Eric Blake, leave assertions enabled upon
24313         --enable-assert=INVALID.
24314
24315 2008-12-10  Bruno Haible  <bruno@clisp.org>
24316
24317         Change MODULES.html to refer to POSIX:2008 where possible.
24318         * MODULES.html.sh (POSIX2008_URL): New variable.
24319         (posix_headers): Remove sys/timeb, ucontext.
24320         (posix2001_headers): New variable.
24321         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24322         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24323         index, makecontext, mktemp, pthread_attr_getstackaddr,
24324         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24325         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24326         (posix2001_functions): New variable.
24327         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24328         otherwise.
24329
24330 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24331
24332         add missing include to parse-duration.c
24333         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24334         * modules/parse-duration (Depends-on): Add xalloc.
24335
24336         fix sed script reading maint.mk
24337         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24338         (syntax-check-rules): Use it.
24339
24340 2008-12-09  Bruno Haible  <bruno@clisp.org>
24341
24342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24343         MacOS X 10.4/PowerPC.
24344         Reported by Simon Josefsson.
24345
24346 2008-12-08  Jim Meyering  <meyering@redhat.com>
24347
24348         work around mingw's lack of some S_IF definitions
24349         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24350         Reported by Simon Josefsson.
24351
24352 2008-12-08  Bruno Haible  <bruno@clisp.org>
24353
24354         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24355         applied to variables. Needed on MacOS X 10.4/PowerPC.
24356         Reported by Simon Josefsson.
24357
24358 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24359         and Eric Blake  <ebb9@byu.net>
24360
24361         assert: honor --enable-assert
24362         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24363         order to honor --enable-assert, rather than treating it as a
24364         synonym for --disable-assert.
24365
24366 2008-12-08  Jim Meyering  <meyering@redhat.com>
24367
24368         * lib/posixtm.c: Remove now-useless declaration of mktime.
24369
24370         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24371
24372 2008-12-07  Bruno Haible  <bruno@clisp.org>
24373
24374         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24375         test_once): Mark functions as static.
24376         * tests/test-tls.c (test_tls): Likewise.
24377
24378 2008-12-07  Bruno Haible  <bruno@clisp.org>
24379
24380         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24381         iconv_register_autodetect.
24382
24383 2008-12-07  Jim Meyering  <meyering@redhat.com>
24384
24385         posixtm.c: avoid a warning
24386         * lib/posixtm.c (posixtime): Don't initialize tm0.
24387         It's no longer needed to placate gcc4's -Wuninitialized,
24388         and the attempt to placate would elicit a new warning.
24389
24390         unicodeio.c: mark unused parameters
24391         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24392         (fallback_failure_callback): Likewise.
24393
24394 2008-12-07  Bruno Haible  <bruno@clisp.org>
24395
24396         * gnulib-tool (func_create_testdir): When building the tests
24397         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24398         Reported by Simon Josefsson.
24399
24400 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24401
24402         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24403
24404 2008-12-06  Bruno Haible  <bruno@clisp.org>
24405
24406         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24407         Suggested by Eric Blake.
24408
24409 2008-12-06  Bruno Haible  <bruno@clisp.org>
24410
24411         Fix a c-stack test failure on MacOS X.
24412         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24413         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24414         handler for SIGBUS as well.
24415         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24416         install a signal handler for SIGBUS as well.
24417         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24418
24419 2008-12-06  Bruno Haible  <bruno@clisp.org>
24420
24421         Advocacy documentation.
24422         * doc/gnulib-intro.texi (Benefits): New section.
24423         * doc/gnulib.texi: Update.
24424
24425 2008-12-06  Bruno Haible  <bruno@clisp.org>
24426
24427         Document the 'manywarnings' module.
24428         * doc/manywarnings.texi: New file.
24429         * doc/gnulib.texi: Include it.
24430
24431 2008-12-05  Eric Blake  <ebb9@byu.net>
24432
24433         tests: silence some gcc warnings
24434         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24435         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24436         type mismatches.
24437
24438 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24439             Bruno Haible  <bruno@clisp.org>
24440
24441         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24442
24443 2008-11-29  Jim Meyering  <meyering@redhat.com>
24444
24445         unicodeio.c: mark unused parameters
24446         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24447         (fallback_failure_callback): Likewise.
24448
24449         fts: fix a thinko
24450         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24451         (set_stat_type): Return S_IF*-valued "type" directly.
24452         Prompted by James Youngman's spotting a related bug.
24453         Confirmed by further testing through find.
24454
24455         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24456         * lib/fts.c (D_TYPE): Define.
24457         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24458         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24459         (s_ifmt_shift_bits): New function.
24460         (set_stat_type): New function.
24461         (fts_build): When not calling fts_stat, call set_stat_type
24462         to propagate dirent.d_type info to fts_read caller.
24463         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24464         fts_statp->st_mode type information may be valid.
24465
24466 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24467
24468         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24469         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24470         <sds@gnu.org>.
24471
24472 2008-11-20  Bruno Haible  <bruno@clisp.org>
24473
24474         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24475         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24476         INCLUDE_NEXT.
24477         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24478         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24479         * modules/math (Makefile.am): Substitute
24480         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24481         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24482
24483 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24484             Bruno Haible  <bruno@clisp.org>
24485
24486         * lib/stdint.in.h: Define all type macros so that their expansion is
24487         a single typedef'ed token. Fixes a compilation failure in Boost which
24488         does "using ::int8_t;".
24489
24490 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24491
24492         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24493         gl_MANYWARN_ALL_GCC.
24494         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24495         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24496         * modules/manywarnings: New file.
24497         * MODULES.html.sh: Mention manywarnings module.
24498
24499 2008-11-18  Bruno Haible  <bruno@clisp.org>
24500
24501         * doc/gnulib-tool.texi (Unit tests): New section.
24502
24503 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24504
24505         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24506         paths like 'lib/po/foo.po'.
24507
24508 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24509
24510         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24511         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24512
24513 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24514
24515         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24516         parameter works.
24517
24518 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24519
24520         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24521
24522 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24523
24524         * modules/parse-duration-tests: New file.
24525         * tests/test-parse-duration.sh: New file.
24526         * tests/test-parse-duration.c: New file.
24527
24528         New module 'parse-duration'.
24529         * lib/parse-duration.h: New file.
24530         * lib/parse-duration.c: New file.
24531         * modules/parse-duration: New file.
24532
24533 2008-11-17  Bruno Haible  <bruno@clisp.org>
24534
24535         * tests/test-select-out.sh: Comment out the first pipe test.
24536         Reported by Simon Josefsson.
24537
24538 2008-11-17  Bruno Haible  <bruno@clisp.org>
24539
24540         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24541         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24542         gl_HOSTENT.
24543
24544 2008-11-17  Bruno Haible  <bruno@clisp.org>
24545
24546         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24547         -lnetwork and -lnet. Needed for Haiku and BeOS.
24548
24549 2008-11-16  Bruno Haible  <bruno@clisp.org>
24550
24551         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24552
24553 2008-11-16  Bruno Haible  <bruno@clisp.org>
24554
24555         Avoid test failure on Haiku.
24556         * tests/test-fsync.c: Include <errno.h>.
24557         (main): Don't require that fsync (0) fails.
24558
24559 2008-11-15  Bruno Haible  <bruno@clisp.org>
24560
24561         New module 'hostent'.
24562         * modules/hostent: New file.
24563         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24564
24565 2008-11-15  Bruno Haible  <bruno@clisp.org>
24566
24567         New module 'servent'.
24568         * modules/servent: New file.
24569         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24570
24571 2008-11-15  Bruno Haible  <bruno@clisp.org>
24572
24573         Avoid generating same test program with two different rules.
24574         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24575         test-frexp to test-frexp-nolibm.
24576         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24577         test-frexpl to test-frexpl-nolibm.
24578
24579 2008-11-15  Bruno Haible  <bruno@clisp.org>
24580
24581         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24582         $(FREXPL_LIBM).
24583
24584 2008-11-15  Bruno Haible  <bruno@clisp.org>
24585
24586         * lib/netdb.in.h: Activate the definitions also when the system's
24587         <netdb.h> has 'struct addrinfo'.
24588         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24589         EAI_OVERFLOW or AI_NUMERICSERV.
24590         * doc/posix-headers/netdb.texi: Document the problem.
24591
24592 2008-11-15  Bruno Haible  <bruno@clisp.org>
24593
24594         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24595
24596         Make the 'sched' module work on platforms where <sched.h> exists but
24597         is incomplete (such as Haiku).
24598         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24599         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24600         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24601         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24602         HAVE_STRUCT_SCHED_PARAM.
24603         * modules/sched (Depends-on): Add include_next.
24604         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24605         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24606         * doc/posix-headers/sched.texi: Document the issue.
24607
24608 2008-11-13  Jim Meyering  <meyering@redhat.com>
24609
24610         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24611         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24612         test would fail due to the difference in the Report bugs to ...
24613         line.  The expected address is empty, "<>", while the actual
24614         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24615
24616 2008-11-12  Bruno Haible  <bruno@clisp.org>
24617
24618         lstat: don't compile lstat.c on systems lacking lstat
24619         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24620         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24621         Reported by Daniel P. Berrange via Jim Meyering.
24622
24623 2008-11-12  Jim Meyering  <meyering@redhat.com>
24624
24625         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24626
24627 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24628
24629         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24630         instead.
24631
24632 2008-11-12  Bruno Haible  <bruno@clisp.org>
24633
24634         * lib/unicodeio.c: Include unistr.h.
24635         (utf8_wctomb): Remove function.
24636         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24637
24638 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24639
24640         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24641         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24642         <bruno@clisp.org>.
24643         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24644
24645 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24646
24647         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24648         * doc/gnulib.texi: Add section for warnings.
24649
24650 2008-11-11  Bruno Haible  <bruno@clisp.org>
24651
24652         * lib/sockets.h: Add a comment.
24653
24654 2008-11-11  Karl Berry  <karl@gnu.org>
24655
24656         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24657
24658 2008-11-11  Eric Blake  <ebb9@byu.net>
24659
24660         fdl.texi: avoid git symlinks
24661         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24662
24663 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24664
24665         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24666
24667 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24668
24669         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24670         (gl_WARN_ADD): Substitute $2 if literal.
24671
24672 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24673
24674         * m4/warning.m4: Remove.
24675
24676 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24677
24678         * m4/warnings.m4: Almost complete rewrite. :-)
24679
24680 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24681
24682         * modules/warnings: New module.
24683         * m4/warnings.m4: New file.
24684         * MODULES.html.sh: Mention warnings module.
24685         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24686         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24687
24688 2008-11-10  Eric Blake  <ebb9@byu.net>
24689
24690         fdl.texi: make a symlink to the latest version
24691         * doc/standards.texi: Revert today's earlier change.
24692         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24693         * doc/fdl.texi: ...and replace this with a symlink to the newer
24694         fdl-1.3.texi.
24695
24696 2008-11-10  Bruno Haible  <bruno@clisp.org>
24697
24698         * tests/test-select-fd.c (main): Accept the result file name as fourth
24699         argument.
24700         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24701         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24702
24703 2008-11-10  Bruno Haible  <bruno@clisp.org>
24704
24705         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24706         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24707         as autoconf-substituted macros.
24708         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24709         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24710         gl_NETDB_H_DEFAULTS. Set these variables.
24711         * modules/netdb (Makefile.am): Substitute these variables.
24712
24713 2008-11-10  Eric Blake  <ebb9@byu.net>
24714
24715         standards.texi: include correct file for FDL 1.3
24716         * doc/standards.texi (GNU Free Documentation License): Change
24717         include file to pull in FDL 1.3, not 1.2.
24718
24719         fdl.texi: revert accidental change to license
24720         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24721
24722 2008-11-10  Bruno Haible  <bruno@clisp.org>
24723
24724         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24725         cross-compiling guesses also when the native compile gives no result.
24726
24727 2008-11-10  Bruno Haible  <bruno@clisp.org>
24728
24729         * lib/spawni.c (__spawni): Force variable into the stack.
24730
24731 2008-11-10  Bruno Haible  <bruno@clisp.org>
24732
24733         Add support for Haiku.
24734         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24735         glibc and BeOS, but also on Haiku.
24736         * lib/fpurge.c (fpurge): Likewise.
24737         * lib/freadable.c (freadable): Likewise.
24738         * lib/freadahead.c (freadahead): Likewise.
24739         * lib/freading.c (freading): Likewise.
24740         * lib/freadptr.c (freadptr): Likewise.
24741         * lib/freadseek.c (freadptrinc): Likewise.
24742         * lib/fseeko.c (rpl_fseeko): Likewise.
24743         * lib/fseterr.c (fseterr): Likewise.
24744         * lib/fwritable.c (fwritable): Likewise.
24745         * lib/fwriting.c (fwriting): Likewise.
24746         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24747
24748 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24749
24750         * lib/config.charset: Treat Haiku like BeOS.
24751
24752 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24753
24754         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24755         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24756
24757 2008-11-08  Bruno Haible  <bruno@clisp.org>
24758
24759         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24760         AC_CACHE_CHECK.
24761
24762 2008-11-08  Bruno Haible  <bruno@clisp.org>
24763
24764         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24765
24766 2008-11-08  Bruno Haible  <bruno@clisp.org>
24767
24768         * tests/test-select-fd.c: New file.
24769         * tests/test-select-in.sh: New file.
24770         * tests/test-select-out.sh: New file.
24771         * tests/test-select-stdin.c: New file.
24772         * modules/select-tests (Files): Add the new files.
24773         (Depends-on): Add gettimeofday.
24774         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24775         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24776         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24777
24778 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24779             Bruno Haible  <bruno@clisp.org>
24780
24781         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24782
24783 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24784
24785         * build-aux/pmccabe2html: Added support for C++ source files.
24786
24787 2008-11-05  Ben Pfaff  <blp@gnu.org>
24788
24789         Fix lib/close.c build on Windows.
24790         * modules/close (Files): Add lib/w32sock.h.
24791
24792 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24793
24794         Accept Bison's NEWS format.
24795         * build-aux/announce-gen (print_news_deltas): Tweak
24796         $re_prefix.
24797
24798 2008-11-04  Bruno Haible  <bruno@clisp.org>
24799
24800         * modules/random_r (Maintainer): Add glibc.
24801
24802 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24803
24804         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24805         by karl@freefriends.org (Karl Berry).
24806         * doc/alloca.texi: Likewise.
24807         * doc/c-ctype.texi: Likewise.
24808         * doc/c-strcase.texi: Likewise.
24809         * doc/c-strcaseeq.texi: Likewise.
24810         * doc/c-strcasestr.texi: Likewise.
24811         * doc/c-strstr.texi: Likewise.
24812         * doc/c-strtod.texi: Likewise.
24813         * doc/c-strtold.texi: Likewise.
24814         * doc/ctime.texi: Likewise.
24815         * doc/error.texi: Likewise.
24816         * doc/fdl.texi: Likewise.
24817         * doc/gcd.texi: Likewise.
24818         * doc/getdate.texi: Likewise.
24819         * doc/gnulib-intro.texi: Likewise.
24820         * doc/gnulib-tool.texi: Likewise.
24821         * doc/gnulib.texi: Likewise.
24822         * doc/inet_ntoa.texi: Likewise.
24823         * doc/maintain.texi: Likewise.
24824         * doc/make-stds.texi: Likewise.
24825         * doc/quote.texi: Likewise.
24826         * doc/regexprops-generic.texi: Likewise.
24827         * doc/standards.texi: Likewise.
24828         * doc/verify.texi: Likewise.
24829         * doc/visibility.texi: Likewise.
24830         * doc/gnulib.texi (GNU Free Documentation License): Include
24831         fdl-1.3.texi instead of fdl.texi.
24832
24833 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24834
24835         * doc/fdl-1.3.texi: New file, from
24836         <http://www.gnu.org/licenses/fdl-1.3.texi>.
24837         * modules/fdl-1.3: Add.
24838         * MODULES.html.sh: Add fdl-1.3.
24839
24840 2008-11-03  Bruno Haible  <bruno@clisp.org>
24841
24842         Make determination of absolute name of header file work with AIX xlc.
24843         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
24844         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
24845         preprocessing.
24846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24847         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
24848
24849 2008-11-03  Simon Josefsson  <simon@josefsson.org>
24850
24851         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
24852         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
24853         <ludo@gnu.org>.
24854
24855 2008-11-02  Bruno Haible  <bruno@clisp.org>
24856
24857         Mark 'strpbrk' obsolete.
24858         * modules/strpbrk (Status, Notice): New sections.
24859         * modules/strtok_r (Depends-on): Add strpbrk.
24860
24861 2008-11-02  Bruno Haible  <bruno@clisp.org>
24862
24863         Mark 'strdup' obsolete.
24864         * modules/strdup (Status, Notice): New sections.
24865         * modules/findprog (Depends-on): Add strdup.
24866         * modules/getaddrinfo (Depends-on): Likewise.
24867         * modules/localename (Depends-on): Likewise.
24868         * modules/relocatable-lib (Depends-on): Likewise.
24869         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
24870         * modules/relocatable-prog (Depends-on): Likewise.
24871         * modules/trim (Depends-on): Likewise.
24872         * modules/unictype/gen-ctype (Depends-on): Likewise.
24873         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24874
24875 2008-11-02  Bruno Haible  <bruno@clisp.org>
24876
24877         Mark 'strcspn' obsolete.
24878         * modules/strcspn (Status, Notice): New sections.
24879
24880 2008-11-02  Bruno Haible  <bruno@clisp.org>
24881
24882         Mark 'rmdir' obsolete.
24883         * modules/rmdir (Status, Notice): New sections.
24884         * modules/clean-temp (Depends-on): Add rmdir.
24885         * modules/openat (Depends-on): Likewise.
24886
24887 2008-11-02  Bruno Haible  <bruno@clisp.org>
24888
24889         Mark 'raise' obsolete.
24890         * modules/raise (Status, Notice): New sections.
24891         (Include): Specify <signal.h>.
24892         * modules/stdio (Depends-on): Add raise.
24893         * modules/write (Depends-on): Likewise.
24894
24895 2008-11-02  Bruno Haible  <bruno@clisp.org>
24896
24897         Mark 'memset' obsolete.
24898         * modules/memset (Status, Notice): New sections.
24899
24900 2008-11-02  Bruno Haible  <bruno@clisp.org>
24901
24902         Mark 'memmove' obsolete.
24903         * modules/memmove (Status, Notice): New sections.
24904         * modules/argp (Depends-on): Add memmove.
24905         * modules/argz (Depends-on): Likewise.
24906         * modules/canonicalize (Depends-on): Likewise.
24907         * modules/canonicalize-lgpl (Depends-on): Likewise.
24908         * modules/fts (Depends-on): Likewise.
24909         * modules/getcwd (Depends-on): Likewise.
24910         * modules/human (Depends-on): Likewise.
24911         * modules/regex (Depends-on): Likewise.
24912         * modules/striconveh (Depends-on): Likewise.
24913         * modules/trim (Depends-on): Likewise.
24914         * modules/unistr/u8-move (Depends-on): Likewise.
24915         * modules/unistr/u16-move (Depends-on): Likewise.
24916         * modules/unistr/u32-move (Depends-on): Likewise.
24917
24918 2008-11-02  Bruno Haible  <bruno@clisp.org>
24919
24920         Mark 'memcpy' obsolete.
24921         * modules/memcpy (Status, Notice): New sections.
24922
24923 2008-11-02  Bruno Haible  <bruno@clisp.org>
24924
24925         Mark 'memcmp' obsolete.
24926         * modules/memcmp (Status, Notice): New sections.
24927         * modules/argmatch (Depends-on): Add memchr.
24928         * modules/backupfile (Depends-on): Likewise.
24929         * modules/c-strcasestr (Depends-on): Likewise.
24930         * modules/crypto/des (Depends-on): Likewise.
24931         * modules/csharpcomp (Depends-on): Likewise.
24932         * modules/fnmatch (Depends-on): Likewise.
24933         * modules/git-merge-changelog (Depends-on): Likewise.
24934         * modules/isnand (Depends-on): Likewise.
24935         * modules/isnand-nolibm (Depends-on): Likewise.
24936         * modules/isnanf (Depends-on): Likewise.
24937         * modules/isnanf-nolibm (Depends-on): Likewise.
24938         * modules/isnanl (Depends-on): Likewise.
24939         * modules/isnanl-nolibm (Depends-on): Likewise.
24940         * modules/mbchar (Depends-on): Likewise.
24941         * modules/memcoll (Depends-on): Likewise.
24942         * modules/quotearg (Depends-on): Likewise.
24943         * modules/regex (Depends-on): Likewise.
24944         * modules/relocatable-prog (Depends-on): Likewise.
24945         * modules/same (Depends-on): Likewise.
24946         * modules/signbit (Depends-on): Likewise.
24947         * modules/strcasestr-simple (Depends-on): Likewise.
24948         * modules/unictype/gen-ctype (Depends-on): Likewise.
24949         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
24950         * modules/uniname/uniname (Depends-on): Likewise.
24951         * modules/unistr/u8-cmp (Depends-on): Likewise.
24952
24953 2008-11-02  Bruno Haible  <bruno@clisp.org>
24954
24955         Mark 'memchr' obsolete.
24956         * modules/memchr (Status, Notice): New sections.
24957         * modules/argp (Depends-on): Add memchr.
24958         * modules/base64 (Depends-on): Likewise.
24959         * modules/c-strcasestr (Depends-on): Likewise.
24960         * modules/chdir-long (Depends-on): Likewise.
24961         * modules/fnmatch (Depends-on): Likewise.
24962         * modules/getsubopt (Depends-on): Likewise.
24963         * modules/git-merge-changelog (Depends-on): Likewise.
24964         * modules/glob (Depends-on): Likewise.
24965         * modules/strcasestr-simple (Depends-on): Likewise.
24966         * modules/strnlen (Depends-on): Likewise.
24967
24968 2008-11-02  Bruno Haible  <bruno@clisp.org>
24969
24970         Mark 'atexit' obsolete.
24971         * modules/atexit (Status, Notice): New sections.
24972         * modules/chdir-long (Depends-on): Add atexit.
24973         * modules/wait-process (Depends-on): Likewise.
24974
24975 2008-11-02  Bruno Haible  <bruno@clisp.org>
24976
24977         * gnulib-tool: New option --with-obsolete.
24978         (func_usage): Document it.
24979         (func_modules_transitive_closure): Drop obsolete dependencies if
24980         incobsolete is not true.
24981         (func_import): Read and save the incobsolete variable to the cache.
24982
24983 2008-11-02  Bruno Haible  <bruno@clisp.org>
24984
24985         * modules/TEMPLATE-EXTENDED: New field 'Status'.
24986         * gnulib-tool: New option --extract-status.
24987         (func_usage): Document it.
24988         (sed_extract_prog): Recognize it.
24989         (func_get_status): New function.
24990
24991 2008-10-30  Simon Josefsson  <simon@josefsson.org>
24992
24993         * modules/sockets (License): Change from LGPL to LGPLv2+.
24994
24995 2008-10-28  Simon Josefsson  <simon@josefsson.org>
24996
24997         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
24998
24999 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25000
25001         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25002         Mention times and sys_times.
25003         * modules/sys_times, modules/sys_times-tests: New modules.
25004         * modules/times, modules/times-tests: Likewise
25005         * m4/sys_times_h.m4: New file.
25006         * lib/sys_times.in.h: Likewise
25007         * lib/times.c: Likewise.
25008         * tests/test-sys_times.c: Likewise.
25009         * tests/test-times.c: Likewise.
25010         * doc/posix-headers/sys_times.texi: Update.
25011         * doc/posix-functions/times.texi: Update.
25012
25013 2008-10-28  Jim Meyering  <meyering@redhat.com>
25014
25015         * modules/tempname (Depends-on): Add lstat.
25016
25017         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
25018
25019 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25020
25021         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
25022         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
25023         using idiom used elsewhere in gnulib.
25024
25025 2008-10-27  Jim Meyering  <meyering@redhat.com>
25026
25027         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
25028
25029 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25030
25031         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
25032         TESTS_ENVIRONMENT, for shell scripts that needs to call built
25033         programs.
25034         * tests/test-argp-2.sh: Use $EXEEXT when needed.
25035
25036 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25037
25038         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
25039
25040 2008-10-27  Bruno Haible  <bruno@clisp.org>
25041
25042         * tests/test-lstat.c: Include <stdio.h>.
25043
25044 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25045
25046         * modules/lstat-tests: New module.
25047         * tests/test-lstat.c: New file.
25048
25049 2008-10-26  Jim Meyering  <meyering@redhat.com>
25050
25051         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
25052
25053 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25054             Bruno Haible  <bruno@clisp.org>
25055
25056         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
25057         * modules/configmake (Include): Add a note that the include must come
25058         after all system headers.
25059         * lib/javaversion.c: Include configmake.h after all other includes.
25060
25061 2008-10-26  Bruno Haible  <bruno@clisp.org>
25062
25063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
25064         HAVE_STRUCT_RANDOM_DATA to 1.
25065         (gl_STDLIB_H): Simplify.
25066
25067 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25068
25069         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
25070         substitute HAVE_STRUCT_RANDOM_DATA.
25071         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
25072         random_data.
25073         * modules/stdlib (Makefile.am): Substitute
25074         HAVE_STRUCT_RANDOM_DATA.
25075
25076 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25077
25078         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
25079         * doc/gnulib-intro.texi (Copyright): Likewise.
25080
25081 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25082
25083         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
25084         findings.
25085
25086 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
25087             Bruno Haible  <bruno@clisp.org>
25088
25089         * lib/unistd.in.h: Include <winsock2.h>.
25090         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
25091         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
25092         Provide dummy declarations.
25093         (gethostname): Override.
25094         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
25095         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
25096         gl_PREREQ_SYS_H_WINSOCK2.
25097         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
25098         * doc/posix-functions/gethostname.texi: More details.
25099
25100 2008-10-25  Bruno Haible  <bruno@clisp.org>
25101
25102         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25103         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
25104         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
25105
25106         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
25107         here ...
25108         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
25109         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
25110         gl_UNISTD_H_DEFAULTS.
25111
25112 2008-10-25  Eric Blake  <ebb9@byu.net>
25113
25114         signbit: avoid spurious compiler failure
25115         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
25116         declarations inside function.
25117
25118 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25119             Bruno Haible  <bruno@clisp.org>
25120
25121         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
25122         * modules/random_r (Depends-on): Add stdint.
25123
25124 2008-10-24  Bruno Haible  <bruno@clisp.org>
25125
25126         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
25127         Eggert.
25128         * modules/strerror (License): Likewise.
25129
25130 2008-10-24  Jim Meyering  <meyering@redhat.com>
25131
25132         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
25133         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
25134
25135 2008-10-24  Eric Blake  <ebb9@byu.net>
25136
25137         getgroups: fix compilation when getgroups is available
25138         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
25139         but with <config.h> override of getgroups disabled.
25140
25141 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25142
25143         * doc/gnulib.texi (Header files): Add note about C++ problems.
25144         Explained by Bruno Haible <bruno@clisp.org>.
25145
25146 2008-10-23  Bruno Haible  <bruno@clisp.org>
25147
25148         Define a dummy SA_NODEFER macro on Interix.
25149         * lib/signal.in.h (SA_NODEFER): Define fallback.
25150         Reported by Aleksey Cheusov <cheusov@tut.by> via
25151         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
25152
25153 2008-10-23  Bruno Haible  <bruno@clisp.org>
25154
25155         * modules/freadahead (License): Change to LGPLv2+.
25156         Suggested by Simon Josefsson.
25157
25158 2008-10-23  Jim Meyering  <meyering@redhat.com>
25159
25160         random_r: new module
25161         * modules/random_r: New file.
25162         * m4/random_r.m4: New file.
25163         * lib/random_r.c: New file, from glibc.
25164         * modules/random_r-tests: New file.
25165         * tests/test-random_r.c: New file.
25166         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25167          Declare.
25168         (RAND_MAX): Define.
25169         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25170         * modules/stdlib: Substitute them, too.
25171         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25172         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25173         * doc/glibc-functions/random_r.texi: Likewise.
25174         * doc/glibc-functions/setstate_r.texi: Likewise.
25175         * doc/glibc-functions/srandom_r.texi: Likewise.
25176         * config/srclist.txt: Mention it.
25177
25178 2008-10-23  David Lutterkort  <lutter@redhat.com>
25179
25180         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25181         link requirement
25182
25183 2008-10-23  Jim Meyering  <meyering@redhat.com>
25184
25185         selinux-h: mark parameters of stub functions as intentionally unused
25186         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25187         * lib/se-context.in.h: Likewise.
25188
25189 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25190
25191         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25192
25193 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25194
25195         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25196
25197 2008-10-22  Eric Blake  <ebb9@byu.net>
25198
25199         glthread/thread: avoid compiler warning
25200         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25201         Add unreachable abort to silence compiler.
25202
25203 2008-10-22  Eric Blake  <ebb9@byu.net>
25204
25205         netdb: also supply struct addrinfo for cygwin 1.5.x
25206         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25207         older cygwin.
25208         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25209         cygwin.
25210         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25211
25212 2008-10-22  Bruno Haible  <bruno@clisp.org>
25213
25214         * users.txt: Update entry about pspp.
25215
25216 2008-10-21  Bruno Haible  <bruno@clisp.org>
25217
25218         Simplification.
25219         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25220         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25221
25222         Simplification.
25223         * lib/ioctl.c (ioctl): Don't undefine.
25224         * lib/socket.c (socket): Don't undefine.
25225
25226         Remove unused module indicator macros.
25227         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25228         GNULIB_$1 as a C macro.
25229
25230         * doc/posix-functions/close.texi: Undo last change.
25231         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25232         Windows platforms.
25233
25234 2008-10-21  Bruno Haible  <bruno@clisp.org>
25235
25236         Add gethostname() declaration to <unistd.h>.
25237         * lib/unistd.in.h (gethostname): New declaration.
25238         * lib/gethostname.c: Include <unistd.h>.
25239         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25240         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25242         and HAVE_GETHOSTNAME.
25243         * modules/gethostname (Depends-on): Add unistd.
25244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25245         (Include): Specify <unistd.h>.
25246         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25247         HAVE_GETHOSTNAME.
25248         * tests/test-gethostname.c: Include <unistd.h> first.
25249
25250 2008-10-21  Bruno Haible  <bruno@clisp.org>
25251
25252         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25253         * modules/select-tests (Depends-on): Likewise.
25254         Reported by Simon Josefsson.
25255
25256 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25257
25258         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25259         * lib/accept.c: New file, based on winsock.c.
25260         * lib/bind.c: New file, based on winsock.c.
25261         * lib/connect.c: New file, based on winsock.c.
25262         * lib/getpeername.c: New file, based on winsock.c.
25263         * lib/getsockname.c: New file, based on winsock.c.
25264         * lib/getsockopt.c: New file, based on winsock.c.
25265         * lib/ioctl.c: New file, based on winsock.c.
25266         * lib/listen.c: New file, based on winsock.c.
25267         * lib/recv.c: New file, based on winsock.c.
25268         * lib/recvfrom.c: New file, based on winsock.c.
25269         * lib/send.c: New file, based on winsock.c.
25270         * lib/sendto.c: New file, based on winsock.c.
25271         * lib/setsockopt.c: New file, based on winsock.c.
25272         * lib/shutdown.c: New file, based on winsock.c.
25273         * lib/socket.c: New file, based on winsock.c.
25274         * lib/w32sock.h: New file, based on winsock.c.
25275         * lib/winsock.c: Remove file.
25276         * modules/accept: Likewise.
25277         * modules/bind: Likewise.
25278         * modules/connect: Likewise.
25279         * modules/getpeername: Likewise.
25280         * modules/getsockname: Likewise.
25281         * modules/getsockopt: Likewise.
25282         * modules/ioctl: Likewise.
25283         * modules/listen: Likewise.
25284         * modules/recv: Likewise.
25285         * modules/recvfrom: Likewise.
25286         * modules/send: Likewise.
25287         * modules/sendto: Likewise.
25288         * modules/setsockopt: Likewise.
25289         * modules/shutdown: Likewise.
25290         * modules/socket: Use socket.c instead of winsock.c.
25291         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25292         * doc/posix-functions/accept.texi: Doc fix.
25293         * doc/posix-functions/bind.texi: Doc fix.
25294         * doc/posix-functions/close.texi: Doc fix.
25295         * doc/posix-functions/connect.texi: Doc fix.
25296         * doc/posix-functions/getpeername.texi: Doc fix.
25297         * doc/posix-functions/getsockname.texi: Doc fix.
25298         * doc/posix-functions/getsockopt.texi: Doc fix.
25299         * doc/posix-functions/ioctl.texi: Doc fix.
25300         * doc/posix-functions/listen.texi: Doc fix.
25301         * doc/posix-functions/recv.texi: Doc fix.
25302         * doc/posix-functions/recvfrom.texi: Doc fix.
25303         * doc/posix-functions/send.texi: Doc fix.
25304         * doc/posix-functions/sendto.texi: Doc fix.
25305         * doc/posix-functions/setsockopt.texi: Doc fix.
25306         * doc/posix-functions/shutdown.texi: Doc fix.
25307         * doc/posix-functions/socket.texi: Doc fix.
25308
25309 2008-10-20  Bruno Haible  <bruno@clisp.org>
25310
25311         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25312         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25313         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25314         as an alias for SIGABRT.
25315         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25316         (sigaction): Map it to SIGABRT.
25317         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25318
25319 2008-10-20  Bruno Haible  <bruno@clisp.org>
25320
25321         * lib/fts.c: Don't include lstat.h.
25322         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25323
25324         Move the lstat() declaration to <sys/stat.h>.
25325         * lib/lstat.h: Remove file.
25326         * lib/sys_stat.in.h: Add special invocation convention.
25327         (lstat): New declaration.
25328         * lib/lstat.c (orig_lstat): New function.
25329         (rpl_lstat): Use orig_lstat instead of lstat.
25330         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25331         AC_C_INLINE. Set REPLACE_LSTAT.
25332         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25333         and REPLACE_LSTAT.
25334         * modules/lstat (Files): Remove lib/lstat.h.
25335         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25336         (Include): Specify <sys/stat.h> instead of lstat.h.
25337         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25338         REPLACE_LSTAT.
25339         * NEWS: Mention the change.
25340
25341 2008-10-20  Bruno Haible  <bruno@clisp.org>
25342
25343         * modules/posix_spawn-tests: New file.
25344         * tests/test-posix_spawn3.c: New file.
25345
25346 2008-10-20  Bruno Haible  <bruno@clisp.org>
25347
25348         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25349         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25350         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25351         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25352         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25353
25354 2008-10-20  Bruno Haible  <bruno@clisp.org>
25355
25356         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25357         of posix_spawn on AIX 5.3.
25358
25359 2008-10-20  Bruno Haible  <bruno@clisp.org>
25360
25361         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25362
25363 2008-10-20  Bruno Haible  <bruno@clisp.org>
25364
25365         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25366         of AC_LANG_PROGRAM.
25367
25368 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25369
25370         * lib/netdb.in.h: Don't define GNU specific constants until they
25371         are supported or needed.  Reported by Bruno Haible
25372         <bruno@clisp.org>.
25373
25374 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25375
25376         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25377
25378 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25379
25380         * lib/getaddrinfo.h: Remove file.
25381         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25382         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25383         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25384         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25385         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25386         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25387         * tests/test-getaddrinfo.c: Likewise.
25388         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25389         * NEWS: Mention change.
25390
25391 2008-10-19  Bruno Haible  <bruno@clisp.org>
25392
25393         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25394
25395 2008-10-19  Bruno Haible  <bruno@clisp.org>
25396
25397         * lib/wait-process.c: Include simply <sys/wait.h>.
25398         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25399         WIFSTOPPED): Remove fallback definitions.
25400         * modules/wait-process (Depends-on): Add sys_wait.
25401
25402         New module 'sys_wait'.
25403         * modules/sys_wait: New file.
25404         * lib/sys_wait.in.h: New file, partially copied from
25405         lib/wait-process.c.
25406         * m4/sys_wait_h.m4: New file.
25407         * doc/posix-headers/sys_wait.texi: Mention the new module.
25408
25409 2008-10-19  Bruno Haible  <bruno@clisp.org>
25410
25411         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25412
25413 2008-10-19  Bruno Haible  <bruno@clisp.org>
25414
25415         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25416         * lib/wait-process.c (WAIT_T): Remove type.
25417         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25418         (wait_subprocess): Update.
25419
25420 2008-10-19  Bruno Haible  <bruno@clisp.org>
25421
25422         New module 'atoll'.
25423         * modules/atoll: New file.
25424         * lib/stdlib.in.h (atoll): New declaration.
25425         * lib/atoll.c: New file, from glibc with modifications.
25426         * m4/atoll.m4: New file.
25427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25428         HAVE_ATOLL.
25429         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25430         * doc/posix-functions/atoll.texi: Mention the new module.
25431
25432 2008-10-19  Bruno Haible  <bruno@clisp.org>
25433
25434         Add strtoull() declaration to <stdlib.h>.
25435         * lib/stdlib.in.h (strtoull): New declaration.
25436         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25437         Set HAVE_STRTOULL.
25438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25439         HAVE_STRTOULL.
25440         * modules/strtoull (Depends-on): Add stdlib.
25441         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25442         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25443         HAVE_STRTOULL.
25444
25445 2008-10-19  Bruno Haible  <bruno@clisp.org>
25446
25447         Add strtoll() declaration to <stdlib.h>.
25448         * lib/stdlib.in.h (strtoll): New declaration.
25449         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25450         Set HAVE_STRTOLL.
25451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25452         HAVE_STRTOLL.
25453         * modules/strtoll (Depends-on): Add stdlib.
25454         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25455         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25456
25457 2008-10-19  Bruno Haible  <bruno@clisp.org>
25458
25459         * modules/bcopy (Depends-on): Add strings.
25460         (Include): Specify <strings.h>.
25461
25462 2008-10-19  Bruno Haible  <bruno@clisp.org>
25463
25464         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25465
25466 2008-10-19  Bruno Haible  <bruno@clisp.org>
25467
25468         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25469         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25470         mingw.
25471
25472 2008-10-19  Bruno Haible  <bruno@clisp.org>
25473
25474         * lib/atanl.c: Don't include isnanl.h.
25475         * lib/cosl.c: Likewise.
25476         * lib/ldexpl.c: Likewise.
25477         * lib/logl.c: Likewise.
25478         * lib/sinl.c: Likewise.
25479         * lib/sqrtl.c: Likewise.
25480         * lib/tanl.c: Likewise.
25481
25482         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25483         * lib/isnanf.h: Remove file.
25484         * lib/isnand.h: Remove file.
25485         * lib/isnanl.h: Remove file.
25486         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25487         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25488         macros.
25489         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25490         HAVE_ISNANF, don't define it as a C macro.
25491         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25492         HAVE_ISNAND, don't define it as a C macro.
25493         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25494         HAVE_ISNANL, don't define it as a C macro.
25495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25496         HAVE_ISNAN[FDL].
25497         * modules/isnanf (Files): Remove lib/isnanf.h.
25498         (Depends-on): Add math.
25499         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25500         (Include): Specify <math.h> instead of isnanf.h.
25501         * modules/isnand (Files): Remove lib/isnand.h.
25502         (Depends-on): Add math.
25503         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25504         (Include): Specify <math.h> instead of isnand.h.
25505         * modules/isnanl (Files): Remove lib/isnanl.h.
25506         (Depends-on): Add math.
25507         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25508         (Include): Specify <math.h> instead of isnanl.h.
25509         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25510         HAVE_ISNAN[FDL].
25511         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25512         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25513         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25514         * NEWS: Mention the change.
25515
25516 2008-10-18  Bruno Haible  <bruno@clisp.org>
25517
25518         Add getusershell(), setusershell(), endusershell() declarations to
25519         <unistd.h>.
25520         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25521         declarations.
25522         * lib/getusershell.c: Include unistd.h.
25523         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25524         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25525         HAVE_GETUSERSHELL.
25526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25527         and HAVE_GETUSERSHELL.
25528         * modules/getusershell (Depends-on): Add unistd, extensions.
25529         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25530         (Include): Specify <unistd.h>.
25531         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25532         HAVE_GETUSERSHELL.
25533
25534 2008-10-18  Bruno Haible  <bruno@clisp.org>
25535
25536         Add a getloadavg() declaration to <stdlib.h>.
25537         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25538         getloadavg declaration.
25539         (getloadavg): New declaration.
25540         * lib/getloadavg.c: Include <stdlib.h> first.
25541         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25542         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25543         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25545         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25546         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25547         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25548         (Include): Specify <stdlib.h>.
25549         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25550         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25551
25552 2008-10-18  Bruno Haible  <bruno@clisp.org>
25553
25554         * lib/dirchownmod.c: Don't include lchmod.h.
25555
25556         Move the lchmod() declaration to <sys/stat.h>.
25557         * lib/lchmod.h: Remove file.
25558         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25559         (lchmod): New declaration, moved here from lib/lchown.h.
25560         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25561         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25563         and HAVE_LCHMOD.
25564         * modules/lchmod (Files): Remove lib/lchmod.h.
25565         (Depends-on): Add sys_stat, extensions.
25566         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25567         (Include): Specify <sys/stat.h> instead of lchmod.h.
25568         * modules/sys_stat (Depends-on): Add link-warning.
25569         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25570         definition of GL_LINK_WARNING.
25571         * NEWS: Mention the change.
25572
25573 2008-10-18  Bruno Haible  <bruno@clisp.org>
25574
25575         * lib/fchdir.c: Don't include dirfd.h.
25576         * lib/fts.c: Likewise.
25577         * lib/getcwd.c: Likewise.
25578         * lib/glob.c: Likewise.
25579
25580         Move the dirfd() declaration to <dirent.h>.
25581         * lib/dirfd.h: Remove file.
25582         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25583         (dirfd): New declaration.
25584         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25585         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25586         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25587         HAVE_DECL_DIRFD.
25588         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25589         HAVE_DECL_DIRFD.
25590         * modules/dirfd (Files): Remove lib/dirfd.h.
25591         (Depends-on): Add dirent, extensions.
25592         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25593         (Include): Specify <dirent.h> instead of dirfd.h.
25594         * modules/dirent (Depends-on): Add link-warning.
25595         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25596         definition of GL_LINK_WARNING.
25597         * NEWS: Mention the change.
25598
25599 2008-10-18  Bruno Haible  <bruno@clisp.org>
25600
25601         Move the euidaccess() declaration to <unistd.h>.
25602         * lib/euidaccess.h: Remove file.
25603         * lib/unistd.in.h (euidaccess): New declaration.
25604         * lib/euidaccess.c: Don't include euidaccess.h.
25605         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25606         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25608         and HAVE_EUIDACCESS.
25609         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25610         (Depends-on): Add unistd.
25611         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25612         (Include): Specify <unistd.h> instead of euidaccess.h.
25613         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25614         HAVE_EUIDACCESS.
25615         * NEWS: Mention the change.
25616
25617 2008-10-18  Bruno Haible  <bruno@clisp.org>
25618
25619         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25620
25621         Move the getdomainname() declaration to <unistd.h>.
25622         * lib/getdomainname.h: Remove file.
25623         * lib/unistd.in.h (getdomainname): New declaration.
25624         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25625         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25626         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25627         HAVE_GETDOMAINNAME.
25628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25629         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25630         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25631         (Depends-on): Add unistd, extensions.
25632         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25633         (Includes): Specify <unistd.h> instead of getdomainname.h.
25634         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25635         HAVE_GETDOMAINNAME.
25636         * NEWS: Mention the change.
25637
25638 2008-10-18  Bruno Haible  <bruno@clisp.org>
25639
25640         * modules/dirent: New file.
25641         * m4/dirent_h.m4: New file.
25642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25643         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25644         * modules/fchdir (Files): Remove lib/dirent.in.h.
25645         (Depends-on): Add dirent.
25646         (Makefile.am): Move rules to modules/dirent.
25647         * doc/posix-headers/dirent.texi: Mention the new module.
25648
25649 2008-10-18  Bruno Haible  <bruno@clisp.org>
25650
25651         Avoid -Wunused-parameter warnings in public gnulib header files.
25652         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25653         macro.
25654         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25655
25656 2008-10-18  Bruno Haible  <bruno@clisp.org>
25657
25658         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25659         * doc/glibc-functions/error.texi: Mention the module 'error'.
25660         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25661         * doc/glibc-functions/getdomainname.texi: Mention the module
25662         'getdomainname'.
25663         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25664         * doc/glibc-functions/getpagesize.texi: Mention the module
25665         'getpagesize'.
25666         * doc/glibc-functions/getusershell.texi: Mention the module
25667         'getusershell'.
25668         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25669         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25670         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25671         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25672         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25673         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25674         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25675         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25676         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25677         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25678         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25679         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25680         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25681         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25682
25683 2008-10-17  Bruno Haible  <bruno@clisp.org>
25684
25685         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25686         HP-UX and IRIX, use -0.0L.
25687         * tests/test-ceill.c (minus_zero): Likewise.
25688         * tests/test-floorl.c (minus_zero): Likewise.
25689         * tests/test-frexpl.c (minus_zero): Likewise.
25690         * tests/test-isnan.c (minus_zerol): Likewise.
25691         * tests/test-isnanl.h (minus_zero): Likewise.
25692         * tests/test-ldexpl.c (minus_zero): Likewise.
25693         * tests/test-roundl.c (minus_zero): Likewise.
25694         * tests/test-signbit.c (minus_zerol): Likewise.
25695         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25696         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25697         * tests/test-truncl.c (minus_zero): Likewise.
25698         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25699         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25700         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25701         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25702
25703 2008-10-17  Bruno Haible  <bruno@clisp.org>
25704
25705         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25706         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25707         that it gets activated only for gcc >= 3.0.
25708         * lib/dirent.in.h: Likewise.
25709         * lib/errno.in.h: Likewise.
25710         * lib/fcntl.in.h: Likewise.
25711         * lib/float.in.h: Likewise.
25712         * lib/iconv.in.h: Likewise.
25713         * lib/inttypes.in.h: Likewise.
25714         * lib/locale.in.h: Likewise.
25715         * lib/math.in.h: Likewise.
25716         * lib/netdb.in.h: Likewise.
25717         * lib/netinet_in.in.h: Likewise.
25718         * lib/search.in.h: Likewise.
25719         * lib/signal.in.h: Likewise.
25720         * lib/spawn.in.h: Likewise.
25721         * lib/stdarg.in.h: Likewise.
25722         * lib/stdint.in.h: Likewise.
25723         * lib/stdio.in.h: Likewise.
25724         * lib/stdlib.in.h: Likewise.
25725         * lib/string.in.h: Likewise.
25726         * lib/strings.in.h: Likewise.
25727         * lib/sys_file.in.h: Likewise.
25728         * lib/sys_ioctl.in.h: Likewise.
25729         * lib/sys_select.in.h: Likewise.
25730         * lib/sys_socket.in.h: Likewise.
25731         * lib/sys_stat.in.h: Likewise.
25732         * lib/sys_time.in.h: Likewise.
25733         * lib/sysexits.in.h: Likewise.
25734         * lib/time.in.h: Likewise.
25735         * lib/unistd.in.h: Likewise.
25736         * lib/wchar.in.h: Likewise.
25737         * lib/wctype.in.h: Likewise.
25738         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25739
25740 2008-10-17  Jim Meyering  <meyering@redhat.com>
25741
25742         ignore-value: don't depend on inline module
25743         * modules/ignore-value (Depends-on): Remove 'inline'.
25744         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25745         Suggestion from Bruno Haible.
25746
25747 2008-10-17  Bruno Haible  <bruno@clisp.org>
25748
25749         New implementation of condition variables for Win32.
25750         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25751         (gl_linked_waitqueue_t): New type.
25752         (gl_cond_t): Use it.
25753         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25754         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25755         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25756         (glthread_cond_init_func, glthread_cond_wait_func,
25757         glthread_cond_timedwait_func, glthread_cond_signal_func,
25758         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25759         Reimplemented on the basis of gl_linked_waitqueue_t.
25760         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25761         gl_waitqueue_t.
25762         (gl_rwlock_t): Update.
25763         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25764
25765 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25766
25767         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25768         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25769
25770 2008-10-17  Jim Meyering  <meyering@redhat.com>
25771
25772         ignore-value: new module
25773         * modules/ignore-value: New file.
25774         * lib/ignore-value.h: New file.
25775         * MODULES.html.sh (Compiler warning management): New section,
25776         just for this module.  More to come.
25777
25778 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25779
25780         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25781         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25782         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25783
25784 2008-10-16  Jim Meyering  <meyering@redhat.com>
25785
25786         openat-die.c: avoid 'no previous prototype' warning
25787         * lib/openat-die.c: Include "openat.h".
25788         Reported by Reuben Thomas <rrt@sc3d.org>.
25789
25790 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25791
25792         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25793         * lib/netdb.in.h: Fix typo.
25794         Reported by Bruno Haible  <bruno@clisp.org>
25795
25796         * lib/netdb.in.h: Include sys/socket.h for platforms without
25797         netdb.h, to get structures like hostent on MinGW.
25798         * modules/netdb (Depends-on): Add sys_socket.
25799
25800 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25801
25802         * modules/netdb, modules/netdb-tests: New file.
25803         * m4/netdb_h.m4: New file.
25804         * lib/netdb.in.h: Add, currently just an empty file pending
25805         definitions.
25806         * tests/test-netdb.c: New file.
25807         * doc/posix-headers/netdb.texi: Mention that we replace it if
25808         needed.
25809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25810         netdb.
25811
25812 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25813
25814         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25815         with code.
25816
25817 2008-10-13  Bruno Haible  <bruno@clisp.org>
25818
25819         * lib/glthread/cond.c (glthread_cond_wait_func,
25820         glthread_cond_timedwait_func): Add a comment.
25821
25822 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25823
25824         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25825         * tests/test-select.c: Likewise,
25826
25827 2008-10-13  Bruno Haible  <bruno@clisp.org>
25828
25829         * lib/glthread/cond.c (glthread_cond_wait_func,
25830         glthread_cond_timedwait_func): Fix variable name.
25831         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25832
25833 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
25834
25835         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
25836         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
25837         struct sockaddr.sa_len.
25838         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
25839
25840 2008-10-13  Simon Josefsson  <simon@josefsson.org>
25841
25842         * build-aux/pmccabe2html: Add css and css_url parameters.
25843
25844 2008-10-12  Bruno Haible  <bruno@clisp.org>
25845
25846         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
25847         calling aclx_get.
25848         Reported by Rainer Tammer <tammer@tammer.net>.
25849
25850 2008-10-12  Bruno Haible  <bruno@clisp.org>
25851
25852         Use msvcrt aware primitives for creation/termination of Win32 threads.
25853         * lib/glthread/thread.c: Include <process.h>.
25854         (glthread_create_func): Use _beginthreadex instead of CreateThread.
25855         (wrapper_func): Update signature.
25856         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
25857
25858 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25859             Bruno Haible  <bruno@clisp.org>
25860
25861         Provide a Win32 implementation of the 'cond' module.
25862         * lib/glthread/cond.h [USE_WIN32]: New implementation.
25863         * lib/glthread/cond.c (glthread_cond_init_func,
25864         glthread_cond_wait_func, glthread_cond_timedwait_func,
25865         glthread_cond_signal_func, glthread_cond_broadcast_func,
25866         glthread_cond_destroy_func) [USE_WIN32]: New functions.
25867         * modules/cond (Dependencies): Add gettimeofday.
25868
25869 2008-10-11  Bruno Haible  <bruno@clisp.org>
25870
25871         Make sleep work on older versions of mingw.
25872         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
25873         only whether it exists.
25874         * doc/posix-functions/sleep.texi: Mention the problem with older
25875         versions of mingw.
25876
25877 2008-10-11  Bruno Haible  <bruno@clisp.org>
25878
25879         New module 'shutdown'.
25880         * modules/shutdown: New file.
25881         * lib/sys_socket.in.h (shutdown): New declaration.
25882         * lib/winsock.c (shutdown): New function.
25883         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25884         GNULIB_SHUTDOWN.
25885         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
25886         * doc/posix-functions/shutdown.texi: Document the new module.
25887
25888 2008-10-11  Jim Meyering  <meyering@redhat.com>
25889
25890         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
25891
25892 2008-10-11  Bruno Haible  <bruno@clisp.org>
25893
25894         New module 'fclose'.
25895         * modules/fclose: New file.
25896         * lib/stdio.in.h (fclose): New declaration.
25897         * lib/fclose.c: New file.
25898         * m4/fclose.m4: New file.
25899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
25900         REPLACE_FCLOSE.
25901         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
25902         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
25903         REPLACE_FCLOSE.
25904         * modules/close (Depends-on): fclose.
25905         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
25906
25907 2008-10-11  Bruno Haible  <bruno@clisp.org>
25908
25909         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
25910         set errno and don't call _close.
25911
25912 2008-10-10  Bruno Haible  <bruno@clisp.org>
25913
25914         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
25915         ACL, not afterwards. Fixes test failure on Cygwin.
25916
25917 2008-10-09  Ben Pfaff  <blp@gnu.org>
25918
25919         * build-aux/announce-gen: Fix gnulib version related part of usage
25920         message.  Die with a useful error message if no tarballs are
25921         found.
25922
25923 2008-10-10  Jim Meyering  <meyering@redhat.com>
25924
25925         bootstrap: use git's --depth=N option only if it's supported
25926         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
25927         recognize the --depth option.  Reported by Pádraig Brady.
25928
25929 2008-10-09  Bruno Haible  <bruno@clisp.org>
25930
25931         New module 'ioctl'.
25932         * modules/ioctl: New file.
25933         * lib/sys_socket.in.h (ioctl): Remove declaration.
25934         * lib/winsock.c: Include <sys/ioctl.h>.
25935         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
25936         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25937         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
25938         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
25939         * doc/posix-functions/ioctl.texi: Mention the new module.
25940
25941 2008-10-09  Bruno Haible  <bruno@clisp.org>
25942
25943         New module 'sys_ioctl'.
25944         * lib/sys_ioctl.in.h: New file.
25945         * m4/sys_ioctl_h.m4: New file.
25946         * modules/sys_ioctl: New file.
25947         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
25948
25949 2008-10-09  Bruno Haible  <bruno@clisp.org>
25950
25951         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
25952         * lib/winsock.c: Include <stdarg.h>.
25953         (rpl_ioctl): Change to second argument 'int' and then varargs.
25954
25955 2008-10-09  Bruno Haible  <bruno@clisp.org>
25956
25957         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
25958         when the sys_socket module is present and the system has <winsock2.h>.
25959
25960 2008-10-09  Bruno Haible  <bruno@clisp.org>
25961
25962         * doc/posix-functions/close.texi: Mention module 'close' instead of
25963         module 'sys_socket'.
25964
25965 2008-10-09  Bruno Haible  <bruno@clisp.org>
25966
25967         * doc/glibc-headers/sys_ioctl.texi: New file.
25968         * doc/gnulib.texi: Include it.
25969
25970 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25971             Bruno Haible  <bruno@clisp.org>
25972
25973         Combine the two replacements of 'close'.
25974         * lib/sys_socket.in.h (close): Define to a reminder to include
25975         <unistd.h>.
25976         (_gl_close_fd_maybe_socket): New declaration.
25977         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
25978         * lib/winsock.c (close): Remove undefinition.
25979         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
25980         needed for the gnulib module 'close'.
25981         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
25982         define to an error symbol or to a warning, if suitable.
25983         * lib/close.c: Include <sys/socket.h>.
25984         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
25985         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
25986         UNISTD_H_HAVE_WINSOCK2_H.
25987         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
25988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25989         UNISTD_H_HAVE_WINSOCK2_H.
25990         * modules/sys_socket (Files): Add m4/unistd_h.m4.
25991         (configure.ac): Set a module indicator.
25992         (Makefile.am): Substitute GNULIB_CLOSE.
25993         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
25994         * modules/poll-tests (Depends-on): Add close.
25995         * modules/select-tests (Depends-on): Likewise.
25996
25997 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
25998             Bruno Haible  <bruno@clisp.org>
25999
26000         New module 'close'.
26001         * modules/close: New file.
26002         * lib/unistd.in.h (close): Move declaration out of the
26003         FCHDIR_REPLACEMENT scope.
26004         (_gl_unregister_fd): New declaration.
26005         * lib/close.c: New file.
26006         * lib/fchdir.c (rpl_close): Remove function.
26007         * m4/close.m4: New file.
26008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26009         close.
26010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
26011         REPLACE_CLOSE.
26012         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
26013         REPLACE_CLOSE.
26014         * modules/fchdir (Depends-on): Add close.
26015
26016 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26017             Bruno Haible  <bruno@clisp.org>
26018
26019         * lib/fcntl.in.h (open): Simplify conditionals.
26020         (_gl_register_fd): New declaration.
26021         * lib/fchdir.c (rpl_open): Remove function.
26022         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
26023         also.
26024         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
26025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26026         open.
26027
26028 2008-10-09  Jim Meyering  <meyering@redhat.com>
26029
26030         GNUmakefile: use the more name-space-friendly "_version"
26031         * top/GNUmakefile (_dummy): Update.
26032         (_version): Rename from "version".
26033
26034 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26035             Bruno Haible  <bruno@clisp.org>
26036
26037         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
26038         rpl_close.
26039         (_gl_register_fd): New function, extracted from rpl_open.
26040         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
26041         (rpl_open, rpl_opendir): Use _gl_register_fd.
26042
26043 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26044
26045         Fix organization of 'open' replacement.
26046         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
26047         (gl_FUNC_OPEN): Use it.
26048         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
26049
26050 2008-10-08  Bruno Haible  <bruno@clisp.org>
26051
26052         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
26053
26054 2008-10-08  Simon Josefsson  <simon@josefsson.org>
26055
26056         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
26057         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
26058         listen).
26059
26060 2008-10-08  Eric Blake  <ebb9@byu.net>
26061
26062         GNUmakefile: add 'make version' target
26063         * top/GNUmakefile (_curr-ver): Split version update rules...
26064         (version): ...into a target.
26065
26066 2008-10-07  Bruno Haible  <bruno@clisp.org>
26067
26068         Use a more portable replacement expression for -0.0L.
26069         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
26070         instead of -0.0L. Fix m4 quotation.
26071
26072         * tests/test-signbit.c: Include <float.h>.
26073         (minus_zero): New variable.
26074         (test_signbitl): Use minus_zero instead of -zero.
26075         * modules/signbit-tests (Depends-on): Add float.
26076
26077         * tests/test-ceill.c: Include <float.h>.
26078         (zero): Remove variable.
26079         (minus_zero): New variable.
26080         (main): Use minus_zero instead of -zero.
26081         * modules/ceill-tests (Depends-on): Add float.
26082
26083         * tests/test-floorl.c: Include <float.h>.
26084         (zero): Remove variable.
26085         (minus_zero): New variable.
26086         (main): Use minus_zero instead of -zero.
26087         * modules/floorl-tests (Depends-on): Add float.
26088
26089         * tests/test-roundl.c: Include <float.h>.
26090         (zero): Remove variable.
26091         (minus_zero): New variable.
26092         (main): Use minus_zero instead of -zero.
26093         * modules/roundl-tests (Depends-on): Add float.
26094
26095         * tests/test-truncl.c: Include <float.h>.
26096         (zero): Remove variable.
26097         (minus_zero): New variable.
26098         (main): Use minus_zero instead of -zero.
26099         * modules/truncl-tests (Depends-on): Add float.
26100
26101         * tests/test-frexpl.c (zero): Remove variable.
26102         (minus_zero): New variable.
26103         (main): Use minus_zero instead of -zero.
26104         * modules/frexpl-tests (Depends-on): Add float.
26105
26106         * tests/test-isnan.c (zerol): Remove variable.
26107         (minus_zerol): New variable.
26108         (test_long_double): Use minus_zerol instead of -zerol.
26109         * modules/isnan-tests (Depends-on): Add float.
26110
26111         * tests/test-isnanl.h (zero): Remove variable.
26112         (minus_zero): New variable.
26113         (main): Use minus_zero instead of -zero.
26114         * modules/isnanl-nolibm-tests (Depends-on): Add float.
26115         * modules/isnanl-tests (Depends-on): Add float.
26116
26117         * tests/test-ldexpl.c (zero): Remove variable.
26118         (minus_zero): New variable.
26119         (main): Use minus_zero instead of -zero.
26120         * modules/ldexpl-tests (Depends-on): Add float.
26121
26122         * tests/test-snprintf-posix.h (zerol): Remove variable.
26123         (minus_zerol): New variable.
26124         (test_function): Use minus_zerol instead of -zerol.
26125         * modules/snprintf-posix-tests (Depends-on): Add float.
26126         * modules/vsnprintf-posix-tests (Depends-on): Add float.
26127
26128         * tests/test-sprintf-posix.h (zerol): Remove variable.
26129         (minus_zerol): New variable.
26130         (test_function): Use minus_zerol instead of -zerol.
26131         * modules/sprintf-posix-tests (Depends-on): Add float.
26132         * modules/vsprintf-posix-tests (Depends-on): Add float.
26133
26134         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
26135         (minus_zerol): New variable.
26136         (test_function): Use minus_zerol instead of -zerol.
26137         * modules/vasnprintf-posix-tests (Depends-on): Add float.
26138
26139         * tests/test-vasprintf-posix.c (zerol): Remove variable.
26140         (minus_zerol): New variable.
26141         (test_function): Use minus_zerol instead of -zerol.
26142         * modules/vasprintf-posix-tests (Depends-on): Add float.
26143
26144 2008-10-07  Simon Josefsson  <simon@josefsson.org>
26145
26146         * MODULES.html.sh (Support for building documentation): Mention
26147         pmccabe2html.  Sort entries.
26148
26149         Add pmccabe2html module, from gnupdf.
26150         * build-aux/pmccabe.css: New file.
26151         * build-aux/pmccabe2html: New file.
26152         * m4/pmccabe2html.m4: New file.
26153         * modules/pmccabe2html: New file.
26154
26155 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
26156
26157         flock: new module
26158         * MODULES.html.sh: Add to list of modules.
26159         * lib/flock.c: flock implementation for Windows and Unix systems
26160         which have fcntl.
26161         * doc/glibc-functions/flock.texi: Update documentation.
26162         * lib/sys_file.in.h: <sys/file.h> header file.
26163         * m4/flock.m4: M4 macros.
26164         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26165         * modules/flock: flock module.
26166         * modules/flock-tests: flock tests module.
26167         * modules/sys_file: sys/file.h module.
26168         * tests/test-flock.c: test suite for flock.
26169
26170 2008-10-06  Jim Meyering  <meyering@redhat.com>
26171
26172         bootstrap: check for LT_INIT more portably still ;-)
26173         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26174         Spotted by Bruno Haible.
26175
26176 2008-10-06  Eric Blake  <ebb9@byu.net>
26177
26178         test-signbit: avoid tripping Irix cc bug on -0.0L
26179         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26180         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26181         entire testsuite consistent and avoids an Irix 6.2 bug.
26182
26183 2008-10-05  Bruno Haible  <bruno@clisp.org>
26184             Jim Meyering  <jim@meyering.net>
26185
26186         Add an option for ignoring EPIPE during close_stdout.
26187         * lib/closeout.h: Include <stdbool.h>.
26188         (close_stdout_set_ignore_EPIPE): New declaration.
26189         * lib/closeout.c: Include <stdbool.h>.
26190         (ignore_EPIPE): New variable.
26191         (close_stdout_set_ignore_EPIPE): New function.
26192         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26193         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26194         failure.
26195         * modules/closeout (Depends-on): Add stdbool.
26196
26197 2008-10-05  Bruno Haible  <bruno@clisp.org>
26198
26199         * modules/accept: New file.
26200         * modules/bind: New file.
26201         * modules/connect: New file.
26202         * modules/getpeername: New file.
26203         * modules/getsockname: New file.
26204         * modules/getsockopt: New file.
26205         * modules/listen: New file.
26206         * modules/recv: New file.
26207         * modules/recvfrom: New file.
26208         * modules/send: New file.
26209         * modules/sendto: New file.
26210         * modules/setsockopt: New file.
26211         * modules/socket: New file.
26212         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26213         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26214         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26215         the particular module is requested. Add a link warning when the
26216         particular module is not requested.
26217         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26218         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26219         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26220         the particular module is requested.
26221         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26222         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26223         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26224         * modules/sys_socket (Depends-on): Add link-warning.
26225         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26226         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26227         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26228         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26229         GL_LINK_WARNING.
26230         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26231         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26232         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26233         * doc/posix-functions/getpeername.texi: Mention the new module
26234         'getpeername'.
26235         * doc/posix-functions/getsockname.texi: Mention the new module
26236         'getsockname'.
26237         * doc/posix-functions/getsockopt.texi: Mention the new module
26238         'getsockopt'.
26239         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26240         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26241         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26242         * doc/posix-functions/send.texi: Mention the new module 'send'.
26243         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26244         * doc/posix-functions/setsockopt.texi: Mention the new module
26245         'setsockopt'.
26246         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26247         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26248         listen, connect, accept.
26249         * modules/select-tests (Depends-on): Likewise.
26250
26251 2008-10-05  Bruno Haible  <bruno@clisp.org>
26252
26253         * lib/winsock.c (strerror): Remove unused #undef.
26254         (rpl_close): Remove unused local variable.
26255
26256         * modules/sys_socket (Depends-on); Add errno.
26257
26258 2008-10-05  Bruno Haible  <bruno@clisp.org>
26259
26260         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26261         (select): Add a link warning when the 'select' module is not used.
26262         * modules/sys_select (Depends-on): Add link-warning.
26263         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26264         Suggested by Paolo Bonzini.
26265
26266 2008-10-05  Jim Meyering  <meyering@redhat.com>
26267
26268         bootstrap: check for LT_INIT more portably
26269         * build-aux/bootstrap: Avoid using grep -E, since it's not
26270         portable enough.  Suggestion from Bruno Haible.
26271
26272 2008-10-05  Bruno Haible  <bruno@clisp.org>
26273
26274         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26275         as being fixed by gnulib.
26276
26277 2008-10-05  Bruno Haible  <bruno@clisp.org>
26278
26279         * modules/select-tests: New file, mostly copied from
26280         modules/sys_select-tests.
26281         * tests/test-select.c: New file, mostly copied from
26282         tests/test-sys_select.c.
26283         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26284         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26285         (Makefile.am): Remove test_sys_select_LDADD.
26286
26287         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26288         to an undefined symbol, for an error message.
26289         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26290         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26291         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26292         winsock-select.c here.
26293         * modules/sys_select (Files): Remove lib/winsock-select.c.
26294         (Depends-on): Remove alloca.
26295         (Makefile.am): Substitute GNULIB_SELECT.
26296         * modules/select: New file.
26297         * doc/posix-functions/select.texi: Update.
26298
26299 2008-10-05  Bruno Haible  <bruno@clisp.org>
26300
26301         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26302         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26303         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26304         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26305         getdtablesize.
26306         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26307         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26308
26309 2008-10-05  Bruno Haible  <bruno@clisp.org>
26310
26311         * modules/getdtablesize-tests: New file.
26312         * tests/test-getdtablesize.c: New file.
26313
26314         New module 'getdtablesize'.
26315         * lib/unistd.in.h (getdtablesize): New declaration.
26316         * lib/getdtablesize.c: New file.
26317         * m4/getdtablesize.m4: New file.
26318         * modules/getdtablesize: New file.
26319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26320         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26321         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26322         HAVE_GETDTABLESIZE.
26323         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26324
26325 2008-10-05  Bruno Haible  <bruno@clisp.org>
26326
26327         * modules/sched (Makefile.am): Fix typo.
26328         Reported by Simon Josefsson.
26329
26330 2008-10-05  Jim Meyering  <meyering@redhat.com>
26331
26332         bootstrap: check for LT_INIT, too
26333         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26334         are deprecated.  Suggestion from Ralf Wildenhues.
26335
26336 2008-10-05  Bruno Haible  <bruno@clisp.org>
26337
26338         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26339         overriding them by ours.
26340         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26341
26342 2008-10-05  Jim Meyering  <meyering@redhat.com>
26343
26344         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26345         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26346         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26347
26348 2008-10-04  Bruno Haible  <bruno@clisp.org>
26349
26350         * modules/dup2 (License): Change to LGPLv2+.
26351         * modules/sleep (License): Likewise.
26352         * modules/perror (License): Likewise.
26353         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26354         Blake.
26355         * modules/signal (License): Likewise.
26356         * modules/sigprocmask (License): Likewise.
26357         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26358         Meyering.
26359
26360 2008-10-04  Bruno Haible  <bruno@clisp.org>
26361
26362         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26363         Reported by Rainer Tammer <tammer@tammer.net>.
26364
26365 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26366             Bruno Haible  <bruno@clisp.org>
26367
26368         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26369         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26370         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26371
26372 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26373
26374         filevercmp: new module
26375         * lib/filevercmp.h: New function filevercmp comparing version strings.
26376         * lib/filevercmp.c: Implementation of filevercmp function.
26377         * modules/filevercmp: Module metadata.
26378         * tests/test-filevercmp.c: Unit test for new module.
26379         * modules/filevercmp-tests: Unit test metadata.
26380         * MODULES.html.sh: Add filevercmp module.
26381
26382 2008-10-03  Bruno Haible  <bruno@clisp.org>
26383
26384         * lib/c-ctype.h: Add comment.
26385         Reported by Jim Meyering.
26386
26387 2008-10-02  Bruno Haible  <bruno@clisp.org>
26388
26389         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26390
26391 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26392
26393         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26394         name of bootstrap.conf accordingly.
26395
26396 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26397
26398         * build-aux/bootstrap: Install git-merge-changelog configuration
26399         items into .gitconfig if needed.
26400
26401 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26402
26403         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26404         git repository, and initialize/update it accordingly.
26405
26406 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26407
26408         * modules/fsync-tests: New file.
26409         * tests/test-fsync.c: New file.
26410
26411         New module 'fsync'.
26412         * lib/fsync.c: New file.
26413         * m4/fsync.m4: New file.
26414         * modules/fsync: New file.
26415         * lib/unistd.in.h (fsync): New declaration.
26416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26417         GNULIB_FSYNC and HAVE_FSYNC.
26418         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26419         * MODULES.html.sh (posix_functions): Add fsync.
26420         * doc/posix-functions/fsync.texi: Mention the new module.
26421
26422 2008-10-02  Jim Meyering  <meyering@redhat.com>
26423
26424         fts.c: sync with similar code from coreutils' remove.c
26425         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26426         Guard also with "#if defined __linux__", since for now at least,
26427         this code is Linux-kernel-specific.
26428
26429 2008-10-02  Jim Meyering  <meyering@redhat.com>
26430
26431         fts: bug fixes
26432         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26433         Include <sys/vfs.h>, not <sys/statfs.h>.
26434
26435         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26436         Include <sys/vfs.h>, not <sys/statfs.h>.
26437
26438 2008-10-01  Bruno Haible  <bruno@clisp.org>
26439
26440         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26441         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26442         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26443         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26444         * doc/posix-functions/posix_spawnp.texi: Likewise.
26445         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26446         whether posix_spawn actually works.
26447         * m4/pipe.m4 (gl_PIPE): Likewise.
26448         * modules/execute (Files): Add m4/posix_spawn.m4.
26449         * modules/pipe (Files): Add m4/posix_spawn.m4.
26450         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26451
26452 2008-10-01  Jim Meyering  <meyering@redhat.com>
26453
26454         remove trailing spaces
26455         * NEWS: Likewise.
26456         * lib/poll.c (poll): Likewise.
26457         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26458         * lib/winsock.c (rpl_close): Likewise.
26459         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26460         * modules/yield: Likewise.
26461         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26462         * tests/test-sys_select.c (connect_to_socket): Likewise.
26463
26464         fts.c: adjust a new interface to be more generally useful
26465         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26466         (fts_build): Adjust caller.
26467
26468 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26469
26470         * modules/cond-tests: New file.
26471         * tests/test-cond.c: New file.
26472
26473 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26474             Bruno Haible  <bruno@clisp.org>
26475
26476         * modules/cond (Dependencies): Add errno, time.
26477         * lib/glthread/cond.h: Include <time.h>.
26478         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26479         across platforms.
26480
26481 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26482             Bruno Haible  <bruno@clisp.org>
26483
26484         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26485
26486 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26487             Bruno Haible  <bruno@clisp.org>
26488
26489         * modules/tls-tests (Depends-on): Add thread, yield.
26490         (configure.ac): Remove all checks.
26491         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26492         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26493         gl_thread_self): Remove definitions. Include glthread/thread.h and
26494         glthread/yield.h instead.
26495         (test_tls): Pass an additional NULL argument to gl_thread_join.
26496
26497 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26498             Bruno Haible  <bruno@clisp.org>
26499
26500         * modules/lock-tests (Depends-on): Add thread, yield.
26501         (configure.ac): Remove all checks.
26502         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26503         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26504         gl_thread_self): Remove definitions. Include glthread/thread.h and
26505         glthread/yield.h instead.
26506         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26507         additional NULL argument to gl_thread_join.
26508
26509 2008-09-30  Bruno Haible  <bruno@clisp.org>
26510
26511         Fix the Win32 implementation of the 'thread' module.
26512         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26513         pointer type.
26514         (gl_thread_self): Invoke gl_thread_self_func.
26515         (gl_thread_self_func): New declaration.
26516         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26517         (do_init_self_key, init_self_key): New functions.
26518         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26519         Remove some fields.
26520         (running_threads, running_lock): Remove variables.
26521         (get_current_thread_handle): New function.
26522         (gl_thread_self_func, wrapper_func, glthread_create_func,
26523         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26524         simplified.
26525
26526 2008-09-30  Bruno Haible  <bruno@clisp.org>
26527
26528         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26529         files.
26530
26531 2008-09-30  Jim Meyering  <meyering@redhat.com>
26532
26533         fts.m4: correct the test for statfs.f_type
26534         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26535         when checking for statfs.f_type.
26536
26537 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26538
26539         tests: avoid some compiler warnings
26540         * tests/test-memchr.c (main): Pass NULL indirectly.
26541         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26542
26543 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
26544
26545         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26546         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26547         exactly specified dayshifts.
26548         (dayshift): New rule.
26549         (rel): Add dayshift.
26550         (relative_time_table) [tomorrow, yesterday, today, now]:
26551         Use tDAY_SHIFT in place of tDAY_UNIT.
26552         * tests/test-getdate.c: Add tests for now-disallowed countable
26553         dayshifts, e.g., "4 yesterday ago".
26554
26555 2008-09-29  Bruno Haible  <bruno@clisp.org>
26556
26557         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26558         * tests/test-posix_spawn1.in.sh: Renamed from
26559         tests/test-posix_spawn.in.sh.
26560         * tests/test-posix_spawn2.c: New file.
26561         * tests/test-posix_spawn2.in.sh: New file.
26562         * modules/posix_spawnp-tests (Files): Update.
26563         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26564
26565 2008-09-29  Bruno Haible  <bruno@clisp.org>
26566
26567         Propagate effects of putenv/setenv/unsetenv to child processes.
26568         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26569         * lib/pipe.c (create_pipe): Likewise.
26570
26571 2008-09-29  Bruno Haible  <bruno@clisp.org>
26572
26573         Enable use of shell scripts as executables in mingw.
26574         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26575         run the program as a shell script.
26576         * lib/pipe.c (create_pipe): Likewise.
26577         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26578         resulting array.
26579
26580 2008-09-29  Eric Blake  <ebb9@byu.net>
26581
26582         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26583
26584 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26585
26586         * doc/posix-functions/accept.texi: Update mingw problems.
26587         * doc/posix-functions/bind.texi: Update mingw problems.
26588         * doc/posix-functions/close.texi: Update mingw problems.
26589         * doc/posix-functions/connect.texi: Update mingw problems.
26590         * doc/posix-functions/getpeername.texi: Update mingw problems.
26591         * doc/posix-functions/getsockname.texi: Update mingw problems.
26592         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26593         * doc/posix-functions/ioctl.texi: Update mingw problems.
26594         * doc/posix-functions/listen.texi: Update mingw problems.
26595         * doc/posix-functions/recv.texi: Update mingw problems.
26596         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26597         * doc/posix-functions/select.texi: Update mingw problems.
26598         * doc/posix-functions/send.texi: Update mingw problems.
26599         * doc/posix-functions/sendto.texi: Update mingw problems.
26600         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26601         * doc/posix-functions/socket.texi: Update mingw problems.
26602
26603 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26604             Bruno Haible  <bruno@clisp.org>
26605
26606         * lib/sys_select.in.h: Include sys/time.h.
26607         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26608         * modules/sys_select: Depend on sys_time.
26609         * tests/test-sys_select.c: Test that sys/select.h defines struct
26610         timeval fully.
26611
26612 2008-09-29  Bruno Haible  <bruno@clisp.org>
26613
26614         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26615         * lib/sys_select.in.h: Likewise.
26616
26617 2008-09-29  Bruno Haible  <bruno@clisp.org>
26618
26619         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26620
26621 2008-09-29  Bruno Haible  <bruno@clisp.org>
26622
26623         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26624         Set LIBSOCKET instead of augmenting LIBS.
26625         * modules/sockets (Link): New section.
26626         * modules/sockets-tests (test_sockets_LDADD): New variable.
26627         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26628         * modules/poll-tests (test_poll_LDADD): New variable.
26629         * NEWS: Document the change.
26630
26631 2008-09-29  Bruno Haible  <bruno@clisp.org>
26632
26633         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26634         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26635         ARPA_INET_H directly.
26636         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26637
26638 2008-09-28  Bruno Haible  <bruno@clisp.org>
26639
26640         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26641         from gl_HEADER_SYS_SOCKET.
26642         (gl_HEADER_SYS_SOCKET): Invoke it.
26643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26644
26645 2008-09-28  Bruno Haible  <bruno@clisp.org>
26646
26647         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26648         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26649         Needed on OSF/1 4.0.
26650
26651 2008-09-28  Bruno Haible  <bruno@clisp.org>
26652
26653         Override open more carefully.
26654         * lib/open.c (orig_open): New function.
26655         (rpl_open): Use orig_open instead of open.
26656         * lib/fcntl.in.h: Add special invocation convention.
26657         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26658         (gl_FUNC_OPEN): Invoke it.
26659
26660         Override freopen more carefully.
26661         * lib/freopen.c (orig_freopen): New function.
26662         (rpl_freopen): Use orig_freopen instead of freopen.
26663         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26664         (gl_FUNC_FREOPEN): Invoke it.
26665
26666         Override fopen more carefully.
26667         * lib/fopen.c (orig_fopen): New function.
26668         (rpl_fopen): Use orig_fopen instead of fopen.
26669         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26670         (gl_FUNC_FOPEN): Invoke it.
26671         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26672
26673 2008-09-28  Bruno Haible  <bruno@clisp.org>
26674
26675         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26676         SIGPIPE.
26677
26678 2008-09-28  Bruno Haible  <bruno@clisp.org>
26679
26680         * tests/test-sigaction.c (handler, main): Disable the check whether
26681         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26682         glibc systems with LinuxThreads.
26683
26684 2008-09-28  Bruno Haible  <bruno@clisp.org>
26685
26686         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26687
26688         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26689         with AIX xlc.
26690         * lib/fcntl.in.h (open): Likewise.
26691         Reported by Rainer Tammer <tammer@tammer.net>.
26692
26693 2008-09-28  Bruno Haible  <bruno@clisp.org>
26694
26695         * modules/posix_spawnp-tests: New file.
26696         * tests/test-posix_spawn.c: New file.
26697         * tests/test-posix_spawn.in.sh: New file.
26698
26699         New module 'posix_spawnp'.
26700         * modules/posix_spawnp: New file.
26701         * lib/spawnp.c: New file, from GNU libc with modifications.
26702         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26703
26704         New module 'posix_spawn'.
26705         * modules/posix_spawn: New file.
26706         * lib/spawn.c: New file, from GNU libc with modifications.
26707         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26708
26709         New module 'posix_spawnattr_destroy'.
26710         * modules/posix_spawnattr_destroy: New file.
26711         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26712         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26713         module.
26714
26715         New module 'posix_spawnattr_setsigmask'.
26716         * modules/posix_spawnattr_setsigmask: New file.
26717         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26718         modifications.
26719         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26720         new module.
26721
26722         New module 'posix_spawnattr_getsigmask'.
26723         * modules/posix_spawnattr_getsigmask: New file.
26724         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26725         modifications.
26726         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26727         new module.
26728
26729         New module 'posix_spawnattr_setsigdefault'.
26730         * modules/posix_spawnattr_setsigdefault: New file.
26731         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26732         modifications.
26733         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26734         new module.
26735
26736         New module 'posix_spawnattr_getsigdefault'.
26737         * modules/posix_spawnattr_getsigdefault: New file.
26738         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26739         modifications.
26740         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26741         new module.
26742
26743         New module 'posix_spawnattr_setschedpolicy'.
26744         * modules/posix_spawnattr_setschedpolicy: New file.
26745         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26746         modifications.
26747         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26748         new module.
26749
26750         New module 'posix_spawnattr_getschedpolicy'.
26751         * modules/posix_spawnattr_getschedpolicy: New file.
26752         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26753         modifications.
26754         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26755         new module.
26756
26757         New module 'posix_spawnattr_setschedparam'.
26758         * modules/posix_spawnattr_setschedparam: New file.
26759         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26760         modifications.
26761         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26762         new module.
26763
26764         New module 'posix_spawnattr_getschedparam'.
26765         * modules/posix_spawnattr_getschedparam: New file.
26766         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26767         modifications.
26768         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26769         new module.
26770
26771         New module 'posix_spawnattr_setpgroup'.
26772         * modules/posix_spawnattr_setpgroup: New file.
26773         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26774         modifications.
26775         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26776         module.
26777
26778         New module 'posix_spawnattr_getpgroup'.
26779         * modules/posix_spawnattr_getpgroup: New file.
26780         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26781         modifications.
26782         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26783         module.
26784
26785         New module 'posix_spawnattr_setflags'.
26786         * modules/posix_spawnattr_setflags: New file.
26787         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26788         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26789         module.
26790
26791         New module 'posix_spawnattr_getflags'.
26792         * modules/posix_spawnattr_getflags: New file.
26793         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26794         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26795         module.
26796
26797         New module 'posix_spawnattr_init'.
26798         * modules/posix_spawnattr_init: New file.
26799         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26800         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26801         module.
26802
26803         New module 'posix_spawn_file_actions_destroy'.
26804         * modules/posix_spawn_file_actions_destroy: New file.
26805         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26806         modifications.
26807         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26808         the new module.
26809
26810         New module 'posix_spawn_file_actions_addopen'.
26811         * modules/posix_spawn_file_actions_addopen: New file.
26812         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26813         modifications.
26814         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26815         the new module.
26816
26817         New module 'posix_spawn_file_actions_adddup2'.
26818         * modules/posix_spawn_file_actions_adddup2: New file.
26819         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26820         modifications.
26821         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26822         the new module.
26823
26824         New module 'posix_spawn_file_actions_addclose'.
26825         * modules/posix_spawn_file_actions_addclose: New file.
26826         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26827         modifications.
26828         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
26829         the new module.
26830
26831         New module 'posix_spawn_file_actions_init'.
26832         * modules/posix_spawn_file_actions_init: New file.
26833         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
26834         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
26835         new module.
26836
26837         New module 'posix_spawn-internal'.
26838         * modules/posix_spawn-internal: New file.
26839         * lib/spawn_int.h: New file, from GNU libc with modifications.
26840         * lib/spawni.c: New file, from GNU libc with modifications.
26841         * m4/posix_spawn.m4: New file.
26842
26843         New module 'spawn'.
26844         * modules/spawn: New file.
26845         * lib/spawn.in.h: New file, from GNU libc with modifications.
26846         * m4/spawn_h.m4: New file.
26847         * doc/posix-headers/spawn.texi: Mention the new module.
26848
26849 2008-09-28  Bruno Haible  <bruno@clisp.org>
26850
26851         * modules/sched-tests: New file.
26852         * tests/test-sched.c: New file.
26853
26854         New module 'sched'.
26855         * modules/sched: New file.
26856         * lib/sched.in.h: New file.
26857         * m4/sched_h.m4: New file.
26858         * doc/posix-headers/sched.texi: Mention the new module.
26859
26860 2008-09-27  Eric Blake  <ebb9@byu.net>
26861
26862         Fix previous patch, and tweak references to $0.
26863         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
26864         (func_version, func_gnulib_dir): Don't call this program
26865         gnulib-tool.
26866         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
26867         with using $0 in function.
26868         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
26869         (func_fatal_error): Reuse the name the user invoked us with.
26870
26871 2008-09-27  Bruno Haible  <bruno@clisp.org>
26872
26873         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
26874         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
26875         (gl_ICONV_H): Not here.
26876         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26877         instead of assigning ICONV_H directly.
26878
26879         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
26880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
26881         WCHAR_H directly.
26882
26883 2008-09-27  Bruno Haible  <bruno@clisp.org>
26884
26885         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
26886         * modules/arpa_inet (Depends-on): Add link-warning.
26887         (Makefile.am): Insert the definition of GL_LINK-WARNING.
26888         * modules/unistd (Makefile.am): Likewise.
26889
26890 2008-09-26  Bruno Haible  <bruno@clisp.org>
26891
26892         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
26893         variables.
26894         (func_version): Essentially copied from gnulib-tool.
26895         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
26896         func_readlink): Copied from gnulib-tool.
26897
26898 2008-09-26  Bruno Haible  <bruno@clisp.org>
26899
26900         * gnulib-tool (func_version): Change directory to $gnulib_dir before
26901         invoking git-version-gen.
26902
26903 2008-09-26  Bruno Haible  <bruno@clisp.org>
26904
26905         * posix-modules: Update to directory names changed on 2008-01-19.
26906         Remove commas in output before splitting into words. No more need to
26907         avoid 'ftruncate' since 2007-02-19.
26908
26909 2008-09-26  Bruno Haible  <bruno@clisp.org>
26910
26911         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
26912
26913 2008-09-26  Bruno Haible  <bruno@clisp.org>
26914
26915         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
26916         * modules/fwriteerror (Depends-on): Add errno.
26917
26918 2008-09-26  Bruno Haible  <bruno@clisp.org>
26919
26920         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
26921         * tests/test-vc-list-files-cvs.sh: Likewise.
26922
26923 2008-09-26  Bruno Haible  <bruno@clisp.org>
26924
26925         * doc/posix-headers/sys_resource.texi: Reorder items.
26926
26927 2008-09-26  Jim Meyering  <meyering@redhat.com>
26928
26929         fts: tweak inode comparison function
26930         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
26931         inode numbers, as documented.
26932
26933         fts: sort dirent entries on inode number before traversing
26934         This avoids a quadratic, seek-related performance penalty when
26935         operating on a directory containing many entries (measurable at 10k;
26936         3.5 hours at 2 million entries with a cold cache) on certain types
26937         of file systems, including ext3 and ext4, but not tmpfs.
26938         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
26939         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
26940         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
26941         (fs_handles_readdir_ordered_dirents_efficiently): New function.
26942         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
26943         (fts_build): Set the stat.st_ino member from D_INO.
26944         If it is likely to be useful, sort dirent entries on inode number.
26945
26946         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
26947         and the struct statfs.f_type member.
26948         * modules/fts (Depends-on): Add d-ino.
26949
26950 2008-09-26  Bruno Haible  <bruno@clisp.org>
26951
26952         * modules/sigpipe-die (Depends-on): Add sigpipe.
26953
26954         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
26955         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
26956         and GNULIB_STDIO_H_SIGPIPE are set.
26957         * lib/stdio-write.c: New file.
26958         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
26959         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26960         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26961         REPLACE_STDIO_WRITE_FUNCS.
26962         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
26963         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26964         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26965         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26966         * modules/stdio (Files): Add lib/stdio-write.c.
26967         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
26968         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
26969         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
26970         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
26971         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
26972         REPLACE_FPRINTF_POSIX.
26973         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
26974         REPLACE_PRINTF_POSIX.
26975         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
26976         REPLACE_VFPRINTF_POSIX.
26977         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
26978         REPLACE_VPRINTF_POSIX.
26979         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
26980         SIGPIPE issue.
26981         * doc/posix-functions/fputc.texi: Likewise.
26982         * doc/posix-functions/fputs.texi: Likewise.
26983         * doc/posix-functions/fwrite.texi: Likewise.
26984         * doc/posix-functions/printf.texi: Likewise.
26985         * doc/posix-functions/putc.texi: Likewise.
26986         * doc/posix-functions/putchar.texi: Likewise.
26987         * doc/posix-functions/puts.texi: Likewise.
26988         * doc/posix-functions/vfprintf.texi: Likewise.
26989         * doc/posix-functions/vprintf.texi: Likewise.
26990
26991         * modules/safe-write (Depends-on): Add write.
26992
26993         * modules/sigpipe-tests: New file.
26994         * tests/test-sigpipe.c: New file.
26995         * tests/test-sigpipe.sh: New file.
26996
26997         * modules/write: New file.
26998         * lib/unistd.in.h: Include <sys/types.h>.
26999         (write): New declaration.
27000         * lib/write.c: New file.
27001         * m4/write.m4: New file.
27002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27003         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
27004         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
27005         GNULIB_WRITE, REPLACE_WRITE.
27006         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
27007         and the SIGPIPE issue.
27008
27009         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
27010         (raise): New declaration.
27011         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
27012         (ext_signal): New function.
27013         (rpl_raise): New function.
27014         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
27015         GNULIB_SIGNAL_H_SIGPIPE.
27016         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
27017         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
27018
27019         * modules/sigpipe: New file.
27020         * m4/sigpipe.m4: New file.
27021
27022 2008-09-25  Derek Price  <derek@ximbiot.com>
27023             Bruno Haible  <bruno@clisp.org>
27024
27025         * gnulib-tool (func_import): Report all license incompatibilities, not
27026         just the first one.
27027
27028 2008-09-25  Bruno Haible  <bruno@clisp.org>
27029
27030         * gnulib-tool (func_import): When computing the edits, consider not
27031         only the Makefile.ams that exist but also those that will be generated.
27032
27033 2008-09-25  Simon Josefsson  <simon@josefsson.org>
27034
27035         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
27036         fixes gnulib-tool --test warning about duplicate dependency.
27037
27038 2008-09-25  Bruno Haible  <bruno@clisp.org>
27039
27040         * gnulib-tool: Don't ask the user to perform edits in the generated
27041         Makefile.ams.
27042         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
27043         apply to the Makefile.am being generated.
27044         (func_emit_tests_Makefile_am): Execute edits that apply to the
27045         Makefile.am being generated.
27046         (func_import): Setup list of Makefile.am edits before emitting the
27047         Makefile.ams, not at the end.
27048         (func_create_testdir): Update.
27049         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27050
27051 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27052
27053         * gnulib-tool (func_import): Store the --tests-base option in the
27054         comment in gnulib-cache.m4.
27055
27056 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
27057
27058         * NEWS: Document increased portability that sys_select now provides.
27059
27060         * lib/sys_select.in.h: Install select wrapper.
27061         * lib/sys_socket.in.h: Use more descriptive name when there is no
27062         select wrapper.
27063         * lib/winsock-select.c: New.
27064         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
27065         Require gl_HEADER_SYS_SOCKET.
27066         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
27067         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
27068         * tests/test-sys_select.c: Add functional tests.
27069
27070 2008-09-24  Eric Blake  <ebb9@byu.net>
27071
27072         open, fopen: close fd leak in last patch
27073         * lib/open.c (rpl_open): Close fd before returning error.
27074         * lib/fopen.c (rpl_fopen): Close fd before returning error.
27075         * doc/posix-functions/open.texi (open): Document that Irix also
27076         has the bug.
27077         * doc/posix-functions/fopen.texi (fopen): Likewise.
27078         Reported by Paolo Bonzini.
27079
27080 2008-09-24  Bruno Haible  <bruno@clisp.org>
27081
27082         Ensure that a filename ending in a slash cannot be used to access a
27083         non-directory.
27084         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
27085         to check whether it's really a directory.
27086         * lib/fopen.c: Include fcntl.h, unistd.h.
27087         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
27088         and fdopen().
27089         * modules/fopen (Depends-on): Add unistd.
27090         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
27091         * tests/test-fopen.c (main): Likewise.
27092         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
27093         * doc/posix-functions/fopen.texi: Likewise.
27094         Reported by Eric Blake.
27095
27096 2008-09-23  Eric Blake  <ebb9@byu.net>
27097
27098         c-stack: avoid compiler optimizations when provoking overflow
27099         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
27100         recursion harder to optimize, to ensure a stack overflow occurs.
27101         * tests/test-c-stack.c (recurse): Likewise.
27102         Borrowed from libsigsegv.
27103
27104         c-stack: work around Irix sigaltstack bug
27105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
27106         whether sigaltstack uses wrong end of stack_t (copied in part from
27107         libsigsegv).
27108         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
27109         Irix bug, without requiring an over-allocation.
27110         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
27111         bug.
27112
27113         fopen: document mingw bug on directories
27114         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
27115         not allowing a stream visiting a directory, even though reading
27116         from such a stream is not portable.
27117
27118 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27119
27120         * lib/poll.c: Rewrite.
27121         * modules/poll: Depend on alloca.
27122
27123 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27124
27125         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
27126         instead define prototypes for a full set of wrappers.  Ensure
27127         that Cygwin does not use the compatibility code, which is only
27128         for MinGW.
27129         * lib/winsock.c: New.
27130         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
27131         * modules/sys_socket: Add lib/winsock.c.
27132
27133         * modules/poll-tests: Add errno and perror.
27134         * tests/test-poll.c: Use ioctl, not ioctlsocket.
27135
27136 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27137
27138         * tests/test-poll.c: Downgrade minimum needed Winsock version.
27139
27140 2008-09-23  Bruno Haible  <bruno@clisp.org>
27141
27142         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
27143         * doc/glibc-functions/*: Likewise.
27144
27145 2008-09-23  Simon Josefsson  <simon@josefsson.org>
27146
27147         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
27148         success.
27149
27150 2008-09-22  Eric Blake  <ebb9@byu.net>
27151             Bruno Haible  <bruno@clisp.org>
27152
27153         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
27154         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
27155         supply %A but mishandle pseudo-NaN.
27156         Reported by Simon Josefsson.
27157
27158 2008-09-21  Bruno Haible  <bruno@clisp.org>
27159
27160         * tests/test-lock.c (main): Tweak skip message.
27161         * tests/test-tls.c (main): Likewise.
27162
27163 2008-09-21  Bruno Haible  <bruno@clisp.org>
27164
27165         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27166         whether 'struct sigaction' has sa_sigaction here...
27167         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27168         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27169
27170 2008-09-21  Bruno Haible  <bruno@clisp.org>
27171
27172         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27173         section.
27174         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27175         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27176         the new section.
27177         (Support for obsolete systems lacking POSIX:2001): New section.
27178         (String handling <string.h>): Move strdup to the new section.
27179         Suggested by Simon Josefsson and Paolo Bonzini.
27180
27181 2008-09-21  Bruno Haible  <bruno@clisp.org>
27182
27183         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27184         exponents in %e and %g results on 'long double'. Needed for mingw's
27185         improved *printf functions.
27186         * tests/test-vasprintf-posix.c (test_function): Likewise.
27187         * tests/test-snprintf-posix.h (test_function): Likewise.
27188         * tests/test-sprintf-posix.h (test_function): Likewise.
27189         Reported by Eric Blake.
27190
27191 2008-09-21  Bruno Haible  <bruno@clisp.org>
27192
27193         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27194         * tests/test-sprintf-posix.h (test_function): Likewise.
27195
27196 2008-09-21  Bruno Haible  <bruno@clisp.org>
27197
27198         * modules/getpass (Depends-on): Add strdup-posix.
27199
27200         New module 'strdup-posix'.
27201         * modules/strdup-posix: New file.
27202         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27203         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27205         REPLACE_STRDUP.
27206         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27207         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27209         strdup-posix.
27210
27211         * modules/strdup (Depends-on): Remove malloc-posix.
27212
27213 2008-09-20  Bruno Haible  <bruno@clisp.org>
27214
27215         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27216         Wildenhues.
27217
27218 2008-09-20  Bruno Haible  <bruno@clisp.org>
27219
27220         Ensure that wint_t gets defined on IRIX 5.3.
27221         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27222         * lib/wctype.in.h (wint_t): Likewise.
27223         (__wctype_wint_t): Remove type.
27224         (isw*): Use wint_t instead of __wctype_wint_t.
27225         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27226         * modules/wchar (Files): Add m4/wint_t.m4.
27227         (Makefile.am): Substitute HAVE_WINT_T.
27228         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27229         * tests/test-wctype.c: Check that wint_t is defined.
27230         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27231         * doc/posix-headers/wctype.texi: Likewise.
27232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27233
27234 2008-09-18  Bruno Haible  <bruno@clisp.org>
27235
27236         * gnulib-tool (func_exit): Update comment.
27237
27238 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27239
27240         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27241         assumes strdup exists and does not depend on strdup to return
27242         ENOMEM on out of memory conditions.
27243
27244 2008-09-18  Bruno Haible  <bruno@clisp.org>
27245
27246         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
27247         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27248         digits for the exponent.
27249
27250 2008-09-18  Jim Meyering  <meyering@redhat.com>
27251             Bruno Haible  <bruno@clisp.org>
27252
27253         * lib/vasnprintf.c (decimal_point_char): Define also if
27254         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27255
27256 2008-09-16  Bruno Haible  <bruno@clisp.org>
27257         and Eric Blake  <ebb9@byu.net>
27258
27259         vasnprintf: support Irix 5.3
27260         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27261         that mishandle long double infinity.
27262         Reported by Tom G. Christensen.
27263
27264 2008-09-16  Bruno Haible  <bruno@clisp.org>
27265
27266         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27267         Solaris 9.
27268         * doc/glibc-functions/alphasort.texi: Likewise.
27269         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27270
27271 2008-09-16  Jim Meyering  <meyering@redhat.com>
27272
27273         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27274         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27275         a umask modification leak out of a subshell.  Otherwise, the
27276         opensolaris /bin/sh would be accepted and thus cause unwarranted
27277         failures in the coreutils test suite.
27278
27279 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27280
27281         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27282         to succeed.
27283
27284 2008-09-16  Jim Meyering  <meyering@redhat.com>
27285
27286         avoid spurious test failure when library is built without ACL support
27287         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27288         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27289         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27290         * tests/test-copy-acl.sh: Likewise.
27291
27292 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27293
27294         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27295         based on character occurrence counts.
27296
27297 2008-09-15  Eric Blake  <ebb9@byu.net>
27298
27299         tests: avoid some compiler warnings
27300         * tests/test-memchr.c (main): Pass NULL indirectly.
27301         * tests/test-closein.c (main): Avoid unused variable.
27302
27303 2008-09-15  Bruno Haible  <bruno@clisp.org>
27304
27305         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27306         are missing on OpenBSD 4.0 individually.
27307         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27308
27309 2008-09-15  Bruno Haible  <bruno@clisp.org>
27310
27311         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27312         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27313         * doc/posix-functions/perror.texi: Likewise.
27314         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27315         is missing.
27316         Reported by Eric Blake.
27317
27318         * lib/errno.in.h: Use replacement values >= 2000.
27319         Reported by Eric Blake.
27320
27321 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27322
27323         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27324         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27325         limit.
27326         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27327         compareseq was aborted.
27328
27329 2008-09-14  Bruno Haible  <bruno@clisp.org>
27330
27331         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27332         yvec_edit_count.
27333         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27334         (fstrcmp_bounded): Simplify result computation accordingly.
27335
27336 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27337
27338         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27339         (fstrcmp): Define in terms of fstrcmp_bounded.
27340         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27341         lower_bound argument.
27342         Return quickly if the result is certainly < lower_bound.
27343         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27344
27345 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27346
27347         * lib/diffseq.h (EARLY_ABORT): New macro.
27348         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27349         evaluates to true.
27350
27351 2008-09-14  Bruno Haible  <bruno@clisp.org>
27352
27353         * modules/perror-tests: New file.
27354         * tests/test-perror.sh: New file.
27355         * tests/test-perror.c: New file.
27356
27357         New module 'perror'.
27358         * lib/stdio.in.h (perror): New declaration.
27359         * lib/perror.c: New file.
27360         * m4/perror.m4: New file.
27361         * modules/perror: New file.
27362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27363         * doc/posix-functions/perror.texi: Mention the perror module.
27364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27365         REPLACE_PERROR.
27366         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27367         REPLACE_PERROR.
27368
27369 2008-09-14  Bruno Haible  <bruno@clisp.org>
27370
27371         * modules/stdio (Makefile.am): Reorder to match the order in
27372         lib/stdio.in.h.
27373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27374
27375 2008-09-13  Bruno Haible  <bruno@clisp.org>
27376
27377         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27378
27379 2008-09-13  Bruno Haible  <bruno@clisp.org>
27380
27381         Extend strerror to cover the added errno values.
27382         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27383         (rpl_strerror): Provide error messages for the added errno values and
27384         for the WSA* values.
27385         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27386         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27387         strerror.
27388         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27389         * modules/strerror (Depends-on): Add errno.
27390         * doc/posix-functions/strerror.texi: Document the change.
27391         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27392         and EOVERFLOW.
27393
27394 2008-09-13  Bruno Haible  <bruno@clisp.org>
27395
27396         * modules/EOVERFLOW: Remove file.
27397         * m4/eoverflow.m4: Remove file.
27398         * modules/EOVERFLOW-tests: Remove file.
27399         * tests/test-EOVERFLOW.c: Remove file.
27400         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27401         * modules/ftell (Depends-on): Likewise.
27402         * modules/getdelim (Depends-on): Likewise.
27403         * modules/getugroups (Depends-on): Likewise.
27404         * modules/poll (Depends-on): Likewise.
27405         * modules/snprintf (Depends-on): Likewise.
27406         * modules/sprintf-posix (Depends-on): Likewise.
27407         * modules/vasnprintf (Depends-on): Likewise.
27408         * modules/vasprintf (Depends-on): Likewise.
27409         * modules/vfprintf-posix (Depends-on): Likewise.
27410         * modules/vsnprintf (Depends-on): Likewise.
27411         * modules/vsprintf-posix (Depends-on): Likewise.
27412         * modules/xvasprintf (Depends-on): Likewise.
27413         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27414         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27415         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27416         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27417         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27418         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27419         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27420         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27421         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27422         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27423         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27424         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27425         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27426         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27427         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27428         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27429         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27430         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27431         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27432         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27433         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27434         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27435         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27436         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27437         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27438         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27439         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27440         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27441         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27442         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27443         * MODULES.html.sh: Remove EOVERFLOW.
27444         * NEWS: Mention the change.
27445
27446 2008-09-13  Bruno Haible  <bruno@clisp.org>
27447
27448         * modules/errno-tests: New file.
27449         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27450
27451         * lib/errno.in.h: New file.
27452         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27453         * modules/errno: New file.
27454         * doc/posix-headers/errno.texi: Update documentation.
27455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27456
27457 2008-09-13  Bruno Haible  <bruno@clisp.org>
27458
27459         * tests/test-poll.c: Use #if for native Windows, rather than testing
27460         __MSVCRT__.
27461
27462 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27463             Bruno Haible  <bruno@clisp.org>
27464
27465         * lib/glob.c: Don't include <pwd.h> on native Windows.
27466         (WINDOWS32): New macro.
27467         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27468
27469 2008-09-13  Bruno Haible  <bruno@clisp.org>
27470
27471         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27472         (ETIMEDOUT): Remove macro.
27473         (glthread_cond_timedwait_multithreaded): New declaration.
27474         (glthread_cond_timedwait): Use it.
27475         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27476         (glthread_cond_timedwait_multithreaded): New function.
27477
27478 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27479
27480         * modules/poll-tests: Do not check for io.h.
27481         * tests/test-poll.c: Check for __MSVCRT__ instead.
27482
27483 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27484
27485         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27486         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27487         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27488
27489 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27490
27491         * modules/poll-tests: New.
27492         * tests/test-poll.c: New.
27493
27494 2008-09-12  Eric Blake  <ebb9@byu.net>
27495
27496         frexp: test for NetBSD failure on -0.0
27497         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27498         not all, bugs from NetBSD 3.0 have been fixed.
27499         * doc/posix-functions/frexp.texi (frexp): Document bug.
27500         Reported by Thomas Klausner.
27501
27502         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27503         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27504         literal -0.0.
27505         Reported by Jonathan C. Patschke <jp@centtech.com>.
27506
27507 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27508
27509         * lib/glthread/cond.h: Use dummy implementation also if
27510         USE_WIN32_THREADS.
27511
27512 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27513
27514         * modules/fnmatch-posix (License): Change to LGPLv2+.
27515         * modules/fnmatch-gnu (License): Likewise.
27516
27517 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27518
27519         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27520
27521 2008-09-11  Jim Meyering  <meyering@redhat.com>
27522
27523         * users.txt: Add gtk-vnc.
27524
27525 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27526
27527         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27528         rotate amounts.
27529
27530         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27531         required for 16-bit and 8-bit rotates.
27532         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27533         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27534         UINT8_MAX instead of hard-coded constants.
27535         Suggested by Paul Eggert.
27536
27537 2008-09-07  Bruno Haible  <bruno@clisp.org>
27538
27539         * tests/test-striconveh.c (main): Check behaviour when converting from
27540         UTF-7.
27541
27542         Make striconveh work better with stateful encodings.
27543         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27544         that iconv does not increment the inptr when returning -1/EINVAL.
27545
27546 2008-09-07  Bruno Haible  <bruno@clisp.org>
27547
27548         * build-aux/config.rpath: Update according to libtool-2.2.6.
27549         * build-aux/config.libpath: Likewise.
27550
27551 2008-09-06  Bruno Haible  <bruno@clisp.org>
27552
27553         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27554         * lib/freadptr.c (freadptr): Likewise.
27555         * lib/freadseek.c (freadptrinc): Likewise.
27556         Reported by Simon Josefsson.
27557
27558 2008-09-06  Bruno Haible  <bruno@clisp.org>
27559
27560         * modules/freadptr (License): Change to LGPLv2+.
27561         * modules/freadseek (License): Likewise.
27562         Suggested by Eric Blake.
27563
27564         * modules/memchr2 (License): Change to LGPLv2+.
27565         Approved by Eric Blake.
27566
27567 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27568             Bruno Haible  <bruno@clisp.org>
27569
27570         Make gnulib-tool work with native 'sed' on AIX.
27571         * gnulib-tool (sed_noop): New variable.
27572         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27573         func_add_or_update, func_create_testdir): Use it to initialize sed
27574         script variables.
27575         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27576
27577 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27578             Bruno Haible  <bruno@clisp.org>
27579
27580         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27581         also works after #include directives.
27582
27583 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
27584
27585         getdate.y: reject an out-of-range timezone value
27586         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27587         the range [-24...+24].  When specified with only one or two digits,
27588         * tests/test-getdate.c: Tests for the fix.
27589         * doc/getdate.texi: Document this change.
27590
27591 2008-09-03  Bruno Haible  <bruno@clisp.org>
27592
27593         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27594
27595 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27596
27597         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27598         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27599         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27600         Blake <ebb9@byu.net>.
27601
27602         * tests/test-bitrotate.c: Add more test vectors.
27603
27604 2008-09-02  Eric Blake  <ebb9@byu.net>
27605
27606         vasnprintf-posix: handle large precision via %.*d
27607         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27608         when handling it ourselves.
27609         * tests/test-vasnprintf-posix.c (test_function): Add test.
27610         * tests/test-snprintf-posix.h (test_function): Likewise.
27611         * tests/test-sprintf-posix.h (test_function): Likewise.
27612         * tests/test-vasprintf-posix.c (test_function): Likewise.
27613         Reported by Alain Guibert.
27614
27615 2008-09-01  Eric Blake  <ebb9@byu.net>
27616
27617         c-stack: make configure-time check more robust
27618         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27619         successful sigaction call.
27620         Reported by Tom G. Christensen.
27621
27622 2008-09-01  Bruno Haible  <bruno@clisp.org>
27623
27624         New module 'findprog-lgpl'.
27625         * modules/findprog-lgpl: New file.
27626         * lib/findprog-lgpl.c: New file.
27627         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27628         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27629         to decide whether to use strdup or xstrdup, concatenated_filename or
27630         xconcatenated_filename.
27631
27632 2008-09-01  Bruno Haible  <bruno@clisp.org>
27633
27634         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27635         'xconcat-filename' (GPL).
27636         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27637         (License): Change to LGPLv2+.
27638         * modules/xconcat-filename: New file.
27639         * lib/concat-filename.h (concatenated_filename): Change specification.
27640         (xconcatenated_filename): New declaration.
27641         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27642         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27643         memory situations.
27644         * lib/xconcat-filename.c: New file.
27645         * NEWS: Mention the change.
27646         * lib/findprog.c: Include concat-filename.h, not filename.h.
27647         (find_in_path): Use xconcatenated_filename instead of
27648         concatenated_filename.
27649         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27650         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27651         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27652         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27653         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27654         instead of concatenated_filename.
27655         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27656         (execute_java_class): Use xconcatenated_filename instead of
27657         concatenated_filename.
27658         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27659         * modules/javacomp (Depends-on): Likewise.
27660         * modules/javaexec (Depends-on): Likewise.
27661
27662 2008-09-01  Bruno Haible  <bruno@clisp.org>
27663
27664         Split module 'filename' into 'filename' and 'concat-filename'.
27665         * modules/filename: Keep only lib/filename.h.
27666         (License): Change to LGPLv2+.
27667         * modules/concat-filename: New file, extracted from modules/filename.
27668         * lib/filename.h (concatenated_filename): Remove declaration.
27669         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27670         * lib/concat-filename.c: Include concat-filename.h.
27671         * NEWS: Mention the change.
27672
27673 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27674
27675         * lib/bitrotate.h (rotl8, rotr8): Add.
27676
27677         * modules/bitrotate (configure.ac): Need
27678         AC_REQUIRE([AC_C_INLINE]).
27679         (Description): Mention stdint.h.  Reported by Bruno Haible
27680         <bruno@clisp.org>.
27681
27682         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27683         Paolo Bonzini <bonzini@gnu.org>.
27684
27685 2008-08-31  Bruno Haible  <bruno@clisp.org>
27686
27687         Assume Solaris specific bi-arch conventions on Solaris systems.
27688         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27689         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27690         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27691         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27692         like acl_libdirstem.
27693         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27694         acl_libdirstem.
27695         * NEWS: Mention the change.
27696         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27697
27698 2008-08-31  Jim Meyering  <meyering@redhat.com>
27699
27700         * lib/strftime.h: Add comments describing the two added arguments.
27701
27702         remove duplicate #include directives
27703         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27704         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27705
27706 2008-08-31  Bruno Haible  <bruno@clisp.org>
27707
27708         New module 'sigpipe-die'.
27709         * modules/sigpipe-die: New file.
27710         * lib/sigpipe-die.h: New file.
27711         * lib/sigpipe-die.c: New file.
27712         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27713
27714 2008-08-31  Bruno Haible  <bruno@clisp.org>
27715
27716         Don't override previously installed signal handlers.
27717         * lib/fatal-signal.c (saved_sigactions): New variable.
27718         (uninstall_handlers): Reset the signal to the saved handler, not
27719         to SIG_DFL (except when ignored).
27720         (install_handlers): Save the previous handlers.
27721
27722 2008-08-30  Bruno Haible  <bruno@clisp.org>
27723
27724         * gnulib-tool (func_reset_sigpipe): New function.
27725         (func_get_automake_snippet, func_modules_transitive_closure,
27726         func_import): Invoke it before a join command that reads from stdin,
27727         to avoid "echo: write error: Broken pipe" error messages on stderr.
27728         Reported by Sam Steingold <sds@gnu.org>.
27729
27730 2008-08-30  Bruno Haible  <bruno@clisp.org>
27731
27732         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27733         Code copied from m4/open.m4.
27734         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27735         access and the filename ends in a slash. Code copied from lib/open.c.
27736         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27737         * tests/test-fopen.c (main): Check against bug with trailing slash.
27738
27739 2008-08-29  Bruno Haible  <bruno@clisp.org>
27740
27741         Avoid some "gcc -pedantic" warnings.
27742         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27743         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27744         * lib/dirent.in.h: Likewise.
27745         * lib/fcntl.in.h: Likewise.
27746         * lib/float.in.h: Likewise.
27747         * lib/iconv.in.h: Likewise.
27748         * lib/inttypes.in.h: Likewise.
27749         * lib/locale.in.h: Likewise.
27750         * lib/math.in.h: Likewise.
27751         * lib/netinet_in.in.h: Likewise.
27752         * lib/search.in.h: Likewise.
27753         * lib/signal.in.h: Likewise.
27754         * lib/stdarg.in.h: Likewise.
27755         * lib/stdint.in.h: Likewise.
27756         * lib/stdio.in.h: Likewise.
27757         * lib/stdlib.in.h: Likewise.
27758         * lib/string.in.h: Likewise.
27759         * lib/strings.in.h: Likewise.
27760         * lib/sys_select.in.h: Likewise.
27761         * lib/sys_socket.in.h: Likewise.
27762         * lib/sys_stat.in.h: Likewise.
27763         * lib/sys_time.in.h: Likewise.
27764         * lib/sysexits.in.h: Likewise.
27765         * lib/time.in.h: Likewise.
27766         * lib/unistd.in.h: Likewise.
27767         * lib/wchar.in.h: Likewise.
27768         * lib/wctype.in.h: Likewise.
27769         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27770         * modules/fchdir (Makefile.am): Likewise.
27771         * modules/fcntl (Makefile.am): Likewise.
27772         * modules/float (Makefile.am): Likewise.
27773         * modules/iconv_open (Makefile.am): Likewise.
27774         * modules/inttypes (Makefile.am): Likewise.
27775         * modules/locale (Makefile.am): Likewise.
27776         * modules/math (Makefile.am): Likewise.
27777         * modules/netinet_in (Makefile.am): Likewise.
27778         * modules/search (Makefile.am): Likewise.
27779         * modules/signal (Makefile.am): Likewise.
27780         * modules/stdarg (Makefile.am): Likewise.
27781         * modules/stdint (Makefile.am): Likewise.
27782         * modules/stdio (Makefile.am): Likewise.
27783         * modules/stdlib (Makefile.am): Likewise.
27784         * modules/string (Makefile.am): Likewise.
27785         * modules/strings (Makefile.am): Likewise.
27786         * modules/sys_select (Makefile.am): Likewise.
27787         * modules/sys_socket (Makefile.am): Likewise.
27788         * modules/sys_stat (Makefile.am): Likewise.
27789         * modules/sys_time (Makefile.am): Likewise.
27790         * modules/sysexits (Makefile.am): Likewise.
27791         * modules/time (Makefile.am): Likewise.
27792         * modules/unistd (Makefile.am): Likewise.
27793         * modules/wchar (Makefile.am): Likewise.
27794         * modules/wctype (Makefile.am): Likewise.
27795         Reported by Reuben Thomas <rrt@sc3d.org>.
27796
27797 2008-08-29  Bruno Haible  <bruno@clisp.org>
27798
27799         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27800         any more.
27801
27802 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27803
27804         * MODULES.html.sh (Misc): Add bitrotate.
27805
27806         * modules/bitrotate: New file.
27807
27808         * lib/bitrotate.h: New file.
27809
27810         * modules/bitrotate-tests: New file.
27811
27812         * tests/test-bitrotate.c: New file.
27813
27814         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27815         on the bitrotate module.
27816
27817         * lib/arctwo.c: Use new bitrotate module.
27818
27819 2008-08-29  Jim Meyering  <meyering@redhat.com>
27820
27821         bootstrap: merge changes from coreutils
27822         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27823         of copied files.  Remove a kludge, now that this is fixed.
27824         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27825         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27826         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27827
27828 2008-08-29  Bruno Haible  <bruno@clisp.org>
27829
27830         * MODULES.html.sh: Remove --cvs-urls option.
27831
27832 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
27833
27834         maint.mk: adjust to file name change
27835         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
27836
27837 2008-08-28  Jim Meyering  <meyering@redhat.com>
27838
27839         * modules/getndelim2 (License): Relicense to LGPLv2+.
27840         Approved by Richard Stallman for the version of 1995, and by
27841         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
27842
27843 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
27844
27845         * lib/getdelim.c (flockfile, funlockfile): Make all of them
27846         dummy if one is not available.  Do not touch them if
27847         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
27848         (getc_maybe_unlocked): New.
27849         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
27850
27851 2008-08-26  Eric Blake  <ebb9@byu.net>
27852
27853         doc/INSTALL: resync from autoconf
27854         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
27855         (INSTALL_PRELUDE): Delete; this is done more efficiently by
27856         moving...
27857         * install.texi [!autoconf]: ...here.  Resync from autoconf.
27858         * INSTALL: Regenerate.
27859         * INSTALL.ISO: New file.
27860         * INSTALL.UTF-8: Likewise.
27861
27862 2008-08-26  Jim Meyering  <meyering@redhat.com>
27863
27864         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
27865         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
27866         these definitions conditional, so that they may be overridden, too.
27867
27868 2008-08-26  Bruno Haible  <bruno@clisp.org>
27869
27870         Generate INSTALL file variants with prettier quotes.
27871         * doc/Makefile (INSTALL_PRELUDE): New macro.
27872         (INSTALL): Use it.
27873         (INSTALL.ISO, INSTALL.UTF-8): New rules.
27874
27875 2008-08-26  Bruno Haible  <bruno@clisp.org>
27876
27877         Run makeinfo in an English locale.
27878         * doc/Makefile (MAKEINFO): New variable.
27879
27880 2008-08-26  Bruno Haible  <bruno@clisp.org>
27881
27882         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
27883         Suggested by Eric Blake.
27884
27885 2008-08-25  Bruno Haible  <bruno@clisp.org>
27886
27887         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
27888
27889 2008-08-25  Eric Blake  <ebb9@byu.net>
27890
27891         c-stack: test that stack overflow can be caught
27892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
27893         that platform allows handling stack overflow; at least OS/2 EMX
27894         has sigaltstack, but crashes before transferring control to
27895         handler on stack overflow.
27896         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
27897         check for HAVE_STACK_OVERFLOW_HANDLING.
27898         Reported by Elbert Pol.
27899
27900 2008-08-25  Bruno Haible  <bruno@clisp.org>
27901
27902         * doc/posix-functions/strftime.texi: Fix description of strftime
27903         module.
27904
27905 2008-08-24  Bruno Haible  <bruno@clisp.org>
27906
27907         * tests/uniwidth/test-uc_width2.c: New file.
27908         * tests/uniwidth/test-uc_width2.sh: New file.
27909         * modules/uniwidth/width-tests (Files): Add the new files.
27910         (TESTS): Add uniwidth/test-uc_width2.sh.
27911         (TESTS_ENVIRONMENT): New variable.
27912         (check_PROGRAMS): Add test-uc_width2.
27913         (test_uc_width2_SOURCES): New variable.
27914
27915         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
27916         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
27917         not 0x00AB.
27918         Reported by Alexander V. Lukyanov <lav@netis.ru>.
27919
27920 2008-08-22  Eric Blake  <ebb9@byu.net>
27921
27922         test-lock, test-tls: mention why a test is skipped
27923         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
27924         skipped.
27925         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
27926
27927         count-one-bits: relax license
27928         * modules/count-one-bits (License): Relicense to LGPLv2+.
27929         Suggested by Ludovic Courtès, approved by Ben Pfaff.
27930
27931 2008-08-22  Andreas Schwab  <schwab@suse.de>
27932
27933         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27934         Remove spurious space in assignment.
27935
27936 2008-08-21  Simon Josefsson  <simon@josefsson.org>
27937
27938         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
27939         Paul Eggert <eggert@CS.UCLA.EDU>.
27940
27941 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
27942
27943         * modules/gettext: Add m4/threadlib.m4.
27944
27945 2008-08-19  Eric Blake  <ebb9@byu.net>
27946
27947         test-c-stack: fix compilation failure on FreeBSD 5.0
27948         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
27949         headers before <sys/resource.h>.
27950         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
27951         the bug.
27952         Reported by Nelson H. F. Beebe.
27953
27954         strverscmp: migrate from "strverscmp.h" to <string.h>
27955         * modules/string (Makefile.am): Add new hooks.
27956         * modules/strverscmp (Files): Remove strverscmp.h.
27957         (Depends-on): Add string.
27958         (configure.ac): Add indicator.
27959         (Include): Mention new header.
27960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
27961         defaults.
27962         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
27963         results.
27964         * lib/strverscmp.h: Delete.
27965         * lib/string.in.h (strverscmp): Provide declaration, when needed.
27966         * tests/test-strverscmp.c (includes): Adjust client.
27967         * lib/check-version.c (includes): Likewise.
27968         * NEWS: Document the change.
27969
27970         strverscmp: add unit test
27971         * modules/strverscmp-tests: New file.
27972         * tests/test-strverscmp.c: Likewise.
27973
27974 2008-08-19  Simon Josefsson  <simon@josefsson.org>
27975
27976         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
27977         regarding Windows crypto stuff, from Mono.
27978
27979 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
27980
27981         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
27982         if present, for intel RND.  Return error on failures.
27983
27984 2008-08-18  Ben Pfaff  <blp@gnu.org>
27985
27986         gitlog-to-changelog: give better diagnostic for failed pipe-open
27987         * build-aux/gitlog-to-changelog: Improve error message: suggest
27988         that the version of Git may be too old.
27989
27990 2008-08-18  Simon Josefsson  <simon@josefsson.org>
27991
27992         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
27993         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
27994
27995 2008-08-18  Bruno Haible  <bruno@clisp.org>
27996
27997         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
27998         pthread_in_use().
27999
28000 2008-08-18  Bruno Haible  <bruno@clisp.org>
28001
28002         * lib/glthread/threadlib.c: Include <pthread.h>.
28003
28004 2008-08-18  Bruno Haible  <bruno@clisp.org>
28005
28006         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
28007         glthread_recursive_lock_* macros.
28008         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
28009         Fix syntax error.
28010
28011 2008-08-18  Bruno Haible  <bruno@clisp.org>
28012
28013         * lib/glthread/thread.c: Avoid forcing a context switch right after
28014         thread creation.
28015
28016 2008-08-17  Bruno Haible  <bruno@clisp.org>
28017
28018         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
28019         * lib/glthread/thread.h: Provide Win32 specific implementation.
28020         * modules/thread (Files): Add lib/glthread/thread.c.
28021         (Depends-on): Add lock.
28022         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
28023
28024 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28025
28026         New module 'yield'.
28027         * modules/yield: New file.
28028         * lib/glthread/yield.h: New file.
28029         * m4/yield.m4: New file.
28030         * MODULES.html.sh (Multithreading): Add yield.
28031
28032 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28033
28034         New module 'thread'.
28035         * modules/thread: New file.
28036         * lib/glthread/thread.h: New file.
28037         * m4/thread.m4: New file.
28038         * MODULES.html.sh (Multithreading): Add thread.
28039
28040 2008-08-17  Bruno Haible  <bruno@clisp.org>
28041
28042         * lib/glthread/lock.h: Include <stdlib.h> always.
28043         * lib/glthread/tls.h: Likewise.
28044         * lib/glthread/cond.h: Likewise.
28045
28046 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28047
28048         New module 'cond'.
28049         * modules/cond: New file.
28050         * lib/glthread/cond.h: New file.
28051         * lib/glthread/cond.c: New file.
28052         * m4/cond.m4: New file.
28053         * MODULES.html.sh (Multithreading): Add cond.
28054
28055 2008-08-16  Eric Blake  <ebb9@byu.net>
28056
28057         c-stack: fix regression on Irix 5.3 from 2008-06-21
28058         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
28059         sa_sigaction...
28060         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
28061         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
28062         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
28063         * modules/signal (Makefile.am): Use the value.
28064         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
28065         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
28066         * doc/posix-headers/signal.texi (signal.h): Document this
28067         portability issue.
28068         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
28069         Reported by Tom G. Christensen.
28070
28071 2008-08-17  Bruno Haible  <bruno@clisp.org>
28072
28073         New module 'threadlib'.
28074         * modules/threadlib: New file.
28075         * lib/glthread/threadlib.c: New file, extracted from
28076         lib/glthread/lock.c.
28077         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
28078         functions.
28079         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
28080         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
28081         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
28082         macros.
28083         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
28084         (gl_DISABLE_THREADS): Remove macro.
28085         * modules/lock (Files): Remove build-aux/config.rpath.
28086         (Depends-on): Remove havelib. Add threadlib.
28087         (configure.ac-early): Remove section.
28088         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
28089         * modules/tls (Depends-on): Remove lock. Add threadlib.
28090         (Link): New section, copied from threadlib.
28091         * MODULES.html.sh (Multithreading): Add threadlib.
28092
28093 2008-08-14  Bruno Haible  <bruno@clisp.org>
28094
28095         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
28096         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
28097         glthread_rwlock_unlock, glthread_rwlock_destroy,
28098         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
28099         glthread_recursive_lock_destroy): Define as macros always.
28100         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
28101         glthread_lock_lock.
28102         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
28103         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
28104         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
28105         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
28106         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
28107         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
28108         (glthread_recursive_lock_lock_func): Renamed from
28109         glthread_recursive_lock_lock.
28110         (glthread_recursive_lock_unlock_func): Renamed from
28111         glthread_recursive_lock_unlock.
28112         (glthread_recursive_lock_destroy_func): Renamed from
28113         glthread_recursive_lock_destroy.
28114
28115 2008-08-14  Bruno Haible  <bruno@clisp.org>
28116
28117         * lib/glthread/lock.h: Renamed from lib/lock.h.
28118         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
28119         * lib/glthread/tls.h: Renamed from lib/tls.h.
28120         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
28121         * lib/fstrcmp.c: Update includes.
28122         * lib/strsignal.c: Update includes.
28123         * modules/lock (Files, Makefile.am): Update.
28124         (Include): Change to "glthread/lock.h".
28125         * modules/tls (Files, Makefile.am): Update.
28126         (Include): Change to "glthread/tls.h".
28127         * tests/test-lock.c: Update includes.
28128         * tests/test-tls.c: Update includes.
28129         * NEWS: Mention the renamed header files.
28130
28131 2008-08-11  Jim Meyering  <meyering@redhat.com>
28132
28133         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
28134
28135 2008-08-11  Eric Blake  <ebb9@byu.net>
28136
28137         test-c-stack: avoid C99-ism
28138         * tests/test-c-stack.c (main): Fix whitespace, move declaration
28139         before statement.
28140         Reported by Alain Guibert.
28141
28142 2008-08-10  Jim Meyering  <meyering@redhat.com>
28143
28144         ensure that return value of uinttostr et al are not ignored
28145         * lib/inttostr.h (__GNUC_PREREQ): Define.
28146         (__attribute_warn_unused_result__): Define.
28147         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
28148
28149 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
28150
28151         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
28152         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
28153
28154 2008-08-07  Jim Meyering  <meyering@redhat.com>
28155
28156         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
28157
28158         * modules/mkstemp (License): Relicense under LGPLv2+.
28159         * modules/tempname (License): Likewise.
28160
28161 2008-08-06  Bruno Haible  <bruno@clisp.org>
28162
28163         * lib/poll.c (poll): Further micro-optimization.
28164
28165 2008-08-06  Jim Meyering  <meyering@redhat.com>
28166
28167         inet_pton.c: use locale-independent tolower
28168         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28169         (inet_pton6): Use c_tolower rather than tolower.
28170         * modules/inet_pton (Depends-on): Add c-ctype.
28171
28172 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28173
28174         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28175         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28176
28177 2008-08-06  Jim Meyering  <meyering@redhat.com>
28178
28179         * modules/inet_pton (License): Relicense under LGPLv2+.
28180
28181 2008-08-03  Bruno Haible  <bruno@clisp.org>
28182
28183         Additional non-aborting API for lock and tls.
28184         * lib/lock.h: Include <errno.h>.
28185         (glthread_lock_init): New macro/function.
28186         (gl_lock_init): Define as wrapper around glthread_lock_init.
28187         (glthread_lock_lock): New macro/function.
28188         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28189         (glthread_lock_unlock): New macro/function.
28190         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28191         (glthread_lock_destroy): New macro/function.
28192         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28193         (glthread_rwlock_init): New macro/function.
28194         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28195         (glthread_rwlock_rdlock): New macro/function.
28196         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28197         (glthread_rwlock_wrlock): New macro/function.
28198         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28199         (glthread_rwlock_unlock): New macro/function.
28200         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28201         (glthread_rwlock_destroy): New macro/function.
28202         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28203         (glthread_recursive_lock_init): New macro/function.
28204         (gl_recursive_lock_init): Define as wrapper around
28205         glthread_recursive_lock_init.
28206         (glthread_recursive_lock_lock): New macro/function.
28207         (gl_recursive_lock_lock): Define as wrapper around
28208         glthread_recursive_lock_lock.
28209         (glthread_recursive_lock_unlock): New macro/function.
28210         (gl_recursive_lock_unlock): Define as wrapper around
28211         glthread_recursive_lock_unlock.
28212         (glthread_recursive_lock_destroy): New macro/function.
28213         (gl_recursive_lock_destroy): Define as wrapper around
28214         glthread_recursive_lock_destroy.
28215         (glthread_once): New macro/function.
28216         (gl_once): Define as wrapper around glthread_once.
28217         Update function declarations.
28218         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28219         glthread_rwlock_init. Return error code.
28220         (glthread_rwlock_rdlock_multithreaded): Renamed from
28221         glthread_rwlock_rdlock. Return error code.
28222         (glthread_rwlock_wrlock_multithreaded): Renamed from
28223         glthread_rwlock_wrlock. Return error code.
28224         (glthread_rwlock_unlock_multithreaded): Renamed from
28225         glthread_rwlock_unlock. Return error code.
28226         (glthread_rwlock_destroy_multithreaded): Renamed from
28227         glthread_rwlock_destroy. Return error code.
28228         (glthread_recursive_lock_init_multithreaded): Renamed from
28229         glthread_recursive_lock_init. Return error code.
28230         (glthread_recursive_lock_lock_multithreaded): Renamed from
28231         glthread_recursive_lock_lock. Return error code.
28232         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28233         glthread_recursive_lock_unlock. Return error code.
28234         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28235         glthread_recursive_lock_destroy. Return error code.
28236         (glthread_once_call): Make static.
28237         (glthread_once_multithreaded): Renamed from glthread_once.
28238         * lib/tls.h: Include <errno.h>.
28239         (glthread_tls_key_init): New macro/function.
28240         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28241         (glthread_tls_set): New macro/function.
28242         (gl_tls_set): Define as wrapper around glthread_tls_set.
28243         (glthread_tls_key_destroy): New macro/function.
28244         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28245         Update function declarations.
28246         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28247         glthread_tls_get.
28248         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28249
28250 2008-08-04  Eric Blake  <ebb9@byu.net>
28251
28252         gnumakefile: use space, not TAB, outside of targets
28253         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28254
28255 2008-08-02  Jim Meyering  <meyering@redhat.com>
28256
28257         getdate.y: avoid locale-dependent date parsing failure
28258         In Turkish locales, getdate would fail to recognize keywords
28259         containing a lowercase "i".  The solution is not to rely on
28260         locale-sensitive case-conversion.
28261         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28262         (lookup_word): Use c_toupper in place of toupper.
28263         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28264         Reported by Vefa Bicakci <bicave@superonline.com> in
28265         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28266         * modules/getdate (Depends-on): Add c-ctype.
28267
28268 2008-08-02  Bruno Haible  <bruno@clisp.org>
28269
28270         * gnulib-tool (func_import): When updating or creating a .gitignore
28271         file, prepend each added line with a slash, and ignore leading slashes
28272         from the existing lines.
28273         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28274
28275 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28276
28277         Portability fix for GNU make 3.79.1.
28278         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28279         versions do not understand.
28280
28281 2008-08-01  Bruno Haible  <bruno@clisp.org>
28282
28283         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28284         * tests/test-isnanf.h (zero): New variable.
28285         (main): Avoid literal -0.0f.
28286         * tests/test-isnand.h (zero): New variable.
28287         (main): Avoid literal -0.0.
28288         * tests/test-isnanl.h (zero): New variable.
28289         (main): Avoid literal -0.0L.
28290         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28291         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28292         -0.0, -0.0L.
28293         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28294         (test_signbitd): Avoid literal -0.0.
28295         (test_signbitl): Avoid literal -0.0L.
28296         * tests/test-ceilf1.c (zero): New variable.
28297         (main): Avoid literal -0.0f.
28298         * tests/test-ceill.c (zero): New variable.
28299         (main): Avoid literal -0.0L.
28300         * tests/test-floorf1.c (zero): New variable.
28301         (main): Avoid literal -0.0f.
28302         * tests/test-floorl.c (zero): New variable.
28303         (main): Avoid literal -0.0L.
28304         * tests/test-roundf1.c (zero): New variable.
28305         (main): Avoid literal -0.0f.
28306         * tests/test-round1.c (zero): New variable.
28307         (main): Avoid literal -0.0.
28308         * tests/test-roundl.c (zero): New variable.
28309         (main): Avoid literal -0.0L.
28310         * tests/test-truncf1.c (zero): New variable.
28311         (main): Avoid literal -0.0f.
28312         * tests/test-trunc1.c (zero): New variable.
28313         (main): Avoid literal -0.0.
28314         * tests/test-truncl.c (zero): New variable.
28315         (main): Avoid literal -0.0L.
28316         * tests/test-frexp.c (zero): New variable.
28317         (main): Avoid literal -0.0.
28318         * tests/test-frexpl.c (zero): New variable.
28319         (main): Avoid literal -0.0L.
28320         * tests/test-ldexpl.c (zero): New variable.
28321         (main): Avoid literal -0.0L.
28322         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28323         (zerod, zerol): New variables.
28324         (test_function): Avoid literals -0.0, -0.0L.
28325         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28326         (zerod, zerol): New variables.
28327         (test_function): Avoid literals -0.0, -0.0L.
28328         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28329         (zerod, zerol): New variables.
28330         (test_function): Avoid literals -0.0, -0.0L.
28331         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28332         (zerod, zerol): New variables.
28333         (test_function): Avoid literals -0.0, -0.0L.
28334         * tests/test-strtod.c (zero): New variable.
28335         (main): Avoid literal -0.0.
28336         Reported by Jonathan C. Patschke <jp@centtech.com>.
28337
28338 2008-07-31  Jim Meyering  <meyering@redhat.com>
28339
28340         sha256.h: correct definition of SHA224_DIGEST_SIZE
28341         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28342         Reported by Paulie Pena IV <paulie4@gmail.com>.
28343         Define as 224 / 8, rather than as a literal.
28344         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28345         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28346         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28347
28348 2008-07-31  Bruno Haible  <bruno@clisp.org>
28349
28350         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28351         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28352         Reported by Jonathan Patschke <jp@centtech.com>.
28353
28354 2008-07-31  Bruno Haible  <bruno@clisp.org>
28355
28356         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28357         Reported by Paolo Bonzini <bonzini@gnu.org>.
28358
28359 2008-07-30  Eric Blake  <ebb9@byu.net>
28360
28361         test-strtod: allow compilation without -lm
28362         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28363         Reported by Dennis Clarke <blastwave@gmail.com>.
28364
28365 2008-07-28  Jim Meyering  <meyering@redhat.com>
28366
28367         bootstrap: work also when there are no .po files in po/
28368         * build-aux/bootstrap (update_po_files): Complete the change
28369         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28370
28371 2008-07-27  Jim Meyering  <meyering@redhat.com>
28372
28373         * users.txt: Add zile.
28374
28375 2008-07-26  Ben Pfaff  <blp@gnu.org>
28376
28377         Add missing dependencies on new m4/exponent[fdl].m4 files.
28378         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28379         * modules/isnand-nolibm: Add m4/exponentd.m4.
28380         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28381         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28382         m4/isnan[fdl].m4, because the macros actually used moved.
28383         Reported by Jim Meyering.
28384
28385 2008-07-14  Ben Pfaff  <blp@gnu.org>
28386
28387         Add isinf module.
28388         * lib/isinf.c: New file.
28389         * lib/math.in.h: Define isinf macro if we have decided to replace
28390         it.
28391         * m4/isinf.m4: New file.
28392         * m4/math_h.m4: Initialize and substitute variables for isinf
28393         module.
28394         * modules/isinf: New file.
28395         * modules/isinf-tests: New file.
28396         * modules/math: Add substitutions for new module.
28397         * tests/test-isinf.c: New file.
28398         * doc/posix-functions/isinf.texi: Mention new module.
28399         * MODULES.html.sh: Mention new module.
28400
28401 2008-07-14  Ben Pfaff  <blp@gnu.org>
28402
28403         Factor out some macros for use by additional modules.
28404         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28405         exponentf.m4.
28406         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28407         exponentd.m4.
28408         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28409         file exponentl.m4.
28410         * m4/exponentf.m4: New file.
28411         * m4/exponentd.m4: New file.
28412         * m4/exponentl.m4: New file.
28413         * modules/isnanf: Use new file m4/exponentf.m4.
28414         * modules/isnand: Use new file m4/exponentd.m4.
28415         * modules/isnanl: Use new file m4/exponentl.m4.
28416
28417 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28418
28419         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28420         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28421         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28422         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28423
28424         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28425         readlink on platforms without PATH_MAX.
28426
28427 2008-07-21  Eric Blake  <ebb9@byu.net>
28428
28429         Warn, not fail, on stale version.
28430         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28431
28432         Don't allow installation with stale devel version number.
28433         * top/GNUmakefile (_is-install-target): New macro.
28434         (_curr-ver): Forbid installation with stale version number.
28435
28436 2008-07-20  Bruno Haible  <bruno@clisp.org>
28437
28438         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28439         TESTS_ENVIRONMENT.
28440         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28441
28442 2008-07-20  Bruno Haible  <bruno@clisp.org>
28443
28444         * lib/c-stack.h (c_stack_action): Add documentation.
28445         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28446
28447 2008-07-20  Bruno Haible  <bruno@clisp.org>
28448
28449         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28450         * modules/readlink (License): Likewise.
28451
28452 2008-07-17  Eric Blake  <ebb9@byu.net>
28453
28454         * modules/c-stack (Link): Fix typo.
28455
28456         Make c-stack use libsigsegv, when available.
28457         * modules/c-stack (Depends-on): Add libsigsegv.
28458         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28459         needed.
28460         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28461         (segv_handler, overflow_handler, c_stack_action)
28462         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28463         implementation when libsigsegv is available, but only when using
28464         the library is necessary.
28465         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28466         comment, explaining why XSI check fails on Linux.
28467         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28468         * tests/test-c-stack2.sh: Tweak skip message.
28469         * NEWS: Document new link-time requirements.
28470
28471 2008-07-16  Eric Blake  <ebb9@byu.net>
28472
28473         c-stack: Expose false positives when not using libsigsegv.
28474         * modules/c-stack-tests (Files): Expand test.
28475         * tests/test-c-stack.c (main): Add means to conditionally trigger
28476         non-overflow SIGSEGV.
28477         * tests/test-c-stack2.sh: New file.
28478
28479 2008-07-14  Bruno Haible  <bruno@clisp.org>
28480
28481         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28482         Reported by Eric Blake.
28483
28484 2008-07-14  Sam Steingold  <sds@gnu.org>
28485             Bruno Haible  <bruno@clisp.org>
28486
28487         New module libsigsegv.
28488         * modules/libsigsegv: New file.
28489         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28490         modifications.
28491         * MODULES.html.sh (Signal handling): New section.
28492
28493 2008-07-14  Bruno Haible  <bruno@clisp.org>
28494
28495         * modules/unictype/ctype-* (Description): Add the word "function".
28496         Improves the resulting doc in MODULES.html.
28497
28498 2008-07-12  Ben Pfaff  <blp@gnu.org>
28499
28500         Add longlong module.
28501         * modules/longlong: New file.
28502
28503 2008-07-12  Bruno Haible  <bruno@clisp.org>
28504
28505         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28506         to empty.
28507
28508 2008-07-10  Ben Pfaff  <blp@gnu.org>
28509
28510         Add isnan module.
28511         * doc/posix-functions/isnan.texi: Mention new module.
28512         * lib/math.in.h: Define isnan macro if we have decided to replace
28513         it.
28514         * m4/isnan.m4: New file.
28515         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28516         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28517         also.
28518         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28519         redundancy.
28520         * m4/math_h.m4: Initialize and substitute variables for isnan
28521         module.
28522         * modules/isnan: New file.
28523         * modules/isnan-tests: New file.
28524         * modules/math: Add substitutions for new module.
28525         * tests/test-isnan.c: New file.
28526         * MODULES.html.sh: Mention new module.
28527
28528 2008-07-10  Ben Pfaff  <blp@gnu.org>
28529
28530         Add isnanf module.
28531         * lib/isnanf.m4: New file.
28532         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28533         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28534         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28535         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28536         * modules/isnanf: New file.
28537         * modules/isnanf-tests: New file.
28538         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28539         files.
28540         * tests/test-isnanf-nolibm.c: factored most of its contents into
28541         new file tests/test-isnanf.h.
28542         * tests/test-isnanf.h: New file.
28543         * tests/test-isnanf.c: New file.
28544         * MODULES.html.sh: Mention new module.
28545         * doc/glibc-functions/isnanf.texi: Mention new module.
28546
28547 2008-07-10  Ben Pfaff  <blp@gnu.org>
28548
28549         Add isnand module.
28550         * lib/isnand.h: New file.
28551         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28552         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28553         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28554         functionality also.
28555         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28556         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28557         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28558         * modules/isnand: New file.
28559         * modules/isnand-tests: New file.
28560         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28561         files.
28562         * tests/test-isnand-nolibm.c: factored most of its contents into
28563         new file tests/test-isnand.h.
28564         * tests/test-isnand.h: New file.
28565         * tests/test-isnand.c: New file.
28566         * MODULES.html.sh: Mention new module.
28567
28568 2008-07-10  Ben Pfaff  <blp@gnu.org>
28569
28570         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28571         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28572         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28573         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28574         * modules/isnanf-nolibm: Update references to renamed files.
28575         * modules/isnand-nolibm: Likewise.
28576         * modules/isnanf-nolibm-tests: Likewise.
28577         * modules/isnand-nolibm-tests: Likewise.
28578         * lib/frexp.c: Likewise.
28579         * lib/isfinite.c: Likewise.
28580         * lib/signbitd.c: Likewise.
28581         * lib/signbitf.c: Likewise.
28582         * lib/vasnprintf.c: Likewise.
28583         * tests/test-ceilf1.c: Likewise.
28584         * tests/test-ceilf2.c: Likewise.
28585         * tests/test-floorf1.c: Likewise.
28586         * tests/test-floorf2.c: Likewise.
28587         * tests/test-frexp.c: Likewise.
28588         * tests/test-round1.c: Likewise.
28589         * tests/test-round2.c: Likewise.
28590         * tests/test-roundf1.c: Likewise.
28591         * tests/test-strtod.c: Likewise.
28592         * tests/test-trunc1.c: Likewise.
28593         * tests/test-trunc2.c: Likewise.
28594         * tests/test-truncf1.c: Likewise.
28595         * tests/test-truncf2.c: Likewise.
28596         * NEWS: Mention the renamed header files.
28597
28598 2008-07-11  Jim Meyering  <meyering@redhat.com>
28599
28600         vc-list-files: make the last-resort awk code more portable
28601         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28602         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28603         does not support it.
28604
28605 2008-07-10  Eric Blake  <ebb9@byu.net>
28606
28607         Work with tar's bootstrap.
28608         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28609         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28610         an m4 comment.
28611
28612 2008-07-09  Jim Meyering  <meyering@redhat.com>
28613
28614         posix-shell.m4: fix typo that made this test malfunction
28615         * m4/posix-shell.m4: Remove capitalization in variable name.
28616
28617 2008-07-08  Bruno Haible  <bruno@clisp.org>
28618
28619         * m4/onceonly.m4: Update comments.
28620         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28621
28622 2008-07-04  Jim Meyering  <meyering@redhat.com>
28623
28624         * users.txt: Add vc-dwim.
28625         (bison, coreutils): Use the gitweb URL.
28626
28627 2008-07-03  Jim Meyering  <meyering@redhat.com>
28628
28629         * users.txt: Add libffcall.  From Sam Steingold.
28630
28631 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
28632
28633         getdate.y: do not ignore TZ with relative day, month or year offset
28634         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28635         relative-date-handling, since otherwise, the latter would clobber the
28636         sole output (an updated Start value) of the tz-handling block.
28637         * tests/test-getdate.c: Tests for the fix
28638
28639 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28640
28641         Recognize 'foo_LIBRARIES += libgnu.a'.
28642         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28643         makefile snippet has already specified an installation location,
28644         also using '+='.
28645
28646 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
28647
28648         getdate.y: factor out common actions
28649         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28650         Use them in place of open-coded actions.
28651
28652 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28653
28654         Add self-test for getdate module.
28655         * modules/getdate-tests: New file.
28656         * tests/test-getdate.c: New file.
28657
28658 2008-06-29  Bruno Haible  <bruno@clisp.org>
28659
28660         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28661         .gitignore.
28662         Reported by Sylvain Beucler <beuc@beuc.net>.
28663
28664 2008-06-29  Bruno Haible  <bruno@clisp.org>
28665
28666         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28667         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28668
28669 2008-06-29  Bruno Haible  <bruno@clisp.org>
28670
28671         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28672         EXTRA_DIST.
28673         Reported by Sylvain Beucler <beuc@beuc.net>.
28674
28675 2008-06-26  Jim Meyering  <meyering@redhat.com>
28676
28677         make several modules depend on the "open" module
28678         This provides slightly increased consistency when opening-for-write
28679         the name of a non-directory spelled with a trailing slash.
28680         * modules/chdir-safer: Likewise.
28681         * modules/chown: Likewise.
28682         * modules/clean-temp: Likewise.
28683         * modules/copy-file: Likewise.
28684         * modules/fchdir: Likewise.
28685         * modules/fcntl-safer: Likewise.
28686         * modules/pipe: Likewise.
28687         * modules/utime: Likewise.
28688         Prompted by Eric Blake and Bruno Haible.
28689
28690 2008-06-24  Andreas Schwab  <schwab@suse.de>
28691
28692         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28693         literals can be used as initializers for global variables.
28694
28695 2008-06-23  Eric Blake  <ebb9@byu.net>
28696
28697         Make gnulib-cache.m4 easier to diff.
28698         * gnulib-tool (func_import): Allow newlines when reading cached
28699         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28700
28701 2008-06-23  Bruno Haible  <bruno@clisp.org>
28702
28703         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28704         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28705         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28706         m4/signalblocking.m4.
28707         (gl_PREREQ_SIGACTION): Don't invoke it.
28708         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28709         gl_PREREQ_SIG_HANDLER_H.
28710         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28711         Don't check for sigaction here.
28712
28713 2008-06-23  Bruno Haible  <bruno@clisp.org>
28714
28715         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28716         (install_handlers): Don't set the SA_RESETHAND flag.
28717
28718 2008-06-23  Bruno Haible  <bruno@clisp.org>
28719
28720         * m4/sigaction.m4: Comment fixes.
28721         * lib/signal.in.h: Likewise.
28722
28723 2008-06-23  Eric Blake  <ebb9@byu.net>
28724
28725         Fix typo.
28726         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28727
28728         Avoid SA_ namespace.
28729         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28730         Reported by Ralf Wildenhues.
28731
28732         Avoid test failure due to SA_RESTORER.
28733         * tests/test-sigaction.c (SA_MASK): New macro.
28734         (main): Avoid failing due to extension flags being set.
28735         Reported by Jim Meyering.
28736
28737         Revert use of sig-handler.h in sigprocmask.c.
28738         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28739         it requires the existence of struct sigaction.
28740         * lib/sigprocmask.c (handler_t): Restore typedef.
28741         (rpl_signal, old_handlers): Use local type.
28742
28743 2008-06-22  Bruno Haible  <bruno@clisp.org>
28744
28745         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28746         conditionally.
28747         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28748
28749 2008-06-22  Bruno Haible  <bruno@clisp.org>
28750
28751         * doc/posix-functions/siginterrupt.texi: Move note.
28752
28753         * lib/signal.in.h (SA_RESTART): New macro.
28754         * lib/sigaction.c: Update comment.
28755
28756         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28757
28758         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28759         (gl_PREREQ_SIGPROCMASK): Invoke it.
28760         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28761
28762         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28763
28764         * lib/sigprocmask.c: Update a comment.
28765
28766 2008-06-21  Eric Blake  <ebb9@byu.net>
28767
28768         Use sigaction module rather than signal().
28769         * modules/c-stack (Depends-on): Add sigaction.
28770         * modules/fatal-signal (Depends-on): Likewise.
28771         * modules/nanosleep (Depends-on): Likewise.
28772         * modules/sigprocmask (Files): Add sig-handler.h.
28773         * modules/sigaction (Files): Likewise.
28774         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28775         Eggert.
28776         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28777         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28778         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28779         (init_fatal_signals): Likewise.
28780         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28781         (siginterrupt): Delete fallback.
28782         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28783         instead.
28784         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28785         siginterrupt.
28786
28787         New module sigaction, for mingw.
28788         * modules/sigaction: New module...
28789         * modules/sigaction-tests: ...and its test.
28790         * m4/sigaction.m4: New file.
28791         * lib/sigaction.c: Likewise.
28792         * tests/test-sigaction.c: Likewise.
28793         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28794         * modules/signal (Makefile.am): Likewise.
28795         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28796         needed.
28797         * doc/posix-headers/signal.texi (signal.h): Mention provided
28798         types.
28799         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28800         that sigaction is preferable.
28801         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28802         module.
28803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28804         sigaction.
28805
28806         Improve robustness of sigprocmask by overriding signal.
28807         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28808         is in use.
28809         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28810         (SIGKILL, SIGSTOP): Provide fallbacks.
28811         (rpl_signal): Implement.
28812         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28813         signal can be called inside handlers.
28814
28815         Fix nanosleep module on mingw.
28816         * modules/nanosleep (Depends-on): Add sys_select.
28817         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28818
28819         Fix licensing of sigprocmask.
28820         * modules/raise (License): Relicense as LGPL.
28821
28822 2008-06-21  Bruno Haible  <bruno@clisp.org>
28823
28824         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28825         result if it contains question marks.
28826         Reported by Michael Geng <linux@michaelgeng.de>.
28827
28828 2008-06-19  Bruno Haible  <bruno@clisp.org>
28829
28830         Fix CVS-ism.
28831         * doc/gnulib.texi: Include updated-stamp.texi.
28832         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
28833         (updated-stamp.texi): New rule.
28834         (gnulib.info): Depend on it.
28835         * doc/.gitignore: Add updated-stamp.texi.
28836         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
28837
28838 2008-06-19  Bruno Haible  <bruno@clisp.org>
28839
28840         * doc/Makefile (gnulib.info): Update and simplify dependencies.
28841         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28842
28843 2008-06-19  Eric Blake  <ebb9@byu.net>
28844
28845         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
28846         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
28847         Reported by Stepan Kasal.
28848
28849 2008-06-18  Bruno Haible  <bruno@clisp.org>
28850
28851         * lib/fatal-signal.c (init_fatal_signals): Add comment.
28852         Reported by Eric Blake.
28853
28854 2008-06-18  Eric Blake  <ebb9@byu.net>
28855
28856         Work around cygwin 1.5.25 strsignal bug.
28857         * tests/test-strsignal.c: Allow for const char *.
28858         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
28859
28860 2008-06-18  Simon Josefsson  <simon@josefsson.org>
28861
28862         * users.txt: Update URL to article and add author/date
28863         information.
28864
28865 2008-06-17  Bruno Haible  <bruno@clisp.org>
28866
28867         New macro gl_DISABLE_THREADS.
28868         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
28869         if the user did not pass --enable-threads or --disable-threads option.
28870         (gl_DISABLE_THREADS): New macro.
28871         Reported by Eric Blake <ebb9@byu.net>.
28872
28873 2008-06-17  Bruno Haible  <bruno@clisp.org>
28874
28875         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
28876         when the macro ignores it.
28877         Based on a patch by Eric Blake <ebb9@byu.net>.
28878
28879 2008-06-17  Bruno Haible  <bruno@clisp.org>
28880
28881         * modules/tls (License): Change to LGPLv2+.
28882         Reported by Eric Blake.
28883
28884 2008-06-17  Eric Blake  <ebb9@byu.net>
28885
28886         Simplify c-stack prerequisites.
28887         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
28888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
28889         no longer requires <ucontext.h> to exist.  Optimize setrlimit
28890         check.
28891         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
28892         <sys/resource.h>.
28893
28894         Move c-stack test into testsuite.
28895         * modules/c-stack-tests: New file.
28896         * lib/c-stack.c [DEBUG]: Move test program...
28897         * tests/test-c-stack.c: ...into this new file.  Skip rather than
28898         fail test if sigaltstack is lacking.
28899         * tests/test-c-stack.sh: New driver file.
28900
28901 2008-06-16  Eric Blake  <ebb9@byu.net>
28902
28903         Use raise module consistently.
28904         * modules/fatal-signal (Depends-on): Add raise.
28905         * modules/sigprocmask (Depends-on): Likewise.
28906         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
28907         * lib/sigprocmask.c (sigprocmask): Likewise.
28908         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28909         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
28910
28911         Fix compliance bug in sigpending.
28912         * lib/sigprocmask.c (sigpending): Return pending array via
28913         parameter, not return value.
28914
28915 2008-06-14  Eric Blake  <ebb9@byu.net>
28916
28917         Improve obstack-printf test code.
28918         * tests/test-obstack-printf.c (test_function): Fix comment, and
28919         simplify usage of obstack_* in macros.  Add a test for coverage.
28920         Reported by Bruno Haible.
28921
28922 2008-06-14  Bruno Haible  <bruno@clisp.org>
28923
28924         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
28925         array size as a constant, not as a const variable.
28926         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
28927         AC_USE_SYSTEM_EXTENSIONS.
28928         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
28929         Test whether the obstack_printf function actually exists.
28930         * modules/obstack-printf (Depends-on): Add extensions.
28931         (Include): Remove obstack.h.
28932         * modules/obstack-printf-posix (Depends-on): Add extensions.
28933         (Include): Remove obstack.h.
28934
28935 2008-06-13  Eric Blake  <ebb9@byu.net>
28936
28937         Add obstack-printf and obstack-printf-posix modules.
28938         * modules/obstack-printf: New file.
28939         * modules/obstack-printf-posix: Likewise.
28940         * MODULES.html.sh (Misc): Mention them.
28941         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
28942         Likewise.
28943         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
28944         Likewise.
28945         * modules/stdio (Makefile.am): Accomodate new modules.
28946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28947         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
28948         Declare.
28949         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
28950         functions.
28951         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
28952         (gl_REPLACE_OBSTACK_PRINTF): New macros
28953         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
28954         * tests/test-obstack-printf.c: New file.
28955         * modules/obstack-printf-tests: Likewise.
28956         * modules/obstack-printf-posix-tests: Likewise.
28957
28958 2008-06-11  Bruno Haible  <bruno@clisp.org>
28959
28960         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
28961         * lib/open.c: Include errno.h.
28962         (open): Fail when attempting to write to a file that has a trailing
28963         slash.
28964         * tests/test-open.c (main): Test against trailing slash bug.
28965         * doc/posix-functions/open.texi: Mention the trailing slash bug.
28966
28967 2008-06-10  Bruno Haible  <bruno@clisp.org>
28968
28969         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
28970         for $? to work inside the trap command, with various /bin/sh-s.
28971         * tests/test-vc-list-files-cvs.sh: Likewise.
28972
28973 2008-06-10  Bruno Haible  <bruno@clisp.org>
28974
28975         * lib/acl-internal.h: Don't include gettext.h here.
28976         * lib/set-mode-acl.c: Include gettext.h here.
28977         * lib/copy-acl.c: Likewise.
28978
28979 2008-06-10  Bruno Haible  <bruno@clisp.org>
28980
28981         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
28982         * lib/wait-process.c (wait_subprocess): Likewise.
28983         * lib/execute.h (execute): Add termsigp argument.
28984         * lib/execute.c (execute): Likewise.
28985         * lib/csharpcomp.c (compile_csharp_using_pnet,
28986         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
28987         * lib/csharpexec.c (execute_csharp_using_pnet,
28988         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
28989         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
28990         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
28991         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
28992         is_jikes_present): Update.
28993         * lib/javaexec.c (execute_java_class): Update.
28994         * lib/javaversion.c (execute_and_read_line): Update.
28995         * NEWS: Document the changes.
28996         Reported by Eric Blake.
28997
28998 2008-06-10  Eric Blake  <ebb9@byu.net>
28999
29000         Add missing include.
29001         * tests/test-strstr.c (includes): Add <signal.h>.
29002         * tests/test-strcasestr.c (includes): Likewise.
29003         * tests/test-memmem.c (includes): Likewise.
29004
29005 2008-06-10  Bruno Haible  <bruno@clisp.org>
29006
29007         * lib/wait-process.c (wait_subprocess): Add an assertion.
29008
29009 2008-06-10  Bruno Haible  <bruno@clisp.org>
29010
29011         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
29012
29013 2008-06-10  Bruno Haible  <bruno@clisp.org>
29014
29015         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
29016         using alarm().
29017         * tests/test-strcasestr.c (main): Likewise.
29018         * tests/test-strstr.c (main): Likewise.
29019
29020 2008-06-09  Bruno Haible  <bruno@clisp.org>
29021
29022         Work around the Solaris 10 ACE ACLs ABI change.
29023         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
29024         declare if ACL_NO_TRIVIAL is present.
29025         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
29026         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
29027         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
29028         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
29029         define if ACL_NO_TRIVIAL is present.
29030         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
29031         and use the current ABI.
29032         (file_has_acl): Use same #if condition as elsewhere.
29033         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
29034         in use, and use the current ABI.
29035         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
29036         Reported by Jim Meyering.
29037
29038 2008-06-09  Eric Blake  <ebb9@byu.net>
29039
29040         Work around environments that (stupidly) ignore SIGALRM.
29041         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
29042         before using alarm().
29043         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29044         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29045         Reported by Ian Beckwith <ianb@erislabs.net>.
29046
29047         Produce autobuild blurb earlier in log.
29048         * modules/autobuild (configure.ac-early): Move AB_INIT here.
29049
29050 2008-06-09  Jim Meyering  <meyering@redhat.com>
29051         and Ondřej Vašík  <ovasik@redhat.com>
29052
29053         utimens.c: correct kernel bug work-around
29054         Ondřej Vašík found that the invalid return value of 280 indicates
29055         failure, not success, and the kernel bug we're trying to work
29056         around affects not just the utimensat call, but also the fallback
29057         futimens call.
29058         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
29059         not success.
29060         [HAVE_FUTIMENS]: Use the same work-around, here.
29061
29062 2008-06-09  Jim Meyering  <meyering@redhat.com>
29063
29064         add more guards around definition of ACE_-related code
29065         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
29066         ALLOW and ACE_OWNER are also defined.
29067
29068 2008-06-08  Bruno Haible  <bruno@clisp.org>
29069
29070         * lib/acl-internal.h: Add me as co-author.
29071         * lib/file-has-acl.c: Likewise.
29072         * lib/set-mode-acl.c: Likewise.
29073         * lib/copy-acl.c: Likewise.
29074
29075 2008-06-08  Bruno Haible  <bruno@clisp.org>
29076
29077         Add support for AIX ACLs.
29078         * lib/acl-internal.h (acl_nontrivial): New declaration.
29079         * lib/file-has-acl.c (acl_nontrivial): New function.
29080         (file_has_acl): Add implementation using AIX 4 ACL API.
29081         * lib/set-mode-acl.c (qset_acl): Likewise.
29082         * lib/copy-acl.c (qcopy_acl): Likewise.
29083
29084 2008-06-08  Bruno Haible  <bruno@clisp.org>
29085
29086         Add support for HP-UX ACLs.
29087         * lib/acl-internal.h (acl_nontrivial): New declaration.
29088         * lib/file-has-acl.c (acl_nontrivial): New function.
29089         (file_has_acl): Add implementation using HP-UX 11 ACL API.
29090         * lib/set-mode-acl.c (qset_acl): Likewise.
29091         * lib/copy-acl.c (qcopy_acl): Likewise.
29092
29093 2008-06-08  Bruno Haible  <bruno@clisp.org>
29094
29095         Add support for Cygwin ACLs.
29096         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
29097         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
29098         the chmod_or_fchmod call.
29099         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
29100
29101 2008-06-08  Bruno Haible  <bruno@clisp.org>
29102
29103         Fix bug with setuid modes in Solaris 10+ code.
29104         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
29105         succeeded, when the mode contains some special bits.
29106
29107 2008-06-08  Bruno Haible  <bruno@clisp.org>
29108
29109         Add support for Solaris 7..10 ACLs.
29110         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
29111         declarations.
29112         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
29113         functions.
29114         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
29115         * lib/set-mode-acl.c (qset_acl): Likewise.
29116         * lib/copy-acl.c (qcopy_acl): Likewise.
29117
29118 2008-06-08  Bruno Haible  <bruno@clisp.org>
29119
29120         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
29121         declaration.
29122         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
29123         (acl_access_nontrivial): Remove MacOS X case.
29124         (file_has_acl): Use acl_extended_nontrivial.
29125         * lib/copy-acl.c (qcopy_acl): Likewise.
29126
29127 2008-06-08  Bruno Haible  <bruno@clisp.org>
29128
29129         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
29130
29131 2008-06-08  Jim Meyering  <meyering@redhat.com>
29132
29133         * modules/acl (Maintainer): Add Bruno Haible.
29134
29135 2008-06-07  Bruno Haible  <bruno@clisp.org>
29136
29137         Improve support for Tru64 ACLs.
29138         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
29139         ACL on OSF/1.
29140
29141 2008-06-07  Bruno Haible  <bruno@clisp.org>
29142
29143         Add support for MacOS X ACLs.
29144         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
29145         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
29146         * lib/set-mode-acl.c (qset_acl): Likewise.
29147         * lib/copy-acl.c (qcopy_acl): Likewise.
29148
29149 2008-06-07  Bruno Haible  <bruno@clisp.org>
29150
29151         Fix memory leak introduced on 2008-05-22.
29152         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
29153         use.
29154
29155 2008-06-07  Bruno Haible  <bruno@clisp.org>
29156
29157         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
29158         to construct an empty ACL.
29159
29160 2008-06-07  Bruno Haible  <bruno@clisp.org>
29161
29162         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29163         precisely.
29164         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29165
29166 2008-06-07  Bruno Haible  <bruno@clisp.org>
29167
29168         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29169         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29170
29171 2008-06-07  Bruno Haible  <bruno@clisp.org>
29172
29173         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29174         regardless of POSIX.
29175         * doc/posix-functions/_longjmp.texi: Likewise.
29176         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29177         SystemV platform in this case.
29178
29179 2008-06-06  Eric Blake  <ebb9@byu.net>
29180
29181         Document abort() bugs.
29182         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29183
29184         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29185         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29186         sigsetjmp.
29187         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29188         siglongjmp, but only as a macro.
29189         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29190         is obsolete.
29191         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29192
29193         Tweak documentation to cover cygwin argz bugs.
29194         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29195         argz bug fix; no code change needed since no cygwin releases
29196         occurred between the last fix and the bug being tested.
29197         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29198         module and recently fixed cygwin bugs.
29199         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29200         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29201         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29202         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29203         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29204         Likewise.
29205         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29206         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29207         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29208         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29209         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29210         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29211         Likewise.
29212
29213         Avoid gcc warning on cygwin.
29214         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29215         !ACL_NO_TRIVIAL]: Avoid unused variable.
29216
29217 2008-06-05  Eric Blake  <ebb9@byu.net>
29218
29219         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29220         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29221         git-version-gen fails to come up with a version.
29222         Reported by Simon Josefsson.
29223
29224 2008-06-05  Jim Meyering  <meyering@redhat.com>
29225             Paul Eggert  <eggert@cs.ucla.edu>
29226
29227         utimens.c: work around a probable Linux kernel bug
29228         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29229         appears to be a kernel bug that causes utimensat to return 280
29230         instead of 0, indicating success.
29231
29232 2008-06-04  Bruno Haible  <bruno@clisp.org>
29233
29234         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29235         2008-06-01 commit.
29236
29237 2008-06-04  Bruno Haible  <bruno@clisp.org>
29238
29239         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29240         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29241         (file_has_acl): Use it. Save errno afterwards.
29242         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29243
29244 2008-06-03  Bruno Haible  <bruno@clisp.org>
29245
29246         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29247         draft code. Simplify #ifs.
29248         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29249         Put Solaris code after POSIX-draft code. Fix comments regarding
29250         Solaris 10, HP-UX. Mention Cygwin.
29251         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29252
29253 2008-06-03  Eric Blake  <ebb9@byu.net>
29254
29255         Provide fallback for older kernels.
29256         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29257         Provide runtime fallback if kernel lacks support.
29258         Reported by Mike Frysinger.
29259
29260 2008-06-02  Bruno Haible  <bruno@clisp.org>
29261
29262         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29263         it exists.
29264
29265 2008-06-02  Bruno Haible  <bruno@clisp.org>
29266
29267         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29268         * lib/copy-acl.c (qcopy_acl): Update comment.
29269
29270 2008-06-02  Bruno Haible  <bruno@clisp.org>
29271
29272         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29273         like ACL APIs.
29274
29275 2008-06-02  Bruno Haible  <bruno@clisp.org>
29276
29277         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29278         * tests/test-set-mode-acl.sh: Likewise.
29279         * tests/test-copy-acl.sh: Likewise.
29280         * tests/test-copy-file.sh: Likewise.
29281
29282 2008-06-02  Bruno Haible  <bruno@clisp.org>
29283
29284         * tests/test-file-has-acl.sh: Remove unused code.
29285
29286 2008-06-01  Bruno Haible  <bruno@clisp.org>
29287
29288         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29289         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29290         messages.
29291         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29292
29293 2008-06-01  Bruno Haible  <bruno@clisp.org>
29294
29295         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29296         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29297         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29298         APIs.
29299         * modules/acl-tests (configure.ac): Remove tests now contained in
29300         m4/acl.m4.
29301
29302 2008-06-02  Jim Meyering  <meyering@redhat.com>
29303
29304         announce-gen: use a better key-server host name
29305         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29306         it may be more consistently reliable.  Suggested by Werner Koch
29307         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29308
29309 2008-06-01  Bruno Haible  <bruno@clisp.org>
29310
29311         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29312         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29313
29314 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29315
29316         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29317
29318 2008-06-01  Bruno Haible  <bruno@clisp.org>
29319
29320         New ACL tests.
29321         * tests/test-file-has-acl.sh: New file.
29322         * tests/test-file-has-acl.c: New file.
29323         * tests/test-set-mode-acl.sh: New file.
29324         * tests/test-set-mode-acl.c: New file.
29325         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29326         * tests/test-copy-acl.c: New file.
29327         * modules/acl-tests: New file, based on modules/copy-file-tests.
29328         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29329         (Depends-on): Add acl-tests.
29330         (configure.ac): Remove checks.
29331         (Makefile.am): Don't create test-sameacls program here any more.
29332
29333 2008-06-01  Bruno Haible  <bruno@clisp.org>
29334
29335         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29336         * tests/test-sameacls.c: Include progname.h.
29337         (main): Invoke set_program_name. Portability fixes for MacOS X,
29338         Solaris, HP-UX.
29339
29340 2008-06-01  Bruno Haible  <bruno@clisp.org>
29341
29342         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29343         function.
29344         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29345
29346 2008-06-01  Bruno Haible  <bruno@clisp.org>
29347
29348         * modules/rpmatch (Depends-on): Add strdup.
29349
29350 2008-06-01  Bruno Haible  <bruno@clisp.org>
29351
29352         * lib/pipe.c: Include unistd-safer.h.
29353         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29354         * modules/pipe (Depends-on): Add unistd-safer.
29355
29356 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29357
29358         * modules/autobuild (configure.ac): Call AB_INIT.
29359
29360 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29361
29362         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29363         Suggested by Bruno Haible <bruno@clisp.org>.
29364
29365 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29366
29367         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29368         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29369         <bruno@clisp.org>.
29370
29371 2008-05-29  Eric Blake  <ebb9@byu.net>
29372
29373         Prefer new POSIX 200x interfaces over futimesat.
29374         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29375         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29376         when available.
29377         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29378
29379 2008-05-28  Bruno Haible  <bruno@clisp.org>
29380
29381         * modules/stpcpy (License): Change to LGPLv2+.
29382         Requested by David Lutterkort <dlutter@redhat.com>.
29383
29384 2008-05-27  Bruno Haible  <bruno@clisp.org>
29385
29386         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29387         current mingw.
29388         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29389
29390 2008-05-27  Bruno Haible  <bruno@clisp.org>
29391
29392         * modules/iconv_open (Link): New section, from module 'iconv'.
29393         * modules/striconv (Link): Likewise.
29394         * modules/striconveh (Link): Likewise.
29395         * modules/xstriconv (Link): Likewise.
29396         * modules/unicodeio (Link): Likewise.
29397         * modules/propername (Link): Likewise.
29398         Reported by Jim Meyering.
29399
29400 2008-05-26  Jim Meyering  <meyering@redhat.com>
29401
29402         sha256: do not artificially restrict buffer length to be < 2^32
29403         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29404         uint32_t to size_t.
29405         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29406         to match.
29407
29408         avoid unaligned access errors, e.g., on sparc
29409         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29410         direct access through a possibly-unaligned uint64* pointer.
29411         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29412         direct access through a possibly-unaligned uint32* pointer.
29413         Prompted by this patch from Tom "spot" Callaway:
29414         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29415
29416         sha512.c: fix typo in comment
29417         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29418
29419 2008-05-25  Bruno Haible  <bruno@clisp.org>
29420
29421         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29422         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29423         (Makefile.am): Update lib_SOURCES.
29424
29425 2008-05-25  Bruno Haible  <bruno@clisp.org>
29426
29427         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29428
29429 2008-05-25  Jim Meyering  <meyering@redhat.com>
29430
29431         useless-if-before-free: freed expr may have white-space differences
29432         * build-aux/useless-if-before-free: Recognize cases in which the
29433         freed expression differs from the tested one in embedded white
29434         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29435         $1 was used, so we can't make any regexp shy.  Improved tests now
29436         detect this.
29437
29438         useless-if-before-free: accept white space in the expression.
29439         * build-aux/useless-if-before-free: For now, any white space
29440         in the expression must be identical in the free argument.
29441
29442         useless-if-before-free: efficiency tweak
29443         * build-aux/useless-if-before-free: Make the expression-matching
29444         regexp "shy".
29445         Make the *outer* regexp shy, not the expr-matching one.
29446
29447         update code-in-comment to accept cast of free arg
29448         * build-aux/useless-if-before-free: Update regexp.
29449
29450 2008-05-25  Bruno Haible  <bruno@clisp.org>
29451
29452         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29453         * modules/copy-file-tests (Files, Makefile.am): Update.
29454         * tests/test-copy-file.c (func_test_copy): Update.
29455
29456 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29457
29458         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29459
29460 2008-05-23  Bruno Haible  <bruno@clisp.org>
29461
29462         Improve support for ACLs on OSF/1.
29463         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29464         Remove fallback for unknown flavors of ACLs.
29465
29466 2008-05-22  Bruno Haible  <bruno@clisp.org>
29467
29468         Add support for ACLs on OSF/1.
29469         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29470         replacements.
29471         (acl_free_text): New macro fallback.
29472         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29473         acl_free.
29474         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29475         acl_free_text function. Require AC_C_INLINE.
29476
29477 2008-05-22  Bruno Haible  <bruno@clisp.org>
29478
29479         Make copy_acl work on MacOS X 10.5.
29480         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29481         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29482         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29483         If MODE_INSIDE_ACL, don't assume that every system has the same text
29484         representation for ACLs as FreeBSD.
29485         * lib/copy-acl.c (copy_acl): Add support for platforms with
29486         !MODE_INSIDE_ACL.
29487         * lib/file-has-acl.c (file_has_acl): Likewise.
29488         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29489         FreeBSD, MacOS X, or IRIX, respectively.
29490
29491 2008-05-22  Bruno Haible  <bruno@clisp.org>
29492
29493         * lib/acl.h: Don't include <sys/acl.h>.
29494         (GETACLCNT): Move fallback to lib/acl-internal.h.
29495         * lib/acl-internal.h: Include <sys/acl.h> here.
29496         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29497
29498 2008-05-22  Bruno Haible  <bruno@clisp.org>
29499
29500         Split off copy_acl function to separate file.
29501         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29502         * lib/acl.c (copy_acl): Moved function to separate file.
29503         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29504         * modules/acl (Files): Add lib/copy-acl.c.
29505         (Makefiles.am): Augment lib_SOURCES.
29506
29507 2008-05-22  Bruno Haible  <bruno@clisp.org>
29508
29509         * modules/copy-file-tests: New file.
29510         * tests/test-copy-file.sh: New file.
29511         * tests/test-copy-file.c: New file.
29512         * tests/test-copy-file-sameacls.c: New file.
29513
29514 2008-05-22  Eric Blake  <ebb9@byu.net>
29515
29516         Avoid gcc warning.
29517         * tests/test-memcmp.c (main): Pass NULL indirectly.
29518
29519 2008-05-21  Bruno Haible  <bruno@clisp.org>
29520
29521         Add reference doc about ACLs.
29522         * doc/acl-resources.txt: New file.
29523         * doc/acl-cygwin.txt: New file.
29524
29525 2008-05-21  Bruno Haible  <bruno@clisp.org>
29526
29527         Avoid one more warning from gcc.
29528         * lib/vasnprintf.c (IF_LINT): Update comments.
29529         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29530
29531 2008-05-21  Jim Meyering  <meyering@redhat.com>
29532
29533         avoid a warning from gcc
29534         * lib/vasnprintf.c (IF_LINT): Define.
29535         (scale10_round_decimal_long_double):
29536         Use it to avoid a "may be used uninitialized" warning.
29537         (scale10_round_decimal_double): Likewise.
29538
29539 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29540
29541         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29542         declared.
29543
29544 2008-05-20  Bruno Haible  <bruno@clisp.org>
29545
29546         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29547         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29548
29549 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29550
29551         * modules/memcmp-tests: New file.
29552         * tests/test-memcmp.c: New file.
29553
29554 2008-05-19  Bruno Haible  <bruno@clisp.org>
29555
29556         * modules/propername (Notice, configure.ac): Put quoted "..." into
29557         --keyword option.
29558         * lib/propername.h: Update comments accordingly.
29559         Reported by Eric Blake.
29560
29561 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29562
29563         * modules/getpass-gnu (Depends-on): Add fseeko.
29564
29565 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29566
29567         * modules/base64-tests: New file.
29568
29569 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29570
29571         * lib/base64.c (base64_decode_ctx): If a decode context structure
29572         was passed in use it to ignore newlines.  If a context structure
29573         was _not_ passed in, continue to treat newlines as garbage (this
29574         is the historical behavior).  Formerly base64_decode.
29575         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29576         takes a decode context structure.
29577         * lib/base64.h (base64_decode): Macro for four-argument calls.
29578         (base64_decode_alloc): Likewise.
29579         * lib/base64.c (base64_decode_ctx): If a decode context structure
29580         was passed in use it to ignore newlines.  If a context structure
29581         was _not_ passed in, continue to treat newlines as garbage (this
29582         is the historical behavior).  Formerly base64_decode.
29583         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29584         takes a decode context structure.
29585         * lib/base64.h (base64_decode): Macro for four-argument calls.
29586         (base64_decode_alloc): Likewise.
29587
29588 2008-05-19  Jim Meyering  <meyering@redhat.com>
29589
29590         avoid a warning from gcc
29591         * lib/trim.c (IF_LINT): Define.
29592         (trim2): Use it to avoid a "may be used uninitialized" warning.
29593
29594         Fix doc typo.
29595         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29596
29597 2008-05-19  Bruno Haible  <bruno@clisp.org>
29598
29599         * doc/glibc-functions/getpass.texi: Document limits of other
29600         implementations.
29601
29602 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29603             Bruno Haible <bruno@clisp.org>
29604
29605         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29606
29607 2008-05-18  Bruno Haible  <bruno@clisp.org>
29608
29609         * modules/propername: New file, from GNU gettext.
29610         * lib/propername.h: New file, from GNU gettext.
29611         * lib/propername.c: New file, from GNU gettext.
29612         * MODULES.html.sh (Internationalization functions): Add propername.
29613
29614 2008-05-16  Jim Meyering  <meyering@redhat.com>
29615             Bruno Haible  <bruno@clisp.org>
29616
29617         Avoid some warnings from "gcc -Wshadow".
29618         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29619
29620 2008-05-15  Eric Blake  <ebb9@byu.net>
29621
29622         Extend previous patch to cygwin 1.7.0.
29623         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29624         fast implementation in cygwin >= 1.7.0.
29625         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29626         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29627
29628 2008-05-15  Bruno Haible  <bruno@clisp.org>
29629
29630         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29631         implementation in glibc >= 2.9.
29632         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29634
29635 2008-05-15  Bruno Haible  <bruno@clisp.org>
29636
29637         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29638         (Unicode string functions): Add unilbrk/*.
29639         Reported by Karl Berry.
29640
29641 2008-05-15  Eric Blake  <ebb9@byu.net>
29642
29643         Fix violation of <stdbool.h> replacement in regex.
29644         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29645         * lib/regexec.c (re_search_internal): Likewise.
29646         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29647
29648 2008-05-15  Jim Meyering  <meyering@redhat.com>
29649
29650         avoid distracting test output when git or cvs is not found
29651         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29652         * tests/test-vc-list-files-git.sh: Likewise.
29653
29654 2008-05-15  Eric Blake  <ebb9@byu.net>
29655
29656         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29657         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29658         glibc version.
29659         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29660         * doc/posix-functions/strstr.texi (strstr): Likewise.
29661         * lib/str-two-way.h (MAX): Sychronize with glibc.
29662
29663 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29664
29665         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29666         opr.ctx_type.
29667         (calc_first): Initialize constraint field.
29668         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29669         Fix grammar.
29670         (duplicate_node): Merge constraint field for all node types.
29671         (calc_eclosure_iter): Look at constraint field for all node types.
29672         * lib/regex_internal.c (create_cd_newstate): Don't look at
29673         opr.ctx_type.
29674
29675 2008-05-14  Bruno Haible  <bruno@clisp.org>
29676
29677         Help GCC to do better code generation.
29678         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29679         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29680         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29681         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29682         Declare with attribute 'malloc' if supported.
29683
29684 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29685
29686         use "echo STR|wc -c" rather than unportable "expr length STR"
29687         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29688         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29689
29690 2008-05-14  Jim Meyering  <meyering@redhat.com>
29691
29692         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29693         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29694         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29695         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29696         via Collin Lasse.
29697
29698 2008-05-14  Eric Blake  <ebb9@byu.net>
29699
29700         Avoid quadratic growth in gl_LIBSOURCES.
29701         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29702         Suggested by Bruno Haible.
29703
29704         Test xmemdup0.
29705         * modules/xmemdup0-tests: New file.
29706         * tests/test-xmemdup0.c: Likewise.
29707
29708 2008-05-13  Eric Blake  <ebb9@byu.net>
29709
29710         Split xmemdup0 into its own module.
29711         * modules/xmemdup0: New file.
29712         * lib/xmemdup0.h: Likewise.
29713         * lib/xmemdup0.c: Likewise.
29714         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29715         * lib/xalloc.h (xmemdup0): Remove.
29716         * lib/xmalloc.c (xmemdup0): Likewise.
29717
29718 2008-05-13  Eric Blake  <ebb9@byu.net>
29719             Bruno Haible  <bruno@clisp.org>
29720
29721         Reduce number of forks required during autoconf.
29722         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29723         and gl_LIBSOURCES_DIR.
29724         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29725         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29726         m4_syscmd per file.
29727         <m4_foreach_w>: Move...
29728         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29729
29730 2008-05-13  Eric Blake  <ebb9@byu.net>
29731
29732         * gnulib-tool: Fix various comment typos.
29733
29734 2008-05-12  Bruno Haible  <bruno@clisp.org>
29735
29736         Tailor the linebreaking algorithm.
29737         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29738
29739 2008-05-12  Bruno Haible  <bruno@clisp.org>
29740
29741         Update to Unicode 5.0.0.
29742         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29743         LBP_JV, LBP_JT. Redistribute values.
29744         (unilbrk_table): Change size.
29745         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29746         Unicode TR#14 rev. 22.
29747         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29748         LBP_JV, LBP_JT. Redistribute values.
29749         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29750         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29751         Update.
29752         * lib/unilbrk/lbrkprop1.h: Regenerated.
29753         * lib/unilbrk/lbrkprop2.h: Regenerated.
29754         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29755         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29756         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29757         Likewise.
29758         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29759         Likewise.
29760         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29761         result.
29762         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29763         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29764         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29765         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29766         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29767         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29768
29769 2008-05-11  Bruno Haible  <bruno@clisp.org>
29770
29771         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29772
29773 2008-05-11  Bruno Haible  <bruno@clisp.org>
29774
29775         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29776         * modules/unilbrk/gen-lbrk: New file.
29777
29778 2008-05-11  Bruno Haible  <bruno@clisp.org>
29779
29780         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29781         * m4/sha512.m4 (gl_SHA512): Likewise.
29782
29783 2008-05-11  Jim Meyering  <meyering@redhat.com>
29784
29785         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29786         * modules/crypto/sha256: New file.
29787         * modules/crypto/sha512: Likewise.
29788         * lib/sha256.c: Likewise.
29789         * lib/sha256.h: Likewise.
29790         * lib/sha512.c: Likewise.
29791         * lib/sha512.h: Likewise.
29792         * lib/u64.h: Likewise.
29793         * m4/sha256.m4: Likewise.
29794         * m4/sha512.m4: Likewise.
29795         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29796
29797 2008-05-10  Bruno Haible  <bruno@clisp.org>
29798
29799         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29800         (Input/Output <stdio.h>): Add xprintf.
29801         (Signal handling <signal.h>): Add strsignal.
29802         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29803         (Core language properties): Add func.
29804         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29805         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29806         strings.
29807         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29808         (Input/output): New section.
29809         (File system functions): Add openat-die, stat-macros.
29810         (Networking functions): Add sockets.
29811         (Unicode string functions): Add unictype/*.
29812         (Support for building libraries and executables): Add gperf.
29813         (Support for building documentation): Add agpl-3.0.
29814         (Misc): Add nocrash.
29815
29816 2008-05-10  Bruno Haible  <bruno@clisp.org>
29817
29818         * modules/unictype/gen-ctype: New file.
29819
29820 2008-05-10  Jim Meyering  <meyering@redhat.com>
29821
29822         Make chdir-safer.c more efficient on a system with no symlinks.
29823         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29824         also if ELOOP is zero.  Suggested by Bruno Haible.
29825
29826         Make chdir-safer.c slightly safer.
29827         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29828         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
29829
29830         Avoid compile failure on systems without ELOOP (like mingw).
29831         * lib/chdir-safer.c (ELOOP): Define if not already defined.
29832         Reported by Bruno Haible.
29833
29834 2008-05-10  Bruno Haible  <bruno@clisp.org>
29835
29836         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
29837         (is_utf8_encoding): Use a case-insensitive comparison.
29838         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
29839         streq.
29840
29841 2008-05-10  Bruno Haible  <bruno@clisp.org>
29842
29843         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
29844         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
29845         * lib/unilbrk/ulc-common.h (iconv_string_length,
29846         iconv_string_keeping_offsets): Remove declarations.
29847         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
29848         Don't include <iconv.h>, streq.h, xsize.h.
29849         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
29850         conversion.
29851         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
29852         <iconv.h>, streq.h, xsize.h.
29853         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
29854         conversion.
29855         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
29856         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
29857         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
29858         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
29859
29860 2008-05-10  Bruno Haible  <bruno@clisp.org>
29861
29862         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
29863         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
29864
29865         * modules/unilbrk/u32-width-linebreaks-tests: New file.
29866         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
29867
29868         * modules/unilbrk/u16-width-linebreaks-tests: New file.
29869         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
29870
29871         * modules/unilbrk/u8-width-linebreaks-tests: New file.
29872         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
29873
29874         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
29875         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
29876
29877         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
29878         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
29879
29880         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
29881         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
29882
29883         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
29884         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
29885
29886 2008-05-10  Bruno Haible  <bruno@clisp.org>
29887
29888         Split up 'linebreak' module.
29889         * lib/unilbrk.h: New file, based on lib/linebreak.h.
29890         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
29891         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
29892         modifications.
29893         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
29894         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
29895         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
29896         lib/linebreak.c.
29897         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
29898         lib/linebreak.c.
29899         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
29900         lib/linebreak.c.
29901         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
29902         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
29903         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
29904         lib/linebreak.c.
29905         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
29906         lib/linebreak.c.
29907         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
29908         lib/linebreak.c.
29909         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
29910         lib/linebreak.c.
29911         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
29912         lib/linebreak.c.
29913         * modules/unilbrk/base: New file.
29914         * modules/unilbrk/tables: New file.
29915         * modules/unilbrk/u8-possible-linebreaks: New file.
29916         * modules/unilbrk/u16-possible-linebreaks: New file.
29917         * modules/unilbrk/u32-possible-linebreaks: New file.
29918         * modules/unilbrk/ulc-common: New file.
29919         * modules/unilbrk/ulc-possible-linebreaks: New file.
29920         * modules/unilbrk/u8-width-linebreaks: New file.
29921         * modules/unilbrk/u16-width-linebreaks: New file.
29922         * modules/unilbrk/u32-width-linebreaks: New file.
29923         * modules/unilbrk/ulc-width-linebreaks: New file.
29924         * lib/linebreak.h: Remove file.
29925         * lib/linebreak.c: Remove file.
29926         * m4/linebreak.m4: Remove file.
29927         * modules/linebreak: Remove file.
29928         * NEWS: Mention the changes.
29929
29930 2008-05-09  Eric Blake  <ebb9@byu.net>
29931
29932         Add xmemdup0.
29933         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
29934         implementation.
29935         * lib/xmalloc.c (xmemdup0): New C implementation.
29936
29937 2008-05-08  Bruno Haible  <bruno@clisp.org>
29938
29939         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
29940
29941 2008-05-07  Eric Blake  <ebb9@byu.net>
29942
29943         Support cross-compilation of <wctype.h>.
29944         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
29945         AC_CACHE_CHECK.
29946
29947 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
29948
29949         * build-aux/vc-list-files: Add support for bzr.
29950
29951 2008-05-03  Jim Meyering  <meyering@redhat.com>
29952
29953         avoid failed assertion with tight malloc
29954         * tests/test-getndelim2.c: Correct an off-by-one assertion.
29955
29956 2008-05-03  Simon Josefsson  <simon@josefsson.org>
29957
29958         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
29959         are needed from arpa/inet.h.
29960         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
29961         Reported by Bruno Haible.
29962
29963 2008-05-02  Jim Meyering  <meyering@redhat.com>
29964
29965         avoid compilation error on FreeBSD 6
29966         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
29967
29968 2008-05-01  Jim Meyering  <meyering@redhat.com>
29969
29970         useless-if-before-free: correct --help's exit status description
29971         * build-aux/useless-if-before-free (usage): Like grep, exit 0
29972         for one or more matches, etc.  Reported by Bruno Haible.
29973
29974         vc-list-files: make the stand-alone gnulib test work
29975         * modules/vc-list-files-tests (configure.ac):
29976         Define and AC_SUBST abs_aux_dir.
29977         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
29978         $(abs_top_srcdir) to each script and having each of them
29979         duplicate the work of setting PATH, set PATH here, using
29980         the new variable, abs_aux_dir instead.
29981         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
29982         * tests/test-vc-list-files-git.sh: Likewise.
29983         Reported by Bruno Haible.
29984
29985 2008-05-01  Bruno Haible  <bruno@clisp.org>
29986
29987         * lib/getndelim2.c (getndelim2): Fix newsize computation during
29988         reallocation. Rename 'done' to 'found_delimiter'.
29989
29990 2008-05-01  Jim Meyering  <meyering@redhat.com>
29991
29992         vc-list-files: accommodate /bin/sh like the one from Solaris 10
29993         * build-aux/vc-list-files: Use `...`, not $(...).
29994
29995 2008-04-30  Jim Meyering  <meyering@redhat.com>
29996
29997         add tests for vc-list-files
29998         * modules/vc-list-files-tests: New module.
29999         * tests/test-vc-list-files-cvs.sh: New file.
30000         * tests/test-vc-list-files-git.sh: New file.
30001
30002         avoid a warning from gcc
30003         * lib/getndelim2.c (IF_LINT): Define.
30004         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
30005
30006         vc-list-files: work properly with build-aux/cvsu, too
30007         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
30008         to all cvs-based clauses.
30009
30010         vc-list-files: work properly in the CVS+awk case, too
30011         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
30012
30013         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
30014         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
30015         take more than one file argument, so .  Add quotes, just in case $dir
30016         ever contains a shell meta-character.  Prompted by Soren Hansen in
30017         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
30018
30019 2008-04-29  Eric Blake  <ebb9@byu.net>
30020
30021         Optimize getndelim2 to use block operations when possible.
30022         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
30023         freadseek, and memchr2.
30024         * lib/getndelim2.c (getndelim2): Use them for block reads.
30025
30026 2008-04-29  Bruno Haible  <bruno@clisp.org>
30027
30028         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
30029         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30030         * modules/inet_ntop (Depends-on): Add extensions.
30031         * modules/inet_pton (Depends-on): Likewise.
30032         Reported by Simon Josefsson.
30033
30034 2008-04-29  Jim Meyering  <meyering@redhat.com>
30035
30036         When the is more than one match in a block, match all of them.
30037         * build-aux/useless-if-before-free: Iterate through each block
30038         until there are no more matches.
30039
30040         Fix broken useless-if-before-free script.
30041         * build-aux/useless-if-before-free: Fix typo: missing "?" after
30042         the expression to match cast of argument to free-like function.
30043
30044 2008-04-29  Eric Blake  <ebb9@byu.net>
30045
30046         Use new header.
30047         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
30048
30049 2008-04-29  Jim Meyering  <meyering@redhat.com>
30050
30051         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
30052         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
30053         by gnulib to exist and to declare e.g., inet_ntop.
30054         Don't include "inet_ntop.h", now removed.
30055
30056         * m4/arpa_inet_h.m4: Remove trailing blanks.
30057
30058 2008-04-29  Eric Blake  <ebb9@byu.net>
30059
30060         Silence valgrind on safe reads beyond potential array bounds.
30061         * lib/rawmemchr.valgrind: New file.
30062         * lib/strchrnul.valgrind: Likewise.
30063         * modules/rawmemchr (Files): Distribute new file.
30064         * modules/strchrnul (Files): Likewise.
30065         Suggested by Bruno Haible.
30066
30067 2008-04-29  Bruno Haible  <bruno@clisp.org>
30068
30069         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
30070         (inet_ntop, inet_pton): Change portability warning's wording.
30071         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
30072         Invoke gl_CHECK_NEXT_HEADERS.
30073         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
30074         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
30075         set ARPA_INET_H.
30076         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30077         * modules/arpa_inet (Description): No longer only for systems that
30078         lack it.
30079         (Depends-on): Add include_next.
30080         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
30081         HAVE_ARPA_INET_H.
30082
30083 2008-04-29  Jim Meyering  <meyering@redhat.com>
30084
30085         * modules/mkdir (License): Re-license as LGPLv2+.
30086
30087 2008-04-29  Bruno Haible  <bruno@clisp.org>
30088
30089         * modules/rawmemchr (Maintainer): Set to Eric.
30090         * modules/strchrnul (Maintainer): Likewise.
30091
30092 2008-04-29  Simon Josefsson  <simon@josefsson.org>
30093
30094         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
30095         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
30096
30097         * modules/arpa_inet (arpa/inet.h): Use them.
30098
30099 2008-04-28  Eric Blake  <ebb9@byu.net>
30100
30101         Test getndelim2.
30102         * modules/getndelim2-tests: New file.
30103         * tests/test-getndelim2.c: Likewise.
30104         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
30105         stream.
30106         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
30107
30108         * MODULES.html.sh: Document new module.
30109
30110 2008-04-20  Bruno Haible  <bruno@clisp.org>
30111
30112         * lib/c-stack.c (die): Use raise.
30113         * modules/c-stack (Depends-on): Add raise.
30114
30115 2008-04-28  Bruno Haible  <bruno@clisp.org>
30116
30117         Expect rpmatch to be declared.
30118         * lib/yesno.c (rpmatch): Remove declaration.
30119
30120         Declare rpmatch.
30121         * lib/stdlib.in.h (rpmatch): New declaration.
30122         * lib/rpmatch.c: Include <stdlib.h> first.
30123         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
30124         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
30125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
30126         HAVE_RPMATCH.
30127         * modules/rpmatch (Depends-on): Add stdlib, extensions.
30128         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30129         (Include): Set to <stdlib.h>.
30130         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
30131         HAVE_RPMATCH.
30132         * NEWS: Document the change.
30133
30134 2008-04-28  Bruno Haible  <bruno@clisp.org>
30135
30136         Change rpmatch to use nl_langinfo when appropriate.
30137         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
30138         (N_): New macro.
30139         (localized_pattern): New function/macro.
30140         (try): Remove match, nomatch arguments. Copy the pattern into safe
30141         memory before caching it.
30142         (rpmatch): Use localized_pattern. Add translator comments.
30143         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
30144         Suggested by Eric Blake.
30145         * modules/rpmatch (Depends-on): Add stdbool.
30146
30147 2008-04-28  Eric Blake  <ebb9@byu.net>
30148
30149         Add rawmemchr module, matching glibc.
30150         * modules/string (Makefile.am): New indicator.
30151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
30152         * lib/string.in.h (rawmemchr): Declare when appropriate.
30153         * modules/rawmemchr: New file.
30154         * m4/rawmemchr.m4: Likewise.
30155         * lib/rawmemchr.c: Likewise.
30156         * modules/rawmemchr-tests: Likewise.
30157         * tests/test-rawmemchr.c: Likewise.
30158         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30159         module.
30160         * modules/strchrnul (Depends-on): Add rawmemchr.
30161         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30162
30163         Whitespace cleanup.
30164         * tests/test-strchrnul.c: Reindent.
30165         * lib/strchrnul.c: Likewise.
30166
30167         Optimize and test strchrnul.
30168         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30169         * modules/strchrnul-tests: New file.
30170         * tests/test-strchrnul.c: Likewise.
30171
30172         Remove intprops dependency.
30173         * modules/memchr (Depends-on): Remove intprops.
30174         * modules/memrchr (Depends-on): Likewise.
30175         * modules/memchr2 (Depends-on): Likewise.
30176         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30177         * lib/memrchr.c (__memrchr): Likewise.
30178         * lib/memrchr2.c (memchr2): Likewise.
30179         Reported by Simon Josefsson.
30180
30181 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30182
30183         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30184         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30185
30186 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30187
30188         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30189
30190         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30191
30192         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30193
30194         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30195         declarations.
30196         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30197
30198         * m4/inet_pton.m4: Don't check for header files.
30199
30200         * m4/inet_ntop.m4: Don't check for header files.
30201
30202 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30203
30204         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30205         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30206         trigger for cygwin).
30207         Reported by Bruno Haible  <bruno@clisp.org>.
30208
30209 2008-04-28  Bruno Haible  <bruno@clisp.org>
30210
30211         * doc/posix-functions/strdup.texi: Mention mingw problem.
30212
30213 2008-04-27  Bruno Haible  <bruno@clisp.org>
30214
30215         * modules/stat-time-tests (Depends-on): Add sleep.
30216         * tests/test-stat-time.c (force_unlink): New function.
30217         (cleanup): Use it.
30218         (test_mtime): Remove the ctime related tests.
30219         (test_ctime): New function, containing the ctime related tests.
30220         (main): Call test_ctime, except on native Windows platforms.
30221
30222 2008-04-27  Bruno Haible  <bruno@clisp.org>
30223
30224         * lib/rpmatch.c (rpmatch): Add some comments.
30225         Reported by James Youngman <jay@gnu.org>.
30226
30227 2008-04-27  Bruno Haible  <bruno@clisp.org>
30228
30229         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30230         quiet NaNs.
30231
30232 2008-04-27  Bruno Haible  <bruno@clisp.org>
30233
30234         Make test-yesno.sh work on mingw.
30235         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30236         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30237         (main): Set stdin to binary mode.
30238         * modules/yesno-tests (Depends-on): Add binary-io.
30239
30240 2008-04-27  Bruno Haible  <bruno@clisp.org>
30241
30242         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30243         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30244         argument that lie outside the IEEE 854 domain.
30245         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30246         (gl_ISFINITE): Use it.
30247         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30248
30249 2008-04-27  Bruno Haible  <bruno@clisp.org>
30250
30251         Allow local renaming in config.h.
30252         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30253
30254 2008-04-27  Bruno Haible  <bruno@clisp.org>
30255
30256         * lib/memchr.c (__memchr): Change type of 'i'.
30257         * lib/memchr2.c (memchr2): Likewise.
30258
30259 2008-04-26  Eric Blake  <ebb9@byu.net>
30260         and Bruno Haible  <bruno@clisp.org>
30261
30262         Optimize and test memrchr.
30263         * modules/memrchr (Depends-on): Add intprops.
30264         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30265         * modules/memrchr-tests: New file.
30266         * tests/test-memrchr.c: New file.
30267
30268 2008-04-26  Bruno Haible  <bruno@clisp.org>
30269
30270         Add tentative support for DragonFly BSD.
30271         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30272         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30273         fp.
30274         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30275         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30276         * lib/fpurge.c (fpurge): Likewise.
30277         * lib/freadable.c (freaadable): Likewise.
30278         * lib/freadahead.c (freadahead): Likewise.
30279         * lib/freading.c (freading): Likewise.
30280         * lib/freadptr.c (freadptr): Likewise.
30281         * lib/freadseek.c (freadptrinc): Likewise.
30282         * lib/fseeko.c (fseeko): Likewise.
30283         * lib/fseterr.c (fseterr): Likewise.
30284         * lib/fwritable.c (fwritable): Likewise.
30285         * lib/fwriting.c (fwriting): Likewise.
30286
30287 2008-04-26  Bruno Haible  <bruno@clisp.org>
30288
30289         * lib/stdio-impl.h: New file.
30290         * lib/fbufmode.c: Include stdio-impl.h.
30291         (fbufmode): Use fp_, remove redundant #defines.
30292         * lib/fflush.c: Include stdio-impl.h.
30293         (clear_ungetc_buffer): Remove redundant #defines.
30294         * lib/fpurge.c: Include stdio-impl.h.
30295         (fpurge): Remove redundant #defines.
30296         * lib/freadable.c: Include stdio-impl.h.
30297         (freadable): Remove redundant #defines.
30298         * lib/freadahead.c: Include stdio-impl.h.
30299         (freadahead): Remove redundant #defines.
30300         * lib/freading.c: Include stdio-impl.h.
30301         (freading): Remove redundant #defines.
30302         * lib/freadptr.c: Include stdio-impl.h.
30303         (freadptr): Remove redundant #defines.
30304         * lib/freadseek.c: Include stdio-impl.h.
30305         (freadptrinc): Remove redundant #defines.
30306         * lib/fseeko.c: Include stdio-impl.h.
30307         (rpl_fseeko): Remove redundant #defines.
30308         * lib/fseterr.c: Include stdio-impl.h.
30309         (fseterr): Remove redundant #defines.
30310         * lib/fwritable.c: Include stdio-impl.h.
30311         (fwritable: Remove redundant #defines.
30312         * lib/fwriting.c: Include stdio-impl.h.
30313         (fwriting): Remove redundant #defines.
30314         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30315         * modules/fflush (Files): Likewise.
30316         * modules/fpurge (Files): Likewise.
30317         * modules/freadable (Files): Likewise.
30318         * modules/freadahead (Files): Likewise.
30319         * modules/freading (Files): Likewise.
30320         * modules/freadptr (Files): Likewise.
30321         * modules/freadseek (Files): Likewise.
30322         * modules/fseeko (Files): Likewise.
30323         * modules/fseterr (Files): Likewise.
30324         * modules/fwritable (Files): Likewise.
30325         * modules/fwriting (Files): Likewise.
30326
30327 2008-04-26  Bruno Haible  <bruno@clisp.org>
30328
30329         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30330         restore_seek_optimization, update_fpos_cache): New functions, extracted
30331         from rpl_fflush.
30332         (rpl_fflush): Use them.
30333         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30334         (gl_REPLACE_FFLUSH): Use it.
30335
30336 2008-04-26  Bruno Haible  <bruno@clisp.org>
30337
30338         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30339         on Solaris.
30340         * tests/test-xstrtoimax.sh: Likewise.
30341         * tests/test-xstrtoumax.sh: Likewise.
30342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30343
30344 2008-04-26  Bruno Haible  <bruno@clisp.org>
30345
30346         * modules/memchr-tests: New file.
30347         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30348
30349 2008-04-26  Eric Blake  <ebb9@byu.net>
30350             Bruno Haible  <bruno@clisp.org>
30351
30352         * lib/memchr.c: Include intprops.h.
30353         (__memchr): Optimize parallel detection of matching bytes. Rename local
30354         variables. Add explanatory comments.
30355
30356 2008-04-26  Bruno Haible  <bruno@clisp.org>
30357
30358         Fix module 'memchr', broken since 2000-10-28.
30359         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30360
30361 2008-04-26  Bruno Haible  <bruno@clisp.org>
30362
30363         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30364         comments.
30365
30366 2008-04-25  Eric Blake  <ebb9@byu.net>
30367
30368         Use native fstatat on cygwin 1.7.0.
30369         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30370         first.
30371
30372 2008-04-23  Eric Blake  <ebb9@byu.net>
30373
30374         Improve memchr2 performance.
30375         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30376         NUL bytes.
30377         * modules/memchr2 (Depends-on): Use intprops.h.
30378
30379 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30380
30381         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30382         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30383         <blp@cs.stanford.edu>.
30384
30385 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30386
30387         * lib/arpa_inet.in.h: New file.
30388
30389         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30390         (Makefile.am): Sed in substitute header file.
30391
30392         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30393         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30394
30395         * modules/inet_ntop (configure.ac): Use
30396         gl_ARPA_INET_MODULE_INDICATOR.
30397
30398         * modules/inet_pton (configure.ac): Use
30399         gl_ARPA_INET_MODULE_INDICATOR.
30400
30401 2008-04-22  Jim Meyering  <meyering@redhat.com>
30402
30403         * modules/verify (License): Re-license as LGPLv2+.
30404
30405 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30406
30407         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30408         parameter to void* as per POSIX standard (MinGW uses char*).
30409
30410 2008-04-21  Bruno Haible  <bruno@clisp.org>
30411
30412         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30413         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30414         Define to replacements if REPLACE_ISWCNTRL is 1.
30415         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30416         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30417         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30418         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30419         what it fixes.
30420         * doc/posix-functions/iswalpha.texi: Likewise.
30421         * doc/posix-functions/iswblank.texi: Likewise.
30422         * doc/posix-functions/iswcntrl.texi: Likewise.
30423         * doc/posix-functions/iswdigit.texi: Likewise.
30424         * doc/posix-functions/iswgraph.texi: Likewise.
30425         * doc/posix-functions/iswlower.texi: Likewise.
30426         * doc/posix-functions/iswprint.texi: Likewise.
30427         * doc/posix-functions/iswpunct.texi: Likewise.
30428         * doc/posix-functions/iswspace.texi: Likewise.
30429         * doc/posix-functions/iswupper.texi: Likewise.
30430         * doc/posix-functions/iswxdigit.texi: Likewise.
30431         Reported by Alain Guibert.
30432
30433 2008-04-21  Bruno Haible  <bruno@clisp.org>
30434
30435         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30436         Patch by Alain Guibert.
30437
30438 2008-04-21  Bruno Haible  <bruno@clisp.org>
30439
30440         Fix test failures on mingw.
30441         * tests/test-xstrtol.c (print_no_progname): New function.
30442         (main): Install it in error_print_progname hook.
30443         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30444         * tests/test-xstrtoimax.sh: Likewise.
30445         * tests/test-xstrtoumax.sh: Likewise.
30446
30447 2008-04-21  Bruno Haible  <bruno@clisp.org>
30448
30449         Fix test failure on mingw.
30450         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30451
30452 2008-04-21  Bruno Haible  <bruno@clisp.org>
30453
30454         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30455         Actually assign a value.
30456
30457 2008-04-20  Bruno Haible  <bruno@clisp.org>
30458
30459         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30460         take 2.
30461         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30462         'canonicalize-lgpl' module is also used.
30463         * lib/canonicalize-lgpl.c: Undo last change.
30464         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30465
30466 2008-04-20  Bruno Haible  <bruno@clisp.org>
30467
30468         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30469         config.h. Provide _mkdir based fallback for mingw.
30470         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30471         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30472         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30473         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30474         rather than defining mkdir in config.h.
30475         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30476         (gl_SYS_STAT_H_DEFAULTS): New macro.
30477         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30478         HAVE_IO_H any more.
30479         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30480         HAVE_DECL_MKDIR and HAVE_IO_H.
30481
30482 2008-04-20  Bruno Haible  <bruno@clisp.org>
30483
30484         * lib/isapipe.c: Port to native Windows platforms.
30485
30486 2008-04-20  Bruno Haible  <bruno@clisp.org>
30487
30488         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30489
30490 2008-04-21  Eric Blake  <ebb9@byu.net>
30491
30492         Work around preprocessors that don't handle UINTMAX_MAX.
30493         * lib/memchr2.c (memchr2): Avoid embedded #if.
30494         Reported by Alain Guibert, fix suggested by Bruno Haible.
30495
30496 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30497
30498         * doc/posix-functions/strftime.texi (strftime): Explain better
30499         Windows incompatibility.  Suggested by Micah Cowan
30500         <micah@cowan.name>.
30501
30502 2008-04-20  Bruno Haible  <bruno@clisp.org>
30503
30504         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30505         unistr/u8-mblen.
30506
30507 2008-04-20  Bruno Haible  <bruno@clisp.org>
30508
30509         Fix test failure on platforms with non-GNU iconv.
30510         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30511         (U_TO_U8): Use it, rather than u16_to_u8.
30512         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30513         units at the end of the input string.
30514         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30515
30516 2008-04-20  Bruno Haible  <bruno@clisp.org>
30517
30518         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30519         when the resulting length is 0.
30520         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30521
30522 2008-04-20  Bruno Haible  <bruno@clisp.org>
30523
30524         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30525         works.
30526         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30527
30528 2008-04-20  Bruno Haible  <bruno@clisp.org>
30529
30530         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30531         * modules/tsearch-tests (configure.ac): Test for initstate function.
30532
30533 2008-04-20  Bruno Haible  <bruno@clisp.org>
30534
30535         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30536         for nlink_t if missing.
30537         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30538
30539 2008-04-19  Bruno Haible  <bruno@clisp.org>
30540
30541         Work around snprintf bug on Linux libc5.
30542         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30544         gl_SNPRINTF_SIZE1.
30545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30546         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30547         that test failed.
30548         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30549         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30550         * modules/snprintf (Files): Add m4/printf.m4.
30551         * modules/vsnprintf (Files): Likewise.
30552         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30553         * doc/posix-functions/vsnprintf.texi: Likewise.
30554
30555 2008-04-19  Bruno Haible  <bruno@clisp.org>
30556
30557         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30558         from 0.0058 to less than 10^-7.
30559
30560 2008-04-19  Bruno Haible  <bruno@clisp.org>
30561
30562         Fix rounding when a precision is given.
30563         * lib/vasnprintf.c (is_borderline): New function.
30564         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30565         9...9x.
30566         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30567         %e, %g.
30568         * tests/test-vasprintf-posix.c (test_function): Likewise.
30569         * tests/test-snprintf-posix.h (test_function): Likewise.
30570         * tests/test-sprintf-posix.h (test_function): Likewise.
30571         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30572         * tests/test-printf-posix.h (test_function): Likewise.
30573         * tests/test-printf-posix.output: Update.
30574         Reported by John Darrington <john@darrington.wattle.id.au> via
30575         Ben Pfaff <blp@cs.stanford.edu>.
30576
30577 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30578
30579         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30580         Suggested by Bruno Haible <bruno@clisp.org>.
30581
30582 2008-04-17  Bruno Haible  <bruno@clisp.org>
30583
30584         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30585         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30586         implementation.
30587         Patch by Bruce Merry <bmerry@gmail.com>.
30588
30589 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30590
30591         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30592         doesn't work under Windows.
30593
30594 2008-04-16  Bruno Haible  <bruno@clisp.org>
30595
30596         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30597         New macros.
30598         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30599         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30600         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30601         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30602         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30603         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30604         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30605         macros.
30606         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30607         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30608         Northern Sotho, Uighur.
30609
30610 2008-04-16  Bruno Haible  <bruno@clisp.org>
30611
30612         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30613         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30614         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30615         Reported by Daniel Bergström <daniel@octocode.com>.
30616
30617 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30618             Bruno Haible  <bruno@clisp.org>
30619
30620         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30621         function.
30622         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30623         New functions, mostly extracted from gl_locale_name_default.
30624         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30625
30626 2008-04-16  Eric Blake  <ebb9@byu.net>
30627
30628         Adjust strtod detection to catch glibc 2.7 bug.
30629         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30630         Reported by John Gatewood Ham.
30631
30632 2008-04-16  Bruno Haible  <bruno@clisp.org>
30633
30634         Add tentative support for Linux libc5.
30635         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30636         * lib/fpurge.c (fpurge): Likewise.
30637         * lib/freadable.c (freadable): Likewise.
30638         * lib/freadahead.c (freadahead): Likewise.
30639         * lib/freading.c (freading): Likewise.
30640         * lib/freadptr.c (freadptr): Likewise.
30641         * lib/freadseek.c (freadptrinc): Likewise.
30642         * lib/fseeko.c (rpl_fseeko): Likewise.
30643         * lib/fseterr.c (fseterr): Likewise.
30644         * lib/fwritable.c (fwritable): Likewise.
30645         * lib/fwriting.c (fwriting): Likewise.
30646         Reported by Alain Guibert <alguibert+bts@free.fr>.
30647
30648 2008-04-15  Bruno Haible  <bruno@clisp.org>
30649
30650         * modules/mathl (configure.ac): Define module indicator.
30651
30652 2008-04-15  Bruno Haible  <bruno@clisp.org>
30653
30654         * lib/logl.c (logl): Remove unused variables.
30655
30656 2008-04-15  Bruno Haible  <bruno@clisp.org>
30657
30658         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30659         fails.
30660
30661 2008-04-15  Bruno Haible  <bruno@clisp.org>
30662
30663         * lib/trim.c (trim2): Fix argument of isspace() macro.
30664
30665 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30666
30667         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30668         to 0.
30669         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30670
30671 2008-04-14  Bruno Haible  <bruno@clisp.org>
30672
30673         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30674         AC_LANG_PROGRAM argument.
30675         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30676         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30678         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30679         * m4/math_h.m4 (gl_MATH_H): Likewise.
30680         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30682         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30683         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30684         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30685         * m4/regex.m4 (gl_REGEX): Likewise.
30686         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30687         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30689         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30690         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30691         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30692         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30693         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30694
30695 2008-04-14  Jim Meyering  <meyering@redhat.com>
30696
30697         test-strtod: fix typos: s/abs/fabs/
30698         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30699
30700 2008-04-13  Bruno Haible  <bruno@clisp.org>
30701
30702         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30703         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30704         module is also used and while not building the reloc-wrapper.
30705
30706 2008-04-13  Bruno Haible  <bruno@clisp.org>
30707
30708         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30709
30710 2008-04-13  Bruno Haible  <bruno@clisp.org>
30711
30712         Fix AIX compilation failure introduced on 2008-04-02.
30713         * tests/test-frexp.c (exp): Undefine before redefining.
30714         * tests/test-frexpl.c (exp): Likewise.
30715
30716 2008-04-13  Bruno Haible  <bruno@clisp.org>
30717
30718         Work around a HP-UX stdio bug.
30719         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30720         * tests/test-ftello.c (main): Likewise.
30721         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30722         * doc/posix-functions/ftello.texi: Likewise.
30723
30724 2008-04-13  Bruno Haible  <bruno@clisp.org>
30725
30726         Make test-signbit pass on HP-UX/hppa.
30727         * tests/test-signbit.c (minus_zerol): New variable.
30728         (test_signbitl): Use it.
30729
30730 2008-04-13  Bruno Haible  <bruno@clisp.org>
30731
30732         Make truncl work on OSF/1 4.0.
30733         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30734         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30735         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30737         HAVE_DECL_TRUNCL.
30738         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30739         HAVE_DECL_TRUNCL.
30740         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30741
30742 2008-04-13  Bruno Haible  <bruno@clisp.org>
30743
30744         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30745
30746 2008-04-13  Bruno Haible  <bruno@clisp.org>
30747
30748         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30749         expression, so as to avoid HP-UX 11 cc compiler bug.
30750
30751 2008-04-13  Bruno Haible  <bruno@clisp.org>
30752
30753         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30754
30755 2008-04-13  Bruno Haible  <bruno@clisp.org>
30756
30757         * lib/git-merge-changelog.c: Remove empty declaration outside of
30758         functions.
30759
30760 2008-04-13  Bruno Haible  <bruno@clisp.org>
30761
30762         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30763
30764 2008-04-13  Bruno Haible  <bruno@clisp.org>
30765
30766         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30767         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30768         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30769         also if it exists but lacks definitions of the SHUT_* macros.
30770         * modules/sys_socket (Description): Update.
30771         Reported by Elbert Pol <e.pol@chello.nl>.
30772
30773 2008-04-13  Bruno Haible  <bruno@clisp.org>
30774
30775         * lib/localcharset.c (OS2): Don't redefine if already defined.
30776         Reported by Elbert Pol <e.pol@chello.nl>.
30777
30778 2008-04-13  Bruno Haible  <bruno@clisp.org>
30779
30780         * lib/binary-io.h [__EMX__]: Include <io.h>.
30781         Reported by Elbert Pol <e.pol@chello.nl>.
30782
30783 2008-04-12  Bruno Haible  <bruno@clisp.org>
30784
30785         * lib/fpucw.h: Enable the definitions also for x86_64.
30786         Needed for NetBSD/x86_64.
30787         Reported by Thomas Klausner <tk@giga.or.at>.
30788
30789 2008-04-12  Bruno Haible  <bruno@clisp.org>
30790
30791         * tests/test-strtod.c: Include isnand.h.
30792         (main): Use isnand instead of isnan.
30793         Reported by Jim Meyering.
30794
30795 2008-04-12  Bruno Haible  <bruno@clisp.org>
30796
30797         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30798         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30799
30800 2008-04-12  Jim Meyering  <meyering@redhat.com>
30801
30802         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30803
30804 2008-04-12  Bruno Haible  <bruno@clisp.org>
30805
30806         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30807         Reported by Elbert Pol <e.pol@chello.nl>.
30808
30809 2008-04-12  Eric Blake  <ebb9@byu.net>
30810
30811         Work around Solaris 10 math.h bug.
30812         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30813         (gl_MATH_H_DEFAULTS): Set up default.
30814         * modules/math (Makefile.am): Replace new indicators.
30815         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30816         * tests/test-math.c (main): Test this.
30817         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30818         * doc/posix-headers/math.texi (math.h): Mention bug.
30819         Reported by Nelson H. F. Beebe and Jim Meyering.
30820
30821 2008-04-11  Bruno Haible  <bruno@clisp.org>
30822
30823         Adapt to future versions of Apple GCC.
30824         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30825         Reported by Peter O'Gorman <peter@pogma.com>.
30826
30827 2008-04-11  Bruno Haible  <bruno@clisp.org>
30828
30829         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
30830
30831 2008-04-11  Bruno Haible  <bruno@clisp.org>
30832
30833         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
30834
30835         * modules/getaddrinfo-tests (Makefile.am): Define
30836         test_getaddrinfo_LDADD.
30837
30838 2008-04-11  Bruno Haible  <bruno@clisp.org>
30839
30840         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
30841         (init): Fix syntax error.
30842         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
30843         is declared.
30844
30845 2008-04-11  Bruno Haible  <bruno@clisp.org>
30846
30847         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
30848         * modules/glob (Depends-on): Add stdbool.
30849
30850 2008-04-11  Bruno Haible  <bruno@clisp.org>
30851
30852         * lib/trim.c: Include <string.h>.
30853
30854 2008-04-11  Eric Blake  <ebb9@byu.net>
30855
30856         Avoid compile failure on OS/2.
30857         * lib/regex_internal.h (internal_function): Disable optimization
30858         on OS/2 (__EMX__), where it caused compiler error.
30859         Reported by Elbert Pol.
30860
30861 2008-04-11  Bruno Haible  <bruno@clisp.org>
30862
30863         Flush the standard error stream before aborting. Needed on mingw.
30864         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
30865         * tests/test-array_list.c (ASSERT): Likewise.
30866         * tests/test-array_oset.c (ASSERT): Likewise.
30867         * tests/test-avltree_list.c (ASSERT): Likewise.
30868         * tests/test-avltree_oset.c (ASSERT): Likewise.
30869         * tests/test-avltreehash_list.c (ASSERT): Likewise.
30870         * tests/test-binary-io.c (ASSERT): Likewise.
30871         * tests/test-byteswap.c (ASSERT): Likewise.
30872         * tests/test-c-ctype.c (ASSERT): Likewise.
30873         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
30874         * tests/test-c-strcasestr.c (ASSERT): Likewise.
30875         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
30876         * tests/test-c-strstr.c (ASSERT): Likewise.
30877         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
30878         * tests/test-canonicalize.c (ASSERT): Likewise.
30879         * tests/test-carray_list.c (ASSERT): Likewise.
30880         * tests/test-ceilf1.c (ASSERT): Likewise.
30881         * tests/test-ceilf2.c (ASSERT): Likewise.
30882         * tests/test-ceill.c (ASSERT): Likewise.
30883         * tests/test-count-one-bits.c (ASSERT): Likewise.
30884         * tests/test-fbufmode.c (ASSERT): Likewise.
30885         * tests/test-fflush2.c (ASSERT): Likewise.
30886         * tests/test-floorf1.c (ASSERT): Likewise.
30887         * tests/test-floorf2.c (ASSERT): Likewise.
30888         * tests/test-floorl.c (ASSERT): Likewise.
30889         * tests/test-fopen.c (ASSERT): Likewise.
30890         * tests/test-fpending.c (ASSERT): Likewise.
30891         * tests/test-fprintf-posix.c (ASSERT): Likewise.
30892         * tests/test-fpurge.c (ASSERT): Likewise.
30893         * tests/test-freadable.c (ASSERT): Likewise.
30894         * tests/test-freadahead.c (ASSERT): Likewise.
30895         * tests/test-freading.c (ASSERT): Likewise.
30896         * tests/test-freadptr.c (ASSERT): Likewise.
30897         * tests/test-freadptr2.c (ASSERT): Likewise.
30898         * tests/test-freadseek.c (ASSERT): Likewise.
30899         * tests/test-freopen.c (ASSERT): Likewise.
30900         * tests/test-frexp.c (ASSERT): Likewise.
30901         * tests/test-frexpl.c (ASSERT): Likewise.
30902         * tests/test-fseek.c (ASSERT): Likewise.
30903         * tests/test-fseeko.c (ASSERT): Likewise.
30904         * tests/test-fstrcmp.c (ASSERT): Likewise.
30905         * tests/test-ftell.c (ASSERT): Likewise.
30906         * tests/test-ftello.c (ASSERT): Likewise.
30907         * tests/test-func.c (ASSERT): Likewise.
30908         * tests/test-fwritable.c (ASSERT): Likewise.
30909         * tests/test-fwriting.c (ASSERT): Likewise.
30910         * tests/test-getdelim.c (ASSERT): Likewise.
30911         * tests/test-getline.c (ASSERT): Likewise.
30912         * tests/test-i-ring.c (ASSERT): Likewise.
30913         * tests/test-iconv-utf.c (ASSERT): Likewise.
30914         * tests/test-iconv.c (ASSERT): Likewise.
30915         * tests/test-isfinite.c (ASSERT): Likewise.
30916         * tests/test-isnand.c (ASSERT): Likewise.
30917         * tests/test-isnanf.c (ASSERT): Likewise.
30918         * tests/test-isnanl.h (ASSERT): Likewise.
30919         * tests/test-ldexpl.c (ASSERT): Likewise.
30920         * tests/test-linked_list.c (ASSERT): Likewise.
30921         * tests/test-linkedhash_list.c (ASSERT): Likewise.
30922         * tests/test-localename.c (ASSERT): Likewise.
30923         * tests/test-lseek.c (ASSERT): Likewise.
30924         * tests/test-mbscasecmp.c (ASSERT): Likewise.
30925         * tests/test-mbscasestr1.c (ASSERT): Likewise.
30926         * tests/test-mbscasestr2.c (ASSERT): Likewise.
30927         * tests/test-mbscasestr3.c (ASSERT): Likewise.
30928         * tests/test-mbscasestr4.c (ASSERT): Likewise.
30929         * tests/test-mbschr.c (ASSERT): Likewise.
30930         * tests/test-mbscspn.c (ASSERT): Likewise.
30931         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
30932         * tests/test-mbspbrk.c (ASSERT): Likewise.
30933         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
30934         * tests/test-mbsrchr.c (ASSERT): Likewise.
30935         * tests/test-mbsspn.c (ASSERT): Likewise.
30936         * tests/test-mbsstr1.c (ASSERT): Likewise.
30937         * tests/test-mbsstr2.c (ASSERT): Likewise.
30938         * tests/test-mbsstr3.c (ASSERT): Likewise.
30939         * tests/test-memchr2.c (ASSERT): Likewise.
30940         * tests/test-memmem.c (ASSERT): Likewise.
30941         * tests/test-open.c (ASSERT): Likewise.
30942         * tests/test-printf-frexp.c (ASSERT): Likewise.
30943         * tests/test-printf-frexpl.c (ASSERT): Likewise.
30944         * tests/test-printf-posix.c (ASSERT): Likewise.
30945         * tests/test-quotearg.c (ASSERT): Likewise.
30946         * tests/test-rbtree_list.c (ASSERT): Likewise.
30947         * tests/test-rbtree_oset.c (ASSERT): Likewise.
30948         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
30949         * tests/test-round1.c (ASSERT): Likewise.
30950         * tests/test-roundf1.c (ASSERT): Likewise.
30951         * tests/test-roundl.c (ASSERT): Likewise.
30952         * tests/test-signbit.c (ASSERT): Likewise.
30953         * tests/test-sleep.c (ASSERT): Likewise.
30954         * tests/test-snprintf-posix.c (ASSERT): Likewise.
30955         * tests/test-snprintf.c (ASSERT): Likewise.
30956         * tests/test-sprintf-posix.c (ASSERT): Likewise.
30957         * tests/test-stat-time.c (ASSERT): Likewise.
30958         * tests/test-strcasestr.c (ASSERT): Likewise.
30959         * tests/test-strerror.c (ASSERT): Likewise.
30960         * tests/test-striconv.c (ASSERT): Likewise.
30961         * tests/test-striconveh.c (ASSERT): Likewise.
30962         * tests/test-striconveha.c (ASSERT): Likewise.
30963         * tests/test-strsignal.c (ASSERT): Likewise.
30964         * tests/test-strstr.c (ASSERT): Likewise.
30965         * tests/test-strtod.c (ASSERT): Likewise.
30966         * tests/test-trunc1.c (ASSERT): Likewise.
30967         * tests/test-trunc2.c (ASSERT): Likewise.
30968         * tests/test-truncf1.c (ASSERT): Likewise.
30969         * tests/test-truncf2.c (ASSERT): Likewise.
30970         * tests/test-truncl.c (ASSERT): Likewise.
30971         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
30972         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
30973         * tests/test-vasnprintf.c (ASSERT): Likewise.
30974         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
30975         * tests/test-vasprintf.c (ASSERT): Likewise.
30976         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
30977         * tests/test-vprintf-posix.c (ASSERT): Likewise.
30978         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
30979         * tests/test-vsnprintf.c (ASSERT): Likewise.
30980         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
30981         * tests/test-wcwidth.c (ASSERT): Likewise.
30982         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
30983         * tests/test-xprintf-posix.c (ASSERT): Likewise.
30984         * tests/test-xvasprintf.c (ASSERT): Likewise.
30985         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
30986         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
30987         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
30988         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
30989         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
30990         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
30991         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
30992         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
30993         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
30994         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
30995         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
30996         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
30997         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
30998         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
30999         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
31000         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
31001         * tests/unictype/test-block_list.c (ASSERT): Likewise.
31002         * tests/unictype/test-block_of.c (ASSERT): Likewise.
31003         * tests/unictype/test-block_test.c (ASSERT): Likewise.
31004         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
31005         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
31006         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
31007         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
31008         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
31009         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
31010         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
31011         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
31012         * tests/unictype/test-combining.c (ASSERT): Likewise.
31013         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
31014         * tests/unictype/test-digit.c (ASSERT): Likewise.
31015         * tests/unictype/test-mirror.c (ASSERT): Likewise.
31016         * tests/unictype/test-numeric.c (ASSERT): Likewise.
31017         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
31018         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
31019         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
31020         * tests/unictype/test-scripts.c (ASSERT): Likewise.
31021         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
31022         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
31023         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
31024         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
31025         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
31026         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
31027         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
31028         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
31029         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
31030         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
31031         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
31032         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
31033         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
31034         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
31035         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
31036         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
31037         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
31038         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
31039         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
31040         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
31041         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
31042         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
31043         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
31044         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
31045         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
31046         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
31047         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
31048         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
31049         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
31050         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
31051         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
31052         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
31053         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
31054         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
31055         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
31056         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
31057         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
31058         Reported by Eric Blake.
31059
31060 2008-04-11  Bruno Haible  <bruno@clisp.org>
31061
31062         * lib/wchar.in.h: Tweak comment.
31063
31064 2008-04-11  Bruno Haible  <bruno@clisp.org>
31065
31066         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
31067         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
31068         gl_COMMON.
31069         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
31070
31071 2008-04-11  Bruno Haible  <bruno@clisp.org>
31072
31073         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
31074
31075 2008-04-11  Simon Josefsson  <simon@josefsson.org>
31076
31077         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
31078         of attempting to use non-existing /dev/*random.  Based on patch
31079         from Adam Strzelecki <ono@java.pl> in
31080         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
31081
31082 2008-04-08  Bruno Haible  <bruno@clisp.org>
31083
31084         Add tentative support for emx+gcc.
31085         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
31086         * lib/fpurge.c (fpurge): Likewise.
31087         * lib/freadable.c (freadable): Likewise.
31088         * lib/freadahead.c (freadahead): Likewise.
31089         * lib/freading.c (freading): Likewise.
31090         * lib/freadptr.c (freadptr): Likewise.
31091         * lib/freadseek.c (freadptrinc): Likewise.
31092         * lib/fseeko.c (rpl_fseeko): Likewise.
31093         * lib/fseterr.c (fseterr): Likewise.
31094         * lib/fwritable.c (fwritable): Likewise.
31095         * lib/fwriting.c (fwriting): Likewise.
31096         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
31097
31098 2008-04-09  Eric Blake  <ebb9@byu.net>
31099
31100         Avoid some autoconf warnings.
31101         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
31102         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
31103         * m4/afs.m4 (gl_AFS): Likewise.
31104         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
31105         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
31106         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31107         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
31108         (gl_INTEGER_TYPE_SUFFIX): Likewise.
31109         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
31110         (AC_CHECK_DECLS_ONCE): Likewise.
31111         Rename file...
31112         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
31113         gnulib-tool requires autoconf 2.59 or better.
31114         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
31115
31116 2008-04-08  Eric Blake  <ebb9@byu.net>
31117
31118         Use 'git describe --match' if present (added in git 1.5.5).
31119         * build-aux/git-version-gen: Limit result to tags that match 'v*'
31120         if possible.
31121
31122 2008-04-08  Bruno Haible  <bruno@clisp.org>
31123
31124         Add tentative support for OpenServer.
31125         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
31126         _ptr, _cnt.
31127         * lib/fpurge.c (fpurge): Likewise.
31128         * lib/freadable.c (freadable): Likewise.
31129         * lib/freadahead.c (freadahead): Likewise.
31130         * lib/freading.c (freading): Likewise.
31131         * lib/freadptr.c (freadptr): Likewise.
31132         * lib/freadseek.c (freadptrinc): Likewise.
31133         * lib/fseeko.c (rpl_fseeko): Likewise.
31134         * lib/fseterr.c (fseterr): Likewise.
31135         * lib/fwritable.c (fwritable): Likewise.
31136         * lib/fwriting.c (fwriting): Likewise.
31137         Reported by Roger Cornelius <rac@tenzing.org> and
31138         Brian K. White <brian@aljex.com>.
31139
31140 2008-04-06  Jim Meyering  <meyering@redhat.com>
31141
31142         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
31143
31144 2008-04-06  Bruno Haible  <bruno@clisp.org>
31145
31146         Avoid possible error with non-ASCII bytes in UTF-8 locales.
31147         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
31148         * tests/test-printf-posix.sh: Likewise.
31149         * tests/test-vfprintf-posix.sh: Likewise.
31150         * tests/test-vprintf-posix.sh: Likewise.
31151         * tests/test-xprintf-posix.sh: Likewise.
31152
31153 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31154
31155         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
31156         hide error from 'ls', needed on OS/2.
31157         Report by Elbert Pol <elbert.pol@gmail.com>.
31158
31159 2008-04-04  Eric Blake  <ebb9@byu.net>
31160
31161         Make test-fseeko.c failures meaningful.
31162         * tests/test-fseeko.c: Print line number on failure.
31163         * tests/test-fseek.c: Likewise.
31164         Reported by Nelson H. F. Beebe.
31165
31166         Improve strtod bug detection check.
31167         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31168         required for Solaris 10.
31169         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31170
31171 2008-04-04  Bruno Haible  <bruno@clisp.org>
31172
31173         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31174         by m4/setenv.m4.
31175
31176 2008-04-03  Eric Blake  <ebb9@byu.net>
31177
31178         Ensure sane .version contents.
31179         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31180         version string.
31181         * build-aux/git-version-gen: Improve documentation.
31182
31183         Make GNU make output nicer.
31184         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31185         MAKECMDGOALS to enforce message for all command line targets.  Set
31186         srcdir for use in maint.mk.
31187
31188         Another maintainer tweak.
31189         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31190         a target that regenerates version.
31191
31192 2008-04-03  Jim Meyering  <meyering@redhat.com>
31193
31194         vc-list-files: don't cause coreutils "make po-check" failure
31195         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31196
31197 2008-04-03  Eric Blake  <ebb9@byu.net>
31198
31199         Allow VPATH usage of vc-list-files.
31200         * build-aux/vc-list-files (scriptversion): Add timestamp.
31201         (options): Add --help, --version, -C.
31202         (CVS): Support installed cvsu.
31203
31204 2008-04-02  Bruno Haible  <bruno@clisp.org>
31205
31206         Avoid some "statement with no effect" warnings from gcc.
31207         * tests/test-wctype.c (main): Explicitly ignore unused values.
31208         Reported by Jim Meyering.
31209
31210 2008-04-02  Jim Meyering  <meyering@redhat.com>
31211
31212         Avoid some warnings from "gcc -Wshadow".
31213         * tests/test-frexp.c (exp): Define to a different identifier.
31214         * tests/test-frexpl.c (exp): Likewise.
31215
31216 2008-04-03  Jim Meyering  <meyering@redhat.com>
31217
31218         bootstrap: remove dangling *.[ch] symlinks from lib
31219         * build-aux/bootstrap [dangling symlink removal]: Move find's
31220         -depth option to precede all others, to avoid a warning.
31221         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31222
31223 2008-04-02  Bruno Haible  <bruno@clisp.org>
31224
31225         Avoid some warnings from "gcc -Wshadow".
31226         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31227         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31228         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31229         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31230         Reported by Jim Meyering.
31231
31232 2008-04-01  Bruno Haible  <bruno@clisp.org>
31233
31234         Fix test to work on IRIX 6.5 with cc.
31235         * tests/test-math.c (numeric_equal): New function.
31236         (main): Use it.
31237
31238 2008-04-01  Bruno Haible  <bruno@clisp.org>
31239
31240         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31241
31242 2008-04-01  Bruno Haible  <bruno@clisp.org>
31243
31244         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31245         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31246         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31247         (Depends-on): Remove math.
31248
31249         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31250         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31251         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31252         (Depends-on): Remove math.
31253
31254         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31255         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31256         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31257         (Depends-on): Remove math.
31258         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31259         (Depends-on): Remove math.
31260
31261         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31262         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31263         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31264         (Depends-on): Remove math.
31265         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31266         (Depends-on): Remove math.
31267
31268         * tests/test-round1.c: Include nan.h.
31269         (main): Use NaNd instead of NAN.
31270         * modules/round-tests (Files): Add tests/nan.h.
31271
31272         * tests/test-trunc1.c: Include nan.h.
31273         (main): Use NaNd instead of NAN.
31274         * modules/trunc-tests (Files): Add tests/nan.h.
31275
31276         * tests/test-roundf1.c: Include nan.h.
31277         (main): Use NaNf instead of NAN.
31278         * modules/roundf-tests (Files): Add tests/nan.h.
31279
31280         * tests/test-truncf1.c: Include nan.h.
31281         (main): Use NaNf instead of NAN.
31282         * modules/truncf-tests (Files): Add tests/nan.h.
31283
31284         * tests/test-ceilf1.c: Include nan.h.
31285         (main): Use NaNf instead of NAN.
31286         * modules/ceilf-tests (Files): Add tests/nan.h.
31287
31288         * tests/test-floorf1.c: Include nan.h.
31289         (main): Use NaNf instead of NAN.
31290         * modules/floorf-tests (Files): Add tests/nan.h.
31291
31292         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31293         (main): Use NaNf instead of NAN.
31294         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31295
31296         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31297         (main): Use NaNd instead of NAN.
31298         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31299
31300         * tests/test-frexp.c: Include nan.h.
31301         (main): Use NaNd instead of NAN.
31302         * modules/frexp-tests (Files): Add tests/nan.h.
31303
31304         * lib/isnan.c: Don't include <math.h>.
31305         (FUNC): Don't use NAN macro.
31306         * modules/isnand-nolibm (Depends-on): Remove math.
31307         * modules/isnanf-nolibm (Depends-on): Remove math.
31308         * modules/isnanl (Depends-on): Remove math.
31309         * modules/isnanl-nolibm (Depends-on): Remove math.
31310
31311         * tests/nan.h: New file.
31312
31313 2008-04-01  Eric Blake  <ebb9@byu.net>
31314
31315         Fix typos.
31316         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31317         values to be the right type.
31318
31319         For now, cater to gnulib strtod inaccuracies.
31320         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31321         fractional results.  While not as nice from a QoI perspective, it
31322         is a quicker patch than correctly implementing decimal to binary
31323         rounding.
31324
31325 2008-03-31  Eric Blake  <ebb9@byu.net>
31326
31327         Guarantee a definition of NAN.
31328         * lib/math.in.h (NAN): Define if missing.
31329         * tests/test-math.c (main): Test it.
31330         * doc/posix-headers/math.texi (math.h): Document this.
31331         * lib/isnan.c (rpl_isnand): Use it.
31332         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31333         * tests/test-floorf1.c (NaN): Likewise.
31334         * tests/test-frexp.c (NaN): Likewise.
31335         * tests/test-isnand.c (NaN): Likewise.
31336         * tests/test-isnanf.c (NaN): Likewise.
31337         * tests/test-round1.c (NaN): Likewise.
31338         * tests/test-roundf1.c (NaN): Likewise.
31339         * tests/test-snprintf-posix.h (NaN): Likewise.
31340         * tests/test-sprintf-posix.h (NaN): Likewise.
31341         * tests/test-trunc1.c (NaN): Likewise.
31342         * tests/test-truncf1.c (NaN): Likewise.
31343         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31344         * tests/test-vasprintf-posix.c (NaN): Likewise.
31345         * modules/isnand-nolibm (Depends-on): Add math.
31346         * modules/isnanf-nolibm (Depends-on): Likewise.
31347         * modules/isnanl (Depends-on): Likewise.
31348         * modules/isnanl-nolibm (Depends-on): Likewise.
31349         * modules/snprintf-posix-tests (Depends-on): Likewise.
31350         * modules/sprintf-posix-tests (Depends-on): Likewise.
31351         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31352         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31353         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31354         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31355
31356 2008-03-31  Bruno Haible  <bruno@clisp.org>
31357
31358         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31359         * doc/posix-functions/strtod.texi: Likewise.
31360
31361 2008-03-31  Bruno Haible  <bruno@clisp.org>
31362
31363         * tests/test-strtod.c (main): Don't use C99 syntax.
31364
31365 2008-03-31  Bruno Haible  <bruno@clisp.org>
31366
31367         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31368         Reported by Eric Blake.
31369
31370 2008-03-31  Jim Meyering  <meyering@redhat.com>
31371
31372         Don't compare actual signbit return values.
31373         * tests/test-strtod.c (main): Rather, compare only their
31374         zero/non-zero nature.
31375
31376 2008-03-31  Eric Blake  <ebb9@byu.net>
31377
31378         More strtod documentation.
31379         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31380         failures as distinct bugs.
31381
31382 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31383
31384         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31385         Problem reported by Erik Benada in
31386         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31387
31388 2008-03-30  Bruno Haible  <bruno@clisp.org>
31389
31390         * tests/test-strtod.c: Add comments about which assertion fails on which
31391         platform.
31392         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31393
31394 2008-03-30  Eric Blake  <ebb9@byu.net>
31395
31396         Test signbit behavior on zeros.
31397         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31398         (test_signbitd, test_signbitl): Likewise.
31399
31400         More strtod touchups.
31401         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31402         sign of negative underflow, for now.  Use .5, not .1.
31403         * doc/posix-functions/strtod.texi (strtod): Mention these
31404         limitations.
31405         Reported by Jim Meyering.
31406
31407 2008-03-30  Bruno Haible  <bruno@clisp.org>
31408
31409         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31410         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31411
31412 2008-03-30  Bruno Haible  <bruno@clisp.org>
31413
31414         Avoid failure when attempting to return empty iconv results on some
31415         platforms.
31416         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31417         allocation, don't report ENOMEM when the resulting string is empty.
31418
31419 2008-03-30  Bruno Haible  <bruno@clisp.org>
31420
31421         Fix buffer overrun.
31422         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31423         Don't consider the width for tmp_length. Check count against tmp_length
31424         before doing the padding. Ensure enough allocation during padding.
31425
31426 2008-03-30  Eric Blake  <ebb9@byu.net>
31427
31428         strtod touchups.
31429         * lib/strtod.c (strtod): Avoid compiler warnings.
31430         Reported by Jim Meyering.
31431
31432 2008-03-30  Bruno Haible  <bruno@clisp.org>
31433
31434         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31435         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31436         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31437         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31438         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31439         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31440         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31441         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31442
31443         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31444         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31445         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31446         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31447         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31448         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31449         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31450         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31451
31452         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31453         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31454         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31455         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31456         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31457         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31458         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31459         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31460
31461         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31462         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31463
31464         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31465         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31466
31467         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31468         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31469
31470         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31471         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31472         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31473
31474         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31476         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31477
31478         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31480         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31481
31482         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31483         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31484         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31485
31486         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31487         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31488         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31489         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31490         (Depends-on): Add EOVERFLOW.
31491         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31492         (Depends-on): Add EOVERFLOW.
31493         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31494         (Depends-on): Add EOVERFLOW.
31495         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31496         (Depends-on): Add EOVERFLOW.
31497         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31498         (Depends-on): Add EOVERFLOW.
31499         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31500         (Depends-on): Add EOVERFLOW.
31501         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31502         (Depends-on): Add EOVERFLOW.
31503         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31504         (Depends-on): Add EOVERFLOW.
31505
31506         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31508         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31509
31510         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31511         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31512         * modules/snprintf (Depends-on): Add EOVERFLOW.
31513
31514         * lib/poll.c (EOVERFLOW): Remove fallback.
31515         * modules/poll (Depends-on): Add EOVERFLOW.
31516
31517         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31518         * modules/getugroups (Depends-on): Add EOVERFLOW.
31519
31520         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31521         * modules/getdelim (Depends-on): Add EOVERFLOW.
31522
31523         * lib/ftell.c (EOVERFLOW): Remove fallback.
31524         * modules/ftell (Depends-on): Add EOVERFLOW.
31525
31526         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31527         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31528         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31529
31530         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31531
31532         * modules/EOVERFLOW-tests: New file.
31533         * tests/test-EOVERFLOW.c: New file.
31534
31535         * modules/EOVERFLOW: New file.
31536         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31537
31538 2008-03-30  Bruno Haible  <bruno@clisp.org>
31539
31540         Fix bug introduced on 2007-06-10.
31541         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31542         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31543
31544 2008-03-30  Bruno Haible  <bruno@clisp.org>
31545
31546         Improve freadseek's efficiency after ungetc.
31547         * lib/freadseek.c: Include freadahead.h.
31548         (freadptrinc): New function, extracted from freadseek.
31549         (freadseek): Use it in a loop. Use freadahead to determine the number
31550         of loop iterations.
31551         * modules/freadseek (Depends-on): Add freadahead.
31552         (configure.ac): Require AC_C_INLINE.
31553
31554 2008-03-30  Bruno Haible  <bruno@clisp.org>
31555
31556         * lib/freadseek.c (freadseek): Don't ignore the return value of
31557         freadptr.
31558
31559 2008-03-29  Eric Blake  <ebb9@byu.net>
31560
31561         Add hex float support.
31562         * modules/strtod (Depends-on): Add c-ctype.
31563         (Link): Mention POW_LIB.
31564         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31565         whitespace between 'e' and exponent.
31566         * tests/test-strtod.c (main): Enable hex float tests.
31567         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31568         now provides.
31569
31570         Document various strtod bugs, with some fixes.
31571         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31572         "-0x", "inf", "nan", and hex constants.
31573         * doc/posix-functions/atof.texi (atof): Likewise.
31574         * modules/stdlib (Makefile.am): Support strtod.
31575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31576         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31577         detect additional strtod bugs.
31578         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31579         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31580         bool where appropriate.  Parse 'inf' and 'nan'.
31581         * tests/test-strtod.c: New file.
31582         * modules/strtod (Depends-on): Add stdbool, stdlib.
31583         (configure.ac): Turn on module indicator.
31584         * modules/strtod-tests: New module.
31585
31586 2008-03-29  Eric Blake  <ebb9@byu.net>
31587
31588         Fix ftell on mingw.
31589         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31590         * modules/ftell-tests (Depends-on): Add binary-io.
31591         * modules/ftello-tests (Depends-on): Likewise.
31592         * tests/test-ftell.c (main): Enhance test to cover behavior after
31593         ungetc.  Enforce binary mode.
31594         * tests/test-ftello.c (main): Likewise.
31595
31596         Pass test-freadseek on cygwin.
31597         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31598         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31599         ungetc buffer.
31600
31601         * tests/test-fflush2.c (main): Fix typo.
31602
31603 2008-03-29  Bruno Haible  <bruno@clisp.org>
31604
31605         * tests/test-fflush2.c (main): Temporarily disable the contents of
31606         this test.
31607         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31608         Reported by Eric Blake.
31609
31610 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31611
31612         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31613         (GC_SHA224_DIGEST_SIZE): Add.
31614
31615         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31616         (gc_hash_digest_length): Likewise.
31617         (gc_hash_buffer): Likewise.
31618
31619 2008-03-25  Bruno Haible  <bruno@clisp.org>
31620
31621         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31622         detail which gettext release to use.
31623         Reported by Simon Josefsson.
31624
31625 2008-03-26  Jim Meyering  <meyering@redhat.com>
31626
31627         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31628         * modules/gnumakefile (clean-GNUmakefile): Also, use
31629         test ... && ... || : syntax rather than if-then ... fi.
31630
31631         gnumakefile: Don't double-quote-expand $(VPATH) value.
31632         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31633
31634 2008-03-24  Eric Blake  <ebb9@byu.net>
31635
31636         Alter GNUmakefile to install into top directory.
31637         * modules/maintainer-makefile: Split, and add dependency...
31638         * modules/gnumakefile: to this new module.
31639         * build-aux/GNUmakefile: Move...
31640         * top/GNUmakefile: ...here.
31641         * build-aux/maint.mk: Move...
31642         * top/maint.mk: ...here.
31643         * MODULES.html.sh (Support for maintaining...): Document new
31644         module.
31645
31646 2008-03-23  Bruno Haible  <bruno@clisp.org>
31647
31648         * gnulib-tool: New options --vc-files, --no-vc-files.
31649         (func_usage): Document them.
31650         (vc_files): New variable.
31651         (func_import): Consider vc_files.
31652         (func_create_testdir): Set vc_files to empty.
31653         Suggested by Jim Meyering and Karl Berry.
31654
31655 2008-03-23  Bruno Haible  <bruno@clisp.org>
31656
31657         Fix regex compilation error on HP-UX 11.
31658         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31659         * modules/regex (Files): Add m4/mbstate_t.m4.
31660         Reported by Ton Voon <ton.voon@altinity.com>.
31661
31662 2008-03-23  Bruno Haible  <bruno@clisp.org>
31663
31664         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31665
31666 2008-03-23  Eric Blake  <ebb9@byu.net>
31667             Bruno Haible  <bruno@clisp.org>
31668
31669         Install files from top/ in the destination directory.
31670         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31671         augmentation also for the files from top/.
31672         (func_import, func_create_testdir): Rewrite file names:
31673         top/filename -> filename.
31674
31675 2008-03-23  Bruno Haible  <bruno@clisp.org>
31676
31677         Tweak "gnulib --version" output.
31678         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31679
31680 2008-03-23  Bruno Haible  <bruno@clisp.org>
31681
31682         Tweak "gnulib --version" output.
31683         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31684         rather than contents of ChangeLog, when possible.
31685
31686 2008-03-21  Eric Blake  <ebb9@byu.net>
31687
31688         More --version tweaks.
31689         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31690         date of last ChangeLog entry.
31691
31692 2008-03-21  Jim Meyering  <meyering@redhat.com>
31693
31694         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31695
31696 2008-03-20  Eric Blake  <ebb9@byu.net>
31697
31698         VPATH fix.
31699         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31700
31701 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31702
31703         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31704         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31705
31706 2008-03-20  Eric Blake  <ebb9@byu.net>
31707
31708         Sync GNUmakefile with coreutils.
31709         * build-aux/GNUmakefile (have-Makefile): Rename...
31710         (_have-Makefile): ...to this, for namespace consideration.
31711         (GNUmakefile.cfg): Include, if present.
31712         (_autoreconf): Define a default.
31713         (_is-dist-target): New rule for rebuilds to pick up intra-release
31714         version.
31715         (maint-cfg.mk): Rename...
31716         (cfg.mk): ...to this.
31717
31718 2008-03-18  Jim Meyering  <meyering@redhat.com>
31719
31720         New script and module: mktempd
31721         * MODULES.html.sh (maint+release support): Add mktempd.
31722         * build-aux/mktempd: New file.
31723         * modules/mktempd: New file.
31724
31725 2008-03-15  Jim Meyering  <meyering@redhat.com>
31726
31727         Undo last change.
31728         * lib/sha1.c, lib/md5.c: 63 != ~63.
31729         Reported by Andreas Schwab.
31730
31731         sha1.c, md5.c: Hoist a redundant expression.
31732         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31733         "ctx->buflen" only once, before calling *_process_block.
31734         * lib/md5.c (md5_process_bytes): Likewise.
31735
31736 2008-03-14  Eric Blake  <ebb9@byu.net>
31737
31738         Bump copyright year in files generated by gnulib-tool.
31739         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31740         gnulib-tool, rather than hard-coding it.
31741
31742         Fix 'gnulib-tool --version' output to work with git.
31743         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31744         (startup): ...here.
31745         (func_version): Use it to invoke git-version-gen, rather than
31746         relying on CVS keyword expansion.  Modernize wording.
31747         (cvsdatestamp, last_checkin_date, version): Kill unused
31748         variables.
31749
31750 2008-03-12  Jim Meyering  <meyering@redhat.com>
31751
31752         Recognize optional cast of the argument to free.
31753         * build-aux/useless-if-before-free: Update regexps.
31754
31755         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31756
31757 2008-03-11  Bruno Haible  <bruno@clisp.org>
31758
31759         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31760         by a single package.
31761         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31762         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31763         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31764         Reported by Sam Steingold <sds@gnu.org>.
31765
31766 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31767
31768         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31769         repositories.
31770
31771 2008-03-11  Bruno Haible  <bruno@clisp.org>
31772
31773         Avoid conflicts between local macro definitions.
31774         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31775         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31776
31777 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31778             Bruno Haible  <bruno@clisp.org>
31779
31780         Make va_copy work with some version of xlc on AIX 5.1.
31781         * lib/stdarg.in.h: New file.
31782         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31783         On AIX, use a <stdarg.h> file substitute.
31784         * modules/stdarg (Files): Add lib/stdarg.in.h.
31785         (Depends-on): Add include_next.
31786         (Makefile.am): Build a stdarg.h substitute if requested.
31787         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31788
31789 2008-03-10  Bruno Haible  <bruno@clisp.org>
31790
31791         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31792         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31793         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31794
31795 2008-03-10  Bruno Haible  <bruno@clisp.org>
31796
31797         * modules/stdlib (Depends-on): Add include_next, remove
31798         absolute-header.
31799
31800 2008-03-09  Bruno Haible  <bruno@clisp.org>
31801
31802         * lib/freadahead.h (freadahead): Document more precisely.
31803         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31804         the sum of both buffer sizes.
31805         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31806         * NEWS: Document the change.
31807
31808 2008-03-09  Bruno Haible  <bruno@clisp.org>
31809
31810         Extend freadptr to return also the buffer size.
31811         * lib/freadptr.h (freadptr): Add sizep argument.
31812         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31813         (freadptr): Add sizep argument. Determine buffer size like freadahead
31814         does.
31815         * tests/test-freadptr.c: Don't include freadahead.h.
31816         (main): Adapt for new calling convention of freadptr.
31817         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31818         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31819         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31820         tests/test-freadptr2.sh.
31821         (Depends): Remove freadahead.
31822         (TESTS): Add test-freadptr2.sh.
31823         (check_PROGRAMS): Add test-freadptr2.
31824
31825 2008-03-09  Bruno Haible  <bruno@clisp.org>
31826
31827         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31828         Report and solution by Simon Josefsson.
31829
31830 2008-03-06  Bruno Haible  <bruno@clisp.org>
31831
31832         Make fflush after ungetc work on BSD platforms.
31833         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
31834         * tests/test-fflush2.c: New file.
31835         * tests/test-fflush2.sh: New file.
31836         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
31837         tests/test-fflush2.c.
31838         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
31839         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
31840
31841 2008-03-06  Eric Blake  <ebb9@byu.net>
31842
31843         Likewise for ftello.
31844         * modules/ftello (Dependencies): Add extensions.
31845         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
31846
31847 2008-03-06  Bruno Haible  <bruno@clisp.org>
31848
31849         * modules/fseeko (Dependencies): Add extensions.
31850         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
31851         Needed on glibc systems.
31852
31853 2008-03-06  Bruno Haible  <bruno@clisp.org>
31854
31855         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
31856         email address.
31857         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31858
31859 2008-03-06  Bruno Haible  <bruno@clisp.org>
31860
31861         * users.txt: Add libgnupdf.
31862
31863 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31864
31865         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
31866         (Header File Substitutes, Function Substitutes,
31867         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
31868         (Build robot for gnulib): Fix typo.
31869
31870 2008-03-06  Bruno Haible  <bruno@clisp.org>
31871
31872         * doc/gnulib-tool.texi (VCS Issues): Small updates.
31873         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31874
31875 2008-03-06  Bruno Haible  <bruno@clisp.org>
31876
31877         * doc/func.texi: New file, extracted from doc/gnulib.texi.
31878         * doc/gnulib.texi: Include it.
31879
31880 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31881
31882         * modules/func (License): Change license to unlimited; there was
31883         no LGPL parts in the module anyway.
31884
31885 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31886
31887         * modules/__func__: Renamed to modules/func.
31888         * modules/__func__-tests: Renamed to modules/func-tests.
31889         * tests/test-__func__.c: Renamed to tests/test-func.c.
31890         * m4/__func__.m4: Renamed to m4/func.m4.
31891         * doc/gnulib.texi (__func__): Section renamed to func.
31892         Suggested by Eric Blake <ebb9@byu.net>.
31893
31894 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31895
31896         * doc/gnulib.texi (__func__): Use C99 terminology when talking
31897         about __func__.  Make example self-contained.  Suggested by Eric
31898         Blake <ebb9@byu.net>.
31899
31900         * tests/test-__func__.c (main): Avoid extraneous () around __func.
31901         Suggested by Eric Blake <ebb9@byu.net>.
31902
31903 2008-03-06  Simon Josefsson  <simon@josefsson.org>
31904
31905         * modules/__func__: New file.
31906         * modules/__func__-tests: New file.
31907         * tests/test-__func__.c: New file.
31908         * m4/__func__.m4: New file.
31909         * doc/gnulib.texi (__func__): Document __func__ module.
31910
31911 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31912
31913         * modules/byteswap (License): Re-license as LGPLv2+.
31914
31915 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31916
31917         * doc/Makefile: Add pdf target.
31918
31919 2008-03-05  Simon Josefsson  <simon@josefsson.org>
31920
31921         * modules/inline (License): Use 'unlimited', since there are only
31922         *.m4 files in this module.
31923
31924 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31925             Bruno Haible  <bruno@clisp.org>
31926
31927         Add support for HP C 7.1 on OpenVMS 8.3.
31928         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
31929
31930 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
31931
31932         Update VMS specifics.
31933         * lib/getopt.c [VMS]: Remove include of unixlib.h.
31934
31935 2008-03-02  Jim Meyering  <meyering@redhat.com>
31936
31937         Remove the last dependency on the "free" module.
31938         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
31939         Reported by Bob Proulx.
31940
31941         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
31942
31943         Remove useless "if" tests before free.  Deprecate "free" module.
31944         * doc/posix-functions/free.texi: Mention that this
31945         module is no longer useful.
31946         * modules/free (Notice): Say this module is obsolete.
31947         * modules/readutmp (Depends-on): Remove free.
31948         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
31949         * lib/putenv.c (putenv): Likewise.
31950         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
31951         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
31952         * tests/test-c-strcasestr.c (main): Likewise.
31953         * tests/test-c-strstr.c (main): Likewise.
31954         * tests/test-mbscasestr1.c (main): Likewise.
31955         * tests/test-mbscasestr2.c (main): Likewise.
31956         * tests/test-mbsstr1.c (main): Likewise.
31957         * tests/test-mbsstr2.c (main): Likewise.
31958         * tests/test-memmem.c (main): Likewise.
31959         * tests/test-strcasestr.c (main): Likewise.
31960         * tests/test-striconv.c (main): Likewise.
31961         * tests/test-striconveh.c (main): Likewise.
31962         * tests/test-striconveha.c (main): Likewise.
31963         * tests/test-strstr.c (main): Likewise.
31964
31965         * build-aux/git-version-gen: Adjust a comment and the Usage string.
31966
31967         bootstrap: sync from coreutils again
31968         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
31969
31970 2008-03-01  Jim Meyering  <meyering@redhat.com>
31971
31972         bootstrap: sync from coreutils
31973         * build-aux/bootstrap (update_po_files): Copy a .po file into place
31974         also when the target doesn't exist.
31975
31976 2008-03-01  Eric Blake  <ebb9@byu.net>
31977
31978         Fix bugs in last patch.
31979         * lib/memchr2.c (memchr2): Fix typo.
31980         * tests/test-memchr2.c: Test previous bug, and don't use GNU
31981         extension.
31982         Reported by Bruce Korb.
31983
31984         New module 'memchr2'.
31985         * modules/memchr2: New file.
31986         * modules/memchr2-tests: Likewise.
31987         * lib/memchr2.h: Likewise.
31988         * lib/memchr2.c: Likewise, based on memchr.c.
31989         * tests/test-memchr2.c: New test.
31990         * MODULES.html.sh (String handling): Add memchr2.
31991
31992 2008-02-29  Bruno Haible  <bruno@clisp.org>
31993
31994         * modules/freadseek-tests: New file.
31995         * tests/test-freadseek.sh: New file.
31996         * tests/test-freadseek.c: New file.
31997
31998         New module 'freadseek'.
31999         * modules/freadseek: New file.
32000         * lib/freadseek.h: New file.
32001         * lib/freadseek.c: New file.
32002         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
32003
32004 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32005
32006         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
32007         wydawca.
32008
32009         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
32010         program_invocation_name and program_invocation_short_name are
32011         present.
32012
32013 2008-02-28  Bruno Haible  <bruno@clisp.org>
32014
32015         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
32016         * tests/test-freadptr.sh: Also test non-seekable stdin.
32017
32018 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
32019
32020         * build-aux/bootstrap (source_base, m4_base)
32021         (doc_base, tests_base): New variables.
32022         (gnulib_tool_options): Do not hardcode base directories, use
32023         the above variables instead.
32024
32025 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
32026
32027         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
32028
32029 2008-02-28  Bruno Haible  <bruno@clisp.org>
32030
32031         * modules/freadptr-tests: New file.
32032         * tests/test-freadptr.sh: New file.
32033         * tests/test-freadptr.c: New file.
32034
32035         New module 'freadptr'.
32036         * modules/freadptr: New file.
32037         * lib/freadptr.h: New file.
32038         * lib/freadptr.c: New file.
32039         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
32040
32041 2008-02-26  Karl Berry  <karl@freefriends.org>
32042
32043         Sync from Libtool:
32044         * libltdl/argz.c (argz_add, argz_count): New functions.
32045         * libltdl/argz.in.h: Declare them.
32046         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
32047
32048 2008-02-22  Bruno Haible  <bruno@clisp.org>
32049
32050         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
32051         is a pointer type.  Needed for HP-UX 10.
32052         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
32053         * doc/posix-functions/gmtime_r.texi: Likewise.
32054         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32055
32056 2008-02-24  Bruno Haible  <bruno@clisp.org>
32057
32058         * modules/environ-tests: New file.
32059         * tests/test-environ.c: New file.
32060
32061         New module 'environ'.
32062         * modules/environ: New file.
32063         * lib/unistd.in.h (environ): New declaration.
32064         * m4/environ.m4: New file.
32065         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
32066         after use.
32067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
32068         HAVE_DECL_ENVIRON.
32069         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
32070         HAVE_DECL_ENVIRON.
32071         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
32072         wrong claim that 'environ' is missing on some systems.
32073         * modules/execute (Depends-on): Add environ.
32074         * lib/execute.c (environ): Remove fallback declaration.
32075         * modules/pipe (Depends-on): Add environ.
32076         * lib/pipe.c (environ): Remove fallback declaration.
32077         * modules/setenv (Depends-on): Add environ.
32078         * lib/setenv.c (environ): Remove fallback declaration.
32079         * modules/unsetenv (Depends-on): Add environ.
32080         * lib/unsetenv.c (environ): Remove fallback declaration.
32081         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
32082         m4/environ.m4.
32083         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
32084         (gl_PREREQ_UNSETENV): Likewise.
32085
32086 2008-02-24  Bruno Haible  <bruno@clisp.org>
32087
32088         * doc/posix-functions/environ.texi: Document the MacOS X problem.
32089
32090 2008-02-20  Bob Proulx  <bob@proulx.com>
32091
32092         Enable use of older two part flavor 'git describe'.
32093         * build-aux/git-version-gen: If using the older two part flavor of
32094         git version then recreate the third part now present in the
32095         newer three part flavor of git describe.
32096
32097 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
32098
32099         * lib/fts.c (fts_build): Typo correction to comment.
32100
32101 2008-02-17  Bruno Haible  <bruno@clisp.org>
32102
32103         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
32104         generating no-op conflicts.
32105
32106 2008-02-17  Bruno Haible  <bruno@clisp.org>
32107
32108         Speed up by 10%.
32109         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
32110         result_entries, rather than an index-based loop.
32111
32112 2008-02-17  Bruno Haible  <bruno@clisp.org>
32113
32114         Speed up by 25%.
32115         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
32116         'hashcode_cached'.
32117         (entry_create): New function.
32118         (entry_hashcode): Use the cached hashcode if possible.
32119         (read_changelog_file, try_split_merged_entry): Use entry_create.
32120
32121 2008-02-17  Bruno Haible  <bruno@clisp.org>
32122
32123         Speed up from O(n^2) to O(n) for long ChangeLog files.
32124         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
32125         (read_changelog_file): Change implementation of entries_reversed list
32126         to rbtreehash.
32127         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
32128
32129 2008-02-17  Bruno Haible  <bruno@clisp.org>
32130
32131         New option --split-merged-entry.
32132         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
32133         (find_paragraph_end, try_split_merged_entry): New functions.
32134         (long_options): Add option --split-merged-entry.
32135         (usage): Document option --split-merged-entry.
32136         (main): Implement option --split-merged-entry.
32137         Reported by Eric Blake.
32138
32139 2008-02-17  Bruno Haible  <bruno@clisp.org>
32140
32141         * lib/git-merge-changelog.c: Include c-strstr.h.
32142         (main): Support the "git pull --rebase" situation.
32143         * modules/git-merge-changelog (Depends-on): Add c-strstr.
32144         Reported by Eric Blake.
32145
32146 2008-02-16  Eric Blake  <ebb9@byu.net>
32147
32148         Avoid doubling \ in common case of "c-maybe" quoting style.
32149         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
32150         eliding outer quotes.
32151         * lib/quotearg.h: Document this.
32152         * tests/test-quotearg.c (result_strings, inputs, results_g)
32153         (flag_results, locale_results): Test it by adding a new string to
32154         each test group.
32155         (compare_strings): Test new string.
32156
32157 2008-02-13  Eric Blake  <ebb9@byu.net>
32158
32159         Avoid trigraph quoting in default output.
32160         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32161         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32162         unless explicitly requested.
32163         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32164
32165 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32166
32167         Don't rely on signed integer overflowing to negative value.
32168         * lib/getugroups.c (getugroups): Include <limits.h>.
32169         Instead, compare against INT_MAX, and increment only if the test passes.
32170
32171 2008-02-13  Jim Meyering  <meyering@redhat.com>
32172         and Eric Blake  <ebb9@byu.net>
32173
32174         Avoid shadowing warning and compile errors on Linux.
32175         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32176         forwarding macros on Linux.
32177         (dcgettext): Define a stub, for Linux.
32178         (results_g, main): Avoid warnings.
32179
32180 2008-02-12  Eric Blake  <ebb9@byu.net>
32181
32182         Silence warning in last patch.
32183         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32184
32185         Quotearg part 4: add tests, fix c-maybe colon quoting.
32186         * lib/quotearg.h: Improve documentation.
32187         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32188         escapes when adding outer quotes.  When quoting trigraphs, use
32189         valid C notation.  When quoting NUL, omit extra characters if next
32190         character is not digit.  Alter prototype.
32191         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32192         callers.
32193         * modules/quotearg-tests: New module.
32194         * tests/test-quotearg.c: New test.
32195
32196 2008-02-07  Eric Blake  <ebb9@byu.net>
32197
32198         Quotearg part 3: add flag to control outer quote elision.
32199         * lib/quotearg.h (c_maybe_quoting_style): New style.
32200         (enum quoting_flags): Better documentation of flags.
32201         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32202         c-maybe style.
32203         (quotearg_buffer_restyled): Handle new flag to elide outer
32204         quotes.
32205
32206         Quotearg part 2: add flag that can control NUL elision.
32207         * lib/quotearg.h (set_quoting_flags): New prototype.
32208         * lib/quotearg.c (struct quoting_options): Add flag field.
32209         (set_quoting_flags): New function.
32210         (quotearg_buffer_restyled): Add flags parameter.
32211         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32212         (quotearg_n_options): Set the flag, since length cannot be
32213         returned.
32214         (quoting_options_from_style): Default flags correctly.
32215
32216         Quotearg part 1: more wrappers, restore quotearg_char state.
32217         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32218         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32219         (quotearg_colon_mem): New wrappers.
32220         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32221         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32222         functions.
32223         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32224         (quotearg_colon_mem): New functions.
32225
32226 2008-02-11  Bruno Haible  <bruno@clisp.org>
32227
32228         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32229         library in the current directory: it does not work with parallel make.
32230         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32231
32232 2008-02-11  Bruno Haible  <bruno@clisp.org>
32233
32234         * .gitattributes: New file.
32235
32236 2008-02-11  Jim Meyering  <meyering@redhat.com>
32237
32238         useless-if-before-free: Fix reversed exit values.
32239         * build-aux/useless-if-before-free: Use correct values
32240         for EXIT_MATCH and EXIT_NO_MATCH.
32241
32242         * build-aux/useless-if-before-free: Close stdout carefully.
32243
32244 2008-02-10  Bruno Haible  <bruno@clisp.org>
32245
32246         New module 'git-merge-changelog'.
32247         * modules/git-merge-changelog: New file.
32248         * lib/git-merge-changelog.c: New file.
32249
32250 2008-02-10  Jim Meyering  <meyering@redhat.com>
32251
32252         useless-if-before-free: New option: --list (-l).
32253
32254         useless-if-before-free: Don't exit immediately upon open failure.
32255         * build-aux/useless-if-before-free: Exit 2 for errors.
32256         Upon failure to open a file, don't exit immediately.
32257         Rather, just warn and continue with any remaining files.
32258
32259 2008-02-10  Bruno Haible  <bruno@clisp.org>
32260
32261         New abstract list operation 'node_set_value'.
32262         * lib/gl_list.h (gl_list_node_set_value): New function.
32263         (struct gl_list_implementation): New field node_set_value.
32264         * lib/gl_list.c (gl_list_node_set_value): New function.
32265         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32266         (gl_array_list_implementation): Update.
32267         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32268         (gl_carray_list_implementation): Update.
32269         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32270         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32271         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32272         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32273         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32274         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32275         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32276         Update.
32277         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32278         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32279         (gl_sublist_list_implementation): Update.
32280
32281 2008-02-10  Bruno Haible  <bruno@clisp.org>
32282
32283         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32284         Needed when ELEMENT is #defined to 'some_type *'.
32285
32286 2008-02-10  Jim Meyering  <meyering@redhat.com>
32287
32288         New script and module: useless-if-before-free
32289         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32290         * build-aux/useless-if-before-free: New file.
32291         * modules/useless-if-before-free: New file.
32292
32293         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32294
32295         xstrtol_error: Fix typo.
32296         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32297         s/exit_failure/exit_status/.
32298
32299 2008-02-09  Jim Meyering  <meyering@redhat.com>
32300
32301         New script and module: gitlog-to-changelog
32302         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32303         * modules/gitlog-to-changelog: New file.
32304         * build-aux/gitlog-to-changelog: New file.
32305
32306 2008-02-08  Jim Meyering  <meyering@redhat.com>
32307
32308         Avoid two "parameter unused" warnings.
32309         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32310         Mark "st" as used.
32311
32312         Use "git COMMAND", not "git-COMMAND".
32313         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32314         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32315         * build-aux/git-version-gen: Use "git status", not "git-status".
32316
32317 2008-02-07  Bruno Haible  <bruno@clisp.org>
32318
32319         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32320         Avoids a crash on Windows Vista.
32321         Reported by Adam Strzelecki <ono@java.pl> via
32322         Simon Josefsson <simon@josefsson.org>.
32323
32324 2008-02-06  Bruno Haible  <bruno@clisp.org>
32325
32326         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32327         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32328         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32330         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32331         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32332         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32333         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32335         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32336         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32337         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32338         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32339         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32340         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32341         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32342         left-adjust flag.
32343         * tests/test-snprintf-posix.h (test_function): Likewise.
32344         * tests/test-sprintf-posix.h (test_function): Likewise.
32345         * tests/test-vasprintf-posix.c (test_function): Likewise.
32346         * doc/posix-functions/fprintf.texi: Update.
32347         * doc/posix-functions/printf.texi: Update.
32348         * doc/posix-functions/snprintf.texi: Update.
32349         * doc/posix-functions/sprintf.texi: Update.
32350         * doc/posix-functions/vfprintf.texi: Update.
32351         * doc/posix-functions/vprintf.texi: Update.
32352         * doc/posix-functions/vsnprintf.texi: Update.
32353         * doc/posix-functions/vsprintf.texi: Update.
32354         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32355
32356 2008-02-06  Bruno Haible  <bruno@clisp.org>
32357
32358         Fix bug introduced on 2008-01-26.
32359         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32360
32361 2008-02-06  Bruno Haible  <bruno@clisp.org>
32362
32363         Fix bug introduced on 2007-06-10.
32364         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32365         !NEED_PRINTF_FLAG_ZERO.
32366
32367 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32368
32369         getloadavg: use libperfstat on AIX5
32370         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32371
32372 2008-02-03  Bruno Haible  <bruno@clisp.org>
32373
32374         * lib/diffseq.h: Add comments about required #includes.
32375         Reported by Michael Biggs <gnulib@doubleplum.net>.
32376
32377 2008-02-01  Bruno Haible  <bruno@clisp.org>
32378
32379         * users.txt: Add gnuit.
32380
32381 2008-01-31  Bruno Haible  <bruno@clisp.org>
32382
32383         * lib/md4.c (set_uint32): Mark as inline.
32384         * lib/md5.c (set_uint32): Likewise.
32385         * lib/sha1.c (set_uint32): Likewise.
32386         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32387         * m4/md5.m4 (gl_MD5): Likewise.
32388         * m4/sha1.m4 (gl_SHA1): Likewise.
32389
32390 2008-01-31  Jim Meyering  <meyering@redhat.com>
32391
32392         Use "sizeof VAR", rather than a literal "4".
32393         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32394         * lib/md4.c (md4_read_ctx): Likewise.
32395         * lib/sha1.c (sha1_read_ctx): Likewise.
32396
32397 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32398
32399         * tests/test-sha1.c: New file, based on test-md5.c.
32400
32401         * modules/crypto/sha1-tests: New file.
32402
32403 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32404
32405         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32406
32407 2008-01-31  Jim Meyering  <meyering@redhat.com>
32408
32409         Prefer "sizeof v" over the equivalent "4".
32410         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32411         * lib/md5.c (set_uint32): Likewise.
32412         * lib/sha1.c (set_uint32): Likewise.
32413
32414 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32415
32416         * lib/sha1.c (set_uint32): Mark function as static.
32417
32418 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32419
32420         md2: clarify comments to say that alignment is not required.
32421         * lib/md2.h: Remove warning about alignment in comment.
32422         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32423         never been required.
32424
32425 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32426
32427         md4: adapt alignment constraint fix from sha1.
32428         * lib/md4.c (set_uint32): New function, from sha1.c
32429         (md4_read_ctx): Use it.
32430         (md4_finish_ctx): Doc fix.
32431         * lib/md4.h: Doc fix.
32432
32433 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32434
32435         md5: adapt alignment constraint fix from sha1.
32436         * lib/md5.c (set_uint32): New function, from sha1.c
32437         (md5_read_ctx): Use it.
32438         (md5_finish_ctx): Doc fix.
32439         * lib/md5.h: Doc fix.
32440
32441 2008-01-30  Peter Palfrader  <weasel@debian.org>
32442
32443         sha1: remove the result buffer alignment constraint
32444         * lib/sha1.c (set_uint32): New function.
32445         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32446         constraint.
32447         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32448         * lib/sha1.h: Likewise.
32449
32450 2008-01-30  Andreas Schwab  <schwab@suse.de>
32451             Bruno Haible  <bruno@clisp.org>
32452
32453         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32454         correct definition of LDBL_MIN_EXP.
32455
32456 2008-01-30  Karl Berry  <karl@gnu.org>
32457
32458         * config/srclist-update: try to preserve x bit on updates.
32459         * config/srclistvars.sh: update for karl.
32460
32461 2008-01-29  Jim Meyering  <meyering@redhat.com>
32462
32463         vasnprintf.c: Avoid warning about unused label
32464         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32465         "overflow" label definition and associated code with the
32466         same cpp condition that guards the sole use of that label.
32467
32468 2008-01-26  Bruno Haible  <bruno@clisp.org>
32469
32470         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32471         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32472         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32473         * lib/isnanl-nolibm.h (isnanl): Likewise.
32474         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32475
32476 2008-01-26  Bruno Haible  <bruno@clisp.org>
32477
32478         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32479         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32480
32481 2008-01-26  Bruno Haible  <bruno@clisp.org>
32482
32483         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32484         GCC >= 4.0 built-in.
32485         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32486
32487 2008-01-26  Bruno Haible  <bruno@clisp.org>
32488
32489         Rename isnan, applicable to 'double' only, to isnand.
32490         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32491         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32492         (configure.ac): Update.
32493         (Include): Replace "isnan.h" with "isnand.h".
32494         * m4/isnand.m4: Renamed from m4/isnan.m4.
32495         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32496         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32497         instead of isnan.c.
32498         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32499         instead of HAVE_ISNAN_IN_LIBC.
32500         (isnand): Renamed from isnan.
32501         * lib/isnand.c: New file.
32502         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32503         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32504         (Makefile.am): Update.
32505         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32506         Include isnand.h instead of isnan.h.
32507         (main): Test isnand instead of isnan.
32508         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32509         isnan-nolibm.
32510         * modules/frexp (Depends-on): Likewise.
32511         * modules/frexp-tests (Depends-on): Likewise.
32512         * modules/frexp-nolibm (Depends-on): Likewise.
32513         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32514         * modules/isfinite (Depends-on): Likewise.
32515         * modules/round-tests (Depends-on): Likewise.
32516         * modules/signbit (Depends-on): Likewise.
32517         * modules/signbit-tests (Depends-on): Likewise.
32518         * modules/snprintf-posix (Depends-on): Likewise.
32519         * modules/sprintf-posix (Depends-on): Likewise.
32520         * modules/trunc-tests (Depends-on): Likewise.
32521         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32522         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32523         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32524         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32525         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32526         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32527         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32528         * modules/vasnprintf-posix (Depends-on): Likewise.
32529         * modules/vasprintf-posix (Depends-on): Likewise.
32530         * modules/vfprintf-posix (Depends-on): Likewise.
32531         * modules/vsnprintf-posix (Depends-on): Likewise.
32532         * modules/vsprintf-posix (Depends-on): Likewise.
32533         * lib/frexp.c: Include isnand.h instead of isnan.h.
32534         (ISNAN): Set to isnand instead of isnan.
32535         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32536         (gl_isfinited): Use isnand instead of isnan.
32537         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32538         (gl_signbitd): Use isnand instead of isnan.
32539         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32540         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32541         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32542         (main): Use isnand instead of isnan.
32543         * tests/test-round1.c: Include isnand.h.
32544         (main): Use isnand instead of isnan.
32545         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32546         (ISNAN): Set to isnand instead of isnan.
32547         * tests/test-trunc1.c: Include isnand.h.
32548         (main): Use isnand instead of isnan.
32549         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32550         (equal): Use isnand instead of isnan.
32551         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32552         isnand-nolibm.
32553         * NEWS: Mention the change.
32554
32555 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32556             Bruno Haible  <bruno@clisp.org>
32557
32558         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32559         the GCC builtins for signbits are present and set
32560         REPLACE_SIGNBIT_USING_GCC if so.
32561         * lib/math.in.h (signbit): Define using GCC builtins if
32562         REPLACE_SIGNBIT_USING_GCC is set.
32563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32564         REPLACE_SIGNBIT_USING_GCC.
32565         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32566
32567 2008-01-25  Jim Meyering  <meyering@redhat.com>
32568
32569         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32570         * lib/poll.c: Include <config.h>, not "config.h".
32571         * tests/test-getaddrinfo.c: Likewise.
32572
32573 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32574
32575         * modules/sockets-tests: New file.
32576
32577 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32578
32579         * modules/sockets: New module, can be used to call WSA_Startup and
32580         WSA_Cleanup when needed.
32581
32582         * lib/sockets.h, lib/sockets.c: New files.
32583
32584         * m4/sockets.m4: New file.
32585
32586         * tests/test-sockets.c: New file.
32587
32588 2008-01-19  Bruno Haible  <bruno@clisp.org>
32589
32590         * doc/posix-headers: Renamed from doc/headers.
32591         * doc/posix-functions: Renamed from doc/functions.
32592         * doc/gnulib.texi: Update.
32593
32594 2008-01-19  Bruno Haible  <bruno@clisp.org>
32595
32596         * doc/glibc-functions/strcasestr.texi: Include contents of
32597         doc/functions/strcasestr.texi, fixing the list of platforms.
32598         * doc/functions/strcasestr.texi: Remove file.
32599
32600 2008-01-19  Bruno Haible  <bruno@clisp.org>
32601
32602         * doc/glibc-functions/memmem.texi: Include contents of
32603         doc/functions/memmem.texi.
32604         * doc/functions/memmem.texi: Remove file.
32605
32606 2008-01-18  Bruno Haible  <bruno@clisp.org>
32607
32608         * doc/glibc-functions/*.texi: New files.
32609         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32610         to use the new files.
32611
32612 2008-01-17  Bruno Haible  <bruno@clisp.org>
32613
32614         * tests/test-gethostname.c (main): Fix printf statement.
32615
32616 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32617
32618         * modules/gethostname-tests: New file.
32619
32620         * tests/test-gethostname.c: New file.
32621
32622 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32623
32624         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32625         used by the UNAME case.  Reported by Bruno Haible
32626         <bruno@clisp.org>.
32627
32628 2008-01-17  Eric Blake  <ebb9@byu.net>
32629
32630         Convert c-strcasestr to be more efficient.
32631         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32632         (Depends-on): Add c-strcase, remove malloca, strnlen.
32633         * tests/test-c-strcasestr.c (main): Enhance test.
32634         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32635
32636 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32637
32638         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32639         Use it in creating po/Makevars.
32640
32641 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32642
32643         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32644         Applications that requires it should initialize libgcrypt
32645         manually.
32646
32647 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32648
32649         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32650
32651 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32652
32653         Fix problem with getdate on mingw32 reported by Simon Josefsson
32654         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32655         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32656         tzname", when deciding whether to declare tzname.
32657         * lib/strftime.c (tzname): Likewise.
32658
32659 2008-01-15  Bruno Haible  <bruno@clisp.org>
32660
32661         Work around a MacOS X 10.5 bug in frexpl().
32662         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32663         * doc/functions/frexpl.texi: Document the bug.
32664         Reported by Elias Pipping <pipping@gentoo.org>.
32665
32666 2008-01-14  Eric Blake  <ebb9@byu.net>
32667
32668         Touch up previous patch.
32669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32670         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32671
32672         Convert strcasestr module to use Two-Way algorithm.
32673         * modules/strcasestr-simple: New module, based on the old
32674         strcasestr, but with Two-Way rather than KMP.
32675         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32676         * lib/string.in.h (rpl_strcasestr): Declare.
32677         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32678         performance.
32679         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32680         * modules/string (Makefile.am): Support strcasestr.
32681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32682         * modules/strcasestr-tests (Depends-on): Check for alarm.
32683         * tests/test-strcasestr.c: Augment test.
32684         * lib/str-two-way.h: Clean up stray macro.
32685         * NEWS: Document new module.
32686         * MODULES.html.sh (string handling): Likewise.
32687         * doc/functions/strcasestr.texi: New file.
32688         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32689         here, since it is not a POSIX function.
32690
32691 2008-01-14  Colin Watson  <cjwatson@debian.org>
32692             Bruno Haible  <bruno@clisp.org>
32693
32694         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32695         works fine; if not, set REPLACE_STRSIGNAL.
32696         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32698         REPLACE_STRSIGNAL.
32699         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32700         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32701         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32702
32703 2008-01-14  Bruno Haible  <bruno@clisp.org>
32704
32705         * modules/strsignal (Include): Change to <string.h>.
32706
32707 2008-01-14  Colin Watson  <cjwatson@debian.org>
32708
32709         * modules/argp (Notice): Add a notice recommending to change
32710         XGETTEXT_OPTIONS.
32711         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32712
32713 2008-01-13  Colin Watson  <cjwatson@debian.org>
32714
32715         * modules/strsignal-tests: New file.
32716         * tests/test-strsignal.c: New file.
32717
32718         * lib/strsignal.c: New file, from glibc with modifications.
32719         * lib/siglist.h: New file, from glibc with modifications.
32720         * lib/string.in.h (strsignal): New declaration.
32721         * m4/strsignal.m4: New file.
32722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32723         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32724         * modules/strsignal: New file.
32725         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32726         HAVE_DECL_STRSIGNAL.
32727
32728 2008-01-13  Bruno Haible  <bruno@clisp.org>
32729
32730         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32731         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32732         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32733         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32734
32735 2008-01-13  Bruno Haible  <bruno@clisp.org>
32736
32737         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32738         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32739         * lib/argp.h (__attribute__): Likewise.
32740         * lib/c-stack.c (__attribute__): Likewise.
32741         * lib/error.h (__attribute__): Likewise.
32742         * lib/fts.c (__attribute__): Likewise.
32743         * lib/openat.h (__attribute__): Likewise.
32744         * lib/stdio.in.h (__attribute__): Likewise.
32745         * lib/string.in.h (__attribute__): Likewise.
32746         * lib/utimens.c (__attribute__): Likewise.
32747         * lib/vasnprintf.h (__attribute__): Likewise.
32748         * lib/xalloc.h (__attribute__): Likewise.
32749         * lib/xprintf.h (__attribute__): Likewise.
32750         * lib/xstrtol.h (__attribute__): Likewise.
32751         * lib/xvasprintf.h (__attribute__): Likewise.
32752
32753 2008-01-12  Bruno Haible  <bruno@clisp.org>
32754
32755         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32756         * doc/glibc-headers/a.out.texi: New file.
32757         * doc/glibc-headers/aliases.texi: New file.
32758         * doc/glibc-headers/alloca.texi: New file.
32759         * doc/glibc-headers/ar.texi: New file.
32760         * doc/glibc-headers/argp.texi: New file.
32761         * doc/glibc-headers/argz.texi: New file.
32762         * doc/glibc-headers/byteswap.texi: New file.
32763         * doc/glibc-headers/crypt.texi: New file.
32764         * doc/glibc-headers/endian.texi: New file.
32765         * doc/glibc-headers/envz.texi: New file.
32766         * doc/glibc-headers/err.texi: New file.
32767         * doc/glibc-headers/error.texi: New file.
32768         * doc/glibc-headers/execinfo.texi: New file.
32769         * doc/glibc-headers/fpu_control.texi: New file.
32770         * doc/glibc-headers/fstab.texi: New file.
32771         * doc/glibc-headers/fts.texi: New file.
32772         * doc/glibc-headers/getopt.texi: New file.
32773         * doc/glibc-headers/ieee754.texi: New file.
32774         * doc/glibc-headers/ifaddrs.texi: New file.
32775         * doc/glibc-headers/libintl.texi: New file.
32776         * doc/glibc-headers/mcheck.texi: New file.
32777         * doc/glibc-headers/mntent.texi: New file.
32778         * doc/glibc-headers/obstack.texi: New file.
32779         * doc/glibc-headers/paths.texi: New file.
32780         * doc/glibc-headers/printf.texi: New file.
32781         * doc/glibc-headers/pty.texi: New file.
32782         * doc/glibc-headers/resolv.texi: New file.
32783         * doc/glibc-headers/shadow.texi: New file.
32784         * doc/glibc-headers/sysexits.texi: New file.
32785         * doc/glibc-headers/ttyent.texi: New file.
32786
32787 2008-01-12  Jim Meyering  <meyering@redhat.com>
32788
32789         announce-gen: emit Gnulib's git-based version string.
32790         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32791         New option --gnulib-version=V, where V is expected to be
32792         the output of running git describe in the gnulib directory.
32793         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32794         not useful, and plan to stop publishing an xdelta file with each
32795         coreutils release.
32796
32797         * build-aux/announce-gen: Also check for lzma-compressed files.
32798
32799 2008-01-11  Bruno Haible  <bruno@clisp.org>
32800
32801         * tests/test-memmem.c (main): Increase maximum allowed time.
32802         * tests/test-strstr.c (main): Likewise.
32803
32804 2008-01-11  Bruno Haible  <bruno@clisp.org>
32805
32806         * doc/functions/memmem.texi: Add more precisions about platforms.
32807         * doc/functions/strstr.texi: Likewise.
32808
32809 2008-01-10  Eric Blake  <ebb9@byu.net>
32810
32811         * m4/strstr.m4: Delete cruft from copy-n-paste.
32812         Reported by Bruno Haible.
32813
32814 2008-01-10  Bruno Haible  <bruno@clisp.org>
32815
32816         Make c-strstr rely on strstr.
32817         * lib/c-strstr.c: Don't include str-kmp.h.
32818         (c_strstr): Define in terms of strstr.
32819         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32820         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32821
32822 2008-01-10  Bruno Haible  <bruno@clisp.org>
32823
32824         * doc/gnulib.texi (String Functions in C Locale): New section.
32825         * doc/c-ctype.texi: New file.
32826         * doc/c-strcase.texi: New file.
32827         * doc/c-strcaseeq.texi: New file.
32828         * doc/c-strcasestr.texi: New file.
32829         * doc/c-strstr.texi: New file.
32830         * doc/c-strtod.texi: New file.
32831         * doc/c-strtold.texi: New file.
32832
32833 2008-01-10  Eric Blake  <ebb9@byu.net>
32834
32835         * lib/relocatable.h: Fix a comment.
32836
32837 2008-01-10  Eric Blake  <ebb9@byu.net>
32838
32839         Share two-way algorithm.
32840         * lib/str-two-way.h: New file, merged from...
32841         * lib/memmem.c: ...here...
32842         * lib/strstr.c: ...and here.
32843         * modules/memmem (Files): Use it.
32844         * modules/strstr (Files): Likewise.
32845
32846         Avoid quadratic strstr implementations.
32847         * lib/strstr.c: New file.
32848         * m4/strstr.m4: Likewise.
32849         * modules/strstr: Likewise.
32850         * modules/strstr-tests: Likewise.
32851         * tests/test-strstr.c: Likewise.
32852         * lib/string.in.h (rpl_strstr): Declare.
32853         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
32854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
32855         * modules/string (Makefile.am): Likewise.
32856         * MODULES.html.sh (string handling): Mention new module.
32857         * doc/functions/strstr.texi (strstr): Document the bug.
32858
32859 2008-01-10  Bruno Haible  <bruno@clisp.org>
32860
32861         * lib/relocatable.h (relocate): State whether result is freshly
32862         allocated or not.
32863         * lib/relocatable.c (relocate): Return a freshly allocated string
32864         instead of a pointer to a privately held string.
32865         Reported by Sylvain Beucler <beuc@gnu.org>.
32866
32867 2008-01-10  Colin Watson  <cjwatson@debian.org>
32868
32869         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
32870         s/S_ISNLK/S_ISLNK/.
32871
32872 2008-01-09  Bruno Haible  <bruno@clisp.org>
32873
32874         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
32875         and other files.
32876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
32877         if it's only a guess.
32878         * modules/memmem: Simplify by depending on memmem-simple.
32879
32880 2008-01-09  Bruno Haible  <bruno@clisp.org>
32881
32882         Work around OpenBSD 4.0 tdelete() bug.
32883         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
32884         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
32885         macros and don't redefine the enum values.
32886         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
32887         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
32888         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
32889
32890 2008-01-09  Bruno Haible  <bruno@clisp.org>
32891
32892         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
32893         (main): Don't perform the tests if setlocale did not install a UTF-8
32894         locale. Needed on OpenBSD 4.0.
32895         * modules/wcwidth-tests (Depends-on): Add localcharset.
32896
32897 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32898
32899         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
32900         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
32901         * NEWS: announce this.
32902         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
32903
32904 2008-01-09  Simon Josefsson  <simon@josefsson.org>
32905         and Eric Blake  <ebb9@byu.net>
32906
32907         Add memmem-simple module.
32908         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
32909         (gl_FUNC_MEMMEM): Separate performance from presence checks.
32910         * modules/memmem-simple: New file.
32911         * modules/memmem (Description): Tweak.
32912         * MODULES.html.sh (string handling): Mention new module.
32913         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
32914         addressed by memmem-simple.
32915         * NEWS: Document the difference.
32916
32917 2008-01-09  Eric Blake  <ebb9@byu.net>
32918
32919         Give gcc some memmem optimization hints.
32920         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
32921         (strcasestr): Declare as pure.
32922         * modules/memmem (Maintainer): Claim my implementation.
32923
32924 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32925
32926         Support AIX 6.1 and higher.
32927         * build-aux/config.libpath: Likewise.
32928         * build-aux/config.rpath: Likewise.
32929
32930 2008-01-08  Jim Meyering  <meyering@redhat.com>
32931             Bruno Haible  <bruno@clisp.org>
32932
32933         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
32934         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
32935         Reported by Peter Fales in
32936         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
32937
32938 2008-01-08  Bruno Haible  <bruno@clisp.org>
32939
32940         * modules/unictype/category-of (Depends-on): Add
32941         unictype/category-none.
32942         * modules/unictype/category-and-tests (Depends-on): Add
32943         unictype/category-{L,N,Lu,Nd}.
32944         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
32945         * modules/unictype/category-or-tests (Depends-on): Add
32946         unictype/category-{L,N}.
32947         * modules/unictype/category-name-tests (Depends-on): Add
32948         unictype/category-{Z,Nl}.
32949         Reported by Simon Josefsson.
32950
32951 2008-01-08  Bruno Haible  <bruno@clisp.org>
32952
32953         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
32954         convention better.
32955         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
32956         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
32957         Reported by Peter Miller <millerp@canb.auug.org.au>.
32958
32959 2008-01-08  Eric Blake  <ebb9@byu.net>
32960
32961         Rewrite memmem to guarantee linear complexity without malloc.
32962         * lib/memmem.c (memmem): Use Two-Way rather than
32963         Knuth-Morris-Pratt, to allow O(1) space usage.
32964         (critical_factorization, two_way_short_needle)
32965         (two_way_long_needle): New functions.
32966         (knuth_morris_pratt): Delete.
32967         * modules/memmem (Depends-on): No longer need malloca or stdbool.
32968         Add stdint.
32969         * tests/test-memmem.c (main): Add tests for periodic needle and
32970         sublinear performance.
32971         * doc/functions/memmem.texi (memmem): Document other deficiencies
32972         in cygwin and older glibc.
32973
32974 2008-01-08  Bruno Haible  <bruno@clisp.org>
32975
32976         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
32977         augmentation.
32978
32979 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
32980
32981         Add a configure time option: --disable-acl.
32982         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
32983         AC_ARG_ENABLE(acl).
32984
32985 2008-01-06  Simon Josefsson  <simon@josefsson.org>
32986
32987         * tests/test-localename.c: Don't include obsolete "setenv.h".
32988
32989         * modules/localename-tests (Depends-on): Need unsetenv.
32990
32991 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32992
32993         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
32994
32995 2008-01-06  Colin Watson  <cjwatson@debian.org>
32996
32997         * users.txt: Add man-db.
32998
32999 2008-01-07  Bruno Haible  <bruno@clisp.org>
33000
33001         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
33002         previous section name.
33003
33004 2008-01-07  Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/progname.c (set_program_name): Don't strip off a leading
33007         "lt-" prefix outside a .libs directory.
33008         Suggested by Paul Eggert.
33009
33010 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
33011             Bruno Haible  <bruno@clisp.org>
33012
33013         Improve memory cleanup in 'relocatable' module.
33014         * lib/relocatable.h (compute_curr_prefix): Change return type to
33015         'char *'.
33016         * lib/relocatable.c (compute_curr_prefix): Change return type to
33017         'char *'. Free curr_installdir after use.
33018         (relocate): Free curr_prefix_better after use.
33019         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
33020
33021 2008-01-01  Bruno Haible  <bruno@clisp.org>
33022
33023         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
33024         failure on older glibc systems.
33025         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33026
33027 2008-01-05  Eric Blake  <ebb9@byu.net>
33028
33029         Avoid quadratic system memmem.
33030         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
33031         Reported by Ralf Wildenhues.
33032
33033         Fix memmem test for mingw.
33034         * modules/memmem-tests (configure.ac): Check for alarm.
33035         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
33036         it.
33037         * doc/functions/memmem.texi: New file.
33038         * doc/gnulib.texi (Function Substitutes): Add memmem.
33039         Reported by Bruno Haible.
33040
33041 2008-01-04  Bruno Haible  <bruno@clisp.org>
33042
33043         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
33044         Require gl_HEADER_STRINGS_H_DEFAULTS, not
33045         gl_HEADER_STRING_H_DEFAULTS.
33046
33047 2008-01-04  Eric Blake  <ebb9@byu.net>
33048
33049         Shorten duration of memmem test.
33050         * tests/test-memmem.c (main): Use alarm to declare failure if test
33051         is taking too long.
33052         Reported by Ralf Wildenhues.
33053
33054 2007-12-21  Simon Josefsson  <simon@josefsson.org>
33055
33056         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
33057         string, needed by strerror.
33058
33059 2008-01-03  Colin Watson  <cjwatson@debian.org>
33060             Bruno Haible  <bruno@clisp.org>
33061
33062         * doc/gnulib-tool.texi (Localization): New section.
33063
33064 2008-01-02  Bruno Haible  <bruno@clisp.org>
33065
33066         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
33067         variables to 'unsigned char *' type.
33068         Reported by Paul Eggert.
33069
33070 2008-01-02  Jim Meyering  <jim@meyering.net>
33071
33072         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
33073
33074 2007-12-31  Jim Meyering  <jim@meyering.net>
33075
33076         Avoid use of private FTS type name.
33077         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
33078
33079 2007-12-30  Karl Berry  <karl@gnu.org>
33080
33081         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
33082         work around defect in Texinfo and/or the standalone Info browser.
33083
33084 2007-12-30  Bruno Haible  <bruno@clisp.org>
33085
33086         Unify 5 copies of the KMP code.
33087         * lib/str-kmp.h: New file.
33088         * lib/c-strcasestr.c: Include str-kmp.h.
33089         (knuth_morris_pratt): Remove function.
33090         (c_strcasestr): Update.
33091         * lib/c-strstr.c: Include str-kmp.h.
33092         (knuth_morris_pratt): Remove function.
33093         (c_strcasestr): Update.
33094         * lib/mbscasestr.c: Include str-kmp.h.
33095         (knuth_morris_pratt_unibyte): Remove function.
33096         * lib/mbsstr.c: Include str-kmp.h.
33097         (knuth_morris_pratt_unibyte): Remove function.
33098         * lib/strcasestr.c: Include str-kmp.h.
33099         (knuth_morris_pratt): Remove function.
33100         (strcasestr): Update.
33101         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
33102         * modules/c-strstr (Files): Likewise.
33103         * modules/mbscasestr (Files): Likewise.
33104         * modules/mbsstr (Files): Likewise.
33105         * modules/strcasestr (Files): Likewise.
33106         Suggested by Paul Eggert.
33107
33108 2007-12-30  Bruno Haible  <bruno@clisp.org>
33109
33110         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
33111         defined.
33112
33113 2007-12-30  Bruno Haible  <bruno@clisp.org>
33114
33115         * lib/xmalloca.h: Include xalloc.h.
33116         (xnmalloca): New macro.
33117
33118 2007-12-30  Bruno Haible  <bruno@clisp.org>
33119
33120         * lib/malloca.h (nmalloca): New macro.
33121         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
33122         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
33123         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
33124         knuth_morris_pratt_multibyte): Likewise.
33125         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
33126         knuth_morris_pratt_multibyte): Likewise.
33127         * lib/memmem.c (knuth_morris_pratt): Likewise.
33128         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
33129
33130 2007-12-25  Bruno Haible  <bruno@clisp.org>
33131
33132         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
33133         * lib/glob.c: Don't include openat.h.
33134         (link_exists2_p): Add back the code that deals with the
33135         !GLOB_ALTDIRFUNC case.
33136         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
33137         let it do the filename concatenation.
33138         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
33139         * modules/glob (Depends-on): Remove openat.
33140
33141 2007-12-31  Bruno Haible  <bruno@clisp.org>
33142
33143         * modules/dirfd (License): Change to LGPLv2+.
33144         Approved by Jim Meyering.
33145
33146 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33147
33148         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
33149         when multiplying M by sizeof (size_t).
33150
33151 2007-12-10  Martin Lambers  <marlam@marlam.de>
33152
33153         Override getpagesize on mingw.
33154         * lib/getpagesize.c: New file.
33155         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
33156         * modules/getpagesize (Files): Add lib/getpagesize.c.
33157         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
33158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33159         REPLACE_GETPAGESIZE.
33160         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33161
33162 2007-12-25  Bruno Haible  <bruno@clisp.org>
33163
33164         * modules/localcharset (Notice): New field.
33165         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33166         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33167
33168 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33169             Bruno Haible  <bruno@clisp.org>
33170
33171         Avoid using the syntax symbol() in formatted documentation.
33172         * MODULES.html.sh (func_module): When replacing symbol() with a
33173         hyperlink, remove the parentheses. Show an error if some remain.
33174         Recognize and render the '...' syntax.
33175         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33176         Rework. Add paragraph about GCC's inlining.
33177         * doc/alloca.texi: Likewise.
33178         * doc/error.texi: Remove parentheses from symbol reference.
33179         * doc/gnulib-intro.texi: Likewise.
33180         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33181         * modules/fnmatch (Description): Reword to say "the ... function".
33182         * modules/full-read (Description): Likewise.
33183         * modules/full-write (Description): Likewise.
33184         * modules/safe-read (Description): Likewise.
33185         * modules/safe-write (Description): Likewise.
33186         * modules/strchrnul (Description): Likewise.
33187         * modules/trim (Description): Likewise.
33188         * modules/error (Description): Remove parentheses from symbol
33189         references.
33190         * modules/verror (Description): Likewise.
33191         Reported by Karl Berry.
33192
33193 2007-12-25  Bruno Haible  <bruno@clisp.org>
33194
33195         Fixup after 2007-10-16 commit.
33196         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33197
33198 2007-12-24  Bruno Haible  <bruno@clisp.org>
33199
33200         Make --enable-relocatable work with DESTDIR.
33201         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33202         to compute installdir from destprog.
33203         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33204         also set the RELOC_DESTDIR variable.
33205         Reported by Левашев Иван <octagram@bluebottle.com>.
33206
33207 2007-12-24  Bruno Haible  <bruno@clisp.org>
33208
33209         Fix link error due to xalloc_die().
33210         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33211         of xreadlink.
33212         * lib/relocwrapper.c: Update comments.
33213         * build-aux/install-reloc: Remove xreadlink.c from file list.
33214         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33215         xreadlink.c.
33216         Reported by Левашев Иван <octagram@bluebottle.com>.
33217
33218 2007-12-24  Bruno Haible  <bruno@clisp.org>
33219
33220         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33221         * lib/setenv.h: Remove file.
33222         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33223         lib/setenv.h.
33224         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33225         (Depends-on): Add stdlib.
33226         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33227         gl_FUNC_UNSETENV.
33228         (Include): Replace setenv.h with <stdlib.h>.
33229         * modules/unsetenv: New file.
33230         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33231         * lib/unsetenv.c: Include <stdlib.h> first.
33232         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33233         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33234         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33235         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33236         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33237         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33239         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33240         * doc/functions/unsetenv.texi: Update.
33241         * modules/xsetenv (Depends-on): Add unsetenv.
33242         * modules/getdate (Depends-on): Likewise.
33243         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33244         * lib/xsetenv.c: Don't include setenv.h.
33245         * lib/getdate.y: Likewise.
33246         * lib/relocwrapper.c: Likewise.
33247         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33248         (Depends-on): Add stdlib.
33249         * NEWS: Mention the changes.
33250         Reported by Левашев Иван <octagram@bluebottle.com>.
33251
33252 2007-12-23  Bruno Haible  <bruno@clisp.org>
33253
33254         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33255         indentation.
33256
33257 2007-12-23  Bruno Haible  <bruno@clisp.org>
33258
33259         * lib/c-strcasestr.c: Add more comments.
33260         * lib/c-strstr.c: Likewise.
33261         * lib/mbscasestr.c: Likewise.
33262         * lib/mbsstr.c: Likewise.
33263         * lib/strcasestr.c: Likewise.
33264         * lib/memmem.c: Likewise.
33265
33266 2007-12-23  Bruno Haible  <bruno@clisp.org>
33267
33268         * tests/test-memmem.c: Include <string.h> first.
33269
33270 2007-12-22  Bruno Haible  <bruno@clisp.org>
33271
33272         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33273         the contents of $testsbase.
33274         Reported by Ralf Wildenhues.
33275
33276 2007-12-22  Bruno Haible  <bruno@clisp.org>
33277
33278         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33279         two variables local_ldadd_before, local_ldadd_last.
33280
33281 2007-12-20  Eric Blake  <ebb9@byu.net>
33282
33283         Work around circular library issue when cross-compiling.
33284         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33285         that progname.o does not need to pull in rpl_memcmp.
33286
33287 2007-12-19  Eric Blake  <ebb9@byu.net>
33288
33289         Fix memmem to avoid O(n^2) worst-case complexity.
33290         * lib/memmem.c (knuth_morris_pratt): New function.
33291         (memmem): Use it if first few naive iterations fail.
33292         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33293         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33294         * modules/memchr (License): Likewise.
33295         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33296         malloca.
33297         * tests/test-memmem.c: Rewrite, borrowing ideas from
33298         test-mbsstr1.c; the old version wouldn't even compile!
33299         * modules/memmem-tests: New file.
33300         * lib/string.in.h (rpl_memmem): Add declaration.
33301         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33303         REPLACE_MEMMEM.
33304
33305 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33306
33307         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33308         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33309         before any system include files, and undef after them all.  This
33310         should fix a problem on VMS reported by John E. Malmberg in
33311         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33312
33313 2007-12-17  Eric Blake  <ebb9@byu.net>
33314
33315         Revert addition of verify, for BSD/OS.
33316         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33317         can't handle large files, for the sake of obsolete platforms.
33318         * modules/fseeko (Depends-on): Remove verify.
33319         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33320         * doc/functions/ftello.texi (ftello): Likewise.
33321         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33322         Reported by Larry Jones.
33323
33324 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33325
33326         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33327         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33328
33329 2007-12-17  Jim Meyering  <meyering@redhat.com>
33330
33331         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33332         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33333         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33334         * modules/getcwd (Depends-on): Add openat.
33335         Reported by Petr Salinger.
33336
33337 2007-12-17  Bruno Haible  <bruno@clisp.org>
33338
33339         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33340         avoid a segmentation fault of the configure test on x86_64 systems.
33341
33342 2007-12-15  Jim Meyering  <meyering@redhat.com>
33343
33344         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33345
33346 2007-12-13  Eric Blake  <ebb9@byu.net>
33347
33348         Another fseek test.
33349         * tests/test-fseek.c (main): Also test ungetc handling.
33350         * tests/test-fseeko.c (main): Likewise.
33351         * modules/fseeko (Depends-on): Add verify.
33352         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33353         large.
33354         Reported by Larry Jones.
33355
33356         Fix fseeko on mingw.
33357         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33358         seek.
33359
33360         Beef up fseek tests.
33361         * tests/test-fseek.c (main): Also test eof handling.
33362         * tests/test-fseeko.c (main): Likewise.
33363         Reported by Larry Jones.
33364
33365 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33366
33367         Fix fseeko on BSD-based platforms.
33368         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33369         successful seek.
33370
33371 2007-12-12  Eric Blake  <ebb9@byu.net>
33372
33373         Allow circular dependency of separate libtests.a
33374         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33375         when use_libtests.
33376
33377 2007-12-11  Eric Blake  <ebb9@byu.net>
33378
33379         Fix bug with -0.0L in previous patch.
33380         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33381         * tests/test-isnan.c (main): Also test on zeroes.
33382         * tests/test-isnanf.c (main): Likewise.
33383         * tests/test-isnanl.h (main): Likewise.
33384
33385         Detect pseudo-denormals on x86 even when cross-compiling.
33386         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33387         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33388         invalid bit patterns that happen to satisfy ==.
33389
33390         Avoid link failures with separate libtests.a.
33391         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33392         last, to satisfy circular dependencies.
33393
33394 2007-12-11  Eric Blake  <ebb9@byu.net>
33395         and Bruno Haible  <bruno@clisp.org>
33396
33397         Fix OpenBSD 4.0 <float.h> handling of long double.
33398         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33399         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33400         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33401
33402 2007-12-11  Jim Meyering  <meyering@redhat.com>
33403
33404         * users.txt: Add libvirt.
33405
33406         Support versions of autoconf prior to 2.59c.
33407         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33408         if it is not already defined.
33409
33410 2007-12-09  Bruno Haible  <bruno@clisp.org>
33411
33412         Let 'gnulib-tool --import' collect sources needed for the tests in
33413         tests/ rather than in lib/.
33414         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33415         argument. If true, add rules to generate libtests.a, and put libtests.a
33416         into $(LDADD). Consider source files in subdirectories and set
33417         uses_subdirs.
33418         (func_emit_initmacro_start, func_emit_initmacro_end,
33419         func_emit_initmacro_done): Pass all arguments explicitly.
33420         (func_import): Determine two module lists main_modules,
33421         testsrelated_modules. Determine use_libtests. Determine two variables
33422         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33423         instead of just sed_transform_lib_file. Determine two variables
33424         main_files and testsrelated_files. Compute 'files' as the union of
33425         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33426         func_add_or_update. In the generated gnulib-comp.m4, collect the
33427         object files for tests/ in different variables than those for lib/.
33428         Substitute LIBTESTS_LIBDEPS.
33429         (func_create_testdir): Combine the uses_subdirs results from
33430         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33431
33432 2007-12-09  Bruno Haible  <bruno@clisp.org>
33433
33434         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33435         the build-aux directory.
33436
33437 2007-12-09  Bruno Haible  <bruno@clisp.org>
33438
33439         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33440         introduced on 2006-09-09.
33441
33442 2007-12-07  Jim Meyering  <meyering@redhat.com>
33443
33444         Let these macros work also with autoconf-2.59.
33445         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33446         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33447         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33448
33449 2007-12-06  Jim Meyering  <meyering@redhat.com>
33450
33451         Avoid a configure-time syntax error in gl_FUNC_ACL.
33452         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33453         function in each branch, before testing the cache variable.
33454
33455 2007-12-04  Eric Blake  <ebb9@byu.net>
33456
33457         Make scripts executable.
33458         * build-aux/config.guess: Add execute permissions.
33459         * build-aux/config.sub: Likewise.
33460         * build-aux/gendocs.sh: Likewise.
33461
33462         Fix frexp on mingw.
33463         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33464         cross-compiling.
33465         * doc/functions/frexp.texi (frexp): Document the bug.
33466
33467         Make cygwin fseeko check more reliable.
33468         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33469         version numbers, rather than unrelated feature check.
33470         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33471         * doc/functions/ftello.texi (ftello): Likewise.
33472         Reported by Bruno Haible.
33473
33474         * m4/strerror.m4: Bump version number.
33475
33476 2007-12-03  Bruno Haible  <bruno@clisp.org>
33477
33478         * doc/functions/mprotect.texi: Mention the mingw problem.
33479
33480 2007-12-03  Eric Blake  <ebb9@byu.net>
33481
33482         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33483         REPLACE_STRERROR is initialized before this macro.
33484
33485 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33486
33487         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33488         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33489         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33490         put -lsec in even for programs other than 'ls'.  This fixes a problem
33491         for gettext reported by Bruno Haible in
33492         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33493         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33494         Add support for Solaris 10.  This isn't efficient, but should get the
33495         job done for now.
33496
33497 2007-12-03  James Youngman  <jay@gnu.org>
33498
33499         * doc/regexprops-generic.texi: change "an close-group" to "a
33500         close-group" and "illegal" to "not allowed".
33501
33502 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33503
33504         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33505         pr_byname.h. Needed for the rare case when the maintainer has done
33506         "make maintainer-clean" in the source directory and then attempts a
33507         build outside the source directory.
33508         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33509         scripts_byname.h.
33510
33511 2007-12-02  Martin Lambers <marlam@marlam.de>
33512             Bruno Haible  <bruno@clisp.org>
33513
33514         * lib/getpagesize.h: Remove file.
33515         * lib/unistd.in.h: Include declaration of getpagesize here.
33516         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33517         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33518         HAVE_SYS_PARAM_H.
33519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33520         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33521         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33522         (Depends-on): Add unistd.
33523         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33524         (Include): Use <unistd.h> instead of getpagesize.h.
33525         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33526         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33527         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33528         gl_GETPAGESIZE invocation, already handled by module dependency.
33529         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33530
33531 2007-12-02  Bruno Haible  <bruno@clisp.org>
33532
33533         * modules/strings-tests: New file.
33534         * tests/test-strings.c: New file.
33535
33536         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33537         * lib/strings.in.h: New file.
33538         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33539         * m4/strings_h.m4: New file.
33540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33541         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33542         * modules/strings: New file.
33543         * modules/string (Makefile.am): Update.
33544         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33545         Reported by Karl Berry.
33546
33547 2007-12-01  Eric Blake  <ebb9@byu.net>
33548
33549         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33550         accomodate fix in cygwin 1.5.25.
33551
33552 2007-12-01  Jim Meyering  <meyering@redhat.com>
33553
33554         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33555         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33556         that would inhibit utf8-optimization of a regexp containing line-
33557         or buffer-anchors, e.g., `^', `$'.
33558
33559 2007-11-30  Bruno Haible  <bruno@clisp.org>
33560
33561         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33562         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33563         glthread_recursive_lock_init.
33564         * lib/lock.c (glthread_recursive_lock_init)
33565         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33566         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33567
33568 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33569
33570         New function qset_acl, like set_acl but with syscall semantics.
33571         * lib/acl.h (qset_acl): New decl.
33572         * lib/acl.c (qset_acl): New function.
33573         (set_acl): Use new function.  Use more-consistent diagnostics.
33574
33575 2007-11-28  Jim Meyering  <meyering@redhat.com>
33576
33577         * modules/physmem (License): Change from GPL to LGPLv2+.
33578
33579 2007-11-26  Bruno Haible  <bruno@clisp.org>
33580
33581         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33582         'long double' type has excess precision.
33583         Reported by Jim Meyering in
33584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33585
33586 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33587
33588         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33589         Sync from <http://gnu.org/licenses>.
33590         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33591         with license text from same location.
33592         * doc/maintain.texi, doc/standards.texi:  Sync from
33593         <http://savannah.gnu.org/projects/gnustandards>.
33594
33595 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
33596         and Jim Meyering  <meyering@redhat.com>
33597
33598         Adjust getdate' grammar to accept a slightly more regular language.
33599         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33600         Before, the former was rejected.
33601         * lib/getdate.y (digits_to_date_time): New function, factored
33602         out of ...
33603         (number): ...here.  Just call digits_to_date_time.
33604         (hybrid): New non-terminal to handle an <unsigned number,
33605         signed relative offset> sequence consistently.
33606
33607 2007-11-18  Jim Meyering  <meyering@redhat.com>
33608
33609         Pull my changes from coreutils:
33610         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33611         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33612         use of $gnulib_tool_option_extras, so that it's separated from the
33613         preceding argument.
33614
33615         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33616         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33617         parent destination directories before copying a file into place.
33618
33619 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33620
33621         bootstrap: work also with 4-argument variant of AC_INIT
33622         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33623
33624 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33625
33626         Port test-getaddrinfo to Solaris.
33627         Problem reported by Bruno Haible in
33628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33629         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33630         explanation of setting 'hints'.
33631         Don't reject an implementation merely because it returns EAI_SERVICE.
33632         (EAI_SERVICE): Define to 0 if not defined.
33633
33634 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33635
33636         The license of gnu-make and posix-shell is now "GPLed build tool".
33637         * modules/gnu-make (License): Likewise.
33638         * modules/posix-shell (License): Likewise.
33639
33640         New module posix-shell, for determining a POSIX shell
33641         or perhaps something that is close enough to a POSIX shell.
33642         * m4/posix-shell.m4: New file.
33643         * modules/posix-shell: New file.
33644
33645         * MODULES.html.sh: Mention new module.
33646
33647         New module gnu-make, for determining whether we're using GNU Make.
33648         * m4/gnu-make.m4: New file.
33649         * modules/gnu-make: New file.
33650         * MODULES.html.sh: Mention new module.
33651
33652 2007-11-14  Jim Meyering  <meyering@redhat.com>
33653
33654         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33655         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33656         use this macro to create a function _definition_.
33657         Remove useless "#undef ARGMATCH_DIE".
33658
33659 2007-11-14  Bruno Haible  <bruno@clisp.org>
33660
33661         * lib/config.charset: Update for OpenBSD 4.1.
33662         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33663
33664 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33665
33666         Document 64-bit #if problems in stdint.texi.
33667         * doc/headers/stdint.texi (stdint.h): Mention problems with
33668         64-bit-#if, and how to work around them.
33669
33670         Don't insist on 'long long int' support in the preprocessor.  It
33671         breaks too many things.  For example, PRIdMAX still uses a 'long
33672         long int' format with the latest Sun compiler, even though
33673         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33674         preprocessor problem.  This causes the latest coreutils to dump
33675         core on Solaris 10 sparc with the Sun C compiler.
33676         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33677         the troublesome expressions at configure-time, not at #if-time.
33678         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33679         preprocessor.
33680         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33681         compile-time C checks, done at 'configure'-time.
33682         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33683         * modules/inttypes (Makefile): Substitute the new symbols that
33684         gl_INTTYPES_H now generates.
33685         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33686
33687 2007-11-12  Bruno Haible  <bruno@clisp.org>
33688
33689         Tests for Unicode character classification functions.
33690
33691         * modules/unictype/bidicategory-byname-tests: New file.
33692         * modules/unictype/bidicategory-name-tests: New file.
33693         * modules/unictype/bidicategory-of-tests: New file.
33694         * modules/unictype/bidicategory-test-tests: New file.
33695         * modules/unictype/block-list-tests: New file.
33696         * modules/unictype/block-of-tests: New file.
33697         * modules/unictype/block-test-tests: New file.
33698         * modules/unictype/category-C-tests: New file.
33699         * modules/unictype/category-Cc-tests: New file.
33700         * modules/unictype/category-Cf-tests: New file.
33701         * modules/unictype/category-Cn-tests: New file.
33702         * modules/unictype/category-Co-tests: New file.
33703         * modules/unictype/category-Cs-tests: New file.
33704         * modules/unictype/category-L-tests: New file.
33705         * modules/unictype/category-Ll-tests: New file.
33706         * modules/unictype/category-Lm-tests: New file.
33707         * modules/unictype/category-Lo-tests: New file.
33708         * modules/unictype/category-Lt-tests: New file.
33709         * modules/unictype/category-Lu-tests: New file.
33710         * modules/unictype/category-M-tests: New file.
33711         * modules/unictype/category-Mc-tests: New file.
33712         * modules/unictype/category-Me-tests: New file.
33713         * modules/unictype/category-Mn-tests: New file.
33714         * modules/unictype/category-N-tests: New file.
33715         * modules/unictype/category-Nd-tests: New file.
33716         * modules/unictype/category-Nl-tests: New file.
33717         * modules/unictype/category-No-tests: New file.
33718         * modules/unictype/category-P-tests: New file.
33719         * modules/unictype/category-Pc-tests: New file.
33720         * modules/unictype/category-Pd-tests: New file.
33721         * modules/unictype/category-Pe-tests: New file.
33722         * modules/unictype/category-Pf-tests: New file.
33723         * modules/unictype/category-Pi-tests: New file.
33724         * modules/unictype/category-Po-tests: New file.
33725         * modules/unictype/category-Ps-tests: New file.
33726         * modules/unictype/category-S-tests: New file.
33727         * modules/unictype/category-Sc-tests: New file.
33728         * modules/unictype/category-Sk-tests: New file.
33729         * modules/unictype/category-Sm-tests: New file.
33730         * modules/unictype/category-So-tests: New file.
33731         * modules/unictype/category-Z-tests: New file.
33732         * modules/unictype/category-Zl-tests: New file.
33733         * modules/unictype/category-Zp-tests: New file.
33734         * modules/unictype/category-Zs-tests: New file.
33735         * modules/unictype/category-and-not-tests: New file.
33736         * modules/unictype/category-and-tests: New file.
33737         * modules/unictype/category-byname-tests: New file.
33738         * modules/unictype/category-name-tests: New file.
33739         * modules/unictype/category-none-tests: New file.
33740         * modules/unictype/category-of-tests: New file.
33741         * modules/unictype/category-or-tests: New file.
33742         * modules/unictype/category-test-withtable-tests: New file.
33743         * modules/unictype/combining-class-tests: New file.
33744         * modules/unictype/ctype-alnum-tests: New file.
33745         * modules/unictype/ctype-alpha-tests: New file.
33746         * modules/unictype/ctype-blank-tests: New file.
33747         * modules/unictype/ctype-cntrl-tests: New file.
33748         * modules/unictype/ctype-digit-tests: New file.
33749         * modules/unictype/ctype-graph-tests: New file.
33750         * modules/unictype/ctype-lower-tests: New file.
33751         * modules/unictype/ctype-print-tests: New file.
33752         * modules/unictype/ctype-punct-tests: New file.
33753         * modules/unictype/ctype-space-tests: New file.
33754         * modules/unictype/ctype-upper-tests: New file.
33755         * modules/unictype/ctype-xdigit-tests: New file.
33756         * modules/unictype/decimal-digit-tests: New file.
33757         * modules/unictype/digit-tests: New file.
33758         * modules/unictype/mirror-tests: New file.
33759         * modules/unictype/numeric-tests: New file.
33760         * modules/unictype/property-alphabetic-tests: New file.
33761         * modules/unictype/property-ascii-hex-digit-tests: New file.
33762         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33763         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33764         * modules/unictype/property-bidi-block-separator-tests: New file.
33765         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33766         * modules/unictype/property-bidi-common-separator-tests: New file.
33767         * modules/unictype/property-bidi-control-tests: New file.
33768         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33769         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33770         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33771         * modules/unictype/property-bidi-european-digit-tests: New file.
33772         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33773         * modules/unictype/property-bidi-left-to-right-tests: New file.
33774         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33775         * modules/unictype/property-bidi-other-neutral-tests: New file.
33776         * modules/unictype/property-bidi-pdf-tests: New file.
33777         * modules/unictype/property-bidi-segment-separator-tests: New file.
33778         * modules/unictype/property-bidi-whitespace-tests: New file.
33779         * modules/unictype/property-byname-tests: New file.
33780         * modules/unictype/property-combining-tests: New file.
33781         * modules/unictype/property-composite-tests: New file.
33782         * modules/unictype/property-currency-symbol-tests: New file.
33783         * modules/unictype/property-dash-tests: New file.
33784         * modules/unictype/property-decimal-digit-tests: New file.
33785         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33786         * modules/unictype/property-deprecated-tests: New file.
33787         * modules/unictype/property-diacritic-tests: New file.
33788         * modules/unictype/property-extender-tests: New file.
33789         * modules/unictype/property-format-control-tests: New file.
33790         * modules/unictype/property-grapheme-base-tests: New file.
33791         * modules/unictype/property-grapheme-extend-tests: New file.
33792         * modules/unictype/property-grapheme-link-tests: New file.
33793         * modules/unictype/property-hex-digit-tests: New file.
33794         * modules/unictype/property-hyphen-tests: New file.
33795         * modules/unictype/property-id-continue-tests: New file.
33796         * modules/unictype/property-id-start-tests: New file.
33797         * modules/unictype/property-ideographic-tests: New file.
33798         * modules/unictype/property-ids-binary-operator-tests: New file.
33799         * modules/unictype/property-ids-trinary-operator-tests: New file.
33800         * modules/unictype/property-ignorable-control-tests: New file.
33801         * modules/unictype/property-iso-control-tests: New file.
33802         * modules/unictype/property-join-control-tests: New file.
33803         * modules/unictype/property-left-of-pair-tests: New file.
33804         * modules/unictype/property-line-separator-tests: New file.
33805         * modules/unictype/property-logical-order-exception-tests: New file.
33806         * modules/unictype/property-lowercase-tests: New file.
33807         * modules/unictype/property-math-tests: New file.
33808         * modules/unictype/property-non-break-tests: New file.
33809         * modules/unictype/property-not-a-character-tests: New file.
33810         * modules/unictype/property-numeric-tests: New file.
33811         * modules/unictype/property-other-alphabetic-tests: New file.
33812         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33813         * modules/unictype/property-other-grapheme-extend-tests: New file.
33814         * modules/unictype/property-other-id-continue-tests: New file.
33815         * modules/unictype/property-other-id-start-tests: New file.
33816         * modules/unictype/property-other-lowercase-tests: New file.
33817         * modules/unictype/property-other-math-tests: New file.
33818         * modules/unictype/property-other-uppercase-tests: New file.
33819         * modules/unictype/property-paired-punctuation-tests: New file.
33820         * modules/unictype/property-paragraph-separator-tests: New file.
33821         * modules/unictype/property-pattern-syntax-tests: New file.
33822         * modules/unictype/property-pattern-white-space-tests: New file.
33823         * modules/unictype/property-private-use-tests: New file.
33824         * modules/unictype/property-punctuation-tests: New file.
33825         * modules/unictype/property-quotation-mark-tests: New file.
33826         * modules/unictype/property-radical-tests: New file.
33827         * modules/unictype/property-sentence-terminal-tests: New file.
33828         * modules/unictype/property-soft-dotted-tests: New file.
33829         * modules/unictype/property-space-tests: New file.
33830         * modules/unictype/property-terminal-punctuation-tests: New file.
33831         * modules/unictype/property-test-tests: New file.
33832         * modules/unictype/property-titlecase-tests: New file.
33833         * modules/unictype/property-unassigned-code-value-tests: New file.
33834         * modules/unictype/property-unified-ideograph-tests: New file.
33835         * modules/unictype/property-uppercase-tests: New file.
33836         * modules/unictype/property-variation-selector-tests: New file.
33837         * modules/unictype/property-white-space-tests: New file.
33838         * modules/unictype/property-xid-continue-tests: New file.
33839         * modules/unictype/property-xid-start-tests: New file.
33840         * modules/unictype/property-zero-width-tests: New file.
33841         * modules/unictype/scripts-tests: New file.
33842         * modules/unictype/syntax-c-ident-tests: New file.
33843         * modules/unictype/syntax-c-whitespace-tests: New file.
33844         * modules/unictype/syntax-java-ident-tests: New file.
33845         * modules/unictype/syntax-java-whitespace-tests: New file.
33846         * tests/unictype/test-bidi_byname.c: New file.
33847         * tests/unictype/test-bidi_name.c: New file.
33848         * tests/unictype/test-bidi_of.c: New file.
33849         * tests/unictype/test-bidi_test.c: New file.
33850         * tests/unictype/test-block_list.c: New file.
33851         * tests/unictype/test-block_of.c: New file.
33852         * tests/unictype/test-block_test.c: New file.
33853         * tests/unictype/test-categ_and.c: New file.
33854         * tests/unictype/test-categ_and_not.c: New file.
33855         * tests/unictype/test-categ_byname.c: New file.
33856         * tests/unictype/test-categ_name.c: New file.
33857         * tests/unictype/test-categ_none.c: New file.
33858         * tests/unictype/test-categ_of.c: New file.
33859         * tests/unictype/test-categ_or.c: New file.
33860         * tests/unictype/test-categ_test_withtable.c: New file.
33861         * tests/unictype/test-combining.c: New file.
33862         * tests/unictype/test-decdigit.c: New file.
33863         * tests/unictype/test-digit.c: New file.
33864         * tests/unictype/test-mirror.c: New file.
33865         * tests/unictype/test-numeric.c: New file.
33866         * tests/unictype/test-pr_byname.c: New file.
33867         * tests/unictype/test-pr_test.c: New file.
33868         * tests/unictype/test-predicate-part1.h: New file.
33869         * tests/unictype/test-predicate-part2.h: New file.
33870         * tests/unictype/test-scripts.c: New file.
33871         * tests/unictype/test-sy_c_ident.c: New file.
33872         * tests/unictype/test-sy_java_ident.c: New file.
33873
33874         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
33875         for Unicode 5.0.0.
33876         * tests/unictype/test-categ_Cc.c: Likewise.
33877         * tests/unictype/test-categ_Cf.c: Likewise.
33878         * tests/unictype/test-categ_Cn.c: Likewise.
33879         * tests/unictype/test-categ_Co.c: Likewise.
33880         * tests/unictype/test-categ_Cs.c: Likewise.
33881         * tests/unictype/test-categ_L.c: Likewise.
33882         * tests/unictype/test-categ_Ll.c: Likewise.
33883         * tests/unictype/test-categ_Lm.c: Likewise.
33884         * tests/unictype/test-categ_Lo.c: Likewise.
33885         * tests/unictype/test-categ_Lt.c: Likewise.
33886         * tests/unictype/test-categ_Lu.c: Likewise.
33887         * tests/unictype/test-categ_M.c: Likewise.
33888         * tests/unictype/test-categ_Mc.c: Likewise.
33889         * tests/unictype/test-categ_Me.c: Likewise.
33890         * tests/unictype/test-categ_Mn.c: Likewise.
33891         * tests/unictype/test-categ_N.c: Likewise.
33892         * tests/unictype/test-categ_Nd.c: Likewise.
33893         * tests/unictype/test-categ_Nl.c: Likewise.
33894         * tests/unictype/test-categ_No.c: Likewise.
33895         * tests/unictype/test-categ_P.c: Likewise.
33896         * tests/unictype/test-categ_Pc.c: Likewise.
33897         * tests/unictype/test-categ_Pd.c: Likewise.
33898         * tests/unictype/test-categ_Pe.c: Likewise.
33899         * tests/unictype/test-categ_Pf.c: Likewise.
33900         * tests/unictype/test-categ_Pi.c: Likewise.
33901         * tests/unictype/test-categ_Po.c: Likewise.
33902         * tests/unictype/test-categ_Ps.c: Likewise.
33903         * tests/unictype/test-categ_S.c: Likewise.
33904         * tests/unictype/test-categ_Sc.c: Likewise.
33905         * tests/unictype/test-categ_Sk.c: Likewise.
33906         * tests/unictype/test-categ_Sm.c: Likewise.
33907         * tests/unictype/test-categ_So.c: Likewise.
33908         * tests/unictype/test-categ_Z.c: Likewise.
33909         * tests/unictype/test-categ_Zl.c: Likewise.
33910         * tests/unictype/test-categ_Zp.c: Likewise.
33911         * tests/unictype/test-categ_Zs.c: Likewise.
33912         * tests/unictype/test-ctype_alnum.c: Likewise.
33913         * tests/unictype/test-ctype_alpha.c: Likewise.
33914         * tests/unictype/test-ctype_blank.c: Likewise.
33915         * tests/unictype/test-ctype_cntrl.c: Likewise.
33916         * tests/unictype/test-ctype_digit.c: Likewise.
33917         * tests/unictype/test-ctype_graph.c: Likewise.
33918         * tests/unictype/test-ctype_lower.c: Likewise.
33919         * tests/unictype/test-ctype_print.c: Likewise.
33920         * tests/unictype/test-ctype_punct.c: Likewise.
33921         * tests/unictype/test-ctype_space.c: Likewise.
33922         * tests/unictype/test-ctype_upper.c: Likewise.
33923         * tests/unictype/test-ctype_xdigit.c: Likewise.
33924         * tests/unictype/test-decdigit.h: Likewise.
33925         * tests/unictype/test-digit.h: Likewise.
33926         * tests/unictype/test-numeric.h: Likewise.
33927         * tests/unictype/test-pr_alphabetic.c: Likewise.
33928         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
33929         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
33930         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
33931         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
33932         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
33933         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
33934         * tests/unictype/test-pr_bidi_control.c: Likewise.
33935         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
33936         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
33937         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
33938         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
33939         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
33940         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
33941         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
33942         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
33943         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
33944         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
33945         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
33946         * tests/unictype/test-pr_combining.c: Likewise.
33947         * tests/unictype/test-pr_composite.c: Likewise.
33948         * tests/unictype/test-pr_currency_symbol.c: Likewise.
33949         * tests/unictype/test-pr_dash.c: Likewise.
33950         * tests/unictype/test-pr_decimal_digit.c: Likewise.
33951         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
33952         * tests/unictype/test-pr_deprecated.c: Likewise.
33953         * tests/unictype/test-pr_diacritic.c: Likewise.
33954         * tests/unictype/test-pr_extender.c: Likewise.
33955         * tests/unictype/test-pr_format_control.c: Likewise.
33956         * tests/unictype/test-pr_grapheme_base.c: Likewise.
33957         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
33958         * tests/unictype/test-pr_grapheme_link.c: Likewise.
33959         * tests/unictype/test-pr_hex_digit.c: Likewise.
33960         * tests/unictype/test-pr_hyphen.c: Likewise.
33961         * tests/unictype/test-pr_id_continue.c: Likewise.
33962         * tests/unictype/test-pr_id_start.c: Likewise.
33963         * tests/unictype/test-pr_ideographic.c: Likewise.
33964         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
33965         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
33966         * tests/unictype/test-pr_ignorable_control.c: Likewise.
33967         * tests/unictype/test-pr_iso_control.c: Likewise.
33968         * tests/unictype/test-pr_join_control.c: Likewise.
33969         * tests/unictype/test-pr_left_of_pair.c: Likewise.
33970         * tests/unictype/test-pr_line_separator.c: Likewise.
33971         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
33972         * tests/unictype/test-pr_lowercase.c: Likewise.
33973         * tests/unictype/test-pr_math.c: Likewise.
33974         * tests/unictype/test-pr_non_break.c: Likewise.
33975         * tests/unictype/test-pr_not_a_character.c: Likewise.
33976         * tests/unictype/test-pr_numeric.c: Likewise.
33977         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
33978         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
33979         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
33980         * tests/unictype/test-pr_other_id_continue.c: Likewise.
33981         * tests/unictype/test-pr_other_id_start.c: Likewise.
33982         * tests/unictype/test-pr_other_lowercase.c: Likewise.
33983         * tests/unictype/test-pr_other_math.c: Likewise.
33984         * tests/unictype/test-pr_other_uppercase.c: Likewise.
33985         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
33986         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
33987         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
33988         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
33989         * tests/unictype/test-pr_private_use.c: Likewise.
33990         * tests/unictype/test-pr_punctuation.c: Likewise.
33991         * tests/unictype/test-pr_quotation_mark.c: Likewise.
33992         * tests/unictype/test-pr_radical.c: Likewise.
33993         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
33994         * tests/unictype/test-pr_soft_dotted.c: Likewise.
33995         * tests/unictype/test-pr_space.c: Likewise.
33996         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
33997         * tests/unictype/test-pr_titlecase.c: Likewise.
33998         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
33999         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
34000         * tests/unictype/test-pr_uppercase.c: Likewise.
34001         * tests/unictype/test-pr_variation_selector.c: Likewise.
34002         * tests/unictype/test-pr_white_space.c: Likewise.
34003         * tests/unictype/test-pr_xid_continue.c: Likewise.
34004         * tests/unictype/test-pr_xid_start.c: Likewise.
34005         * tests/unictype/test-pr_zero_width.c: Likewise.
34006         * tests/unictype/test-sy_c_whitespace.c: Likewise.
34007         * tests/unictype/test-sy_java_whitespace.c: Likewise.
34008
34009 2007-11-12  Bruno Haible  <bruno@clisp.org>
34010
34011         Unicode character classification functions.
34012         * lib/unictype.h: New file.
34013         * modules/unictype/base: New file.
34014         * modules/unictype/category-L: New file.
34015         * modules/unictype/category-Lu: New file.
34016         * modules/unictype/category-Ll: New file.
34017         * modules/unictype/category-Lt: New file.
34018         * modules/unictype/category-Lm: New file.
34019         * modules/unictype/category-Lo: New file.
34020         * modules/unictype/category-M: New file.
34021         * modules/unictype/category-Mn: New file.
34022         * modules/unictype/category-Mc: New file.
34023         * modules/unictype/category-Me: New file.
34024         * modules/unictype/category-N: New file.
34025         * modules/unictype/category-Nd: New file.
34026         * modules/unictype/category-Nl: New file.
34027         * modules/unictype/category-No: New file.
34028         * modules/unictype/category-P: New file.
34029         * modules/unictype/category-Pc: New file.
34030         * modules/unictype/category-Pd: New file.
34031         * modules/unictype/category-Ps: New file.
34032         * modules/unictype/category-Pe: New file.
34033         * modules/unictype/category-Pi: New file.
34034         * modules/unictype/category-Pf: New file.
34035         * modules/unictype/category-Po: New file.
34036         * modules/unictype/category-S: New file.
34037         * modules/unictype/category-Sm: New file.
34038         * modules/unictype/category-Sc: New file.
34039         * modules/unictype/category-Sk: New file.
34040         * modules/unictype/category-So: New file.
34041         * modules/unictype/category-Z: New file.
34042         * modules/unictype/category-Zs: New file.
34043         * modules/unictype/category-Zl: New file.
34044         * modules/unictype/category-Zp: New file.
34045         * modules/unictype/category-C: New file.
34046         * modules/unictype/category-Cc: New file.
34047         * modules/unictype/category-Cf: New file.
34048         * modules/unictype/category-Cs: New file.
34049         * modules/unictype/category-Co: New file.
34050         * modules/unictype/category-Cn: New file.
34051         * modules/unictype/category-or: New file.
34052         * modules/unictype/category-of: New file.
34053         * modules/unictype/category-test: New file.
34054         * modules/unictype/category-test-withtable: New file.
34055         * modules/unictype/category-byname: New file.
34056         * modules/unictype/category-none: New file.
34057         * modules/unictype/category-and: New file.
34058         * modules/unictype/category-and-not: New file.
34059         * modules/unictype/category-name: New file.
34060         * modules/unictype/combining-class: New file.
34061         * modules/unictype/category-all: New file.
34062         * modules/unictype/bidicategory-all: New file.
34063         * modules/unictype/bidicategory-byname: New file.
34064         * modules/unictype/bidicategory-name: New file.
34065         * modules/unictype/bidicategory-of: New file.
34066         * modules/unictype/bidicategory-test: New file.
34067         * modules/unictype/decimal-digit: New file.
34068         * modules/unictype/digit: New file.
34069         * modules/unictype/numeric: New file.
34070         * modules/unictype/mirror: New file.
34071         * modules/unictype/property-white-space: New file.
34072         * modules/unictype/property-alphabetic: New file.
34073         * modules/unictype/property-other-alphabetic: New file.
34074         * modules/unictype/property-not-a-character: New file.
34075         * modules/unictype/property-default-ignorable-code-point: New file.
34076         * modules/unictype/property-other-default-ignorable-code-point: New
34077         file.
34078         * modules/unictype/property-deprecated: New file.
34079         * modules/unictype/property-logical-order-exception: New file.
34080         * modules/unictype/property-variation-selector: New file.
34081         * modules/unictype/property-private-use: New file.
34082         * modules/unictype/property-unassigned-code-value: New file.
34083         * modules/unictype/property-uppercase: New file.
34084         * modules/unictype/property-other-uppercase: New file.
34085         * modules/unictype/property-lowercase: New file.
34086         * modules/unictype/property-other-lowercase: New file.
34087         * modules/unictype/property-titlecase: New file.
34088         * modules/unictype/property-soft-dotted: New file.
34089         * modules/unictype/property-id-start: New file.
34090         * modules/unictype/property-other-id-start: New file.
34091         * modules/unictype/property-id-continue: New file.
34092         * modules/unictype/property-other-id-continue: New file.
34093         * modules/unictype/property-xid-start: New file.
34094         * modules/unictype/property-xid-continue: New file.
34095         * modules/unictype/property-pattern-white-space: New file.
34096         * modules/unictype/property-pattern-syntax: New file.
34097         * modules/unictype/property-join-control: New file.
34098         * modules/unictype/property-grapheme-base: New file.
34099         * modules/unictype/property-grapheme-extend: New file.
34100         * modules/unictype/property-other-grapheme-extend: New file.
34101         * modules/unictype/property-grapheme-link: New file.
34102         * modules/unictype/property-bidi-control: New file.
34103         * modules/unictype/property-bidi-left-to-right: New file.
34104         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
34105         * modules/unictype/property-bidi-arabic-right-to-left: New file.
34106         * modules/unictype/property-bidi-european-digit: New file.
34107         * modules/unictype/property-bidi-eur-num-separator: New file.
34108         * modules/unictype/property-bidi-eur-num-terminator: New file.
34109         * modules/unictype/property-bidi-arabic-digit: New file.
34110         * modules/unictype/property-bidi-common-separator: New file.
34111         * modules/unictype/property-bidi-block-separator: New file.
34112         * modules/unictype/property-bidi-segment-separator: New file.
34113         * modules/unictype/property-bidi-whitespace: New file.
34114         * modules/unictype/property-bidi-non-spacing-mark: New file.
34115         * modules/unictype/property-bidi-boundary-neutral: New file.
34116         * modules/unictype/property-bidi-pdf: New file.
34117         * modules/unictype/property-bidi-embedding-or-override: New file.
34118         * modules/unictype/property-bidi-other-neutral: New file.
34119         * modules/unictype/property-hex-digit: New file.
34120         * modules/unictype/property-ascii-hex-digit: New file.
34121         * modules/unictype/property-ideographic: New file.
34122         * modules/unictype/property-unified-ideograph: New file.
34123         * modules/unictype/property-radical: New file.
34124         * modules/unictype/property-ids-binary-operator: New file.
34125         * modules/unictype/property-ids-trinary-operator: New file.
34126         * modules/unictype/property-zero-width: New file.
34127         * modules/unictype/property-space: New file.
34128         * modules/unictype/property-non-break: New file.
34129         * modules/unictype/property-iso-control: New file.
34130         * modules/unictype/property-format-control: New file.
34131         * modules/unictype/property-dash: New file.
34132         * modules/unictype/property-hyphen: New file.
34133         * modules/unictype/property-punctuation: New file.
34134         * modules/unictype/property-line-separator: New file.
34135         * modules/unictype/property-paragraph-separator: New file.
34136         * modules/unictype/property-quotation-mark: New file.
34137         * modules/unictype/property-sentence-terminal: New file.
34138         * modules/unictype/property-terminal-punctuation: New file.
34139         * modules/unictype/property-currency-symbol: New file.
34140         * modules/unictype/property-math: New file.
34141         * modules/unictype/property-other-math: New file.
34142         * modules/unictype/property-paired-punctuation: New file.
34143         * modules/unictype/property-left-of-pair: New file.
34144         * modules/unictype/property-combining: New file.
34145         * modules/unictype/property-composite: New file.
34146         * modules/unictype/property-decimal-digit: New file.
34147         * modules/unictype/property-numeric: New file.
34148         * modules/unictype/property-diacritic: New file.
34149         * modules/unictype/property-extender: New file.
34150         * modules/unictype/property-ignorable-control: New file.
34151         * modules/unictype/property-test: New file.
34152         * modules/unictype/property-byname: New file.
34153         * modules/unictype/property-all: New file.
34154         * modules/unictype/scripts: New file.
34155         * modules/unictype/scripts-all: New file.
34156         * modules/unictype/block-of: New file.
34157         * modules/unictype/block-test: New file.
34158         * modules/unictype/block-list: New file.
34159         * modules/unictype/block-all: New file.
34160         * modules/unictype/syntax-c-whitespace: New file.
34161         * modules/unictype/syntax-java-whitespace: New file.
34162         * modules/unictype/syntax-c-ident: New file.
34163         * modules/unictype/syntax-java-ident: New file.
34164         * modules/unictype/ctype-alnum: New file.
34165         * modules/unictype/ctype-alpha: New file.
34166         * modules/unictype/ctype-cntrl: New file.
34167         * modules/unictype/ctype-digit: New file.
34168         * modules/unictype/ctype-graph: New file.
34169         * modules/unictype/ctype-lower: New file.
34170         * modules/unictype/ctype-print: New file.
34171         * modules/unictype/ctype-punct: New file.
34172         * modules/unictype/ctype-space: New file.
34173         * modules/unictype/ctype-upper: New file.
34174         * modules/unictype/ctype-xdigit: New file.
34175         * modules/unictype/ctype-blank: New file.
34176         * lib/unictype/bidi_byname.c: New file.
34177         * lib/unictype/bidi_name.c: New file.
34178         * lib/unictype/bidi_of.c: New file.
34179         * lib/unictype/bidi_test.c: New file.
34180         * lib/unictype/bitmap.h: New file.
34181         * lib/unictype/block_test.c: New file.
34182         * lib/unictype/blocks.c: New file.
34183         * lib/unictype/categ_C.c: New file.
34184         * lib/unictype/categ_Cc.c: New file.
34185         * lib/unictype/categ_Cf.c: New file.
34186         * lib/unictype/categ_Cn.c: New file.
34187         * lib/unictype/categ_Co.c: New file.
34188         * lib/unictype/categ_Cs.c: New file.
34189         * lib/unictype/categ_L.c: New file.
34190         * lib/unictype/categ_Ll.c: New file.
34191         * lib/unictype/categ_Lm.c: New file.
34192         * lib/unictype/categ_Lo.c: New file.
34193         * lib/unictype/categ_Lt.c: New file.
34194         * lib/unictype/categ_Lu.c: New file.
34195         * lib/unictype/categ_M.c: New file.
34196         * lib/unictype/categ_Mc.c: New file.
34197         * lib/unictype/categ_Me.c: New file.
34198         * lib/unictype/categ_Mn.c: New file.
34199         * lib/unictype/categ_N.c: New file.
34200         * lib/unictype/categ_Nd.c: New file.
34201         * lib/unictype/categ_Nl.c: New file.
34202         * lib/unictype/categ_No.c: New file.
34203         * lib/unictype/categ_P.c: New file.
34204         * lib/unictype/categ_Pc.c: New file.
34205         * lib/unictype/categ_Pd.c: New file.
34206         * lib/unictype/categ_Pe.c: New file.
34207         * lib/unictype/categ_Pf.c: New file.
34208         * lib/unictype/categ_Pi.c: New file.
34209         * lib/unictype/categ_Po.c: New file.
34210         * lib/unictype/categ_Ps.c: New file.
34211         * lib/unictype/categ_S.c: New file.
34212         * lib/unictype/categ_Sc.c: New file.
34213         * lib/unictype/categ_Sk.c: New file.
34214         * lib/unictype/categ_Sm.c: New file.
34215         * lib/unictype/categ_So.c: New file.
34216         * lib/unictype/categ_Z.c: New file.
34217         * lib/unictype/categ_Zl.c: New file.
34218         * lib/unictype/categ_Zp.c: New file.
34219         * lib/unictype/categ_Zs.c: New file.
34220         * lib/unictype/categ_and.c: New file.
34221         * lib/unictype/categ_and_not.c: New file.
34222         * lib/unictype/categ_byname.c: New file.
34223         * lib/unictype/categ_name.c: New file.
34224         * lib/unictype/categ_none.c: New file.
34225         * lib/unictype/categ_of.c: New file.
34226         * lib/unictype/categ_or.c: New file.
34227         * lib/unictype/categ_test.c: New file.
34228         * lib/unictype/combining.c: New file.
34229         * lib/unictype/ctype_alnum.c: New file.
34230         * lib/unictype/ctype_alpha.c: New file.
34231         * lib/unictype/ctype_blank.c: New file.
34232         * lib/unictype/ctype_cntrl.c: New file.
34233         * lib/unictype/ctype_digit.c: New file.
34234         * lib/unictype/ctype_graph.c: New file.
34235         * lib/unictype/ctype_lower.c: New file.
34236         * lib/unictype/ctype_print.c: New file.
34237         * lib/unictype/ctype_punct.c: New file.
34238         * lib/unictype/ctype_space.c: New file.
34239         * lib/unictype/ctype_upper.c: New file.
34240         * lib/unictype/ctype_xdigit.c: New file.
34241         * lib/unictype/decdigit.c: New file.
34242         * lib/unictype/digit.c: New file.
34243         * lib/unictype/identsyntaxmap.h: New file.
34244         * lib/unictype/mirror.c: New file.
34245         * lib/unictype/numeric.c: New file.
34246         * lib/unictype/pr_alphabetic.c: New file.
34247         * lib/unictype/pr_ascii_hex_digit.c: New file.
34248         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34249         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34250         * lib/unictype/pr_bidi_block_separator.c: New file.
34251         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34252         * lib/unictype/pr_bidi_common_separator.c: New file.
34253         * lib/unictype/pr_bidi_control.c: New file.
34254         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34255         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34256         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34257         * lib/unictype/pr_bidi_european_digit.c: New file.
34258         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34259         * lib/unictype/pr_bidi_left_to_right.c: New file.
34260         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34261         * lib/unictype/pr_bidi_other_neutral.c: New file.
34262         * lib/unictype/pr_bidi_pdf.c: New file.
34263         * lib/unictype/pr_bidi_segment_separator.c: New file.
34264         * lib/unictype/pr_bidi_whitespace.c: New file.
34265         * lib/unictype/pr_byname.c: New file.
34266         * lib/unictype/pr_byname.gperf: New file.
34267         * lib/unictype/pr_combining.c: New file.
34268         * lib/unictype/pr_composite.c: New file.
34269         * lib/unictype/pr_currency_symbol.c: New file.
34270         * lib/unictype/pr_dash.c: New file.
34271         * lib/unictype/pr_decimal_digit.c: New file.
34272         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34273         * lib/unictype/pr_deprecated.c: New file.
34274         * lib/unictype/pr_diacritic.c: New file.
34275         * lib/unictype/pr_extender.c: New file.
34276         * lib/unictype/pr_format_control.c: New file.
34277         * lib/unictype/pr_grapheme_base.c: New file.
34278         * lib/unictype/pr_grapheme_extend.c: New file.
34279         * lib/unictype/pr_grapheme_link.c: New file.
34280         * lib/unictype/pr_hex_digit.c: New file.
34281         * lib/unictype/pr_hyphen.c: New file.
34282         * lib/unictype/pr_id_continue.c: New file.
34283         * lib/unictype/pr_id_start.c: New file.
34284         * lib/unictype/pr_ideographic.c: New file.
34285         * lib/unictype/pr_ids_binary_operator.c: New file.
34286         * lib/unictype/pr_ids_trinary_operator.c: New file.
34287         * lib/unictype/pr_ignorable_control.c: New file.
34288         * lib/unictype/pr_iso_control.c: New file.
34289         * lib/unictype/pr_join_control.c: New file.
34290         * lib/unictype/pr_left_of_pair.c: New file.
34291         * lib/unictype/pr_line_separator.c: New file.
34292         * lib/unictype/pr_logical_order_exception.c: New file.
34293         * lib/unictype/pr_lowercase.c: New file.
34294         * lib/unictype/pr_math.c: New file.
34295         * lib/unictype/pr_non_break.c: New file.
34296         * lib/unictype/pr_not_a_character.c: New file.
34297         * lib/unictype/pr_numeric.c: New file.
34298         * lib/unictype/pr_other_alphabetic.c: New file.
34299         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34300         * lib/unictype/pr_other_grapheme_extend.c: New file.
34301         * lib/unictype/pr_other_id_continue.c: New file.
34302         * lib/unictype/pr_other_id_start.c: New file.
34303         * lib/unictype/pr_other_lowercase.c: New file.
34304         * lib/unictype/pr_other_math.c: New file.
34305         * lib/unictype/pr_other_uppercase.c: New file.
34306         * lib/unictype/pr_paired_punctuation.c: New file.
34307         * lib/unictype/pr_paragraph_separator.c: New file.
34308         * lib/unictype/pr_pattern_syntax.c: New file.
34309         * lib/unictype/pr_pattern_white_space.c: New file.
34310         * lib/unictype/pr_private_use.c: New file.
34311         * lib/unictype/pr_punctuation.c: New file.
34312         * lib/unictype/pr_quotation_mark.c: New file.
34313         * lib/unictype/pr_radical.c: New file.
34314         * lib/unictype/pr_sentence_terminal.c: New file.
34315         * lib/unictype/pr_soft_dotted.c: New file.
34316         * lib/unictype/pr_space.c: New file.
34317         * lib/unictype/pr_terminal_punctuation.c: New file.
34318         * lib/unictype/pr_test.c: New file.
34319         * lib/unictype/pr_titlecase.c: New file.
34320         * lib/unictype/pr_unassigned_code_value.c: New file.
34321         * lib/unictype/pr_unified_ideograph.c: New file.
34322         * lib/unictype/pr_uppercase.c: New file.
34323         * lib/unictype/pr_variation_selector.c: New file.
34324         * lib/unictype/pr_white_space.c: New file.
34325         * lib/unictype/pr_xid_continue.c: New file.
34326         * lib/unictype/pr_xid_start.c: New file.
34327         * lib/unictype/pr_zero_width.c: New file.
34328         * lib/unictype/scripts.c: New file.
34329         * lib/unictype/sy_c_ident.c: New file.
34330         * lib/unictype/sy_c_whitespace.c: New file.
34331         * lib/unictype/sy_java_ident.c: New file.
34332         * lib/unictype/sy_java_whitespace.c: New file.
34333
34334         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34335         Unicode 5.0.0.
34336         * lib/unictype/blocks.h: Likewise.
34337         * lib/unictype/categ_C.h: Likewise.
34338         * lib/unictype/categ_Cc.h: Likewise.
34339         * lib/unictype/categ_Cf.h: Likewise.
34340         * lib/unictype/categ_Cn.h: Likewise.
34341         * lib/unictype/categ_Co.h: Likewise.
34342         * lib/unictype/categ_Cs.h: Likewise.
34343         * lib/unictype/categ_L.h: Likewise.
34344         * lib/unictype/categ_Ll.h: Likewise.
34345         * lib/unictype/categ_Lm.h: Likewise.
34346         * lib/unictype/categ_Lo.h: Likewise.
34347         * lib/unictype/categ_Lt.h: Likewise.
34348         * lib/unictype/categ_Lu.h: Likewise.
34349         * lib/unictype/categ_M.h: Likewise.
34350         * lib/unictype/categ_Mc.h: Likewise.
34351         * lib/unictype/categ_Me.h: Likewise.
34352         * lib/unictype/categ_Mn.h: Likewise.
34353         * lib/unictype/categ_N.h: Likewise.
34354         * lib/unictype/categ_Nd.h: Likewise.
34355         * lib/unictype/categ_Nl.h: Likewise.
34356         * lib/unictype/categ_No.h: Likewise.
34357         * lib/unictype/categ_P.h: Likewise.
34358         * lib/unictype/categ_Pc.h: Likewise.
34359         * lib/unictype/categ_Pd.h: Likewise.
34360         * lib/unictype/categ_Pe.h: Likewise.
34361         * lib/unictype/categ_Pf.h: Likewise.
34362         * lib/unictype/categ_Pi.h: Likewise.
34363         * lib/unictype/categ_Po.h: Likewise.
34364         * lib/unictype/categ_Ps.h: Likewise.
34365         * lib/unictype/categ_S.h: Likewise.
34366         * lib/unictype/categ_Sc.h: Likewise.
34367         * lib/unictype/categ_Sk.h: Likewise.
34368         * lib/unictype/categ_Sm.h: Likewise.
34369         * lib/unictype/categ_So.h: Likewise.
34370         * lib/unictype/categ_Z.h: Likewise.
34371         * lib/unictype/categ_Zl.h: Likewise.
34372         * lib/unictype/categ_Zp.h: Likewise.
34373         * lib/unictype/categ_Zs.h: Likewise.
34374         * lib/unictype/categ_of.h: Likewise.
34375         * lib/unictype/combining.h: Likewise.
34376         * lib/unictype/ctype_alnum.h: Likewise.
34377         * lib/unictype/ctype_alpha.h: Likewise.
34378         * lib/unictype/ctype_blank.h: Likewise.
34379         * lib/unictype/ctype_cntrl.h: Likewise.
34380         * lib/unictype/ctype_digit.h: Likewise.
34381         * lib/unictype/ctype_graph.h: Likewise.
34382         * lib/unictype/ctype_lower.h: Likewise.
34383         * lib/unictype/ctype_print.h: Likewise.
34384         * lib/unictype/ctype_punct.h: Likewise.
34385         * lib/unictype/ctype_space.h: Likewise.
34386         * lib/unictype/ctype_upper.h: Likewise.
34387         * lib/unictype/ctype_xdigit.h: Likewise.
34388         * lib/unictype/decdigit.h: Likewise.
34389         * lib/unictype/digit.h: Likewise.
34390         * lib/unictype/mirror.h: Likewise.
34391         * lib/unictype/numeric.h: Likewise.
34392         * lib/unictype/pr_alphabetic.h: Likewise.
34393         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34394         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34395         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34396         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34397         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34398         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34399         * lib/unictype/pr_bidi_control.h: Likewise.
34400         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34401         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34402         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34403         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34404         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34405         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34406         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34407         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34408         * lib/unictype/pr_bidi_pdf.h: Likewise.
34409         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34410         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34411         * lib/unictype/pr_combining.h: Likewise.
34412         * lib/unictype/pr_composite.h: Likewise.
34413         * lib/unictype/pr_currency_symbol.h: Likewise.
34414         * lib/unictype/pr_dash.h: Likewise.
34415         * lib/unictype/pr_decimal_digit.h: Likewise.
34416         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34417         * lib/unictype/pr_deprecated.h: Likewise.
34418         * lib/unictype/pr_diacritic.h: Likewise.
34419         * lib/unictype/pr_extender.h: Likewise.
34420         * lib/unictype/pr_format_control.h: Likewise.
34421         * lib/unictype/pr_grapheme_base.h: Likewise.
34422         * lib/unictype/pr_grapheme_extend.h: Likewise.
34423         * lib/unictype/pr_grapheme_link.h: Likewise.
34424         * lib/unictype/pr_hex_digit.h: Likewise.
34425         * lib/unictype/pr_hyphen.h: Likewise.
34426         * lib/unictype/pr_id_continue.h: Likewise.
34427         * lib/unictype/pr_id_start.h: Likewise.
34428         * lib/unictype/pr_ideographic.h: Likewise.
34429         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34430         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34431         * lib/unictype/pr_ignorable_control.h: Likewise.
34432         * lib/unictype/pr_iso_control.h: Likewise.
34433         * lib/unictype/pr_join_control.h: Likewise.
34434         * lib/unictype/pr_left_of_pair.h: Likewise.
34435         * lib/unictype/pr_line_separator.h: Likewise.
34436         * lib/unictype/pr_logical_order_exception.h: Likewise.
34437         * lib/unictype/pr_lowercase.h: Likewise.
34438         * lib/unictype/pr_math.h: Likewise.
34439         * lib/unictype/pr_non_break.h: Likewise.
34440         * lib/unictype/pr_not_a_character.h: Likewise.
34441         * lib/unictype/pr_numeric.h: Likewise.
34442         * lib/unictype/pr_other_alphabetic.h: Likewise.
34443         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34444         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34445         * lib/unictype/pr_other_id_continue.h: Likewise.
34446         * lib/unictype/pr_other_id_start.h: Likewise.
34447         * lib/unictype/pr_other_lowercase.h: Likewise.
34448         * lib/unictype/pr_other_math.h: Likewise.
34449         * lib/unictype/pr_other_uppercase.h: Likewise.
34450         * lib/unictype/pr_paired_punctuation.h: Likewise.
34451         * lib/unictype/pr_paragraph_separator.h: Likewise.
34452         * lib/unictype/pr_pattern_syntax.h: Likewise.
34453         * lib/unictype/pr_pattern_white_space.h: Likewise.
34454         * lib/unictype/pr_private_use.h: Likewise.
34455         * lib/unictype/pr_punctuation.h: Likewise.
34456         * lib/unictype/pr_quotation_mark.h: Likewise.
34457         * lib/unictype/pr_radical.h: Likewise.
34458         * lib/unictype/pr_sentence_terminal.h: Likewise.
34459         * lib/unictype/pr_soft_dotted.h: Likewise.
34460         * lib/unictype/pr_space.h: Likewise.
34461         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34462         * lib/unictype/pr_titlecase.h: Likewise.
34463         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34464         * lib/unictype/pr_unified_ideograph.h: Likewise.
34465         * lib/unictype/pr_uppercase.h: Likewise.
34466         * lib/unictype/pr_variation_selector.h: Likewise.
34467         * lib/unictype/pr_white_space.h: Likewise.
34468         * lib/unictype/pr_xid_continue.h: Likewise.
34469         * lib/unictype/pr_xid_start.h: Likewise.
34470         * lib/unictype/pr_zero_width.h: Likewise.
34471         * lib/unictype/scripts.h: Likewise.
34472         * lib/unictype/scripts_byname.gperf: Likewise.
34473         * lib/unictype/sy_c_ident.h: Likewise.
34474         * lib/unictype/sy_c_whitespace.h: Likewise.
34475         * lib/unictype/sy_java_ident.h: Likewise.
34476         * lib/unictype/sy_java_whitespace.h: Likewise.
34477
34478         * lib/unictype/Makefile: New file.
34479         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34480         glibc.
34481         * lib/unictype/3level.h: New file, copied from glibc.
34482         * lib/unictype/3levelbit.h: New file.
34483
34484 2007-11-11  Bruno Haible  <bruno@clisp.org>
34485
34486         * modules/gperf: New file.
34487         * modules/iconv_open (Depends-on): Add it.
34488         (Makefile.am): Remove the GPERF definition.
34489
34490 2007-11-11  Bruno Haible  <bruno@clisp.org>
34491
34492         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34493         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34494
34495 2007-11-11  Bruno Haible  <bruno@clisp.org>
34496
34497         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34498         (usage): Remove function.
34499
34500 2007-11-11  Bruno Haible  <bruno@clisp.org>
34501
34502         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34503         gl_FUNC_CEILF_LIBS.
34504         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34505         gl_FUNC_CEIL_LIBS.
34506         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34507         gl_FUNC_CEILL_LIBS.
34508         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34509         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34510         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34511
34512 2007-11-11  Bruno Haible  <bruno@clisp.org>
34513
34514         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34515         roundf were declared but do not exist on functions.
34516         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34517         roundl were declared but do not exist on functions.
34518         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34519         HAVE_FLOORL_AND_CEILL, respectively.
34520         Needed for Sun C on Solaris 10.
34521
34522 2007-11-11  Bruno Haible  <bruno@clisp.org>
34523
34524         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34525         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34526         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34527         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34528         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34529         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34530         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34531         HAVE_DECL_ROUNDF.
34532         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34533         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34535         of HAVE_DECL_ROUND*.
34536         * modules/math (Makefile.am): Update.
34537
34538 2007-11-10  Bruno Haible  <bruno@clisp.org>
34539
34540         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34541         ptrdiff_t as m4/intl.m4.
34542
34543 2007-11-10  Jim Meyering  <meyering@redhat.com>
34544
34545         Avoid link failure for the argmatch test.
34546         * tests/test-argmatch.c (usage): Define function to avoid a link
34547         failure: argmatch_die requires a usage function.
34548
34549 2007-11-09  Bruno Haible  <bruno@clisp.org>
34550
34551         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34552         * doc/functions/vsnprintf.texi: Likewise.
34553         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34554         with a size argument < 2.
34555
34556 2007-11-09  Bruno Haible  <bruno@clisp.org>
34557
34558         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34559         buffer. Fixes an inefficiency introduced on 2007-11-03.
34560
34561 2007-11-09  Bruno Haible  <bruno@clisp.org>
34562
34563         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34564         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34565
34566 2007-11-08  Jim Meyering  <meyering@redhat.com>
34567
34568         Change cache variable name prefix "jm_" to "gl_" everywhere.
34569         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34570         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34571         * m4/uptime.m4: s/gl_/jm_/
34572
34573 2007-11-07  Bruno Haible  <bruno@clisp.org>
34574
34575         Update to GNU gettext 0.17.
34576         * m4/intl.m4: Update to GNU gettext 0.17.
34577         * m4/po.m4: Likewise.
34578         * modules/gettext (Files): Remove m4/ulonglong.m4.
34579         (configure.ac): Require gettext infrastructure from version 0.17.
34580
34581 2007-11-06  Bruno Haible  <bruno@clisp.org>
34582
34583         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34584         symbolic values are not defined in a public header.
34585         * lib/freadable.c (freadable) [QNX]: Likewise.
34586         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34587         * lib/freading.c (freading) [QNX]: Likewise.
34588         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34589         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34590         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34591         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34592         Reported by Alain Magloire.
34593
34594         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34595
34596 2007-11-05  Bruno Haible  <bruno@clisp.org>
34597
34598         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34599         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34600         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34601         Reported by Eric Blake.
34602
34603 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34604             Bruno Haible  <bruno@clisp.org>
34605
34606         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34607         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34608         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34609         (malloc): Undefine also before including <stdlib.h>.
34610         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34611         Needed on OSF/1 4.0.
34612
34613 2007-11-05  Jim Meyering  <meyering@redhat.com>
34614
34615         git-version-gen: sync from coreutils.
34616         * build-aux/git-version-gen: Add comments.
34617         Change the first '-' to '.' in the snapshot version string,
34618         e.g., 6.9-377-08144 -> 6.9.377-08144
34619         Remove first parameter.
34620         Don't declare a version "-dirty" merely because a time
34621         stamp has changed.
34622
34623 2007-11-04  Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/lock.h: Protect all macro definitions containing an 'if'
34626         statement through a "do { ... } while (0)".
34627         * lib/tls.h: Likewise.
34628
34629 2007-11-04  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34632
34633 2007-11-04  Bruno Haible  <bruno@clisp.org>
34634
34635         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34636         * modules/fprintf-posix (Depends-on): Add nocrash.
34637         * modules/snprintf-posix (Depends-on): Likewise.
34638         * modules/sprintf-posix (Depends-on): Likewise.
34639         * modules/vasnprintf-posix (Depends-on): Likewise.
34640         * modules/vasprintf-posix (Depends-on): Likewise.
34641         * modules/vfprintf-posix (Depends-on): Likewise.
34642         * modules/vsnprintf-posix (Depends-on): Likewise.
34643         * modules/vsprintf-posix (Depends-on): Likewise.
34644         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34645         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34646         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34647         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34648         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34649         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34650         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34651
34652 2007-11-04  Bruno Haible  <bruno@clisp.org>
34653
34654         * modules/nocrash: New file.
34655         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34656         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34657
34658 2007-11-04  Bruno Haible  <bruno@clisp.org>
34659
34660         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34661         precision handling.
34662         * tests/test-vasprintf-posix.c (test_function): Likewise.
34663         * tests/test-snprintf-posix.h (test_function): Likewise.
34664         * tests/test-sprintf-posix.h (test_function): Likewise.
34665
34666         Fix *printf behaviour for large precisions on mingw and BeOS.
34667         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34668         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34670         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34671         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34672         gl_PRINTF_PRECISION and test its result. Invoke
34673         gl_PREREQ_VASNPRINTF_PRECISION.
34674         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34675         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34676         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34677         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34678         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34679         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34680         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34681         * doc/functions/fprintf.texi: Update.
34682         * doc/functions/printf.texi: Update.
34683         * doc/functions/snprintf.texi: Update.
34684         * doc/functions/sprintf.texi: Update.
34685         * doc/functions/vfprintf.texi: Update.
34686         * doc/functions/vprintf.texi: Update.
34687         * doc/functions/vsnprintf.texi: Update.
34688         * doc/functions/vsprintf.texi: Update.
34689
34690 2007-11-04  Bruno Haible  <bruno@clisp.org>
34691
34692         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34693
34694 2007-11-04  Bruno Haible  <bruno@clisp.org>
34695
34696         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34697         Reported by Sylvain Beucler <beuc@gnu.org>.
34698
34699 2007-11-03  Bruno Haible  <bruno@clisp.org>
34700
34701         * tests/test-fprintf-posix2.sh: New file.
34702         * tests/test-fprintf-posix2.c: New file.
34703         * modules/fprintf-posix-tests (Files): Add them.
34704         (TESTS): Add test-fprintf-posix2.sh.
34705         (configure.ac): Check for getrlimit and setrlimit.
34706         (check_PROGRAMS): Add test-fprintf-posix2.
34707
34708         * tests/test-printf-posix2.sh: New file.
34709         * tests/test-printf-posix2.c: New file.
34710         * modules/printf-posix-tests (Files): Add them.
34711         (TESTS): Add test-printf-posix2.sh.
34712         (configure.ac): Check for getrlimit and setrlimit.
34713         (check_PROGRAMS): Add test-printf-posix2.
34714
34715         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34716         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34717         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34718         (decode_double): New function, copied from decode_long_double.
34719         (scale10_round_decimal_decoded): New function, extracted from
34720         scale10_round_decimal_long_double.
34721         (scale10_round_decimal_long_double): Use it.
34722         (scale10_round_decimal_double): New function.
34723         (floorlog10): New function.
34724         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34726         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34728         gl_PRINTF_ENOMEM and test its result. Invoke
34729         gl_PREREQ_VASNPRINTF_ENOMEM.
34730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34737         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34738         * modules/snprintf-posix (Depends-on): Likewise.
34739         * modules/sprintf-posix (Depends-on): Likewise.
34740         * modules/vasnprintf-posix (Depends-on): Likewise.
34741         * modules/vasprintf-posix (Depends-on): Likewise.
34742         * modules/vfprintf-posix (Depends-on): Likewise.
34743         * modules/vsnprintf-posix (Depends-on): Likewise.
34744         * modules/vsprintf-posix (Depends-on): Likewise.
34745         * doc/functions/fprintf.texi: Update.
34746         * doc/functions/printf.texi: Update.
34747         * doc/functions/snprintf.texi: Update.
34748         * doc/functions/sprintf.texi: Update.
34749         * doc/functions/vfprintf.texi: Update.
34750         * doc/functions/vprintf.texi: Update.
34751         * doc/functions/vsnprintf.texi: Update.
34752         * doc/functions/vsprintf.texi: Update.
34753
34754 2007-11-03  Bruno Haible  <bruno@clisp.org>
34755
34756         * modules/frexp-nolibm-tests: New file.
34757
34758         * modules/frexp-nolibm: New file.
34759         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34760
34761 2007-11-03  Bruno Haible  <bruno@clisp.org>
34762
34763         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34764         value is C99 compliant.
34765         Needed for OSF/1 5.1.
34766
34767 2007-11-03  Bruno Haible  <bruno@clisp.org>
34768
34769         Fix out-of-memory handling of vasnprintf.
34770         * lib/printf-parse.c: Include <errno.h>.
34771         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34772         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34773         is already set.
34774
34775 2007-11-02  Eric Blake  <ebb9@byu.net>
34776
34777         Fix tests on cygwin.
34778         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34779
34780 2007-11-01  Bruno Haible  <bruno@clisp.org>
34781
34782         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34783         warning.
34784         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34785         needed for POSIX compatibility.
34786
34787 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34788
34789         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34790         for compatibility with GNU.
34791
34792 2007-11-01  Bruno Haible  <bruno@clisp.org>
34793
34794         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34795         (putenv): Renamed from rpl_putenv. Change argument type from
34796         'const char *' to 'char *'.
34797         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34798         of defining putenv in config.h, just set REPLACE_PUTENV.
34799         * modules/putenv (Depends-on): Add stdlib.
34800         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34801         (Include): Use <stdlib.h>.
34802         * lib/stdlib.in.h (putenv): New declaration.
34803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34804         REPLACE_PUTENV.
34805         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34806         REPLACE_PUTENV.
34807         Needed for MacOS X 10.5.0.
34808         Reported by Peter O'Gorman <peter@pogma.com>.
34809
34810 2007-11-01  Jim Meyering  <meyering@redhat.com>
34811
34812         Treat an empty date string exactly like "0".
34813         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34814         if the remaining date string (to be parsed) is empty, use "0".
34815         Reported by Mischa Molhoek and discussed in this thread:
34816         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34817
34818 2007-10-31  Bruno Haible  <bruno@clisp.org>
34819
34820         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34821         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34822         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34823         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34824         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34825         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34826
34827 2007-10-31  Bruno Haible  <bruno@clisp.org>
34828
34829         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
34830         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
34831         (AC_TYPE_LONG_LONG_INT): Use it.
34832         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
34833         it as well.
34834         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
34835         to m4/longlong.m4.
34836         * modules/stdint (Files): Remove m4/ulonglong.m4.
34837         * modules/strtoull (Files): Use m4/longlong.m4 instead of
34838         m4/ulonglong.m4.
34839         * modules/strtoumax (Files): Likewise.
34840
34841 2007-10-30  Bruno Haible  <bruno@clisp.org>
34842
34843         * modules/xvasprintf-posix: New file.
34844         Suggested by Eric Blake.
34845
34846 2007-10-30  Bruno Haible  <bruno@clisp.org>
34847
34848         * modules/xprintf-posix-tests: New file.
34849         * tests/test-xprintf-posix.sh: New file.
34850         * tests/test-xprintf-posix.c: New file.
34851         * tests/test-xfprintf-posix.c: New file.
34852
34853         * modules/xprintf-posix: New file.
34854
34855 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34856
34857         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
34858         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
34859         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
34860
34861 2007-10-29  Bruno Haible  <bruno@clisp.org>
34862
34863         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
34864         contain the special marker '_cv_'.
34865         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34866         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34867         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34868         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
34869         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34870         Reported by Ralf Wildenhues.
34871
34872 2007-10-29  Bruno Haible  <bruno@clisp.org>
34873
34874         * gnulib-tool (func_import): When --lgpl is not specified, set
34875         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
34876         GPLv3.
34877         Reported by Simon Josefsson.
34878
34879 2007-10-28  Bruno Haible  <bruno@clisp.org>
34880
34881         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
34882         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
34883         HAVE_DECL_ISFINITE.
34884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34885         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
34886         HAVE_DECL_ISFINITE.
34887
34888 2007-10-28  Bruno Haible  <bruno@clisp.org>
34889
34890         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
34891         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
34892
34893 2007-10-28  Bruno Haible  <bruno@clisp.org>
34894
34895         Fix link errors with Sun C 5.0 on Solaris 10.
34896         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
34897         function is declared but not present in the compiler's libm.
34898         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34899         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
34900         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
34901         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
34902         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
34903         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
34904         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
34905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
34906         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
34907         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
34908         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
34909         HAVE_DECL_FLOORL.
34910
34911 2007-10-28  Bruno Haible  <bruno@clisp.org>
34912
34913         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
34914         gl_FUNC_FLOORL. Cache the result.
34915         (gl_FUNC_FLOORL): Use it.
34916         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
34917         gl_FUNC_CEILL. Cache the result.
34918         (gl_FUNC_CEILL): Use it.
34919
34920         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
34921         gl_FUNC_FLOOR. Cache the result.
34922         (gl_FUNC_FLOOR): Use it.
34923         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
34924         gl_FUNC_CEIL. Cache the result.
34925         (gl_FUNC_CEIL): Use it.
34926
34927         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
34928         gl_FUNC_FLOORF. Cache the result.
34929         (gl_FUNC_FLOORF): Use it.
34930         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
34931         gl_FUNC_CEILF. Cache the result.
34932         (gl_FUNC_CEILF): Use it.
34933
34934 2007-10-28  Bruno Haible  <bruno@clisp.org>
34935
34936         * gnulib-tool: Allow specifying the LGPL version number through
34937         --lgpl=2 or --lgpl=3.
34938         (func_usage): Document --lgpl with argument.
34939         Handle --lgpl=... arguments.
34940         (func_import): Recognize also gl_LGPL calls with an argument. When
34941         --lgpl=2 is used and the module's license is just LGPL, report an
34942         error. Set sed_transform_lib_file according to the lgpl variable. In
34943         the generated files, use --lgpl or gl_LGPL invocations with argument,
34944         if necessary.
34945         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
34946         an LGPv2+ license.
34947         * doc/gnulib-tool.texi (Modified imports): Update explanation of
34948         gl_LGPL macro.
34949
34950 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34951             Bruno Haible  <bruno@clisp.org>
34952
34953         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
34954         (u16_uctomb_aux): Likewise.
34955         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
34956         !HAVE_INLINE.
34957         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
34958
34959 2007-10-28  Bruno Haible  <bruno@clisp.org>
34960
34961         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
34962         Invoke AM_GETTEXT_OPTION if it exists.
34963         * modules/vasprintf: Likewise.
34964         * modules/verror: Likewise.
34965         * modules/xprintf: Likewise.
34966         * modules/xvasprintf: Likewise.
34967
34968 2007-10-27  Ben Pfaff  <blp@gnu.org>
34969
34970         * lib/math.in.h: Define isfinite macro and prototypes for
34971         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
34972         implementations.
34973         * m4/math_h.m4: New substitutions for isfinite module.
34974         * lib/isfinite.c: New file.
34975         * m4/isfinite.m4: New file.
34976         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
34977         * modules/isfinite: New file.
34978         * modules/isfinite-tests: New file.
34979         * tests/tests-isfinite.c: New file.
34980         * doc/functions/isfinite.texi: Mention isfinite module.
34981         * MODULES.html.sh: Mention new module.
34982
34983 2007-10-27  Ben Pfaff  <blp@gnu.org>
34984
34985         Ralf Wildenhues reported that Tru64 4.0D declares the round
34986         functions but does not have definitions.
34987         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
34988         cannot be found in any library, set the output variable to
34989         "missing" instead of "".
34990         * m4/round.m4: Also use our substitute if we cannot find round in
34991         any library, even if it is declared.
34992         * m4/roundf.m4: Likewise for roundf.
34993         * m4/roundl.m4: Likewise for roundl.
34994         * lib/math.in.h: Undefine roundf, round, roundl before defining
34995         their replacements, to allow for hypothetical systems where these
34996         may be defined as macros but not available in libraries.
34997
34998 2007-10-27  Bruno Haible  <bruno@clisp.org>
34999
35000         * doc/gnulib.texi: Invoke @firstparagraphindent.
35001         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
35002         changes in gnulib.
35003         (Source changes): New section.
35004
35005 2007-10-26  Bruno Haible  <bruno@clisp.org>
35006
35007         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
35008         borrowed from autoconf.
35009
35010 2007-10-26  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
35013         strerror returned the empty string. Needed on HP-UX 11.00.
35014
35015 2007-10-24  Micah Cowan  <micah@cowan.name>
35016
35017         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
35018         * build-aux/bootstrap: Remove support for now-unnecessary option,
35019         --cvs-user, and envvars CVS_USER, CVS_RSH.
35020
35021 2007-10-24  Jim Meyering  <meyering@redhat.com>
35022
35023         Avoid diagnostics from sha1sum when there is no cached checksum.
35024         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
35025         if the po.s1 file hasn't been created yet.
35026
35027         * build-aux/bootstrap: Sync from coreutils:
35028         2007-10-24  Jim Meyering  <meyering@redhat.com>
35029         Get gnulib from the git repository, not from an obsolete cvs one.
35030         * build-aux/bootstrap: Suggestion from Micah Cowan.
35031         2007-10-04  Jim Meyering  <jim@meyering.net>
35032         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
35033         (update_po_files): Work also when there are no .po files in po/.
35034
35035 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35036
35037         * README: Append ".git" to git and cg examples.
35038         Problem reported by Benoit Sigoure.
35039
35040 2007-10-23  Micah Cowan  <micah@cowan.name>
35041
35042         * users.txt: Add wget.
35043
35044 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35045
35046         Fix linking of some unistdio tests on FreeBSD.
35047         * modules/unistdio/u16-vsnprintf-tests
35048         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
35049         * modules/unistdio/u16-vsprintf-tests
35050         (test_u16_vsnprintf1_LDADD): Likewise.
35051         * modules/unistdio/u32-vsnprintf-tests
35052         (test_u32_vsnprintf1_LDADD): Likewise.
35053         * modules/unistdio/u32-vsprintf-tests
35054         (test_u32_vsprintf1_LDADD): Likewise.
35055         * modules/unistdio/u8-vsnprintf-tests
35056         (test_u8_vsnprintf1_LDADD): Likewise.
35057         * modules/unistdio/u8-vsprintf-tests
35058         (test_u8_vsprintf1_LDADD): Likewise.
35059         * modules/unistdio/ulc-vsnprintf-tests
35060         (test_ulc_vsnprintf1_LDADD): Likewise.
35061         * modules/unistdio/ulc-vsprintf-tests
35062         (test_ulc_vsprintf1_LDADD): Likewise.
35063
35064         Fix linking of some uniconv tests on FreeBSD.
35065         * modules/uniconv/u16-conv-from-enc-tests
35066         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
35067         * modules/uniconv/u16-conv-to-enc-tests
35068         (test_u16_conv_to_enc_LDADD): Likewise.
35069         * modules/uniconv/u16-strconv-from-enc-tests
35070         (test_u16_strconv_from_enc_LDADD): Likewise.
35071         * modules/uniconv/u16-strconv-to-enc-tests
35072         (test_u16_strconv_to_enc_LDADD): Likewise.
35073         * modules/uniconv/u32-conv-from-enc-tests
35074         (test_u32_conv_from_enc_LDADD): Likewise.
35075         * modules/uniconv/u32-conv-to-enc-tests
35076         (test_u32_conv_to_enc_LDADD): Likewise.
35077         * modules/uniconv/u32-strconv-from-enc-tests
35078         (test_u32_strconv_from_enc_LDADD): Likewise.
35079         * modules/uniconv/u32-strconv-to-enc-tests
35080         (test_u32_strconv_to_enc_LDADD): Likewise.
35081         * modules/uniconv/u8-conv-from-enc-tests
35082         (test_u8_conv_from_enc_LDADD): Likewise.
35083         * modules/uniconv/u8-conv-to-enc-tests
35084         (test_u8_conv_to_enc_LDADD): Likewise.
35085         * modules/uniconv/u8-strconv-from-enc-tests
35086         (test_u8_strconv_from_enc_LDADD): Likewise.
35087         * modules/uniconv/u8-strconv-to-enc-tests
35088         (test_u8_strconv_to_enc_LDADD): Likewise.
35089
35090 2007-10-22  Bruno Haible  <bruno@clisp.org>
35091
35092         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
35093         size.
35094
35095 2007-10-22  Eric Blake  <ebb9@byu.net>
35096
35097         Tweak x*printf documentation.
35098         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
35099         variable name and comments.
35100         Suggested by Bruno Haible.
35101
35102 2007-10-22  Bruno Haible  <bruno@clisp.org>
35103
35104         * lib/acl.c (copy_acl): Fix file name in comment.
35105
35106 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35107
35108         Fix Tru64 problem with stdbool.h.
35109         * lib/stdbool.in.h (false, true):
35110         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
35111         Don't declare as an enum in this situation; it runs afoul of Tru64.
35112         Problem reported by Steven M. Schweda in
35113         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
35114
35115 2007-10-22  Eric Blake  <ebb9@byu.net>
35116
35117         Also wrap vf?printf.
35118         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
35119         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
35120         (xvprintf, xvfprintf): New functions.
35121
35122 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35123
35124         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
35125         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
35126
35127         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
35128         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
35129
35130 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35131
35132         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
35133         by Bruno Haible.
35134
35135 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35136
35137         * lib/getloadavg.c
35138         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
35139         Undef `sys' after including sys/table.h, for Tru64 4.0D.
35140
35141         * tests/test-i-ring.c: Work for C89.
35142
35143 2007-10-22  Bruno Haible  <bruno@clisp.org>
35144
35145         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
35146         -1u, in preprocessor expression, so that we don't test for the bug
35147         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
35148         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
35149
35150 2007-10-22  Eric Blake  <ebb9@byu.net>
35151
35152         * tests/test-yesno.sh: Silence stderr during test.
35153
35154 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35155
35156         * modules/crypto/gc-camellia: New file.
35157
35158         * m4/gc-camellia.m4: New file.
35159
35160         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35161
35162         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35163
35164 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35165
35166         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35167         --help to stdout.  Reported by sms@antinode.org (Steven
35168         M. Schweda).
35169
35170 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35171
35172         * users.txt: Fix link to libksba.
35173
35174 2007-10-21  Ben Pfaff  <blp@gnu.org>
35175
35176         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35177         round.c roundf implementation that depends on floorf and ceilf to
35178         be tested unconditionally.
35179
35180 2007-10-21  Ben Pfaff  <blp@gnu.org>
35181
35182         * m4/check-libm-func.m4: Removed.
35183         * m4/check-math-lib.m4: New file.
35184         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35185         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35186         definition and lack of AC_LIBOBJ([roundf]).
35187         * m4/roundl.m4: Ditto, and similarly for roundl.
35188         * modules/round: Reference new m4 file.
35189         * modules/roundf: Ditto.
35190         * modules/roundl: Ditto.
35191         * tests/test-round2.c (main): Use ROUND instead of round.
35192         Bug report from Bruno Haible.
35193
35194 2007-10-21  Bruno Haible  <bruno@clisp.org>
35195
35196         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35197         context.
35198
35199 2007-10-21  Bruno Haible  <bruno@clisp.org>
35200
35201         * tests/test-wcwidth.c (main): Allow negative result for some control
35202         characters.
35203
35204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35205         Needed on OSF/1 5.1.
35206
35207 2007-10-21  Bruno Haible  <bruno@clisp.org>
35208
35209         * tests/test-floorf1.c: Include isnanf.h.
35210         (main): Use isnanf() instead of isnan().
35211         * tests/test-ceilf1.c: Include isnanf.h.
35212         (main): Use isnanf() instead of isnan().
35213         * tests/test-truncf1.c: Include isnanf.h.
35214         (main): Use isnanf() instead of isnan().
35215         * tests/test-roundf1.c: Include isnanf.h.
35216         (main): Use isnanf() instead of isnan().
35217
35218 2007-10-21  Eric Blake  <ebb9@byu.net>
35219
35220         * users.txt: Update URL for m4.
35221
35222 2007-10-21  Bruno Haible  <bruno@clisp.org>
35223
35224         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35225
35226 2007-10-21  Bruno Haible  <bruno@clisp.org>
35227
35228         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35229         Git's management files if the CVS files are not present.
35230
35231 2007-10-20  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35234         gcc-3.4.x.
35235
35236 2007-10-20  Ben Pfaff  <blp@gnu.org>
35237
35238         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35239         implementations.
35240         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35241         * lib/round.c: New file.
35242         * lib/roundf.c: New file.
35243         * lib/roundl.c: New file.
35244         * m4/round.m4: New file.
35245         * m4/roundf.m4: New file.
35246         * m4/roundl.m4: New file.
35247         * m4/check-libm-func-m4: New file.
35248         * modules/math: Replace round, roundf, roundl related @VARS@ in
35249         math.in.h.
35250         * modules/round: New file.
35251         * modules/round-tests: New file.
35252         * modules/roundf: New file.
35253         * modules/roundf-tests: New file.
35254         * modules/roundl: New file.
35255         * modules/roundl-tests: New file.
35256         * tests/test-round1.c: New file.
35257         * tests/test-round2.c: New file.
35258         * tests/test-roundf1.c: New file.
35259         * tests/test-roundf2.c: New file.
35260         * tests/test-roundl.c: New file.
35261         * doc/functions/round.texi: Mention round module.
35262         * doc/functions/roundf.texi: Mention roundf module.
35263         * doc/functions/roundl.texi: Mention roundl module.
35264         * MODULES.html.sh: Mention new modules.
35265         Thanks to Bruno Haible for suggestions.
35266
35267 2007-10-20  Jim Meyering  <meyering@redhat.com>
35268
35269         * lib/xprintf.c: Include <config.h> unconditionally.
35270
35271         Change xprintf's license to GPL.
35272         * modules/xprintf (License): s/LGPL/GPL/, since this module
35273         depends on modules (exit and exitfail) which are GPL.
35274         Suggestion from Bruno Haible.
35275
35276         xprintf fixes.
35277         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35278         Use a clearer diagnostic.
35279         Patch from Bruno Haible.
35280
35281 2007-10-20  Bruno Haible  <bruno@clisp.org>
35282
35283         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35284         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35285         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35286
35287 2007-10-20  Bruno Haible  <bruno@clisp.org>
35288
35289         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35290         precision in the comparison result > x - 1 or similar.
35291         * tests/test-ceilf2.c (correct_result_p): Likewise.
35292         * tests/test-truncf2.c (correct_result_p): Likewise.
35293         * tests/test-trunc2.c (correct_result_p): Likewise.
35294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35295
35296 2007-10-20  Bruno Haible  <bruno@clisp.org>
35297
35298         * modules/ceil: New file.
35299         * m4/ceil.m4: New file.
35300         * doc/functions/ceil.texi: Mention the 'ceil' module.
35301
35302 2007-10-20  Bruno Haible  <bruno@clisp.org>
35303
35304         * modules/floor: New file.
35305         * m4/floor.m4: New file.
35306         * doc/functions/floor.texi: Mention the 'floor' module.
35307
35308 2007-10-20  Bruno Haible  <bruno@clisp.org>
35309
35310         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35311         of %a.
35312         * modules/floorf-tests (Depends-on): Likewise.
35313         * modules/truncf-tests (Depends-on): Likewise.
35314         * modules/trunc-tests (Depends-on): Likewise.
35315         Reported by Ben Pfaff.
35316
35317 2007-10-19  Jim Meyering  <meyering@redhat.com>
35318
35319         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35320         Don't bother testing specific errno values.  Just test ferror.
35321
35322         New module: xprintf
35323         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35324
35325 2007-10-19  Bruno Haible  <bruno@clisp.org>
35326
35327         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35328         syntax.
35329         * modules/javaexec (Makefile.am): Likewise.
35330         * modules/relocatable-prog (Makefile.am): Likewise.
35331         Suggested by Jim Meyering.
35332
35333 2007-10-18  Bruno Haible  <bruno@clisp.org>
35334
35335         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35336         Reported by Jim Meyering.
35337
35338 2007-10-18  Eric Blake  <ebb9@byu.net>
35339
35340         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35341
35342 2007-10-18  Bruno Haible  <bruno@clisp.org>
35343
35344         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35345         the format string into writable memory. Needed in Fortify conditions.
35346
35347 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35348             Bruno Haible  <bruno@clisp.org>
35349
35350         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35351         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35352         * modules/trim (Depends-on): Add mbchar.
35353         (configure.ac): Add gl_FUNC_MBRTOWC.
35354         (Makefile.am): Augment lib_SOURCES.
35355
35356 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35357
35358         Modify glob.c to use fstatat and dirfd, to simplify it.
35359         Suggested by Eric Blake.
35360         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35361         Don't include <stdbool.h>; not used.
35362         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35363         (link_exists_p): Simplify implementation, since we can now assume
35364         dirfd and fstatat.
35365         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35366
35367 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35368
35369         * gnulib-tool (func_get_dependencies): Fix sed script to
35370         match only tests.
35371
35372 2007-10-17  Bruno Haible  <bruno@clisp.org>
35373
35374         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35375         allow locale names without encoding suffix.
35376         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35377         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35378
35379 2007-10-16  Bruno Haible  <bruno@clisp.org>
35380
35381         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35382         * lib/getgroups.c (getgroups): Likewise.
35383         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35384
35385 2007-10-16  Bruno Haible  <bruno@clisp.org>
35386
35387         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35388         * modules/malloc-posix (License): Likewise.
35389         * modules/realloc-posix (License): Likewise.
35390         * modules/calloc-posix (License): Likewise.
35391         * modules/intprops (License): Change from GPL to LGPL, with
35392         Paul Eggert's approval.
35393
35394 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35395
35396         Merge glibc changes into lib/glob.c.
35397
35398         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35399         2007-10-15 04:59:03 UTC.  Here are the changes:
35400
35401         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35402
35403         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35404
35405         * lib/glob.c: Add some branch prediction throughout.
35406
35407         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35408
35409         [BZ #5103]
35410         * lib/glob.c (glob): Recognize patterns starting \/.
35411
35412         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35413
35414         [BZ #3996]
35415         * lib/glob.c (attribute_hidden): Define if not defined.
35416         (glob): Unescape dirname, filename or username when needed and not
35417         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35418         is NULL.  Handle unescaped [ in pattern without closing ].
35419         Don't pass GLOB_CHECK down to recursive glob for directories.
35420         (__glob_pattern_type): New function.
35421         (__glob_pattern_p): Implement using __glob_pattern_type.
35422         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35423         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35424         Remove unreachable code.
35425
35426         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35427
35428         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35429         explain why there are no leaks.
35430
35431         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35432
35433         [BZ #3253]
35434         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35435         time, rather allocate increasingly bigger arrays of pointers, if
35436         possible with alloca, if too large with malloc.
35437
35438 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35439
35440         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35441         Problem reported by H.Merijn Brand in
35442         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35443         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35444         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35445
35446 2007-10-15  Bruno Haible  <bruno@clisp.org>
35447
35448         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35449         with explicit rpl_ prefix.
35450         * lib/fopen.c (fopen): Likewise.
35451         * lib/freopen.c (freopen): Likewise.
35452         * lib/iconv.c (iconv): Likewise.
35453         * lib/iconv_close.c (iconv_close): Likewise.
35454
35455 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35456
35457         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35458
35459 2007-10-15  Bruno Haible  <bruno@clisp.org>
35460
35461         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35462         <stddef.h> instead of <stdlib.h> since we only need NULL.
35463         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35464
35465 2007-10-15  Bruno Haible  <bruno@clisp.org>
35466
35467         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35468         Replace paragraph talking about LIBOBJS.
35469         Reported by Colin Watson <cjwatson@debian.org>.
35470
35471 2007-10-15  Bruno Haible  <bruno@clisp.org>
35472
35473         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35474         <stdlib.h> before using NULL.
35475
35476 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35477
35478         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35479         Reported by Albert Chin <china@thewrittenword.com>.
35480
35481 2007-10-14  Bruno Haible  <bruno@clisp.org>
35482
35483         * modules/iconv_open-utf-tests: New file.
35484         * tests/test-iconv-utf.c: New file.
35485
35486         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35487         * modules/iconv_open-utf: New file.
35488         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35489         (iconv, iconv_close): New declarations.
35490         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35491         be defined.
35492         (iconv_open): Add special handling of conversion between UTF-8 and
35493         UTF-{16,32}{BE,LE}.
35494         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35495         * lib/iconv_close.c: New file.
35496         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35497         gl_FUNC_ICONV_OPEN.
35498         (gl_FUNC_ICONV_OPEN): Use it.
35499         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35500         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35501         and REPLACE_ICONV_UTF.
35502         * modules/iconv_open (Depends-on): Add c-strcase.
35503         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35504         ICONV_CONST.
35505         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35506
35507 2007-10-13  Albert Chin  <china@thewrittenword.com>
35508             Bruno Haible  <bruno@clisp.org>
35509
35510         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35511         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35512
35513 2007-10-13  Bruno Haible  <bruno@clisp.org>
35514
35515         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35516         defined, use the ISO C99 inline semantics.
35517         * lib/argp.h (ARGP_EI): Likewise.
35518
35519 2007-10-13  Bruno Haible  <bruno@clisp.org>
35520
35521         Handle 'inline' change in gcc 4.3.0.
35522         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35523         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35524         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35525         argp_fmtstream_point): Disable 'extern' declaration if the function
35526         definition is going to be provided inline.
35527         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35528         semantics, not the ISO C99 inline semantics.
35529         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35530         'extern' declaration if the function definition is going to be provided
35531         inline.
35532         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35533         the GNU C inline semantics, not the ISO C99 inline semantics. With
35534         GCC 4.2, avoid a warning.
35535
35536 2007-10-13  Bruno Haible  <bruno@clisp.org>
35537
35538         * lib/freading.h (freading): Enable the use of __freading for
35539         glibc >= 2.7.
35540         * lib/freading.c (freading): Likewise.
35541
35542 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35543
35544         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35545         "warning: C99 inline functions are not supported; using GNU89".
35546
35547 2007-10-12  Bruno Haible  <bruno@clisp.org>
35548
35549         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35550         of 2.
35551         * tests/test-ceilf2.c: New file.
35552         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35553
35554         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35555         * modules/ceilf-tests: Update.
35556
35557 2007-10-12  Bruno Haible  <bruno@clisp.org>
35558
35559         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35560         of 2.
35561         * tests/test-floorf2.c: New file.
35562         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35563
35564         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35565         * modules/floorf-tests: Update.
35566
35567 2007-10-12  Bruno Haible  <bruno@clisp.org>
35568
35569         * tests/test-trunc2.c: New file.
35570         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35571
35572         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35573         * modules/trunc-tests: Update.
35574
35575 2007-10-12  Bruno Haible  <bruno@clisp.org>
35576
35577         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35578         of 2.
35579         * tests/test-truncf2.c: New file.
35580         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35581
35582         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35583         * modules/truncf-tests: Update.
35584
35585 2007-10-11  Eric Blake  <ebb9@byu.net>
35586
35587         Don't claim strerror is broken on Interix.
35588         * doc/functions/strerror.texi (strerror): Known broken systems are
35589         now Solaris 8, and not Interix.
35590         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35591         Interix on cross-compile.
35592         Reported by Martin Koeppe in
35593         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35594
35595 2007-10-11  Bruno Haible  <bruno@clisp.org>
35596
35597         * modules/i-ring-tests: New file.
35598         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35599         instead of assert.
35600
35601 2007-10-11  Bruno Haible  <bruno@clisp.org>
35602
35603         * modules/filenamecat-tests: New file.
35604         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35605         * lib/filenamecat.c: Remove test code.
35606
35607 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35608
35609         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35610
35611         * lib/strerror.c: Include <string.h> always, to test interface,
35612         and to remove the need for the dummy.
35613         Include intprops.h to compute width instead of doing it ourselves
35614         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35615         (strerror): Define it to return NULL if there's no system strerror.
35616         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35617         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35618         ancient pre-strerror Unix systems well any more.  Saying "unknown
35619         system error" is enough.
35620         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35621         simpler strerror.c implementation.
35622         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35623         Simplify the tests to reflect the simpler strerror implementation.
35624         * modules/strerror (Depends-on): Add intprops.
35625
35626 2007-10-09  Eric Blake  <ebb9@byu.net>
35627
35628         Silence test-fpending.
35629         * modules/fpending-tests (Files): Add wrapper script.
35630         * tests/test-fpending.sh: New file.
35631
35632 2007-10-09  Bruno Haible  <bruno@clisp.org>
35633
35634         * MODULES.html.sh (func_module): Don't create a hyperlink for
35635         function names like 'printf_frexp'.
35636         (Misc): Add crc, memxor.
35637         (Characteristics of floating types): New section.
35638         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35639         isnanf-nolibm, signbit, trunc, truncf, truncl.
35640         (Enhancements for ISO C 99 functions): New subsection Input/output.
35641         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35642         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35643         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35644         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35645         (Enhancements for POSIX:2001 functions): Add chdir-long.
35646         (File system functions): Add areadlink, chdir-safer, read-file.
35647         Remove cycle-check.
35648         (File system as inode set): New section.
35649         (Date and time): Add gethrxtime.
35650         (Multithreading): Add openmp.
35651         (Internationalization functions): Add localename.
35652         (Unicode string functions): Add unistr/u*-mbsnlen.
35653         (Support for maintaining and releasing projects): Add git-version-gen.
35654         (Lone files): Remove directories.
35655
35656 2007-10-08  Ben Pfaff  <blp@gnu.org>
35657
35658         * lib/xmalloca.h: Fix typo in comment.
35659
35660 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35661
35662         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35663         when avoiding problems with integer overflow.  Use a portable test
35664         instead.
35665
35666 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35667
35668         * modules/dummy (License): Change to LGPLv2+.
35669         * modules/float (License): Likewise
35670         * modules/realloc (License): Likewise
35671         * modules/stdlib (License): Likewise
35672
35673 2007-10-07  Bruno Haible  <bruno@clisp.org>
35674
35675         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35676         * floor.c (TWO_MANT_DIG): Likewise.
35677         * ceil.c (TWO_MANT_DIG): Likewise.
35678         Reported by Ben Pfaff.
35679
35680 2007-10-07  Bruno Haible  <bruno@clisp.org>
35681
35682         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35683         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35684         * lib/frexp.c (FUNC): Likewise.
35685         * lib/printf-frexp.h (printf_frexp): Likewise.
35686         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35687         * lib/printf-frexp.c (FUNC): Likewise.
35688         Suggested by Jim Meyering.
35689
35690 2007-10-07  Jim Meyering  <meyering@redhat.com>
35691
35692         Make xnanosleep's integer overflow test more robust.
35693         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35694         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35695
35696 2007-10-07  Bruno Haible  <bruno@clisp.org>
35697
35698         * NEWS: Mention the license change.
35699
35700         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35701         abbreviations in the modules files.
35702
35703         Change copyright notice from GPLv2+ to GPLv3+.
35704         * README: Change copyright notice.
35705         * MODULES.html.sh: Likewise.
35706         * build-aux/bootstrap.conf: Likewise.
35707         * build-aux/config.libpath: Likewise.
35708         * build-aux/csharpcomp.sh.in: Likewise.
35709         * build-aux/csharpexec.sh.in: Likewise.
35710         * build-aux/install-reloc: Likewise.
35711         * build-aux/javacomp.sh.in: Likewise.
35712         * build-aux/javaexec.sh.in: Likewise.
35713         * build-aux/ldd.sh.in: Likewise.
35714         * build-aux/reloc-ldflags: Likewise.
35715         * build-aux/relocatable.sh.in: Likewise.
35716         * build-aux/x-to-1.in: Likewise.
35717         * check-module: Likewise.
35718         * config/srclistvars.sh: Likewise.
35719         * gnulib-tool: Likewise.
35720         * lib/acl-internal.h: Likewise.
35721         * lib/acl.c: Likewise.
35722         * lib/acl.h: Likewise.
35723         * lib/acl_entries.c: Likewise.
35724         * lib/areadlink-with-size.c: Likewise.
35725         * lib/areadlink.c: Likewise.
35726         * lib/areadlink.h: Likewise.
35727         * lib/argmatch.c: Likewise.
35728         * lib/argmatch.h: Likewise.
35729         * lib/argp-ba.c: Likewise.
35730         * lib/argp-eexst.c: Likewise.
35731         * lib/argp-fmtstream.c: Likewise.
35732         * lib/argp-fmtstream.h: Likewise.
35733         * lib/argp-fs-xinl.c: Likewise.
35734         * lib/argp-help.c: Likewise.
35735         * lib/argp-namefrob.h: Likewise.
35736         * lib/argp-parse.c: Likewise.
35737         * lib/argp-pin.c: Likewise.
35738         * lib/argp-pv.c: Likewise.
35739         * lib/argp-pvh.c: Likewise.
35740         * lib/argp-xinl.c: Likewise.
35741         * lib/argp.h: Likewise.
35742         * lib/at-func.c: Likewise.
35743         * lib/atanl.c: Likewise.
35744         * lib/backupfile.c: Likewise.
35745         * lib/backupfile.h: Likewise.
35746         * lib/basename.c: Likewise.
35747         * lib/binary-io.h: Likewise.
35748         * lib/byteswap.in.h: Likewise.
35749         * lib/c-stack.c: Likewise.
35750         * lib/c-stack.h: Likewise.
35751         * lib/c-strcasestr.c: Likewise.
35752         * lib/c-strcasestr.h: Likewise.
35753         * lib/c-strstr.c: Likewise.
35754         * lib/c-strstr.h: Likewise.
35755         * lib/c-strtod.c: Likewise.
35756         * lib/calloc.c: Likewise.
35757         * lib/canon-host.c: Likewise.
35758         * lib/canon-host.h: Likewise.
35759         * lib/canonicalize-lgpl.c: Likewise.
35760         * lib/canonicalize.c: Likewise.
35761         * lib/canonicalize.h: Likewise.
35762         * lib/ceil.c: Likewise.
35763         * lib/ceilf.c: Likewise.
35764         * lib/ceill.c: Likewise.
35765         * lib/chdir-long.c: Likewise.
35766         * lib/chdir-long.h: Likewise.
35767         * lib/chdir-safer.c: Likewise.
35768         * lib/chdir-safer.h: Likewise.
35769         * lib/chown.c: Likewise.
35770         * lib/classpath.c: Likewise.
35771         * lib/classpath.h: Likewise.
35772         * lib/clean-temp.c: Likewise.
35773         * lib/clean-temp.h: Likewise.
35774         * lib/cloexec.c: Likewise.
35775         * lib/close-stream.c: Likewise.
35776         * lib/closein.c: Likewise.
35777         * lib/closein.h: Likewise.
35778         * lib/closeout.c: Likewise.
35779         * lib/closeout.h: Likewise.
35780         * lib/concat-filename.c: Likewise.
35781         * lib/copy-file.c: Likewise.
35782         * lib/copy-file.h: Likewise.
35783         * lib/count-one-bits.h: Likewise.
35784         * lib/crc.c: Likewise.
35785         * lib/crc.h: Likewise.
35786         * lib/creat-safer.c: Likewise.
35787         * lib/csharpcomp.c: Likewise.
35788         * lib/csharpcomp.h: Likewise.
35789         * lib/csharpexec.c: Likewise.
35790         * lib/csharpexec.h: Likewise.
35791         * lib/cycle-check.c: Likewise.
35792         * lib/cycle-check.h: Likewise.
35793         * lib/diacrit.c: Likewise.
35794         * lib/diacrit.h: Likewise.
35795         * lib/diffseq.h: Likewise.
35796         * lib/dirchownmod.c: Likewise.
35797         * lib/dirent.in.h: Likewise.
35798         * lib/dirfd.c: Likewise.
35799         * lib/dirfd.h: Likewise.
35800         * lib/dirname.c: Likewise.
35801         * lib/dirname.h: Likewise.
35802         * lib/dummy.c: Likewise.
35803         * lib/dup-safer.c: Likewise.
35804         * lib/dup2.c: Likewise.
35805         * lib/eealloc.h: Likewise.
35806         * lib/error.c: Likewise.
35807         * lib/error.h: Likewise.
35808         * lib/euidaccess.c: Likewise.
35809         * lib/exclude.c: Likewise.
35810         * lib/exclude.h: Likewise.
35811         * lib/execute.c: Likewise.
35812         * lib/execute.h: Likewise.
35813         * lib/exitfail.c: Likewise.
35814         * lib/exitfail.h: Likewise.
35815         * lib/expl.c: Likewise.
35816         * lib/fatal-signal.c: Likewise.
35817         * lib/fatal-signal.h: Likewise.
35818         * lib/fbufmode.c: Likewise.
35819         * lib/fbufmode.h: Likewise.
35820         * lib/fchdir.c: Likewise.
35821         * lib/fchmodat.c: Likewise.
35822         * lib/fchownat.c: Likewise.
35823         * lib/fcntl--.h: Likewise.
35824         * lib/fcntl-safer.h: Likewise.
35825         * lib/fcntl.in.h: Likewise.
35826         * lib/fd-safer.c: Likewise.
35827         * lib/fflush.c: Likewise.
35828         * lib/file-has-acl.c: Likewise.
35829         * lib/file-set.c: Likewise.
35830         * lib/file-type.c: Likewise.
35831         * lib/file-type.h: Likewise.
35832         * lib/fileblocks.c: Likewise.
35833         * lib/filemode.c: Likewise.
35834         * lib/filemode.h: Likewise.
35835         * lib/filename.h: Likewise.
35836         * lib/filenamecat.c: Likewise.
35837         * lib/filenamecat.h: Likewise.
35838         * lib/findprog.c: Likewise.
35839         * lib/findprog.h: Likewise.
35840         * lib/float.in.h: Likewise.
35841         * lib/floor.c: Likewise.
35842         * lib/floorf.c: Likewise.
35843         * lib/floorl.c: Likewise.
35844         * lib/fopen-safer.c: Likewise.
35845         * lib/fopen.c: Likewise.
35846         * lib/fpending.c: Likewise.
35847         * lib/fpending.h: Likewise.
35848         * lib/fprintf.c: Likewise.
35849         * lib/fprintftime.h: Likewise.
35850         * lib/fpucw.h: Likewise.
35851         * lib/fpurge.c: Likewise.
35852         * lib/fpurge.h: Likewise.
35853         * lib/freadable.c: Likewise.
35854         * lib/freadable.h: Likewise.
35855         * lib/freadahead.c: Likewise.
35856         * lib/freadahead.h: Likewise.
35857         * lib/freading.c: Likewise.
35858         * lib/freading.h: Likewise.
35859         * lib/free.c: Likewise.
35860         * lib/freopen.c: Likewise.
35861         * lib/frexp.c: Likewise.
35862         * lib/frexpl.c: Likewise.
35863         * lib/fseek.c: Likewise.
35864         * lib/fseterr.c: Likewise.
35865         * lib/fseterr.h: Likewise.
35866         * lib/fstatat.c: Likewise.
35867         * lib/fstrcmp.c: Likewise.
35868         * lib/fstrcmp.h: Likewise.
35869         * lib/fsusage.c: Likewise.
35870         * lib/fsusage.h: Likewise.
35871         * lib/ftell.c: Likewise.
35872         * lib/ftello.c: Likewise.
35873         * lib/fts-cycle.c: Likewise.
35874         * lib/fts.c: Likewise.
35875         * lib/fts_.h: Likewise.
35876         * lib/full-read.c: Likewise.
35877         * lib/full-read.h: Likewise.
35878         * lib/full-write.c: Likewise.
35879         * lib/full-write.h: Likewise.
35880         * lib/fwritable.c: Likewise.
35881         * lib/fwritable.h: Likewise.
35882         * lib/fwriteerror.c: Likewise.
35883         * lib/fwriteerror.h: Likewise.
35884         * lib/fwriting.c: Likewise.
35885         * lib/fwriting.h: Likewise.
35886         * lib/gcd.c: Likewise.
35887         * lib/gcd.h: Likewise.
35888         * lib/getcwd.c: Likewise.
35889         * lib/getdate.h: Likewise.
35890         * lib/getdate.y: Likewise.
35891         * lib/getdomainname.c: Likewise.
35892         * lib/getdomainname.h: Likewise.
35893         * lib/getgroups.c: Likewise.
35894         * lib/gethostname.c: Likewise.
35895         * lib/gethrxtime.c: Likewise.
35896         * lib/gethrxtime.h: Likewise.
35897         * lib/getloadavg.c: Likewise.
35898         * lib/getndelim2.c: Likewise.
35899         * lib/getndelim2.h: Likewise.
35900         * lib/getnline.c: Likewise.
35901         * lib/getnline.h: Likewise.
35902         * lib/getopt.c: Likewise.
35903         * lib/getopt.in.h: Likewise.
35904         * lib/getopt1.c: Likewise.
35905         * lib/getopt_int.h: Likewise.
35906         * lib/getpagesize.h: Likewise.
35907         * lib/getsubopt.c: Likewise.
35908         * lib/gettime.c: Likewise.
35909         * lib/getugroups.c: Likewise.
35910         * lib/getugroups.h: Likewise.
35911         * lib/getusershell.c: Likewise.
35912         * lib/gl_anyavltree_list1.h: Likewise.
35913         * lib/gl_anyavltree_list2.h: Likewise.
35914         * lib/gl_anyhash_list1.h: Likewise.
35915         * lib/gl_anyhash_list2.h: Likewise.
35916         * lib/gl_anylinked_list1.h: Likewise.
35917         * lib/gl_anylinked_list2.h: Likewise.
35918         * lib/gl_anyrbtree_list1.h: Likewise.
35919         * lib/gl_anyrbtree_list2.h: Likewise.
35920         * lib/gl_anytree_list1.h: Likewise.
35921         * lib/gl_anytree_list2.h: Likewise.
35922         * lib/gl_anytree_oset.h: Likewise.
35923         * lib/gl_anytreehash_list1.h: Likewise.
35924         * lib/gl_anytreehash_list2.h: Likewise.
35925         * lib/gl_array_list.c: Likewise.
35926         * lib/gl_array_list.h: Likewise.
35927         * lib/gl_array_oset.c: Likewise.
35928         * lib/gl_array_oset.h: Likewise.
35929         * lib/gl_avltree_list.c: Likewise.
35930         * lib/gl_avltree_list.h: Likewise.
35931         * lib/gl_avltree_oset.c: Likewise.
35932         * lib/gl_avltree_oset.h: Likewise.
35933         * lib/gl_avltreehash_list.c: Likewise.
35934         * lib/gl_avltreehash_list.h: Likewise.
35935         * lib/gl_carray_list.c: Likewise.
35936         * lib/gl_carray_list.h: Likewise.
35937         * lib/gl_linked_list.c: Likewise.
35938         * lib/gl_linked_list.h: Likewise.
35939         * lib/gl_linkedhash_list.c: Likewise.
35940         * lib/gl_linkedhash_list.h: Likewise.
35941         * lib/gl_list.c: Likewise.
35942         * lib/gl_list.h: Likewise.
35943         * lib/gl_oset.c: Likewise.
35944         * lib/gl_oset.h: Likewise.
35945         * lib/gl_rbtree_list.c: Likewise.
35946         * lib/gl_rbtree_list.h: Likewise.
35947         * lib/gl_rbtree_oset.c: Likewise.
35948         * lib/gl_rbtree_oset.h: Likewise.
35949         * lib/gl_rbtreehash_list.c: Likewise.
35950         * lib/gl_rbtreehash_list.h: Likewise.
35951         * lib/gl_sublist.c: Likewise.
35952         * lib/gl_sublist.h: Likewise.
35953         * lib/group-member.c: Likewise.
35954         * lib/group-member.h: Likewise.
35955         * lib/hard-locale.c: Likewise.
35956         * lib/hard-locale.h: Likewise.
35957         * lib/hash-pjw.c: Likewise.
35958         * lib/hash-pjw.h: Likewise.
35959         * lib/hash-triple.c: Likewise.
35960         * lib/hash.c: Likewise.
35961         * lib/hash.h: Likewise.
35962         * lib/human.c: Likewise.
35963         * lib/human.h: Likewise.
35964         * lib/i-ring.c: Likewise.
35965         * lib/i-ring.h: Likewise.
35966         * lib/idcache.c: Likewise.
35967         * lib/imaxabs.c: Likewise.
35968         * lib/imaxdiv.c: Likewise.
35969         * lib/inet_pton.c: Likewise.
35970         * lib/inet_pton.h: Likewise.
35971         * lib/intprops.h: Likewise.
35972         * lib/inttostr.c: Likewise.
35973         * lib/inttostr.h: Likewise.
35974         * lib/inttypes.in.h: Likewise.
35975         * lib/isapipe.c: Likewise.
35976         * lib/isdir.c: Likewise.
35977         * lib/isnan.c: Likewise.
35978         * lib/isnan.h: Likewise.
35979         * lib/isnanf.c: Likewise.
35980         * lib/isnanf.h: Likewise.
35981         * lib/isnanl-nolibm.h: Likewise.
35982         * lib/isnanl.c: Likewise.
35983         * lib/isnanl.h: Likewise.
35984         * lib/javacomp.c: Likewise.
35985         * lib/javacomp.h: Likewise.
35986         * lib/javaexec.c: Likewise.
35987         * lib/javaexec.h: Likewise.
35988         * lib/javaversion.c: Likewise.
35989         * lib/javaversion.h: Likewise.
35990         * lib/javaversion.java: Likewise.
35991         * lib/lbrkprop.h: Likewise.
35992         * lib/lchmod.h: Likewise.
35993         * lib/lchown.c: Likewise.
35994         * lib/ldexpl.c: Likewise.
35995         * lib/linebreak.c: Likewise.
35996         * lib/linebreak.h: Likewise.
35997         * lib/linebuffer.c: Likewise.
35998         * lib/linebuffer.h: Likewise.
35999         * lib/locale.in.h: Likewise.
36000         * lib/logl.c: Likewise.
36001         * lib/long-options.c: Likewise.
36002         * lib/long-options.h: Likewise.
36003         * lib/lstat.c: Likewise.
36004         * lib/lstat.h: Likewise.
36005         * lib/math.in.h: Likewise.
36006         * lib/mbchar.c: Likewise.
36007         * lib/mbchar.h: Likewise.
36008         * lib/mbfile.h: Likewise.
36009         * lib/mbiter.h: Likewise.
36010         * lib/mbscasecmp.c: Likewise.
36011         * lib/mbscasestr.c: Likewise.
36012         * lib/mbschr.c: Likewise.
36013         * lib/mbscspn.c: Likewise.
36014         * lib/mbslen.c: Likewise.
36015         * lib/mbsncasecmp.c: Likewise.
36016         * lib/mbsnlen.c: Likewise.
36017         * lib/mbspbrk.c: Likewise.
36018         * lib/mbspcasecmp.c: Likewise.
36019         * lib/mbsrchr.c: Likewise.
36020         * lib/mbssep.c: Likewise.
36021         * lib/mbsspn.c: Likewise.
36022         * lib/mbsstr.c: Likewise.
36023         * lib/mbstok_r.c: Likewise.
36024         * lib/mbswidth.c: Likewise.
36025         * lib/mbswidth.h: Likewise.
36026         * lib/mbuiter.h: Likewise.
36027         * lib/memcasecmp.c: Likewise.
36028         * lib/memcasecmp.h: Likewise.
36029         * lib/memchr.c: Likewise.
36030         * lib/memcmp.c: Likewise.
36031         * lib/memcoll.c: Likewise.
36032         * lib/memcoll.h: Likewise.
36033         * lib/memcpy.c: Likewise.
36034         * lib/memrchr.c: Likewise.
36035         * lib/mkancesdirs.c: Likewise.
36036         * lib/mkdir-p.c: Likewise.
36037         * lib/mkdir-p.h: Likewise.
36038         * lib/mkdir.c: Likewise.
36039         * lib/mkdirat.c: Likewise.
36040         * lib/mkdtemp.c: Likewise.
36041         * lib/mkstemp-safer.c: Likewise.
36042         * lib/mkstemp.c: Likewise.
36043         * lib/modechange.c: Likewise.
36044         * lib/modechange.h: Likewise.
36045         * lib/mountlist.c: Likewise.
36046         * lib/mountlist.h: Likewise.
36047         * lib/mpsort.c: Likewise.
36048         * lib/nanosleep.c: Likewise.
36049         * lib/obstack.c: Likewise.
36050         * lib/obstack.h: Likewise.
36051         * lib/open-safer.c: Likewise.
36052         * lib/open.c: Likewise.
36053         * lib/openat-die.c: Likewise.
36054         * lib/openat-priv.h: Likewise.
36055         * lib/openat-proc.c: Likewise.
36056         * lib/openat.c: Likewise.
36057         * lib/openat.h: Likewise.
36058         * lib/pagealign_alloc.c: Likewise.
36059         * lib/pagealign_alloc.h: Likewise.
36060         * lib/physmem.c: Likewise.
36061         * lib/physmem.h: Likewise.
36062         * lib/pipe-safer.c: Likewise.
36063         * lib/pipe.c: Likewise.
36064         * lib/pipe.h: Likewise.
36065         * lib/posixtm.c: Likewise.
36066         * lib/posixtm.h: Likewise.
36067         * lib/posixver.c: Likewise.
36068         * lib/printf-frexp.c: Likewise.
36069         * lib/printf-frexp.h: Likewise.
36070         * lib/printf-frexpl.c: Likewise.
36071         * lib/printf-frexpl.h: Likewise.
36072         * lib/printf.c: Likewise.
36073         * lib/progname.c: Likewise.
36074         * lib/progname.h: Likewise.
36075         * lib/progreloc.c: Likewise.
36076         * lib/putenv.c: Likewise.
36077         * lib/quote.c: Likewise.
36078         * lib/quote.h: Likewise.
36079         * lib/quotearg.c: Likewise.
36080         * lib/quotearg.h: Likewise.
36081         * lib/raise.c: Likewise.
36082         * lib/readline.c: Likewise.
36083         * lib/readline.h: Likewise.
36084         * lib/readlink.c: Likewise.
36085         * lib/readtokens.c: Likewise.
36086         * lib/readtokens.h: Likewise.
36087         * lib/readtokens0.c: Likewise.
36088         * lib/readtokens0.h: Likewise.
36089         * lib/readutmp.c: Likewise.
36090         * lib/readutmp.h: Likewise.
36091         * lib/realloc.c: Likewise.
36092         * lib/relocwrapper.c: Likewise.
36093         * lib/rename-dest-slash.c: Likewise.
36094         * lib/rename.c: Likewise.
36095         * lib/rmdir.c: Likewise.
36096         * lib/rpmatch.c: Likewise.
36097         * lib/safe-read.c: Likewise.
36098         * lib/safe-read.h: Likewise.
36099         * lib/safe-write.c: Likewise.
36100         * lib/safe-write.h: Likewise.
36101         * lib/same-inode.h: Likewise.
36102         * lib/same.c: Likewise.
36103         * lib/same.h: Likewise.
36104         * lib/save-cwd.c: Likewise.
36105         * lib/save-cwd.h: Likewise.
36106         * lib/savedir.c: Likewise.
36107         * lib/savedir.h: Likewise.
36108         * lib/savewd.c: Likewise.
36109         * lib/savewd.h: Likewise.
36110         * lib/search.in.h: Likewise.
36111         * lib/setenv.c: Likewise.
36112         * lib/setenv.h: Likewise.
36113         * lib/settime.c: Likewise.
36114         * lib/sh-quote.c: Likewise.
36115         * lib/sh-quote.h: Likewise.
36116         * lib/sig2str.c: Likewise.
36117         * lib/sig2str.h: Likewise.
36118         * lib/signal.in.h: Likewise.
36119         * lib/signbitd.c: Likewise.
36120         * lib/signbitf.c: Likewise.
36121         * lib/signbitl.c: Likewise.
36122         * lib/sigprocmask.c: Likewise.
36123         * lib/sincosl.c: Likewise.
36124         * lib/sleep.c: Likewise.
36125         * lib/sprintf.c: Likewise.
36126         * lib/sqrtl.c: Likewise.
36127         * lib/stat-time.h: Likewise.
36128         * lib/stdio--.h: Likewise.
36129         * lib/stdio-safer.h: Likewise.
36130         * lib/stdlib--.h: Likewise.
36131         * lib/stdlib-safer.h: Likewise.
36132         * lib/stdlib.in.h: Likewise.
36133         * lib/stpcpy.c: Likewise.
36134         * lib/stpncpy.c: Likewise.
36135         * lib/strchrnul.c: Likewise.
36136         * lib/strcspn.c: Likewise.
36137         * lib/strerror.c: Likewise.
36138         * lib/strftime.c: Likewise.
36139         * lib/strftime.h: Likewise.
36140         * lib/striconveh.c: Likewise.
36141         * lib/striconveh.h: Likewise.
36142         * lib/striconveha.c: Likewise.
36143         * lib/striconveha.h: Likewise.
36144         * lib/stripslash.c: Likewise.
36145         * lib/strnlen1.c: Likewise.
36146         * lib/strnlen1.h: Likewise.
36147         * lib/strtod.c: Likewise.
36148         * lib/strtoimax.c: Likewise.
36149         * lib/strtok_r.c: Likewise.
36150         * lib/strtol.c: Likewise.
36151         * lib/strtoll.c: Likewise.
36152         * lib/strtoul.c: Likewise.
36153         * lib/strtoull.c: Likewise.
36154         * lib/sysexits.in.h: Likewise.
36155         * lib/tempname.c: Likewise.
36156         * lib/tempname.h: Likewise.
36157         * lib/timespec.h: Likewise.
36158         * lib/tls.c: Likewise.
36159         * lib/tls.h: Likewise.
36160         * lib/tmpdir.c: Likewise.
36161         * lib/tmpdir.h: Likewise.
36162         * lib/tmpfile-safer.c: Likewise.
36163         * lib/tmpfile.c: Likewise.
36164         * lib/trigl.c: Likewise.
36165         * lib/trigl.h: Likewise.
36166         * lib/trim.c: Likewise.
36167         * lib/trim.h: Likewise.
36168         * lib/trunc.c: Likewise.
36169         * lib/truncf.c: Likewise.
36170         * lib/truncl.c: Likewise.
36171         * lib/tsearch.c: Likewise.
36172         * lib/unicodeio.c: Likewise.
36173         * lib/unicodeio.h: Likewise.
36174         * lib/unistd--.h: Likewise.
36175         * lib/unistd-safer.h: Likewise.
36176         * lib/unistdio/ulc-fprintf.c: Likewise.
36177         * lib/unistdio/ulc-vfprintf.c: Likewise.
36178         * lib/unlinkdir.c: Likewise.
36179         * lib/unlinkdir.h: Likewise.
36180         * lib/unlocked-io.h: Likewise.
36181         * lib/unsetenv.c: Likewise.
36182         * lib/userspec.c: Likewise.
36183         * lib/utime.c: Likewise.
36184         * lib/utimecmp.c: Likewise.
36185         * lib/utimecmp.h: Likewise.
36186         * lib/utimens.c: Likewise.
36187         * lib/verify.h: Likewise.
36188         * lib/verror.c: Likewise.
36189         * lib/verror.h: Likewise.
36190         * lib/version-etc-fsf.c: Likewise.
36191         * lib/version-etc.c: Likewise.
36192         * lib/version-etc.h: Likewise.
36193         * lib/vfprintf.c: Likewise.
36194         * lib/vprintf.c: Likewise.
36195         * lib/vsprintf.c: Likewise.
36196         * lib/w32spawn.h: Likewise.
36197         * lib/wait-process.c: Likewise.
36198         * lib/wait-process.h: Likewise.
36199         * lib/wcwidth.c: Likewise.
36200         * lib/write-any-file.c: Likewise.
36201         * lib/xalloc-die.c: Likewise.
36202         * lib/xalloc.h: Likewise.
36203         * lib/xasprintf.c: Likewise.
36204         * lib/xgetcwd.c: Likewise.
36205         * lib/xgetcwd.h: Likewise.
36206         * lib/xgetdomainname.c: Likewise.
36207         * lib/xgetdomainname.h: Likewise.
36208         * lib/xgethostname.c: Likewise.
36209         * lib/xmalloc.c: Likewise.
36210         * lib/xmalloca.c: Likewise.
36211         * lib/xmalloca.h: Likewise.
36212         * lib/xmemcoll.c: Likewise.
36213         * lib/xnanosleep.c: Likewise.
36214         * lib/xreadlink.c: Likewise.
36215         * lib/xreadlink.h: Likewise.
36216         * lib/xsetenv.c: Likewise.
36217         * lib/xsetenv.h: Likewise.
36218         * lib/xstriconv.c: Likewise.
36219         * lib/xstriconv.h: Likewise.
36220         * lib/xstrndup.c: Likewise.
36221         * lib/xstrndup.h: Likewise.
36222         * lib/xstrtod.c: Likewise.
36223         * lib/xstrtod.h: Likewise.
36224         * lib/xstrtol-error.c: Likewise.
36225         * lib/xstrtol.c: Likewise.
36226         * lib/xstrtol.h: Likewise.
36227         * lib/xtime.h: Likewise.
36228         * lib/xvasprintf.c: Likewise.
36229         * lib/xvasprintf.h: Likewise.
36230         * lib/yesno.c: Likewise.
36231         * lib/yesno.h: Likewise.
36232         * posix-modules: Likewise.
36233         * tests/test-alloca-opt.c: Likewise.
36234         * tests/test-arcfour.c: Likewise.
36235         * tests/test-arctwo.c: Likewise.
36236         * tests/test-argmatch.c: Likewise.
36237         * tests/test-argp-2.sh: Likewise.
36238         * tests/test-argp.c: Likewise.
36239         * tests/test-arpa_inet.c: Likewise.
36240         * tests/test-array_list.c: Likewise.
36241         * tests/test-array_oset.c: Likewise.
36242         * tests/test-atexit.c: Likewise.
36243         * tests/test-avltree_list.c: Likewise.
36244         * tests/test-avltree_oset.c: Likewise.
36245         * tests/test-avltreehash_list.c: Likewise.
36246         * tests/test-base64.c: Likewise.
36247         * tests/test-binary-io.c: Likewise.
36248         * tests/test-byteswap.c: Likewise.
36249         * tests/test-c-ctype.c: Likewise.
36250         * tests/test-c-strcasecmp.c: Likewise.
36251         * tests/test-c-strcasestr.c: Likewise.
36252         * tests/test-c-strncasecmp.c: Likewise.
36253         * tests/test-c-strstr.c: Likewise.
36254         * tests/test-canonicalize-lgpl.c: Likewise.
36255         * tests/test-canonicalize.c: Likewise.
36256         * tests/test-carray_list.c: Likewise.
36257         * tests/test-ceilf.c: Likewise.
36258         * tests/test-ceill.c: Likewise.
36259         * tests/test-count-one-bits.c: Likewise.
36260         * tests/test-crc.c: Likewise.
36261         * tests/test-dirname.c: Likewise.
36262         * tests/test-fbufmode.c: Likewise.
36263         * tests/test-fcntl.c: Likewise.
36264         * tests/test-fflush.c: Likewise.
36265         * tests/test-floorf.c: Likewise.
36266         * tests/test-floorl.c: Likewise.
36267         * tests/test-fopen.c: Likewise.
36268         * tests/test-fprintf-posix.c: Likewise.
36269         * tests/test-fprintf-posix.h: Likewise.
36270         * tests/test-fpurge.c: Likewise.
36271         * tests/test-freadable.c: Likewise.
36272         * tests/test-freadahead.c: Likewise.
36273         * tests/test-freading.c: Likewise.
36274         * tests/test-freopen.c: Likewise.
36275         * tests/test-frexp.c: Likewise.
36276         * tests/test-frexpl.c: Likewise.
36277         * tests/test-fseek.c: Likewise.
36278         * tests/test-fseeko.c: Likewise.
36279         * tests/test-fseterr.c: Likewise.
36280         * tests/test-fstrcmp.c: Likewise.
36281         * tests/test-ftell.c: Likewise.
36282         * tests/test-ftello.c: Likewise.
36283         * tests/test-fwritable.c: Likewise.
36284         * tests/test-fwriting.c: Likewise.
36285         * tests/test-getaddrinfo.c: Likewise.
36286         * tests/test-getpass.c: Likewise.
36287         * tests/test-gettimeofday.c: Likewise.
36288         * tests/test-hmac-md5.c: Likewise.
36289         * tests/test-hmac-sha1.c: Likewise.
36290         * tests/test-iconv.c: Likewise.
36291         * tests/test-iconvme.c: Likewise.
36292         * tests/test-inttypes.c: Likewise.
36293         * tests/test-isnan.c: Likewise.
36294         * tests/test-isnanf.c: Likewise.
36295         * tests/test-isnanl-nolibm.c: Likewise.
36296         * tests/test-isnanl.c: Likewise.
36297         * tests/test-isnanl.h: Likewise.
36298         * tests/test-ldexpl.c: Likewise.
36299         * tests/test-linked_list.c: Likewise.
36300         * tests/test-linkedhash_list.c: Likewise.
36301         * tests/test-locale.c: Likewise.
36302         * tests/test-localename.c: Likewise.
36303         * tests/test-lock.c: Likewise.
36304         * tests/test-lseek.c: Likewise.
36305         * tests/test-malloca.c: Likewise.
36306         * tests/test-math.c: Likewise.
36307         * tests/test-mbscasecmp.c: Likewise.
36308         * tests/test-mbscasestr1.c: Likewise.
36309         * tests/test-mbscasestr2.c: Likewise.
36310         * tests/test-mbscasestr3.c: Likewise.
36311         * tests/test-mbscasestr4.c: Likewise.
36312         * tests/test-mbschr.c: Likewise.
36313         * tests/test-mbscspn.c: Likewise.
36314         * tests/test-mbsncasecmp.c: Likewise.
36315         * tests/test-mbspbrk.c: Likewise.
36316         * tests/test-mbspcasecmp.c: Likewise.
36317         * tests/test-mbsrchr.c: Likewise.
36318         * tests/test-mbsspn.c: Likewise.
36319         * tests/test-mbsstr1.c: Likewise.
36320         * tests/test-mbsstr2.c: Likewise.
36321         * tests/test-mbsstr3.c: Likewise.
36322         * tests/test-md5.c: Likewise.
36323         * tests/test-memmem.c: Likewise.
36324         * tests/test-netinet_in.c: Likewise.
36325         * tests/test-open.c: Likewise.
36326         * tests/test-printf-frexp.c: Likewise.
36327         * tests/test-printf-frexpl.c: Likewise.
36328         * tests/test-printf-posix.c: Likewise.
36329         * tests/test-printf-posix.h: Likewise.
36330         * tests/test-rbtree_list.c: Likewise.
36331         * tests/test-rbtree_oset.c: Likewise.
36332         * tests/test-rbtreehash_list.c: Likewise.
36333         * tests/test-read-file.c: Likewise.
36334         * tests/test-rijndael.c: Likewise.
36335         * tests/test-search.c: Likewise.
36336         * tests/test-signbit.c: Likewise.
36337         * tests/test-sleep.c: Likewise.
36338         * tests/test-snprintf-posix.c: Likewise.
36339         * tests/test-snprintf-posix.h: Likewise.
36340         * tests/test-snprintf.c: Likewise.
36341         * tests/test-sprintf-posix.c: Likewise.
36342         * tests/test-sprintf-posix.h: Likewise.
36343         * tests/test-stat-time.c: Likewise.
36344         * tests/test-stdbool.c: Likewise.
36345         * tests/test-stdint.c: Likewise.
36346         * tests/test-stdio.c: Likewise.
36347         * tests/test-stdlib.c: Likewise.
36348         * tests/test-stpncpy.c: Likewise.
36349         * tests/test-strcasestr.c: Likewise.
36350         * tests/test-striconv.c: Likewise.
36351         * tests/test-striconveh.c: Likewise.
36352         * tests/test-striconveha.c: Likewise.
36353         * tests/test-string.c: Likewise.
36354         * tests/test-sys_select.c: Likewise.
36355         * tests/test-sys_socket.c: Likewise.
36356         * tests/test-sys_stat.c: Likewise.
36357         * tests/test-sys_time.c: Likewise.
36358         * tests/test-sysexits.c: Likewise.
36359         * tests/test-time.c: Likewise.
36360         * tests/test-tls.c: Likewise.
36361         * tests/test-trunc.c: Likewise.
36362         * tests/test-truncf.c: Likewise.
36363         * tests/test-truncl.c: Likewise.
36364         * tests/test-unistd.c: Likewise.
36365         * tests/test-vasnprintf-posix.c: Likewise.
36366         * tests/test-vasnprintf-posix2.c: Likewise.
36367         * tests/test-vasnprintf.c: Likewise.
36368         * tests/test-vasprintf-posix.c: Likewise.
36369         * tests/test-vasprintf.c: Likewise.
36370         * tests/test-verify.c: Likewise.
36371         * tests/test-vfprintf-posix.c: Likewise.
36372         * tests/test-vprintf-posix.c: Likewise.
36373         * tests/test-vsnprintf-posix.c: Likewise.
36374         * tests/test-vsnprintf.c: Likewise.
36375         * tests/test-vsprintf-posix.c: Likewise.
36376         * tests/test-wchar.c: Likewise.
36377         * tests/test-wctype.c: Likewise.
36378         * tests/test-wcwidth.c: Likewise.
36379         * tests/test-xstrtol.c: Likewise.
36380         * tests/test-xvasprintf.c: Likewise.
36381         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36382         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36383         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36384         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36385         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36386         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36387         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36388         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36389         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36390         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36391         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36392         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36393         * tests/uniname/test-uninames.c: Likewise.
36394         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36395         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36396         * tests/unistdio/test-u16-printf1.h: Likewise.
36397         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36398         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36399         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36400         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36401         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36402         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36403         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36404         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36405         * tests/unistdio/test-u32-printf1.h: Likewise.
36406         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36407         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36408         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36409         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36410         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36411         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36412         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36413         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36414         * tests/unistdio/test-u8-printf1.h: Likewise.
36415         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36416         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36417         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36418         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36419         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36420         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36421         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36422         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36423         * tests/unistdio/test-ulc-printf1.h: Likewise.
36424         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36425         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36426         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36427         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36428         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36429         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36430         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36431         * tests/uniwidth/test-u16-width.c: Likewise.
36432         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36433         * tests/uniwidth/test-u32-width.c: Likewise.
36434         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36435         * tests/uniwidth/test-u8-width.c: Likewise.
36436         * tests/uniwidth/test-uc_width.c: Likewise.
36437         * config/srclist-update: Likewise.
36438         (fixlicense): Update to GPLv3+.
36439
36440         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36441         * tests/test-tsearch.c: Change copyright notice.
36442
36443         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36444         * lib/c-strcaseeq.h: Change copyright notice.
36445         * lib/streq.h: Likewise.
36446         * lib/uniconv.h: Likewise.
36447         * lib/uniconv/u-conv-from-enc.h: Likewise.
36448         * lib/uniconv/u-conv-to-enc.h: Likewise.
36449         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36450         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36451         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36452         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36453         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36454         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36455         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36456         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36457         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36458         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36459         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36460         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36461         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36462         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36463         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36464         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36465         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36466         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36467         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36468         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36469         * lib/uniname.h: Likewise.
36470         * lib/uniname/uniname.c: Likewise.
36471         * lib/unistdio.h: Likewise.
36472         * lib/unistdio/u-asnprintf.h: Likewise.
36473         * lib/unistdio/u-asprintf.h: Likewise.
36474         * lib/unistdio/u-printf-args.c: Likewise.
36475         * lib/unistdio/u-printf-args.h: Likewise.
36476         * lib/unistdio/u-printf-parse.h: Likewise.
36477         * lib/unistdio/u-snprintf.h: Likewise.
36478         * lib/unistdio/u-sprintf.h: Likewise.
36479         * lib/unistdio/u-vasprintf.h: Likewise.
36480         * lib/unistdio/u-vsnprintf.h: Likewise.
36481         * lib/unistdio/u-vsprintf.h: Likewise.
36482         * lib/unistdio/u16-asnprintf.c: Likewise.
36483         * lib/unistdio/u16-asprintf.c: Likewise.
36484         * lib/unistdio/u16-printf-parse.c: Likewise.
36485         * lib/unistdio/u16-snprintf.c: Likewise.
36486         * lib/unistdio/u16-sprintf.c: Likewise.
36487         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36488         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36489         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36490         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36491         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36492         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36493         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36494         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36495         * lib/unistdio/u16-vasnprintf.c: Likewise.
36496         * lib/unistdio/u16-vasprintf.c: Likewise.
36497         * lib/unistdio/u16-vsnprintf.c: Likewise.
36498         * lib/unistdio/u16-vsprintf.c: Likewise.
36499         * lib/unistdio/u32-asnprintf.c: Likewise.
36500         * lib/unistdio/u32-asprintf.c: Likewise.
36501         * lib/unistdio/u32-printf-parse.c: Likewise.
36502         * lib/unistdio/u32-snprintf.c: Likewise.
36503         * lib/unistdio/u32-sprintf.c: Likewise.
36504         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36505         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36506         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36507         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36508         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36509         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36510         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36511         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36512         * lib/unistdio/u32-vasnprintf.c: Likewise.
36513         * lib/unistdio/u32-vasprintf.c: Likewise.
36514         * lib/unistdio/u32-vsnprintf.c: Likewise.
36515         * lib/unistdio/u32-vsprintf.c: Likewise.
36516         * lib/unistdio/u8-asnprintf.c: Likewise.
36517         * lib/unistdio/u8-asprintf.c: Likewise.
36518         * lib/unistdio/u8-printf-parse.c: Likewise.
36519         * lib/unistdio/u8-snprintf.c: Likewise.
36520         * lib/unistdio/u8-sprintf.c: Likewise.
36521         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36522         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36523         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36524         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36525         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36526         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36527         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36528         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36529         * lib/unistdio/u8-vasnprintf.c: Likewise.
36530         * lib/unistdio/u8-vasprintf.c: Likewise.
36531         * lib/unistdio/u8-vsnprintf.c: Likewise.
36532         * lib/unistdio/u8-vsprintf.c: Likewise.
36533         * lib/unistdio/ulc-asnprintf.c: Likewise.
36534         * lib/unistdio/ulc-asprintf.c: Likewise.
36535         * lib/unistdio/ulc-printf-parse.c: Likewise.
36536         * lib/unistdio/ulc-snprintf.c: Likewise.
36537         * lib/unistdio/ulc-sprintf.c: Likewise.
36538         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36539         * lib/unistdio/ulc-vasprintf.c: Likewise.
36540         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36541         * lib/unistdio/ulc-vsprintf.c: Likewise.
36542         * lib/unistr.h: Likewise.
36543         * lib/unistr/u-cpy-alloc.h: Likewise.
36544         * lib/unistr/u-cpy.h: Likewise.
36545         * lib/unistr/u-endswith.h: Likewise.
36546         * lib/unistr/u-move.h: Likewise.
36547         * lib/unistr/u-set.h: Likewise.
36548         * lib/unistr/u-startswith.h: Likewise.
36549         * lib/unistr/u-stpcpy.h: Likewise.
36550         * lib/unistr/u-stpncpy.h: Likewise.
36551         * lib/unistr/u-strcat.h: Likewise.
36552         * lib/unistr/u-strcpy.h: Likewise.
36553         * lib/unistr/u-strcspn.h: Likewise.
36554         * lib/unistr/u-strdup.h: Likewise.
36555         * lib/unistr/u-strlen.h: Likewise.
36556         * lib/unistr/u-strncat.h: Likewise.
36557         * lib/unistr/u-strncpy.h: Likewise.
36558         * lib/unistr/u-strnlen.h: Likewise.
36559         * lib/unistr/u-strpbrk.h: Likewise.
36560         * lib/unistr/u-strspn.h: Likewise.
36561         * lib/unistr/u-strstr.h: Likewise.
36562         * lib/unistr/u-strtok.h: Likewise.
36563         * lib/unistr/u16-check.c: Likewise.
36564         * lib/unistr/u16-chr.c: Likewise.
36565         * lib/unistr/u16-cmp.c: Likewise.
36566         * lib/unistr/u16-cpy-alloc.c: Likewise.
36567         * lib/unistr/u16-cpy.c: Likewise.
36568         * lib/unistr/u16-endswith.c: Likewise.
36569         * lib/unistr/u16-mblen.c: Likewise.
36570         * lib/unistr/u16-mbsnlen.c: Likewise.
36571         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36572         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36573         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36574         * lib/unistr/u16-mbtouc.c: Likewise.
36575         * lib/unistr/u16-mbtoucr.c: Likewise.
36576         * lib/unistr/u16-move.c: Likewise.
36577         * lib/unistr/u16-next.c: Likewise.
36578         * lib/unistr/u16-prev.c: Likewise.
36579         * lib/unistr/u16-set.c: Likewise.
36580         * lib/unistr/u16-startswith.c: Likewise.
36581         * lib/unistr/u16-stpcpy.c: Likewise.
36582         * lib/unistr/u16-stpncpy.c: Likewise.
36583         * lib/unistr/u16-strcat.c: Likewise.
36584         * lib/unistr/u16-strchr.c: Likewise.
36585         * lib/unistr/u16-strcmp.c: Likewise.
36586         * lib/unistr/u16-strcpy.c: Likewise.
36587         * lib/unistr/u16-strcspn.c: Likewise.
36588         * lib/unistr/u16-strdup.c: Likewise.
36589         * lib/unistr/u16-strlen.c: Likewise.
36590         * lib/unistr/u16-strmblen.c: Likewise.
36591         * lib/unistr/u16-strmbtouc.c: Likewise.
36592         * lib/unistr/u16-strncat.c: Likewise.
36593         * lib/unistr/u16-strncmp.c: Likewise.
36594         * lib/unistr/u16-strncpy.c: Likewise.
36595         * lib/unistr/u16-strnlen.c: Likewise.
36596         * lib/unistr/u16-strpbrk.c: Likewise.
36597         * lib/unistr/u16-strrchr.c: Likewise.
36598         * lib/unistr/u16-strspn.c: Likewise.
36599         * lib/unistr/u16-strstr.c: Likewise.
36600         * lib/unistr/u16-strtok.c: Likewise.
36601         * lib/unistr/u16-to-u32.c: Likewise.
36602         * lib/unistr/u16-to-u8.c: Likewise.
36603         * lib/unistr/u16-uctomb-aux.c: Likewise.
36604         * lib/unistr/u16-uctomb.c: Likewise.
36605         * lib/unistr/u32-check.c: Likewise.
36606         * lib/unistr/u32-chr.c: Likewise.
36607         * lib/unistr/u32-cmp.c: Likewise.
36608         * lib/unistr/u32-cpy-alloc.c: Likewise.
36609         * lib/unistr/u32-cpy.c: Likewise.
36610         * lib/unistr/u32-endswith.c: Likewise.
36611         * lib/unistr/u32-mblen.c: Likewise.
36612         * lib/unistr/u32-mbsnlen.c: Likewise.
36613         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36614         * lib/unistr/u32-mbtouc.c: Likewise.
36615         * lib/unistr/u32-mbtoucr.c: Likewise.
36616         * lib/unistr/u32-move.c: Likewise.
36617         * lib/unistr/u32-next.c: Likewise.
36618         * lib/unistr/u32-prev.c: Likewise.
36619         * lib/unistr/u32-set.c: Likewise.
36620         * lib/unistr/u32-startswith.c: Likewise.
36621         * lib/unistr/u32-stpcpy.c: Likewise.
36622         * lib/unistr/u32-stpncpy.c: Likewise.
36623         * lib/unistr/u32-strcat.c: Likewise.
36624         * lib/unistr/u32-strchr.c: Likewise.
36625         * lib/unistr/u32-strcmp.c: Likewise.
36626         * lib/unistr/u32-strcpy.c: Likewise.
36627         * lib/unistr/u32-strcspn.c: Likewise.
36628         * lib/unistr/u32-strdup.c: Likewise.
36629         * lib/unistr/u32-strlen.c: Likewise.
36630         * lib/unistr/u32-strmblen.c: Likewise.
36631         * lib/unistr/u32-strmbtouc.c: Likewise.
36632         * lib/unistr/u32-strncat.c: Likewise.
36633         * lib/unistr/u32-strncmp.c: Likewise.
36634         * lib/unistr/u32-strncpy.c: Likewise.
36635         * lib/unistr/u32-strnlen.c: Likewise.
36636         * lib/unistr/u32-strpbrk.c: Likewise.
36637         * lib/unistr/u32-strrchr.c: Likewise.
36638         * lib/unistr/u32-strspn.c: Likewise.
36639         * lib/unistr/u32-strstr.c: Likewise.
36640         * lib/unistr/u32-strtok.c: Likewise.
36641         * lib/unistr/u32-to-u16.c: Likewise.
36642         * lib/unistr/u32-to-u8.c: Likewise.
36643         * lib/unistr/u32-uctomb.c: Likewise.
36644         * lib/unistr/u8-check.c: Likewise.
36645         * lib/unistr/u8-chr.c: Likewise.
36646         * lib/unistr/u8-cmp.c: Likewise.
36647         * lib/unistr/u8-cpy-alloc.c: Likewise.
36648         * lib/unistr/u8-cpy.c: Likewise.
36649         * lib/unistr/u8-endswith.c: Likewise.
36650         * lib/unistr/u8-mblen.c: Likewise.
36651         * lib/unistr/u8-mbsnlen.c: Likewise.
36652         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36653         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36654         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36655         * lib/unistr/u8-mbtouc.c: Likewise.
36656         * lib/unistr/u8-mbtoucr.c: Likewise.
36657         * lib/unistr/u8-move.c: Likewise.
36658         * lib/unistr/u8-next.c: Likewise.
36659         * lib/unistr/u8-prev.c: Likewise.
36660         * lib/unistr/u8-set.c: Likewise.
36661         * lib/unistr/u8-startswith.c: Likewise.
36662         * lib/unistr/u8-stpcpy.c: Likewise.
36663         * lib/unistr/u8-stpncpy.c: Likewise.
36664         * lib/unistr/u8-strcat.c: Likewise.
36665         * lib/unistr/u8-strchr.c: Likewise.
36666         * lib/unistr/u8-strcmp.c: Likewise.
36667         * lib/unistr/u8-strcpy.c: Likewise.
36668         * lib/unistr/u8-strcspn.c: Likewise.
36669         * lib/unistr/u8-strdup.c: Likewise.
36670         * lib/unistr/u8-strlen.c: Likewise.
36671         * lib/unistr/u8-strmblen.c: Likewise.
36672         * lib/unistr/u8-strmbtouc.c: Likewise.
36673         * lib/unistr/u8-strncat.c: Likewise.
36674         * lib/unistr/u8-strncmp.c: Likewise.
36675         * lib/unistr/u8-strncpy.c: Likewise.
36676         * lib/unistr/u8-strnlen.c: Likewise.
36677         * lib/unistr/u8-strpbrk.c: Likewise.
36678         * lib/unistr/u8-strrchr.c: Likewise.
36679         * lib/unistr/u8-strspn.c: Likewise.
36680         * lib/unistr/u8-strstr.c: Likewise.
36681         * lib/unistr/u8-strtok.c: Likewise.
36682         * lib/unistr/u8-to-u16.c: Likewise.
36683         * lib/unistr/u8-to-u32.c: Likewise.
36684         * lib/unistr/u8-uctomb-aux.c: Likewise.
36685         * lib/unistr/u8-uctomb.c: Likewise.
36686         * lib/unitypes.h: Likewise.
36687         * lib/uniwidth.h: Likewise.
36688         * lib/uniwidth/cjk.h: Likewise.
36689         * lib/uniwidth/u16-strwidth.c: Likewise.
36690         * lib/uniwidth/u16-width.c: Likewise.
36691         * lib/uniwidth/u32-strwidth.c: Likewise.
36692         * lib/uniwidth/u32-width.c: Likewise.
36693         * lib/uniwidth/u8-strwidth.c: Likewise.
36694         * lib/uniwidth/u8-width.c: Likewise.
36695         * lib/uniwidth/width.c: Likewise.
36696
36697 2007-10-07  Bruno Haible  <bruno@clisp.org>
36698
36699         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36700         The file is still under LGPL (see modules/inttypes).
36701
36702 2007-10-06  Bruno Haible  <bruno@clisp.org>
36703
36704         * modules/trunc (Dependencies): Add 'extensions'.
36705         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36706         Reported by Ben Pfaff <blp@gnu.org>.
36707
36708 2007-10-06  Bruno Haible  <bruno@clisp.org>
36709
36710         * modules/freopen-tests: New file.
36711         * tests/test-freopen.c: New file.
36712
36713         * modules/fopen-tests: New file.
36714         * tests/test-fopen.c: New file.
36715
36716         * modules/fopen: New file.
36717         * lib/fopen.c: New file.
36718         * m4/fopen.m4: New file.
36719         * modules/freopen: New file.
36720         * lib/freopen.c: New file.
36721         * m4/freopen.m4: New file.
36722         * lib/stdio.in.h (fopen, freopen): New declarations.
36723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36724         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36725         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36726         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36727         * doc/functions/fopen.texi: Mention the 'fopen' module.
36728         * doc/functions/freopen.texi: Mention the 'freopen' module.
36729
36730 2007-10-06  Bruno Haible  <bruno@clisp.org>
36731
36732         * modules/open-tests: New file.
36733         * tests/test-open.c: New file.
36734
36735         * modules/open: New file.
36736         * lib/open.c: New file.
36737         * m4/open.m4: New file.
36738         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36739         lib/open.c does.
36740         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36741         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36742         macros.
36743         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36744         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36745         REPLACE_OPEN.
36746         * doc/functions/open.texi: Mention the 'open' module.
36747
36748 2007-10-04  Bruno Haible  <bruno@clisp.org>
36749
36750         * modules/ceill-tests: New file.
36751         * tests/test-ceill.c: New file.
36752
36753         * modules/ceill: New file.
36754         * lib/ceill.c: Replace entire file.
36755         * m4/ceill.m4: New file.
36756         * lib/math.in.h (ceill): Replace declaration.
36757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36758         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36759         * doc/functions/ceill.texi: Mention the 'ceill' module.
36760         * modules/mathl (Files): Remove lib/ceill.c.
36761         (Depends-on): Add ceill.
36762
36763 2007-10-04  Bruno Haible  <bruno@clisp.org>
36764
36765         * modules/ceilf-tests: New file.
36766         * tests/test-ceilf.c: New file.
36767
36768         * modules/ceilf: New file.
36769         * lib/ceil.c: New file.
36770         * lib/ceilf.c: New file.
36771         * m4/ceilf.m4: New file.
36772         * lib/math.in.h (ceilf): New declaration.
36773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36774         HAVE_DECL_CEILF.
36775         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36776         HAVE_DECL_CEILF.
36777         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36778
36779 2007-10-04  Bruno Haible  <bruno@clisp.org>
36780
36781         * modules/floorl-tests: New file.
36782         * tests/test-floorl.c: New file.
36783
36784         * modules/floorl: New file.
36785         * lib/floorl.c: Replace entire file.
36786         * m4/floorl.m4: New file.
36787         * lib/math.in.h (floorl): Replace declaration.
36788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36789         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36790         * doc/functions/floorl.texi: Mention the 'floorl' module.
36791         * modules/mathl (Files): Remove lib/floorl.c.
36792         (Depends-on): Add floorl.
36793
36794 2007-10-04  Bruno Haible  <bruno@clisp.org>
36795
36796         * modules/floorf-tests: New file.
36797         * tests/test-floorf.c: New file.
36798
36799         * modules/floorf: New file.
36800         * lib/floor.c: New file.
36801         * lib/floorf.c: New file.
36802         * m4/floorf.m4: New file.
36803         * lib/math.in.h (floorf): New declaration.
36804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36805         HAVE_DECL_FLOORF.
36806         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36807         HAVE_DECL_FLOORF.
36808         * doc/functions/floorf.texi: Mention the 'floorf' module.
36809
36810 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36811             Bruno Haible  <bruno@clisp.org>
36812
36813         Advertise for the Git server instead of the CVS server.
36814         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36815         repository instead of the CVS one.
36816         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36817         about all VCS systems generically.
36818         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36819
36820 2007-10-04  Bruno Haible  <bruno@clisp.org>
36821
36822         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36823         means.
36824         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36825
36826 2007-10-04  Bruno Haible  <bruno@clisp.org>
36827
36828         * modules/truncl-tests: New file.
36829         * tests/test-truncl.c: New file.
36830
36831         * modules/truncl: New file.
36832         * lib/truncl.c: New file.
36833         * m4/truncl.m4: New file.
36834         * lib/math.in.h (truncl): New declaration.
36835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
36836         HAVE_DECL_TRUNCL.
36837         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
36838         HAVE_DECL_TRUNCL.
36839         * doc/functions/truncl.texi: Mention the 'truncl' module.
36840
36841 2007-10-04  Bruno Haible  <bruno@clisp.org>
36842
36843         * modules/truncf-tests: New file.
36844         * tests/test-truncf.c: New file.
36845
36846         * modules/truncf: New file.
36847         * lib/trunc.c: Make paramerizable through USE_* macros.
36848         * lib/truncf.c: New file.
36849         * m4/truncf.m4: New file.
36850         * lib/math.in.h (truncf): New declaration.
36851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
36852         HAVE_DECL_TRUNCF.
36853         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
36854         HAVE_DECL_TRUNCF.
36855         * doc/functions/truncf.texi: Mention the 'truncf' module.
36856
36857 2007-10-03  Bruno Haible  <bruno@clisp.org>
36858
36859         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36860         augmentation also for tests modules.
36861         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
36862         * modules/atexit-tests (Makefile.am): Likewise.
36863         * modules/binary-io-tests (Makefile.am): Likewise.
36864         * modules/c-strcase-tests (Makefile.am): Likewise.
36865         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
36866         * modules/canonicalize-tests (Makefile.am): Likewise.
36867         * modules/closein-tests (Makefile.am): Likewise.
36868         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36869         * modules/freadahead-tests (Makefile.am): Likewise.
36870         * modules/fseek-tests (Makefile.am): Likewise.
36871         * modules/fseeko-tests (Makefile.am): Likewise.
36872         * modules/ftell-tests (Makefile.am): Likewise.
36873         * modules/ftello-tests (Makefile.am): Likewise.
36874         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
36875         * modules/isnanl-tests (Makefile.am): Likewise.
36876         * modules/lseek-tests (Makefile.am): Likewise.
36877         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36878         * modules/mbscasestr-tests (Makefile.am): Likewise.
36879         * modules/mbschr-tests (Makefile.am): Likewise.
36880         * modules/mbscspn-tests (Makefile.am): Likewise.
36881         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36882         * modules/mbspbrk-tests (Makefile.am): Likewise.
36883         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36884         * modules/mbsrchr-tests (Makefile.am): Likewise.
36885         * modules/mbsspn-tests (Makefile.am): Likewise.
36886         * modules/mbsstr-tests (Makefile.am): Likewise.
36887         * modules/printf-posix-tests (Makefile.am): Likewise.
36888         * modules/snprintf-posix-tests (Makefile.am): Likewise.
36889         * modules/sprintf-posix-tests (Makefile.am): Likewise.
36890         * modules/tsearch-tests (Makefile.am): Likewise.
36891         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36892         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36893         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36894         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36895         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36896         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36897         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36898         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36899         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
36900         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
36901         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36902         * modules/xstrtol-tests (Makefile.am): Likewise.
36903         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36904         * modules/yesno-tests (Makefile.am): Likewise.
36905
36906 2007-10-03  Bruno Haible  <bruno@clisp.org>
36907
36908         * modules/trunc-tests: New file.
36909         * tests/test-trunc.c: New file.
36910
36911         * modules/trunc: New file.
36912         * lib/trunc.c: New file.
36913         * m4/trunc.m4: New file.
36914         * lib/math.in.h (trunc): New declaration.
36915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
36916         HAVE_DECL_TRUNC.
36917         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
36918         HAVE_DECL_TRUNC.
36919         * doc/functions/trunc.texi: Mention the 'trunc' module.
36920
36921 2007-10-03  Bruno Haible  <bruno@clisp.org>
36922
36923         * tests/test-fpending.c: New file, mostly copied
36924         from coreutils/lib/t-fpending.c.
36925         * modules/fpending-tests: New file.
36926
36927 2007-10-03  Bruno Haible  <bruno@clisp.org>
36928
36929         Port the stdio extensions to QNX (untested).
36930         * lib/fseterr.c (fseterr): Add support for QNX.
36931         * lib/fbufmode.c (fbufmode): Likewise.
36932         * lib/freadable.c (freadable): Likewise.
36933         * lib/fwritable.c (fwritable): Likewise.
36934         * lib/freading.c (freading): Likewise.
36935         * lib/fwriting.c (fwriting): Likewise.
36936         * lib/freadahead.c (freadahed): Likewise.
36937         * lib/fpurge.c (fpurge): Likewise.
36938         * lib/fseeko.c (rpl_fseeko): Likewise.
36939
36940 2007-10-03  Bruno Haible  <bruno@clisp.org>
36941             Jim Meyering  <jim@meyering.net>
36942             Eric Blake  <ebb9@byu.net>
36943
36944         * doc/relocatable.texi: Use @command instead of @program.
36945
36946 2007-10-02  Jim Meyering  <jim@meyering.net>
36947
36948         Perform one more "_.h" -> ".in.h" substitution.
36949         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
36950         instead of unistd_.h here, too.
36951
36952 2007-10-01  Bruno Haible  <bruno@clisp.org>
36953
36954         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
36955         Needed for the alloca-opt module.
36956
36957 2007-09-30  Bruno Haible  <bruno@clisp.org>
36958
36959         * lib/alloca.in.h: Renamed from lib/alloca_.h.
36960         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
36961         alloca_.h.
36962         * lib/argz.in.h: Renamed from lib/argz_.h.
36963         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
36964         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
36965         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
36966         byteswap_.h.
36967         * lib/dirent.in.h: Renamed from lib/dirent_.h.
36968         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
36969         dirent_.h.
36970         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
36971         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
36972         fcntl_.h.
36973         * lib/float.in.h: Renamed from lib/float_.h.
36974         * modules/float (Files, Makefile.am): Use float.in.h instead of
36975         float_.h.
36976         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
36977         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
36978         fnmatch_.h.
36979         * lib/getopt.in.h: Renamed from lib/getopt_.h.
36980         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
36981         getopt_.h.
36982         * lib/glob.in.h: Renamed from lib/glob_.h.
36983         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
36984         * lib/iconv.in.h: Renamed from lib/iconv_.h.
36985         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
36986         iconv_.h.
36987         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
36988         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
36989         inttypes_.h.
36990         * lib/locale.in.h: Renamed from lib/locale_.h.
36991         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
36992         locale_.h.
36993         * lib/math.in.h: Renamed from lib/math_.h.
36994         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
36995         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
36996         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
36997         of netinet_in_.h. Add dependency.
36998         * lib/poll.in.h: Renamed from lib/poll_.h.
36999         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
37000         * lib/search.in.h: Renamed from lib/search_.h.
37001         * modules/search (Files, Makefile.am): Use search.in.h instead of
37002         search_.h.
37003         * lib/signal.in.h: Renamed from lib/signal_.h.
37004         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
37005         _signal.h.
37006         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
37007         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
37008         stdbool_.h.
37009         * lib/stdint.in.h: Renamed from lib/stdint_.h.
37010         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
37011         stdint_.h.
37012         * lib/stdio.in.h: Renamed from lib/stdio_.h.
37013         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
37014         stdio_.h.
37015         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
37016         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
37017         stdlib_.h.
37018         * lib/string.in.h: Renamed from lib/string_.h.
37019         * modules/string (Files, Makefile.am): Use string.in.h instead of
37020         string_.h.
37021         * doc/gnulib-tool.texi (Initial import): Update.
37022         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
37023         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
37024         of sys_select_.h. Add dependency.
37025         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
37026         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
37027         of sys_socket_.h.
37028         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
37029         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
37030         sys_stat_.h.
37031         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
37032         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
37033         sys_time_.h.
37034         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
37035         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
37036         sysexits_.h.
37037         * lib/time.in.h: Renamed from lib/time_.h.
37038         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
37039         * lib/unistd.in.h: Renamed from lib/unistd_.h.
37040         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
37041         unistd_.h.
37042         * lib/wchar.in.h: Renamed from lib/wchar_.h.
37043         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
37044         wchar_.h.
37045         * lib/wctype.in.h: Renamed from lib/wctype_.h.
37046         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
37047         wctype_.h.
37048         * build-aux/bootstrap (slurp): Update.
37049         * lib/.cppi-disable: Update.
37050
37051 2007-09-30  Bruno Haible  <bruno@clisp.org>
37052
37053         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
37054         Needed on BeOS.
37055
37056 2007-09-30  Bruno Haible  <bruno@clisp.org>
37057
37058         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
37059
37060 2007-09-29  Bruno Haible  <bruno@clisp.org>
37061
37062         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
37063
37064 2007-09-29  Bruno Haible  <bruno@clisp.org>
37065
37066         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
37067         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
37068         * build-aux/install-reloc: Compile also areadlink.c.
37069         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
37070
37071 2007-09-29  Bruno Haible  <bruno@clisp.org>
37072
37073         * gnulib-tool (func_emit_initmacro_done): Indentation.
37074
37075 2007-09-29  Bruno Haible  <bruno@clisp.org>
37076
37077         * README: Add CVS checkout update instructions.
37078         Info from Bob Proulx <bob@proulx.com>.
37079
37080 2007-09-28  Eric Blake  <ebb9@byu.net>
37081
37082         Provide move-if-change.
37083         * build-aux/move-if-change: New file, based on best practice
37084         rather than any canonical upstream location.
37085
37086 2007-09-28  Jim Meyering  <jim@meyering.net>
37087
37088         Fix canonicalize loop-detection corner case.
37089         Do not attempt to stat the symlink values stored via seen_triple.
37090         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
37091         on linux-2.6.18, (but not 2.6.22).
37092         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
37093         triple_compare.  The former compares dev,ino,filename, while the latter
37094         would actually stat dirname(filename) when dev and ino were equal.
37095         * lib/hash-triple.c: Install <string.h>.
37096         (STREQ): Define.
37097         (triple_compare_ino_str): New function.
37098         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
37099
37100 2007-09-28  Eric Blake  <ebb9@byu.net>
37101
37102         Enforce that AC_REPLACE_FUNCS files exist.
37103         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
37104         override check for typos.
37105
37106         Fix test-closein on Solaris 10.
37107         * tests/test-closein.c (main): Don't assume stdin can be inherited
37108         closed on all systems.
37109         * tests/test-closein.sh: Likewise.
37110         Reported by Piotr Tarnowski.
37111
37112 2007-09-28  Jim Meyering  <jim@meyering.net>
37113
37114         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
37115
37116 2007-09-27  Jim Meyering  <jim@meyering.net>
37117
37118         canonicalize: Avoid a false-positive cycle failure.
37119         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
37120         Sort.  Remove cycle-check.
37121         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
37122         not cycle-check.h.
37123         (seen_triple): New function.
37124         (canonicalize_filename_mode): Use it instead of cycle-check.
37125         * tests/test-canonicalize.c: Add a test for this bug.
37126         * tests/test-canonicalize.sh: Set up and run the test.
37127
37128         New module, file-set, from coreutils.
37129         * modules/file-set: Define it.
37130         * lib/file-set.c, lib/file-set.h: Implement.
37131
37132         New module, hash-triple, from coreutils.
37133         * modules/hash-triple: Define it.
37134         * lib/hash-triple.c, lib/hash-triple.h: Implement.
37135
37136 2007-09-25  Eric Blake  <ebb9@byu.net>
37137
37138         Fix strerror on Interix.
37139         * lib/string_.h (strerror): Declare replacement.
37140         * doc/functions/strerror.texi (strerror): Document the Interix
37141         shortcoming.
37142         * modules/string (Makefile.am): Support new hooks.
37143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
37144         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
37145         gl_FUNC_STRERROR_SEPARATE.
37146         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
37147         * lib/strerror.c (rpl_strerror): Provide replacement.
37148         * modules/strerror (Depends-on): Add string.
37149         (configure.ac): Detect use of module.
37150         * tests/test-strerror.c: New file.
37151         * modules/strerror-tests: New test module.
37152         * modules/argp (Depends-on): Add strerror.
37153         * modules/error (Depends-on): Likewise.
37154         Reported by Martin Koeppe.
37155
37156 2007-09-24  Bruno Haible  <bruno@clisp.org>
37157
37158         * README: Update git instructions.
37159
37160 2007-09-24  Eric Blake  <ebb9@byu.net>
37161
37162         Revert fpending breakage from 2007-09-08.
37163         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37164         __fpending.c.
37165
37166 2007-09-24  Jim Meyering  <jim@meyering.net>
37167
37168         filenamecat.c: Add a test.
37169         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37170         showing how the function works when DIR is the empty string.
37171
37172 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37173
37174         * tests/test-canonicalize.sh: Turn on executable bit.
37175
37176 2007-09-19  Eric Blake  <ebb9@byu.net>
37177
37178         * README: Update CVS instructions.
37179
37180 2007-09-18  Bruno Haible  <bruno@clisp.org>
37181
37182         * modules/areadlink: New file.
37183         * lib/areadlink.h (areadlink): New declaration.
37184         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37185
37186 2007-09-17  Jim Meyering  <jim@meyering.net>
37187
37188         * lib/savewd.c (ESTALE) [!defined]: Define.
37189         Reported to be required on Interix by Martin Koeppe.
37190
37191 2007-09-17  Bruno Haible  <bruno@clisp.org>
37192
37193         * gnulib-tool (func_version): Use $version.
37194
37195 2007-09-16  Bruno Haible  <bruno@clisp.org>
37196
37197         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37198         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37199         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37200         Reported by Greg Schafer <gschafer@zip.com.au>.
37201
37202 2007-09-15  Bruno Haible  <bruno@clisp.org>
37203
37204         * gnulib-tool (sed): Try a little harder to make bash understand the
37205         alias.
37206         Reported by Bruce Korb <bruce.korb@gmail.com>.
37207
37208 2007-09-13  Eric Blake  <ebb9@byu.net>
37209
37210         * ChangeLog: Remove conflict markers.
37211
37212 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37213
37214         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37215         Reported by Bruno Haible <bruno@clisp.org>.
37216
37217 2007-09-12  Bruno Haible  <bruno@clisp.org>
37218
37219         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37220         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37221         is not defined.
37222
37223 2007-09-12  Eric Blake  <ebb9@byu.net>
37224
37225         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37226         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37227         Autoconf definition.
37228         * modules/euidaccess (Depends-on): Add extensions, for
37229         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37230         * modules/fnmatch (Depends-on): Likewise.
37231         * modules/getaddrinfo (Depends-on): Likewise.
37232         * modules/getdelim (Depends-on): Likewise.
37233         * modules/getline (Depends-on): Likewise.
37234         * modules/getsubopt (Depends-on): Likewise.
37235         * modules/gettext (Depends-on): Likewise.
37236         * modules/group-member (Depends-on): Likewise.
37237         * modules/mbchar (Depends-on): Likewise.
37238         * modules/memmem (Depends-on): Likewise.
37239         * modules/mempcpy (Depends-on): Likewise.
37240         * modules/memrchr (Depends-on): Likewise.
37241         * modules/pagealign_alloc (Depends-on): Likewise.
37242         * modules/readutmp (Depends-on): Likewise.
37243         * modules/stpcpy (Depends-on): Likewise.
37244         * modules/stpncpy (Depends-on): Likewise.
37245         * modules/strchrnul (Depends-on): Likewise.
37246         * modules/strndup (Depends-on): Likewise.
37247         * modules/strsep (Depends-on): Likewise.
37248         * modules/strverscmp (Depends-on): Likewise.
37249         * modules/vasprintf (Depends-on): Likewise.
37250         * modules/wcwidth (Depends-on): Likewise.
37251         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37252         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37253         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37254         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37255         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37256         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37257         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37258         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37259         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37260         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37261         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37262         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37263         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37264         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37265         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37266         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37267         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37268         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37269         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37270         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37271         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37272         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37273         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37274         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37275         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37277         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37278         so that lock.m4 can be used in gettext without extensions module.
37279
37280 2007-09-11  Bruno Haible  <bruno@clisp.org>
37281
37282         * m4/isc-posix.m4: Remove file.
37283         Suggested by Eric Blake.
37284
37285 2007-09-11  Eric Blake  <ebb9@byu.net>
37286
37287         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37288
37289 2007-09-10  Bruno Haible  <bruno@clisp.org>
37290
37291         * posix-modules: Fix typo in error message.
37292         Reported by Matt <mkraai@beckman.com>.
37293
37294 2007-09-09  Bruno Haible  <bruno@clisp.org>
37295
37296         * doc/functions/getdelim.texi: Update list of platforms lacking the
37297         function.
37298         * doc/functions/getline.texi: Likewise.
37299
37300 2007-09-09  Jim Meyering  <jim@meyering.net>
37301
37302         * lib/hash.c (hash_initialize): Detect calloc failure.
37303         Reported by Bruno Haible.
37304
37305 2007-09-09  Bruno Haible  <bruno@clisp.org>
37306
37307         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37308         malloc or realloc fails.
37309
37310 2007-09-09  Bruno Haible  <bruno@clisp.org>
37311
37312         * modules/getcwd (Depends-on): Add malloc-posix.
37313         * modules/glob (Depends-on): Likewise.
37314         * modules/putenv (Depends-on): Likewise.
37315         * modules/strdup (Depends-on): Likewise.
37316         * modules/getdelim (Depends-on): Add realloc-posix.
37317         * modules/read-file (Depends-on): Likewise.
37318
37319 2007-09-09  Bruno Haible  <bruno@clisp.org>
37320
37321         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37322         (gl_FUNC_MALLOC_POSIX): Require it.
37323         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37324         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37325         * modules/realloc (Files): Add m4/malloc.m4.
37326         * modules/calloc (Files): Likewise.
37327
37328 2007-09-09  Bruno Haible  <bruno@clisp.org>
37329
37330         * modules/malloc-posix: New file.
37331         * modules/malloc (Depends-on): Add malloc-posix.
37332         * lib/malloc.c: Include errno.h.
37333         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37334         and a POSIX-compatible malloc into a single function. Set ENOMEM
37335         when returning NULL.
37336         * m4/malloc.m4: New file.
37337         * doc/functions/malloc.texi: Mention the malloc-posix module.
37338         * lib/stdlib_.h (malloc): New declaration.
37339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37340         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37341         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37342         and HAVE_MALLOC_POSIX.
37343
37344 2007-09-09  Bruno Haible  <bruno@clisp.org>
37345
37346         * modules/realloc-posix: New file.
37347         * modules/realloc (Depends-on): Add realloc-posix.
37348         * lib/realloc.c: Include errno.h.
37349         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37350         and a POSIX-compatible realloc into a single function. Set ENOMEM
37351         when returning NULL.
37352         * m4/realloc.m4: New file.
37353         * doc/functions/realloc.texi: Mention the realloc-posix module.
37354         * lib/stdlib_.h (realloc): New declaration.
37355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37356         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37357         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37358         and HAVE_REALLOC_POSIX.
37359
37360 2007-09-09  Bruno Haible  <bruno@clisp.org>
37361
37362         * modules/calloc-posix: New file.
37363         * modules/calloc (Depends-on): Add calloc-posix.
37364         * lib/calloc.c: Include errno.h.
37365         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37366         and a POSIX-compatible calloc into a single function. Set ENOMEM
37367         when returning NULL.
37368         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37369         * doc/functions/calloc.texi: Mention the calloc-posix module.
37370         * lib/stdlib_.h (calloc): New declaration.
37371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37372         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37373         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37374         and HAVE_CALLOC_POSIX.
37375
37376 2007-09-09  Bruno Haible  <bruno@clisp.org>
37377
37378         Allow for modules to show an arbitrary notice.
37379         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37380         * gnulib-tool: New option --extract-notice.
37381         (func_usage): Document it.
37382         (sed_extract_prog): Update.
37383         (func_get_notice): New function.
37384         (func_modules_notice): New function.
37385         (func_import, func_create_testdir): Invoke it.
37386         Suggested by Jim Meyering.
37387
37388 2007-09-09  Bruno Haible  <bruno@clisp.org>
37389
37390         * gnulib-tool: New options --verbose, --quiet.
37391         (func_usage): Document them.
37392         (verbose): New variable.
37393         (func_execute_command): New function.
37394         (func_import): Don't show the module list and the file list if
37395         $verbose < 0.
37396         (func_create_testdir): Likewise. Use func_execute_command.
37397         (func_create_megatestdir): Use func_execute_command.
37398
37399 2007-09-08  Bruno Haible  <bruno@clisp.org>
37400
37401         * gnulib-tool (func_import): Prefer rsync over wget when available,
37402         for fetching the PO files.
37403
37404 2007-09-08  Bruno Haible  <bruno@clisp.org>
37405
37406         * posix-modules: New file. Portions copied from gnulib-tool.
37407         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37408
37409 2007-09-08  Jim Meyering  <jim@meyering.net>
37410
37411         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37412         * lib/fpending.h: Rename from __fpending.h.
37413         * lib/fpending.c: Rename from __fpending.c.
37414         Include "fpending.h", not "__fpending.h".
37415         * lib/__fpending.h, lib/__fpending.c: Remove files.
37416         * modules/fpending (Files): Reflect new file names.
37417         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37418
37419 2007-09-08  Bruno Haible  <bruno@clisp.org>
37420
37421         * m4/inttypes-h.m4: Remove stub file.
37422
37423 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37424
37425         * doc/headers/stdint.texi: Discuss #include_next issue.
37426
37427 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37428
37429         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37430
37431 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37432
37433         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37434         in variable name.
37435
37436 2007-09-03  Jim Meyering  <jim@meyering.net>
37437
37438         New module: git-version-gen.
37439         * modules/git-version-gen: New file.
37440
37441         Import changes from coreutils for bootstrap script.
37442
37443         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37444
37445         bootstrap: uses rsync to download the .po files
37446         * build-aux/bootstrap (po_download_command_format): New global.
37447         (download_po_files): Use rsync.
37448         (update_po_files): Don't remove .po files after download,
37449         so future rsync runs can take advantage of the copies.
37450
37451         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37452
37453         Solve the unnecessary-.po-file-regeneration problem once and for all.
37454         * build-aux/bootstrap (download_po_files): New function, renamed from
37455         get_translations.  Now, downloads, but doesn't update LINGUAS.
37456         (update_po_files): New function.
37457
37458         bootstrap: Ignore more.
37459         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37460         uniwidth to e.g., lib/.gitignore.
37461         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37462
37463         * build-aux/bootstrap: New setting: vc_ignore.
37464         (insert_sorted_if_absent): Create $file if absent.
37465         Adapt to new, possibly empty, list: $vc_ignore.
37466
37467         bootstrap: generate more ignorable names
37468         * build-aux/bootstrap (slurp): When generating ignorable names,
37469         also map .sin to .sed, .gperf to .c, and .y to .c.
37470
37471 2007-09-03  Jim Meyering  <jim@meyering.net>
37472
37473         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37474         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37475
37476 2007-09-02  Bruno Haible  <bruno@clisp.org>
37477
37478         Fix mis-recognition of 'mcs' on QNX 6.
37479         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37480         output contains the string "Mono".
37481         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37482         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37483
37484 2007-09-01  Bruno Haible  <bruno@clisp.org>
37485
37486         Fix collision between uniwidth/* and linebreak modules.
37487         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37488         u32_width): Remove declarations.
37489         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37490         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37491         streq3, streq2, streq1, streq0): Remove functions.
37492         (STREQ): Remove macro.
37493         (is_cjk_encoding): Remove function.
37494         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37495         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37496         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37497         * NEWS: Document the change.
37498
37499 2007-09-01  Bruno Haible  <bruno@clisp.org>
37500
37501         * lib/streq.h: Add double-inclusion guard.
37502
37503 2007-09-01  Karl Berry  <karl@gnu.org>
37504
37505         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37506
37507 2007-08-28  Jim Meyering  <jim@meyering.net>
37508
37509         Rename mreadlink_with_size to areadlink_with_size.
37510         * NEWS: Document the change.
37511         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37512         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37513         * lib/mreadlink.h: Rename this to...
37514         * lib/areadlink.h: ...this.
37515         * modules/mreadlink-with-size: Rename this to...
37516         * modules/areadlink-with-size: ...this.
37517         * lib/canonicalize.c: Reflect the renaming.
37518         * modules/canonicalize: Likewise.
37519
37520 2007-08-26  Bruno Haible  <bruno@clisp.org>
37521
37522         * gnulib-tool (func_import): When deciding which files to remove,
37523         consider also dangling symbolic links.
37524         Reported by Eric Blake.
37525
37526 2007-08-26  Bruno Haible  <bruno@clisp.org>
37527
37528         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37529
37530 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37531
37532         * lib/readline.c: Don't include getline.h, the prototype is now
37533         found in stdio.h.
37534
37535 2007-08-23  Jim Meyering  <jim@meyering.net>
37536
37537         Getdelim touchup.
37538         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37539         around the funlockfile call, since funlockfile never sets errno.
37540         Don't set errno upon failed realloc.
37541
37542 2007-08-22  Eric Blake  <ebb9@byu.net>
37543
37544         Getline touchups.
37545         * lib/getdelim.c (getdelim): Revert regression that required *n to
37546         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37547         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37548         getdelim, rather than whether implementation is missing.
37549         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37550         * lib/stdio_.h (getline): Also declare if replacement is
37551         required.
37552         * doc/functions/getdelim.texi: New file.
37553         * doc/functions/getline.texi: Likewise.
37554         * doc/gnulib.texi (Function Substitutes): Add new files.
37555         Reported by Bruno Haible.
37556
37557 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37558
37559         * users.txt: Add Guile.
37560
37561 2007-08-22  Eric Blake  <ebb9@byu.net>
37562
37563         * tests/test-getdelim.c (main): Use remove, not unlink.
37564         * tests/test-getline.c (main): Likewise.
37565
37566         Move getline and getdelim into stdio.h, per POSIX 200x.
37567         * modules/getline (Files): Remove getline.h.
37568         (Depends-on): Add stdio.
37569         (configure.ac): Add module indicator.
37570         * modules/getdelim (Files): Remove getdelim.h.
37571         (Depends-on): Add stdio.
37572         (configure.ac): Add module indicator.
37573         * modules/stdio (Makefile.am): Work with new indicators.
37574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37575         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37576         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37577         * lib/getdelim.h: Delete.
37578         * lib/getline.h: Delete.
37579         * lib/stdio_.h (getdelim, getline): Declare.
37580         * modules/getdelim-tests: New module.
37581         * modules/getline-tests: Likewise.
37582         * tests/test-getdelim.c: New file.
37583         * tests/test-getline.c: Likewise.
37584         * NEWS: Document the change.
37585         * lib/getline.c: Update choice of header.
37586         * lib/csharpcomp.c: Likewise.
37587         * lib/getpass.c: Likewise.
37588         * lib/javacomp.c: Likewise.
37589         * lib/javaversion.c: Likewise.
37590         * lib/yesno.c: Likewise.
37591         * lib/getdelim.c: Likewise.
37592         (getdelim): Set errno on failure, and avoid memory leak.
37593
37594 2007-08-19  Bruno Haible  <bruno@clisp.org>
37595
37596         * modules/closein (Depends-on): Add freadahead.
37597         * lib/closein.c: Include freadahead.h.
37598         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37599         is zero.
37600
37601 2007-08-19  Bruno Haible  <bruno@clisp.org>
37602
37603         * modules/freadahead-tests: New file.
37604         * tests/test-freadahead.sh: New file.
37605         * tests/test-freadahead.c: New file.
37606
37607         * modules/freadahead: New file.
37608         * lib/freadahead.h: New file.
37609         * lib/freadahead.c: New file.
37610         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37611         fbufmode, fpurge, freadable, fwritable.
37612
37613 2007-08-19  Eric Blake  <ebb9@byu.net>
37614
37615         Test yesno in combination with closein.
37616         * lib/yesno.c (yesno): Document use of stdin.
37617         * modules/yesno-tests (Files): New module.
37618         * tests/test-yesno.c (main): New file.
37619         * tests/test-yesno.sh: Likewise.
37620
37621 2007-08-19  Bruno Haible  <bruno@clisp.org>
37622
37623         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37624         * lib/fseeko.c (rpl_fseeko): Likewise.
37625         * lib/fseterr.c (fseterr): Likewise.
37626
37627 2007-08-19  Bruno Haible  <bruno@clisp.org>
37628
37629         * tests/test-lseek.c (main): Disable a test for BeOS.
37630         * doc/functions/lseek.texi: Document the BeOS bug.
37631
37632 2007-08-19  Bruno Haible  <bruno@clisp.org>
37633             Eric Blake  <ebb9@byu.net>
37634
37635         * lib/lseek.c: Include <sys/stat.h>.
37636         (rpl_lseek): Add workaround code also for Unix platforms.
37637         Needed for BeOS.
37638         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37639         * doc/functions/lseek.texi: Document BeOS definiency.
37640
37641 2007-08-18  Bruno Haible  <bruno@clisp.org>
37642
37643         * modules/fstrcmp-tests: New file.
37644         * tests/test-fstrcmp.c: New file.
37645
37646 2007-08-18  Bruno Haible  <bruno@clisp.org>
37647
37648         * modules/fstrcmp: New file, from GNU gettext with modifications.
37649         * lib/fstrcmp.h: New file, from GNU gettext.
37650         * lib/fstrcmp.c: New file, from GNU gettext.
37651         * MODULES.html.sh (String handling): Add fstrcmp.
37652
37653 2007-08-18  Bruno Haible  <bruno@clisp.org>
37654
37655         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37656         'bool'.
37657         (diag, compareseq): Remove const from the ctxt argument.
37658         (USE_HEURISTIC): Undefine at the end.
37659
37660 2007-08-18  Jim Meyering  <jim@meyering.net>
37661
37662         New file: lib/idcache.h
37663         * NEWS: Mention the addition.
37664         * modules/idcache (Files): Add lib/idcache.h
37665         * lib/idcache.c: Include "idcache.h".
37666         Don't include <sys/types.h>.
37667         Add a FIXME comment.
37668         Move file-scoped "static" declarations to the top.
37669         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37670
37671 2007-08-17  Bruno Haible  <bruno@clisp.org>
37672         and Paul Eggert  <eggert@cs.ucla.edu>
37673
37674         * MODULES.html.sh: Add diffseq.
37675         * modules/diffseq: New file.
37676         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37677         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37678
37679 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37680
37681         Import changes from coreutils for bootstrap script.
37682
37683         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37684
37685         * build-aux/bootstrap (slurp): Work even in environments where
37686         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37687         current code does not slurp files whose names start with ".", and
37688         this looks like it might be a troublesome area.
37689
37690         2007-07-11  Jim Meyering  <jim@meyering.net>
37691
37692         If there's a GPL vN copyright comment, require that N == 3.
37693
37694         2007-07-08  Jim Meyering  <jim@meyering.net>
37695
37696         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37697         * build-aux/bootstrap (mam_template): Move definition out of loop.
37698
37699         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37700
37701         * build-aux/bootstrap (symlink_to_dir): Rename function from
37702         symlink_to_gnulib.  Add a directory parameter.  Update all
37703         callers.
37704         (cp_mark_as_generated): Also check for -- and link to -- files in
37705         gl/.
37706
37707         2007-07-08  Jim Meyering  <jim@meyering.net>
37708
37709         Adapt to deeper hierarchy in gnulib.
37710         * build-aux/bootstrap (symlink_to_dir): If the destination
37711         directory doesn't exist, create it. This is required at least for
37712         "lib/uniwidth/cjk.h".
37713
37714         2007-05-15  Jim Meyering  <jim@meyering.net>
37715
37716         * build-aux/bootstrap: Now that generated Makefile.am files
37717         are no longer under version control, they must be created at
37718         bootstrap time.
37719
37720 2007-08-14  Ben Pfaff  <blp@gnu.org>
37721
37722         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37723
37724 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37725
37726         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37727         given the changes below.
37728         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37729         even on hosts that have padding bits beyond the supported 64.
37730
37731 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37732
37733         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37734         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37735         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37736         depends on it.
37737         (xstrtol_error): Remove.
37738         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37739         but with a different signature.
37740         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37741         * lib/xstrtol-error.c: Include exitfail.h.
37742         (xstrtol_fatal): New function, with a different signature from the
37743         old xstrtol_error, so that the caller need not worry about passing
37744         in an exit status, or about storage management of the option argument.
37745         (xstrtol_error): Now a static function.  Redo signature to
37746         implement xstrtol_fatal.  Output the correct number of hyphens in
37747         front of the option so that the caller need not worry about
37748         storage management.
37749         (N_): New macro.
37750         (_): Remove; not used now.
37751         * modules/xstrtol: Depend on getopt.
37752         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37753         of old STRTOL_FATAL_ERROR macro.
37754         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37755         of test program.
37756         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37757         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37758
37759 2007-08-08  Eric Blake  <ebb9@byu.net>
37760
37761         * lib/xstrtol-error.c: Add missing include.
37762
37763         Move xstrtol messages into gnulib domain, when --pobase is used.
37764         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37765         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37766         * modules/xstrtol (Files): Distribute new file.
37767         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37768         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37769         * tests/test-xstrtol.c: ...into new file.
37770         * tests/test-xstrtoul.c: Also test xstrtoul.
37771         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37772         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37773         * tests/test-xstrtol.sh: Drive the tests.
37774         * tests/test-xstrtoimax.sh: Likewise.
37775         * tests/test-xstrtoumax.sh: Likewise.
37776         * modules/xstrtol-tests: New module.
37777         * modules/xstrtoimax-tests: Likewise.
37778         * modules/xstrtoumax-tests: Likewise.
37779
37780 2007-08-08  Jim Meyering  <jim@meyering.net>
37781
37782         New function: mfile_name_concat.
37783         * lib/filenamecat.c (mfile_name_concat): New function, just like
37784         file_name_concat, but return NULL upon failure rather than exiting
37785         with a diagnostic.
37786         * lib/filenamecat.h: Declare it.
37787
37788 2007-08-07  Bruno Haible  <bruno@clisp.org>
37789
37790         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37791         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37792         warning from gcc.
37793         Reported by Eric Blake.
37794
37795 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37796
37797         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37798         * modules/crypto/arcfour (License): Likewise.
37799         * modules/crypto/des-tests (License): Likewise.
37800         * modules/crypto/gc-arctwo-tests (License): Likewise.
37801         * modules/crypto/gc-des-tests (License): Likewise.
37802         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37803         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37804         * modules/crypto/gc-md2-tests (License): Likewise.
37805         * modules/crypto/gc-md4-tests (License): Likewise.
37806         * modules/crypto/gc-md5-tests (License): Likewise.
37807         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37808         * modules/crypto/gc-rijndael-tests (License): Likewise.
37809         * modules/crypto/gc-sha1-tests (License): Likewise.
37810         * modules/crypto/gc-tests (License): Likewise.
37811         * modules/crypto/hmac-md5 (License): Likewise.
37812         * modules/crypto/hmac-sha1 (License): Likewise.
37813         * modules/crypto/md2-tests (License): Likewise.
37814         * modules/crypto/md4-tests (License): Likewise.
37815         * modules/crypto/md5 (License): Likewise.
37816         * modules/crypto/rijndael (License): Likewise.
37817         * modules/crypto/sha1 (License): Likewise.
37818         * modules/memxor (License): Likewise.
37819
37820 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37821         and Bruno Haible  <bruno@clisp.org>
37822
37823         * NEWS: Describe interface changes to human, xstrtol.
37824         * lib/human.h: Include <xstrtol.h>.
37825         (human_options): Return enum strtol_error, not int.  Remove
37826         bool arg; take int * instead.
37827         * lib/human.c: Don't include "gettext.h".
37828         (_): Remove; no longer used.
37829         Don't include <xstrtol.h>, since human.h does it.
37830         (human_options): Adjust to abovementioned interface changes.
37831         Do not report error to stderr; that's now the caller's
37832         responsibility.
37833         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
37834         interface change.
37835         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
37836         Str, Argument_type_string.  All uses changed.  Put " argument"
37837         in diagnostics to make them clearer.  Change wording of suffix
37838         message for clarity.
37839         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
37840         Argument_type_string.
37841         (STRTOL_FATAL_WARN): Remove; no longer used.
37842         * modules/human (Depends-on): Remove gettext-h.
37843
37844 2007-08-06  Simon Josefsson  <simon@josefsson.org>
37845
37846         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
37847
37848 2007-07-31  Bruno Haible  <bruno@clisp.org>
37849
37850         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
37851         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
37852         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
37853
37854 2007-07-31  Bruno Haible  <bruno@clisp.org>
37855
37856         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
37857         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
37858
37859 2007-07-30  Bruno Haible  <bruno@clisp.org>
37860
37861         * modules/base64 (License): Use the synonymous term "LGPLv2+".
37862         * modules/c-ctype (License): Likewise.
37863         * modules/c-strcase (License): Likewise.
37864         * modules/check-version (License): Likewise.
37865         * modules/iconv (License): Likewise.
37866         * modules/iconv_open (License): Likewise.
37867         * modules/read-file (License): Likewise.
37868         * modules/striconv (License): Likewise.
37869         * modules/strverscmp (License): Likewise.
37870         * modules/vasprintf (License): Likewise.
37871         * modules/crypto/des (License): Likewise.
37872         * modules/crypto/gc (License): Likewise.
37873         * modules/crypto/gc-arcfour (License): Likewise.
37874         * modules/crypto/gc-arctwo (License): Likewise.
37875         * modules/crypto/gc-des (License): Likewise.
37876         * modules/crypto/gc-hmac-md5 (License): Likewise.
37877         * modules/crypto/gc-hmac-sha1 (License): Likewise.
37878         * modules/crypto/gc-md2 (License): Likewise.
37879         * modules/crypto/gc-md4 (License): Likewise.
37880         * modules/crypto/gc-md5 (License): Likewise.
37881         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
37882         * modules/crypto/gc-random (License): Likewise.
37883         * modules/crypto/gc-rijndael (License): Likewise.
37884         * modules/crypto/gc-sha1 (License): Likewise.
37885         * modules/crypto/md2 (License): Likewise.
37886         * modules/crypto/md4 (License): Likewise.
37887
37888 2007-07-30  Jim Meyering  <jim@meyering.net>
37889
37890         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
37891         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
37892         it has valid stat data.  This bug would cause du not to count the
37893         sizes of inaccessible directories.
37894         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
37895         in <http://bugzilla.redhat.com/250077>.
37896
37897 2007-07-25  Peter O'Gorman  <peter@pogma.com>
37898             Bruno Haible  <bruno@clisp.org>
37899
37900         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
37901         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
37902         #include_next, gives a diagnostic about it, but reports no error in
37903         the exit code.
37904         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37905
37906 2007-07-24  Ben Pfaff  <blp@gnu.org>
37907
37908         Improve name: "count-one-bits" is better than "popcount".
37909         * MODULES.html.sh: Update name.
37910         * lib/popcount.h: Renamed lib/count-one-bits.h.
37911         (popcount): Renamed count_one_bits.
37912         (popcountl): Renamed count_one_bits_l.
37913         (popcountll): Renamed count_one_bits_ll.
37914         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
37915         * modules/popcount: Renamed module/count-one-bits.
37916         * modules/popcount-tests: Renamed module/count-one-bits-tests.
37917         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
37918
37919 2007-07-23  Ben Pfaff  <blp@gnu.org>
37920
37921         * lib/popcount.h (popcount32): Reduce size of constants, to allow
37922         better code generation, and add U to large constants to avoid
37923         warnings, in non-GCC case.
37924         Suggested by Bruno Haible.
37925
37926 2007-07-23  Ben Pfaff  <blp@gnu.org>
37927
37928         * lib/popcount.h: Use verify_true instead of if...abort.
37929         * modules/popcount: Depend on verify module.
37930         Suggested by Jim Meyering.
37931
37932 2007-07-23  Bruno Haible  <bruno@clisp.org>
37933
37934         * gnulib-tool (func_import): Create a .cvsignore file also when the
37935         directory is not yet in CVS but the toplevel directory is. When
37936         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
37937         Reported by Karl Berry.
37938
37939 2007-07-22  Ben Pfaff  <blp@gnu.org>
37940
37941         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
37942         case.
37943         Suggested by Eric Blake.
37944
37945 2007-07-22  Ben Pfaff  <blp@gnu.org>
37946
37947         New module: popcount.
37948         * MODULES.html.sh: Add popcount.
37949         * modules/popcount: New file.
37950         * modules/popcount-tests: New file.
37951         * tests/test-popcount.c: New file.
37952         * lib/popcount.h: New file.
37953         * m4/popcount.m4: New file.
37954
37955 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
37956
37957         * build-aux/announce-gen: Update to GPLv3.
37958
37959         * build-aux/config.guess: Update from config.
37960
37961 2007-07-21  Bruno Haible  <bruno@clisp.org>
37962
37963         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
37964         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
37965
37966 2007-07-20  Jim Meyering  <jim@meyering.net>
37967
37968         * check-module: Diagnose a self-dependency.
37969
37970 2007-07-19  Bruno Haible  <bruno@clisp.org>
37971
37972         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
37973         empty.
37974         Reported by Eric Blake.
37975
37976 2007-07-18  Bruno Haible  <bruno@clisp.org>
37977
37978         * gnulib-tool: New options --po-base, --po-domain.
37979         (func_usage): Document them.
37980         (pobase, po_domain): New variables.
37981         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
37982         DEFAULT_TEXT_DOMAIN.
37983         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
37984         (func_import): Consider pobase and po_domain. Create a po/ directory.
37985         (func_create_testdir): Set pobase and po_domain to empty.
37986         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
37987         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
37988
37989 2007-07-18  Bruno Haible  <bruno@clisp.org>
37990
37991         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37992         EXTRA_DIST augmentation for files in build-aux/.
37993
37994 2007-07-16  Bruno Haible  <bruno@clisp.org>
37995
37996         * modules/lseek (License): Use the synonymous term "LGPLv2+".
37997         * modules/getdelim (License): Likewise.
37998
37999 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38000
38001         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
38002         * modules/d-type (License): Likewise.
38003         * modules/extensions (License): Likewise.
38004         * modules/fnmatch (License): Likewise.
38005         * modules/fseeko (License): Likewise.
38006         * modules/getaddrinfo (License): Likewise.
38007         * modules/getline (License): Likewise.
38008         * modules/getlogin_r (License): Likewise.
38009         * modules/getpass (License): Likewise.
38010         * modules/gettimeofday (License): Likewise.
38011         * modules/glob (License): Likewise.
38012         * modules/inet_ntop (License): Likewise.
38013         * modules/malloc (License): Likewise.
38014         * modules/malloca (License): Likewise.
38015         * modules/memmem (License): Likewise.
38016         * modules/mempcpy (License): Likewise.
38017         * modules/memset (License): Likewise.
38018         * modules/minmax (License): Likewise.
38019         * modules/mktime (License): Likewise.
38020         * modules/netinet_in (License): Likewise.
38021         * modules/pathmax (License): Likewise.
38022         * modules/poll (License): Likewise.
38023         * modules/regex (License): Likewise.
38024         * modules/snprintf (License): Likewise.
38025         * modules/stdbool (License): Likewise.
38026         * modules/stdint (License): Likewise.
38027         * modules/stdio (License): Likewise.
38028         * modules/strcase (License): Likewise.
38029         * modules/strcasestr (License): Likewise.
38030         * modules/strdup (License): Likewise.
38031         * modules/string (License): Likewise.
38032         * modules/strndup (License): Likewise.
38033         * modules/strnlen (License): Likewise.
38034         * modules/strpbrk (License): Likewise.
38035         * modules/strptime (License): Likewise.
38036         * modules/strsep (License): Likewise.
38037         * modules/sys_select (License): Likewise.
38038         * modules/sys_socket (License): Likewise.
38039         * modules/sys_stat (License): Likewise.
38040         * modules/sys_time (License): Likewise.
38041         * modules/time (License): Likewise.
38042         * modules/time_r (License): Likewise.
38043         * modules/timegm (License): Likewise.
38044         * modules/unistd (License): Likewise.
38045         * modules/vsnprintf (License): Likewise.
38046         * modules/wctype (License): Likewise.
38047
38048 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38049
38050         * modules/argz (License): LGPLv2+.
38051
38052 2007-07-15  Karl Berry  <karl@gnu.org>
38053
38054         * doc/gnulib.texi: revise node structure per new fdl.texi.
38055
38056 2007-07-14  Bruno Haible  <bruno@clisp.org>
38057
38058         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
38059         the output file.
38060         * lib/uniname/uninames.h: Regenerated.
38061
38062 2007-07-14  Karl Berry  <karl@gnu.org>
38063
38064         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
38065         omitting sectioning and index commands.
38066
38067 2007-07-13  Bruno Haible  <bruno@clisp.org>
38068
38069         New gnulib-tool option --more-symlinks.
38070         * gnulib-tool (func_usage): Document --more-symlinks.
38071         (do_copyrights): New variable.
38072         Recognize option --more-symlinks.
38073         (func_import): Don't add a copyright notice transform to
38074         sed_transform_lib_file if do_copyrights is empty.
38075
38076 2007-07-13  Bruno Haible  <bruno@clisp.org>
38077
38078         * lib/vasnprintf.c (decimal_point_char): Define also if
38079         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
38080         && !NEED_PRINTF_DIRECTIVE_A.
38081         Reported by Clemens Koller <clemens.koller@anagramm.de> via
38082         Gary V. Vaughan <gary@gnu.org>.
38083
38084 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
38085
38086         * lib/inttypes_.h: Undo previous change, since it was fixed
38087         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
38088
38089 2007-07-13  Bruno Haible  <bruno@clisp.org>
38090
38091         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
38092         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
38093
38094 2007-07-13  Jim Meyering  <jim@meyering.net>
38095
38096         df: Don't fail for Tru64's "file-on-file mount".
38097         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
38098         so we fall through and use statfs instead.  Details here:
38099         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
38100         Reported by Albert Chin.
38101
38102 2007-07-13  Bruno Haible  <bruno@clisp.org>
38103
38104         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
38105         * modules/configmake (License): Likewise.
38106         * modules/gettext (License): Likewise.
38107         * modules/gettext-h (License): Likewise.
38108         * modules/include_next (License): Likewise.
38109         * modules/link-warning (License): Likewise.
38110         * modules/localcharset (License): Likewise.
38111         * modules/localename (License): Likewise.
38112         * modules/lock (License): Likewise.
38113         * modules/relocatable-lib-lgpl (License): Likewise.
38114         * modules/size_max (License): Likewise.
38115         * modules/vasnprintf (License): Likewise.
38116         * modules/wchar (License): Likewise.
38117         * modules/xsize (License): Likewise.
38118
38119 2007-07-13  Bruno Haible  <bruno@clisp.org>
38120
38121         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
38122         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
38123
38124 2007-07-12  Bruno Haible  <bruno@clisp.org>
38125
38126         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
38127         in the modules files.
38128
38129 2007-07-11  Karl Berry  <karl@gnu.org>
38130
38131         * MODULES.html.sh (func_module): use
38132          sed -e '\|^'"${includefile}"'$|d'
38133          instead of /.../d, to avoid errors on $includefile's containing /.
38134
38135 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38136
38137         * gnulib-tool (func_import): Avoid duplication of --avoid
38138         statements
38139         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
38140         names to `_' in variable names.
38141
38142 2007-07-10  Eric Blake  <ebb9@byu.net>
38143
38144         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
38145         * NEWS: Document this change.
38146
38147 2007-07-08  Bruno Haible  <bruno@clisp.org>
38148
38149         Update to Unicode 5.0.
38150         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
38151         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
38152         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
38153         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
38154         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
38155         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
38156         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
38157         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
38158         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38159         U+10A3F, U+1D242..U+1D244.
38160         (nonspacing_table_ind): Update.
38161         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38162         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38163
38164 2007-07-08  Bruno Haible  <bruno@clisp.org>
38165
38166         Update to Unicode 5.0.
38167         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38168         code transform. Extend the name index field of unicode_name_to_code and
38169         unicode_code_to_name from 16 to 24 bits.
38170         * lib/uniname/uniname.c (unicode_character_name,
38171         unicode_name_character): Add the range 0x12xxx to the code transform.
38172         * lib/uniname/uninames.h: Regenerated.
38173         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38174
38175 2007-07-07  Bruno Haible  <bruno@clisp.org>
38176
38177         * modules/wcwidth-tests: New file.
38178         * tests/test-wcwidth.c: New file.
38179
38180         Work around MacOS X wcwidth() bug.
38181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38182         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38183         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38184         original wcwidth in non-UTF-8 locales.
38185         * modules/wcwidth (Depends-on): Add localcharset, streq,
38186         uniwidth/width.
38187         * doc/functions/wcwidth.texi: Update.
38188
38189 2007-07-07  Bruno Haible  <bruno@clisp.org>
38190
38191         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38192         (wcwidth): New declaration.
38193         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38194         macros.
38195         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38196         here. Prepare for creating <wchar.h> unconditionally.
38197         * modules/wchar (Depends-on): Add link-warning.
38198         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38199         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38200         * lib/wcwidth.h: Remove file.
38201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38202         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38203         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38204         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38205         (Include): Replace wcwidth.h with <wchar.h>.
38206         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38207         * lib/mbchar.h: Don't include wcwidth.h.
38208         * lib/mbswidth.c: Likewise.
38209         * NEWS: Mention the change.
38210
38211 2007-07-07  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38214         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38215         definition with an external declaration.
38216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38217         defined as a function. Remove AC_C_INLINE requirement.
38218         * modules/wcwidth (Files): Add lib/wcwidth.c.
38219         (Makefile.am): Remove redundant statement.
38220
38221 2007-07-07  Bruno Haible  <bruno@clisp.org>
38222
38223         * MODULES.html.sh (Unicode string functions): Add the new modules.
38224
38225         * tests/uniwidth/test-u32-strwidth.c: New file.
38226         * modules/uniwidth/u32-strwidth-tests: New file.
38227
38228         * lib/uniwidth/u32-strwidth.c: New file.
38229         * modules/uniwidth/u32-strwidth: New file.
38230
38231         * tests/uniwidth/test-u16-strwidth.c: New file.
38232         * modules/uniwidth/u16-strwidth-tests: New file.
38233
38234         * lib/uniwidth/u16-strwidth.c: New file.
38235         * modules/uniwidth/u16-strwidth: New file.
38236
38237         * tests/uniwidth/test-u8-strwidth.c: New file.
38238         * modules/uniwidth/u8-strwidth-tests: New file.
38239
38240         * lib/uniwidth/u8-strwidth.c: New file.
38241         * modules/uniwidth/u8-strwidth: New file.
38242
38243         * tests/uniwidth/test-u32-width.c: New file.
38244         * modules/uniwidth/u32-width-tests: New file.
38245
38246         * lib/uniwidth/u32-width.c: New file.
38247         * modules/uniwidth/u32-width: New file.
38248
38249         * tests/uniwidth/test-u16-width.c: New file.
38250         * modules/uniwidth/u16-width-tests: New file.
38251
38252         * lib/uniwidth/u16-width.c: New file.
38253         * modules/uniwidth/u16-width: New file.
38254
38255         * tests/uniwidth/test-u8-width.c: New file.
38256         * modules/uniwidth/u8-width-tests: New file.
38257
38258         * lib/uniwidth/u8-width.c: New file.
38259         * modules/uniwidth/u8-width: New file.
38260
38261         * tests/uniwidth/test-uc_width.c: New file.
38262         * modules/uniwidth/width-tests: New file.
38263
38264         * lib/uniwidth/width.c: New file, from GNU libiconv.
38265         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38266         * modules/uniwidth/width: New file.
38267
38268         * lib/uniwidth.h: New file, from GNU libiconv.
38269         * modules/uniwidth/base: New file.
38270
38271 2007-07-07  Bruno Haible  <bruno@clisp.org>
38272
38273         * lib/uniname.h: New file, from GNU gettext.
38274         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38275         * lib/uniname/uninames.h: New file, from GNU gettext.
38276         * lib/uniname/uniname.c: New file, from GNU gettext.
38277         * tests/uniname/test-uninames.sh: New file.
38278         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38279         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38280         * modules/uniname/base: New file.
38281         * modules/uniname/uniname: New file.
38282         * modules/uniname/uniname-tests: New file.
38283         * MODULES.html.sh (Unicode string functions): Add the new modules.
38284
38285 2007-07-06  Bruno Haible  <bruno@clisp.org>
38286
38287         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38288
38289 2007-07-06  Bruno Haible  <bruno@clisp.org>
38290
38291         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38292         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38293         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38294         include <sys/time.h>.
38295         Reported by Eric Blake.
38296
38297 2007-07-06  Eric Blake  <ebb9@byu.net>
38298
38299         Fix testing canonicalize on cygwin.
38300         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38301         Revert patch from 2007-06-19.
38302         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38303         canonicalize module is also in use.
38304         * tests/test-canonicalize.c: New file.
38305         * tests/test-canonicalize.sh: Likewise.
38306         * modules/canonicalize-tests: Likewise.
38307
38308 2007-07-06  Jim Meyering  <jim@meyering.net>
38309
38310         * lib/getugroups.c (getugroups): Detect getgrent failure.
38311         Adjust comment to reflect reality: this function may return -1.
38312
38313 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38314
38315         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38316         the new TP address.
38317         (usage): Fix typo
38318         (gnulib_mk): New variable.
38319
38320 2007-07-05  Jim Meyering  <jim@meyering.net>
38321
38322         Don't let endgrent clobber errno, no matter how improbable.
38323         * lib/getugroups.c (getugroups): Save and restore errno around
38324         endgrent call.
38325
38326         Close the group DB even when failing with 2^31 or more members.
38327         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38328
38329 2007-07-04  Jim Meyering  <jim@meyering.net>
38330
38331         * lib/getugroups.h: New file.
38332         * lib/getugroups.c: Include "getugroups.h".
38333         Remove uses of "register" keyword.
38334         Move local variable, "cp", down into scope where used.
38335         Give "username" parameter the "const" attribute.
38336         * modules/getugroups (Files): Add lib/getugroups.h
38337
38338 2007-07-04  Karl Berry  <karl@gnu.org>
38339
38340         * MODULES.html.sh (func_all_modules): Complete rename of
38341         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38342
38343 2007-07-02  Bruno Haible  <bruno@clisp.org>
38344
38345         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38346         mode, when inttypes.h comes from gnulib.
38347         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38348
38349 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38350
38351         * NEWS: Mention lgpl module name change.
38352
38353         * modules/lgpl-2.1: Renamed from lgpl.
38354
38355         * NEWS: Mention gpl module name change.
38356
38357         * modules/gpl-3.0: New file, based on gpl-2.0.
38358
38359         * modules/gpl-2.0: Renamed from gpl.
38360
38361         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38362         doc/gpl-2.0.texi.
38363
38364 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38365
38366         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38367         #define __STDC_LIMIT_MACROS temporarily while including
38368         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38369         Problem reported by Joel E. Denny in
38370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38371
38372 2007-07-01  Bruno Haible  <bruno@clisp.org>
38373
38374         * lib/unistdio.h: New file.
38375         * lib/unistdio/u-asnprintf.h: New file.
38376         * lib/unistdio/u-asprintf.h: New file.
38377         * lib/unistdio/u-printf-args.c: New file.
38378         * lib/unistdio/u-printf-args.h: New file.
38379         * lib/unistdio/u-printf-parse.h: New file.
38380         * lib/unistdio/u-snprintf.h: New file.
38381         * lib/unistdio/u-sprintf.h: New file.
38382         * lib/unistdio/u-vasprintf.h: New file.
38383         * lib/unistdio/u-vsnprintf.h: New file.
38384         * lib/unistdio/u-vsprintf.h: New file.
38385         * lib/unistdio/ulc-asnprintf.c: New file.
38386         * lib/unistdio/ulc-asprintf.c: New file.
38387         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38388         * lib/unistdio/ulc-printf-parse.c: New file.
38389         * lib/unistdio/ulc-snprintf.c: New file.
38390         * lib/unistdio/ulc-sprintf.c: New file.
38391         * lib/unistdio/ulc-vasnprintf.c: New file.
38392         * lib/unistdio/ulc-vasprintf.c: New file.
38393         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38394         * lib/unistdio/ulc-vsnprintf.c: New file.
38395         * lib/unistdio/ulc-vsprintf.c: New file.
38396         * lib/unistdio/u8-asnprintf.c: New file.
38397         * lib/unistdio/u8-asprintf.c: New file.
38398         * lib/unistdio/u8-printf-parse.c: New file.
38399         * lib/unistdio/u8-snprintf.c: New file.
38400         * lib/unistdio/u8-sprintf.c: New file.
38401         * lib/unistdio/u8-vasnprintf.c: New file.
38402         * lib/unistdio/u8-vasprintf.c: New file.
38403         * lib/unistdio/u8-vsnprintf.c: New file.
38404         * lib/unistdio/u8-vsprintf.c: New file.
38405         * lib/unistdio/u8-u8-asnprintf.c: New file.
38406         * lib/unistdio/u8-u8-asprintf.c: New file.
38407         * lib/unistdio/u8-u8-snprintf.c: New file.
38408         * lib/unistdio/u8-u8-sprintf.c: New file.
38409         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38410         * lib/unistdio/u8-u8-vasprintf.c: New file.
38411         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38412         * lib/unistdio/u8-u8-vsprintf.c: New file.
38413         * lib/unistdio/u16-asnprintf.c: New file.
38414         * lib/unistdio/u16-asprintf.c: New file.
38415         * lib/unistdio/u16-printf-parse.c: New file.
38416         * lib/unistdio/u16-snprintf.c: New file.
38417         * lib/unistdio/u16-sprintf.c: New file.
38418         * lib/unistdio/u16-vasnprintf.c: New file.
38419         * lib/unistdio/u16-vasprintf.c: New file.
38420         * lib/unistdio/u16-vsnprintf.c: New file.
38421         * lib/unistdio/u16-vsprintf.c: New file.
38422         * lib/unistdio/u16-u16-asnprintf.c: New file.
38423         * lib/unistdio/u16-u16-asprintf.c: New file.
38424         * lib/unistdio/u16-u16-snprintf.c: New file.
38425         * lib/unistdio/u16-u16-sprintf.c: New file.
38426         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38427         * lib/unistdio/u16-u16-vasprintf.c: New file.
38428         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38429         * lib/unistdio/u16-u16-vsprintf.c: New file.
38430         * lib/unistdio/u32-asnprintf.c: New file.
38431         * lib/unistdio/u32-asprintf.c: New file.
38432         * lib/unistdio/u32-printf-parse.c: New file.
38433         * lib/unistdio/u32-snprintf.c: New file.
38434         * lib/unistdio/u32-sprintf.c: New file.
38435         * lib/unistdio/u32-vasnprintf.c: New file.
38436         * lib/unistdio/u32-vasprintf.c: New file.
38437         * lib/unistdio/u32-vsnprintf.c: New file.
38438         * lib/unistdio/u32-vsprintf.c: New file.
38439         * lib/unistdio/u32-u32-asnprintf.c: New file.
38440         * lib/unistdio/u32-u32-asprintf.c: New file.
38441         * lib/unistdio/u32-u32-snprintf.c: New file.
38442         * lib/unistdio/u32-u32-sprintf.c: New file.
38443         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38444         * lib/unistdio/u32-u32-vasprintf.c: New file.
38445         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38446         * lib/unistdio/u32-u32-vsprintf.c: New file.
38447         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38448         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38449         * tests/unistdio/test-ulc-printf1.h: New file.
38450         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38451         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38452         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38453         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38454         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38455         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38456         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38457         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38458         * tests/unistdio/test-u8-asnprintf1.c: New file.
38459         * tests/unistdio/test-u8-asnprintf1.h: New file.
38460         * tests/unistdio/test-u8-printf1.h: New file.
38461         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38462         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38463         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38464         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38465         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38466         * tests/unistdio/test-u8-vasprintf1.c: New file.
38467         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38468         * tests/unistdio/test-u8-vsprintf1.c: New file.
38469         * tests/unistdio/test-u16-asnprintf1.c: New file.
38470         * tests/unistdio/test-u16-asnprintf1.h: New file.
38471         * tests/unistdio/test-u16-printf1.h: New file.
38472         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38473         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38474         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38475         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38476         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38477         * tests/unistdio/test-u16-vasprintf1.c: New file.
38478         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38479         * tests/unistdio/test-u16-vsprintf1.c: New file.
38480         * tests/unistdio/test-u32-asnprintf1.c: New file.
38481         * tests/unistdio/test-u32-asnprintf1.h: New file.
38482         * tests/unistdio/test-u32-printf1.h: New file.
38483         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38484         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38485         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38486         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38487         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38488         * tests/unistdio/test-u32-vasprintf1.c: New file.
38489         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38490         * tests/unistdio/test-u32-vsprintf1.c: New file.
38491         * modules/unistdio/base: New file.
38492         * modules/unistdio/u-printf-args: New file.
38493         * modules/unistdio/ulc-asnprintf: New file.
38494         * modules/unistdio/ulc-asprintf: New file.
38495         * modules/unistdio/ulc-fprintf: New file.
38496         * modules/unistdio/ulc-printf-parse: New file.
38497         * modules/unistdio/ulc-snprintf: New file.
38498         * modules/unistdio/ulc-sprintf: New file.
38499         * modules/unistdio/ulc-vasnprintf: New file.
38500         * modules/unistdio/ulc-vasprintf: New file.
38501         * modules/unistdio/ulc-vfprintf: New file.
38502         * modules/unistdio/ulc-vsnprintf: New file.
38503         * modules/unistdio/ulc-vsprintf: New file.
38504         * modules/unistdio/u8-asnprintf: New file.
38505         * modules/unistdio/u8-asprintf: New file.
38506         * modules/unistdio/u8-printf-parse: New file.
38507         * modules/unistdio/u8-snprintf: New file.
38508         * modules/unistdio/u8-sprintf: New file.
38509         * modules/unistdio/u8-vasnprintf: New file.
38510         * modules/unistdio/u8-vasprintf: New file.
38511         * modules/unistdio/u8-vsnprintf: New file.
38512         * modules/unistdio/u8-vsprintf: New file.
38513         * modules/unistdio/u8-u8-asnprintf: New file.
38514         * modules/unistdio/u8-u8-asprintf: New file.
38515         * modules/unistdio/u8-u8-snprintf: New file.
38516         * modules/unistdio/u8-u8-sprintf: New file.
38517         * modules/unistdio/u8-u8-vasnprintf: New file.
38518         * modules/unistdio/u8-u8-vasprintf: New file.
38519         * modules/unistdio/u8-u8-vsnprintf: New file.
38520         * modules/unistdio/u8-u8-vsprintf: New file.
38521         * modules/unistdio/u16-asnprintf: New file.
38522         * modules/unistdio/u16-asprintf: New file.
38523         * modules/unistdio/u16-printf-parse: New file.
38524         * modules/unistdio/u16-snprintf: New file.
38525         * modules/unistdio/u16-sprintf: New file.
38526         * modules/unistdio/u16-vasnprintf: New file.
38527         * modules/unistdio/u16-vasprintf: New file.
38528         * modules/unistdio/u16-vsnprintf: New file.
38529         * modules/unistdio/u16-vsprintf: New file.
38530         * modules/unistdio/u16-u16-asnprintf: New file.
38531         * modules/unistdio/u16-u16-asprintf: New file.
38532         * modules/unistdio/u16-u16-snprintf: New file.
38533         * modules/unistdio/u16-u16-sprintf: New file.
38534         * modules/unistdio/u16-u16-vasnprintf: New file.
38535         * modules/unistdio/u16-u16-vasprintf: New file.
38536         * modules/unistdio/u16-u16-vsnprintf: New file.
38537         * modules/unistdio/u16-u16-vsprintf: New file.
38538         * modules/unistdio/u32-asnprintf: New file.
38539         * modules/unistdio/u32-asprintf: New file.
38540         * modules/unistdio/u32-printf-parse: New file.
38541         * modules/unistdio/u32-snprintf: New file.
38542         * modules/unistdio/u32-sprintf: New file.
38543         * modules/unistdio/u32-vasnprintf: New file.
38544         * modules/unistdio/u32-vasprintf: New file.
38545         * modules/unistdio/u32-vsnprintf: New file.
38546         * modules/unistdio/u32-vsprintf: New file.
38547         * modules/unistdio/u32-u32-asnprintf: New file.
38548         * modules/unistdio/u32-u32-asprintf: New file.
38549         * modules/unistdio/u32-u32-snprintf: New file.
38550         * modules/unistdio/u32-u32-sprintf: New file.
38551         * modules/unistdio/u32-u32-vasnprintf: New file.
38552         * modules/unistdio/u32-u32-vasprintf: New file.
38553         * modules/unistdio/u32-u32-vsnprintf: New file.
38554         * modules/unistdio/u32-u32-vsprintf: New file.
38555         * modules/unistdio/ulc-asnprintf-tests: New file.
38556         * modules/unistdio/ulc-vasnprintf-tests: New file.
38557         * modules/unistdio/ulc-vasprintf-tests: New file.
38558         * modules/unistdio/ulc-vsnprintf-tests: New file.
38559         * modules/unistdio/ulc-vsprintf-tests: New file.
38560         * modules/unistdio/u8-asnprintf-tests: New file.
38561         * modules/unistdio/u8-vasnprintf-tests: New file.
38562         * modules/unistdio/u8-vasprintf-tests: New file.
38563         * modules/unistdio/u8-vsnprintf-tests: New file.
38564         * modules/unistdio/u8-vsprintf-tests: New file.
38565         * modules/unistdio/u16-asnprintf-tests: New file.
38566         * modules/unistdio/u16-vasnprintf-tests: New file.
38567         * modules/unistdio/u16-vasprintf-tests: New file.
38568         * modules/unistdio/u16-vsnprintf-tests: New file.
38569         * modules/unistdio/u16-vsprintf-tests: New file.
38570         * modules/unistdio/u32-asnprintf-tests: New file.
38571         * modules/unistdio/u32-vasnprintf-tests: New file.
38572         * modules/unistdio/u32-vasprintf-tests: New file.
38573         * modules/unistdio/u32-vsnprintf-tests: New file.
38574         * modules/unistdio/u32-vsprintf-tests: New file.
38575         * MODULES.html.sh (Unicode string functions): Add the new modules.
38576
38577 2007-07-01  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/sprintf.c (sprintf): Limit the available length estimation,
38580         to avoid address wraparound.
38581         * lib/vsprintf.c (vsprintf): Likewise.
38582         * modules/sprintf-posix (Dependencies): Add stdint.
38583         * modules/vsprintf-posix (Dependencies): Likewise.
38584
38585 2007-07-01  Bruno Haible  <bruno@clisp.org>
38586
38587         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38588         Windows PATH as well. Conservative double-quoting. Comments.
38589
38590 2007-07-01  Bruno Haible  <bruno@clisp.org>
38591             Eric Blake  <ebb9@byu.net>
38592             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38593
38594         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38595         empty components in $PATH, denoting '.'.
38596
38597 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38598
38599         * gnulib-tool: Fix indentation.
38600         (func_create_megatestdir): Likewise.
38601         Report by Bruno Haible.
38602
38603 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38604
38605         Sync from Automake.
38606         * build-aux/gnupload: Fix shell portability issues with for loops.
38607         Report by Karl Berry.
38608
38609 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38610
38611         * build-aux/maint.mk (POURL): Use translationproject.org.
38612
38613 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38614             Bruno Haible  <bruno@clisp.org>
38615
38616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38617         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38618         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38619         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38620         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38621
38622 2007-06-27  Bruno Haible  <bruno@clisp.org>
38623
38624         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38625         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38626
38627 2007-06-26  Karl Berry  <karl@gnu.org>
38628
38629         * MODULES.html.sh: remove xreadlink-with-size.
38630
38631 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38632
38633         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38634         method that I hope also handles the double-include problem noted
38635         by Bruno Haible in
38636         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38637
38638 2007-06-23  Bruno Haible  <bruno@clisp.org>
38639
38640         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38641         Don't let the 'mostlyclean' target fail if the last subdirectory could
38642         not be removed.
38643         Reported by Karl Berry.
38644
38645 2007-06-23  Bruno Haible  <bruno@clisp.org>
38646
38647         * gnulib-tool (echo): Add a speedier workaround for ksh.
38648         * tests/test-echo.sh: Likewise.
38649
38650 2007-06-23  Bruno Haible  <bruno@clisp.org>
38651
38652         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38653         * tests/test-echo.sh: Likewise.
38654
38655 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38656
38657         * gnulib-tool (IFS): Initialize early, so we don't set it to
38658         empty later.
38659         (self_abspathname): Rewrite algorithm to set it, reindent.
38660         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38661         (func_create_megatestdir): Merge some sed scripts.
38662
38663 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38664
38665         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38666         exposed by Sun Studio 11 cc on Solaris 8.
38667
38668 2007-06-22  Bruno Haible  <bruno@clisp.org>
38669
38670         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38671         backslashes.
38672         * tests/test-echo.sh: New file.
38673
38674 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38675
38676         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38677         simplify `sed_replace_build_aux' scripts, they are portable but
38678         echoing them with `echo' is not.
38679         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38680
38681 2007-06-21  Karl Berry  <karl@gnu.org>
38682
38683         * config/srclist.txt: guess we can't handle the licenses via
38684         srclist at the moment.
38685
38686 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38687
38688         * MODULES.html.sh: Add include_next.
38689         * modules/include_next: New file.
38690
38691 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38692
38693         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38694         INCLUDE_NEXT.
38695         (gl_CHECK_NEXT_HEADERS): New macro.
38696         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38697         the obsolescent gl_ABSOLUTE_HEADER.
38698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38699         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38700         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38701         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38702         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38703         * m4/math_h.m4 (gl_MATH_H): Likewise.
38704         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38705         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38706         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38707         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38708         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38709         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38710         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38711         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38712         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38713         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38714         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38715         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38716         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38717         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38718         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38719         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38720         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38721         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38722         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38723         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38724         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38725         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38726         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38727         * lib/float_.h: Likewise.
38728         * lib/inttypes_.h: Likewise.
38729         * lib/math_.h: Likewise.
38730         * lib/search_.h: Likewise.
38731         * lib/signal_.h: Likewise.
38732         * lib/stdint_.h: Likewise.
38733         * lib/stdio_.h: Likewise.
38734         * lib/stdlib_.h: Likewise.
38735         * lib/string_.h: Likewise.
38736         * lib/sys_stat_.h: Likewise.
38737         * lib/sys_time_.h: Likewise.
38738         * lib/time_.h: Likewise.
38739         * lib/unistd_.h: Likewise.
38740         * lib/wchar_.h: Likewise.
38741         * lib/wctype_.h: Likewise.
38742         * lib/dirent_.h: Likewise.
38743         * lib/iconv_.h: Likewise.
38744         * lib/locale_.h: Likewise.
38745         * lib/netinet_in_.h: Likewise.
38746         * lib/sys_select_.h: Likewise.
38747         * lib/sys_socket_.h: Likewise.
38748         * lib/sysexits_.h: Likewise.
38749         * modules/fcntl (Depends-on): Depend on include_next, not
38750         absolute_header.
38751         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38752         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38753         * modules/fchdir: Likewise.
38754         * modules/float: Likewise.
38755         * modules/iconv_open: Likewise.
38756         * modules/inttypes: Likewise.
38757         * modules/locale: Likewise.
38758         * modules/math: Likewise.
38759         * modules/netinet_in: Likewise.
38760         * modules/search: Likewise.
38761         * modules/signal: Likewise.
38762         * modules/stdint: Likewise.
38763         * modules/stdio: Likewise.
38764         * modules/stdlib: Likewise.
38765         * modules/string: Likewise.
38766         * modules/sys_select: Likewise.
38767         * modules/sys_socket: Likewise.
38768         * modules/sys_stat: Likewise.
38769         * modules/sys_time: Likewise.
38770         * modules/sysexits: Likewise.
38771         * modules/time: Likewise.
38772         * modules/unistd: Likewise.
38773         * modules/wchar: Likewise.
38774         * modules/wctype: Likewise.
38775         * modules/sys_stat: Change maintainer to "all".
38776         * modules/unistd: Likewise.
38777
38778 2007-06-20  Karl Berry  <karl@gnu.org>
38779
38780         * config/srclist.txt: track www changes in license files.
38781
38782 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38783
38784         * build-aux/bootstrap: Remove stray dot.
38785         Make sure build_aux settings are honored when linking
38786         gnulib_extra_files.
38787
38788 2007-06-19  Eric Blake  <ebb9@byu.net>
38789
38790         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38791         Allow compilation on cygwin.
38792
38793 2007-06-19  Jim Meyering  <jim@meyering.net>
38794
38795         xreadlink-with-size: Remove module.  No longer used.
38796         Ex-callers now use xreadlink or mreadlink-with-size.
38797         * modules/xreadlink-with-size: Remove module.
38798         * lib/xreadlink-with-size.c: Remove file.
38799         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38800         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38801         just before the function definition *is* accurate.
38802
38803         Eliminate one way canonicalize_filename_mode could exit.
38804         * lib/canonicalize.c (canonicalize_filename_mode):
38805         Use mreadlink_with_size, not xreadlink_with_size.
38806
38807 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38808
38809         Detect porting problems to FreeBSD/arm, which has time_t wider than
38810         long int.  Original problem reported for GNU diff by Xin Li in
38811         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38812         * modules/getdate (Depends-on): Add intprops, verify.
38813         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38814         is an integer type no wider than long int.
38815
38816 2007-06-18  Jim Meyering  <jim@meyering.net>
38817
38818         New module: mreadlink-with-size.
38819         * MODULES.html.sh: Add mreadlink-with-size.
38820         * modules/mreadlink-with-size: New module
38821         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38822         not xreadlink-with-size.
38823         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38824
38825 2007-06-16  Bruno Haible  <bruno@clisp.org>
38826
38827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38828         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
38829         Reported by Gary V. Vaughan <gary@gnu.org>.
38830
38831 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38832
38833         Revamp lchown so that it lives in unistd.h where it belongs.
38834         * lib/lchown.h: Remove.
38835         * lib/dirchownmod.c: Don't include lib/lchown.h.
38836         * lib/fchownat.c: Likewise.
38837         * lib/openat.c: Likewise.
38838         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
38839         does not follow symlinks.
38840         (EOPNOTSUPP): Define if not defined.
38841         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
38842         is defined to 0.
38843         (lchown): New decl.
38844         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
38845         Do not check for lchown decl.
38846         Set REPLACE_LCHOWN.
38847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
38848         REPLACE_LCHOWN.
38849         * modules/chown: Make it clear it follows symlinks.
38850         * modules/lchown: Make it clear it doesn't follow symlinks.
38851         (Files): Remove lib/lchown.h
38852         (Depends-on): Add unistd.
38853         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
38854         (Include): Include <unistd.h>, not "lchown.h".
38855         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
38856         REPLACE_LCHOWN.
38857
38858 2007-06-15  Jim Meyering  <jim@meyering.net>
38859
38860         Change license (GPL to LGPL) of fsusage and dependents.
38861         * modules/fsusage (License): Change to LGPL.
38862         * modules/full-read (License): Likewise.
38863         * modules/full-write (License): Likewise.
38864         * modules/safe-read (License): Likewise.
38865         * modules/safe-write (License): Likewise.
38866
38867 2007-06-14  Ben Pfaff  <blp@gnu.org>
38868
38869         Missing part of allocsa -> malloca transition.
38870         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
38871         gl_MALLOCA.
38872
38873 2007-06-12  Bruno Haible  <bruno@clisp.org>
38874
38875         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
38876         to ia64, x86_64, i386.
38877         Reported by Eric Blake.
38878
38879 2007-06-12  Bruno Haible  <bruno@clisp.org>
38880
38881         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
38882         cross-compiling to x86_64.
38883
38884 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
38885
38886         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
38887         glitch reported by Ralf Wildenhues in
38888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
38889
38890         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
38891         Vin Shelton.
38892
38893 2007-06-11  Bruno Haible  <bruno@clisp.org>
38894
38895         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
38896         replacement string.
38897         Reported by Eric Blake.
38898
38899 2007-06-10  Bruno Haible  <bruno@clisp.org>
38900
38901         Prepare vasnprintf code for use with Unicode strings.
38902         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
38903         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
38904         TYPE_U32_STRING.
38905         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
38906         a_u32_string variants.
38907         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38908         * lib/printf-args.c: Don't include config.h and the specification
38909         header if PRINTF_FETCHARGS is already defined.
38910         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
38911         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
38912         TYPE_U16_STRING, TYPE_U32_STRING.
38913         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
38914         u16_directive, u16_directives, u32_directive, u32_directives): New
38915         types.
38916         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
38917         New declarations.
38918         * lib/printf-parse.c: Don't include config.h and the specification
38919         header if PRINTF_PARSE is already defined. Eliminate the set of
38920         parameters for WIDE_CHAR_VERSION; the user of this file must provide
38921         them now. Include c-ctype.h.
38922         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
38923         directive and CHAR_T_ONLY_ASCII.
38924         * lib/vasnprintf.c: Don't include config.h and the specification header
38925         if VASNPRINTF is already defined.
38926         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
38927         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
38928         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
38929         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
38930         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
38931         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
38932         code accordingly.
38933         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
38934         pad_ourselves also in this case, with the 'c' and 's' directives, and
38935         with a different notion of "width".
38936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
38937
38938 2007-06-10  Bruno Haible  <bruno@clisp.org>
38939
38940         * modules/unistr/u32-mbsnlen: New file.
38941         * lib/unistr/u32-mbsnlen.c: New file.
38942
38943         * modules/unistr/u16-mbsnlen: New file.
38944         * lib/unistr/u16-mbsnlen.c: New file.
38945
38946         * modules/unistr/u8-mbsnlen: New file.
38947         * lib/unistr/u8-mbsnlen.c: New file.
38948
38949         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
38950         declarations.
38951
38952 2007-06-10  Bruno Haible  <bruno@clisp.org>
38953
38954         * lib/string_.h (mbsnlen): New declaration.
38955         * lib/mbsnlen.c: New file.
38956         * m4/mbsnlen.m4: New file.
38957         * modules/mbsnlen: New file.
38958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
38959         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
38960         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
38961
38962 2007-06-10  Bruno Haible  <bruno@clisp.org>
38963
38964         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
38965
38966 2007-06-10  Bruno Haible  <bruno@clisp.org>
38967
38968         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
38969         * lib/mbuiter.h: Likewise.
38970
38971 2007-06-10  Bruno Haible  <bruno@clisp.org>
38972
38973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
38974         declaration.
38975
38976 2007-06-10  Karl Berry  <karl@gnu.org>
38977
38978         * config/srclist.txt: remove gettext entries, Bruno prefers
38979         to update individually.
38980
38981 2007-06-10  Bruno Haible  <bruno@clisp.org>
38982
38983         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
38984         'maxlen'. Ensure only length + width bytes are allocated, not
38985         length + 1 + width.
38986
38987 2007-06-09  Bruno Haible  <bruno@clisp.org>
38988
38989         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
38990         (CHAR_T): Remove macro.
38991         (VASNPRINTF): Update.
38992
38993 2007-06-09  Bruno Haible  <bruno@clisp.org>
38994
38995         * MODULES.html.sh (Unicode string functions): Add the new modules.
38996
38997         * modules/uniconv/u32-conv-to-enc: New file.
38998         * lib/uniconv/u32-conv-to-enc.c: New file.
38999         * modules/uniconv/u32-conv-to-enc-tests: New file.
39000         * tests/uniconv/test-u32-conv-to-enc.c: New file.
39001
39002         * modules/uniconv/u16-conv-to-enc: New file.
39003         * lib/uniconv/u16-conv-to-enc.c: New file.
39004         * lib/uniconv/u-conv-to-enc.h: New file.
39005         * modules/uniconv/u16-conv-to-enc-tests: New file.
39006         * tests/uniconv/test-u16-conv-to-enc.c: New file.
39007
39008         * modules/uniconv/u8-conv-to-enc: New file.
39009         * lib/uniconv/u8-conv-to-enc.c: New file.
39010         * modules/uniconv/u8-conv-to-enc-tests: New file.
39011         * tests/uniconv/test-u8-conv-to-enc.c: New file.
39012
39013         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39014         u32_conv_to_encoding): New declarations.
39015
39016 2007-06-09  Bruno Haible  <bruno@clisp.org>
39017
39018         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
39019
39020 2007-06-09  Bruno Haible  <bruno@clisp.org>
39021
39022         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
39023         * modules/malloca: Renamed from modules/allocsa, updated.
39024         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
39025         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
39026         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
39027         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
39028         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
39029         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
39030         * modules/xmalloca: Renamed from modules/xallocsa, updated.
39031         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
39032         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
39033         * modules/c-strcasestr (Depends-on): Update.
39034         * lib/c-strcasestr.c: Update.
39035         * modules/c-strstr (Depends-on): Update.
39036         * lib/c-strstr.c: Update.
39037         * modules/canonicalize-lgpl (Depends-on): Update.
39038         * lib/canonicalize-lgpl.c: Update.
39039         * modules/clean-temp (Depends-on): Update.
39040         * lib/clean-temp.c: Update.
39041         * modules/csharpcomp (Depends-on): Update.
39042         * lib/csharpcomp.c: Update.
39043         * modules/csharpexec (Depends-on): Update.
39044         * lib/csharpexec.c: Update.
39045         * modules/javacomp (Depends-on): Update.
39046         * lib/javacomp.c: Update.
39047         * modules/javaexec (Depends-on): Update.
39048         * lib/javaexec.c: Update.
39049         * modules/mbscasestr (Depends-on): Update.
39050         * lib/mbscasestr.c: Update.
39051         * modules/mbsstr (Depends-on): Update.
39052         * lib/mbsstr.c: Update.
39053         * modules/setenv (Depends-on): Update.
39054         * lib/setenv.c: Update.
39055         * modules/strcasestr (Depends-on): Update.
39056         * lib/strcasestr.c: Update.
39057         * modules/striconveha (Depends-on): Update.
39058         * lib/striconveha.c: Update.
39059         * modules/relocatable-prog-wrapper (Files): Update.
39060         * lib/relocwrapper.c: Update.
39061         * build-aux/install-reloc: Update.
39062         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
39063
39064 2007-06-08  Bruno Haible  <bruno@clisp.org>
39065
39066         Port to uClibc.
39067         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
39068         * lib/fpurge.c (fpurge): Likewise.
39069         * lib/freading.c (freading): Likewise.
39070         * lib/fseeko.c (rpl_fseeko): Likewise.
39071         * lib/fseterr.c (fseterr): Likewise.
39072         * lib/fwriting.c (fwriting): Likewise.
39073         * tests/test-fflush.c (main): Avoid a failure on uClibc.
39074
39075 2007-06-08  Bruno Haible  <bruno@clisp.org>
39076
39077         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
39078         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
39079         * modules/gettext (Files): Add m4/intlmacosx.m4.
39080
39081 2007-06-07  Bruno Haible  <bruno@clisp.org>
39082
39083         * modules/localename-tests: New file.
39084         * tests/test-localename.c: New file.
39085
39086         New module 'localename'.
39087         * lib/localename.h: New file.
39088         * lib/localename.c: New file, from GNU gettext.
39089         * m4/localename.m4: New file.
39090         * modules/localename: New file.
39091
39092 2007-06-07  Bruno Haible  <bruno@clisp.org>
39093
39094         Work around the lack of <wchar.h> on some builds of uClibc.
39095         * doc/headers/wchar.texi: Update.
39096         * lib/wchar_.h: Include <wchar.h> only if it exists.
39097         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
39098         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
39099         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
39100         doesn't exist.
39101         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
39102         * modules/mbfile (Depends-on): Add wchar.
39103         * modules/mbiter (Depends-on): Likewise.
39104         * modules/mbuiter (Depends-on): Likewise.
39105         Reported by Simon Josefsson.
39106
39107 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
39108
39109         Work around problem reported by Steven M. Schweda in
39110         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
39111         Tru64 5.1B with the Compaq compiler environment installed declares
39112         an 'isblank' function but does not define it in the C library.
39113         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
39114         * lib/regex_internal.h (isblank): Likewise.
39115         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
39116         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39117
39118 2007-06-05  Bruno Haible  <bruno@clisp.org>
39119
39120         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
39121         ia64.
39122         * modules/printf-safe: New file.
39123         * modules/fprintf-posix (Depends-on): Add printf-safe.
39124         * modules/printf-posix (Depends-on): Likewise.
39125         * modules/snprintf-posix (Depends-on): Likewise.
39126         * modules/sprintf-posix (Depends-on): Likewise.
39127         * modules/vasnprintf-posix (Depends-on): Likewise.
39128         * modules/vasprintf-posix (Depends-on): Likewise.
39129         * modules/vfprintf-posix (Depends-on): Likewise.
39130         * modules/vprintf-posix (Depends-on): Likewise.
39131         * modules/vsnprintf-posix (Depends-on): Likewise.
39132         * modules/vsprintf-posix (Depends-on): Likewise.
39133         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
39134         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
39135         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
39136         "no" on i386, x86_64, ia64.
39137         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
39138         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39139         on i386, x86_64, ia64.
39140         * tests/test-sprintf-posix.h (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-vasnprintf-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-vasprintf-posix.c: Include float.h.
39148         (LDBL80_WORDS): New macro.
39149         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39150         on i386, x86_64, ia64.
39151         * tests/test-snprintf-posix.c: Include float.h.
39152         * tests/test-sprintf-posix.c: Likewise.
39153         * tests/test-vsnprintf-posix.c: Likewise.
39154         * tests/test-vsprintf-posix.c: Likewise.
39155
39156 2007-06-05  Bruno Haible  <bruno@clisp.org>
39157
39158         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39159         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39160         non-IEEE numbers on i386, x86_64, ia64.
39161         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39162         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39163         * tests/test-isnanl.h: Include float.h.
39164         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39165
39166 2007-06-05  Bruno Haible  <bruno@clisp.org>
39167
39168         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39169         also the %a / %A. Handle the %a / %A code before this extra handling.
39170
39171 2007-06-05  Bruno Haible  <bruno@clisp.org>
39172
39173         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39174         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39175
39176 2007-06-05  Bruno Haible  <bruno@clisp.org>
39177
39178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39179         typo in variable name.
39180
39181 2007-06-05  Eric Blake  <ebb9@byu.net>
39182
39183         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39184         Reported by Simon Josefsson.
39185
39186 2007-06-04  Bruno Haible  <bruno@clisp.org>
39187
39188         Avoid test failures on some PowerPC platforms.
39189         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39190         Define differently for PowerPC.
39191         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39192         Reported by Gary V. Vaughan <gary@gnu.org>.
39193
39194 2007-06-02  Bruno Haible  <bruno@clisp.org>
39195
39196         Fix test-stdint failure on FreeBSD/ia64.
39197         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39198         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39199         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39200         * doc/headers/stdint.texi: Update.
39201
39202 2007-06-01  Bruno Haible  <bruno@clisp.org>
39203
39204         * tests/test-binary-io.c (main): Pass a third argument to open().
39205         Reported by Gary V. Vaughan <gary@gnu.org>.
39206
39207 2007-06-01  Bruno Haible  <bruno@clisp.org>
39208
39209         * doc/functions/frexpl.texi: Update for mingw.
39210
39211 2007-06-01  Bruno Haible  <bruno@clisp.org>
39212
39213         * tests/test-lseek.c (main): Disable test of errno for invalid third
39214         argument.
39215         * doc/functions/lseek.texi: Update.
39216         Reported by Gary V. Vaughan <gary@gnu.org>.
39217
39218 2007-05-28  Bruno Haible  <bruno@clisp.org>
39219
39220         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39221
39222 2007-05-31  Eric Blake  <ebb9@byu.net>
39223
39224         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39225         cross compiling.
39226
39227 2007-05-30  Eric Blake  <ebb9@byu.net>
39228         and Bruno Haible  <bruno@clisp.org>
39229
39230         Work around mingw test failures exposed by m4-1.4.9b.
39231         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39232         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39233         moment.
39234
39235 2007-05-30  Bruno Haible  <bruno@clisp.org>
39236
39237         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39238         assuming that they are closed. Needed on HP-UX 11.
39239
39240 2007-05-29  Bruno Haible  <bruno@clisp.org>
39241
39242         Fix a problem with #include_next.
39243         * lib/dirent_.h: Split the double-inclusion guard.
39244         * lib/fcntl_.h: Likewise.
39245         * lib/float_.h: Likewise.
39246         * lib/iconv_.h: Likewise.
39247         * lib/inttypes_.h: Likewise.
39248         * lib/locale_.h: Likewise.
39249         * lib/math_.h: Likewise.
39250         * lib/netinet_in_.h: Likewise.
39251         * lib/search_.h: Likewise.
39252         * lib/signal_.h: Likewise.
39253         * lib/stdint_.h: Likewise.
39254         * lib/stdio_.h: Likewise.
39255         * lib/stdlib_.h: Likewise.
39256         * lib/string_.h: Likewise.
39257         * lib/sys_select_.h: Likewise.
39258         * lib/sys_socket_.h: Likewise.
39259         * lib/sys_stat_.h: Likewise.
39260         * lib/sys_time_.h: Likewise.
39261         * lib/sysexits_.h: Likewise.
39262         * lib/time_.h: Likewise.
39263         * lib/unistd_.h: Likewise.
39264         * lib/wchar_.h: Likewise.
39265         * lib/wctype_.h: Likewise.
39266
39267 2007-05-29  Bruno Haible  <bruno@clisp.org>
39268
39269         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39270         for the moment.
39271
39272 2007-05-29  Bruno Haible  <bruno@clisp.org>
39273
39274         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39275         invocation.
39276         Reported by Eric Blake.
39277
39278 2007-05-29  Bruno Haible  <bruno@clisp.org>
39279
39280         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39281         compiling case.
39282
39283 2007-05-29  Eric Blake  <ebb9@byu.net>
39284             Bruno Haible  <bruno@clisp.org>
39285
39286         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39287         cross compiles.
39288
39289 2007-05-28  Eric Blake  <ebb9@byu.net>
39290
39291         * modules/closein-tests (test_closein_LDADD): Support test on
39292         cygwin with libtool.
39293
39294 2007-05-28  Bruno Haible  <bruno@clisp.org>
39295
39296         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39297         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39298         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39299         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39300         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39301         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39302         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39303         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39304         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39305
39306 2007-05-28  Eric Blake  <ebb9@byu.net>
39307
39308         Unconditionally include <config.h> in unit tests.
39309         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39310         * tests/test-allocsa.c, tests/test-arcfour.c,
39311         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39312         tests/test-array_list.c, tests/test-array_oset.c,
39313         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39314         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39315         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39316         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39317         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39318         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39319         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39320         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39321         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39322         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39323         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39324         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39325         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39326         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39327         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39328         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39329         test-md5.c, test-memmem.c, test-printf-posix.c,
39330         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39331         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39332         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39333         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39334         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39335         test-vasnprintf-posix2.c, test-vasnprintf.c,
39336         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39337         test-vfprintf-posix.c, test-vprintf-posix.c,
39338         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39339         test-xvasprintf.c: Likewise.
39340
39341 2007-05-28  Bruno Haible  <bruno@clisp.org>
39342
39343         * gnulib-tool (func_import): Remember the --with-tests command-line
39344         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39345         Reported by Eric Blake.
39346
39347 2007-05-28  Bruno Haible  <bruno@clisp.org>
39348
39349         * modules/ftell-tests: New file.
39350         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39351         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39352
39353         * lib/ftell.c: New file.
39354         * modules/ftell: New file.
39355         * m4/ftell.m4: New file.
39356         * doc/functions/ftell.texi: Update.
39357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39358         REPLACE_FTELL.
39359         * lib/stdio_.h (rpl_ftell): New declaration.
39360         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39361         REPLACE_FTELL.
39362
39363 2007-05-28  Eric Blake  <ebb9@byu.net>
39364
39365         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39366
39367 2007-05-28  Bruno Haible  <bruno@clisp.org>
39368
39369         * modules/fseek-tests: New file.
39370         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39371         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39372
39373         * lib/fseek.c: New file.
39374         * modules/fseek: New file.
39375         * m4/fseek.m4: New file.
39376         * doc/functions/fseek.texi: Update.
39377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39378         REPLACE_FSEEK.
39379         * lib/stdio_.h (rpl_fseek): New declaration.
39380         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39381         REPLACE_FSEEK.
39382
39383 2007-05-28  Bruno Haible  <bruno@clisp.org>
39384
39385         * lib/stdio_.h (fflush): More comments.
39386
39387 2007-05-28  Bruno Haible  <bruno@clisp.org>
39388
39389         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39390         runtime test.
39391
39392 2007-05-28  Eric Blake  <ebb9@byu.net>
39393
39394         Improve lseek module.
39395         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39396         * lib/unistd_.h (lseek): Scale back link warning message.
39397         * tests/test-lseek.c: Beef up test.
39398         * tests/test-lseek.sh: Exercise more facets of lseek.
39399         Reported by Bruno Haible.
39400
39401 2007-05-28  Bruno Haible  <bruno@clisp.org>
39402
39403         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39404         to define.
39405
39406 2007-05-27  Bruno Haible  <bruno@clisp.org>
39407
39408         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39409
39410 2007-05-27  Bruno Haible  <bruno@clisp.org>
39411
39412         * modules/openmp: New file.
39413         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39414         Noah Misch.
39415
39416 2007-05-26  Bruno Haible  <bruno@clisp.org>
39417
39418         * modules/chdir-long (Depends-on): Add fchdir.
39419         * modules/chdir-safer (Depends-on): Likewise.
39420         * modules/fts (Depends-on): Likewise.
39421         * modules/fts-lgpl (Depends-on): Likewise.
39422         * modules/openat (Depends-on): Likewise.
39423         * modules/savewd (Depends-on): Likewise.
39424
39425 2007-05-24  Eric Blake  <ebb9@byu.net>
39426
39427         Fix lseek on mingw.
39428         * modules/lseek: New module.
39429         * m4/lseek.m4: New file.
39430         * lib/lseek.c: New file.
39431         * modules/lseek-tests: New file.
39432         * tests/test-lseek.c: New file.
39433         * tests/test-lseek.sh: New file.
39434         * MODULES.html.sh: Document lseek module.
39435         * modules/fflush (Depends-on): Add lseek, fseeko.
39436         * modules/fseeko (Depends-on): Likewise.
39437         * modules/ftello (Depends-on): Likewise.
39438         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39439         broken.
39440         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39441         broken.
39442         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39443         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39444         * lib/ftello.c (rpl_ftello): Likewise.
39445         * tests/test-fseeko.c (main): Test this.
39446         * tests/test-fseeko.sh: Likewise.
39447         * tests/test-ftello.c (main): Likewise.
39448         * tests/test-ftello.sh: Likewise.
39449         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39450         implies replacing fseek.
39451         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39452         HAVE_FTELLO.
39453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39454         * modules/unistd (Makefile.am): Likewise.
39455         * lib/unistd_.h (lseek): Declare a replacement.
39456         * doc/functions/lseek.texi (lseek): Document this fix.
39457         * doc/functions/fseek.texi (fseek): Likewise.
39458         * doc/functions/ftell.texi (ftell): Likewise.
39459
39460 2007-05-24  Bruno Haible  <bruno@clisp.org>
39461
39462         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39463         in the printed representation of a NaN.
39464         * tests/test-vasprintf-posix.c (test_function): Likewise.
39465         * tests/test-snprintf-posix.h (test_function): Likewise.
39466         * tests/test-sprintf-posix.h (test_function): Likewise.
39467         Reported by Eric Blake.
39468
39469 2007-05-23  Eric Blake  <ebb9@byu.net>
39470
39471         Fix fseeko/ftello on cygwin 1.5.24.
39472         * doc/functions/fseeko.texi (fseeko): Document the fix.
39473         * doc/functions/ftello.texi (ftello): Document the fix.
39474         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39475         * doc/functions/stdout.text (stdout): New file.
39476         * doc/functions/stderr.text (stderr): New file.
39477         * doc/gnulib.texi (Function Substitutes): Use new files.
39478         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39479         prior to 1.7.0.
39480         * tests/test-ftello.c (main): Likewise for ftello.
39481         * tests/test-fseeko.sh: New file.
39482         * tests/test-ftello.sh: New file.
39483         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39484         with seekable stdin.
39485         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39486         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39487         (gl_REPLACE_FSEEKO): New macro.
39488         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39489         * modules/fseeko (Files): Distribute fseeko.c.
39490         * modules/ftello (Files): Distribute ftello.c.
39491         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39492         mode.
39493         * lib/ftello.c (rpl_ftello): New file.
39494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39495         fseeko, ftello.
39496         (gl_STDIN_LARGE_OFFSET): New macro.
39497         * modules/stdio (Makefile.am): Perform the replacement.
39498         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39499
39500 2007-05-23  Bruno Haible  <bruno@clisp.org>
39501
39502         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39503         GNULIB_POSIXCHECK is defined.
39504
39505 2007-05-21  Bruno Haible  <bruno@clisp.org>
39506
39507         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39508         Check also the output for NaN arguments. When cross-compiling, guess
39509         no on IRIX.
39510         * lib/vasnprintf.c: Update comments.
39511         * tests/test-vasnprintf-posix.c (strisnan): New function.
39512         (test_function): Use it.
39513         * tests/test-vasprintf-posix.c (strisnan): New function.
39514         (test_function): Use it.
39515         * tests/test-snprintf-posix.h (strisnan): New function.
39516         (test_function): Use it.
39517         * tests/test-sprintf-posix.h (strisnan): New function.
39518         (test_function): Use it.
39519         Reported by Eric Blake.
39520
39521 2007-05-20  Bruno Haible  <bruno@clisp.org>
39522
39523         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39524         numbers that fails on BeOS.
39525         * doc/functions/frexpl.texi: Update.
39526
39527 2007-05-20  Jim Meyering  <jim@meyering.net>
39528
39529         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39530         forced upon us by glibc-2.6.
39531
39532 2007-05-20  Bruno Haible  <bruno@clisp.org>
39533
39534         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39535         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39536         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39537         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39538         NEED_PRINTF_INFINITE.
39539         (is_infinitel): New function.
39540         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39542         gl_PREREQ_VASNPRINTF_INFINITE.
39543         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39544         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39545         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39546         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39547         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39548         gl_PREREQ_VASNPRINTF_INFINITE.
39549         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39550         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39551         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39552         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39553         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39554         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39555         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39556         * doc/functions/fprintf.texi: Update.
39557         * doc/functions/printf.texi: Update.
39558         * doc/functions/snprintf.texi: Update.
39559         * doc/functions/sprintf.texi: Update.
39560         * doc/functions/vfprintf.texi: Update.
39561         * doc/functions/vprintf.texi: Update.
39562         * doc/functions/vsnprintf.texi: Update.
39563         * doc/functions/vsprintf.texi: Update.
39564
39565 2007-05-20  Bruno Haible  <bruno@clisp.org>
39566
39567         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39568         was not found in libc.
39569         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39570
39571 2007-05-20  Bruno Haible  <bruno@clisp.org>
39572
39573         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39574         printed as "-nan" instead of "nan".
39575         * tests/test-vasprintf-posix.c (test_function): Likewise.
39576         * tests/test-snprintf-posix.h (test_function): Likewise.
39577         * tests/test-sprintf-posix.h (test_function): Likewise.
39578         Needed for HP-UX 11.
39579
39580 2007-05-20  Jim Meyering  <jim@meyering.net>
39581
39582         Fix buggy test for the fchownat-deref bug.
39583         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39584         symlink required for the run-test.  Without it, this test would
39585         always declare that fchownat doesn't work, and client code would
39586         unnecessarily use the replacement function with fixed libc.
39587         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39588         Reported by Greg Schafer.
39589
39590 2007-05-19  Bruno Haible  <bruno@clisp.org>
39591
39592         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39593         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39594         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39595         Needed for IRIX 6.5 and Solaris 2.5.1.
39596
39597 2007-05-19  Bruno Haible  <bruno@clisp.org>
39598
39599         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39600         (test_function): Skip tests involving -0.0 on platforms where
39601         -0.0 = 0.0.
39602         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39603         (test_function): Skip tests involving -0.0 on platforms where
39604         -0.0 = 0.0.
39605         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39606         (test_function): Skip tests involving -0.0 on platforms where
39607         -0.0 = 0.0.
39608         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39609         (test_function): Skip tests involving -0.0 on platforms where
39610         -0.0 = 0.0.
39611         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39612         tests.
39613         * tests/test-printf-posix.h (test_function): Likewise.
39614         * tests/test-printf-posix.output: Remove all -0.0 related results.
39615         Needed for IRIX 6.5.
39616
39617 2007-05-19  Bruno Haible  <bruno@clisp.org>
39618
39619         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39620         printed as "nan0x7fffffff" instead of "nan".
39621         * tests/test-vasprintf-posix.c (test_function): Likewise.
39622         * tests/test-snprintf-posix.h (test_function): Likewise.
39623         * tests/test-sprintf-posix.h (test_function): Likewise.
39624         * tests/test-fprintf-posix.h (NaN): Remove macro.
39625         (test_function): Remove all NaN related tests.
39626         * tests/test-printf-posix.h (NaN): Remove macro.
39627         (test_function): Remove all NaN related tests.
39628         * tests/test-printf-posix.output: Remove all NaN related results.
39629         Needed for IRIX 6.5.
39630
39631 2007-05-19  Bruno Haible  <bruno@clisp.org>
39632
39633         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39634         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39635
39636 2007-05-19  Bruno Haible  <bruno@clisp.org>
39637
39638         * lib/float_.h: New file.
39639         * m4/float_h.m4: New file.
39640         * modules/float: New file.
39641         * modules/isnanl (Dependencies): Add float.
39642         * modules/isnanl-nolibm (Dependencies): Likewise.
39643         * modules/mathl (Dependencies): Likewise.
39644         * modules/printf-frexpl (Dependencies): Likewise.
39645         * modules/signbit (Dependencies): Likewise.
39646         * modules/vasnprintf (Dependencies): Likewise.
39647         * doc/headers/float.texi: Update.
39648
39649 2007-05-19  Jim Meyering  <jim@meyering.net>
39650
39651         * lib/utimens.c (gl_futimens): Rename from futimens,
39652         now that glibc-2.6 declares futimens.
39653         * lib/utimens.h: Likewise.
39654
39655 2007-05-19  Bruno Haible  <bruno@clisp.org>
39656
39657         Avoid test failures on mingw.
39658         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39659         * tests/test-printf-posix.sh: Likewise.
39660         * tests/test-vfprintf-posix.sh: Likewise.
39661         * tests/test-vprintf-posix.sh: Likewise.
39662
39663 2007-05-19  Bruno Haible  <bruno@clisp.org>
39664
39665         Fix *printf result for NaN, Inf, -0.0 on mingw.
39666         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39667         * lib/vasnprintf.c: Include math.h and isnan.h.
39668         (is_infinite_or_zero): New function.
39669         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39670         values in the %f, %F, %e, %E, %g, %G directives.
39671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39672         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39673         gl_PRINTF_INFINITE and test its result. Invoke
39674         gl_PREREQ_VASNPRINTF_INFINITE.
39675         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39676         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39677         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39679         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39680         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39681         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39682         * doc/functions/fprintf.texi: Update.
39683         * doc/functions/printf.texi: Update.
39684         * doc/functions/snprintf.texi: Update.
39685         * doc/functions/sprintf.texi: Update.
39686         * doc/functions/vfprintf.texi: Update.
39687         * doc/functions/vprintf.texi: Update.
39688         * doc/functions/vsnprintf.texi: Update.
39689         * doc/functions/vsprintf.texi: Update.
39690
39691 2007-05-19  Bruno Haible  <bruno@clisp.org>
39692
39693         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39694         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39695         Instead of multiplying with 10^k, set extra_zeroes to k.
39696         (scale10_round_long_double): Remove function.
39697
39698 2007-05-18  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39701         introduced on 2007-05-06.
39702
39703 2007-05-18  Bruno Haible  <bruno@clisp.org>
39704
39705         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39706         %g directives.
39707         * tests/test-vasprintf-posix.c (test_function): Likewise.
39708         * tests/test-snprintf-posix.h (test_function): Likewise.
39709         * tests/test-sprintf-posix.h (test_function): Likewise.
39710
39711 2007-05-18  Bruno Haible  <bruno@clisp.org>
39712
39713         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39714         (strmatch): New function.
39715         (test_function): Test the %f directive on numbers of various exponents.
39716         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39717         (strmatch): New function.
39718         (test_function): Test the %f directive on numbers of various exponents.
39719         * tests/test-snprintf-posix.h (strmatch): New function.
39720         (test_function): Test the %f directive on numbers of various exponents.
39721         * tests/test-sprintf-posix.h (strmatch): New function.
39722         (test_function): Test the %f directive on numbers of various exponents.
39723         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39724         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39725         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39726         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39727
39728 2007-05-18  Bruno Haible  <bruno@clisp.org>
39729
39730         Add support for 'long double' number output.
39731         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39732         * lib/vasnprintf.c: Include math.h and float+.h.
39733         (mp_limb_t): New type.
39734         (GMP_LIMB_BITS): New macro.
39735         (mp_twolimb_t): New type.
39736         (GMP_TWOLIMB_BITS): New macro.
39737         (mpn_t): New type.
39738         (multiply, divide, convert_to_decimal, decode_long_double,
39739         scale10_round_long_double, scale10_round_decimal_long_double,
39740         floorlog10l): New functions.
39741         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39742         for the %f, %F, %e, %E, %g, %G directives.
39743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39745         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39746         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39754         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39755         * modules/snprintf-posix (Depends-on): Likewise.
39756         * modules/sprintf-posix (Depends-on): Likewise.
39757         * modules/vasnprintf-posix (Depends-on): Likewise.
39758         * modules/vasprintf-posix (Depends-on): Likewise.
39759         * modules/vfprintf-posix (Depends-on): Likewise.
39760         * modules/vsnprintf-posix (Depends-on): Likewise.
39761         * modules/vsprintf-posix (Depends-on): Likewise.
39762         * modules/vasnprintf (Files): Add lib/float+.h.
39763         * doc/functions/fprintf.texi: Update.
39764         * doc/functions/printf.texi: Update.
39765         * doc/functions/snprintf.texi: Update.
39766         * doc/functions/sprintf.texi: Update.
39767         * doc/functions/vfprintf.texi: Update.
39768         * doc/functions/vprintf.texi: Update.
39769         * doc/functions/vsnprintf.texi: Update.
39770         * doc/functions/vsprintf.texi: Update.
39771
39772 2007-05-18  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39775
39776 2007-05-18  Bruno Haible  <bruno@clisp.org>
39777
39778         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39779         for printing 64-bit integers. Needed for mingw.
39780
39781 2007-05-18  Bruno Haible  <bruno@clisp.org>
39782
39783         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39784         gl_FUNC_FREXPL_WORKS.
39785         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39786
39787 2007-05-18  Bruno Haible  <bruno@clisp.org>
39788
39789         * modules/frexpl-nolibm-tests: New file.
39790
39791         * modules/frexpl-nolibm: New file.
39792         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39793
39794 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39795
39796         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39797         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39798         GCC 4.2, which otherwise issues a lot of warnings.
39799         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39800         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39801         Likewise.
39802         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39803         * modules/iconv_open (iconv.h): Likewise.
39804         * modules/locale (locale.h): Likewise.
39805         * modules/netinet_in (netinet/in.h): Likewise.
39806         * modules/sys_select (sys_select.h): Likewise.
39807         * modules/sys_socket (sys/socket.h): Likewise.
39808         * modules/sys_stat (sys/stat.h): Likewise.
39809         * modules/sysexits (sysexits.h): Likewise.
39810         * modules/unistd (unistd.h): Likewise.
39811
39812 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39813
39814         * modules/closein-tests (Makefile.am): Distribute
39815         `test-closein.sh'.
39816
39817 2007-05-17  Bruno Haible  <bruno@clisp.org>
39818
39819         * tests/test-printf-posix.output: Renamed from
39820         tests/test-fprintf-posix.out.
39821         * modules/fprintf-posix-tests: Update.
39822         * modules/printf-posix-tests: Update.
39823         * modules/vfprintf-posix-tests: Update.
39824         * modules/vprintf-posix-tests: Update.
39825         * tests/test-fprintf-posix.sh: Update.
39826         * tests/test-printf-posix.sh: Update.
39827         * tests/test-vfprintf-posix.sh: Update.
39828         * tests/test-vprintf-posix.sh: Update.
39829         Reported by Ralf Wildenhues.
39830
39831 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39832
39833         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
39834         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39835         GCC 4.2, which otherwise issues a lot of warnings.
39836         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
39837         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
39838         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
39839         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
39840         it should no longer be needed.
39841         * lib/string_.h: Likewise.
39842         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
39843         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
39844         * modules/inttypes (inttypes.h): Likewise.
39845         * modules/math (math.h): Likewise.
39846         * modules/search (search.h): Likewise.
39847         * modules/signal (signal.h): Likewise.
39848         * modules/stdint (stdint.h): Likewise.
39849         * modules/stdio (stdio.h): Likewise.
39850         * modules/stdlib (stdlib.h): Likewise.
39851         * modules/string (string.h): Likewise.
39852         * modules/sys_time (sys/time.h): Likewise.
39853         * modules/time (time.h): Likewise.
39854         * modules/wchar (wchar.h): Likewise.
39855         * modules/wctype (wtype.h): Likewise.
39856
39857 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39858
39859         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
39860
39861 2007-05-13  Bruno Haible  <bruno@clisp.org>
39862
39863         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
39864         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39865         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
39866         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39867         (gl_PREREQ_STRTOK_R): Don't require it here.
39868
39869 2007-05-13  Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
39872         when used in C++ mode.
39873
39874 2007-05-12  Bruno Haible  <bruno@clisp.org>
39875
39876         * lib/linebuffer.h: Tweak doc.
39877         * lib/linebuffer.c: Likewise.
39878
39879 2007-05-12  James Youngman  <jay@gnu.org>
39880
39881         * lib/linebuffer.c (readlinebuffer_delim): New function,
39882         like readlinebuffer, but use a caller-specified delimiter.
39883         (readlinebuffer): Just call readlinebuffer_delim with '\n'
39884         as the delimiter.
39885         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
39886
39887 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39888
39889         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
39890         * modules/openat (Files): Remove openat-die.c.
39891         (Depends-on): Add openat-die.
39892         * modules/openat-die: New module.
39893
39894 2007-05-06  Bruno Haible  <bruno@clisp.org>
39895
39896         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
39897         Update with info about Cygwin.
39898         * doc/functions/fprintf.texi: Update.
39899         * doc/functions/printf.texi: Update.
39900         * doc/functions/snprintf.texi: Update.
39901         * doc/functions/sprintf.texi: Update.
39902         * doc/functions/vfprintf.texi: Update.
39903         * doc/functions/vprintf.texi: Update.
39904         * doc/functions/vsnprintf.texi: Update.
39905         * doc/functions/vsprintf.texi: Update.
39906         Reported by Eric Blake.
39907
39908 2007-05-06  Bruno Haible  <bruno@clisp.org>
39909
39910         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
39911         padding ourselves for the floating-point directives.
39912         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
39913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
39914         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39915         gl_PRINTF_FLAG_ZERO and test its result. Invoke
39916         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
39917         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39918         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39919         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39920         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39924         * tests/test-snprintf-posix.h (test_function): Also check the width
39925         and some flags in the %f directive.
39926         * tests/test-sprintf-posix.h (test_function): Likewise.
39927         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39928         * tests/test-vasprintf-posix.c (test_function): Likewise.
39929         * doc/functions/fprintf.texi: Update.
39930         * doc/functions/printf.texi: Update.
39931         * doc/functions/snprintf.texi: Update.
39932         * doc/functions/sprintf.texi: Update.
39933         * doc/functions/vfprintf.texi: Update.
39934         * doc/functions/vprintf.texi: Update.
39935         * doc/functions/vsnprintf.texi: Update.
39936         * doc/functions/vsprintf.texi: Update.
39937
39938 2007-05-06  Bruno Haible  <bruno@clisp.org>
39939
39940         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
39941         pass the ' flag character to sprintf or snprintf.
39942         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
39943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
39944         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39945         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
39946         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
39947         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39948         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
39949         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39951         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39952         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39953         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39954         * tests/test-snprintf-posix.h (test_function): Also check the grouping
39955         flag.
39956         * tests/test-sprintf-posix.h (test_function): Likewise.
39957         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39958         * tests/test-vasprintf-posix.c (test_function): Likewise.
39959         * doc/functions/fprintf.texi: Update.
39960         * doc/functions/printf.texi: Update.
39961         * doc/functions/snprintf.texi: Update.
39962         * doc/functions/sprintf.texi: Update.
39963         * doc/functions/vfprintf.texi: Update.
39964         * doc/functions/vprintf.texi: Update.
39965         * doc/functions/vsnprintf.texi: Update.
39966         * doc/functions/vsprintf.texi: Update.
39967
39968 2007-05-01  Bruno Haible  <bruno@clisp.org>
39969
39970         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
39971
39972 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
39973
39974         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
39975         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
39976
39977 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
39978
39979         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
39980         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
39981         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
39982
39983 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
39984
39985         * lib/argp-help.c (struct hol_entry): New member `ord'.
39986         (HOL_ENTRY_PTRCMP): Use ord for comparison
39987         (hol_sort): Initialize ord.
39988
39989 2007-05-01  Bruno Haible  <bruno@clisp.org>
39990
39991         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
39992         Reported by Eric Blake.
39993         * doc/gnulib.texi (Function Substitutes): Update.
39994
39995 2007-05-01  Bruno Haible  <bruno@clisp.org>
39996
39997         * doc/functions.texi: Remove file, now redundant through
39998         doc/functions/*.texi.
39999
40000 2007-05-01  Bruno Haible  <bruno@clisp.org>
40001
40002         * modules/argp (Depends-on): Add sleep.
40003
40004 2007-05-01  Bruno Haible  <bruno@clisp.org>
40005
40006         * modules/sleep-tests: New file.
40007         * tests/test-sleep.c: New file.
40008
40009         * modules/sleep: New file.
40010         * lib/sleep.c: New file.
40011         * m4/sleep.m4: New file.
40012         * lib/unistd_.h (sleep): New declaration.
40013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
40014         HAVE_SLEEP.
40015         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
40016         * doc/functions/sleep.texi: Document the sleep module.
40017
40018 2007-05-01  Bruno Haible  <bruno@clisp.org>
40019
40020         * lib/sigprocmask.h: Remove file.
40021         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
40022         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
40023         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
40024         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
40025         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
40026         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
40027         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
40028         HAVE_SIGSET_T as a shell variable.
40029         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
40030         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
40031         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
40032         (Depends-on): Add signal. Remove verify.
40033         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
40034         (Include): Mention <signal.h> instead of sigprocmask.h.
40035         * NEWS: Mention the change.
40036         * lib/fatal-signal.c: Don't include sigprocmask.h.
40037
40038 2007-05-01  Bruno Haible  <bruno@clisp.org>
40039
40040         * modules/signal: New file.
40041         * lib/signal_.h: New file.
40042         * m4/signal_h.m4: New file.
40043
40044 2007-05-01  Bruno Haible  <bruno@clisp.org>
40045
40046         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
40047         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
40048         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
40049         HAVE_WCTYPE_CTMP_BUG into wctype.h.
40050
40051 2007-05-01  Bruno Haible  <bruno@clisp.org>
40052
40053         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
40054         configure time.
40055         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
40056         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
40057         * modules/sys_stat (Makefile.am): Substitute their values into
40058         sys/stat.h.
40059
40060 2007-05-01  Bruno Haible  <bruno@clisp.org>
40061
40062         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
40063         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
40064         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
40065
40066 2007-05-01  Bruno Haible  <bruno@clisp.org>
40067
40068         * doc/header/assert.texi: Undo last change: don't mention the gnulib
40069         'assert' module here.
40070
40071 2007-05-01  Bruno Haible  <bruno@clisp.org>
40072
40073         * doc/functions/*.texi: New files.
40074         * doc/functions/google-ranking.txt: New file.
40075         * doc/gnulib.texi (Function Substitutes): New chapter.
40076         (ctime, inet_ntoa): Remove sections.
40077         * doc/ctime.texi: Remove file.
40078         * doc/inet_ntoa.texi: Remove file.
40079         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
40080         dependencies.
40081         (%.info): New rule, specifying a --reference-limit.
40082
40083 2007-05-01  Bruno Haible  <bruno@clisp.org>
40084
40085         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
40086
40087 2007-05-01  Bruno Haible  <bruno@clisp.org>
40088
40089         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
40090         the portability of 'mkdir' to mingw systems.
40091
40092 2007-05-01  Bruno Haible  <bruno@clisp.org>
40093
40094         * doc/headers/google-ranking.txt: New file.
40095
40096 2007-04-30  Eric Blake  <ebb9@byu.net>
40097
40098         Prefer fseeko to fseek.
40099         * modules/getpass (Depends-on): Add fseeko.
40100         * lib/getpass.c (getpass): Use fseeko, not fseek.
40101
40102 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
40103
40104         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
40105         assumes the sorting is stable, while most qsort implementations
40106         are not.  Use argument addresses to ensure they never compare as
40107         equal.
40108
40109         * tests/test-argp-2.sh (usage-indent test): Fix output
40110         (func_compare): Restore diff options
40111         * tests/test-argp.c: Restore #include "progname.h"
40112
40113 2007-04-29  Bruno Haible  <bruno@clisp.org>
40114
40115         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
40116         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40117         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
40118         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40119         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
40120         (configure.ac): Define CHECK_SNPRINTF_POSIX.
40121         (TESTS, check_PROGRAMS): Add test-snprintf.
40122         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
40123         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
40124         (TESTS, check_PROGRAMS): Add test-vsnprintf.
40125         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
40126         assertions that fail on HP-UX, OSF/1, or IRIX.
40127         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
40128
40129 2007-04-29  Bruno Haible  <bruno@clisp.org>
40130
40131         * MODULES.html.sh (posix_functions): Remove 'contents'.
40132
40133 2007-04-29  Karl Berry  <karl@gnu.org>
40134
40135         * config/srclist.txt (gendocs_template_min): new entry.
40136
40137 2007-04-29  Bruno Haible  <bruno@clisp.org>
40138
40139         Work around fpurge bug on BSD systems.
40140         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
40141         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
40142         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
40143         fpurge to rpl_fpurge if the system already has this function.
40144         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
40145         the case where the system already has this function. Correct invariants
40146         on BSD systems.
40147         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
40148         BSD systems.
40149
40150 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40151
40152         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
40153         proposed by Sven Verdoolaege.
40154
40155         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
40156         options.
40157         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
40158         (usage and help tests): Update
40159
40160 2007-04-29  Bruno Haible  <bruno@clisp.org>
40161
40162         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40163         Print more information in case of failure. Disable a test on BeOS.
40164
40165 2007-04-29  Bruno Haible  <bruno@clisp.org>
40166
40167         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40168         This helps debugging on systems on which no gdb is available.
40169
40170 2007-04-29  Bruno Haible  <bruno@clisp.org>
40171
40172         * lib/freading.h: Improve comments.
40173         * lib/fwriting.h: Likewise.
40174         * tests/test-freading.c (main): Don't check freading immediately after
40175         repositioning. Needed for glibc.
40176
40177 2007-04-29  Bruno Haible  <bruno@clisp.org>
40178
40179         * lib/freading.c (freading): Trivial simplification.
40180
40181 2007-04-28  Bruno Haible  <bruno@clisp.org>
40182
40183         * tests/test-fwriting.c (main): Also test the interaction between
40184         fflush and fwriting.
40185         * modules/fwriting-tests (Depends-on): Add fflush.
40186
40187         * tests/test-freading.c (main): Also test the interaction between
40188         fflush and freading.
40189         * modules/freading-tests (Depends-on): Add fflush.
40190
40191 2007-04-28  Bruno Haible  <bruno@clisp.org>
40192
40193         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40194         fseeko and ftello.
40195         Suggested by Eric Blake.
40196
40197 2007-04-28  Jim Meyering  <jim@meyering.net>
40198
40199         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40200         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40201         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40202
40203 2007-04-27  Eric Blake  <ebb9@byu.net>
40204
40205         * doc/headers/assert.texi (assert.h): Document assert module use.
40206
40207 2007-04-27  Bruno Haible  <bruno@clisp.org>
40208
40209         * doc/headers/*.texi: New files.
40210         * doc/gnulib.texi (Header File Substitutes): New chapter.
40211         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40212         dependencies.
40213         (standards.info ,standards.html, standards.dvi): Update dependencies.
40214         (mostlyclean, clean): New targets.
40215
40216 2007-04-27  Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40219         * modules/sysexits (Files, Makefile.am): Update.
40220
40221         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40222         * modules/sys_socket (Files, Makefile.am): Update.
40223
40224         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40225         * modules/sys_stat (Files, Makefile.am): Update.
40226
40227 2007-04-27  Eric Blake  <ebb9@byu.net>
40228
40229         * lib/freading.h: Improve comments.
40230         * lib/fwriting.h: Likewise.
40231         * lib/fflush.c: Likewise.
40232
40233         Fix closein for mingw.
40234         * modules/closein-tests: Add tests for closein.
40235         * tests/test-closein.c: New file.
40236         * tests/test-closein.sh: Likewise.
40237         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40238         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40239
40240 2007-04-27  Bruno Haible  <bruno@clisp.org>
40241
40242         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40243         version is < 6.
40244         * lib/math_.h [__DECC]: Likewise.
40245         * lib/stdio_.h [__DECC]: Likewise.
40246         * lib/stdlib_.h [__DECC]: Likewise.
40247         * lib/string_.h [__DECC]: Likewise.
40248         * lib/time_.h [__DECC]: Likewise.
40249         * lib/wchar_.h [__DECC]: Likewise.
40250         * lib/wctype_.h [__DECC]: Likewise.
40251
40252 2007-04-27  Bruno Haible  <bruno@clisp.org>
40253
40254         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40255
40256 2007-04-27  Bruno Haible  <bruno@clisp.org>
40257
40258         * lib/fflush.c: Add comments.
40259         * modules/fpurge-tests (Depends-on): Add fflush.
40260         * modules/freadable-tests (Depends-on): Likewise.
40261         * modules/fwritable-tests (Depends-on): Likewise.
40262
40263 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40264
40265         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40266         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40267         Report by Bruno Haible <bruno@clisp.org>.
40268
40269 2007-04-26  Eric Blake  <ebb9@byu.net>
40270
40271         Fix fflush on mingw.
40272         * modules/fflush (Depends-on): Add freading.
40273         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40274         but unread data.
40275
40276 2007-04-26  Eric Blake  <ebb9@byu.net>
40277         and Bruno Haible  <bruno@clisp.org>
40278
40279         Implement freading and fwriting.
40280         * lib/freading.c: New file.
40281         * lib/freading.h: Likewise.
40282         * m4/freading.m4: Likewise.
40283         * modules/freading: Likewise.
40284         * modules/freading-tests: Likewise.
40285         * tests/test-freading.c: Likewise.
40286         * lib/fwriting.c: New file.
40287         * lib/fwriting.h: Likewise.
40288         * m4/fwriting.m4: Likewise.
40289         * modules/fwriting: Likewise.
40290         * modules/fwriting-tests: Likewise.
40291         * tests/test-fwriting.c: Likewise.
40292         * MODULES.html.sh (File stream based Input/Output): Mention them.
40293
40294 2007-04-26  Bruno Haible  <bruno@clisp.org>
40295
40296         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40297         'long' when we assume it.
40298         Suggested by Eric Blake.
40299
40300 2007-04-26  Bruno Haible  <bruno@clisp.org>
40301
40302         Ensure fseeko, ftello are declared on glibc systems.
40303         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40304         * modules/fseeko (configure.ac-early): Likewise.
40305         * modules/ftello (configure.ac-early): Likewise.
40306         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40307         AC_FUNC_FSEEKO for this.
40308         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40309         (gl_CHECK_FSEEKO): Remove macro.
40310
40311 2007-04-26  Bruno Haible  <bruno@clisp.org>
40312
40313         * tests/test-fflush.c (main): Also check the ftell result after
40314         fflush and fseek/fseeko.
40315         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40316         file descriptor position cache in the stream.
40317         * lib/fseeko.c (rpl_fseeko): Likewise.
40318
40319 2007-04-26  Bruno Haible  <bruno@clisp.org>
40320
40321         * modules/fflush-tests (Depends-on): Add fseeko.
40322
40323 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40324             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40325
40326         * lib/argz_.h: ensure error_t definition is obtained in same
40327         mechanism system argz.h would have.
40328         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40329         argz facilities are known bad.  Err on the side of caution if
40330         cross-compiling.
40331
40332 2007-04-25  Eric Blake  <ebb9@byu.net>
40333
40334         * lib/fpurge.c (includes): Use stdlib.h for free.
40335         * tests/test-fflush.c (main): Also test fflush-fseeko.
40336
40337 2007-04-25  Bruno Haible  <bruno@clisp.org>
40338
40339         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40340         * lib/fseeko.c: New file.
40341         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40342         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40343         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40344         gl_FUNC_FSEEKO.
40345         (gl_FUNC_FSEEKO): Invoke it.
40346         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40347         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40348         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40349
40350 2007-04-25  Bruno Haible  <bruno@clisp.org>
40351
40352         * modules/fflush (Depends-on): Add ftello.
40353
40354 2007-04-25  Bruno Haible  <bruno@clisp.org>
40355
40356         * modules/ftello-tests: New file.
40357         * tests/test-ftello.c: New file.
40358
40359         * modules/ftello: New file.
40360         * m4/ftello.m4: New file.
40361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40362         HAVE_FTELLO.
40363         * lib/stdio_.h (ftello): New declaration.
40364         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40365         HAVE_FTELLO.
40366
40367 2007-04-25  Bruno Haible  <bruno@clisp.org>
40368
40369         * modules/fseeko-tests: New file.
40370         * tests/test-fseeko.c: New file.
40371
40372         * modules/fseeko: New file.
40373         * m4/fseeko.m4: New file.
40374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40375         HAVE_FSEEKO.
40376         * lib/stdio_.h (fseeko): New declaration.
40377         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40378         HAVE_FSEEKO.
40379
40380 2007-04-25  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40383
40384 2007-04-25  Bruno Haible  <bruno@clisp.org>
40385
40386         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40387         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40388         * tests/test-unistd.c: Likewise.
40389         * tests/test-fcntl.c: Likewise.
40390
40391 2007-04-23  Eric Blake  <ebb9@byu.net>
40392
40393         * lib/fflush.c: Fix missing include.
40394         Reported by Bruno Haible.
40395
40396 2007-04-23  Bruno Haible  <bruno@clisp.org>
40397
40398         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40399         Reported by Eric Blake.
40400
40401 2007-04-23  Bruno Haible  <bruno@clisp.org>
40402
40403         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40404
40405 2007-04-23  Bruno Haible  <bruno@clisp.org>
40406
40407         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40408
40409 2007-04-23  Bruno Haible  <bruno@clisp.org>
40410
40411         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40412         Needed on HP-UX 11.
40413
40414 2007-04-16  Eric Blake  <ebb9@byu.net>
40415
40416         Make fflush rely on fpurge.
40417         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40418         open coding all variants.
40419         * modules/fflush (Depends-on): Add fpurge and unistd.
40420         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40421         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40422
40423         Fix --with-tests compilation on cygwin.
40424         * modules/argmatch-tests (Makefile.am): List gnulib library first
40425         in LDADD.
40426         * modules/argp-tests (Makefile.am): Likewise.
40427         * modules/array-list-tests (Makefile.am): Likewise.
40428         * modules/array-oset-tests (Makefile.am): Likewise.
40429         * modules/avltree-list-tests (Makefile.am): Likewise.
40430         * modules/avltree-oset-tests (Makefile.am): Likewise.
40431         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40432         * modules/carray-list-tests (Makefile.am): Likewise.
40433         * modules/dirname-tests (Makefile.am): Likewise.
40434         * modules/frexp-tests (Makefile.am): Likewise.
40435         * modules/isnanl-tests (Makefile.am): Likewise.
40436         * modules/linked-list-tests (Makefile.am): Likewise.
40437         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40438         * modules/lock-tests (Makefile.am): Likewise.
40439         * modules/rbtree-list-tests (Makefile.am): Likewise.
40440         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40441         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40442         * modules/tls-tests (Makefile.am): Likewise.
40443         * modules/tsearch-tests (Makefile.am): Likewise.
40444         * modules/xvasprintf-tests (Makefile.am): Likewise.
40445
40446         Fix fpurge for cygwin.
40447         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40448         value.
40449         * modules/fpurge-tests (Depends-on): Clean up trash.
40450
40451 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40452
40453         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40454
40455         * m4/autobuild.m4: Re-indent.
40456
40457 2007-04-13  Bruno Haible  <bruno@clisp.org>
40458
40459         * modules/fpurge-tests: New file.
40460         * tests/test-fpurge.c: New file.
40461
40462         * modules/fpurge: New file.
40463         * lib/fpurge.h: New file.
40464         * lib/fpurge.c: New file.
40465         * m4/fpurge.m4: New file.
40466
40467 2007-04-13  Bruno Haible  <bruno@clisp.org>
40468
40469         * modules/fbufmode-tests: New file.
40470         * tests/test-fbufmode.c: New file.
40471
40472         * modules/fbufmode: New file.
40473         * lib/fbufmode.h: New file.
40474         * lib/fbufmode.c: New file.
40475         * m4/fbufmode.m4: New file.
40476
40477 2007-04-13  Bruno Haible  <bruno@clisp.org>
40478
40479         * modules/fwritable-tests: New file.
40480         * tests/test-fwritable.c: New file.
40481
40482         * modules/fwritable: New file.
40483         * lib/fwritable.h: New file.
40484         * lib/fwritable.c: New file.
40485         * m4/fwritable.m4: New file.
40486
40487 2007-04-13  Bruno Haible  <bruno@clisp.org>
40488
40489         * modules/freadable-tests: New file.
40490         * tests/test-freadable.c: New file.
40491
40492         * modules/freadable: New file.
40493         * lib/freadable.h: New file.
40494         * lib/freadable.c: New file.
40495         * m4/freadable.m4: New file.
40496
40497 2007-04-13  Bruno Haible  <bruno@clisp.org>
40498
40499         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40500         MOSTLYCLEANFILES.
40501
40502 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40503
40504         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40505         gzip bootstrap.conf to avoid dragging in i18n machinery.
40506         (gnulib_tool_option): Use it.
40507
40508 2007-04-13  Bruno Haible  <bruno@clisp.org>
40509
40510         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40511         %F directives.
40512         * tests/test-vasprintf-posix.c (test_function): Likewise.
40513         * tests/test-snprintf-posix.h (test_function): Likewise.
40514         * tests/test-sprintf-posix.h (test_function): Likewise.
40515         * tests/test-fprintf-posix.h (test_function): Likewise.
40516         * tests/test-printf-posix.h (test_function): Likewise.
40517         * tests/test-fprintf-posix.out: Likewise.
40518
40519 2007-04-13  Bruno Haible  <bruno@clisp.org>
40520
40521         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40522         * modules/tls-tests (configure.ac): Likewise.
40523         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40524
40525 2007-04-13  Bruno Haible  <bruno@clisp.org>
40526
40527         * lib/tls.c (glthread_tls_get): Fix return type.
40528         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40529
40530 2007-04-12  Eric Blake  <ebb9@byu.net>
40531
40532         * modules/gettime (Depends-on): Remove gettime.
40533         Reported by Dmitry V. Levin.
40534
40535 2007-04-12  Bruno Haible  <bruno@clisp.org>
40536
40537         * modules/fflush (Include): Mention <stdio.h>.
40538         * modules/strtoimax (Include): Mention <inttypes.h>.
40539         * modules/strtoumax (Include): Likewise.
40540
40541 2007-04-12  Eric Blake  <ebb9@byu.net>
40542
40543         * .cvsignore: New file.
40544         * .gitignore: Likewise.
40545
40546 2007-04-12  Bruno Haible  <bruno@clisp.org>
40547
40548         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40549         not before, since $(LDADD) often contains libgnu.a.
40550         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40551         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40552         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40553         Needed on Cygwin.
40554
40555 2007-04-12  Eric Blake  <ebb9@byu.net>
40556
40557         Work around glibc's failure to flush stdin on fclose.
40558         * lib/closein.c (close_stdin): Flush stdin before closing.
40559
40560         Work around glibc's failure to reset seekable stdin on exit.
40561         * modules/closein: New module.
40562         * lib/closein.c: New file.
40563         * lib/closein.h: Likewise.
40564         * m4/closein.m4: Likewise.
40565         * MODULES.html.sh (File stream based Input/Output): Document it.
40566
40567 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40568
40569         * gnulib-tool: Rename generated 'autobuild' script to
40570         'do-autobuild' in --create-megatestdir output.
40571
40572         * doc/gnulib.texi (Build robot for gnulib): Fix.
40573
40574 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40575
40576         * modules/sysexits (Depends-on): Add absolute-header.
40577
40578 2007-04-12  Eric Blake  <ebb9@byu.net>
40579
40580         No need to preserve errno on success.
40581         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40582         Reported by Bruno Haible.
40583
40584 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40585
40586         * MODULES.html.sh (Support for maintaining and releasing
40587         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40588
40589 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40590
40591         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40592
40593 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40594
40595         * modules/autobuild: New module.
40596
40597         * m4/autobuild.m4: New file.
40598
40599 2007-04-11  Bruno Haible  <bruno@clisp.org>
40600
40601         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40602         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40603         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40606         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40607         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40608         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40609         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40610         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40611         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40612         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40613         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40615         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40616         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40617         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40618         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40619         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40620         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40621         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40622         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40623         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40624         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40625         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40626         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40627         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40628         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40629         Reported by Eric Blake.
40630
40631 2007-04-11  Bruno Haible  <bruno@clisp.org>
40632
40633         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40634
40635 2007-04-10  Bruno Haible  <bruno@clisp.org>
40636
40637         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40638         for NaN and Infinity. Needed on FreeBSD 6.1.
40639         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40640         regarding results for "%010a" of Infinity and NaN.
40641         * tests/test-vasprintf-posix.c (test_function): Likewise.
40642         * tests/test-snprintf-posix.h (test_function): Likewise.
40643         * tests/test-sprintf-posix.h (test_function): Likewise.
40644         * tests/test-fprintf-posix.h (test_function): Likewise.
40645         * tests/test-printf-posix.h (test_function): Likewise.
40646         * tests/test-fprintf-posix.out: Likewise.
40647
40648 2007-04-10  Bruno Haible  <bruno@clisp.org>
40649
40650         * modules/locale-tests: New file.
40651         * tests/test-locale.c: New file.
40652
40653         * modules/locale: New file.
40654         * lib/locale_.h: New file.
40655         * m4/locale_h.m4: New file.
40656
40657 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40658             Bruno Haible  <bruno@clisp.org>
40659
40660         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40661         be determined, test for availability of the copysignf, copysign,
40662         copysignl functions.
40663         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40664         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40665         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40666
40667 2007-04-09  Eric Blake  <ebb9@byu.net>
40668
40669         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40670         * modules/stdio (Makefile.am): Support fflush.
40671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40672         * modules/fflush: New file.
40673         * lib/fflush.c: Likewise.
40674         * m4/fflush.m4: Likewise.
40675         * modules/fflush-tests: New test.
40676         * tests/test-fflush.c: Likewise.
40677         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40678
40679 2007-04-06  Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40682         (VASNPRINTF): Use signbit for faster determination whether to print a
40683         minus sign.
40684         * modules/vasnprintf (Files): Remove lib/float+.h.
40685         * modules/fprintf-posix (Depends-on): Add signbit.
40686         * modules/snprintf-posix (Depends-on): Likewise.
40687         * modules/sprintf-posix (Depends-on): Likewise.
40688         * modules/vasnprintf-posix (Depends-on): Likewise.
40689         * modules/vasprintf-posix (Depends-on): Likewise.
40690         * modules/vfprintf-posix (Depends-on): Likewise.
40691         * modules/vsnprintf-posix (Depends-on): Likewise.
40692         * modules/vsprintf-posix (Depends-on): Likewise.
40693
40694 2007-04-06  Bruno Haible  <bruno@clisp.org>
40695
40696         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40697         * tests/test-frexpl.c (main): Likewise.
40698         * tests/test-ldexpl.c (main): Likewise.
40699         * modules/frexp-tests (Depends-on): Add signbit.
40700         * modules/frexpl-tests (Depdends-on): Likewise.
40701         * modules/ldexpl-tests (Depdends-on): Likewise.
40702
40703 2007-04-06  Bruno Haible  <bruno@clisp.org>
40704
40705         * modules/signbit-tests: New file.
40706         * tests/test-signbit.c: New file.
40707
40708         * modules/signbit: New file.
40709         * lib/signbitf.c: New file.
40710         * lib/signbitd.c: New file.
40711         * lib/signbitl.c: New file.
40712         * m4/signbit.m4: New file.
40713         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40714         (signbit): New macro.
40715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40716         REPLACE_SIGNBIT.
40717         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40718         REPLACE_FREXPL into math.h.
40719
40720 2007-04-06  Bruno Haible  <bruno@clisp.org>
40721
40722         * modules/isnanf-nolibm-tests: New file.
40723         * tests/test-isnanf.c: New file.
40724
40725         * modules/isnanf-nolibm: New file.
40726         * lib/isnanf.h: New file.
40727         * lib/isnanf.c: New file.
40728         * lib/isnan.c: Consider the USE_FLOAT macro.
40729         * m4/isnanf.m4: New file.
40730
40731 2007-04-06  Bruno Haible  <bruno@clisp.org>
40732
40733         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40734         (Link): New section.
40735
40736         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40737
40738 2007-04-06  Bruno Haible  <bruno@clisp.org>
40739
40740         Assume the 'long double' type.
40741         * m4/longdouble.m4: Remove file.
40742         * config/srclist.txt: Don't mention longdouble.m4.
40743         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40744         * lib/float+.h: Likewise.
40745         * lib/frexp.c: Likewise.
40746         * lib/printf-args.h: Likewise.
40747         * lib/printf-args.c: Likewise.
40748         * lib/printf-frexp.c: Likewise.
40749         * lib/printf-parse.c: Likewise.
40750         * lib/vasnprintf.c: Likewise.
40751         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40752         * m4/intl.m4: Likewise.
40753         * m4/isnanl.m4: Likewise.
40754         * m4/printf.m4: Likewise.
40755         * m4/printf-frexpl.m4: Likewise.
40756         * m4/vasnprintf.m4: Likewise.
40757         * modules/allocsa (Files): Remove m4/longdouble.m4.
40758         * modules/gettext (Files): Likewise.
40759         * modules/relocatable-prog-wrapper (Files): Likewise.
40760         * modules/vasnprintf (Files): Likewise.
40761         * modules/isnanl (Files): Likewise.
40762         (Include): Simplify.
40763         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40764         (Include): Simplify.
40765         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40766         (Include): Simplify.
40767         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40768         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40769         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40770         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40771         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40772         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40773         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40774         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40775         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40776         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40777         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40778         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40779         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40780         * tests/test-isnanl.c: Likewise.
40781         * tests/test-snprintf-posix.h: Likewise.
40782         * tests/test-sprintf-posix.h: Likewise.
40783         * tests/test-vasnprintf-posix.c: Likewise.
40784         * tests/test-vasnprintf-posix2.c: Likewise.
40785         * tests/test-vasprintf-posix.c: Likewise.
40786
40787 2007-04-06  Bruno Haible  <bruno@clisp.org>
40788
40789         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40790         * lib/math_.h [__DECC]: Include the overridden include file through
40791         #include_next, outside the double-inclusion guard.
40792         * lib/stdio_.h [__DECC]: Likewise.
40793         * lib/stdlib_.h [__DECC]: Likewise.
40794         * lib/string_.h [__DECC]: Likewise.
40795         * lib/time_.h [__DECC]: Likewise.
40796         * lib/wchar_.h [__DECC]: Likewise.
40797         * lib/wctype_.h [__DECC]: Likewise.
40798         * lib/inttypes_.h [__DECC]: Likewise.
40799         Reported by Albert Chin <china@thewrittenword.com> in
40800         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40801
40802 2007-04-04  Eric Blake  <ebb9@byu.net>
40803
40804         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40805         1.5.x.
40806
40807 2007-04-04  Bruno Haible  <bruno@clisp.org>
40808
40809         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40810         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40811
40812 2007-04-04  Bruno Haible  <bruno@clisp.org>
40813
40814         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40815         results for "%010a" of Infinity and NaN.
40816         * tests/test-vasprintf-posix.c (test_function): Likewise.
40817         * tests/test-snprintf-posix.h (test_function): Likewise.
40818         * tests/test-sprintf-posix.h (test_function): Likewise.
40819         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40820         * tests/test-printf-posix.h (test_function): Likewise.
40821         * tests/test-fprintf-posix.out: Update.
40822         Needed for FreeBSD 6.1.
40823
40824 2007-04-04  Bruno Haible  <bruno@clisp.org>
40825
40826         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40827         directly used by the gnulib modules nor by gnulib-tool.
40828
40829 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40830
40831         * DEPENDENCIES: Give overall description of version dependency
40832         desirability.  Use more-typical names for apps.
40833         Add shell, coreutils, diffutils, grep, tar, gzip.
40834
40835 2007-04-04  Simon Josefsson  <simon@josefsson.org>
40836
40837         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
40838
40839 2007-04-04  Karl Berry  <karl@gnu.org>
40840
40841         * MODULES.html.sh (func_module): missing '.
40842
40843 2007-04-03  Bruno Haible  <bruno@clisp.org>
40844
40845         * modules/argmatch-tests (Makefile.am): New variable
40846         test_argmatch_LDADD.
40847         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
40848         * modules/array-list-tests (Makefile.am): New variable
40849         test_array_list_LDADD.
40850         * modules/array-oset-tests (Makefile.am): New variable
40851         test_array_oset_LDADD.
40852         * modules/avltree-list-tests (Makefile.am): New variable
40853         test_avltree_list_LDADD.
40854         * modules/avltree-oset-tests (Makefile.am): New variable
40855         test_avltree_oset_LDADD.
40856         * modules/avltreehash-list-tests (Makefile.am): New variable
40857         test_avltreehash_list_LDADD.
40858         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
40859         test_canonicalize_lgpl_LDADD.
40860         * modules/carray-list-tests (Makefile.am): New variable
40861         test_carray_list_LDADD.
40862         * modules/dirname-tests (Makefile.am): New variable
40863         test_dirname_LDADD.
40864         * modules/linked-list-tests (Makefile.am): New variable
40865         test_linked_list_LDADD.
40866         * modules/linkedhash-list-tests (Makefile.am): New variable
40867         test_linkedhash_list_LDADD.
40868         * modules/rbtree-list-tests (Makefile.am): New variable
40869         test_rbtree_list_LDADD.
40870         * modules/rbtree-oset-tests (Makefile.am): New variable
40871         test_rbtree_oset_LDADD.
40872         * modules/rbtreehash-list-tests (Makefile.am): New variable
40873         test_rbtreehash_list_LDADD.
40874         * modules/xvasprintf-tests (Makefile.am): New variable
40875         test_xvasprintf_LDADD.
40876         Reported by Eric Blake.
40877
40878 2007-04-03  Eric Blake  <ebb9@byu.net>
40879
40880         * DEPENDENCIES: Weaken m4 requirements.
40881
40882 2007-04-03  Bruno Haible  <bruno@clisp.org>
40883
40884         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
40885         * modules/isnanl-tests (configure.ac): Likewise.
40886
40887 2007-04-03  Ben Pfaff  <blp@gnu.org>
40888
40889         * modules/iconv_open: Add $(srcdir)/ to source directory
40890         references in Makefile fragments that call gperf, to fix VPATH
40891         builds.
40892
40893 2007-04-03  Bruno Haible  <bruno@clisp.org>
40894
40895         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
40896         * lib/ldexpl.c: Undo last change.
40897
40898 2007-04-03  Bruno Haible  <bruno@clisp.org>
40899
40900         * modules/printf-frexpl (Depends-on): Undo last change.
40901         (Files): Add m4/ldexpl.m4.
40902
40903 2007-04-03  Bruno Haible  <bruno@clisp.org>
40904
40905         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
40906         * modules/isnanl (Link): New section.
40907
40908         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
40909         * modules/frexp (Link): New section.
40910
40911         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
40912         * modules/frexpl (Link): New section.
40913
40914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
40915         * modules/ldexpl (Link): New section.
40916
40917 2007-04-03  Bruno Haible  <bruno@clisp.org>
40918
40919         * modules/TEMPLATE-EXTENDED: New file.
40920         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
40921
40922 2007-04-03  Bruno Haible  <bruno@clisp.org>
40923
40924         * DEPENDENCIES: New file.
40925         Suggested by Simon Josefsson.
40926
40927 2007-04-03  Bruno Haible  <bruno@clisp.org>
40928
40929         * doc/gnulib.texi: Escape @.
40930
40931 2007-04-03  James Youngman  <jay@gnu.org>
40932         and Paul Eggert  <eggert@cs.ucla.edu>
40933
40934         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
40935         birthtime on all systems that have birthtime, not just those which
40936         use st_birthtimensec rather than st_birthtim.  Putting zero in
40937         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
40938         that the birth time is not available for files on an NFS mount.
40939
40940 2007-04-03  Simon Josefsson  <simon@josefsson.org>
40941
40942         * modules/memxor: Move back from crypto/, suggested by Bruno.
40943         * modules/crypto/hmac-sha1: Fix memxor dependency.
40944
40945         * modules/crypto/gc: Moved from ../.
40946
40947 2007-04-02  Eric Blake  <ebb9@byu.net>
40948
40949         * lib/ldexpl.c (includes): Avoid libm.
40950
40951         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
40952
40953 2007-04-02  Bruno Haible  <bruno@clisp.org>
40954
40955         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
40956         on IRIX.
40957
40958 2007-04-02  Bruno Haible  <bruno@clisp.org>
40959
40960         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
40961         x86 or x86_64 platforms running MacOS X.
40962         Reported by Ryan Schmidt <@ryandesign.com>.
40963
40964 2007-04-02  Bruno Haible  <bruno@clisp.org>
40965
40966         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
40967         i386.
40968
40969 2007-04-01  Simon Josefsson  <simon@josefsson.org>
40970
40971         * modules/crypto/arcfour: Moved from ../.
40972         * modules/crypto/arcfour-tests: Moved from ../.
40973         * modules/crypto/arctwo: Moved from ../.
40974         * modules/crypto/arctwo-tests: Moved from ../.
40975         * modules/crypto/des: Moved from ../.
40976         * modules/crypto/des-tests: Moved from ../.
40977         * modules/crypto/gc-arcfour: Moved from ../.
40978         * modules/crypto/gc-arcfour-tests: Moved from ../.
40979         * modules/crypto/gc-arctwo: Moved from ../.
40980         * modules/crypto/gc-arctwo-tests: Moved from ../.
40981         * modules/crypto/gc-des: Moved from ../.
40982         * modules/crypto/gc-des-tests: Moved from ../.
40983         * modules/crypto/gc-hmac-md5: Moved from ../.
40984         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
40985         * modules/crypto/gc-hmac-sha1: Moved from ../.
40986         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
40987         * modules/crypto/gc-md2: Moved from ../.
40988         * modules/crypto/gc-md2-tests: Moved from ../.
40989         * modules/crypto/gc-md4: Moved from ../.
40990         * modules/crypto/gc-md4-tests: Moved from ../.
40991         * modules/crypto/gc-md5: Moved from ../.
40992         * modules/crypto/gc-md5-tests: Moved from ../.
40993         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
40994         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
40995         * modules/crypto/gc-random: Moved from ../.
40996         * modules/crypto/gc-rijndael: Moved from ../.
40997         * modules/crypto/gc-rijndael-tests: Moved from ../.
40998         * modules/crypto/gc-sha1: Moved from ../.
40999         * modules/crypto/gc-sha1-tests: Moved from ../.
41000         * modules/crypto/gc-tests: Moved from ../.
41001         * modules/crypto/hmac-md5: Moved from ../.
41002         * modules/crypto/hmac-md5-tests: Moved from ../.
41003         * modules/crypto/hmac-sha1: Moved from ../.
41004         * modules/crypto/hmac-sha1-tests: Moved from ../.
41005         * modules/crypto/md2: Moved from ../.
41006         * modules/crypto/md2-tests: Moved from ../.
41007         * modules/crypto/md4: Moved from ../.
41008         * modules/crypto/md4-tests: Moved from ../.
41009         * modules/crypto/md5: Moved from ../.
41010         * modules/crypto/md5-tests: Moved from ../.
41011         * modules/crypto/memxor: Moved from ../.
41012         * modules/crypto/rijndael: Moved from ../.
41013         * modules/crypto/rijndael-tests: Moved from ../.
41014         * modules/crypto/sha1: Moved from ../.
41015
41016 2007-03-30  James Youngman  <jay@gnu.org>
41017
41018         * tests/test-stat-time.c (prepare_test): use chmod() rather than
41019         rename() to change the ctime of a file (because ctime is unaffected
41020         by rename on jfs2 on AIX 5.1).
41021         (main): Start by doing cleanup, in case a previous run failed leaving
41022         test files behind.
41023
41024 2007-03-31  Bruno Haible  <bruno@clisp.org>
41025
41026         Support old proprietary implementations of iconv.
41027         * modules/iconv_open: New file.
41028         * lib/iconv_.h: New file.
41029         * m4/iconv_h.m4: New file.
41030         * lib/iconv_open.c: New file.
41031         * lib/iconv_open-aix.gperf: New file.
41032         * lib/iconv_open-hpux.gperf: New file.
41033         * lib/iconv_open-irix.gperf: New file.
41034         * lib/iconv_open-osf.gperf: New file.
41035         * m4/iconv_open.m4: New file.
41036         * modules/linebreak (Depends-on): Add iconv_open.
41037         * modules/striconv (Depends-on): Likewise.
41038         * modules/striconveh (Depends-on): Likewise.
41039         * modules/unicodeio (Depends-on): Likewise.
41040         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
41041         (iconv_t)(-1).
41042         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
41043         conversion if cd is (iconv_t)(-1).
41044         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
41045         is not possible.
41046
41047 2007-03-31  Bruno Haible  <bruno@clisp.org>
41048
41049         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41050         work on Solaris either. Protect also second use of "autodetect_jp".
41051
41052 2007-03-31  Bruno Haible  <bruno@clisp.org>
41053
41054         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
41055         the function is not present.
41056
41057 2007-03-31  Bruno Haible  <bruno@clisp.org>
41058
41059         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
41060         the function is not present.
41061
41062 2007-03-31  Bruno Haible  <bruno@clisp.org>
41063
41064         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
41065         a bug in HP-UX iconv_open().
41066
41067 2007-03-31  Bruno Haible  <bruno@clisp.org>
41068
41069         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
41070         (Mathematics <math.h>): New section, add fpieee.
41071         (Input/output <stdio.h>): Add fseterr.
41072         (Mathematics <math.h>): New section, add printf-frexp.
41073         (Container data structures): Add sublist.
41074         (Core language properties): Add fpucw, inline.
41075         (Functions for greatest-width integer types <inttypes.h>): Add
41076         imaxabs, imaxdiv, inttypes.
41077         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
41078         isnanl-nolibm, ldexp.
41079         (Mathematics <math.h>): New section, add printf-frexpl.
41080         (Support for systems lacking POSIX:2001): Add fprintf-posix,
41081         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
41082         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
41083         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
41084         (Unicode string functions): Add unistr/u*-mbtoucr.
41085         (Java): Add javacomp-script, javaexec-script.
41086         (C#): Add csharpcomp-script, csharpexec-script.
41087         (Support for building libraries and executables): Add havelib,
41088         relocatable-*.
41089         (Support for maintaining and releasing projects): Renamed from
41090         'Support for maintaining and release projects'. Add announce-gen.
41091
41092 2007-03-31  Bruno Haible  <bruno@clisp.org>
41093
41094         * README: Talk primarily about git.
41095         (git and CVS): Renamed from CVS.
41096         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
41097         gnulib is available through git.
41098         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
41099
41100 2007-03-30  Bruno Haible  <bruno@clisp.org>
41101
41102         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
41103         * lib/poll_.h: Likewise.
41104         * lib/stat_.h: Likewise.
41105         * lib/sys_time_.h: Likewise.
41106         * lib/sysexit_.h: Likewise.
41107         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
41108         * lib/stdbool_.h: Likewise.
41109         * lib/byteswap_.h: Add double-inclusion guard.
41110
41111 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
41112
41113         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
41114
41115 2007-03-30  Karl Berry  <karl@gnu.org>
41116
41117         * config/srclist-update: double space after USA in the license
41118         substitution, since that's how it's usually (?) written.
41119
41120 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41121
41122         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
41123         reported by Bruno Haible.
41124
41125 2007-03-29  Bruno Haible  <bruno@clisp.org>
41126
41127         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
41128         a bug in AIX iconv().
41129
41130 2007-03-29  Bruno Haible  <bruno@clisp.org>
41131
41132         * modules/ldexpl-tests: New file.
41133         * tests/test-ldexpl.c: New file.
41134
41135 2007-03-29  Bruno Haible  <bruno@clisp.org>
41136
41137         * lib/ldexpl.c: Include fpucw.h.
41138         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
41139         multiplication.
41140         * modules/ldexpl (Depends-on): Add fpucw.
41141
41142 2007-03-29  Bruno Haible  <bruno@clisp.org>
41143
41144         * modules/ldexpl: New file.
41145         * m4/ldexpl.m4: New file.
41146         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
41147         set.
41148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
41149         REPLACE_LDEXPL.
41150         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
41151         REPLACE_LDEXPL.
41152         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41153         gl_FUNC_LDEXPL_WORKS.
41154         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
41155         * modules/mathl (Files): Remove lib/ldexpl.c.
41156         (Depends-on): Add ldexpl.
41157
41158 2007-03-29  Bruno Haible  <bruno@clisp.org>
41159
41160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41161
41162 2007-03-29  Bruno Haible  <bruno@clisp.org>
41163
41164         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41165         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41166         and possibly also HP-UX.
41167         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41168         work on AIX, IRIX, HP-UX, OSF/1.
41169         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41170         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41171         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41172         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41173         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41174         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41175
41176 2007-03-29  Bruno Haible  <bruno@clisp.org>
41177
41178         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41179
41180 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41181
41182         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41183         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41184
41185 2007-03-29  Eric Blake  <ebb9@byu.net>
41186
41187         * lib/acl-internal.h: Remove redundant include.
41188         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41189         Cygwin when a file is locked.
41190
41191 2007-03-29  Bruno Haible  <bruno@clisp.org>
41192
41193         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41194         file.
41195         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41196
41197 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41198
41199         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41200         try to remove a parent directory if the child couldn't be removed
41201         (except for the first rmdir, which could fail because the child
41202         doesn't exist).  Problem reported by Jeff Blaine in
41203         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41204
41205 2007-03-28  Bruno Haible  <bruno@clisp.org>
41206
41207         * lib/striconveh.c (utf8conv_carefully): New function.
41208         (mem_cd_iconveh_internal): Invoke it.
41209
41210 2007-03-28  Bruno Haible  <bruno@clisp.org>
41211
41212         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41213         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41214         input.
41215         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41216         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41217         unistr/u8-uctomb.
41218
41219 2007-03-28  Bruno Haible  <bruno@clisp.org>
41220
41221         * modules/unistr/u8-mbtoucr: New file.
41222         * lib/unistr/u8-mbtoucr.c: New file.
41223         * modules/unistr/u16-mbtoucr: New file.
41224         * lib/unistr/u16-mbtoucr.c: New file.
41225         * modules/unistr/u16-mbtoucr: New file.
41226         * lib/unistr/u16-mbtoucr.c: New file.
41227         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41228
41229 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41230             Bruno Haible  <bruno@clisp.org>
41231
41232         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41233         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41234         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41235
41236         * m4/stdio_h.m4: Add stubs for vasprintf too.
41237
41238         * modules/stdio: Support vasprintf in sed command.
41239
41240         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41241         vasprintf.h.  Add stdio module indicator.
41242
41243         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41244         vasprintf.h.
41245
41246         * lib/vasprintf.h: File removed.
41247
41248         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41249         * lib/vasprintf.c: Ditto.
41250         * lib/xvasprintf.c: Ditto.
41251         * tests/test-vasprintf-posix.c: Ditto.
41252         * tests/test-vasprintf.c: Ditto.
41253
41254 2007-03-27  Bruno Haible  <bruno@clisp.org>
41255
41256         Make vasnprintf multithread-safe.
41257         * lib/vasnprintf.c (decimal_point_char): New function.
41258         (VASNPRINTF): Use it.
41259         Suggested by Simon Josefsson.
41260
41261 2007-03-27  Eric Blake  <ebb9@byu.net>
41262
41263         Support sub-second birthtime on cygwin.
41264         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41265         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41266         (get_stat_birthtime): Also work with st_birthtim.
41267
41268 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41269
41270         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41271         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41272         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41273         (get_stat_birthtime_ns): Simplify compile-time tests.
41274         (get_stat_birthtime): Change the API to look like
41275         get_stat_mtime etc., except return a negative tv_nsec on error.
41276         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41277         Don't check for "spare" fields.
41278         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41279         or for struct stat.st_birthtime, as these tests aren't used.
41280         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41281
41282 2007-03-27  Bruno Haible  <bruno@clisp.org>
41283
41284         * lib/stat-time.h: Include <sys/stat.h>.
41285
41286 2007-03-27  James Youngman  <jay@gnu.org>
41287
41288         * lib/stat-time.h (get_stat_birthtime): New function for
41289           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41290         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41291           and its variants.
41292         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41293         * modules/stat-time-test: New file.
41294         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41295
41296 2007-03-26  Bruno Haible  <bruno@clisp.org>
41297
41298         Better support of signalling NaNs.
41299         * lib/atanl.c: Include isnanl.h.
41300         (atanl): Perform test for NaN at the beginning of the function and
41301         through a call to isnanl.
41302         * lib/cosl.c: Include isnanl.h.
41303         (cosl): Perform test for NaN at the beginning of the function and
41304         through a call to isnanl.
41305         * lib/ldexpl.c: Include isnanl.h.
41306         (ldexpl): Perform test for NaN through a call to isnanl.
41307         * lib/logl.c: Include isnanl.h.
41308         (logl): Perform test for NaN at the beginning of the function and
41309         through a call to isnanl.
41310         * lib/sinl.c: Include isnanl.h.
41311         (sinl): Perform test for NaN at the beginning of the function and
41312         through a call to isnanl.
41313         * lib/sqrtl.c: Include isnanl.h.
41314         (sqrtl): Perform test for NaN at the beginning of the function and
41315         through a call to isnanl.
41316         * lib/tanl.c: Include isnanl.h.
41317         (tanl): Perform test for NaN at the beginning of the function and
41318         through a call to isnanl.
41319         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41320         * modules/mathl (Depends-on): Add isnanl.
41321
41322 2007-03-26  Eric Blake  <ebb9@byu.net>
41323
41324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41325         regression in logic sense of previous patch.
41326
41327 2007-03-26  Bruno Haible  <bruno@clisp.org>
41328
41329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41330         unportable shell command "if ! ...".
41331         Reported by Ralf Wildenhues.
41332
41333 2007-03-25  Bruno Haible  <bruno@clisp.org>
41334
41335         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41336         <sysexits.h> file, and only add EX_CONFIG.
41337         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41338         absolute file name and whether it is sufficient. Substitute also
41339         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41340         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41341         ABSOLUTE_SYSEXITS_H into sysexits.h.
41342
41343 2007-03-25  Bruno Haible  <bruno@clisp.org>
41344
41345         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41346         hints is NULL.
41347
41348 2007-03-25  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41351         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41352
41353 2007-03-25  Bruno Haible  <bruno@clisp.org>
41354
41355         * lib/vasnprintf.c: Include langinfo.h.
41356         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41357         multithread-safe.
41358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41360         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41361         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41362         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41363         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41364         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41365         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41366         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41367         Reported by Simon Josefsson.
41368
41369 2007-03-25  Bruno Haible  <bruno@clisp.org>
41370
41371         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41372         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41373         * modules/vasnprintf (Depends-on): Add stdint.
41374
41375 2007-03-25  Bruno Haible  <bruno@clisp.org>
41376
41377         * modules/fpieee: New file.
41378         * m4/fpieee.m4: New file.
41379         * modules/isnan-nolibm (Depends-on): Add fpieee.
41380         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41381         * modules/isnanl (Depends-on): Add fpieee.
41382
41383 2007-03-25  Bruno Haible  <bruno@clisp.org>
41384
41385         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41386
41387 2007-03-25  Bruno Haible  <bruno@clisp.org>
41388
41389         Avoid test failures on IRIX 6.5.
41390         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41391         (main): Use it.
41392         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41393         macros.
41394         (main): Use them.
41395
41396 2007-03-25  Bruno Haible  <bruno@clisp.org>
41397
41398         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41399         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41400         exists but doesn't work.
41401         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41402         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41404         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41405
41406 2007-03-25  Bruno Haible  <bruno@clisp.org>
41407
41408         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41409         returns inf. Needed on IRIX 6.5.
41410
41411 2007-03-25  Bruno Haible  <bruno@clisp.org>
41412
41413         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41414         (main): Use isnanl instead of x != x idiom.
41415         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41416
41417         * tests/test-frexp.c: Include isnan.h.
41418         (main): Use isnan instead of x != x idiom.
41419         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41420
41421 2007-03-25  Bruno Haible  <bruno@clisp.org>
41422
41423         * tests/test-frexp.c (NaN): New function/macro.
41424         (main): Use it instead of 0.0 / 0.0.
41425         * tests/test-isnan.c (NaN): New function/macro.
41426         (main): Use it instead of 0.0 / 0.0.
41427         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41428         (test_function): Use it instead of 0.0 / 0.0.
41429         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41430         (test_function): Use it instead of 0.0 / 0.0.
41431         * tests/test-snprintf-posix.h (NaN): New function/macro.
41432         (test_function): Use it instead of 0.0 / 0.0.
41433         * tests/test-sprintf-posix.h (NaN): New function/macro.
41434         (test_function): Use it instead of 0.0 / 0.0.
41435         * tests/test-fprintf-posix.h (NaN): New function/macro.
41436         (test_function): Use it instead of 0.0 / 0.0.
41437         * tests/test-printf-posix.h (NaN): New function/macro.
41438         (test_function): Use it instead of 0.0 / 0.0.
41439
41440         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41441
41442 2007-03-25  Bruno Haible  <bruno@clisp.org>
41443
41444         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41445
41446 2007-03-25  Bruno Haible  <bruno@clisp.org>
41447
41448         * lib/regexec.c (merge_state_with_log): Make static.
41449
41450 2007-03-25  Bruno Haible  <bruno@clisp.org>
41451
41452         * lib/trigl.c (kernel_rem_pio2): Make static.
41453
41454 2007-03-25  Bruno Haible  <bruno@clisp.org>
41455
41456         * lib/sincosl.c (sincosl_table): Make static.
41457
41458 2007-03-25  Bruno Haible  <bruno@clisp.org>
41459
41460         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41461         if the compiler does not support C99.
41462
41463 2007-03-25  Bruno Haible  <bruno@clisp.org>
41464
41465         * modules/time (Makefile.am): Ensure all rule action lines start with a
41466         tab.
41467
41468 2007-03-24  Bruno Haible  <bruno@clisp.org>
41469
41470         * modules/tsearch-tests: New file.
41471         * tests/test-tsearch.sh: New file.
41472         * tests/test-tsearch.c: New file, mostly copied from glibc.
41473
41474         * modules/search-tests: New file.
41475         * tests/test-search.c: New file.
41476
41477         * modules/search: New file.
41478         * lib/search_.h: New file, incorporating lib/tsearch.h.
41479         * m4/search_h.m4: New file.
41480         * lib/tsearch.h: Remove file.
41481         * lib/tsearch.c: Include search.h instead of tsearch.h.
41482         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41483         HAVE_TSEARCH.
41484         * modules/tsearch (Files): Remove lib/tsearch.h.
41485         (Depends-on): Add search.
41486         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41487         (Include): Change tsearch.h into search.h.
41488
41489 2007-03-24  Bruno Haible  <bruno@clisp.org>
41490
41491         * modules/fpucw: New file.
41492         * lib/fpucw.h: New file.
41493         * lib/frexp.c: Include fpucw.h.
41494         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41495         (FUNC): Use them.
41496         * lib/printf-frexp.c: Include fpucw.h.
41497         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41498         (FUNC): Use them.
41499         * lib/vasnprintf.c: Include fpucw.h.
41500         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41501         'long double' calculations.
41502         * tests/test-frexpl.c: Include fpucw.h.
41503         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41504         * tests/test-printf-frexpl.c: Include fpucw.h.
41505         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41506         * modules/frexpl (Depends-on): Add fpucw.
41507         * modules/printf-frexpl (Depends-on): Likewise.
41508         * modules/fprintf-posix (Depends-on): Likewise.
41509         * modules/snprintf-posix (Depends-on): Likewise.
41510         * modules/sprintf-posix (Depends-on): Likewise.
41511         * modules/vasnprintf-posix (Depends-on): Likewise.
41512         * modules/vasprintf-posix (Depends-on): Likewise.
41513         * modules/vfprintf-posix (Depends-on): Likewise.
41514         * modules/vsnprintf-posix (Depends-on): Likewise.
41515         * modules/vsprintf-posix (Depends-on): Likewise.
41516         * modules/frexpl-tests (Depends-on): Likewise.
41517         * modules/printf-frexpl-tests (Depends-on): Likewise.
41518
41519 2007-03-24  Bruno Haible  <bruno@clisp.org>
41520
41521         * lib/float+.h: New file.
41522         * lib/isnan.c: Include float+.h.
41523         (SIZE): New macro.
41524         (FUNC): Compare only SIZE bytes of the value.
41525         * lib/vasnprintf.c: Include float+.h.
41526         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41527         SIZEOF_LDBL or SIZEOF_DBL bytes.
41528         * modules/isnan-nolibm (Files): Add lib/float+.h.
41529         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41530         * modules/isnanl (Files): Add lib/float+.h.
41531         * modules/vasnprintf (Files): Add lib/float+.h.
41532
41533 2007-03-24  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41536         include isnanl-nolibm.h.
41537
41538 2007-03-24  Bruno Haible  <bruno@clisp.org>
41539
41540         * tests/test-read-file.c (main): Don't produce spurious output for
41541         expected situations. Make the test fail if it encountered unexpected
41542         results.
41543
41544 2007-03-24  Bruno Haible  <bruno@clisp.org>
41545
41546         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41547         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41548
41549 2007-03-24  Bruno Haible  <bruno@clisp.org>
41550
41551         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41552
41553 2007-03-24  Bruno Haible  <bruno@clisp.org>
41554
41555         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41556         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41557
41558         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41559         * modules/utf8-ucs4: Turn into a symbolic link to module
41560         unistr/u8-mbtouc.
41561
41562         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41563         utf8-ucs4-unsafe.
41564         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41565         unistr/u8-mbtouc-unsafe.
41566
41567         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41568         * modules/utf16-ucs4: Turn into a symbolic link to module
41569         unistr/u16-mbtouc.
41570
41571         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41572         utf16-ucs4-unsafe.
41573         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41574         unistr/u16-mbtouc-unsafe.
41575
41576         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41577         * modules/ucs4-utf8: Turn into a symbolic link to module
41578         unistr/u8-ubtomb.
41579
41580         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41581         * modules/ucs4-utf16: Turn into a symbolic link to module
41582         unistr/u16-ubtomb.
41583
41584 2007-03-24  Bruno Haible  <bruno@clisp.org>
41585
41586         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41587         Enable the function only if HAVE_INLINE.
41588         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41589         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41590         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41591         Enable the function only if HAVE_INLINE.
41592         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41593         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41594         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41595         Enable the function only if HAVE_INLINE.
41596         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41597         Enable the function only if HAVE_INLINE.
41598         * modules/utf8-ucs4: Update.
41599         * modules/utf8-ucs4-unsafe: Update.
41600         * modules/utf16-ucs4: Update.
41601         * modules/utf16-ucs4-unsafe: Update.
41602         * modules/ucs4-utf8: Update.
41603         * modules/ucs4-utf16: Update.
41604
41605 2007-03-24  Bruno Haible  <bruno@clisp.org>
41606
41607         * lib/utf8-ucs4.h: Remove file.
41608         * lib/utf8-ucs4-unsafe.h: Remove file.
41609         * lib/utf16-ucs4.h: Remove file.
41610         * lib/utf16-ucs4-unsafe.h: Remove file.
41611         * lib/ucs4-utf8.h: Remove file.
41612         * lib/ucs4-utf16.h: Remove file.
41613         * lib/unistr.h: Include their previous contents.
41614         * m4/utf-ucs4.m4: Remove file.
41615         * m4/ucs4-utf.m4: Remove file.
41616         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41617         (Depends-on): Add unistr/base.
41618         (configure.ac): Remove gl_UTF_UCS4.
41619         (Makefile.am): Update.
41620         (Include): Change to unistr.h.
41621         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41622         (Depends-on): Add unistr/base.
41623         (configure.ac): Remove gl_UTF_UCS4.
41624         (Makefile.am): Update.
41625         (Include): Change to unistr.h.
41626         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41627         (Depends-on): Add unistr/base.
41628         (configure.ac): Remove gl_UTF_UCS4.
41629         (Makefile.am): Update.
41630         (Include): Change to unistr.h.
41631         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41632         (Depends-on): Add unistr/base.
41633         (configure.ac): Remove gl_UTF_UCS4.
41634         (Makefile.am): Update.
41635         (Include): Change to unistr.h.
41636         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41637         (Depends-on): Add unistr/base.
41638         (configure.ac): Remove gl_UCS4_UTF.
41639         (Makefile.am): Update.
41640         (Include): Change to unistr.h.
41641         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41642         (Depends-on): Add unistr/base.
41643         (configure.ac): Remove gl_UCS4_UTF.
41644         (Makefile.am): Update.
41645         (Include): Change to unistr.h.
41646         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41647         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41648         utf8-ucs4-unsafe.h.
41649         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41650         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41651         utf16-ucs4-unsafe.h.
41652         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41653         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41654         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41655         * lib/unistr/u8-strchr.c: Likewise.
41656         * lib/unistr/u8-strrchr.c: Likewise.
41657         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41658         * lib/unistr/u16-strchr.c: Likewise.
41659         * lib/unistr/u16-strrchr.c: Likewise.
41660         * lib/striconveh.c: Update.
41661         * lib/linebreak.c: Update.
41662
41663 2007-03-24  Bruno Haible  <bruno@clisp.org>
41664
41665         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41666         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41667
41668 2007-03-22  Bruno Haible  <bruno@clisp.org>
41669
41670         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41671
41672 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41673
41674         * MODULES.html.sh (File system functions): New module write-any-file.
41675         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41676         * m4/write-any-file.m4: New files.
41677
41678 2007-03-23  Eric Blake  <ebb9@byu.net>
41679
41680         * gnulib-tool: Rearrange space-tab sequences, since some editors
41681         like to eat them.
41682
41683 2007-03-23  Eric Blake  <ebb9@byu.net>
41684
41685         * lib/version-etc.c (version_etc_va): Update license wording to
41686         be more concise.  Recommended by Richard Stallman.
41687
41688 2007-03-22  Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/poll.c (MSG_PEEK): New fallback definition.
41691
41692 2007-03-22  Bruno Haible  <bruno@clisp.org>
41693
41694         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41695         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41696         (main): Update.
41697         Fixes a compilation error on BeOS.
41698
41699 2007-03-22  Bruno Haible  <bruno@clisp.org>
41700
41701         * modules/frexpl-tests: New file.
41702         * tests/test-frexpl.c: New file.
41703
41704         * modules/frexpl: New file.
41705         * m4/frexpl.m4: New file.
41706         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41707         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41709         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41710         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41711         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41712
41713 2007-03-22  Bruno Haible  <bruno@clisp.org>
41714
41715         * lib/frexpl.c: Share code with lib/frexp.c.
41716         * modules/mathl (Files): Add lib/frexp.c.
41717         (Depends-on): Add isnanl-nolibm.
41718
41719 2007-03-22  Bruno Haible  <bruno@clisp.org>
41720
41721         * modules/printf-frexp (Files): Add m4/frexp.m4.
41722         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41723         only if the found frexp function actually works.
41724
41725 2007-03-22  Bruno Haible  <bruno@clisp.org>
41726
41727         * lib/frexp.c: Remove older implementation that uses divisions.
41728
41729 2007-03-21  Bruno Haible  <bruno@clisp.org>
41730
41731         * modules/frexp-tests: New file.
41732         * tests/test-frexp.c: New file.
41733
41734         * modules/frexp: New file.
41735         * lib/frexp.c: New file.
41736         * m4/frexp.m4: New file.
41737         * lib/math_.h (frexp): New declaration.
41738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41739         REPLACE_FREXP.
41740         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41741
41742 2007-03-21  Bruno Haible  <bruno@clisp.org>
41743
41744         * modules/isnanl-tests: New file.
41745         * tests/test-isnanl.c: New file.
41746
41747         * modules/isnanl: New file.
41748         * lib/isnanl.h: New file.
41749         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41750         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41751         gl_FUNC_ISNANL_WORKS.
41752         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41753         New macros.
41754
41755 2007-03-21  Bruno Haible  <bruno@clisp.org>
41756
41757         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41758         lib/isnanl.h.
41759         (Include): Update.
41760         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41761         * lib/vasnprintf.c: Update.
41762         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41763         tests/test-isnanl.h, remove tests/test-isnanl.c.
41764         (Makefile.am): Update.
41765         * tests/test-isnanl-nolibm.c: New file.
41766         * tests/test-isnanl.h: New file.
41767         * tests/test-isnanl.c: Remove file.
41768
41769 2007-03-21  Jim Meyering  <jim@meyering.net>
41770
41771         When trying to open ".", treat ESTALE like EACCES.
41772         * lib/savewd.c (savewd_save): Resort to forking not just upon
41773         failure with EACCES, but also when errno is ESTALE.
41774
41775 2007-03-20  Bruno Haible  <bruno@clisp.org>
41776
41777         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41778         Needed on AIX 5.1. Reported by Matthew Woehlke.
41779
41780 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41781
41782         Suggestions by Bruno Haible:
41783         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41784         our own.
41785         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41786         * modules/acl (Depends-on): Add gettext.
41787
41788 2007-03-19  Bruno Haible  <bruno@clisp.org>
41789
41790         * modules/iconvme: Remove file.
41791         * lib/iconvme.h: Remove file.
41792         * lib/iconvme.c: Remove file.
41793         * m4/iconvme.m4: Remove file.
41794
41795 2007-03-19  Bruno Haible  <bruno@clisp.org>
41796
41797         * doc/relocatable-maint.texi: Break long shell script line.
41798         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41799
41800 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41801
41802         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41803         handle file_has_acl.
41804         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41805         * lib/acl.c: Move header inclusions and related macro defns into
41806         lib/acl-internal.h.
41807         (S_ISLNK): Remove defn, since that's now done for us.
41808         (file_has_acl): Move to lib/file-has-acl.c.
41809         Call acl_trivial if available.  This is the crucial part of the fix.
41810         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41811         shared within the library.  Rewrite a bit, partly to make it compatible
41812         with the GNU coding style.
41813         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41814         Remove unnecessary double-quotes.
41815         Don't test for acl_to_text; the build will catch that.
41816         Replace acl_entries if it doesn't exist and it is needed.
41817         Check for -lsec and acl_trivial (as used on Solaris 10).
41818         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41819         lib/file-has-acl.c.
41820         (Depends-on): Add sys_stat, for S_ISLNK.
41821
41822 2007-03-19  Ben Pfaff  <blp@gnu.org>
41823
41824         * doc/gnulib.texi: Fix typos.
41825         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41826
41827 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41828
41829         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
41830         If size is zero here, buf must be zero.
41831
41832 2007-03-19  Simon Josefsson  <simon@josefsson.org>
41833
41834         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
41835         <bruno@clisp.org>.
41836
41837 2007-03-18  Bruno Haible  <bruno@clisp.org>
41838
41839         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
41840         Suggested by Eric Blake.
41841
41842 2007-03-18  Ben Pfaff  <blp@gnu.org>
41843
41844         * doc/relocatable.texi: Recommend using as prefix a directory
41845         that does not exist and will never be created.  Based on
41846         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
41847         and others.
41848
41849 2007-03-17  Bruno Haible  <bruno@clisp.org>
41850
41851         * lib/fchownat.c: Include lchown.h.
41852
41853 2007-03-17  Bruno Haible  <bruno@clisp.org>
41854
41855         Fix endless loop when the given allocated size was > INT_MAX.
41856         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
41857         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
41858         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
41859         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
41860         * lib/sprintf.c (sprintf): Likewise.
41861
41862 2007-03-17  Bruno Haible  <bruno@clisp.org>
41863
41864         * tests/test-argp-2.sh (func_compare): Output a context diff.
41865
41866 2007-03-17  Bruno Haible  <bruno@clisp.org>
41867
41868         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
41869         locale's decimal-point character.
41870
41871 2007-03-17  Bruno Haible  <bruno@clisp.org>
41872
41873         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
41874         before comparing it. Needed because on some platforms (e.g. x86) a
41875         'long double' occupies less bytes than sizeof (long double).
41876
41877 2007-03-17  Bruno Haible  <bruno@clisp.org>
41878
41879         * tests/test-crc.c (main): Make printf statements 64-bit clean.
41880         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
41881         * tests/test-getaddrinfo.c (simple): Likewise.
41882         * tests/test-read-file.c (main): Likewise.
41883
41884 2007-03-17  Bruno Haible  <bruno@clisp.org>
41885
41886         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
41887
41888 2007-03-17  Bruno Haible  <bruno@clisp.org>
41889
41890         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
41891         unused variable.
41892
41893 2007-03-17  Bruno Haible  <bruno@clisp.org>
41894
41895         * tests/test-c-strcasecmp.c: Include c-strcase.h.
41896         * tests/test-c-strncasecmp.c: Likewise.
41897
41898 2007-03-17  Bruno Haible  <bruno@clisp.org>
41899
41900         * modules/stdlib (Depends-on): Add unistd.
41901         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
41902         Needed for MacOS X 10.3.
41903
41904 2007-03-17  Bruno Haible  <bruno@clisp.org>
41905
41906         * lib/unistr/u-strdup.h: Include <stdlib.h>.
41907
41908 2007-03-17  Bruno Haible  <bruno@clisp.org>
41909
41910         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
41911
41912 2007-03-17  Bruno Haible  <bruno@clisp.org>
41913
41914         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
41915         to reflect files copied from gnulib (with or without modifications).
41916         Suggested by Jim Meyering.
41917
41918 2007-03-17  Eric Blake  <ebb9@byu.net>
41919
41920         * NEWS: Document stdlib change from 2007-02-18.
41921
41922 2007-03-17  Jim Meyering  <jim@meyering.net>
41923
41924         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
41925         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
41926         someone uses a name containing shell meta-characters.
41927         Reported by Alfred M. Szmidt.
41928
41929         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
41930
41931 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41932
41933         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
41934         and copy gettext configuration files only if configure.ac contains
41935         a use of AM_GNU_GETTEXT_VERSION.
41936
41937 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
41938
41939         * build-aux/bootstrap (gnulib_name): New variable.
41940         (gnulib_tool_options): Use it.
41941
41942 2007-03-13  Simon Josefsson  <simon@josefsson.org>
41943
41944         * tests/test-des.c: Use new namespace.
41945
41946 2007-03-15  Bruno Haible  <bruno@clisp.org>
41947
41948         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
41949         Reported by James Youngman <jay@gnu.org>.
41950
41951 2007-03-15  Bruno Haible  <bruno@clisp.org>
41952
41953         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
41954         declared prototype. Needed with cc on OSF/1 5.1.
41955
41956 2007-03-15  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
41959         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
41960         (struct gl_list_implementation): Add dispose_fn argument to the
41961         'create_empty', 'create' methods.
41962         (struct gl_list_impl_base): Add field 'dispose_fn'.
41963         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
41964         argument.
41965         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
41966         dispose_fn argument.
41967         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
41968         dispose_fn on the dropped values.
41969         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
41970         dispose_fn argument.
41971         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
41972         dropped values.
41973         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
41974         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41975         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
41976         (gl_tree_remove_node): Call dispose_fn on the dropped value.
41977         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
41978         argument.
41979         (gl_tree_list_free): Call dispose_fn on the dropped values.
41980         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
41981         the dropped values.
41982         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41983         Add dispose_fn argument.
41984         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
41985         Call dispose_fn on the dropped values.
41986         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
41987         Add dispose_fn argument.
41988         (gl_sublist_create): Initialize the 'dispose_fn' field.
41989         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
41990         * tests/test-array_list.c (main): Update.
41991         * tests/test-carray_list.c (main): Update.
41992         * tests/test-avltree_list.c (main): Update.
41993         * tests/test-rbtree_list.c (main): Update.
41994         * tests/test-avltreehash_list.c (main): Update.
41995         * tests/test-rbtreehash_list.c (main): Update.
41996         * tests/test-linked_list.c (main): Update.
41997         * tests/test-linkedhash_list.c (main): Update.
41998         * tests/test-array_oset.c (main): Update.
41999
42000 2007-03-15  Bruno Haible  <bruno@clisp.org>
42001
42002         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
42003         (gl_oset_create_empty): Add dispose_fn argument.
42004         (struct gl_oset_implementation): Add dispose_fn argument to
42005         'create_empty' method.
42006         (struct gl_oset_impl_base): Add dispose_fn field.
42007         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
42008         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
42009         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
42010         values.
42011         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
42012         (gl_tree_oset_free): Call dispose_fn on the dropped values.
42013         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42014         dropped value.
42015         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42016         dropped value.
42017         * tests/test-array_oset.c (main): Update.
42018         * tests/test-avltree_oset.c (main): Update.
42019         * tests/test-rbtree_oset.c (main): Update.
42020         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
42021
42022 2007-03-13  Bruno Haible  <bruno@clisp.org>
42023
42024         * tests/test-stdbool.c (i): Update after last patch.
42025
42026 2007-03-12  Bruno Haible  <bruno@clisp.org>
42027
42028         * lib/quotearg.c: Include <wctype.h> early, before the definition of
42029         the iswprint macro. Needed on Solaris 2.5.1.
42030
42031 2007-03-12  Bruno Haible  <bruno@clisp.org>
42032
42033         * tests/test-printf-frexp.c (main): Declare x as volatile.
42034
42035 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42036
42037         * doc/gnulib.texi (Build robot for gnulib): New section.
42038
42039 2007-03-12  Jim Meyering  <jim@meyering.net>
42040
42041         * build-aux/bootstrap: New file.
42042         * build-aux/bootstrap.conf: New file, from coreutils.
42043
42044 2007-03-11  Bruno Haible  <bruno@clisp.org>
42045
42046         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
42047
42048 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42049
42050         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
42051         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
42052         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
42053
42054 2007-03-11  Bruno Haible  <bruno@clisp.org>
42055
42056         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
42057         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
42058
42059 2007-03-11  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
42062         formula. Needed for SunPRO C 5.0.
42063
42064 2007-03-11  Bruno Haible  <bruno@clisp.org>
42065
42066         * modules/long-options (Depends-on): Add getopt.
42067
42068 2007-03-11  Bruno Haible  <bruno@clisp.org>
42069
42070         * modules/modechange (Depends-on): Add stdbool.
42071
42072 2007-03-11  Bruno Haible  <bruno@clisp.org>
42073
42074         * modules/i-ring (Depends-on): Add stdbool.
42075
42076 2007-03-11  Bruno Haible  <bruno@clisp.org>
42077
42078         * modules/gc-des (Depends-on): Add stdbool.
42079
42080 2007-03-11  Bruno Haible  <bruno@clisp.org>
42081
42082         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
42083
42084 2007-03-11  Bruno Haible  <bruno@clisp.org>
42085
42086         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
42087
42088 2007-03-11  Bruno Haible  <bruno@clisp.org>
42089
42090         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
42091
42092 2007-03-11  Bruno Haible  <bruno@clisp.org>
42093
42094         * lib/vasnprintf.c (sprintf): Undefine.
42095
42096 2007-03-11  Bruno Haible  <bruno@clisp.org>
42097
42098         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
42099         initializers in SunPRO C and Compaq C compilers.
42100
42101 2007-03-11  Bruno Haible  <bruno@clisp.org>
42102
42103         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
42104         decrementing code ANSI C compliant.
42105
42106 2007-03-11  Bruno Haible  <bruno@clisp.org>
42107
42108         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
42109         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
42110
42111 2007-03-11  Bruno Haible  <bruno@clisp.org>
42112
42113         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
42114         <stdbool.h> substitute doesn't pass.
42115
42116 2007-03-11  Bruno Haible  <bruno@clisp.org>
42117
42118         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
42119
42120 2007-03-11  Bruno Haible  <bruno@clisp.org>
42121
42122         * gnulib-tool (func_create_megatestdir): Create also an autobuild
42123         script, for submission to autobuild.josefsson.org.
42124
42125 2007-03-10  Bruno Haible  <bruno@clisp.org>
42126
42127         * modules/canonicalize-lgpl-tests: New file.
42128         * tests/test-canonicalize-lgpl.sh: New file.
42129         * tests/test-canonicalize-lgpl.c: New file.
42130
42131         * modules/c-strcase-tests: New file.
42132         * tests/test-c-strcase.sh: New file.
42133         * tests/test-c-strcasecmp.c: New file.
42134         * tests/test-c-strncasecmp.c: New file.
42135
42136         * modules/atexit-tests: New file.
42137         * tests/test-atexit.sh: New file.
42138         * tests/test-atexit.c: New file.
42139
42140 2007-03-10  Bruno Haible  <bruno@clisp.org>
42141
42142         * tests/test-binary-io.sh: Use temporary filenames that are not so
42143         likely to clash with those of other tests (in a parallel make).
42144         * tests/test-binary-io.c: Likewise.
42145
42146 2007-03-10  Bruno Haible  <bruno@clisp.org>
42147
42148         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
42149         fallback; use #error instead.
42150         Suggested by Simon Josefsson.
42151
42152 2007-03-10  Bruno Haible  <bruno@clisp.org>
42153
42154         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
42155         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
42156         first and the last.
42157
42158 2007-03-10  Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42161
42162 2007-03-10  Bruno Haible  <bruno@clisp.org>
42163
42164         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42165         "make distcheck".
42166         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42167         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42168         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42169
42170 2007-03-10  Bruno Haible  <bruno@clisp.org>
42171
42172         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42173         variable.
42174         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42175         variable.
42176
42177 2007-03-09  Eric Blake  <ebb9@byu.net>
42178         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42179
42180         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42181         types are not being provided by gnulib.
42182         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42183         types are supported.
42184
42185 2007-03-10  Bruno Haible  <bruno@clisp.org>
42186
42187         * lib/stdio_.h (__attribute__): New macro.
42188         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42189         vsprintf): Specify __attribute__ __format__ for GCC.
42190         Suggested by Eric Blake.
42191
42192 2007-03-09  Bruno Haible  <bruno@clisp.org>
42193
42194         * modules/printf-posix-tests: New file.
42195         * tests/test-printf-posix.sh: New file.
42196         * tests/test-printf-posix.c: New file.
42197
42198         * modules/printf-posix: New file.
42199         * lib/printf.c: New file.
42200         * m4/printf-posix-rpl.m4: New file.
42201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42202         REPLACE_PRINTF.
42203         * lib/stdio_.h (printf): New declaration.
42204         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42205         ____strfmon____): New macros.
42206         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42207         REPLACE_PRINTF.
42208
42209 2007-03-09  Bruno Haible  <bruno@clisp.org>
42210
42211         * tests/test-vasnprintf-posix2.sh: New file.
42212         * tests/test-vasnprintf-posix2.c: New file.
42213         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42214         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42215         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42216
42217         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42218         a locale dependent decimal point, rather than always '.'.
42219
42220 2007-03-09  Eric Blake  <ebb9@byu.net>
42221
42222         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42223         spite of platforms like Tandem/NSK that define it to -1.
42224
42225 2007-03-08  Bruno Haible  <bruno@clisp.org>
42226
42227         * modules/vprintf-posix-tests: New file.
42228         * tests/test-vprintf-posix.sh: New file.
42229         * tests/test-vprintf-posix.c: New file.
42230         * tests/test-printf-posix.h: New file.
42231
42232         * modules/vprintf-posix: New file.
42233         * lib/vprintf.c: New file.
42234         * m4/vprintf-posix.m4: New file.
42235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42236         REPLACE_VPRINTF.
42237         * lib/stdio_.h (vprintf): New declaration.
42238         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42239         REPLACE_VPRINTF.
42240
42241 2007-03-08  Bruno Haible  <bruno@clisp.org>
42242
42243         * modules/fprintf-posix-tests: New file.
42244         * tests/test-fprintf-posix.sh: New file.
42245         * tests/test-fprintf-posix.c: New file.
42246
42247         * modules/fprintf-posix: New file.
42248         * lib/fprintf.c: New file.
42249         * m4/fprintf-posix.m4: New file.
42250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42251         REPLACE_FPRINTF.
42252         * lib/stdio_.h (fprintf): New declaration.
42253         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42254         REPLACE_FPRINTF.
42255
42256 2007-03-08  Bruno Haible  <bruno@clisp.org>
42257
42258         * modules/vfprintf-posix-tests: New file.
42259         * tests/test-vfprintf-posix.sh: New file.
42260         * tests/test-vfprintf-posix.c: New file.
42261         * tests/test-fprintf-posix.h: New file.
42262         * tests/test-fprintf-posix.out: New file.
42263
42264         * modules/vfprintf-posix: New file.
42265         * lib/vfprintf.c: New file.
42266         * m4/vfprintf-posix.m4: New file.
42267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42268         REPLACE_VFPRINTF.
42269         * lib/stdio_.h (vfprintf): New declaration.
42270         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42271         REPLACE_VFPRINTF.
42272
42273 2007-03-08  Bruno Haible  <bruno@clisp.org>
42274
42275         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42276
42277 2007-03-08  Bruno Haible  <bruno@clisp.org>
42278
42279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42280         instead of 'expr' invocations.
42281         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42286         Suggested by Paul Eggert.
42287
42288 2007-03-08  Bruno Haible  <bruno@clisp.org>
42289
42290         * modules/fseterr-tests: New file.
42291         * tests/test-fseterr.c: New file.
42292
42293         * modules/fseterr: New file.
42294         * lib/fseterr.h: New file.
42295         * lib/fseterr.c: New file.
42296
42297 2007-03-08  Bruno Haible  <bruno@clisp.org>
42298
42299         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42300         * lib/getopt_.h: Likewise.
42301         * lib/mbswidth.h: Likewise.
42302         * lib/setenv.h: Likewise.
42303         * lib/vasnprintf.h: Likewise.
42304         * lib/vasprintf.h: Likewise.
42305         * lib/verror.h: Likewise.
42306         * lib/xsetenv.h: Likewise.
42307         * lib/xvasprintf.h: Likewise.
42308
42309 2007-03-08  Jim Meyering  <jim@meyering.net>
42310
42311         * users.txt: Add parted.
42312
42313         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42314
42315 2007-03-07  Bruno Haible  <bruno@clisp.org>
42316
42317         * m4/printf.m4: Make the shell script snippets copy&pastable.
42318
42319 2007-03-02  Bruno Haible  <bruno@clisp.org>
42320
42321         * lib/netinet_in_.h: New file.
42322         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42323         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42324         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42325         (Depends-on): Add absolute-header.
42326         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42327         into netinet/in.h.
42328
42329 2007-03-03  Bruno Haible  <bruno@clisp.org>
42330
42331         * lib/sys_select_.h: New file.
42332         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42333         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42334         * modules/sys_select (Files): Add lib/sys_select_.h.
42335         (Depends-on): Add absolute-header.
42336         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42337         into sys/select.h.
42338
42339 2007-03-02  Bruno Haible  <bruno@clisp.org>
42340
42341         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42342         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42343         values.
42344         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42345         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42346         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42347         * modules/sys_socket (Depends-on): Add absolute-header.
42348         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42349         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42350         (Include): Remove requirement of inclusion of <sys/types.h>.
42351
42352 2007-03-02  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/byteswap_.h (bswap_32): Fix formula.
42355
42356 2007-03-06  Bruno Haible  <bruno@clisp.org>
42357
42358         * modules/sprintf-posix-tests: New file.
42359         * tests/test-sprintf-posix.c: New file.
42360
42361         * modules/sprintf-posix: New file.
42362         * lib/sprintf.c: New file.
42363         * m4/sprintf-posix.m4: New file.
42364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42365         REPLACE_SPRINTF.
42366         * lib/stdio_.h (sprintf): New declaration.
42367         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42368         REPLACE_SPRINTF.
42369
42370 2007-03-06  Bruno Haible  <bruno@clisp.org>
42371
42372         * modules/vsprintf-posix-tests: New file.
42373         * tests/test-vsprintf-posix.c: New file.
42374         * tests/test-sprintf-posix.h: New file.
42375
42376         * modules/vsprintf-posix: New file.
42377         * lib/vsprintf.c: New file.
42378         * m4/vsprintf-posix.m4: New file.
42379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42380         REPLACE_VSPRINTF.
42381         * lib/stdio_.h (vsprintf): New declaration.
42382         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42383         REPLACE_VSPRINTF.
42384
42385 2007-03-06  Bruno Haible  <bruno@clisp.org>
42386
42387         * modules/vsnprintf (Depend-on): Remove minmax.
42388
42389 2007-03-06  Bruno Haible  <bruno@clisp.org>
42390
42391         * modules/snprintf-posix-tests: New file.
42392         * tests/test-snprintf-posix.c: New file.
42393
42394         * modules/snprintf-posix: New file.
42395         * m4/snprintf-posix.m4: New file.
42396         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42397         gl_FUNC_SNPRINTF.
42398         (gl_FUNC_SNPRINTF): Invoke it.
42399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42400         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42401         is set.
42402         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42403
42404 2007-03-06  Bruno Haible  <bruno@clisp.org>
42405
42406         * modules/vsnprintf-posix-tests: New file.
42407         * tests/test-vsnprintf-posix.c: New file.
42408         * tests/test-snprintf-posix.h: New file.
42409
42410         * modules/vsnprintf-posix: New file.
42411         * m4/vsnprintf-posix.m4: New file.
42412         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42413         gl_FUNC_VSNPRINTF.
42414         (gl_FUNC_VSNPRINTF): Invoke it.
42415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42416         * lib/stdio_.h (vsnprintf): Define as a replacement if
42417         REPLACE_VSNPRINTF is set.
42418         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42419
42420 2007-03-06  Bruno Haible  <bruno@clisp.org>
42421
42422         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42423         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42424
42425 2007-03-06  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42428         (asinl): Declare also if HAVE_DECL_ASINL is set.
42429         (atanl): Declare also if HAVE_DECL_ATANL is set.
42430         (ceill): Declare also if HAVE_DECL_CEILL is set.
42431         (cosl): Declare also if HAVE_DECL_COSL is set.
42432         (expl): Declare also if HAVE_DECL_EXPL is set.
42433         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42434         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42435         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42436         (logl): Declare also if HAVE_DECL_LOGL is set.
42437         (sinl): Declare also if HAVE_DECL_SINL is set.
42438         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42439         (tanl): Declare also if HAVE_DECL_TANL is set.
42440         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42442         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42443         declaration of frexpl, ldexpl.
42444         * modules/printf-frexpl (Depends-on): Add math.
42445         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42446
42447 2007-03-05  Bruno Haible  <bruno@clisp.org>
42448
42449         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42450         frexpl and ldexpl are declared.
42451         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42452
42453 2007-03-05  Bruno Haible  <bruno@clisp.org>
42454
42455         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42456         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42457
42458 2007-03-05  Bruno Haible  <bruno@clisp.org>
42459
42460         * lib/stdio_.h: Include <stddef.h>.
42461
42462 2007-03-05  Bruno Haible  <bruno@clisp.org>
42463
42464         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42465
42466 2007-03-05  Bruno Haible  <bruno@clisp.org>
42467
42468         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42469         NetBSD 4, from Ralf Wildenhues.
42470
42471 2007-03-04  Bruno Haible  <bruno@clisp.org>
42472
42473         * lib/vasprintf.h: Update #if logic for the case when the functions
42474         exist but are overridden.
42475
42476 2007-03-04  Bruno Haible  <bruno@clisp.org>
42477
42478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42479         implementations: glibc-2.4 and MacOS X 10.3.
42480         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42481         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42482         * tests/test-vasprintf-posix.c (test_function): Likewise.
42483
42484 2007-03-04  Bruno Haible  <bruno@clisp.org>
42485
42486         * modules/vasprintf-posix-tests: New file.
42487         * tests/test-vasprintf-posix.c: New file.
42488
42489         * modules/vasprintf-posix: New file.
42490         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42491         defined.
42492         * m4/vasprintf-posix.m4: New file.
42493         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42494         gl_FUNC_VASPRINTF.
42495         (gl_FUNC_VASPRINTF): Invoke it.
42496         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42497         here.
42498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42499
42500 2007-03-04  Bruno Haible  <bruno@clisp.org>
42501
42502         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42503         REPLACE_GETTIMEOFDAY.
42504         * modules/sys_time (Makefile.am): Likewise.
42505         * m4/sys_time_h.m4: Likewise.
42506         * m4/gettimeofday.m4: Likewise.
42507
42508 2007-03-04  Bruno Haible  <bruno@clisp.org>
42509
42510         * modules/vasnprintf-posix-tests: New file.
42511         * tests/test-vasnprintf-posix.c: New file.
42512
42513         * modules/vasnprintf-posix: New file.
42514         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42515         printf-frexpl.h.
42516         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42517         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42518         REPLACE_VASNPRINTF is defined.
42519         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42520         gl_FUNC_VASNPRINTF.
42521         (gl_FUNC_VASNPRINTF): Invoke it.
42522         * m4/vasnprintf-posix.m4: New file.
42523         * m4/printf.m4: New file.
42524
42525 2007-03-04  Bruno Haible  <bruno@clisp.org>
42526
42527         Compile progreloc.c only if --enable-relocatable is specified.
42528         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42529         if --enable-relocatable was specified.
42530         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42531         lib_SOURCES.
42532
42533 2007-03-04  Jim Meyering  <jim@meyering.net>
42534
42535         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42536         Use it consistently, rather than enumerating errno constants.
42537
42538 2007-03-04  Bruno Haible  <bruno@clisp.org>
42539
42540         * modules/xvasprintf-tests: New file.
42541         * tests/test-xvasprintf.c: New file.
42542
42543         * modules/vasprintf-tests: New file.
42544         * tests/test-vasprintf.c: New file.
42545
42546         * modules/vasnprintf-tests: New file.
42547         * tests/test-vasnprintf.c: New file.
42548
42549         * modules/vsnprintf-tests: New file.
42550         * tests/test-vsnprintf.c: New file.
42551
42552         * modules/snprintf-tests: New file.
42553         * tests/test-snprintf.c: New file.
42554
42555 2007-03-04  Bruno Haible  <bruno@clisp.org>
42556
42557         Compile relocatable.c only if --enable-relocatable is specified.
42558         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42559         gl_RELOCATABLE_LIBRARY.
42560         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42561         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42562         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42563         gl_RELOCATABLE_LIBRARY.
42564         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42565         (Makefile.am): Remove lib_SOURCES.
42566         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42567         gl_RELOCATABLE_LIBRARY.
42568         (Makefile.am): Remove lib_SOURCES.
42569         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42570         always.
42571         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42572         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42573
42574 2007-03-04  Bruno Haible  <bruno@clisp.org>
42575
42576         * modules/argmatch-tests: New file.
42577         * tests/test-argmatch.c: New file.
42578
42579         * tests/test-allocsa.c (main): Halve the number of loop runs.
42580
42581         * modules/alloca-opt-tests: New file.
42582         * tests/test-alloca-opt.c: New file.
42583
42584 2007-03-04  Jim Meyering  <jim@meyering.net>
42585
42586         Work around difference between Linux ACLs and Solaris 10 ZFS.
42587         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42588         for EINVAL.
42589
42590 2007-03-03  Bruno Haible  <bruno@clisp.org>
42591
42592         * modules/relocatable-prog (Depends-on): Add back progreloc's
42593         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42594
42595 2007-03-03  Bruno Haible  <bruno@clisp.org>
42596
42597         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42598         * modules/relocatable-lib: New file.
42599
42600 2007-03-03  Bruno Haible  <bruno@clisp.org>
42601
42602         * modules/relocatable-prog: Renamed from modules/relocatable.
42603         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42604
42605 2007-03-03  Bruno Haible  <bruno@clisp.org>
42606
42607         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42608         m4/relocatable-lib.m4.
42609         (Depends-on): Remove 'relocatable'.
42610         (configure.ac): Add gl_RELOCATABLE_NOP.
42611
42612 2007-03-03  Bruno Haible  <bruno@clisp.org>
42613
42614         * modules/relocatable-prog-wrapper: New file.
42615         * modules/relocatable (Depends-on): Add it. Remove all other
42616         dependencies except progname.
42617         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42618
42619         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42620         (gl_FUNC_STRERROR): Nop.
42621         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42622
42623         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42624         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42625
42626         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42627         (gl_FUNC_READLINK): Update.
42628
42629         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42630
42631 2007-03-03  Bruno Haible  <bruno@clisp.org>
42632
42633         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42634         * modules/xreadlink (Depends-on): Add unistd.
42635         * modules/xreadlink-with-size (Depends-on): Likewise.
42636
42637 2007-03-03  Bruno Haible  <bruno@clisp.org>
42638
42639         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42640         extracted from gt_FUNC_SETENV.
42641         (gt_FUNC_SETENV): Remove macro.
42642         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42643         remove gt_FUNC_SETENV.
42644
42645 2007-03-03  Bruno Haible  <bruno@clisp.org>
42646
42647         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42648         ENABLE_RELOCATABLE here.
42649         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42650
42651 2007-03-03  Bruno Haible  <bruno@clisp.org>
42652
42653         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42654         * tests/test-rbtreehash_list.c: Include progname.h.
42655         (main): Call set_program_name.
42656
42657         * modules/rbtree-oset-tests (Depends-on): Add progname.
42658         * tests/test-rbtree_oset.c: Include progname.h.
42659         (main): Call set_program_name.
42660
42661         * modules/rbtree-list-tests (Depends-on): Add progname.
42662         * tests/test-rbtree_list.c: Include progname.h.
42663         (main): Call set_program_name.
42664
42665         * modules/linked-list-tests (Depends-on): Add progname.
42666         * tests/test-linked_list.c: Include progname.h.
42667         (main): Call set_program_name.
42668
42669 2007-03-03  Bruno Haible  <bruno@clisp.org>
42670
42671         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42672         All uses of __restrict changed to _Restrict_.
42673         * lib/glob_.h (__restrict): Remove macro.
42674
42675 2007-03-02  Bruno Haible  <bruno@clisp.org>
42676
42677         * modules/gettext (configure.ac): Require gettext infrastructure
42678         from version 0.16.1.
42679
42680 2007-03-02  Bruno Haible  <bruno@clisp.org>
42681
42682         * modules/linkedhash-list-tests (Depends-on): Add progname.
42683         * tests/test-linkedhash_list.c: Include progname.h.
42684         (main): Call set_program_name.
42685
42686         * modules/carray-list-tests (Depends-on): Add progname.
42687         * tests/test-carray_list.c: Include progname.h.
42688         (main): Call set_program_name.
42689
42690         * modules/avltreehash-list-tests (Depends-on): Add progname.
42691         * tests/test-avltreehash_list.c: Include progname.h.
42692         (main): Call set_program_name.
42693
42694         * modules/avltree-oset-tests (Depends-on): Add progname.
42695         * tests/test-avltree_oset.c: Include progname.h.
42696         (main): Call set_program_name.
42697
42698         * modules/avltree-list-tests (Depends-on): Add progname.
42699         * tests/test-avltree_list.c: Include progname.h.
42700         (main): Call set_program_name.
42701
42702         * modules/array-oset-tests (Depends-on): Add progname.
42703         * tests/test-array_oset.c: Include progname.h.
42704         (main): Call set_program_name.
42705
42706         * modules/array-list-tests (Depends-on): Add progname.
42707         * tests/test-array_list.c: Include progname.h.
42708         (main): Call set_program_name.
42709
42710         * modules/argp-tests (Depends-on): Add progname.
42711         * tests/test-argp.c: Include argp.h first. Include progname.h.
42712         (main): Call set_program_name.
42713
42714 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42715
42716         * doc/gnulib-tool.texi (Initial import): Reword description of
42717         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42718         limited effect even if defined after the first system include.
42719
42720 2007-03-01  Bruno Haible  <bruno@clisp.org>
42721
42722         * build-aux/config.libpath: Update to libtool-1.5.22.
42723         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42724
42725 2007-03-01  Bruno Haible  <bruno@clisp.org>
42726
42727         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42728         foo_CFLAGS.
42729         Reported by Ralf Wildenhues.
42730
42731 2007-03-01  Bruno Haible  <bruno@clisp.org>
42732
42733         * build-aux/install-reloc: Remove object files left over by some
42734         compilers.
42735         Reported by Ralf Wildenhues.
42736
42737 2007-03-01  Bruno Haible  <bruno@clisp.org>
42738
42739         * build-aux/install-reloc: Break long lines.
42740
42741 2007-03-01  Bruno Haible  <bruno@clisp.org>
42742
42743         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42744         Reported by Ralf Wildenhues.
42745
42746 2007-03-01  Bruno Haible  <bruno@clisp.org>
42747
42748         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42749         include ordering constraints.
42750
42751 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42752
42753         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42754         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42755         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42756         as another example.
42757         * lib/time_.h: Fix misspelling.
42758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42759         Require gl_HEADER_TIME_H_DEFAULTS.
42760         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42761         * m4/time_r.m4 (gl_TIME_R): Likewise.
42762         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42763
42764 2007-03-01  Bruno Haible  <bruno@clisp.org>
42765
42766         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42767         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42768
42769 2007-03-01  Jim Meyering  <jim@meyering.net>
42770
42771         * modules/xreadlink (Maintainer): Add my name.
42772         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42773
42774 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42775             Bruno Haible  <bruno@clisp.org>
42776
42777         * build-aux/install-reloc: Compile also c-ctype.c.
42778         * build-aux/relocatable.sh.in: New file.
42779         * doc/relocatable.texi: New file.
42780         * doc/relocatable-maint.texi: New file.
42781         * doc/gnulib.texi: Include relocatable-maint.texi.
42782         * lib/progreloc.c: Include unistd.h unconditionally.
42783         * lib/relocwrapper.c: Include unistd.h unconditionally.
42784         Include c-ctype.h.
42785         (add_dotbin): Use c_tolower.
42786         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42787         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42788         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42789         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42790         to m4/relocatable-lib.m4.
42791         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42792         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42793         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42794         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42795         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42796         * modules/relocatable: New file.
42797         * modules/relocatable-lib: New file.
42798         * modules/relocatable-script: New file.
42799
42800 2007-02-28  Bruno Haible  <bruno@clisp.org>
42801
42802         Import --enable-relocatable infrastructure.
42803         * build-aux/config.libpath: New file, from GNU gettext.
42804         * build-aux/install-reloc: New file, from GNU gettext.
42805         * build-aux/reloc-ldflags: New file, from GNU gettext.
42806         * lib/relocatable.h: New file, from GNU gettext.
42807         * lib/relocatable.c: New file, from GNU gettext.
42808         * lib/relocwrapper.c: New file, from GNU gettext.
42809         * m4/relocatable.m4: New file, from GNU gettext.
42810
42811 2007-02-28  Bruno Haible  <bruno@clisp.org>
42812
42813         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42814
42815         * modules/xreadlink: New file, from GNU gettext with modifications.
42816         * lib/xreadlink.c: New file, from GNU gettext.
42817         * lib/xreadlink.h: Add comments.
42818         (xreadlink): New declaration.
42819
42820         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42821         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42822         lib/xreadlink-with-size.c.
42823         (configure.ac): Remove gl_XREADLINK invocation.
42824         (Makefile.am): Augment lib_SOURCES.
42825         * m4/xreadlink.m4: Remove file.
42826         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42827         (xreadlink_with_size): Renamed from xreadink.
42828         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
42829         * modules/canonicalize (Depends-on): Replace xreadlink with
42830         xreadlink-with-size.
42831         * lib/canonicalize.c (canonicalize_filename_mode): Update.
42832
42833 2007-02-25  Jim Meyering  <jim@meyering.net>
42834
42835         * build-aux/announce-gen: When complaining about excess arguments,
42836         list them.
42837
42838 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42839
42840         * README: Document signed integer overflow situation more
42841         accurately.
42842
42843 2007-02-25  Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
42846         'a' or 'A' conversion.
42847
42848 2007-02-25  Bruno Haible  <bruno@clisp.org>
42849
42850         * modules/filename: Renamed from modules/pathname.
42851         (Files): Replace lib/pathname.h with lib/filename.h. Replace
42852         lib/concatpath.c with lib/concat-filename.c.
42853         (Makefile.am): Update.
42854         (Include): Replace pathname.h with filename.h.
42855         * lib/filename.h: Renamed from lib/pathname.h.
42856         (concatenated_filename): Renamed from concatenated_pathname.
42857         * lib/concat-filename.c: Renamed from lib/concatpath.c.
42858         (concatenated_filename): Renamed from concatenated_pathname.
42859         * lib/findprog.c: Include filename.h instead of pathname.h.
42860         (find_in_path): Update.
42861         * lib/javacomp.c: Include filename.h instead of pathname.h.
42862         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
42863         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
42864         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
42865         is_oldgcj_14_13_usable, is_javac_usable): Update.
42866         * lib/javaexec.c: Include filename.h instead of pathname.h.
42867         (execute_java_class): Update.
42868         * modules/findprog: Update.
42869         * modules/javacomp: Update.
42870         * modules/javaexec: Update.
42871         * MODULES.html.sh (File system functions): Add 'filename', remove
42872         'pathname'.
42873
42874 2007-02-25  Bruno Haible  <bruno@clisp.org>
42875
42876         * modules/printf-frexpl-tests: New file.
42877         * tests/test-printf-frexpl.c: New file.
42878
42879         * modules/printf-frexpl: New file.
42880         * lib/printf-frexpl.h: New file.
42881         * lib/printf-frexpl.c: New file.
42882         * m4/printf-frexpl.m4: New file.
42883
42884 2007-02-25  Bruno Haible  <bruno@clisp.org>
42885
42886         * modules/printf-frexp-tests: New file.
42887         * tests/test-printf-frexp.c: New file.
42888
42889         * modules/printf-frexp: New file.
42890         * lib/printf-frexp.h: New file.
42891         * lib/printf-frexp.c: New file.
42892         * m4/printf-frexp.m4: New file.
42893
42894 2007-02-25  Bruno Haible  <bruno@clisp.org>
42895
42896         Assume automake >= 1.10 for the tests.
42897         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
42898         * modules/arctwo-tests: Likewise.
42899         * modules/argp-tests: Likewise.
42900         * modules/avltree-list-tests: Likewise.
42901         * modules/avltree-oset-tests: Likewise.
42902         * modules/avltreehash-list-tests: Likewise.
42903         * modules/carray-list-tests: Likewise.
42904         * modules/crc-tests: Likewise.
42905         * modules/des-tests: Likewise.
42906         * modules/gc-arcfour-tests: Likewise.
42907         * modules/gc-arctwo-tests: Likewise.
42908         * modules/gc-des-tests: Likewise.
42909         * modules/gc-hmac-md5-tests: Likewise.
42910         * modules/gc-hmac-sha1-tests: Likewise.
42911         * modules/gc-md2-tests: Likewise.
42912         * modules/gc-md4-tests: Likewise.
42913         * modules/gc-md5-tests: Likewise.
42914         * modules/gc-pbkdf2-sha1-tests: Likewise.
42915         * modules/gc-rijndael-tests: Likewise.
42916         * modules/gc-sha1-tests: Likewise.
42917         * modules/gc-tests: Likewise.
42918         * modules/getaddrinfo-tests: Likewise.
42919         * modules/hmac-md5-tests: Likewise.
42920         * modules/hmac-sha1-tests: Likewise.
42921         * modules/linked-list-tests: Likewise.
42922         * modules/linkedhash-list-tests: Likewise.
42923         * modules/lock-tests: Likewise.
42924         * modules/md2-tests: Likewise.
42925         * modules/md4-tests: Likewise.
42926         * modules/md5-tests: Likewise.
42927         * modules/rbtree-list-tests: Likewise.
42928         * modules/rbtree-oset-tests: Likewise.
42929         * modules/rbtreehash-list-tests: Likewise.
42930         * modules/read-file-tests: Likewise.
42931         * modules/rijndael-tests: Likewise.
42932         * modules/stdint-tests: Likewise.
42933         * modules/tls-tests: Likewise.
42934
42935 2007-02-24  Bruno Haible  <bruno@clisp.org>
42936
42937         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
42938         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
42939         function; instead check whether isnan with a double argument links.
42940         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
42941         function; instead check whether isnan with a 'long double' argument
42942         links.
42943         Reported by Eric Blake <ebb9@byu.net>.
42944
42945 2007-02-24  Bruno Haible  <bruno@clisp.org>
42946
42947         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
42948         defined.
42949         * lib/isnanl.c: Remove all code. Just include isnan.c.
42950         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
42951
42952 2007-02-25  Jim Meyering  <jim@meyering.net>
42953
42954         Avoid conflicting types for 'unsetenv' on FreeBSD.
42955         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
42956         conflicting with FreeBSD's (5.0 and 6.1) function declaration
42957         in stdlib.h.
42958
42959 2007-02-24  Bruno Haible  <bruno@clisp.org>
42960
42961         * modules/isnanl-nolibm-tests: New file.
42962         * tests/test-isnanl.c: New file.
42963
42964         * modules/isnanl-nolibm: New file.
42965         * lib/isnanl.h: New file.
42966         * lib/isnanl.c: New file.
42967         * m4/isnanl.m4: New file.
42968
42969 2007-02-24  Bruno Haible  <bruno@clisp.org>
42970
42971         * modules/isnan-nolibm-tests: New file.
42972         * tests/test-isnan.c: New file.
42973
42974         * modules/isnan-nolibm: New file.
42975         * lib/isnan.h: New file.
42976         * lib/isnan.c: New file.
42977         * m4/isnan.m4: New file.
42978
42979 2007-02-24  Bruno Haible  <bruno@clisp.org>
42980
42981         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
42982         assume that an exponent fits in 20 bits.
42983
42984 2007-02-24  Jim Meyering  <jim@meyering.net>
42985
42986         * m4/regex.m4: Update the description of the configure-time option,
42987         --without-included-regex, to state accurately what the defaults are,
42988         and perhaps to give people an idea why using this option is risky.
42989
42990 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42991
42992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
42993         loops on small arguments.  This attempts to avoid the problem
42994         Bruno Haible reported for AIX 4.3.2 in
42995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
42996
42997 2007-02-23  Bruno Haible  <bruno@clisp.org>
42998
42999         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
43000         Needed for help2man.
43001
43002 2007-02-23  Karl Berry  <karl@gnu.org>
43003
43004         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
43005         exists, foo.h should be cvs-ignored, not committed.
43006
43007 2007-02-23  Eric Blake  <ebb9@byu.net>
43008
43009         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
43010         * lib/stat-time.h (includes): Likewise.
43011         * lib/utimecmp.c (includes): Likewise.
43012         * lib/utimens.h (includes): Likewise.
43013         * lib/getdate.y (includes): Also include "timespec.h" for use
43014         internal to the module.
43015         * modules/utimens (Depends-on): Revert yesterday's patch.
43016         * modules/nanosleep (Depends-on): Add missing dependency.
43017
43018 2007-02-22  Bruno Haible  <bruno@clisp.org>
43019
43020         * lib/glob.c: Don't include getlogin_r.h.
43021
43022 2007-02-22  Jim Meyering  <jim@meyering.net>
43023
43024         * modules/utimens (Depends-on): Add timespec, required for
43025         utimens.h's inclusion of timespec.h.
43026
43027 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
43028
43029         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
43030         long unreadable paths in GNU/Linux.  Problem reported by Andreas
43031         Schwab in
43032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
43033         I'll try to think of a better way to fix the Solaris problem.
43034
43035         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
43036         like glibc; on Solaris 10, it fails with errno == EINVAL.
43037         POSIX says the behavior is unspecified if the first argument is NULL,
43038         so play it safe and never pass NULL to the system getcwd.
43039
43040 2007-02-21  Jim Meyering  <jim@meyering.net>
43041
43042         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
43043         of gettimeofday.  It would conflict with the one now always
43044         provided via sys_time_.h.  Reported by Matthew Woehlke, as
43045         an IRIX 6.5 build failure.
43046
43047 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43048
43049         Minor fixups to port to Solaris 10 with Sun C 5.8.
43050         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
43051         * modules/getcwd (Depends-on): Add dirfd.
43052         * lib/putenv.c (putenv): #undef it.
43053         (rpl_putenv): New decl.
43054         (malloc, free): Include <stdlib.h> rather than prototyping separately.
43055
43056 2007-02-20  Bruno Haible  <bruno@clisp.org>
43057
43058         * modules/stdio-tests: New file.
43059         * tests/test-stdio.c: New file.
43060
43061         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
43062         (Depends-on): Add stdio.
43063         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43064         (Include): Use <stdio.h> instead of vsnprintf.h.
43065         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43066         HAVE_DECL_VSNPRINTF.
43067         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
43068
43069         * modules/snprintf (Files): Remove lib/snprintf.h.
43070         (Depends-on): Add stdio.
43071         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43072         (Include): Use <stdio.h> instead of snprintf.h.
43073         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43074         HAVE_DECL_SNPRINTF.
43075         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
43076         * lib/getaddrinfo.c: Likewise.
43077
43078         * modules/stdio: New file.
43079         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
43080         * lib/snprintf.h: Remove file.
43081         * lib/vsnprintf.h: Remove file.
43082         * lib/.cppi-disable: Remove snprintf.h.
43083         * m4/stdio_h.m4: New file.
43084         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
43085
43086 2007-02-20  Jim Meyering  <jim@meyering.net>
43087
43088         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
43089         used by e.g., mingw.  From Bruno Haible.
43090
43091 2007-02-19  Bruno Haible  <bruno@clisp.org>
43092
43093         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
43094         warnings.
43095         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43096
43097 2007-02-19  Bruno Haible  <bruno@clisp.org>
43098
43099         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
43100         from mingw users.
43101
43102 2007-02-19  Bruno Haible  <bruno@clisp.org>
43103
43104         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
43105         warnings.
43106         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
43107
43108 2007-02-19  Jim Meyering  <jim@meyering.net>
43109
43110         Don't use FD after a successful "fdopendir (fd)".
43111         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
43112         Reset it by calling dirfd on the just-obtained DIR*.
43113
43114         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
43115         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
43116
43117 2007-02-18  Bruno Haible  <bruno@clisp.org>
43118
43119         * lib/readlink.c: Include <unistd.h>.
43120         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
43121         HAVE_READLINK.
43122         * modules/readlink (Depends-on): Add unistd.
43123         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43124         (Include): Add <unistd.h>.
43125
43126         * lib/getlogin_r.h: Remove file.
43127         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
43128         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
43129         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
43130         HAVE_DECL_GETLOGIN_R.
43131         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
43132         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43133         (Include): Use <unistd.h> instead of getlogin_r.h.
43134
43135         * lib/getcwd.h: Remove file.
43136         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
43137         * lib/xgetcwd.c: Likewise.
43138         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
43139         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
43140         * modules/getcwd (Files): Remove lib/getcwd.h.
43141         (Depends-on): Add unistd.
43142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43143         (Include): Use <unistd.h> instad of getcwd.h.
43144
43145         * lib/ftruncate.c: Include <unistd.h> first.
43146         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
43147         Set HAVE_FTRUNCATE.
43148         * modules/ftruncate (Depends-on): Add unistd.
43149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43150
43151         * lib/fchdir.c: Include <unistd.h> first.
43152         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
43153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
43154         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
43155         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43156         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
43157
43158         * lib/dup2.c: Include <unistd.h> first.
43159         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43160         HAVE_DUP2.
43161         * modules/dup2 (Depends-on): Add unistd.
43162         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43163
43164         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43165         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43166         REPLACE_CHOWN. Don't define chown as a macro here.
43167         * modules/chown (Depends-on): Add unistd.
43168         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43169
43170         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43171         Add definition for GL_LINK_WARNING.
43172         (chown, dup2): New declarations.
43173         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43174         link warning.
43175         (ftruncate): New declaration.
43176         (getcwd): New declaration, taken from old getcwd.h.
43177         (getlogin_r): New declaration, taken from old getlogin_r.h.
43178         (readlink): New declaration.
43179         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43180         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43181         (gl_PREREQ_UNISTD): Remove macro.
43182         (gl_UNISTD_MODULE_INDICATOR): New macro.
43183         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43184         many new variables. Don't set UNISTD_H.
43185         * modules/unistd (Description): Change.
43186         (Depends-on): Add link-warning.
43187         (configure.ac): Update.
43188         (Makefile.am): Create unistd.h always. Substitute many new variables
43189         into it.
43190
43191 2007-02-18  Bruno Haible  <bruno@clisp.org>
43192
43193         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43194         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43195         HAVE_GETSUBOPT.
43196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43197         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43198         * lib/getsubopt.h: Remove file.
43199         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43200         (Depends-on): Add stdlib.
43201         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43202         (Includes): Use <stdlib.h> instead of getsubopt.h.
43203         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43204         Set HAVE_GETSUBOPT.
43205         * lib/getsubopt.c: Don't include getsubopt.h.
43206
43207 2007-02-18  Bruno Haible  <bruno@clisp.org>
43208
43209         * modules/fchdir (Depends-on): Add dup2.
43210
43211 2007-02-18  Bruno Haible  <bruno@clisp.org>
43212
43213         * lib/stdlib_.h: Handle glibc's special invocation convention
43214         specially.
43215
43216 2007-02-18  Bruno Haible  <bruno@clisp.org>
43217
43218         * modules/stdlib-tests: New file.
43219         * tests/test-stdlib.c: New file.
43220
43221         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43222         (Depends-on): Add stdlib.
43223         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43224         (Includes): Use <stdlib.h> instead of mkstemp.h.
43225         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43226         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43227         * lib/mkstemp.c: Don't include mkstemp.h.
43228         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43229         * lib/stdlib--.h: Don't include mkstemp.h.
43230
43231         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43232         (Depends-on): Add stdlib.
43233         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43234         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43235         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43236         HAVE_MKDTEMP.
43237         * lib/mkdtemp.c: Don't include mkdtemp.h.
43238         * lib/clean-temp.c: Don't include mkdtemp.h.
43239
43240         * modules/exit (Files): Remove lib/exit.h.
43241         (Depends-on): Add stdlib.
43242         (Makefile.am): Remove lib_SOURCES.
43243         (Include): Use <stdlib.h> instead of exit.h.
43244         * lib/argmatch.c: Don't include exit.h.
43245         * lib/execute.c: Likewise.
43246         * lib/pagealign_alloc.c: Likewise.
43247         * lib/pipe.c: Likewise.
43248         * lib/wait-process.c: Likewise.
43249         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43250         * lib/exitfail.c: Likewise.
43251         * lib/savewd.c: Likewise.
43252         * lib/xsetenv.c: Likewise.
43253
43254         * modules/stdlib: New file.
43255         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43256         and extra comments about mkstemp().
43257         * lib/exit.h: Remove file.
43258         * lib/mkdtemp.h: Remove file.
43259         * lib/mkstemp.h: Remove file.
43260         * m4/stdlib_h.m4: New file.
43261         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43262
43263 2007-02-18  Bruno Haible  <bruno@clisp.org>
43264
43265         * modules/math-tests: New file.
43266         * tests/test-math.c: New file.
43267
43268         * modules/math: New file.
43269         * modules/mathl (Files): Remove lib/mathl.h.
43270         (Depends-on): Add math.
43271         (Makefile.am): Don't mention mathl.h.
43272         (Include): Use <math.h> instead of mathl.h.
43273         * lib/math_.h: New file.
43274         * lib/mathl.h: Remove file.
43275         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43276         mathl.h.
43277         * lib/asinl.c: Likewise.
43278         * lib/atanl.c: Likewise.
43279         * lib/ceill.c: Likewise.
43280         * lib/cosl.c: Likewise.
43281         * lib/expl.c: Likewise.
43282         * lib/floorl.c: Likewise.
43283         * lib/frexpl.c: Likewise.
43284         * lib/ldexpl.c: Likewise.
43285         * lib/logl.c: Likewise.
43286         * lib/sincosl.c: Likewise.
43287         * lib/sinl.c: Likewise.
43288         * lib/sqrtl.c: Likewise.
43289         * lib/tanl.c: Likewise.
43290         * lib/trigl.c: Likewise.
43291         * m4/math_h.m4: New file.
43292         * MODULES.html.sh (Mathematics): Add math.
43293
43294 2007-02-17  Bruno Haible  <bruno@clisp.org>
43295
43296         * modules/wctype-tests: New file.
43297         * tests/test-wctype.c: New file.
43298
43299         * modules/wchar-tests: New file.
43300         * tests/test-wchar.c: New file.
43301
43302         * modules/unistd-tests: New file.
43303         * tests/test-unistd.c: New file.
43304
43305         * modules/time-tests: New file.
43306         * tests/test-time.c: New file.
43307
43308         * modules/sysexits-tests: New file.
43309         * tests/test-sysexits.c: New file.
43310
43311         * modules/sys_time-tests: New file.
43312         * tests/test-sys_time.c: New file.
43313
43314         * modules/sys_stat-tests: New file.
43315         * tests/test-sys_stat.c: New file.
43316
43317         * modules/sys_socket-tests: New file.
43318         * tests/test-sys_socket.c: New file.
43319
43320         * modules/sys_select-tests: New file.
43321         * tests/test-sys_select.c: New file.
43322
43323         * modules/string-tests: New file.
43324         * tests/test-string.c: New file.
43325
43326         * modules/stdbool-tests: New file.
43327         * tests/test-stdbool.c: New file.
43328
43329         * modules/netinet_in-tests: New file.
43330         * tests/test-netinet_in.c: New file.
43331
43332         * modules/inttypes-tests: New file.
43333         * tests/test-inttypes.c: New file.
43334
43335         * modules/fcntl-tests: New file.
43336         * tests/test-fcntl.c: New file.
43337
43338         * modules/byteswap-tests: New file.
43339         * tests/test-byteswap.c: New file.
43340
43341         * modules/arpa_inet-tests: New file.
43342         * tests/test-arpa_inet.c: New file.
43343
43344 2007-02-17  Bruno Haible  <bruno@clisp.org>
43345
43346         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43347         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43348         if the corresponding module is not enabled. Emit link warnings if
43349         the function is used nevertheless.
43350         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43351         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43352         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43353         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43354         * modules/inttypes (Depends-on): Add link-warning.
43355         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43356         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43357         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43358         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43359         * modules/imaxdiv (configure.ac): Likewise.
43360         * modules/strtoimax (configure.ac): Likewise.
43361         * modules/strtoumax (configure.ac): Likewise.
43362
43363 2007-02-17  Bruno Haible  <bruno@clisp.org>
43364
43365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43366         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43367         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43368         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43369
43370 2007-02-17  Bruno Haible  <bruno@clisp.org>
43371
43372         * modules/link-warning: New file.
43373         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43374         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43375         * modules/string (Depends-on): Add link-warning.
43376         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43377         string.h.
43378         * MODULES.html.sh (Support for building libraries and executables): Add
43379         link-warning.
43380
43381 2007-02-17  Bruno Haible  <bruno@clisp.org>
43382
43383         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43384         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43385         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43386         long lines.
43387
43388 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43389             Bruno Haible  <bruno@clisp.org>
43390
43391         * modules/tmpfile: New file.
43392         * lib/tmpfile.c: New file.
43393         * m4/tmpfile.m4: New file.
43394         * MODULES.html.sh (func_all_modules): New section "Input/output".
43395
43396 2007-02-15  Bruno Haible  <bruno@clisp.org>
43397
43398         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43399         (supports_delete_on_close): New function.
43400         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43401
43402 2007-02-14  Bruno Haible  <bruno@clisp.org>
43403
43404         * modules/mbspcasecmp-tests: New file.
43405         * tests/test-mbspcasecmp.sh: New file.
43406         * tests/test-mbspcasecmp.c: New file.
43407
43408         New module mbspcasecmp.
43409         * modules/mbspcasecmp: New file.
43410         * lib/mbspcasecmp.c: New file.
43411         * lib/string_.h (strncasecmp): Change warning message.
43412         (mbspcasecmp): New declaration.
43413         * m4/mbspcasecmp.m4: New file.
43414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43415         GNULIB_MBSPCASECMP.
43416         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43417         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43418
43419 2007-02-14  Bruno Haible  <bruno@clisp.org>
43420
43421         * modules/mbsncasecmp-tests: New file.
43422         * tests/test-mbsncasecmp.sh: New file.
43423         * tests/test-mbsncasecmp.c: New file.
43424
43425         New module mbsncasecmp.
43426         * modules/mbsncasecmp: New file.
43427         * lib/mbsncasecmp.c: New file.
43428         * lib/string_.h (mbsncasecmp): New declaration.
43429         * m4/mbsncasecmp.m4: New file.
43430         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43431         GNULIB_MBSNCASECMP.
43432         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43433         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43434
43435 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43436
43437         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43438         Verify that it doesn't overlap with our flags.
43439         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43440         do not have the desired effect in multibyte locales; instead, use
43441         mbscasecmp.
43442         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43443         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43444         we don't require GNU fnmatch ourselves (if our users require it, they
43445         should do so explicitly).
43446
43447         Fix regex code so it doesn't rely on strcasecmp.
43448         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43449         Otherwise, include gnulib's langinfo.h.
43450         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43451         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43452         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43453         * modules/regex (FILES): Remove m4/codeset.m4.
43454         (Depends-on): Add localcharset.  Remove strcase.
43455
43456 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43457
43458         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43459         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43460
43461 2007-02-13  Bruno Haible  <bruno@clisp.org>
43462
43463         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43464         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43465
43466 2007-02-12  Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43469         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43470         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43471         time warning rather than a link error.
43472
43473 2007-02-12  Bruno Haible  <bruno@clisp.org>
43474
43475         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43476         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43477         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43478
43479 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43480
43481         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43482         args, not 2.
43483
43484 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43485
43486         New module 'time', so that apps can include <time.h> as per
43487         POSIX and GNU instead of separate include files like time_r.h
43488         and timegm.h.  This implementation tries out a simpler approach
43489         for replacing decls in standard include files (as compared to
43490         the string module), somewhat as an experiment.
43491
43492         * config/srclist.txt: Comment out mktime.c for now.
43493         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43494         since it doesn't apply any more.  Use generic wording instead.
43495         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43496         'time'.
43497         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43498         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43499         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43500         Don't include <sys/types.h>; no longer needed since we assume C89.
43501         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43502         * lib/strftime.c: Likewise.
43503         * lib/time_r.c: Likewise.
43504         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43505         * lib/nanosleep.c: Include <time.h> first, to check interface.
43506         * lib/strptime.c: Likewise.
43507         * lib/time_r.c: Likewise.
43508         * lib/timegm.c: Likewise.
43509         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43510         needed.
43511         * lib/timegm.c: Don't include timegm.h; no longer needed.
43512         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43513         time.h now handles any problems in that area.
43514         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43515         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43516         that time.h defines struct timespec.
43517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43518         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43519         handles that.
43520         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43521         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43522         needed.  Set REPLACE_LOCALTIME.
43523         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43524         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43525         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43526         nanosleep; time_h.m4 now does that.  Don't require
43527         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43528         module handles this now.
43529         * modules/getdate (Depends-on): Remove timespec.  Add time.
43530         * modules/nanosleep (Depends-on): Likewise.
43531         * modules/stat-time (Depends-on): Likewise.
43532         * modules/nanosleep (Include): Include time.h, not timespec.h.
43533         * modules/strptime (Files): Remove lib/strptime.h.
43534         (Depends-on): Add extensions, time.
43535         (Include): Include time.h, not strptime.h.
43536         * modules/time_r (Files): Remove lib/time_r.h.
43537         (Depends-on): Add time.
43538         (Include): Include time.h, not time_r.h.
43539         * modules/timegm: Likewise.
43540         * modules/timespec (Description): Now does timespec-related decls
43541         of our own, instead of struct timespec itself.
43542         (Depends-on): Add time; remove extensions.
43543         (Maintainer): Add self.
43544         * modules/utimecmp (Depends-on): Add time; remove timespec.
43545         * modules/utimens (Depends-on): Likewise.
43546         * modules/xnanosleep (Depends-on): Likewise.
43547
43548 2007-02-11  Bruno Haible  <bruno@clisp.org>
43549
43550         * lib/c-strstr.c: Include allocsa.h.
43551         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43552         * lib/c-strcasestr.c: Include allocsa.h.
43553         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43554         * lib/strcasestr.c: Include allocsa.h.
43555         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43556         * lib/mbsstr.c: Include allocsa.h.
43557         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43558         allocsa/freesa instead of malloc/free.
43559         * lib/mbscasestr.c: Include allocsa.h.
43560         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43561         allocsa/freesa instead of malloc/free.
43562         * modules/c-strstr (Depends-on): Add allocsa.
43563         * modules/c-strcasestr (Depends-on): Likewise.
43564         * modules/strcasestr (Depends-on): Likewise.
43565         * modules/mbsstr (Depends-on): Likewise.
43566         * modules/mbscasestr (Depends-on): Likewise.
43567
43568 2007-02-11  Bruno Haible  <bruno@clisp.org>
43569
43570         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43571
43572         * modules/mbsspn-tests: New file.
43573         * tests/test-mbsspn.sh: New file.
43574         * tests/test-mbsspn.c: New file.
43575
43576 2007-02-11  Bruno Haible  <bruno@clisp.org>
43577
43578         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43579
43580         * modules/mbspbrk-tests: New file.
43581         * tests/test-mbspbrk.sh: New file.
43582         * tests/test-mbspbrk.c: New file.
43583
43584 2007-02-11  Bruno Haible  <bruno@clisp.org>
43585
43586         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43587         unneeded cast.
43588
43589         * modules/mbscspn-tests: New file.
43590         * tests/test-mbscspn.sh: New file.
43591         * tests/test-mbscspn.c: New file.
43592
43593 2007-02-11  Bruno Haible  <bruno@clisp.org>
43594
43595         * modules/mbscasecmp-tests: New file.
43596         * tests/test-mbscasecmp.sh: New file.
43597         * tests/test-mbscasecmp.c: New file.
43598
43599 2007-02-11  Bruno Haible  <bruno@clisp.org>
43600
43601         Ensure O(n) worst-case complexity of mbscasestr.
43602         * lib/mbscasestr.c: Include stdbool.h.
43603         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43604         functions.
43605         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43606         the bookkeeping indicates that it's worth it.
43607         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43608
43609         * modules/mbscasestr-tests: New file.
43610         * tests/test-mbscasestr1.c: New file.
43611         * tests/test-mbscasestr2.sh: New file.
43612         * tests/test-mbscasestr2.c: New file.
43613         * tests/test-mbscasestr3.sh: New file.
43614         * tests/test-mbscasestr3.c: New file.
43615         * tests/test-mbscasestr4.sh: New file.
43616         * tests/test-mbscasestr4.c: New file.
43617         * m4/locale-tr.m4: New file.
43618
43619 2007-02-11  Bruno Haible  <bruno@clisp.org>
43620
43621         Ensure O(n) worst-case complexity of mbsstr.
43622         * lib/mbsstr.c: Include stdbool.h.
43623         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43624         functions.
43625         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43626         bookkeeping indicates that it's worth it.
43627         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43628
43629         * modules/mbsstr-tests: New file.
43630         * tests/test-mbsstr1.c: New file.
43631         * tests/test-mbsstr2.sh: New file.
43632         * tests/test-mbsstr2.c: New file.
43633         * tests/test-mbsstr3.sh: New file.
43634         * tests/test-mbsstr3.c: New file.
43635         * m4/locale-fr.m4: New file.
43636
43637 2007-02-11  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/mbsrchr.c (mbsrchr): Fix bug.
43640
43641         * modules/mbsrchr-tests: New file.
43642         * tests/test-mbsrchr.sh: New file.
43643         * tests/test-mbsrchr.c: New file.
43644
43645 2007-02-11  Bruno Haible  <bruno@clisp.org>
43646
43647         * lib/mbschr.c (mbschr): Fix bug.
43648
43649         * modules/mbschr-tests: New file.
43650         * tests/test-mbschr.sh: New file.
43651         * tests/test-mbschr.c: New file.
43652         * m4/locale-zh.m4: New file.
43653
43654 2007-02-11  Bruno Haible  <bruno@clisp.org>
43655
43656         Support for copying multibyte string iterators.
43657         * lib/mbiter.h: Include <string.h>.
43658         (mbiter_multi_copy): New function.
43659         (mbi_copy): New macro.
43660         * lib/mbuiter.h: Include <string.h>.
43661         (mbuiter_multi_copy): New function.
43662         (mbui_copy): New macro.
43663
43664 2007-02-11  Bruno Haible  <bruno@clisp.org>
43665
43666         New module mbslen.
43667         * modules/mbslen: New file.
43668         * lib/mbslen.c: New file.
43669         * lib/string_.h (mbslen): New declaration.
43670         * m4/mbslen.m4: New file.
43671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43672         GNULIB_MBSLEN.
43673         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43674         * MODULES.html.sh (Internationalization functions): Add mbslen.
43675
43676 2007-02-11  Bruno Haible  <bruno@clisp.org>
43677
43678         Ensure O(n) worst-case complexity of strcasestr substitute.
43679         * lib/strcasestr.c: Include stdbool.h.
43680         (knuth_morris_pratt): New function.
43681         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43682         bookkeeping indicates that it's worth it.
43683         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43684
43685         * modules/strcasestr-tests: New file.
43686         * tests/test-strcasestr.c: New file.
43687
43688 2007-02-11  Bruno Haible  <bruno@clisp.org>
43689
43690         Ensure O(n) worst-case complexity of c_strcasestr.
43691         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43692         (knuth_morris_pratt): New function.
43693         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43694         the bookkeeping indicates that it's worth it.
43695         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43696
43697         * modules/c-strcasestr-tests: New file.
43698         * tests/test-c-strcasestr.c: New file.
43699
43700 2007-02-11  Bruno Haible  <bruno@clisp.org>
43701
43702         Ensure O(n) worst-case complexity of c_strstr.
43703         * lib/c-strstr.c: Include stdbool.h, string.h.
43704         (knuth_morris_pratt): New function.
43705         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43706         bookkeeping indicates that it's worth it.
43707         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43708
43709         * lib/c-strstr.c: Complete rewrite for maintainability.
43710
43711         * modules/c-strstr-tests: New file.
43712         * tests/test-c-strstr.c: New file.
43713
43714 2007-02-11  Bruno Haible  <bruno@clisp.org>
43715
43716         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43717         5.2.1 and earlier, whereby \055 was treated just like the range
43718         delimiter '-'.
43719         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43720
43721 2007-02-08  Bruno Haible  <bruno@clisp.org>
43722
43723         * modules/regex (Depends-on): Add stdbool.
43724         Reported by Dalibor Topic <robilad@kaffe.org>.
43725
43726 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43727
43728         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43729         Prefer returning from main to exiting from it.
43730         Remove unnecessary parens after sizeof.
43731
43732 2007-02-05  Bruno Haible  <bruno@clisp.org>
43733
43734         New module mbssep.
43735         * modules/mbssep: New file.
43736         * lib/mbssep.c: New file.
43737         * lib/string_.h (strsep): Add a conditional link warning.
43738         (mbssep): New declaration.
43739         * m4/mbssep.m4: New file.
43740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43741         GNULIB_MBSSEP.
43742         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43743         * MODULES.html.sh (Internationalization functions): Add mbssep.
43744
43745 2007-02-05  Bruno Haible  <bruno@clisp.org>
43746
43747         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43748         Optimize search in case of 1 delimiter.
43749
43750 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43751
43752         * lib/acl.h: Include sys/types.h before sys/acl.h.
43753
43754 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43755
43756         Merge upstream fix for glibc bugzilla #3957:
43757
43758         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43759
43760         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43761         bit for RE_HAT_LISTS_NOT_NEWLINE.
43762         (build_charclass_op): Remove bogus comment.
43763
43764 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43765
43766         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43767
43768 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43769
43770         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43771         * lib/memmem.c [!defined _LIBC]: Include config.h.
43772
43773 2007-02-04  Bruno Haible  <bruno@clisp.org>
43774
43775         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43776         warning message.
43777
43778 2007-02-04  Bruno Haible  <bruno@clisp.org>
43779
43780         New module mbstok_r.
43781         * modules/mbstok_r: New file.
43782         * lib/mbstok_r.c: New file.
43783         * lib/string_.h (strtok_r): Change argument names to match the
43784         comments. Add a conditional link warning.
43785         (mbstok_r): New declaration.
43786         * m4/mbstok_r.m4: New file.
43787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43788         GNULIB_MBSTOK_R.
43789         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43790         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43791
43792 2007-02-04  Bruno Haible  <bruno@clisp.org>
43793
43794         New module mbsspn.
43795         * modules/mbsspn: New file.
43796         * lib/mbsspn.c: New file.
43797         * lib/string_.h (strspn): Add a conditional link warning.
43798         (mbsspn): New declaration.
43799         * m4/mbsspn.m4: New file.
43800         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43801         GNULIB_MBSSPN.
43802         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43803         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43804
43805 2007-02-04  Bruno Haible  <bruno@clisp.org>
43806
43807         New module mbspbrk.
43808         * modules/mbspbrk: New file.
43809         * lib/mbspbrk.c: New file.
43810         * lib/string_.h (strpbrk): Add a conditional link warning.
43811         (mbspbrk): New declaration.
43812         * m4/mbspbrk.m4: New file.
43813         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43814         GNULIB_MBSPBRK.
43815         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43816         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43817
43818 2007-02-04  Bruno Haible  <bruno@clisp.org>
43819
43820         New module mbscspn.
43821         * modules/mbscspn: New file.
43822         * lib/mbscspn.c: New file.
43823         * lib/string_.h (strcspn): Add a conditional link warning.
43824         (mbscspn): New declaration.
43825         * m4/mbscspn.m4: New file.
43826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43827         GNULIB_MBSCSPN.
43828         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
43829         * MODULES.html.sh (Internationalization functions): Add mbscspn.
43830
43831 2007-02-04  Bruno Haible  <bruno@clisp.org>
43832
43833         New module mbscasestr, reduced goal of strcasestr.
43834         * modules/mbscasestr: New file.
43835         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
43836         (mbscasestr): Renamed from strcasestr.
43837         * lib/strcasestr.c: Don't include mbuiter.h.
43838         (strcasestr): Remove support for multibyte locales.
43839         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
43840         Change the conditional link warning.
43841         (mbscasestr): New declaration.
43842         * m4/mbscasestr.m4: New file.
43843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
43844         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
43845         REPLACE_STRCASESTR.
43846         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
43847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43848         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43849         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
43850         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
43851         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
43852         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
43853         (Depends-on): Remove mbuiter.
43854         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
43855
43856 2007-02-04  Bruno Haible  <bruno@clisp.org>
43857
43858         Simplify handling of strncasecmp.
43859         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
43860         the conditional link warning.
43861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43862         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
43863         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
43864         * modules/strcase (configure.ac): Don't invoke
43865         gl_STRING_MODULE_INDICATOR.
43866         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
43867
43868 2007-02-04  Bruno Haible  <bruno@clisp.org>
43869
43870         New module mbscasecmp, reduced goal of strcasecmp.
43871         * modules/mbscasecmp: New file.
43872         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
43873         (mbscasecmp): Renamed from strcasecmp.
43874         * lib/strcasecmp.c: Don't include mbuiter.h.
43875         (strcasecmp): Remove support for multibyte locales.
43876         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
43877         Change the conditional link warning.
43878         (mbscasecmp): New declaration.
43879         * m4/mbscasecmp.m4: New file.
43880         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
43881         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
43882         REPLACE_STRCASECMP.
43883         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
43884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43885         GNULIB_MBSCASECMP.
43886         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
43887         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
43888         * modules/strcase (Files): Remove m4/mbrtowc.m4.
43889         (Depends-on): Remove mbuiter.
43890         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
43891
43892 2007-02-04  Bruno Haible  <bruno@clisp.org>
43893
43894         New module mbsstr. Remove module strstr.
43895         * modules/mbsstr: New file.
43896         * modules/strstr: Remove file.
43897         * lib/mbsstr.c: Renamed from lib/strstr.c.
43898         (mbsstr): Renamed from strstr.
43899         * lib/string_.h (strstr): Remove declaration. Change the conditional
43900         link warning.
43901         (mbsstr): New declaration.
43902         * m4/mbsstr.m4: New file.
43903         * m4/strstr.m4: Remove file.
43904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
43905         REPLACE_STRSTR.
43906         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
43907         Don't initialize GNULIB_STRSTR.
43908         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
43909         substitute GNULIB_STRSTR and REPLACE_STRSTR.
43910         * MODULES.html.sh (Internationalization functions): Add mbsstr.
43911         (Support for systems lacking ANSI C 89): Remove strstr.
43912
43913 2007-02-04  Bruno Haible  <bruno@clisp.org>
43914
43915         New module mbsrchr.
43916         * modules/mbsrchr: New file.
43917         * lib/mbsrchr.c: New file.
43918         * lib/string_.h (strrchr): Add a conditional link warning.
43919         (mbsrchr): New declaration.
43920         * m4/mbsrchr.m4: New file.
43921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43922         GNULIB_MBSRCHR.
43923         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
43924         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
43925
43926 2007-02-04  Bruno Haible  <bruno@clisp.org>
43927
43928         New module mbschr.
43929         * modules/mbschr: New file.
43930         * lib/mbschr.c: New file.
43931         * lib/string_.h (strchr): Add a conditional link warning.
43932         (mbschr): New declaration.
43933         * m4/mbschr.m4: New file.
43934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43935         GNULIB_MBSCHR.
43936         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
43937         * MODULES.html.sh (Internationalization functions): Add mbschr.
43938
43939 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43940
43941         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
43942
43943         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
43944
43945 2007-02-04  Bruno Haible  <bruno@clisp.org>
43946
43947         New module description section 'configure.ac-early'.
43948         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
43949         (func_get_autoconf_early_snippet): New function.
43950         (func_import, func_create_testdir): Use it. Remove special cases for
43951         modules 'extensions' and 'lock'.
43952         * modules/extensions (configure.ac-early): Require
43953         gl_USE_SYSTEM_EXTENSIONS.
43954         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
43955
43956 2007-02-04  Bruno Haible  <bruno@clisp.org>
43957
43958         Make use of gcj-4.3's -fsource and -ftarget option.
43959         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
43960         and if so try the options -fsource and -ftarget.
43961         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
43962         source_version, ftarget_option, target_version arguments.
43963         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
43964         (is_envjavac_oldgcj_14_14_usable): Renamed from
43965         is_envjavac_gcj_14_14_usable.
43966         (is_envjavac_oldgcj_14_13_usable): Renamed from
43967         is_envjavac_gcj_14_13_usable.
43968         (is_gcj_present): Update.
43969         (is_gcj_43, is_gcj43_usable): New functions.
43970         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
43971         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
43972         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
43973         try the options -fsource and -ftarget.
43974
43975 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
43976
43977         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
43978         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
43979         larger value.
43980
43981 2007-02-03  Jim Meyering  <jim@meyering.net>
43982
43983         Give tools a better chance to allocate space for very large buffers.
43984         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
43985
43986         Make pwd and readlink work also when run with an unreadable parent dir
43987         on systems with openat support.
43988         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
43989         provided getcwd function, even when we have openat support.
43990         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
43991
43992 2007-02-02  Bruno Haible  <bruno@clisp.org>
43993
43994         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43995         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
43996         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
43997         portability problems if one of these functions is only used on specific
43998         platforms.
43999         Reported by Paul Eggert.
44000
44001 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
44002
44003         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
44004         is causing more trouble than it's curing.
44005         * lib/regex_internal.h (__mempcpy): Remove.
44006         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
44007         (and make the code a tad smaller to boot).
44008         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
44009
44010 2007-02-02  Jim Meyering  <jim@meyering.net>
44011
44012         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
44013         section, not in the Makefile.am: one.
44014
44015 2007-02-02  Eric Blake  <ebb9@byu.net>
44016
44017         * lib/strchrnul.c: Always include config.h first.
44018
44019         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
44020         gnulib strstr is not necessary here.
44021
44022 2007-02-02  Simon Josefsson  <simon@josefsson.org>
44023
44024         * m4/socklen.m4: Fix typo.
44025
44026 2007-02-02  Eric Blake  <ebb9@byu.net>
44027
44028         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
44029         * modules/netinet_in (Makefile.am): Likewise.
44030
44031 2007-02-01  Bruno Haible  <bruno@clisp.org>
44032
44033         * lib/string_.h (GL_LINK_WARNING): New macro.
44034         (strcasecmp, strstr, strcasestr): If provided by the system,
44035         conditionally define as a macro that leads to a warning instead of to
44036         an error.
44037         (strncasecmp): Conditionally define as a macro that leads to a warning.
44038
44039 2007-02-01  Karl Berry  <karl@gnu.org>
44040
44041         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
44042
44043 2007-02-01  Bruno Haible  <bruno@clisp.org>
44044
44045         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
44046         renamings.
44047
44048 2007-02-01  Eric Blake  <ebb9@byu.net>
44049
44050         * modules/regex (Depends-on): Revert dependence on mempcpy.
44051         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
44052         module's definition of mempcpy.
44053         Reported by Paul Eggert.
44054
44055 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
44056
44057         * lib/string_.h: If the gnulib module XYZ is not present, undefine
44058         the symbol XYZ before redefining it.  This fixes a problem with
44059         programs that don't use XYZ, when compiled on systems that define
44060         XYZ to something else.
44061
44062 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
44063
44064         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
44065         occurs when "mkdir -m foo" creates a setgid directory that is (1)
44066         writeable to group or other and (2) is intended to have a special
44067         mode bit that is set or cleared.  In such a case, the directory
44068         should be neither group- nor other-writeable until the special
44069         mode bits are right.
44070
44071 2007-01-31  Eric Blake  <ebb9@byu.net>
44072
44073         * modules/mountlist (Depends-on): Add strstr.
44074
44075         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
44076         bug.
44077         * modules/string (Makefile.am): Remove redundant replacement.
44078         * modules/regex (Depends-on): Add mempcpy.
44079
44080 2007-01-31  Bruno Haible  <bruno@clisp.org>
44081
44082         New module description field 'Link'.
44083         * gnulib-tool (func_usage): Document --extract-link-directive.
44084         (sed_extract_prog): Recognize 'Link' directive.
44085         (func_get_link_directive): New function.
44086         (func_import): Show summary of link directives.
44087         Handle --extract-link-directive option.
44088         * modules/acl (Link): New section.
44089         * modules/clock-time (Link): New section.
44090         * modules/euidaccess (Link): New section.
44091         * modules/gettext (Link): New section.
44092         * modules/iconv (Link): New section.
44093         * modules/lock (Link): New section.
44094         * modules/nanosleep (Link): New section.
44095         * modules/readline (Link): New section.
44096
44097 2007-01-27  Bruno Haible  <bruno@clisp.org>
44098
44099         Enforce the use of gnulib modules for unportable <string.h> functions.
44100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
44101         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
44102         (gl_HEADER_STRING_H_BODY): Require it.
44103         * lib/string_.h: If the gnulib module XYZ is not present, redefine
44104         the symbol XYZ to one that gives a link error.
44105         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
44106         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
44107         * modules/mempcpy (configure.ac): Likewise.
44108         * modules/memrchr (configure.ac): Likewise.
44109         * modules/stpcpy (configure.ac): Likewise.
44110         * modules/stpncpy (configure.ac): Likewise.
44111         * modules/strcase (configure.ac): Likewise.
44112         * modules/strcasestr (configure.ac): Likewise.
44113         * modules/strchrnul (configure.ac): Likewise.
44114         * modules/strdup (configure.ac): Likewise.
44115         * modules/strndup (configure.ac): Likewise.
44116         * modules/strnlen (configure.ac): Likewise.
44117         * modules/strpbrk (configure.ac): Likewise.
44118         * modules/strsep (configure.ac): Likewise.
44119         * modules/strstr (configure.ac): Likewise.
44120         * modules/strtok_r (configure.ac): Likewise.
44121
44122 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
44123
44124         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
44125
44126 2007-01-30  Jim Meyering  <jim@meyering.net>
44127
44128         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
44129
44130 2007-01-29  Bruno Haible  <bruno@clisp.org>
44131
44132         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
44133         * lib/execute.c: Likewise.
44134         * lib/pipe.c: Likewise.
44135         * lib/printf-args.h: Likewise.
44136         * lib/printf-args.c: Likewise.
44137         * lib/printf-parse.c: Likewise.
44138         * lib/vasnprintf.c: Likewise.
44139
44140 2007-01-29  Eric Blake  <ebb9@byu.net>
44141
44142         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
44143         declaration.
44144
44145 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44146
44147         * lib/strptime.h (strptime): Use 'restrict' for args where
44148         POSIX requires this.
44149         * lib/strptime.c (strptime): Likewise.
44150         Change license notice from LGPL to GPL, since gnulib-tool will
44151         change this as needed.
44152         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
44153         defined.
44154         Include "strptime.h" first, to check interface.
44155         Do not #undef _LIBC and _NL_CURRENT.
44156         Do not include <stdlib.h>; no longer needed.
44157         Include "time_r.h" and declare ptime_locale_status
44158         only if _LIBC is not defined.
44159         (__P): Remove unused macro.
44160         (match_string): Bring back glibc version, but use it only if _LIBC
44161         is defined.
44162         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44163         Remove unnecessary assertion and abort() call.
44164         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44165         * m4/strptime.m4: Fix serial number comment.
44166         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44167         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44168         (Depends-on): Add time_r.
44169
44170 2007-01-29  Bruno Haible  <bruno@clisp.org>
44171
44172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44173         strptime.
44174         * modules/strptime (Depends-on): Add stdbool.
44175         * lib/strptime.h: Include <time.h> always. Add comments.
44176
44177 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44178
44179         * modules/strptime: New file.
44180         * lib/strptime.h: New file.
44181         * lib/strptime.c: New file.
44182         * m4/strptime.m4: New file.
44183
44184 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44185
44186         * MODULES.html.sh: New module mpsort.
44187         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44188
44189         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44190         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44192         All uses changed.
44193         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44194         All uses changed.
44195         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44196         to _Restrict_.
44197         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44198         the parameter matches the prototype.
44199
44200 2007-01-28  Jim Meyering  <jim@meyering.net>
44201
44202         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44203         sys/time.h here, reverting that part of the previous patch:
44204         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44205
44206 2007-01-28  Bruno Haible  <bruno@clisp.org>
44207
44208         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44209         value of $(SYS_TIME_H).
44210         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44211         remove it conditionally, too. [added by Jim Meyering]
44212         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44214         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44215         GETTIMEOFDAY_REPLACEMENT to 1.
44216
44217 2007-01-28  Bruno Haible  <bruno@clisp.org>
44218
44219         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44220         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44222         Set UNISTD_H instead of UNISTD_H2.
44223         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44224
44225 2007-01-28  Bruno Haible  <bruno@clisp.org>
44226
44227         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44228         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44229
44230 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44231
44232         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44233         (func_create_testdir): Ensure C locale for `grep' and `tr'
44234         character ranges.
44235         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44236         ACLOCAL_AMFLAGS parsing state machine.
44237
44238 2007-01-27  Bruno Haible  <bruno@clisp.org>
44239
44240         * modules/unistr/base: Update.
44241
44242 2007-01-27  Bruno Haible  <bruno@clisp.org>
44243
44244         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44245         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44246         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44247         modules/unistr/u32-mbtouc.
44248         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44249         * lib/unistr.h: Update.
44250         * lib/linebreak.c: Update.
44251         * modules/unistr/u32-mbtouc: Renamed from
44252         modules/unistr/u32-mbtouc-safe.
44253         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44254         * lib/unistr.h: Update.
44255         * lib/unistr/u32-to-u8.c: Update.
44256         * lib/unistr/u32-to-u16.c: Update.
44257
44258 2007-01-27  Bruno Haible  <bruno@clisp.org>
44259
44260         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44261         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44262         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44263         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44264         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44265         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44266         modules/unistr/u16-mbtouc.
44267         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44268         * lib/unistr.h: Update.
44269         * lib/linebreak.c: Update.
44270         * modules/linebreak: Update.
44271         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44272         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44273         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44274         * modules/unistr/u16-mbtouc: Renamed from
44275         modules/unistr/u16-mbtouc-safe.
44276         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44277         * lib/unistr.h: Update.
44278         * lib/unistr/u16-to-u8.c: Update.
44279         * modules/unistr/u16-to-u8: Update.
44280         * lib/unistr/u16-to-u32.c: Update.
44281         * modules/unistr/u16-to-u32: Update.
44282
44283 2007-01-27  Bruno Haible  <bruno@clisp.org>
44284
44285         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44286         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44287         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44288         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44289         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44290         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44291         modules/unistr/u8-mbtouc.
44292         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44293         * lib/unistr.h: Update.
44294         * lib/striconveh.c: Update.
44295         * modules/striconveh: Update.
44296         * lib/linebreak.c: Update.
44297         * modules/linebreak: Update.
44298         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44299         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44300         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44301         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44302         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44303         * lib/unistr.h: Update.
44304         * lib/striconveh.c: Update.
44305         * modules/striconveh: Update.
44306         * lib/unistr/u8-to-u16.c: Update.
44307         * modules/unistr/u8-to-u16: Update.
44308         * lib/unistr/u8-to-u32.c: Update.
44309         * modules/unistr/u8-to-u32: Update.
44310
44311 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44312
44313         Sync from Libtool.
44314         * lib/argz.c: Do not include strings.h nor memory.h, include
44315         string.h unconditionally.  Patch by Simon Josefsson.
44316
44317 2007-01-27  Bruno Haible  <bruno@clisp.org>
44318
44319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44320         from gl_HEADER_STRING_H_BODY.
44321         (gl_HEADER_STRING_H_BODY): Require it.
44322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44323         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44324         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44325         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44327         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44328         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44329         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44330         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44331         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44332         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44333         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44334         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44335         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44336         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44337
44338 2007-01-27  Bruno Haible  <bruno@clisp.org>
44339
44340         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44341         check_PROGRAMS into noinst_PROGRAMS.
44342         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44343         check_PROGRAMS in this case.
44344         (func_import): Set for_test to false.
44345         (func_create_testdir): Set for_test to true.
44346
44347 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44348             Bruno Haible  <bruno@clisp.org>
44349
44350         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44351         (Depends-on): Add string.
44352         (Includes): Use <string.h> instead of strcasestr.h.
44353         * modules/string (Makefile.am): Also substitute the value of
44354         REPLACE_STRCASESTR.
44355         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44356         assume strcasestr is declared in <string.h> not <strings.h>. Also
44357         set REPLACE_STRCASESTR.
44358         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44359         REPLACE_STRCASESTR.
44360         * lib/strcasestr.h: Remove file.
44361         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44362         * lib/string_.h (strcasestr): New declaration.
44363
44364 2007-01-27  Bruno Haible  <bruno@clisp.org>
44365
44366         * lib/string_.h: Use 'extern'.
44367
44368 2007-01-27  Jim Meyering  <jim@meyering.net>
44369
44370         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44371         of set-but-not-used local, "q".
44372
44373         * lib/mempcpy.c: Include <config.h> before <string.h>.
44374         This fixes a compilation error on HP-UX, due to the system's
44375         "restrict"-using mempcpy prototype.
44376
44377 2007-01-26  Bruno Haible  <bruno@clisp.org>
44378
44379         Small optimization.
44380         * lib/javacomp.c: Include c-strstr.h.
44381          (is_envjavac_gcj): Use c_strstr instead of strstr.
44382         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44383
44384 2007-01-26  Bruno Haible  <bruno@clisp.org>
44385
44386         * MODULES.html.sh (Unicode string functions): Add the new modules.
44387
44388         * modules/uniconv/u32-strconv-to-locale: New file.
44389         * lib/uniconv/u32-strconv-to-locale.c: New file.
44390
44391         * modules/uniconv/u16-strconv-to-locale: New file.
44392         * lib/uniconv/u16-strconv-to-locale.c: New file.
44393
44394         * modules/uniconv/u8-strconv-to-locale: New file.
44395         * lib/uniconv/u8-strconv-to-locale.c: New file.
44396
44397         * modules/uniconv/u32-strconv-from-locale: New file.
44398         * lib/uniconv/u32-strconv-from-locale.c: New file.
44399
44400         * modules/uniconv/u16-strconv-from-locale: New file.
44401         * lib/uniconv/u16-strconv-from-locale.c: New file.
44402
44403         * modules/uniconv/u8-strconv-from-locale: New file.
44404         * lib/uniconv/u8-strconv-from-locale.c: New file.
44405
44406         * modules/uniconv/u32-strconv-to-enc: New file.
44407         * lib/uniconv/u32-strconv-to-enc.c: New file.
44408         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44409         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44410
44411         * modules/uniconv/u16-strconv-to-enc: New file.
44412         * lib/uniconv/u16-strconv-to-enc.c: New file.
44413         * lib/uniconv/u-strconv-to-enc.h: New file.
44414         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44415         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44416
44417         * modules/uniconv/u8-strconv-to-enc: New file.
44418         * lib/uniconv/u8-strconv-to-enc.c: New file.
44419         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44420         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44421
44422         * modules/uniconv/u32-strconv-from-enc: New file.
44423         * lib/uniconv/u32-strconv-from-enc.c: New file.
44424         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44425         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44426
44427         * modules/uniconv/u16-strconv-from-enc: New file.
44428         * lib/uniconv/u16-strconv-from-enc.c: New file.
44429         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44430         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44431
44432         * modules/uniconv/u8-strconv-from-enc: New file.
44433         * lib/uniconv/u8-strconv-from-enc.c: New file.
44434         * lib/uniconv/u-strconv-from-enc.h: New file.
44435         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44436         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44437
44438         * modules/uniconv/u32-conv-from-enc: New file.
44439         * lib/uniconv/u32-conv-from-enc.c: New file.
44440         * modules/uniconv/u32-conv-from-enc-tests: New file.
44441         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44442
44443         * modules/uniconv/u16-conv-from-enc: New file.
44444         * lib/uniconv/u16-conv-from-enc.c: New file.
44445         * lib/uniconv/u-conv-from-enc.h: New file.
44446         * modules/uniconv/u16-conv-from-enc-tests: New file.
44447         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44448
44449         * modules/uniconv/u8-conv-from-enc: New file.
44450         * lib/uniconv/u8-conv-from-enc.c: New file.
44451         * modules/uniconv/u8-conv-from-enc-tests: New file.
44452         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44453
44454         * modules/uniconv/base: New file.
44455         * lib/uniconv.h: New file.
44456
44457 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44458
44459         * doc/gnulib-tool.texi (Initial import): Update to match current
44460         behavior with strdup module.
44461         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44462         * lib/memmem.h: Remove; all uses removed.  This is now done
44463         by <string.h>.
44464         * lib/mempcpy.h: Likewise.
44465         * lib/memrchr.h: Likewise.
44466         * lib/stpcpy.h: Likewise.
44467         * lib/stpncpy.h: Likewise.
44468         * lib/strcase.h: Likewise.
44469         * lib/strchrnul.h: Likewise.
44470         * lib/strdup.h: Likewise.
44471         * lib/strndup.h: Likewise.
44472         * lib/strnlen.h: Likewise.
44473         * lib/strpbrk.h: Likewise.
44474         * lib/strsep.h: Likewise.
44475         * lib/strstr.h: Likewise.
44476         * lib/strtok_r.h: Likewise.
44477         * lib/string_.h: New file.
44478         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44479         Rely on <string.h> instead.
44480         * lib/canon-host.c: Likewise.
44481         * lib/chdir-long.c: Likewise.
44482         * lib/concatpath.c: Likewise.
44483         * lib/exclude.c: Likewise.
44484         * lib/fchdir.c: Likewise.
44485         * lib/getaddrinfo.c: Likewise.
44486         * lib/getcwd.c: Likewise.
44487         * lib/getsubopt.c: Likewise.
44488         * lib/glob.c: Likewise.
44489         * lib/hard-locale.c: Likewise.
44490         * lib/iconvme.c: Likewise.
44491         * lib/javacomp.c: Likewise.
44492         * lib/mempcpy.c: Likewise.
44493         * lib/memrchr.c: Likewise.
44494         * lib/regex_internal.h: Likewise.
44495         * lib/stpncpy.c: Likewise.
44496         * lib/strcasecmp.c: Likewise.
44497         * lib/strchrnul.c: Likewise.
44498         * lib/strdup.c: Likewise.
44499         * lib/striconv.c: Likewise.
44500         * lib/striconveh.c: Likewise.
44501         * lib/striconveha.c: Likewise.
44502         * lib/strncasecmp.c: Likewise.
44503         * lib/strndup.c: Likewise.
44504         * lib/strnlen.c: Likewise.
44505         * lib/strsep.c: Likewise.
44506         * lib/strstr.c: Likewise.
44507         * lib/strtok_r.c: Likewise.
44508         * lib/userspec.c: Likewise.
44509         * lib/w32spawn.h: Likewise.
44510         * lib/xstrndup.c: Likewise.
44511         * lib/mountlist.c (strstr): Remove decl.
44512         * m4/string_h.m4: New file.
44513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44514         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44515         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44516         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44517         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44518         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44519         Set REPLACE_STRCASECMP if necessary.
44520         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44521         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44522         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44523         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44524         HAVE_DECL_STRDUP if necessary.
44525         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44526         since gl_FUNC_STRNDUP does that now.
44527         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44528         Check for decl here...
44529         (gl_PREREQ_STRNLEN): ... not here.
44530         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44531         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44532         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44534         necessary.
44535         * modules/string: New file.
44536         * modules/memmem (Files): Remove special-purpose include file.
44537         (Depends-on): Add string.
44538         (Include): Include <string.h>, not the removed file.
44539         * modules/mempcpy: Likewise.
44540         * modules/memrchr: Likewise.
44541         * modules/stpcpy: Likewise.
44542         * modules/stpncpy: Likewise.
44543         * modules/strcase: Likewise.
44544         * modules/strchrnul: Likewise.
44545         * modules/strdup: Likewise.
44546         * modules/strndup: Likewise.
44547         * modules/strnlen: Likewise.
44548         * modules/strpbrk: Likewise.
44549         * modules/strsep: Likewise.
44550         * modules/strstr: Likewise.
44551         * modules/strtok_r: Likewise.
44552         * tests/test-dirname.c: Don't include "strdup.h", since
44553         <string.h> now suffices.
44554         * tests/test-memmem.c: Don't include "memmem.h", since
44555         <string.h> now suffices.
44556
44557 2007-01-25  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44560         *resultp is 0.
44561
44562         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44563         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44564         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44565         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44566
44567         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44568         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44569         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44570         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44571         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44572         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44573
44574 2007-01-24  Bruno Haible  <bruno@clisp.org>
44575
44576         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44577         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44578         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44579         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44580         gl_FUNC_FTS_CORE.
44581         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44582         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44583         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44584         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44585         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44586         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44587         gl_FUNC_FCHOWNAT.
44588         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44589         gl_FUNC_STRFTIME.
44590         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44591         Reported by Ralf Wildenhues.
44592
44593 2007-01-24  Bruno Haible  <bruno@clisp.org>
44594
44595         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44596         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44597         gl_GETADDRINFO.
44598         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44599         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44600         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44601
44602 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44603
44604         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44605         Don't use 'exit'; just return from 'main'.
44606         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44607
44608         * lib/fnmatch_.h: Readjust white space and comments to match
44609         glibc, to avoid spurious diffs.
44610
44611 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44612
44613         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44614         2004-12-01 change by Jakub Jelinek, since this code won't compile
44615         if !LIBC.  Problem reported by Bob Proulx.
44616
44617 2007-01-23  Bruno Haible  <bruno@clisp.org>
44618
44619         * lib/striconveh.c: Include c-strcaseeq.h.
44620         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44621         * modules/striconveh (Depends-on): Add c-strcaseeq.
44622
44623 2007-01-23  Bruno Haible  <bruno@clisp.org>
44624
44625         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44626
44627         * modules/c-strcaseeq: New file.
44628         * lib/c-strcaseeq.h: New file.
44629
44630         * modules/streq: New file.
44631         * lib/streq.h: New file.
44632
44633 2007-01-23  Bruno Haible  <bruno@clisp.org>
44634
44635         * modules/striconveha-tests: New file.
44636         * tests/test-striconveha.c: New file.
44637
44638         * lib/striconveha.h: Include <stdbool.h>.
44639         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44640         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44641         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44642         (mem_iconveha): New function.
44643         (str_iconveha_notranslit): Renamed from str_iconveha.
44644         (str_iconveha): New function.
44645         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44646         c-strcase.
44647
44648 2007-01-23  Bruno Haible  <bruno@clisp.org>
44649
44650         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44651         encodings without forgiving before trying any encoding with handler.
44652         (str_iconveha): Try all encodings without forgiving before trying any
44653         encoding with handler.
44654
44655 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44656
44657         Import the following changes from libc.
44658
44659         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44660
44661         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44662
44663         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44664
44665         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44666         normal_bracket label.
44667
44668         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44669
44670         [BZ #361]
44671         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44672         to normal_bracket after fetching the next character.
44673
44674 2007-01-22  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44677         argument.
44678         * lib/striconveh.c (iconv_carefully_1): New function.
44679         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44680         argument.
44681         (str_cd_iconveh): Update.
44682         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44683         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44684         * tests/test-striconveh.c (MAGIC): New macro.
44685         (new_offsets): New function.
44686         (main): Test call with and without offsets.
44687
44688 2007-01-22  Bruno Haible  <bruno@clisp.org>
44689
44690         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44691         * modules/sys_select (Makefile.am): Likewise.
44692         * modules/sys_socket (Makefile.am): Likewise.
44693         * modules/sys_time (Makefile.am): Likewise.
44694
44695 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44696
44697         * modules/gettimeofday (License): Change from GPL to LGPL, since
44698         gettimeofday is a library function.
44699
44700 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44701
44702         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44703
44704 2007-01-21  Bruno Haible  <bruno@clisp.org>
44705
44706         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44707
44708 2007-01-21  Bruno Haible  <bruno@clisp.org>
44709
44710         * modules/striconveha: New file.
44711         * lib/striconveha.h: New file.
44712         * lib/striconveha.c: New file.
44713         * MODULES.html.sh (Internationalization functions): Add striconveha.
44714         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44715         string.
44716         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44717
44718 2007-01-21  Bruno Haible  <bruno@clisp.org>
44719
44720         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44721         * lib/striconveh.c (str_iconveh): Likewise.
44722
44723 2007-01-21  Bruno Haible  <bruno@clisp.org>
44724
44725         * lib/striconveh.h (mem_iconveh): New declaration.
44726         * lib/striconveh.c (mem_iconveh): New function.
44727         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44728
44729 2007-01-21  Bruno Haible  <bruno@clisp.org>
44730
44731         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44732
44733         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44734         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44735         original result buffer.
44736         (str_cd_iconveh): Update.
44737         * tests/test-striconveh.c (main): Update.
44738
44739         * lib/striconv.h (mem_cd_iconv): Change specification.
44740         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44741         result buffer.
44742         (str_cd_iconv): Update.
44743         * tests/test-striconv.c (main): Update.
44744
44745 2007-01-21  Bruno Haible  <bruno@clisp.org>
44746
44747         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44748
44749 2007-01-20  Jim Meyering  <jim@meyering.net>
44750
44751         * lib/userspec.c (parse_with_separator): If a user or group string
44752         starts with "+", skip the corresponding name-to-ID look-up, since
44753         such a look-up must fail: user and group names may not include "+".
44754
44755 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44756
44757         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44758         since we now assume the sys_time module.
44759         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44760         check for sys/time.h; no longer needed.
44761         * modules/poll (Depends-on): Depend on sys_time.
44762
44763 2007-01-18  Bruno Haible  <bruno@clisp.org>
44764
44765         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44766         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44767
44768         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44769         gettimeofday.
44770
44771         * tests/test-gettimeofday.c: Include <time.h>.
44772         (dummy): Remove variable.
44773
44774         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44775         gl_HEADER_SYS_TIME_H.
44776         (gl_HEADER_SYS_TIME_H): New macro.
44777
44778         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44779         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44780         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44781         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44782         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44783         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44784         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44785         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44786         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44787         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44788         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44789
44790         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44791         last change; it caused a compilation error when cross-compiling to
44792         Cygwin.
44793
44794 2007-01-18  Jim Meyering  <jim@meyering.net>
44795
44796         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44797         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44798         than the race-prone "test -d sys || mkdir sys".
44799         (configure.ac): Use AC_PROG_MKDIR_P.
44800         * modules/sys_select: Likewise.
44801         * modules/sys_socket: Likewise.
44802         * modules/sys_time: Likewise.
44803
44804 2007-01-18  Eric Blake  <ebb9@byu.net>
44805
44806         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44807         replace gettimeofday.
44808         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44809         name, to avoid infinite recursion.
44810
44811 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44812
44813         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44814         module sys_time.
44815         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44816         assume timespec.h defines struct timeval.
44817         * lib/settime.c: Likewise.
44818         * lib/utimens.c: Likewise.
44819         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44820         since we now assume the gettimeofday module.
44821         * lib/tempname.c (__gen_tempname): Likewise.
44822         * lib/gettimeofday.h: Remove.
44823         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44824         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44825         Include <time.h>, for 'time()'.
44826         (localtime_buffer_addr): Also use this workaround if
44827         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44828         to simplify the uses.  All uses changed.
44829         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
44830         that #undef is inside {}, and 'const' follows type name consistently.
44831         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
44832         (gettimeofday): Do not use the maximum possible value for
44833         tv->tv_usec, since that might break usages other than ls.c.
44834         Instead, we'll leave ls.c alone.  This undoes today's patch
44835         by Bruno.  Add a compile-time warning for 1s-clock resolution;
44836         we've never observed the problem but might as well keep the
44837         canary.
44838         * lib/nanosleep.c: Include timespec.h first, for interface check.
44839         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
44840         now assume the sys_time module.
44841         * lib/tempname.c: Likewise.
44842         * lib/timespec.h: Likewise.
44843         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
44844         needed.
44845         * lib/strftime.c: Likewise.
44846         * lib/timespec.h: Likewise.
44847         * lib/posixtm.c: Include posixtm.h first, for interface check.
44848         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
44849         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
44850         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
44851         * lib/sys_time_.h: New file.
44852         * lib/timespec.h (struct timespec): Use long int, not long.
44853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44854         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
44855         Remove obsolescent call to AC_HEADER_TIME.
44856         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44858         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44859         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
44860         Likewise.
44861         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
44862         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
44863         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
44864         into the sys_time module.  Check for gettimeofday just once.
44865         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
44866         for gettimeofday signature to just check the signature.  Merely
44867         compile it, since linking doesn't test signature.  Improve test for
44868         whether gettimeofday.o is actually needed.
44869         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
44870         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
44871         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
44872         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44873         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
44874         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
44875         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
44876         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
44877         than worrying about sys/time.h.
44878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44879         Don't bother worrying about TIME_WITH_SYS_TIME.
44880         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44881         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
44882         * m4/sys_time_h.m4: New file.
44883         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
44884         Don't include sys/time.h.  Return from main rather than exiting.
44885         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
44886         all uses changed.
44887         * modules/gethrxtime (Depends-on): Add sys_time.
44888         * modules/gettime (Depends-on): Likewise.
44889         * modules/gettimeofday (Depends-on): Likewise.
44890         * modules/nanosleep (Depends-on): Likewise.
44891         * modules/settime (Depends-on): Likewise.
44892         * modules/tempname (Depends-on): Likewise.
44893         * modules/utimens (Depends-on): Likewise.
44894         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
44895         (Include:) Change back to <sys/time.h>.
44896         (Maintainer:) Add self.
44897         * modules/sys_time: New file.
44898         * modules/tempname (Depends-on): Add gettimeofday.
44899         * tests/test-gettimeofday.c: Include <sys/time.h>
44900         rather than gettimeofday.h.
44901
44902 2007-01-17  Bruno Haible  <bruno@clisp.org>
44903
44904         * gnulib-tool (func_get_license): Revert last patch. Instead, let
44905         the license default to GPL.
44906         (func_create_testdir): Don't complain if a module is LGPL and its
44907         tests module depends on GPLed modules.
44908
44909 2007-01-17  Bruno Haible  <bruno@clisp.org>
44910
44911         * lib/gettimeofday.c (gettimeofday): Add code for the case
44912         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
44913         maximum possible value for tv->tv_usec, rather than the minimum one.
44914
44915 2005-10-08  Martin Lambers  <marlam@marlam.de>
44916 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44917 2007-01-16  Bruno Haible  <bruno@clisp.org>
44918
44919         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
44920         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
44921         gl_FUNC_GETTIMEOFDAY.
44922         (Include): Add gettimeofday.h.
44923         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
44924         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
44925         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
44926         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
44927         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
44928         * lib/gettimeofday.h: New file.
44929         * lib/gettimeofday.c: Include <sys/timeb.h>.
44930         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
44931         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44932         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
44933         fall back on time().
44934
44935         * tests/test-gettimeofday.c: New file.
44936         * modules/gettimeofday-tests: New file.
44937
44938 2007-01-16  Eric Blake  <ebb9@byu.net>
44939
44940         * modules/fnmatch (Depends-on): Depend on wchar.
44941         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
44942         * m4/fnmatch.m4: Likewise.
44943         * modules/mbchar (Makefile.am): Assume <wchar.h>.
44944         * m4/mbchar.m4: Likewise.
44945         * modules/mbswidth (Depends-on): Depend on wchar.
44946         * lib/mbswidth.c: Assume <wchar.h>.
44947         * m4/mbswidth.m4: Likewise.
44948         * modules/quotearg (Depends-on): Depend on wchar.
44949         * lib/quotearg.c: Assume <wchar.h>.
44950         * m4/quotearg.m4: Likewise.
44951         * modules/regex (Depends-on): Depend on wchar.
44952         * lib/regex_internal.h: Assume <wchar.h>.
44953         * m4/regex.m4: Likewise.
44954         * modules/stdint (Depends-on): Depend on wchar.
44955         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
44956         * m4/stdint.m4: Likewise.
44957         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
44958         * modules/strftime (Depends-on): Depend on wchar.
44959         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
44960         * modules/strtol (Depends-on): Depend on wchar.
44961         * lib/strtol.c: Assume <wchar.h>.
44962         * modules/wcwidth (Depends-on): Depend on wchar.
44963         * lib/wcwidth.h: Assume <wchar.h>.
44964         * m4/wcwidth.m4: Likewise.
44965
44966 2007-01-16  Bruno Haible  <bruno@clisp.org>
44967
44968         * modules/csharpexec-script: New, created from...
44969         * modules/csharpexec: ... this.
44970
44971 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44972
44973         * modules/javaexec-script: New, created from...
44974         * modules/javaexec: ... this.
44975
44976 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44977
44978         * modules/poll (Dependencies): Add sys_select.
44979
44980 2007-01-15  Jim Meyering  <jim@meyering.net>
44981
44982         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
44983         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
44984         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
44985         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
44986
44987 2007-01-15  Bruno Haible  <bruno@clisp.org>
44988
44989         * modules/striconveh: New file.
44990         * lib/striconveh.h: New file.
44991         * lib/striconveh.c: New file.
44992         * MODULES.html.sh (Internationalization functions): Add striconveh.
44993
44994         * modules/striconveh-tests: New file.
44995         * tests/test-striconveh.c: New file.
44996
44997 2007-01-15  Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
45000         not from GNU libiconv or GNU libc.
45001
45002 2007-01-15  Bruno Haible  <bruno@clisp.org>
45003
45004         * doc/gnulib-intro.texi (Copyright): Explain the different license
45005         terms for module descriptions, autoconf macros, tests, documentation.
45006
45007 2007-01-14  Bruno Haible  <bruno@clisp.org>
45008
45009         * modules/striconv-tests: New file.
45010         * tests/test-striconv.c: New file.
45011
45012 2007-01-14  Bruno Haible  <bruno@clisp.org>
45013
45014         * modules/iconv-tests: New file.
45015         * tests/test-iconv.c: New file.
45016
45017 2007-01-14  Bruno Haible  <bruno@clisp.org>
45018
45019         * gnulib-tool (func_get_license): For test modules, use the license of
45020         the main module.
45021
45022 2007-01-14  Bruno Haible  <bruno@clisp.org>
45023
45024         * modules/iconv (Include): Clarify that <iconv.h> can only be included
45025         if iconv is found to exist.
45026
45027 2007-01-14  Bruno Haible  <bruno@clisp.org>
45028
45029         * modules/c-ctype-tests: New file.
45030         * tests/test-c-ctype.c: New file.
45031
45032 2007-01-14  Bruno Haible  <bruno@clisp.org>
45033
45034         * modules/binary-io-tests: New file.
45035         * tests/test-binary-io.sh: New file.
45036         * tests/test-binary-io.c: New file.
45037
45038 2007-01-14  Bruno Haible  <bruno@clisp.org>
45039
45040         * modules/array-oset-tests: New file.
45041         * tests/test-array_oset.c: New file.
45042
45043 2007-01-14  Bruno Haible  <bruno@clisp.org>
45044
45045         * modules/array-list-tests: New file.
45046         * tests/test-array_list.c: New file.
45047
45048 2007-01-14  Bruno Haible  <bruno@clisp.org>
45049
45050         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
45051         and make.
45052         Reported by Simon Josefsson in
45053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
45054
45055 2007-01-14  Bruno Haible  <bruno@clisp.org>
45056
45057         * modules/allocsa-tests: New file.
45058         * tests/test-allocsa.c: New file.
45059
45060 2007-01-14  Bruno Haible  <bruno@clisp.org>
45061
45062         * modules/fchdir (Depends-on): Add absolute-header.
45063         * modules/unistd (Depends-on): Likewise.
45064
45065 2006-12-30  Bruno Haible  <bruno@clisp.org>
45066
45067         * modules/fchdir: New file.
45068         * modules/unistd (Files): Add lib/unistd_.h.
45069         (Makefile.am): Generate unistd.h from unistd_.h.
45070         * lib/fchdir.c: New file.
45071         * lib/dirent_.h: New file.
45072         * lib/unistd_.h: New file.
45073         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
45074         * m4/fchdir.m4: New file.
45075         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
45076         (gl_HEADER_UNISTD): Invoke it.
45077         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
45078         function.
45079         * lib/backupfile.c (opendir, closedir): Undefine.
45080         * lib/chown.c (open, close): Undefine.
45081         * lib/clean-temp.c (open, close): Undefine.
45082         * lib/copy-file.c (open, close): Undefine.
45083         * lib/execute.c (open, close): Undefine.
45084         * lib/fsusage.c (open, close): Undefine.
45085         * lib/gc-gnulib.c (open, close): Undefine.
45086         * lib/getcwd.c (opendir, closedir): Undefine.
45087         * lib/glob.c (opendir, closedir): Undefine.
45088         * lib/javacomp.c (open, close): Undefine.
45089         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
45090         * lib/openat-proc.c (open, close): Undefine.
45091         * lib/pagealign_alloc.c (open, close): Undefine.
45092         * lib/pipe.c (open, close): Undefine.
45093         * lib/progreloc.c (open, close): Undefine.
45094         * lib/savedir.c (opendir, closedir): Undefine.
45095         * lib/utime.c (open, close): Undefine.
45096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
45097
45098 2007-01-10  Bruno Haible  <bruno@clisp.org>
45099
45100         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
45101
45102 2007-01-12  Eric Blake  <ebb9@byu.net>
45103
45104         Provide a robust <wchar.h>.  Further simplifications are now
45105         possible in other modules, but not included here.
45106         * modules/wchar: New module.
45107         * m4/wchar.m4: New file.
45108         * lib/wchar_.h: Likewise.
45109         * modules/mbchar (Depends-on): Depend on wchar, as the first use
45110         of the new module.
45111         * MODULES.html.sh (Extended multibyte and wide character utilities):
45112         New section.
45113
45114 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
45115
45116         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
45117         to a reasonable default for memory allocation.
45118         (xreadlink): Don't allocate a huge buffer, to work around a buggy
45119         file system that reports garbage st_size values for symlinks.
45120         Problem reported by Liyang Hu.
45121
45122 2007-01-11  Simon Josefsson  <simon@josefsson.org>
45123
45124         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
45125         Emacs .#* auto-save files).
45126
45127 2007-01-11  Bruno Haible  <bruno@clisp.org>
45128
45129         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
45130         directory.
45131
45132 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45133
45134         Use @...@ consistently in lib/wctype_.h.
45135         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
45136         on it being set to 1 or 0.
45137         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
45138         go back to AC_SUBSTing it.
45139         * modules/wctype (Makefile.am): Undo previous change.
45140
45141 2007-01-10  Eric Blake  <ebb9@byu.net>
45142
45143         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
45144         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
45145         * modules/wctype (Makefile.am): Likewise.
45146         Reported by Chris McGuire.
45147
45148 2007-01-10  Jim Meyering  <jim@meyering.net>
45149
45150         fts.c: a small readability/maintainability improvement
45151         * lib/fts.c (fts_read): Make this code slightly more readable and
45152         maintainable by hoisting the "sp->fts_cur = p" assignments to
45153         immediately follow the statements that set P.  Derived from
45154         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
45155
45156 2007-01-10  Eric Blake  <ebb9@byu.net>
45157
45158         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45159         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45161         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45162         Reported by Chris McGuire.
45163
45164 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45165
45166         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45167         in sed script.
45168
45169 2007-01-09  Bruno Haible  <bruno@clisp.org>
45170
45171         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45172         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45173         variables.
45174         (func_module): Use them.
45175
45176 2007-01-09  Bruno Haible  <bruno@clisp.org>
45177
45178         * modules/unistr/base: New file.
45179         * lib/unistr.h: New file.
45180
45181         * modules/unistr/u8-to-u16: New file.
45182         * lib/unistr/u8-to-u16.c: New file.
45183
45184         * modules/unistr/u8-to-u32: New file.
45185         * lib/unistr/u8-to-u32.c: New file.
45186
45187         * modules/unistr/u16-to-u8: New file.
45188         * lib/unistr/u16-to-u8.c: New file.
45189
45190         * modules/unistr/u16-to-u32: New file.
45191         * lib/unistr/u16-to-u32.c: New file.
45192
45193         * modules/unistr/u32-to-u8: New file.
45194         * lib/unistr/u32-to-u8.c: New file.
45195
45196         * modules/unistr/u32-to-u16: New file.
45197         * lib/unistr/u32-to-u16.c: New file.
45198
45199         * modules/unistr/u8-check: New file.
45200         * modules/unistr/u16-check: New file.
45201         * modules/unistr/u32-check: New file.
45202         * lib/unistr/u8-check.c: New file.
45203         * lib/unistr/u16-check.c: New file.
45204         * lib/unistr/u32-check.c: New file.
45205
45206         * modules/unistr/u8-chr: New file.
45207         * modules/unistr/u16-chr: New file.
45208         * modules/unistr/u32-chr: New file.
45209         * lib/unistr/u8-chr.c: New file.
45210         * lib/unistr/u16-chr.c: New file.
45211         * lib/unistr/u32-chr.c: New file.
45212
45213         * modules/unistr/u8-cmp: New file.
45214         * modules/unistr/u16-cmp: New file.
45215         * modules/unistr/u32-cmp: New file.
45216         * lib/unistr/u8-cmp.c: New file.
45217         * lib/unistr/u16-cmp.c: New file.
45218         * lib/unistr/u32-cmp.c: New file.
45219
45220         * modules/unistr/u8-cpy: New file.
45221         * modules/unistr/u16-cpy: New file.
45222         * modules/unistr/u32-cpy: New file.
45223         * lib/unistr/u8-cpy.c: New file.
45224         * lib/unistr/u16-cpy.c: New file.
45225         * lib/unistr/u32-cpy.c: New file.
45226         * lib/unistr/u-cpy.h: New file.
45227
45228         * modules/unistr/u8-cpy-alloc: New file.
45229         * modules/unistr/u16-cpy-alloc: New file.
45230         * modules/unistr/u32-cpy-alloc: New file.
45231         * lib/unistr/u8-cpy-alloc.c: New file.
45232         * lib/unistr/u16-cpy-alloc.c: New file.
45233         * lib/unistr/u32-cpy-alloc.c: New file.
45234         * lib/unistr/u-cpy-alloc.h: New file.
45235
45236         * modules/unistr/u8-endswith: New file.
45237         * modules/unistr/u16-endswith: New file.
45238         * modules/unistr/u32-endswith: New file.
45239         * lib/unistr/u8-endswith.c: New file.
45240         * lib/unistr/u16-endswith.c: New file.
45241         * lib/unistr/u32-endswith.c: New file.
45242         * lib/unistr/u-endswith.h: New file.
45243
45244         * modules/unistr/u8-mblen: New file.
45245         * modules/unistr/u16-mblen: New file.
45246         * modules/unistr/u32-mblen: New file.
45247         * lib/unistr/u8-mblen.c: New file.
45248         * lib/unistr/u16-mblen.c: New file.
45249         * lib/unistr/u32-mblen.c: New file.
45250
45251         * modules/unistr/u8-mbtouc: New file.
45252         * modules/unistr/u16-mbtouc: New file.
45253         * modules/unistr/u32-mbtouc: New file.
45254         * lib/unistr/u8-mbtouc.c: New file.
45255         * lib/unistr/u16-mbtouc.c: New file.
45256         * lib/unistr/u32-mbtouc.c: New file.
45257
45258         * modules/unistr/u8-mbtouc-safe: New file.
45259         * modules/unistr/u16-mbtouc-safe: New file.
45260         * modules/unistr/u32-mbtouc-safe: New file.
45261         * lib/unistr/u8-mbtouc-safe.c: New file.
45262         * lib/unistr/u16-mbtouc-safe.c: New file.
45263         * lib/unistr/u32-mbtouc-safe.c: New file.
45264
45265         * modules/unistr/u8-move: New file.
45266         * modules/unistr/u16-move: New file.
45267         * modules/unistr/u32-move: New file.
45268         * lib/unistr/u8-move.c: New file.
45269         * lib/unistr/u16-move.c: New file.
45270         * lib/unistr/u32-move.c: New file.
45271         * lib/unistr/u-move.h: New file.
45272
45273         * modules/unistr/u8-next: New file.
45274         * modules/unistr/u16-next: New file.
45275         * modules/unistr/u32-next: New file.
45276         * lib/unistr/u8-next.c: New file.
45277         * lib/unistr/u16-next.c: New file.
45278         * lib/unistr/u32-next.c: New file.
45279
45280         * modules/unistr/u8-prev: New file.
45281         * modules/unistr/u16-prev: New file.
45282         * modules/unistr/u32-prev: New file.
45283         * lib/unistr/u8-prev.c: New file.
45284         * lib/unistr/u16-prev.c: New file.
45285         * lib/unistr/u32-prev.c: New file.
45286
45287         * modules/unistr/u8-set: New file.
45288         * modules/unistr/u16-set: New file.
45289         * modules/unistr/u32-set: New file.
45290         * lib/unistr/u8-set.c: New file.
45291         * lib/unistr/u16-set.c: New file.
45292         * lib/unistr/u32-set.c: New file.
45293         * lib/unistr/u-set.h: New file.
45294
45295         * modules/unistr/u8-startswith: New file.
45296         * modules/unistr/u16-startswith: New file.
45297         * modules/unistr/u32-startswith: New file.
45298         * lib/unistr/u8-startswith.c: New file.
45299         * lib/unistr/u16-startswith.c: New file.
45300         * lib/unistr/u32-startswith.c: New file.
45301         * lib/unistr/u-startswith.h: New file.
45302
45303         * modules/unistr/u8-stpcpy: New file.
45304         * modules/unistr/u16-stpcpy: New file.
45305         * modules/unistr/u32-stpcpy: New file.
45306         * lib/unistr/u8-stpcpy.c: New file.
45307         * lib/unistr/u16-stpcpy.c: New file.
45308         * lib/unistr/u32-stpcpy.c: New file.
45309         * lib/unistr/u-stpcpy.h: New file.
45310
45311         * modules/unistr/u8-stpncpy: New file.
45312         * modules/unistr/u16-stpncpy: New file.
45313         * modules/unistr/u32-stpncpy: New file.
45314         * lib/unistr/u8-stpncpy.c: New file.
45315         * lib/unistr/u16-stpncpy.c: New file.
45316         * lib/unistr/u32-stpncpy.c: New file.
45317         * lib/unistr/u-stpncpy.h: New file.
45318
45319         * modules/unistr/u8-strcat: New file.
45320         * modules/unistr/u16-strcat: New file.
45321         * modules/unistr/u32-strcat: New file.
45322         * lib/unistr/u8-strcat.c: New file.
45323         * lib/unistr/u16-strcat.c: New file.
45324         * lib/unistr/u32-strcat.c: New file.
45325         * lib/unistr/u-strcat.h: New file.
45326
45327         * modules/unistr/u8-strchr: New file.
45328         * modules/unistr/u16-strchr: New file.
45329         * modules/unistr/u32-strchr: New file.
45330         * lib/unistr/u8-strchr.c: New file.
45331         * lib/unistr/u16-strchr.c: New file.
45332         * lib/unistr/u32-strchr.c: New file.
45333
45334         * modules/unistr/u8-strcmp: New file.
45335         * modules/unistr/u16-strcmp: New file.
45336         * modules/unistr/u32-strcmp: New file.
45337         * lib/unistr/u8-strcmp.c: New file.
45338         * lib/unistr/u16-strcmp.c: New file.
45339         * lib/unistr/u32-strcmp.c: New file.
45340
45341         * modules/unistr/u8-strcpy: New file.
45342         * modules/unistr/u16-strcpy: New file.
45343         * modules/unistr/u32-strcpy: New file.
45344         * lib/unistr/u8-strcpy.c: New file.
45345         * lib/unistr/u16-strcpy.c: New file.
45346         * lib/unistr/u32-strcpy.c: New file.
45347         * lib/unistr/u-strcpy.h: New file.
45348
45349         * modules/unistr/u8-strcspn: New file.
45350         * modules/unistr/u16-strcspn: New file.
45351         * modules/unistr/u32-strcspn: New file.
45352         * lib/unistr/u8-strcspn.c: New file.
45353         * lib/unistr/u16-strcspn.c: New file.
45354         * lib/unistr/u32-strcspn.c: New file.
45355         * lib/unistr/u-strcspn.h: New file.
45356
45357         * modules/unistr/u8-strdup: New file.
45358         * modules/unistr/u16-strdup: New file.
45359         * modules/unistr/u32-strdup: New file.
45360         * lib/unistr/u8-strdup.c: New file.
45361         * lib/unistr/u16-strdup.c: New file.
45362         * lib/unistr/u32-strdup.c: New file.
45363         * lib/unistr/u-strdup.h: New file.
45364
45365         * modules/unistr/u8-strlen: New file.
45366         * modules/unistr/u16-strlen: New file.
45367         * modules/unistr/u32-strlen: New file.
45368         * lib/unistr/u8-strlen.c: New file.
45369         * lib/unistr/u16-strlen.c: New file.
45370         * lib/unistr/u32-strlen.c: New file.
45371         * lib/unistr/u-strlen.h: New file.
45372
45373         * modules/unistr/u8-strmblen: New file.
45374         * modules/unistr/u16-strmblen: New file.
45375         * modules/unistr/u32-strmblen: New file.
45376         * lib/unistr/u8-strmblen.c: New file.
45377         * lib/unistr/u16-strmblen.c: New file.
45378         * lib/unistr/u32-strmblen.c: New file.
45379
45380         * modules/unistr/u8-strmbtouc: New file.
45381         * modules/unistr/u16-strmbtouc: New file.
45382         * modules/unistr/u32-strmbtouc: New file.
45383         * lib/unistr/u8-strmbtouc.c: New file.
45384         * lib/unistr/u16-strmbtouc.c: New file.
45385         * lib/unistr/u32-strmbtouc.c: New file.
45386
45387         * modules/unistr/u8-strncat: New file.
45388         * modules/unistr/u16-strncat: New file.
45389         * modules/unistr/u32-strncat: New file.
45390         * lib/unistr/u8-strncat.c: New file.
45391         * lib/unistr/u16-strncat.c: New file.
45392         * lib/unistr/u32-strncat.c: New file.
45393         * lib/unistr/u-strncat.h: New file.
45394
45395         * modules/unistr/u8-strncmp: New file.
45396         * modules/unistr/u16-strncmp: New file.
45397         * modules/unistr/u32-strncmp: New file.
45398         * lib/unistr/u8-strncmp.c: New file.
45399         * lib/unistr/u16-strncmp.c: New file.
45400         * lib/unistr/u32-strncmp.c: New file.
45401
45402         * modules/unistr/u8-strncpy: New file.
45403         * modules/unistr/u16-strncpy: New file.
45404         * modules/unistr/u32-strncpy: New file.
45405         * lib/unistr/u8-strncpy.c: New file.
45406         * lib/unistr/u16-strncpy.c: New file.
45407         * lib/unistr/u32-strncpy.c: New file.
45408         * lib/unistr/u-strncpy.h: New file.
45409
45410         * modules/unistr/u8-strnlen: New file.
45411         * modules/unistr/u16-strnlen: New file.
45412         * modules/unistr/u32-strnlen: New file.
45413         * lib/unistr/u8-strnlen.c: New file.
45414         * lib/unistr/u16-strnlen.c: New file.
45415         * lib/unistr/u32-strnlen.c: New file.
45416         * lib/unistr/u-strnlen.h: New file.
45417
45418         * modules/unistr/u8-strpbrk: New file.
45419         * modules/unistr/u16-strpbrk: New file.
45420         * modules/unistr/u32-strpbrk: New file.
45421         * lib/unistr/u8-strpbrk.c: New file.
45422         * lib/unistr/u16-strpbrk.c: New file.
45423         * lib/unistr/u32-strpbrk.c: New file.
45424         * lib/unistr/u-strpbrk.h: New file.
45425
45426         * modules/unistr/u8-strrchr: New file.
45427         * modules/unistr/u16-strrchr: New file.
45428         * modules/unistr/u32-strrchr: New file.
45429         * lib/unistr/u8-strrchr.c: New file.
45430         * lib/unistr/u16-strrchr.c: New file.
45431         * lib/unistr/u32-strrchr.c: New file.
45432
45433         * modules/unistr/u8-strspn: New file.
45434         * modules/unistr/u16-strspn: New file.
45435         * modules/unistr/u32-strspn: New file.
45436         * lib/unistr/u8-strspn.c: New file.
45437         * lib/unistr/u16-strspn.c: New file.
45438         * lib/unistr/u32-strspn.c: New file.
45439         * lib/unistr/u-strspn.h: New file.
45440
45441         * modules/unistr/u8-strstr: New file.
45442         * modules/unistr/u16-strstr: New file.
45443         * modules/unistr/u32-strstr: New file.
45444         * lib/unistr/u8-strstr.c: New file.
45445         * lib/unistr/u16-strstr.c: New file.
45446         * lib/unistr/u32-strstr.c: New file.
45447         * lib/unistr/u-strstr.h: New file.
45448
45449         * modules/unistr/u8-strtok: New file.
45450         * modules/unistr/u16-strtok: New file.
45451         * modules/unistr/u32-strtok: New file.
45452         * lib/unistr/u8-strtok.c: New file.
45453         * lib/unistr/u16-strtok.c: New file.
45454         * lib/unistr/u32-strtok.c: New file.
45455         * lib/unistr/u-strtok.h: New file.
45456
45457         * modules/unistr/u8-uctomb: New file.
45458         * modules/unistr/u16-uctomb: New file.
45459         * modules/unistr/u32-uctomb: New file.
45460         * lib/unistr/u8-uctomb.c: New file.
45461         * lib/unistr/u16-uctomb.c: New file.
45462         * lib/unistr/u32-uctomb.c: New file.
45463
45464         * MODULES.html.sh (Unicode string functions): Add the new modules.
45465
45466 2007-01-08  Bruno Haible  <bruno@clisp.org>
45467
45468         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45469         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45470         subdirectories.
45471
45472 2007-01-08  Karl Berry  <karl@gnu.org>
45473
45474         * doc/error.texi: mention that main() fns must set program_name
45475         when progname is used.
45476
45477 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45478
45479         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45480         WCTYPE_H is empty, for the benefit of builds from non-distclean
45481         directories.  Problem reported by Eric Blake in
45482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45483
45484 2007-01-08  Bruno Haible  <bruno@clisp.org>
45485
45486         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45487         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45488         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45489         PROVIDE_CANONICALIZE_FILENAME_MODE.
45490         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45491
45492 2007-01-08  Bruno Haible  <bruno@clisp.org>
45493
45494         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45495         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45496         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45497         * lib/fts.c: Likewise.
45498         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45499
45500 2006-12-25  Bruno Haible  <bruno@clisp.org>
45501
45502         * modules/utf8-ucs4-safe: New file.
45503         * lib/utf8-ucs4-safe.h: New file.
45504         * lib/unistr/utf8-ucs4-safe.c: New file.
45505
45506         * modules/utf16-ucs4-safe: New file.
45507         * lib/utf16-ucs4-safe.h: New file.
45508         * lib/unistr/utf16-ucs4-safe.c: New file.
45509
45510         * MODULES.html.sh (Unicode string functions): Add the new modules.
45511
45512 2007-01-08  Bruno Haible  <bruno@clisp.org>
45513
45514         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45515         (Depends-on): Add unitypes.
45516         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45517         (u8_mbtouc_aux): Move out to separate file.
45518         (u8_mbtouc): Use ucs4_t, uint8_t types.
45519         * lib/unistr/utf8-ucs4.c: New file.
45520
45521         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45522         (Depends-on): Add unitypes.
45523         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45524         (u16_mbtouc_aux): Move out to separate file.
45525         (u16_mbtouc): Use ucs4_t, uint16_t types.
45526         * lib/unistr/utf16-ucs4.c: New file.
45527
45528         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45529         (Depends-on): Add unitypes.
45530         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45531         (u8_uctomb_aux): Move out to separate file.
45532         (u8_uctomb): Use ucs4_t, uint8_t types.
45533         * lib/unistr/ucs4-utf8.c: New file.
45534
45535         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45536         (Depends-on): Add unitypes.
45537         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45538         (u16_uctomb_aux): Move out to separate file.
45539         (u16_uctomb): Use ucs4_t, uint16_t types.
45540         * lib/unistr/ucs4-utf16.c: New file.
45541
45542 2006-12-25  Bruno Haible  <bruno@clisp.org>
45543
45544         * modules/unitypes: New file.
45545         * lib/unitypes.h: New file.
45546         * MODULES.html.sh (func_all_modules): New section "Unicode string
45547         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45548         this section. Add unitypes.
45549
45550 2007-01-08  Bruno Haible  <bruno@clisp.org>
45551
45552         Avoid variable names that conflict with those from libtool.
45553         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45554         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45555         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45556         library_names_spec to acl_library_names_spec, hardcode_* to
45557         acl_hardcode_*.
45558         Reported by Ralf Wildenhues.
45559
45560 2007-01-08  Bruno Haible  <bruno@clisp.org>
45561
45562         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45563         definition.
45564         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45565         definition.
45566         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45567         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45568         definition.
45569         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45570         definition.
45571         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45572         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45573         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45574         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45575         definition.
45576         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45577         definition.
45578         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45579         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45580         GC_USE_<algorithm>.
45581         * lib/gc-libgcrypt.c: Likewise.
45582         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45583         * modules/gc-arctwo (configure.ac): Likewise.
45584         * modules/gc-des (configure.ac): Likewise.
45585         * modules/gc-hmac-md5 (configure.ac): Likewise.
45586         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45587         * modules/gc-md2 (configure.ac): Likewise.
45588         * modules/gc-md4 (configure.ac): Likewise.
45589         * modules/gc-md5 (configure.ac): Likewise.
45590         * modules/gc-random (configure.ac): Likewise.
45591         * modules/gc-rijndael (configure.ac): Likewise.
45592         * modules/gc-sha1 (configure.ac): Likewise.
45593
45594 2007-01-08  Bruno Haible  <bruno@clisp.org>
45595
45596         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45597         macro definition.
45598         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45599         definition.
45600         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45601         definition.
45602         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45603         * modules/fcntl-safer (configure.ac): Likewise.
45604         * modules/fopen-safer (configure.ac): Likewise.
45605         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45606         GNULIB_FWRITEERROR macro definition.
45607
45608 2007-01-08  Bruno Haible  <bruno@clisp.org>
45609
45610         * m4/gnulib-common.m4: New file.
45611         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45612         (func_get_filelist): Add m4/gnulib-common.m4.
45613
45614 2007-01-08  Bruno Haible  <bruno@clisp.org>
45615
45616         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45617         command.
45618
45619 2007-01-08  Jim Meyering  <jim@meyering.net>
45620
45621         Use a more robust test for a "can't happen" condition.
45622         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45623         narrowed the st_size value.  Presuming the "can't happen" condition
45624         is true, that narrowing could conceivably convert an invalid st_size
45625         value into a valid one.  Instead, use a change based on Matthew
45626         Woehlke's original patch.
45627
45628         Slight readability improvement: use an assert-like macro
45629         in place of literal "abort ()" uses.
45630         * lib/fts.c (fts_assert): Define.
45631         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45632         Use this macro instead of a bare 'abort'.
45633
45634 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45635
45636         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45637         simply work around them.
45638         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45639         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45640         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45641         declaring.
45642         Don't bother to define as macros, since the standard doesn't require it.
45643         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45644         longer worry about IRIX 5.3.
45645         (HAVE_WCTYPE_CTMP_BUG): Remove.
45646
45647 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45648
45649         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45650         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45651         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45652         Problems reported by Georg Schwarz for IRIX 5.3.
45653
45654         * gnulib-tool (autoconf_minversion): Take the maximum version number
45655         found, not the minimum.  Problem reported by James Youngman.
45656
45657 2007-01-03  Karl Berry  <karl@gnu.org>
45658
45659         * doc/error.texi: new file, explaining interaction with progname.
45660         * doc/gnulib.texi: include it.  Update copyright.
45661
45662 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45663
45664         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45665         AC_CANONICAL_HOST, to improve autobuild outputs.
45666
45667 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45668             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45669
45670         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45671         sockets, server sockets, and other file descriptors.  Count errors
45672         to compute the return value.  Reorder the code a bit to be easier
45673         to follow.  Don't set event bits that were not requested (except
45674         POLLERR and POLLHUP).
45675
45676 2007-01-01  Bruno Haible  <bruno@clisp.org>
45677
45678         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45679
45680 2007-01-03  Jim Meyering  <jim@meyering.net>
45681
45682         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45683
45684 2007-01-02  Bruno Haible  <bruno@clisp.org>
45685
45686         * modules/settime (Include): Require timespec.h.
45687         * modules/nanosleep (Include): Likewise.
45688
45689 2007-01-01  Bruno Haible  <bruno@clisp.org>
45690
45691         * gnulib-tool (func_emit_copyright_notice): Bump year.
45692         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45693
45694 2007-01-01  Bruno Haible  <bruno@clisp.org>
45695
45696         Improve support for OpenBSD.
45697         * build-aux/config.rpath (libname_spec): Export.
45698         (library_names_spec): New variable. Export.
45699         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45700         library_names_spec from the config.rpath output. Locate shared library
45701         through the name pattern in library_names_spec.
45702
45703 2007-01-01  Eric Blake  <ebb9@byu.net>
45704
45705         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45706
45707 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45708
45709         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45710         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45711         assume the C locale, and avoid an "eval" that could cause trouble.
45712         Problem with SORT reported by Bob Proulx.
45713
45714         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45715         Define.  Trivial patch from Henning Nielsen Lund, originally
45716         sent to bug-grep@gnu.org today.
45717
45718 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45719
45720         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45721         struct stat.  Problem reported by Henning Nielsen Lund.
45722         * lib/acl.c: Include acl.h first, to check interface.  Don't
45723         bother to include sys/types.h and sys/stat.h again.
45724
45725 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45726
45727         Import the following change from libc; problem reported by
45728         Sven Verdoolaege.
45729
45730         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45731
45732         [BZ #1373]
45733         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45734
45735 2006-12-28  Jim Meyering  <jim@meyering.net>
45736
45737         * build-aux/announce-gen: Do not assume that the package
45738         builds any of tar.gz, tar.bz2, and .xdelta files.
45739         Suggestion from Simon Josefsson.
45740
45741 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45742
45743         * modules/announce-gen: New file.
45744
45745 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45746
45747         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45748         handles its gotchas now.
45749         * lib/mbswidth.c: Likewise.
45750         * lib/wcwidth.h: Likewise.
45751         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45752         and iswcntrl; the wctype module does this stuff now.
45753         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45755         * modules/mbchar (Depends-on): Add wctype.
45756         * modules/mbswidth (Depends-on): Likewise.
45757         * modules/wcwidth (Depends-on): Likewise.
45758
45759 2006-12-27  Eric Blake  <ebb9@byu.net>
45760
45761         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45762         module uses more than what <wctype.h> is required to provide.
45763
45764 2006-12-26  Eric Blake  <ebb9@byu.net>
45765
45766         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45767
45768 2006-12-26  Eric Blake  <ebb9@byu.net>
45769
45770         * modules/absolute-header: New module.
45771         * modules/fcntl (Depends-on): Depend on it.
45772         * modules/inttypes (Depends-on): Likewise.
45773         * modules/stdint (Depends-on): Likewise.
45774         * modules/sys_stat (Depends-on): Likewise.
45775         * modules/wctype (Depends-on): Likewise.
45776         * MODULES.html.sh (Support for building libraries and
45777         executables): Document it.
45778
45779 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45780
45781         * gnulib-tool (SED): Remove, undoing previous change.
45782         The problem was that it broke coreutils on Solaris, because
45783         "sed --posix" leaked into a makefile.
45784         (sed): New alias, if 'alias' and GNU sed.
45785
45786 2006-12-24  Jim Meyering  <jim@meyering.net>
45787
45788         Work around an fchownat bug in glibc-2.4:
45789         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45790         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45791         in spite of the -P option.
45792         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45793         New macros.
45794         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45795         * modules/openat (Files): Add lib/fchownat.c.
45796         * lib/openat.c (fchownat): Don't define here.  Move to...
45797         * lib/fchownat.c: ...this new file.
45798
45799 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45800
45801         Fix bug reported by Bruno Haible in
45802         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45803         where quotearg.c didn't compile on Mac OS X 10.2 because it
45804         lacks <wchar.h> and wint_t.
45805         * lib/wctype_.h (__wctype_wint_t): New type.
45806         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45807         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45808         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45809         Arg is now of type __wctype_wint_t, not wint_t.
45810         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45811         substitute HAVE_WINT_T.
45812         * modules/wctype (Files): Add m4/wint_t.m4.
45813         (wctype.h): Substitute HAVE_WINT_T.
45814
45815 2006-12-23  Bruno Haible  <bruno@clisp.org>
45816
45817         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45818
45819 2006-12-23  Bruno Haible  <bruno@clisp.org>
45820
45821         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45822         S_ISLNK.
45823         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45824         mingw.
45825
45826 2006-12-22  Bruno Haible  <bruno@clisp.org>
45827
45828         * lib/copy-file.c: Include acl.h.
45829         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
45830         Close the file descriptors only after being done with copy_acl.
45831         * modules/copy-file (Depends-on): Add acl.
45832
45833 2006-12-22  Bruno Haible  <bruno@clisp.org>
45834
45835         * gnulib-tool (SED): New variable.
45836         Use $SED instead of sed everywhere.
45837
45838 2006-12-22  Bruno Haible  <bruno@clisp.org>
45839
45840         * modules/no-c++: New file.
45841         * m4/no-c++.m4: New file.
45842         * MODULES.html.sh (Support for building libraries and executables):
45843         Add no-c++.
45844
45845 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45846
45847         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
45848         Include <limits.h>, and use its INT_MAX to rewrite the
45849         j loop so that it does not overflow 'int'.  Problem reported by
45850         Ralf Wildenhues in
45851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
45852         Play it safe by shifting left by 1 rather than multiplying by 2,
45853         as GCC is less likely to optimize this away when the value
45854         is signed (when it assumes overflow leads to undefined behavior).
45855         Also, don't assume time_t uses two's complement.
45856
45857 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
45858
45859         * MODULES.html.sh: New module wctype.
45860         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
45861         * lib/fnmatch.c: Don't bother to include <wchar.h> before
45862         <wctype.h>, since the new wctype module should fix this.
45863         * lib/quotearg.c: Include <wctype.h> unconditionally, since
45864         the wctype module should arrange for it.
45865         * lib/regex_internal.h: Likewise.
45866         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
45867         since the wctype module should handle this now.
45868         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
45869         * modules/fnmatch (Depends-on): Add wctype.
45870         * modules/quotearg (Depends-on): Likewise.
45871         * modules/regex (Depends-on): Likewise.
45872
45873 2006-12-19  Bruno Haible  <bruno@clisp.org>
45874
45875         * lib/strdup.h [C++]: Wrap definitions in extern "C".
45876         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
45877
45878 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45879
45880         * modules/savewd (Depends-on): Fix dependency on fcntl.
45881
45882 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45883
45884         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
45885         conforms to C99, rather than relying on the user's environment
45886         setting of STDINT_H.
45887
45888 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45889         and Eric Blake  <ebb9@byu.net>
45890
45891         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
45892         This is more consistent with the other defines here.
45893         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
45894         Port to z/OS.  Problem reported by Paul Gilmartin.
45895         Change local vars to use gl_ prefix rather than ac_.
45896         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
45897         with other defines.
45898         * modules/double-slash-root: New module.
45899         * modules/dirname (Files): Remove m4/double-slash-root.m4.
45900         (Depends-on): Add double-slash-root.
45901         * MODULES.html.sh (File system functions): Mention new module.
45902
45903 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
45904
45905         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
45906         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
45907         This is for the benefit of gzip, which doesn't do i18n.
45908
45909 2006-12-12  Jim Meyering  <jim@meyering.net>
45910
45911         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
45912         Reported by Andreas Schwab <schwab@suse.de>.
45913
45914 2006-12-12  Bruno Haible  <bruno@clisp.org>
45915
45916         Merge these changes.
45917         2006-09-05  Bruno Haible  <bruno@clisp.org>
45918         * lib/iconvme.c (iconv_string): No need to save and restore errno when
45919         iconv_alloc succeeded.
45920         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
45921         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
45922         test for " && dest " at the end - dest is always != NULL there. Call
45923         iconv with 4xNULL arguments initially, to reset the state. Call iconv
45924         with 2xNULL arguments, also to flush the state storage. Handle the
45925         IRIX iconv behaviour. Realloc the final result, to throw away unused
45926         memory.
45927
45928 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
45929
45930         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
45931         and fchmodat unconditionally, since glibc 2.4 has them.
45932         Problem reported by Arkadiusz Miskiewicz.
45933
45934 2006-12-10  Bruno Haible  <bruno@clisp.org>
45935
45936         * gnulib-tool (func_import): Show the include files only for those
45937         modules that are copied and specified.
45938         Reported by Karl Berry.
45939
45940 2006-12-08  Jim Meyering  <jim@meyering.net>
45941
45942         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
45943         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
45944
45945         * build-aux/announce-gen: Add two new options, both optional:
45946         --bootstrap-tools=TOOL_LIST
45947               a comma-separated list of tools, e.g.,
45948               autoconf,automake,bison,gnulib
45949         --gnulib-snapshot-date=DATE
45950               if gnulib is in the bootstrap tool list,
45951               then report this as the snapshot date.
45952               If not specified, use the current date/time.
45953               If you specify a date here, be sure it's UTC.
45954
45955 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45956
45957         * tests/test-argp-2.sh: Fix test to match actual output.
45958         (func_compare): Fix sed script to be portable.
45959
45960 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
45961
45962         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
45963         workaround for this case.  It is not autoconfigured now; offhand
45964         it's hard to see how to autoconfigure it.
45965
45966 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45967
45968         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
45969         a directory that is about to be chowned.  Such a directory's
45970         initial file permissions should permit the owner only and this
45971         should not be changed until after the chown, since the group and
45972         other bits would be incorrect if they granted permission before
45973         the chown.
45974
45975         Fix porting problem for iswctype reported by Georg Schwarz in:
45976         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
45977         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
45978         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
45979         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
45980         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45981
45982 2006-12-03  Jim Meyering  <jim@meyering.net>
45983
45984         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
45985         p->fts_statp may not yet be defined.
45986         (fts_read): Instead, set it in the caller, once p->fts_statp is
45987         sure to be defined, and corresponds to a top-level directory.
45988         This bug made du -x fail.  Here's the coreutils test case:
45989         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
45990         Reported by Mike Frysinger.
45991
45992 2006-12-01  Jim Meyering  <jim@meyering.net>
45993
45994         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
45995         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
45996         Reported by Simon Josefsson.
45997
45998 2006-11-30  Jim Meyering  <jim@meyering.net>
45999
46000         * m4/warning.m4: Use the all-permissive copyright notice
46001         recommended by RMS (rather than LGPL).
46002         * m4/vararrays.m4: Likewise.
46003         * m4/flexmember.m4: Likewise.
46004
46005 2006-11-29  Bruno Haible  <bruno@clisp.org>
46006
46007         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46008         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
46009         using +=.
46010         Reported by Simon Josefsson <simon@josefsson.org>.
46011
46012 2006-11-28  James Youngman <jay@gnu.org>
46013
46014         * README: Advise users that they might find the bug-gnulib@gnu.org
46015         and autotools-announce@gnu.org mailing lists useful.
46016
46017 2006-11-28  Bruno Haible  <bruno@clisp.org>
46018
46019         * m4/ptrdiff_max.m4: Remove file.
46020
46021 2006-11-21  Bruno Haible  <bruno@clisp.org>
46022
46023         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
46024         _AC_COMPUTE_INT.
46025         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46026         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
46027         _AC_COMPUTE_INT.
46028         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46029         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
46030         _AC_COMPUTE_INT.
46031         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46032
46033 2006-11-28  Jim Meyering  <jim@meyering.net>
46034
46035         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
46036         warning from "gcc -Wshadow" about shadowing the builtin.
46037
46038 2006-11-27  Bruno Haible  <bruno@clisp.org>
46039
46040         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
46041         _AC_COMPUTE_INT.
46042         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46043
46044 2006-11-27  Bruno Haible  <bruno@clisp.org>
46045             Paul Eggert  <eggert@cs.ucla.edu>
46046
46047         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
46048
46049 2006-11-26  Bruno Haible  <bruno@clisp.org>
46050
46051         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46052         noinst_LTLIBRARIES.
46053
46054 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
46055             Bruno Haible  <bruno@clisp.org>
46056
46057         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
46058         if compiling with "gcc -ansi".
46059
46060 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
46061
46062         Fix some incompatibilities with gcc -ansi -pedantic.
46063         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
46064         if compiling pedantically with GCC, unless it's C99 or later.
46065         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
46066         it mishandles gcc -ansi -pedantic as well.
46067         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
46068         if gcc -pedantic.
46069         * lib/regexec.c (check_node_accept_bytes): Don't use auto
46070         initializers for struct if -pedantic, unless it's C99 or later.
46071
46072 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
46073
46074         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
46075         Don't close an fd more than once. Identical atimes indicate
46076         success, not failure.
46077
46078 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
46079
46080         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
46081
46082 2006-11-23  Jim Meyering  <jim@meyering.net>
46083
46084         * build-aux/announce-gen: New file.  From coreutils.
46085
46086 2006-11-22  Jim Meyering  <jim@meyering.net>
46087
46088         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
46089         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
46090         (fts_read): Use a temporary to narrow the overused st_size member
46091         before using it in a switch statement.  Reported by Matthew Woehlke.
46092
46093         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
46094         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
46095
46096 2006-11-20  Bruno Haible  <bruno@clisp.org>
46097
46098         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
46099         changequote instead of pairs of brackets.
46100         Reported by Andreas Schwab <schwab@suse.de>.
46101
46102 2006-11-21  Jim Meyering  <jim@meyering.net>
46103
46104         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
46105         so as to remain compatible with older compilers.
46106         Patch from Michael Deutschmann.
46107
46108 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46109
46110         * MODULES.html.sh (File system functions): Add openat.
46111
46112         * lib/openat.h (rpl_fstatat): New macro, if
46113         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
46114         (fstatat): Define to rpl_fstatat under the same conditions,
46115         unless COMPILING_FSTATAT.
46116         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
46117         seems to have the bug.
46118         * lib/fstatat.c: New file.
46119         * modules/openat (Files): Add it.
46120
46121 2006-11-20  Bruno Haible  <bruno@clisp.org>
46122
46123         * Makefile: New file.
46124
46125 2006-11-20  Jim Meyering  <jim@meyering.net>
46126
46127         The beginnings of syntax-related checks for gnulib.
46128         * lib/Makefile: New file.
46129         * lib/t-idcache: New script.  Ensure that the two halves of
46130         idcache.c stay in sync.
46131
46132         * lib/idcache.c: Adjust comments in user- and group- portions to
46133         be more accurate, and to be consistent with one another.
46134
46135 2006-11-20  Jim Meyering  <jim@meyering.net>
46136
46137         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
46138         continue using the flexible array member (thus, this module performs
46139         half as many malloc calls), with the addition that...
46140         (getgroup, getuser): Consistently record a non-match via an empty
46141         "name" string, and map an empty string match to a NULL return value.
46142         * modules/idcache (Depends-on): Re-add flexmember.
46143
46144         * lib/idcache.c (getuser): Remove all uses of the register keyword.
46145         (getuidbyname, getgroup, getgidbyname): Likewise.
46146
46147         Use cleaner syntax: NULL rather than 0.
46148         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
46149
46150 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46151
46152         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
46153         It mishandled the case where the group was missing.
46154         Problem reported by Greg Schafer.
46155         * modules/idcache: Likewise.
46156
46157 2006-11-18  Jim Meyering  <jim@meyering.net>
46158
46159         * check-module (%exempt_header): Add exception for some
46160         conditionally-included headers.
46161
46162         * modules/i-ring (Depends-on): Add verify.
46163         (License): Change to LGPL.
46164
46165 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46166
46167         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46168         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46169         and inttostr.h.  Use snprintf rather than uinttostr, so that
46170         LGPLed code doesn't depend on GPLed.
46171
46172 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46173
46174         * modules/inline (License): Change from GPL to LGPL.
46175
46176 2006-11-17  Jim Meyering  <jim@meyering.net>
46177
46178         * modules/d-type (License): Switch to LGPL.
46179
46180 2006-11-15  Bruno Haible  <bruno@clisp.org>
46181
46182         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46183
46184 2006-11-15  Eric Blake  <ebb9@byu.net>
46185
46186         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46187         the module dependency.
46188
46189 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46190             Bruno Haible  <bruno@clisp.org>
46191
46192         * gnulib-tool (func_create_testdir): Add license consistency check.
46193
46194 2006-11-15  Eric Blake  <ebb9@byu.net>
46195
46196         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46197         random "(cached)" in configure output.
46198
46199 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46200
46201         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46202         test for conforming inttypes.h is both announced and cached.
46203
46204         * MODULES.html.sh (seen_modules, seen_files): New variables.
46205         (func_module): Rewrite to use a few less gnulib-tool and sed
46206         invocations.  Avoid a couple of quadratic algorithms for ...
46207         (missed_modules, missed_files): ... these, with ...
46208         (func_append, func_tmpdir): ... these new functions, from
46209         gnulib-tool.  Analogously, install traps for cleanup.
46210
46211         * tests/test-gc.c (main): Remove unused variables.
46212         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46213
46214 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46215
46216         * modules/inttostr (License): Change to LGPL.
46217
46218 2006-11-14  Eric Blake  <ebb9@byu.net>
46219
46220         * modules/tempname (License): Change to LGPL.
46221
46222 2006-11-14  Eric Blake  <ebb9@byu.net>
46223
46224         * doc/functions.texi (Function Portability): *printf functions on
46225         Cygwin now understand all POSIX size specifiers.
46226
46227 2006-11-14  Bruno Haible  <bruno@clisp.org>
46228
46229         * modules/c-ctype (License): Change to LGPL.
46230
46231 2006-11-12  Bruno Haible  <bruno@clisp.org>
46232
46233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46234         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46235         for GNOME libraries, for which the include files are installed in
46236         subdirectories of $prefix/include.
46237
46238 2006-11-12  Bruno Haible  <bruno@clisp.org>
46239
46240         * m4/lib-link.m4: Require at least autoconf-2.54.
46241         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46242         name to underscores for the --with option.
46243
46244 2006-11-13  Bruno Haible  <bruno@clisp.org>
46245
46246         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46247         the tests directory.
46248         Reported by Ralf Wildenhues.
46249
46250 2006-11-13  Bruno Haible  <bruno@clisp.org>
46251
46252         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46253         (func_emit_initmacro_end): Undo the override here.
46254         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46255         Works around the famous automake error in coreutils.
46256
46257 2006-11-13  Eric Blake  <ebb9@byu.net>
46258
46259         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46260         element, not its node.
46261
46262 2006-11-12  Bruno Haible  <bruno@clisp.org>
46263
46264         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46265         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46266
46267 2006-11-12  Bruno Haible  <bruno@clisp.org>
46268
46269         * gnulib-tool: New option --local-symlink.
46270         (func_usage): Document it.
46271         (lsymbolic): New variable.
46272         (func_import, func_create_testdir): If --symlink was not specified,
46273         test whether --local-symlink was specified and the file comes from
46274         the local_gnulib_dir.
46275
46276 2006-11-12  Bruno Haible  <bruno@clisp.org>
46277
46278         * gnulib-tool (func_ln): New function.
46279         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46280
46281 2006-11-12  Bruno Haible  <bruno@clisp.org>
46282
46283         Finish support for source files in subdirectories.
46284         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46285         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46286         AUTOMAKE_OPTIONS.
46287         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46288
46289 2006-11-12  Bruno Haible  <bruno@clisp.org>
46290
46291         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46292         EXTRA_lib_SOURCES augmentation.
46293         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46294
46295 2006-11-12  Jim Meyering  <jim@meyering.net>
46296
46297         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46298         file descriptors.  This also averts a failure on systems with
46299         native openat support when a traversed directory lacks "x" access.
46300         * lib/fts_.h: Include "i-ring.h"
46301         (struct FTS) [fts_fd_ring]: New member.
46302         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46303         (FCHDIR): Add parentheses.
46304         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46305         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46306         When descending, rather than simply closing the previous
46307         fts_cwd_fd value, push that file descriptor onto the ring.
46308         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46309         (fts_open): Initialize the new fd_ring member.
46310         (fts_close): Clear the ring.
46311         (fts_safe_changedir): When possible, use our new fd_ring to skip
46312         the diropen and fstat and dev/ino comparison that would normally
46313         accompany a virtual `chdir ("..")'.
46314
46315         * modules/fts (Depends-on): Add i-ring.
46316         * modules/i-ring: New module.
46317         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46318         * m4/i-ring.m4: New file.
46319
46320 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46321
46322         * gnulib-tool (func_create_testdir): Fix replacement of
46323         `build-aux' in configure.ac.  Run autotools in gltests
46324         subdirectory.
46325         (func_create_testdir, func_create_megatestdir, test): There is
46326         no need for '--force' in most autotool invocations in a new
46327         tree.  Actually fail the whole test if any of the tools, or the
46328         configure or make stages fail.
46329
46330         Sync from Automake.
46331         * build-aux/gnupload: Revert last change.  Add pointer to upload
46332         instructions of the GNU Maintenance Instructions.
46333         Suggestion by Karl Berry.
46334
46335 2006-11-10  Jim Meyering  <jim@meyering.net>
46336
46337         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46338
46339 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46340
46341         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46342         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46343         (bind_textdomain_codeset) [! ENABLE_NLS]:
46344         Evaluate all the arguments.  That way, callers get compatible behavior
46345         if the arguments have side effects.  Also, it avoids some GCC
46346         diagnostics in some cases; Joel E. Denny reported problems when Bison
46347         was configured with --enable-gcc-warnigs.
46348
46349 2006-11-10  Jim Meyering  <jim@meyering.net>
46350
46351         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46352         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46353         account.
46354
46355 2006-11-10  Jim Meyering  <jim@meyering.net>
46356
46357         * modules/inline: New file/module.
46358         * modules/xalloc (Files): Remove m4/inline.m4.
46359         (Depends-on): Add inline, instead.
46360         * modules/oset: Likewise.
46361         * modules/list: Likewise.
46362
46363 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46364
46365         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46366         Problem reported by Matthew Woehlke.
46367
46368 2006-11-09  Bruno Haible  <bruno@clisp.org>
46369
46370         * lib/tempname.c (gen_tempname): Remove variant that invokes
46371         __gen_tempname.
46372         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46373         __gen_tempname.
46374
46375 2006-11-08  Bruno Haible  <bruno@clisp.org>
46376
46377         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46378         to 'yes' instead of 'cross-compiling'.
46379
46380 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46381
46382         * lib/quotearg.h (quotearg_free): New decl.
46383         * lib/quotearg.c (quotearg_free): New function.
46384         (slot0, nslots, slotvec0, slotvec):
46385         Now file-scope so that quotearg_free can get at them.
46386
46387 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46388
46389         Sync from Automake.
46390         * build-aux/gnupload: Add missing 'gnu' to example URL.
46391         Report by Karl Berry.
46392
46393 2006-11-08  Bruno Haible  <bruno@clisp.org>
46394
46395         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46396         Suggested by Paul Eggert.
46397
46398 2006-11-08  Jim Meyering  <jim@meyering.net>
46399
46400         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46401         It's already included if !_LIBC.
46402         (fts_safe_changedir): Add a comment.
46403
46404 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46405
46406         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46407         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46408         Matthew Woehlke.
46409
46410         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46411         definitions up, to avoid colliding with change below.
46412         (static_inline) [HAVE_INLINE]: New macro.
46413         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46414         Provide extern decls when !HAVE_INLINE.  Do not define unless
46415         static_inline is defined, either by us or by xmalloc.c.  Use
46416         static_inline rather than static inline.
46417         (XCALLOC): Optimize sizeof(T) = 1 case.
46418         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46419
46420 2006-11-07  Bruno Haible  <bruno@clisp.org>
46421
46422         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46423         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46424         AC_C_INLINE.
46425         * modules/xalloc (Files): Add m4/inline.m4.
46426
46427 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46428
46429         * README: Fix typo.
46430         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46431         (Miscellanous Notes): ...from this.
46432
46433 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46434
46435         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46436         Mention that offsetof should be used instead of sizeof.
46437         From Bruno Haible.
46438
46439 2006-11-07  Bruno Haible  <bruno@clisp.org>
46440
46441         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46442
46443 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46444
46445         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46446         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46447         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46448         (gl_tree_add_before, gl_tree_add_after):
46449         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46450         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46451         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46452         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46453         (gl_linked_add_after, gl_linked_add_at): Likewise.
46454         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46455         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46456         (gl_tree_add_before, gl_tree_add_after): Likewise.
46457         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46458         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46459         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46460
46461 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46462
46463         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46464
46465 2006-11-06  Bruno Haible  <bruno@clisp.org>
46466
46467         * m4/inline.m4: New file.
46468         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46469         * modules/list (Files): Add m4/inline.m4.
46470         * modules/oset (Files): Likewise.
46471
46472 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46473
46474         * lib/idcache.c: Include <stddef.h>, for offsetof.
46475         (struct userid.name): Change from char * to a flexible array member.
46476         All uses changed.
46477         * modules/idcache (Depends-on): Add flexmember.
46478
46479         * MODULES.html.sh (Core language properties): New module flexmember.
46480         * modules/flexmember, m4/flexmember.m4: New files.
46481
46482         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46483         inline functions that are identical with the old xnmalloc_inline,
46484         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46485         that we can avoid some unnecessary integer multiplications and
46486         divisions in the common case where the element size is known at
46487         compile time.
46488         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46489         needed.
46490         (xnboundedmalloc): Remove.
46491         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46492         arguments, for consistency with rest of this header.
46493         (xcharalloc): Rewrite using XNMALLOC.
46494         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46495         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46496         versions have been moved to lib/xalloc.h and renamed to be the
46497         non-*_inline versions.
46498         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46499         and xnrealloc functions, since those functions are now inline and
46500         now call us.
46501         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46502         renaming described above.
46503         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46504         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46505         captures the dependency in AC_C_INLINE.
46506
46507         New module canonicalize-lgpl, proposed by Charles Wilson in
46508         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46509         with a few small changes afterwards.
46510         * MODULES.html.sh (File system functions): New module
46511         canonicalize-lgpl.
46512         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46513         and canonicalize_file_name.
46514         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46515         * modules/canonicalize-lgpl: New files.
46516
46517 2006-11-05  Bruno Haible  <bruno@clisp.org>
46518
46519         * gnulib-tool (func_import, func_create_testdir): Create directories
46520         also for files in subdirectories of lib/.
46521
46522 2006-11-05  Bruno Haible  <bruno@clisp.org>
46523
46524         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46525         ANSI C compliant.
46526
46527 2006-11-03  Bruno Haible  <bruno@clisp.org>
46528
46529         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46530         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46531         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46532         (xnboundedmalloc): New inline function.
46533         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46534         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46535         xmalloc.
46536         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46537         xmalloc.
46538         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46539         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46540         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46541         xmalloc.
46542         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46543         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46544         xmalloc.
46545         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46546         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46547         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46548         xmalloc.
46549         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46550         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46551         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46552         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46553         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46554         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46555         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46556
46557 2006-11-03  Bruno Haible  <bruno@clisp.org>
46558
46559         * lib/c-ctype.h [C++]: Define functions without name mangling.
46560         * lib/fwriteerror.h [C++]: Likewise.
46561         * lib/gcd.h [C++]: Likewise.
46562         * lib/linebreak.h [C++]: Likewise.
46563
46564 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46565
46566         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46567         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46568         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46569         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46570         Check for functions and headers just once.
46571         Check for declaration of canonicalize_file_name.
46572         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46573
46574 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46575
46576         * gnulib-tool (func_import): Fix typo in actioncmd.
46577
46578 2006-11-02  Bruno Haible  <bruno@clisp.org>
46579
46580         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46581         newline sequence in the Makefile.am snippet as a space, like "make"
46582         does.
46583         Reported by Roger Persson <perrog@gmail.com>.
46584
46585 2006-11-01  Bruno Haible  <bruno@clisp.org>
46586
46587         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46588         already declared in <string.h>.
46589         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46590
46591 2006-11-01  Bruno Haible  <bruno@clisp.org>
46592
46593         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46594         * lib/strcase.h: Include <string.h>.
46595         (strcasecmp): Define to rpl_strcasecmp here.
46596
46597 2006-11-01  Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46600
46601 2006-11-01  Eric Blake  <ebb9@byu.net>
46602
46603         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46604
46605         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46606
46607 2006-10-29  Bruno Haible  <bruno@clisp.org>
46608
46609         Make it compile in C++ mode.
46610         * lib/full-write.c (full_rw): Add a cast.
46611
46612 2006-11-01  Bruno Haible  <bruno@clisp.org>
46613
46614         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46615         be POSIX compliant.
46616         Reported by Roger Persson <perrog@gmail.com>.
46617
46618 2006-11-01  Eric Blake  <ebb9@byu.net>
46619
46620         * lib/getopt_.h: Fix comments.
46621
46622 2006-10-31  Eric Blake  <ebb9@byu.net>
46623
46624         * modules/tmpdir (Depends-on): Add sys_stat.
46625         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46626         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46627         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46628         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46629         tempname.
46630
46631 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46632
46633         Avoid some C++ diagnostics reported by Bruno Haible.
46634         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46635         xmalloc.
46636         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46637         (struct slotvec): Move to top level.
46638         (quotearg_n_options): Rewrite to avoid xmalloc.
46639         * lib/xalloc.h (xcharalloc): New function.
46640         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46641         [defined __cplusplus]: Add function template that provides result
46642         type propagation.  This part of the change is from Bruno Haible.
46643
46644 2006-10-29  Bruno Haible  <bruno@clisp.org>
46645
46646         Make it compile in C++ mode.
46647         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46648         * lib/strnlen1.c (strnlen1): Cast memchr result.
46649         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46650         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46651         (create_temp_dir): Rename local variable 'template'.
46652         (compile_csharp_using_sscli): Add cast.
46653         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46654         * lib/findprog.c (find_in_path): Likewise.
46655         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46656         * lib/wait-process.c (register_slave_subprocess): Likewise.
46657
46658 2006-10-22  Bruno Haible  <bruno@clisp.org>
46659
46660         * modules/tsearch: New file.
46661         * lib/tsearch.h: New file.
46662         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46663         * m4/tsearch.m4: New file.
46664         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46665
46666 2006-10-29  Eric Blake  <ebb9@byu.net>
46667
46668         * lib/arcfour.c: Assume config.h.
46669         * lib/arctwo.c: Likewise.
46670         * lib/base64.c: Likewise.
46671         * lib/check-version.c: Likewise.
46672         * lib/crc.c: Likewise.
46673         * lib/des.c: Likewise.
46674         * lib/gc-gnulib.c: Likewise.
46675         * lib/gc-libgcrypt.c: Likewise.
46676         * lib/gc-pbkdf2-sha1.c: Likewise.
46677         * lib/getaddrinfo.c: Likewise.
46678         * lib/getdelim.c: Likewise.
46679         * lib/getline.c: Likewise.
46680         * lib/hmac-md5.c: Likewise.
46681         * lib/hmac-sha1.c: Likewise.
46682         * lib/iconvme.c: Likewise.
46683         * lib/md2.c: Likewise.
46684         * lib/md4.c: Likewise.
46685         * lib/memxor.c: Likewise.
46686         * lib/read-file.c: Likewise.
46687         * lib/readline.c: Likewise.
46688         * lib/rijndael-alg-fst.c: Likewise.
46689         * lib/rijndael-api-fst.c: Likewise.
46690         * lib/xgetdomainname.c: Likewise.
46691
46692 2006-10-28  Eric Blake  <ebb9@byu.net>
46693
46694         * lib/xstrndup.c: Assume config.h.
46695
46696 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46697
46698         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46699         stat-macros.h is now for our own macros, whereas stat_h is for
46700         macros in the <sys/stat.h> name space.
46701         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46702         (STAT_MACROS_H): Remove.
46703         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46704         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46705         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46706         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46707         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46708         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46709         Move these macros to ...
46710         * lib/stat_.h: here.  Don't include stat-macros.h.
46711         * lib/canonicalize.c: Don't include stat-macros.h.
46712         * lib/chown.c: Likewise.
46713         * lib/euidaccess.c: Likewise.
46714         * lib/file-type.c: Likewise.
46715         * lib/filemode.c: Likewise.
46716         * lib/glob.c: Likewise.
46717         * lib/isapipe.c: Likewise.
46718         * lib/lchown.c: Likewise.
46719         * lib/lstat.c: Likewise.
46720         * lib/mkdir-p.c: Likewise.
46721         * lib/rmdir.c: Likewise.
46722         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46723         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46724         unless mkdir isn't declared, to speed up 'configure'.
46725         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46726         would define all the S_* symbols.
46727         * modules/canonicalize (Depends-on):
46728         Depend on sys_stat, not stat-macros.
46729         * modules/chown: Likewise.
46730         * modules/euidaccess: Likewise.
46731         * modules/filemode: Likewise.
46732         * modules/file-type: Likewise.
46733         * modules/glob: Likewise.
46734         * modules/isapipe: Likewise.
46735         * modules/lchown: Likewise.
46736         * modules/lstat: Likewise.
46737         * modules/mkancesdirs: Likewise.
46738         * modules/rmdir: Likewise.
46739         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46740         * modules/modechange: Likewise.
46741         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46742         (configure.ac): Remove gl_STAT_MACROS.
46743         * modules/sys_stat (Depends-on): Remove stat-macros.
46744
46745 2006-10-27  Bruno Haible  <bruno@clisp.org>
46746
46747         * m4/signed.m4: Remove file.
46748         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46749         invocation.
46750         * modules/vasnprintf (Files): Remove m4/signed.m4.
46751
46752 2006-10-27  Bruno Haible  <bruno@clisp.org>
46753
46754         Update to GNU gettext 0.16.
46755         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46756         m4/inttypes-h.m4, m4/signed.m4.
46757         * m4/gettext.m4: Update to GNU gettext 0.16.
46758         * m4/intl.m4: New file, from GNU gettext.
46759         * m4/intldir.m4: New file, from GNU gettext.
46760         * config/srclist.txt: Update
46761
46762 2006-10-27  Eric Blake  <ebb9@byu.net>
46763
46764         * MODULES.html.sh: Document tempname.
46765         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46766         dependencies.
46767         (Files): Move lib/tempname.c...
46768         * modules/tempname: ...to this new module.
46769         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46770         (gl_PREREQ_TEMPNAME): Move...
46771         * m4/tempname.m4: ...to this new file.
46772         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46773         * modules/sys_stat (Depends-on): Add stat-macros.
46774         * lib/stat_.h (includes): Pick up stat macros.
46775         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46776         if stat macros are broken.
46777         * lib/tempname.c (includes): No need to include "stat-macros.h".
46778         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46779         (direxists, __path_search) [!_LIBC]: Don't compile these in
46780         gnulib; the tmpdir module covers that.
46781         * lib/tempname.h: New file.
46782
46783 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46784
46785         * COPYING: Explain how gnulib-tool converts licence headers.
46786         Almost all wording by Eric Blake.
46787
46788 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46789
46790         * lib/mbchar.h (is_basic_table): Make read-only.
46791         * lib/mbchar.c (is_basic_table): Likewise.
46792         Reported by John Darrington.
46793
46794 2006-10-25  Bruno Haible  <bruno@clisp.org>
46795
46796         * lib/progname.h (set_program_name): Undefine before defining.
46797
46798 2006-10-25  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46801         false for non-gcc C++ compilers.
46802         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46803
46804 2006-10-24  Bruno Haible  <bruno@clisp.org>
46805
46806         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46807         iconv implementations like Irix iconv.
46808
46809 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46810
46811         * modules/vararrays: New file.
46812         * m4/vararrays.m4: New file, taken from diffutils.
46813         * MODULES.html.sh: New module vararrays.
46814
46815 2006-10-24  Karl Berry  <karl@gnu.org>
46816
46817         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46818         Don't call GNU Unix.
46819
46820 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46821
46822         * users.txt: Add Libtool.
46823
46824         Sync from Libtool:
46825
46826         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46827
46828         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
46829         to gnulib's policy of including config.h unconditionally.
46830
46831 2006-10-24  Bruno Haible  <bruno@clisp.org>
46832
46833         * modules/wcwidth (Files): Add m4/wint_t.m4.
46834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
46835         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
46836
46837 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46838
46839         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
46840         to pacify GCC with some -W flags enabled.  Problem reported by
46841         Bruno Haible.
46842
46843 2006-10-24  Jim Meyering  <jim@meyering.net>
46844
46845         * MODULES.html.sh: Remove uinttostr.  It's not a module.
46846         Reported by Karl Berry.
46847
46848 2006-10-23  Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
46851
46852 2006-10-24  Bruno Haible  <bruno@clisp.org>
46853
46854         * lib/gl_list.h: Use C comment style, not C++ comment style.
46855
46856 2006-10-23  Eric Blake  <ebb9@byu.net>
46857
46858         * lib/getaddrinfo.c (includes): Add missing include.
46859
46860 2006-10-23  Bruno Haible  <bruno@clisp.org>
46861             Paul Eggert  <eggert@cs.ucla.edu>
46862
46863         Ability to rename obstack_free.
46864         * lib/obstack.h (__obstack_free): New macro. Declare instead of
46865         obstack_free.
46866         (obstack_free): Invoke the __obstack_free macro.
46867         * lib/obstack.c (obstack_free): Use __obstack_free macro.
46868
46869 2006-10-23  Bruno Haible  <bruno@clisp.org>
46870             Paul Eggert  <eggert@cs.ucla.edu>
46871
46872         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
46873         __argc, __argv from the declaration. (They are defined as macros on
46874         mingw.)
46875
46876 2006-10-22  Bruno Haible  <bruno@clisp.org>
46877
46878         * doc/gnulib-intro.texi: New file.
46879         * doc/gnulib.texi: Include it.
46880
46881 2006-10-21  Bruno Haible  <bruno@clisp.org>
46882
46883         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
46884         "Introduction", "Miscellanous Notes", "Particular Modules".
46885
46886 2006-10-21  Bruno Haible  <bruno@clisp.org>
46887
46888         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46889         Change mostlyclean-local rule to avoid sh syntax error from bash
46890         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
46891
46892 2006-10-23  Jim Meyering  <jim@meyering.net>
46893
46894         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
46895         in place of snprintf.
46896
46897         * modules/inttostr (Files): Add lib/uinttostr.c.
46898         * lib/uinttostr.c (inttostr): New file/function.
46899         * lib/inttostr.h (uinttostr): Declare.
46900         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
46901         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46902         Add uinttostr.
46903         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
46904
46905 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46906
46907         * lib/canonicalize.c (ELOOP): Define if not already defined.
46908         Problem reported by Bruno Haible in
46909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
46910
46911 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
46912
46913         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
46914         Problem reported by Perry Smith and Ville Laurikari.
46915
46916         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
46917         uses.
46918
46919 2006-10-19  Bruno Haible  <bruno@clisp.org>
46920
46921         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
46922         for mingw.
46923
46924 2006-10-19  Bruno Haible  <bruno@clisp.org>
46925
46926         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
46927         Needed for mingw.
46928
46929 2006-10-19  Bruno Haible  <bruno@clisp.org>
46930
46931         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
46932
46933 2006-10-19  Bruno Haible  <bruno@clisp.org>
46934
46935         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
46936         it.
46937
46938 2006-10-19  Bruno Haible  <bruno@clisp.org>
46939
46940         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
46941         invocation.
46942
46943 2006-10-19  Bruno Haible  <bruno@clisp.org>
46944
46945         * gnulib-tool (func_create_testdir): Don't include ftruncate and
46946         mountlist by default.
46947
46948 2006-10-16  Bruno Haible  <bruno@clisp.org>
46949
46950         * lib/c-strstr.c: Include c-strstr.h.
46951
46952 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46953
46954         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
46955         in a slash.
46956
46957 2006-10-18  Bruno Haible  <bruno@clisp.org>
46958
46959         * lib/lock.h [C++]: Wrap definitions in extern "C".
46960
46961 2006-10-18  Bruno Haible  <bruno@clisp.org>
46962
46963         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
46964         gl_LIBOBJS list.
46965
46966 2006-10-18  Bruno Haible  <bruno@clisp.org>
46967
46968         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
46969
46970 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
46971
46972         * lib/xstrtol.h: Include gettext.h.
46973         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
46974         Problem reported by Eric Blake.
46975         * modules/xstrtol (Depends-on): Add gettext-h.
46976
46977 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
46978
46979         * lib/strftime.c (advance): New macro.
46980         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
46981         incomplete type, so you can't add 0 to it.  Problem and patch
46982         reported by Eelco Dolstra for dietlibc.
46983
46984 2006-10-18  Jim Meyering  <jim@meyering.net>
46985
46986         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
46987         type for a local, and rename it: s/up/user_proc/.
46988
46989 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46990
46991         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
46992         READ_UTMP_USER_PROCESS.
46993         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
46994
46995 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46996
46997         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
46998         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
46999
47000 2006-10-17  Eric Blake  <ebb9@byu.net>
47001
47002         * lib/sigprocmask.c (sigprocmask): Fix typo.
47003
47004         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
47005
47006         * modules/clean-temp (Makefile.am): Don't add to make output...
47007         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
47008         config.h.
47009
47010 2006-10-17  Bruno Haible  <bruno@clisp.org>
47011
47012         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
47013         differently if DEFAULT_TEXT_DOMAIN is set.
47014
47015 2006-10-16  Bruno Haible  <bruno@clisp.org>
47016
47017         * lib/clean-temp.c: Include fwriteerror.h.
47018
47019 2006-10-16  Bruno Haible  <bruno@clisp.org>
47020
47021         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
47022
47023 2006-10-16  Bruno Haible  <bruno@clisp.org>
47024
47025         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
47026         * lib/sigprocmask.h: Include <sys/types.h>.
47027         (sigset_t): Use the system's definition if present.
47028
47029 2006-10-17  Eric Blake  <ebb9@byu.net>
47030
47031         * lib/xvasprintf.c (includes): Assume config.h.
47032         * lib/xasprintf.c (includes): Likewise.
47033
47034 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47035
47036         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
47037         at least as wide as intmax_t.
47038
47039 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
47040
47041         (Imported from Automake.)
47042         * build-aux/gnupload: Update to version 1.1 of directive file.
47043
47044 2006-10-16  Eric Blake  <ebb9@byu.net>
47045
47046         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
47047         match Automake 1.10a.
47048
47049 2006-10-14  Bruno Haible  <bruno@clisp.org>
47050
47051         * modules/sigprocmask: New file.
47052         * lib/sigprocmask.h: New file.
47053         * lib/sigprocmask.c: New file.
47054         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
47055         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
47056         request sigprocmask.o.
47057         (gl_PREREQ_SIGPROCMASK): New macro.
47058         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
47059         (Depends-on): Add sigprocmask.
47060         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
47061         gt_SIGNALBLOCKING. Test for 'raise' only once.
47062         * lib/fatal-signal.c: Include sigprocmask.h.
47063         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
47064         unblock_fatal_signals): Define always.
47065         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47066         sigprocmask.
47067
47068 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47069
47070         Sync from Automake.
47071         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
47072         which incorrectly sets the mode of an existing destination
47073         directory.  In some cases the unpatched install-sh could do the
47074         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
47075         system.  We hope this is rare in practice, but it's clearly worth
47076         fixing.  Problem reported by Alex Unleashed in
47077         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
47078         Also, don't bother to check for -m bugs unless we're using -m;
47079         suggested by Stepan Kasal.
47080
47081 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47082
47083         Sync from Automake.
47084         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
47085         `-c' flag, so they appear at the same position as in %FASTDEP%
47086         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
47087         which ignores unknown options only after the first non-option.
47088         Bug report against M4 by Nelson H. F. Beebe.
47089
47090 2006-10-13  Jim Meyering  <jim@meyering.net>
47091
47092         Fix a bug in yesterday's change.
47093         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
47094         p->fts_statp->st_dev would be used uninitialized.
47095         Ensures that we always call fts_stat on the very first entry.
47096         Miklos Szeredi reported that find -xdev stopped working.
47097
47098 2006-10-12  Bruno Haible  <bruno@clisp.org>
47099
47100         * gnulib-tool (func_get_automake_snippet): Append an automatically
47101         computed EXTRA_DIST augmentation.
47102         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
47103         * modules/alloca-opt (Makefile.am): Likewise.
47104         * modules/allocsa (Makefile.am): Likewise.
47105         * modules/arcfour (Makefile.am): Likewise.
47106         * modules/arctwo (Makefile.am): Likewise.
47107         * modules/argmatch (Makefile.am): Likewise.
47108         * modules/argz (Makefile.am): Likewise.
47109         * modules/atexit (Makefile.am): Likewise.
47110         * modules/backupfile (Makefile.am): Likewise.
47111         * modules/byteswap (Makefile.am): Likewise.
47112         * modules/c-strtod (Makefile.am): Likewise.
47113         * modules/c-strtold (Makefile.am): Likewise.
47114         * modules/calloc (Makefile.am): Likewise.
47115         * modules/canon-host (Makefile.am): Likewise.
47116         * modules/canonicalize (Makefile.am): Likewise.
47117         * modules/chdir-long (Makefile.am): Likewise.
47118         * modules/chdir-safer (Makefile.am): Likewise.
47119         * modules/check-version (Makefile.am): Likewise.
47120         * modules/chown (Makefile.am): Likewise.
47121         * modules/cloexec (Makefile.am): Likewise.
47122         * modules/close-stream (Makefile.am): Likewise.
47123         * modules/closeout (Makefile.am): Likewise.
47124         * modules/crc (Makefile.am): Likewise.
47125         * modules/csharpexec (Makefile.am): Likewise.
47126         * modules/cycle-check (Makefile.am): Likewise.
47127         * modules/des (Makefile.am): Likewise.
47128         * modules/dev-ino (Makefile.am): Likewise.
47129         * modules/dirfd (Makefile.am): Likewise.
47130         * modules/dirname (Makefile.am): Likewise.
47131         * modules/dup2 (Makefile.am): Likewise.
47132         * modules/eealloc (Makefile.am): Likewise.
47133         * modules/error (Makefile.am): Likewise.
47134         * modules/euidaccess (Makefile.am): Likewise.
47135         * modules/exclude (Makefile.am): Likewise.
47136         * modules/exitfail (Makefile.am): Likewise.
47137         * modules/fcntl-safer (Makefile.am): Likewise.
47138         * modules/fcntl (Makefile.am): Likewise.
47139         * modules/file-type (Makefile.am): Likewise.
47140         * modules/fileblocks (Makefile.am): Likewise.
47141         * modules/filemode (Makefile.am): Likewise.
47142         * modules/filenamecat (Makefile.am): Likewise.
47143         * modules/fnmatch (Makefile.am): Likewise.
47144         * modules/fopen-safer (Makefile.am): Likewise.
47145         * modules/fpending (Makefile.am): Likewise.
47146         * modules/fprintftime (Makefile.am): Likewise.
47147         * modules/free (Makefile.am): Likewise.
47148         * modules/fsusage (Makefile.am): Likewise.
47149         * modules/ftruncate (Makefile.am): Likewise.
47150         * modules/fts (Makefile.am): Likewise.
47151         * modules/gc-arcfour (Makefile.am): Likewise.
47152         * modules/gc-des (Makefile.am): Likewise.
47153         * modules/gc-hmac-md5 (Makefile.am): Likewise.
47154         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
47155         * modules/gc-md4 (Makefile.am): Likewise.
47156         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47157         * modules/gc-sha1 (Makefile.am): Likewise.
47158         * modules/gc (Makefile.am): Likewise.
47159         * modules/getaddrinfo (Makefile.am): Likewise.
47160         * modules/getcwd (Makefile.am): Likewise.
47161         * modules/getdelim (Makefile.am): Likewise.
47162         * modules/getdomainname (Makefile.am): Likewise.
47163         * modules/getgroups (Makefile.am): Likewise.
47164         * modules/gethostname (Makefile.am): Likewise.
47165         * modules/gethrxtime (Makefile.am): Likewise.
47166         * modules/getline (Makefile.am): Likewise.
47167         * modules/getloadavg (Makefile.am): Likewise.
47168         * modules/getlogin_r (Makefile.am): Likewise.
47169         * modules/getndelim2 (Makefile.am): Likewise.
47170         * modules/getopt (Makefile.am): Likewise.
47171         * modules/getpagesize (Makefile.am): Likewise.
47172         * modules/getpass-gnu (Makefile.am): Likewise.
47173         * modules/getpass (Makefile.am): Likewise.
47174         * modules/getsubopt (Makefile.am): Likewise.
47175         * modules/gettime (Makefile.am): Likewise.
47176         * modules/gettimeofday (Makefile.am): Likewise.
47177         * modules/getugroups (Makefile.am): Likewise.
47178         * modules/getusershell (Makefile.am): Likewise.
47179         * modules/glob (Makefile.am): Likewise.
47180         * modules/group-member (Makefile.am): Likewise.
47181         * modules/hard-locale (Makefile.am): Likewise.
47182         * modules/hash (Makefile.am): Likewise.
47183         * modules/hmac-md5 (Makefile.am): Likewise.
47184         * modules/hmac-sha1 (Makefile.am): Likewise.
47185         * modules/human (Makefile.am): Likewise.
47186         * modules/idcache (Makefile.am): Likewise.
47187         * modules/imaxabs (Makefile.am): Likewise.
47188         * modules/imaxdiv (Makefile.am): Likewise.
47189         * modules/inet_ntop (Makefile.am): Likewise.
47190         * modules/inet_pton (Makefile.am): Likewise.
47191         * modules/intprops (Makefile.am): Likewise.
47192         * modules/inttostr (Makefile.am): Likewise.
47193         * modules/inttypes (Makefile.am): Likewise.
47194         * modules/isapipe (Makefile.am): Likewise.
47195         * modules/javaversion (Makefile.am): Likewise.
47196         * modules/lchmod (Makefile.am): Likewise.
47197         * modules/lchown (Makefile.am): Likewise.
47198         * modules/localcharset (Makefile.am): Likewise.
47199         * modules/long-options (Makefile.am): Likewise.
47200         * modules/lstat (Makefile.am): Likewise.
47201         * modules/malloc (Makefile.am): Likewise.
47202         * modules/mathl (Makefile.am): Likewise.
47203         * modules/mbchar (Makefile.am): Likewise.
47204         * modules/md2 (Makefile.am): Likewise.
47205         * modules/md4 (Makefile.am): Likewise.
47206         * modules/md5 (Makefile.am): Likewise.
47207         * modules/memcasecmp (Makefile.am): Likewise.
47208         * modules/memchr (Makefile.am): Likewise.
47209         * modules/memcmp (Makefile.am): Likewise.
47210         * modules/memcoll (Makefile.am): Likewise.
47211         * modules/memcpy (Makefile.am): Likewise.
47212         * modules/memmem (Makefile.am): Likewise.
47213         * modules/memmove (Makefile.am): Likewise.
47214         * modules/mempcpy (Makefile.am): Likewise.
47215         * modules/memrchr (Makefile.am): Likewise.
47216         * modules/memset (Makefile.am): Likewise.
47217         * modules/memxor (Makefile.am): Likewise.
47218         * modules/mkancesdirs (Makefile.am): Likewise.
47219         * modules/mkdir-p (Makefile.am): Likewise.
47220         * modules/mkdir (Makefile.am): Likewise.
47221         * modules/mkdtemp (Makefile.am): Likewise.
47222         * modules/mkstemp (Makefile.am): Likewise.
47223         * modules/mktime (Makefile.am): Likewise.
47224         * modules/modechange (Makefile.am): Likewise.
47225         * modules/mountlist (Makefile.am): Likewise.
47226         * modules/nanosleep (Makefile.am): Likewise.
47227         * modules/obstack (Makefile.am): Likewise.
47228         * modules/openat (Makefile.am): Likewise.
47229         * modules/pagealign_alloc (Makefile.am): Likewise.
47230         * modules/pathmax (Makefile.am): Likewise.
47231         * modules/physmem (Makefile.am): Likewise.
47232         * modules/poll (Makefile.am): Likewise.
47233         * modules/posixtm (Makefile.am): Likewise.
47234         * modules/posixver (Makefile.am): Likewise.
47235         * modules/putenv (Makefile.am): Likewise.
47236         * modules/quote (Makefile.am): Likewise.
47237         * modules/quotearg (Makefile.am): Likewise.
47238         * modules/raise (Makefile.am): Likewise.
47239         * modules/read-file (Makefile.am): Likewise.
47240         * modules/readline (Makefile.am): Likewise.
47241         * modules/readlink (Makefile.am): Likewise.
47242         * modules/readtokens (Makefile.am): Likewise.
47243         * modules/readutmp (Makefile.am): Likewise.
47244         * modules/realloc (Makefile.am): Likewise.
47245         * modules/regex (Makefile.am): Likewise.
47246         * modules/rename-dest-slash (Makefile.am): Likewise.
47247         * modules/rename (Makefile.am): Likewise.
47248         * modules/rijndael (Makefile.am): Likewise.
47249         * modules/rmdir (Makefile.am): Likewise.
47250         * modules/rpmatch (Makefile.am): Likewise.
47251         * modules/safe-read (Makefile.am): Likewise.
47252         * modules/safe-write (Makefile.am): Likewise.
47253         * modules/same-inode (Makefile.am): Likewise.
47254         * modules/same (Makefile.am): Likewise.
47255         * modules/save-cwd (Makefile.am): Likewise.
47256         * modules/savedir (Makefile.am): Likewise.
47257         * modules/setenv (Makefile.am): Likewise.
47258         * modules/settime (Makefile.am): Likewise.
47259         * modules/sha1 (Makefile.am): Likewise.
47260         * modules/sig2str (Makefile.am): Likewise.
47261         * modules/snprintf (Makefile.am): Likewise.
47262         * modules/stat-macros (Makefile.am): Likewise.
47263         * modules/stat-time (Makefile.am): Likewise.
47264         * modules/stdbool (Makefile.am): Likewise.
47265         * modules/stdint (Makefile.am): Likewise.
47266         * modules/stdlib-safer (Makefile.am): Likewise.
47267         * modules/stpcpy (Makefile.am): Likewise.
47268         * modules/stpncpy (Makefile.am): Likewise.
47269         * modules/strcase (Makefile.am): Likewise.
47270         * modules/strcasestr (Makefile.am): Likewise.
47271         * modules/strchrnul (Makefile.am): Likewise.
47272         * modules/strcspn (Makefile.am): Likewise.
47273         * modules/strdup (Makefile.am): Likewise.
47274         * modules/strerror (Makefile.am): Likewise.
47275         * modules/strftime (Makefile.am): Likewise.
47276         * modules/strndup (Makefile.am): Likewise.
47277         * modules/strnlen (Makefile.am): Likewise.
47278         * modules/strpbrk (Makefile.am): Likewise.
47279         * modules/strsep (Makefile.am): Likewise.
47280         * modules/strstr (Makefile.am): Likewise.
47281         * modules/strtod (Makefile.am): Likewise.
47282         * modules/strtoimax (Makefile.am): Likewise.
47283         * modules/strtok_r (Makefile.am): Likewise.
47284         * modules/strtol (Makefile.am): Likewise.
47285         * modules/strtoll (Makefile.am): Likewise.
47286         * modules/strtoul (Makefile.am): Likewise.
47287         * modules/strtoull (Makefile.am): Likewise.
47288         * modules/strtoumax (Makefile.am): Likewise.
47289         * modules/strverscmp (Makefile.am): Likewise.
47290         * modules/sys_socket (Makefile.am): Likewise.
47291         * modules/sys_stat (Makefile.am): Likewise.
47292         * modules/sysexits (Makefile.am): Likewise.
47293         * modules/time_r (Makefile.am): Likewise.
47294         * modules/timegm (Makefile.am): Likewise.
47295         * modules/timespec (Makefile.am): Likewise.
47296         * modules/tmpfile-safer (Makefile.am): Likewise.
47297         * modules/trim (Makefile.am): Likewise.
47298         * modules/unistd-safer (Makefile.am): Likewise.
47299         * modules/unlinkdir (Makefile.am): Likewise.
47300         * modules/unlocked-io (Makefile.am): Likewise.
47301         * modules/userspec (Makefile.am): Likewise.
47302         * modules/utime (Makefile.am): Likewise.
47303         * modules/utimecmp (Makefile.am): Likewise.
47304         * modules/utimens (Makefile.am): Likewise.
47305         * modules/vasnprintf (Makefile.am): Likewise.
47306         * modules/vasprintf (Makefile.am): Likewise.
47307         * modules/vsnprintf (Makefile.am): Likewise.
47308         * modules/xalloc (Makefile.am): Likewise.
47309         * modules/xgetcwd (Makefile.am): Likewise.
47310         * modules/xnanosleep (Makefile.am): Likewise.
47311         * modules/xreadlink (Makefile.am): Likewise.
47312         * modules/xstrtod (Makefile.am): Likewise.
47313         * modules/xstrtol (Makefile.am): Likewise.
47314         * modules/xstrtold (Makefile.am): Likewise.
47315         * modules/yesno (Makefile.am): Likewise.
47316         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47317
47318 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47319
47320         * modules/error (Makefile.am): Distribute files through
47321         EXTRA_DIST, not lib_SOURCES.
47322
47323 2006-10-12  Eric Blake  <ebb9@byu.net>
47324
47325         * modules/error (Makefile.am): Distribute files in /lib.
47326         * modules/obstack (Makefile.am): Likewise.
47327
47328 2006-10-12  Bruno Haible  <bruno@clisp.org>
47329
47330         * modules/acl (Makefile.am): Distribute all files in lib/ through
47331         EXTRA_DIST.
47332         * modules/arcfour (Makefile.am): Likewise.
47333         * modules/arctwo (Makefile.am): Likewise.
47334         * modules/argmatch (Makefile.am): Likewise.
47335         * modules/argz (Makefile.am): Likewise.
47336         * modules/atexit (Makefile.am): Likewise.
47337         * modules/backupfile (Makefile.am): Likewise.
47338         * modules/c-strtod (Makefile.am): Likewise.
47339         * modules/c-strtold (Makefile.am): Likewise.
47340         * modules/calloc (Makefile.am): Likewise.
47341         * modules/canon-host (Makefile.am): Likewise.
47342         * modules/canonicalize (Makefile.am): Likewise.
47343         * modules/chdir-long (Makefile.am): Likewise.
47344         * modules/chdir-safer (Makefile.am): Likewise.
47345         * modules/check-version (Makefile.am): Likewise.
47346         * modules/chown (Makefile.am): Likewise.
47347         * modules/cloexec (Makefile.am): Likewise.
47348         * modules/close-stream (Makefile.am): Likewise.
47349         * modules/closeout (Makefile.am): Likewise.
47350         * modules/crc (Makefile.am): Likewise.
47351         * modules/cycle-check (Makefile.am): Likewise.
47352         * modules/des (Makefile.am): Likewise.
47353         * modules/dirfd (Makefile.am): Likewise.
47354         * modules/dirname (Makefile.am): Likewise.
47355         * modules/dup2 (Makefile.am): Likewise.
47356         * modules/euidaccess (Makefile.am): Likewise.
47357         * modules/exclude (Makefile.am): Likewise.
47358         * modules/exitfail (Makefile.am): Likewise.
47359         * modules/fcntl-safer (Makefile.am): Likewise.
47360         * modules/file-type (Makefile.am): Likewise.
47361         * modules/fileblocks (Makefile.am): Likewise.
47362         * modules/filemode (Makefile.am): Likewise.
47363         * modules/filenamecat (Makefile.am): Likewise.
47364         * modules/fnmatch (Makefile.am): Likewise.
47365         * modules/fopen-safer (Makefile.am): Likewise.
47366         * modules/fpending (Makefile.am): Likewise.
47367         * modules/fprintftime (Makefile.am): Likewise.
47368         * modules/free (Makefile.am): Likewise.
47369         * modules/fsusage (Makefile.am): Likewise.
47370         * modules/ftruncate (Makefile.am): Likewise.
47371         * modules/fts (Makefile.am): Likewise.
47372         * modules/gc (Makefile.am): Likewise.
47373         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47374         * modules/getaddrinfo (Makefile.am): Likewise.
47375         * modules/getcwd (Makefile.am): Likewise.
47376         * modules/getdelim (Makefile.am): Likewise.
47377         * modules/getdomainname (Makefile.am): Likewise.
47378         * modules/getgroups (Makefile.am): Likewise.
47379         * modules/gethostname (Makefile.am): Likewise.
47380         * modules/gethrxtime (Makefile.am): Likewise.
47381         * modules/getline (Makefile.am): Likewise.
47382         * modules/getloadavg (Makefile.am): Likewise.
47383         * modules/getlogin_r (Makefile.am): Likewise.
47384         * modules/getopt (Makefile.am): Likewise.
47385         * modules/getpass (Makefile.am): Likewise.
47386         * modules/getpass-gnu (Makefile.am): Likewise.
47387         * modules/getsubopt (Makefile.am): Likewise.
47388         * modules/gettime (Makefile.am): Likewise.
47389         * modules/gettimeofday (Makefile.am): Likewise.
47390         * modules/getugroups (Makefile.am): Likewise.
47391         * modules/getusershell (Makefile.am): Likewise.
47392         * modules/glob (Makefile.am): Likewise.
47393         * modules/group-member (Makefile.am): Likewise.
47394         * modules/hard-locale (Makefile.am): Likewise.
47395         * modules/hash (Makefile.am): Likewise.
47396         * modules/hmac-md5 (Makefile.am): Likewise.
47397         * modules/hmac-sha1 (Makefile.am): Likewise.
47398         * modules/human (Makefile.am): Likewise.
47399         * modules/idcache (Makefile.am): Likewise.
47400         * modules/imaxabs (Makefile.am): Likewise.
47401         * modules/imaxdiv (Makefile.am): Likewise.
47402         * modules/inet_ntop (Makefile.am): Likewise.
47403         * modules/inet_pton (Makefile.am): Likewise.
47404         * modules/inttostr (Makefile.am): Likewise.
47405         * modules/isapipe (Makefile.am): Likewise.
47406         * modules/lchown (Makefile.am): Likewise.
47407         * modules/long-options (Makefile.am): Likewise.
47408         * modules/lstat (Makefile.am): Likewise.
47409         * modules/malloc (Makefile.am): Likewise.
47410         * modules/mathl (Makefile.am): Likewise.
47411         * modules/mbchar (Makefile.am): Likewise.
47412         * modules/md2 (Makefile.am): Likewise.
47413         * modules/md4 (Makefile.am): Likewise.
47414         * modules/md5 (Makefile.am): Likewise.
47415         * modules/memcasecmp (Makefile.am): Likewise.
47416         * modules/memchr (Makefile.am): Likewise.
47417         * modules/memcmp (Makefile.am): Likewise.
47418         * modules/memcoll (Makefile.am): Likewise.
47419         * modules/memcpy (Makefile.am): Likewise.
47420         * modules/memmem (Makefile.am): Likewise.
47421         * modules/memmove (Makefile.am): Likewise.
47422         * modules/mempcpy (Makefile.am): Likewise.
47423         * modules/memrchr (Makefile.am): Likewise.
47424         * modules/memset (Makefile.am): Likewise.
47425         * modules/memxor (Makefile.am): Likewise.
47426         * modules/mkancesdirs (Makefile.am): Likewise.
47427         * modules/mkdir (Makefile.am): Likewise.
47428         * modules/mkdir-p (Makefile.am): Likewise.
47429         * modules/mkdtemp (Makefile.am): Likewise.
47430         * modules/mkstemp (Makefile.am): Likewise.
47431         * modules/mktime (Makefile.am): Likewise.
47432         * modules/modechange (Makefile.am): Likewise.
47433         * modules/mountlist (Makefile.am): Likewise.
47434         * modules/nanosleep (Makefile.am): Likewise.
47435         * modules/openat (Makefile.am): Likewise.
47436         * modules/pagealign_alloc (Makefile.am): Likewise.
47437         * modules/physmem (Makefile.am): Likewise.
47438         * modules/poll (Makefile.am): Likewise.
47439         * modules/posixtm (Makefile.am): Likewise.
47440         * modules/posixver (Makefile.am): Likewise.
47441         * modules/putenv (Makefile.am): Likewise.
47442         * modules/quote (Makefile.am): Likewise.
47443         * modules/quotearg (Makefile.am): Likewise.
47444         * modules/raise (Makefile.am): Likewise.
47445         * modules/read-file (Makefile.am): Likewise.
47446         * modules/readline (Makefile.am): Likewise.
47447         * modules/readlink (Makefile.am): Likewise.
47448         * modules/readtokens (Makefile.am): Likewise.
47449         * modules/readutmp (Makefile.am): Likewise.
47450         * modules/realloc (Makefile.am): Likewise.
47451         * modules/regex (Makefile.am): Likewise.
47452         * modules/rename (Makefile.am): Likewise.
47453         * modules/rename-dest-slash (Makefile.am): Likewise.
47454         * modules/rijndael (Makefile.am): Likewise.
47455         * modules/rmdir (Makefile.am): Likewise.
47456         * modules/rpmatch (Makefile.am): Likewise.
47457         * modules/safe-read (Makefile.am): Likewise.
47458         * modules/safe-write (Makefile.am): Likewise.
47459         * modules/same (Makefile.am): Likewise.
47460         * modules/save-cwd (Makefile.am): Likewise.
47461         * modules/savedir (Makefile.am): Likewise.
47462         * modules/setenv (Makefile.am): Likewise.
47463         * modules/settime (Makefile.am): Likewise.
47464         * modules/sha1 (Makefile.am): Likewise.
47465         * modules/sig2str (Makefile.am): Likewise.
47466         * modules/snprintf (Makefile.am): Likewise.
47467         * modules/stdlib-safer (Makefile.am): Likewise.
47468         * modules/stpcpy (Makefile.am): Likewise.
47469         * modules/stpncpy (Makefile.am): Likewise.
47470         * modules/strcase (Makefile.am): Likewise.
47471         * modules/strcasestr (Makefile.am): Likewise.
47472         * modules/strchrnul (Makefile.am): Likewise.
47473         * modules/strcspn (Makefile.am): Likewise.
47474         * modules/strdup (Makefile.am): Likewise.
47475         * modules/strerror (Makefile.am): Likewise.
47476         * modules/strftime (Makefile.am): Likewise.
47477         * modules/strndup (Makefile.am): Likewise.
47478         * modules/strnlen (Makefile.am): Likewise.
47479         * modules/strpbrk (Makefile.am): Likewise.
47480         * modules/strsep (Makefile.am): Likewise.
47481         * modules/strstr (Makefile.am): Likewise.
47482         * modules/strtod (Makefile.am): Likewise.
47483         * modules/strtoimax (Makefile.am): Likewise.
47484         * modules/strtok_r (Makefile.am): Likewise.
47485         * modules/strtol (Makefile.am): Likewise.
47486         * modules/strtoll (Makefile.am): Likewise.
47487         * modules/strtoul (Makefile.am): Likewise.
47488         * modules/strtoull (Makefile.am): Likewise.
47489         * modules/strtoumax (Makefile.am): Likewise.
47490         * modules/strverscmp (Makefile.am): Likewise.
47491         * modules/time_r (Makefile.am): Likewise.
47492         * modules/timegm (Makefile.am): Likewise.
47493         * modules/tmpfile-safer (Makefile.am): Likewise.
47494         * modules/unistd-safer (Makefile.am): Likewise.
47495         * modules/unlinkdir (Makefile.am): Likewise.
47496         * modules/userspec (Makefile.am): Likewise.
47497         * modules/utime (Makefile.am): Likewise.
47498         * modules/utimecmp (Makefile.am): Likewise.
47499         * modules/utimens (Makefile.am): Likewise.
47500         * modules/vasnprintf (Makefile.am): Likewise.
47501         * modules/vasprintf (Makefile.am): Likewise.
47502         * modules/vsnprintf (Makefile.am): Likewise.
47503         * modules/xalloc (Makefile.am): Likewise.
47504         * modules/xgetcwd (Makefile.am): Likewise.
47505         * modules/xnanosleep (Makefile.am): Likewise.
47506         * modules/xreadlink (Makefile.am): Likewise.
47507         * modules/xstrtod (Makefile.am): Likewise.
47508         * modules/xstrtol (Makefile.am): Likewise.
47509         * modules/xstrtold (Makefile.am): Likewise.
47510         * modules/yesno (Makefile.am): Likewise.
47511
47512 2006-10-12  Jim Meyering  <jim@meyering.net>
47513
47514         * m4/getloadavg.m4: Revert the change below.
47515
47516         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47517         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47518         fail with a symlink, which is what coreutils' ./bootstrap now
47519         creates by default.
47520
47521 2006-10-12  Bruno Haible  <bruno@clisp.org>
47522
47523         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47524         mingw.
47525         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47526         MSVC and mingw explicitly.
47527
47528 2006-10-11  Simon Josefsson  <jas@extundo.com>
47529             Bruno Haible  <bruno@clisp.org>
47530
47531         Add support for multiple gnulib-tool invocations in the scope of a
47532         single configure.ac file.
47533         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47534         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47535         with the same contents as the _LIBADD variable.
47536         (func_emit_initmacro_start, func_emit_initmacro_end,
47537         func_emit_initmacro_done): New functions.
47538         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47539         gl_LIBOBJS and gl_LTLIBOBJS.
47540
47541 2006-10-11  Bruno Haible  <bruno@clisp.org>
47542
47543         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47544         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47545         autoreconf. Instead, invoke autopoint explicitly but move back the
47546         *.m4 files from gnulib.
47547
47548 2006-10-11  Bruno Haible  <bruno@clisp.org>
47549
47550         * gnulib-tool (func_usage): Make module names after --create-testdir
47551         optional.
47552         (func_create_testdir): If no module was specified, use nearly all
47553         modules.
47554
47555 2006-10-12  Jim Meyering  <jim@meyering.net>
47556
47557         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47558         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47559         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47560         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47561         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47562         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47563         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47564         (fts_set_stat_required): New function.
47565         (fts_open): Defer the calls to fts_stat, if possible or requested.
47566         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47567         into fts_stat itself.
47568         (fts_read): Perform any required (deferred) fts_stat call.
47569         (fts_build): Likewise, for the directory we're about to open and read.
47570         In the readdir loop, carefully decide whether each entry will require
47571         an eventual call to fts_stat, using dirent.d_type info if available.
47572         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47573         a command line argument into this function.  Update all callers.
47574         Map a return value of FTS_DOT to FTS_D for a command line argument.
47575         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47576         Thanks to Miklos Szeredi for his tenacity and for the initial
47577         bug report about "find" failing on a FUSE-based file system.
47578
47579         * lib/fts.c (fts_open): Use consistent indentation.
47580
47581 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47582
47583         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47584         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47585         reported by Jim Meyering.  All uses of cache variables renamed
47586         to match Autoconf's.
47587         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47588         the other one.
47589
47590         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47591         Fix misspelling in diagnostic.
47592
47593 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47594
47595         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47596         defined.  Problem reported by Matthew Woehlke.
47597
47598         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47599         Add support for Tandem NonStop R series.
47600         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47601         Use new macro.
47602
47603         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47604         (has_trailing_slash): Omit size arg; all callers changed.
47605         Omit 'inline', since it doesn't help performance and we'd
47606         need to configure it.
47607         Don't count //, ///, etc. as having a trailing slash.
47608         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47609         (rpl_rename_dest_slash): On failure, use rename's errno rather
47610         than (in some cases) an incorrect or junk errno.
47611         Simplify code by removing need to compute length; this does
47612         cause it to make two passes instead of one over the file name,
47613         but it's worth it.
47614
47615         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47616         change, since Autoconf's version may no longer be appropriate now
47617         that we are using CVS Autoconf's version.  Add support for Tandem.
47618
47619 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47620             Bruno Haible  <bruno@clisp.org>
47621
47622         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47623         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47624         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47625         gl_AC_TYPE_LONG_LONG.
47626
47627         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47628         instead of HAVE_LONG_LONG.
47629         * lib/printf-args.c (printf_fetchargs): Likewise.
47630         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47631         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47632         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47633         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47634         gl_AC_TYPE_LONG_LONG.
47635
47636 2006-10-11  Bruno Haible  <bruno@clisp.org>
47637
47638         * m4/longlong.m4: Add comments.
47639         * m4/ulonglong.m4: Likewise.
47640
47641 2006-10-10  Bruno Haible  <bruno@clisp.org>
47642
47643         Make it possible to #define stpcpy, strdup to aliases.
47644         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47645         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47646
47647 2006-10-10  Bruno Haible  <bruno@clisp.org>
47648
47649         Make it possible to #define gcd to an alias.
47650         * lib/gcd.c: Include config.h.
47651
47652 2006-10-10  Bruno Haible  <bruno@clisp.org>
47653
47654         Make it possible to #define c_isascii to an alias.
47655         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47656         defined. Undefine the macros before defining them, to avoid gcc
47657         warnings.
47658         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47659         define NO_C_CTYPE_MACROS early.
47660
47661 2006-10-10  Bruno Haible  <bruno@clisp.org>
47662
47663         Make it possible to #define set_program_name to an alias.
47664         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47665         ENABLE_RELOCATABLE early.
47666
47667 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47668
47669         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47670         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47671         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47672         More generally, don't assume that 64-bit signed int is available
47673         if unsigned int is, and vice versa.
47674         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47675         unsigned symbols, not on their signed counterparts.
47676         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47677         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47678         (UINT64_C, UINTMAX_C):
47679         Likewise.
47680         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47681         unsigned counterparts.
47682         (Have_long_long, Unsigned): New macros.
47683         (Int): Renamed from INT.
47684         (strtoimax): Use the new macros.
47685         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47686         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47687         * modules/inttypes (inttypes.h): Substitute
47688         HAVE_UNSIGNED_LONG_LONG_INT.
47689         * modules/stdint (stdint.h): Likewise.
47690         (Files): Add m4/ulonglong.m4.
47691
47692 2006-10-10  Bruno Haible  <bruno@clisp.org>
47693
47694         Fix a gcc -Wshadow warning.
47695         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47696         to 'bucket'.
47697         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47698         gl_linked_indexof_from_to): Likewise.
47699         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47700         Likewise.
47701         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47702         Likewise.
47703         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47704         Reported by Eric Blake.
47705
47706 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47707
47708         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47709         for NetBSD.  Problem reported by Bruno Haible.
47710
47711 2006-10-09  Jim Meyering  <jim@meyering.net>
47712
47713         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47714         Patch from Bruno Haible.
47715
47716 2006-10-09  Jim Meyering  <jim@meyering.net>
47717
47718         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47719         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47720         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47721
47722 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47723
47724         Don't include <config.h> twice; this doesn't work in some cases,
47725         e.g., when config.h has "#define intmax_t long long int" and
47726         we include <config.h>, <inttypes.h>, <config.h> in that order.
47727         Problem reported by Matthew Woehlke in:
47728         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47729         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47730         * lib/fts-cycle.c: Don't include config.h.
47731         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47732         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47733         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47734         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47735         inttypes.h.
47736         * lib/xstrtoumax.c: Likewise.
47737         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47738         __strtol and the like, so that this module is more like its siblings.
47739         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47740         Remove; no longer needed now that we assume gnulib inttypes.h.
47741
47742 2006-10-08  Bruno Haible  <bruno@clisp.org>
47743
47744         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47745         option.
47746
47747 2006-10-07  Jim Meyering  <jim@meyering.net>
47748
47749         * modules/inttypes (inttypes.h): Revert what seems to have been
47750         an inadvertent part of today's change: use "|", not "/" in the
47751         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47752
47753 2006-10-07  Bruno Haible  <bruno@clisp.org>
47754
47755         * modules/sublist: New file.
47756
47757 2006-10-07  Bruno Haible  <bruno@clisp.org>
47758
47759         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47760         * modules/argz (argz.h): Likewise.
47761         * modules/arpa_inet (arpa/inet.h): Likewise.
47762         * modules/byteswap (byteswap.h): Likewise.
47763         * modules/configmake (configmake.h): Likewise.
47764         * modules/fcntl (fcntl.h): Likewise.
47765         * modules/fnmatch (fnmatch.h): Likewise.
47766         * modules/getopt (getopt.h): Likewise.
47767         * modules/glob (glob.h): Likewise.
47768         * modules/inttypes (inttypes.h): Likewise.
47769         * modules/netinet_in (netinet/in.h): Likewise.
47770         * modules/poll (poll.h): Likewise.
47771         * modules/stdbool (stdbool.h): Likewise.
47772         * modules/stdint (stdint.h): Likewise.
47773         * modules/sys_select (sys/select.h): Likewise.
47774         * modules/sys_socket (sys/socket.h): Likewise.
47775         * modules/sys_stat (sys/stat.h): Likewise.
47776         * modules/sysexits (sysexits.h): Likewise.
47777         * modules/unistd (unistd.h): Likewise.
47778         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47779         Add a "DO NOT EDIT" comment to the generated file.
47780         (func_import): Likewise for gnulib-comp.m4.
47781
47782 2006-10-07  Bruno Haible  <bruno@clisp.org>
47783
47784         * lib/gl_sublist.h: New file.
47785         * lib/gl_sublist.c: New file.
47786
47787 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47788
47789         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47790         name (relative to the original working directory) and the file
47791         name component (relative to the temporary working directory).  All
47792         callers changed.
47793         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47794         * lib/mkdir-p.c (make_dir_parents): Likewise.
47795         * lib/mkdir-p.h (make_dir_parents): Likewise.
47796
47797 2006-10-06  Eric Blake  <ebb9@byu.net>
47798
47799         Define several macros for use by the clean-temp module.
47800         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47801         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47802         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47803
47804         * lib/clean-temp.h (close_stream_temp): New declaration.
47805         * lib/clean-temp.c (includes): Pull in headers according to what
47806         other modules are in use.
47807         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47808
47809 2006-10-06  Bruno Haible  <bruno@clisp.org>
47810
47811         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47812         instead of fopen, fwriteerror.
47813
47814 2006-10-06  Bruno Haible  <bruno@clisp.org>
47815
47816         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47817         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47818         int.
47819         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47820         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47821         Return an error indicator.
47822         Suggested by Eric Blake.
47823
47824 2006-10-06  Bruno Haible  <bruno@clisp.org>
47825
47826         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47827         Reported by Eric Blake.
47828
47829 2006-10-06  Bruno Haible  <bruno@clisp.org>
47830
47831         * modules/closeout (Description): Mention stderr too.
47832
47833 2006-10-06  Bruno Haible  <bruno@clisp.org>
47834         and Paul Eggert  <eggert@cs.ucla.edu>
47835
47836         * lib/closeout.c (close_stdout): Also close stderr.
47837         * lib/closeout.h: Update comment.
47838
47839 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47840
47841         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
47842         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
47843         * lib/dirchownmod.c: Include lchown.h.
47844         * lib/lchown.c: Don't include files that lchown.h now includes.
47845         Don't declare chown, since lchown.h now does that.
47846         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
47847         (lchown): Define to rpl_chown if lchown is declared but
47848         does not exist.  Declare using a prototype if lchown is not
47849         declared.  Add a copyright notice.
47850         * lib/mkstemp.h: Include <unistd.h>.
47851         * lib/openat.c: Include lchown.h.
47852
47853         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
47854         we now test for that separately.
47855         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
47856         rather than O_NOFOLLOW, when testing whether it's possible to
47857         avoid a race condition reliably.
47858         * lib/savewd.c (savewd_chdir): Likewise.
47859
47860         Remove macros that are no longer needed now that stdint.h is
47861         reliable.
47862         * lib/fsusage.c (UINTMAX_MAX): Remove.
47863         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
47864         * lib/utimecmp.c (SIZE_MAX): Remove.
47865
47866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
47867
47868         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
47869         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
47870         O_NOATIME works.
47871
47872 2006-10-05  Bruno Haible  <bruno@clisp.org>
47873
47874         * lib/gl_list.h (gl_sortedlist_search_from_to,
47875         gl_sortedlist_indexof_from_to): New declarations.
47876         (gl_list_implementation): New fields sortedlist_search_from_to,
47877         sortedlist_indexof_from_to.
47878         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
47879         inline functions.
47880         * lib/gl_list.c (gl_sortedlist_search_from_to,
47881         gl_sortedlist_indexof_from_to): New functions.
47882         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
47883         function.
47884         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
47885         (gl_array_sortedlist_search_from_to): New function.
47886         (gl_array_list_implementation): Update.
47887         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
47888         function.
47889         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
47890         (gl_carray_sortedlist_search_from_to): New function.
47891         (gl_carray_list_implementation): Update.
47892         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
47893         gl_linked_sortedlist_indexof_from_to): New functions.
47894         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47895         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47896         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
47897         gl_tree_sortedlist_indexof_from_to): New functions.
47898         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47899         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47900         Update.
47901         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47902         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
47903         Update.
47904
47905 2006-10-05  Bruno Haible  <bruno@clisp.org>
47906
47907         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
47908         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
47909         (struct gl_list_implementation): Add fields search_from_to,
47910         indexof_from_to. Remove fields search, indexof.
47911         (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_list.c (gl_list_search): Use the search_from_to method.
47916         (gl_list_search_from, gl_list_search_from_to): New functions.
47917         (gl_list_indexof): Use the indexof_from_to method.
47918         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
47919         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
47920         gl_array_indexof. Add start_index, end_index arguments.
47921         (gl_array_search_from_to): Renamed from gl_array_search. Add
47922         start_index, end_index arguments.
47923         (gl_array_remove, gl_array_list_implementation): Update.
47924         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
47925         gl_carray_indexof. Add start_index, end_index arguments.
47926         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
47927         start_index, end_index arguments.
47928         (gl_carray_remove, gl_carray_list_implementation): Update.
47929         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
47930         gl_linked_search. Add start_index, end_index arguments.
47931         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
47932         start_index, end_index arguments.
47933         (gl_linked_remove): Update.
47934         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47935         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47936         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
47937         field to 'size_t'.
47938         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
47939         gl_tree_search. Add start_index, end_index arguments.
47940         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47941         start_index, end_index arguments.
47942         (gl_tree_remove): Update.
47943         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47944         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47945         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
47946         function.
47947         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
47948         gl_tree_search. Add start_index, end_index arguments.
47949         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
47950         start_index, end_index arguments.
47951         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47952         Update.
47953         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47954
47955 2006-10-05  Bruno Haible  <bruno@clisp.org>
47956
47957         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
47958
47959         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
47960         fwriteerror_temp): New declarations.
47961         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
47962         (descriptors): New variable.
47963         (cleanup): First, close the descriptors.
47964         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
47965         fclose_temp, fwriteerror_temp): New functions.
47966
47967 2006-10-04  Jim Meyering  <jim@meyering.net>
47968
47969         * lib/fts.c (fts_open): Tiny comment change.
47970
47971 2006-10-04  Bruno Haible  <bruno@clisp.org>
47972
47973         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
47974         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
47975         gl_LOCK_BODY.
47976         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
47977         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
47978         gl_LOCK_EARLY_BODY.
47979         (gl_LOCK): Require gl_LOCK_BODY.
47980
47981 2006-10-04  Bruno Haible  <bruno@clisp.org>
47982
47983         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
47984         (gl_oset_search_atleast): New declaration.
47985         (struct gl_oset_implementation): Add field 'search_atleast'.
47986         (gl_oset_search_atleast): New inline function.
47987         * lib/gl_oset.c (gl_oset_search_atleast): New function.
47988         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
47989         (gl_array_oset_implementation): Update.
47990         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
47991         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
47992         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
47993
47994 2006-10-04  Bruno Haible  <bruno@clisp.org>
47995
47996         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
47997
47998 2006-10-03  Bruno Haible  <bruno@clisp.org>
47999
48000         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
48001         from gl_avltreehash_list_implementation.
48002
48003 2006-10-03  Bruno Haible  <bruno@clisp.org>
48004
48005         * lib/gl_oset.c (gl_oset_add): Fix return type.
48006
48007 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
48008
48009         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
48010
48011 2006-10-02  Eric Blake  <ebb9@byu.net>
48012
48013         * modules/strnlen (Depends-on): Add extensions.
48014
48015 2006-10-02  Eric Blake  <ebb9@byu.net>
48016
48017         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
48018         definition in 2.60+.
48019
48020 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
48021
48022         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
48023         checks.
48024
48025 2006-10-02  Bruno Haible  <bruno@clisp.org>
48026
48027         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
48028         to the AUTOMAKE_OPTIONS.
48029         Reported by Jim Meyering.
48030
48031 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48032
48033         Work around bug in Solaris 10 /proc file system:
48034         /proc/self/fd/NNN/.. isn't the parent directory of
48035         the directory whose file descriptor is NNN.  This needs to
48036         be worked around at run time, not compile time, since a
48037         program might be built on Solaris 8, where things work, and
48038         run on Solaris 10.
48039         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
48040         to use the following interface instead:
48041         (OPENAT_BUFFER_SIZE): New macro.
48042         (openat_proc_name): New function.
48043         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
48044         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
48045         Likewise.
48046         * lib/openat-proc.c: New file.
48047         * modules/openat (Files): Add lib/openat-proc.c.
48048         (Depends-on): Add same-inode, stdbool.
48049         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
48050
48051 2006-09-29  Bruno Haible  <bruno@clisp.org>
48052
48053         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
48054         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
48055         argument. Set stdout_closed before testing for ferror, not after.
48056         (fwriteerror, fwriteerror_no_ebadf): New functions.
48057
48058 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48059
48060         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
48061
48062 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
48063
48064         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
48065         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
48066
48067 2006-09-28  Jim Meyering  <jim@meyering.net>
48068
48069         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
48070         Include <unistd.h>.
48071
48072 2006-09-28  Bruno Haible  <bruno@clisp.org>
48073
48074         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
48075         * modules/linkedhash-list (Depends-on): Likewise.
48076         * modules/rbtreehash-list (Depends-on): Likewise.
48077
48078 2006-09-28  Bruno Haible  <bruno@clisp.org>
48079
48080         * lib/strndup.h: Simplify the redefinition of strndup.
48081         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
48082         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
48083
48084 2006-09-28  Bruno Haible  <bruno@clisp.org>
48085
48086         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
48087         * lib/gl_linkedhash_list.c: Likewise.
48088         * lib/gl_rbtreehash_list.c: Likewise.
48089
48090 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48091
48092         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
48093         getaddrinfo.
48094
48095         * lib/__fpending.h: Don't include <stdio_ext.h> unless
48096         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
48097         it causes <stdio_ext.h> to cause a compile-time error.
48098         Problem reported by Nelson H. F. Beebe.
48099         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
48100         of HAVE_DECL___PENDING.
48101
48102         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
48103         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
48104         declaration.
48105
48106 2006-09-27  Jim Meyering  <jim@meyering.net>
48107
48108         This file could end up with a definition for a function
48109         named __strndup, rather than rpl_strndup on a system with
48110         incomplete weak_alias support.
48111         * lib/strndup.c (strndup): Rename from __strndup.
48112         Remove #defines that used to map __strndup to strndup.
48113         Don't use K&R prototypes.
48114         Remove LIBC-related code, since this file is not sync'd with glibc.
48115         * lib/strndup.h: Revamp, accordingly.
48116         * m4/strndup.m4: Modernize.
48117
48118 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48119
48120         * modules/savewd (Depends-on): Add 'raise'.
48121         * lib/savewd.c: Include <signal.h>, for 'raise'.
48122
48123 2006-09-26  Jim Meyering  <jim@meyering.net>
48124
48125         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
48126         when we detect Darwin 8.7.0's acl_get_file bug.
48127         Rearrange to perform the new (below) run-test while $LIBS
48128         contains any acl-related library.  Set USE_ACL at the end.
48129         (gl_ACL_GET_FILE): New function.
48130
48131 2006-09-26  Eric Blake  <ebb9@byu.net>
48132
48133         * lib/verror.c: Include <config.h> unconditionally.
48134
48135 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
48136
48137         * modules/clock-time (Maintainer): Add self.
48138         * modules/getlogin_r (Depends-on): Add extensions.
48139
48140 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48141
48142         * modules/clock-time: New module.
48143         * modules/nanosleep (Depends-on): Add clock-time.
48144         * modules/gethrxtime (Depends-on): Likewise.
48145         * modules/gettime (Depends-on): Likewise.
48146         * modules/settime (Depends-on): Likewise.
48147
48148         * modules/fts-lgpl: Depend on openat.
48149         * modules/mkancesdirs: Depend on savewd.
48150         * modules/mkdir-p: Likewise.
48151
48152 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48153
48154         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
48155
48156         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
48157         `gl_have_arbitrary_file_name_length_limit' to
48158         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48159         actually works between configure runs.
48160
48161 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48162             Bruno Haible  <bruno@clisp.org>
48163
48164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48165
48166 2006-09-25  Jim Meyering  <jim@meyering.net>
48167
48168         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48169         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48170
48171 2006-09-25  Eric Blake  <ebb9@byu.net>
48172
48173         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48174         exec's in 2006-09-18 patch when shuffling fds.
48175
48176 2006-09-25  Bruno Haible  <bruno@clisp.org>
48177
48178         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48179         Reported by Jim Meyering.
48180
48181 2006-09-24  Jim Meyering  <jim@meyering.net>
48182
48183         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48184         compare a pointer against a literal "0".  That caused failures with
48185         at least HP-UX's hpcc.
48186
48187 2006-09-22  Simon Josefsson  <jas@extundo.com>
48188
48189         * modules/gc-sha1:
48190         * modules/gc-md4:
48191         * modules/gc-hmac-sha1:
48192         * modules/gc-hmac-md5:
48193         * modules/gc-des:
48194         * modules/gc-arcfour: Distribute more files.
48195
48196 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48197
48198         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48199         (gl_linked_iterator_from_to): Initialize struct completely.
48200         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48201         (gl_tree_iterator_from_to): Likewise
48202         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48203         * lib/gl_array_list.c [lint] (gl_array_iterator)
48204         (gl_array_iterator_from_to): Likewise.
48205         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48206         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48207         (gl_carray_iterator_from_to): Likewise.
48208
48209         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48210         * lib/md4.c (md4_process_block): Remove unused variable.
48211         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48212         parentheses for clarity.
48213
48214 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48215
48216         * modules/bison-i18n (Depends-on): Add gettext.
48217
48218 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48219
48220         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48221         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48222         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48223         also add missing comma that caused broken test.
48224         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48225         stdlib.h, for `abort'.
48226         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48227         variables.
48228         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48229         include unistd.h if present, for `rmdir'.
48230         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48231         variables.
48232         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48233         in the process include standard headers for prototypes.
48234         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48235         gets declared on GNU/Linux.
48236         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48237         unistd.h, for `rmdir'.
48238         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48239
48240         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48241         always true.
48242         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48243
48244         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48245
48246 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48247
48248         * gnulib-tool (func_version): Create output all at once.  This
48249         may help avoid triggering unnecessary SIGPIPEs, and at any
48250         rate it doesn't hurt.
48251
48252 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48253             Bruno Haible  <bruno@clisp.org>
48254
48255         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48256         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48257         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48258
48259         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48260         (gl_FUNC_VASPRINTF): Invoke it.
48261
48262 2006-09-22  Bruno Haible  <bruno@clisp.org>
48263
48264         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48265         getloadavg.c as first argument.
48266
48267 2006-09-22  Bruno Haible  <bruno@clisp.org>
48268
48269         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48270         at the beginning of the gl_INIT macro.
48271         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48272         gl_GETLOADAVG.
48273
48274 2006-09-22  Bruno Haible  <bruno@clisp.org>
48275
48276         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48277         module.
48278         Suggested by Ralf Wildenhues.
48279
48280 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48281
48282         Import this patch from libc:
48283
48284         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48285
48286         * lib/regex_internal.c (re_string_reconstruct): Handle
48287         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48288         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48289         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48290         re_string_context_at.
48291
48292         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48293         now requires it.
48294         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48295         gl_REGEX now does it for us.
48296         (gl_REGEX): Add test taken from
48297         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48298
48299         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48300         Check that large offsets work.  Modernize Autoconf usages.
48301         Prefer "yes" to mean a good thing rather than a bad.
48302         Don't put "#define mkstemp" in config.h, as this might interfere
48303         with standard system headers that "#define mkstemp mkstemp64".
48304
48305         * modules/mkstemp (Depends-on): Add extensions, so that
48306         mkstemp is visible on some platforms.
48307         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48308         (Include): Change to "mkstemp.h" from <stdlib.h>.
48309         (Files): Add mkstemp.h.
48310
48311         * lib/mkstemp.h: New file, since some standard headers
48312         #define mkstemp.
48313         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48314         Include "mkstemp.h".
48315         Make the _LIBC code resemble glibc original more,
48316         e.g., use K&R style.
48317         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48318         (mkstemp): Remove, since mkstemp.h does this for us.
48319         * lib/stdlib--.h: Include mkstemp.h.
48320
48321         Import this patch from libc:
48322
48323         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48324
48325         * lib/tempname.c (__gen_tempname): Change attempts_min
48326         into a macro.  Use preprocessor to decide how to initialize
48327         attempts [Coverity CID 67].
48328
48329 2006-09-20  Bruno Haible  <bruno@clisp.org>
48330
48331         * lib/mkdtemp.c: Import from libc.
48332         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48333                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48334                 attempts_min into a macro.  Use preprocessor to decide how to
48335                 initialize attempts [Coverity CID 67].
48336         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48337                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48338                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48339
48340 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48341
48342         * gnulib-tool (func_exit): New function, to allow to pass the
48343         exit status portably through the trap.  Use everywhere.
48344         (--help, --version): Signal a write error.
48345         (trap): catch SIGPIPE, for write errors.
48346         Exit at the end of the trap, with the correct exit status.
48347
48348 2006-09-19  Karl Berry  <karl@gnu.org>
48349
48350         * doc/gnulib.texi: note about the license texinfo files.
48351
48352 2006-09-19  Eric Blake  <ebb9@byu.net>
48353
48354         * gnulib-tool: Avoid space-tab.
48355
48356 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48357
48358         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48359         that prevented coreutils 6.1 from building.  Problem reported
48360         by Petter Reinholdtsen.
48361
48362 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48363
48364         * gnulib-tool (avoidlist): Fix typo that broke options like
48365         --avoid=lock that are used by coreutils bootstrap.
48366
48367 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48368
48369         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48370         more systematically.
48371
48372 2006-09-18  Jim Meyering  <jim@meyering.net>
48373
48374         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48375
48376 2006-09-18  Bruno Haible  <bruno@clisp.org>
48377
48378         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48379
48380 2006-09-18  Bruno Haible  <bruno@clisp.org>
48381
48382         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48383         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48384         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48385         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48386         * m4/gettext.m4: Require autoconf >= 2.52.
48387         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48388         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48389         of gl_cv_header_inttypes_h.
48390
48391 2006-09-18  Bruno Haible  <bruno@clisp.org>
48392
48393         * lib/javaversion.c: Include configmake.h.
48394
48395 2006-09-18  Bruno Haible  <bruno@clisp.org>
48396
48397         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48398         avoid that the while loops be executed in a subshell.
48399
48400 2006-09-18  Bruno Haible  <bruno@clisp.org>
48401
48402         * MODULES.html.sh (func_module): Break long lines.
48403         Suggested by Bruce Korb <bkorb@gnu.org>.
48404
48405 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48406
48407         Speed up by a factor of 1.12.
48408         * gnulib-tool (nl): New variable.
48409         (func_import): Rewrite include directive extraction to only read each
48410         directive once.
48411
48412 2006-09-17  Bruno Haible  <bruno@clisp.org>
48413
48414         * modules/javaversion (Makefile.am): Remove DEFS setting.
48415         (Depends-on): Add configmake, for PKGDATADIR definition.
48416
48417 2006-09-17  Bruno Haible  <bruno@clisp.org>
48418
48419         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48420
48421 2006-09-17  Bruno Haible  <bruno@clisp.org>
48422
48423         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48424         (func_modules_transitive_closure, func_modules_add_dummy,
48425         func_modules_to_filelist, func_import, func_create_testdir,
48426         func_create_megatestdir, ...): Use it wherever possible.
48427         Suggested by Ralf Wildenhues.
48428
48429 2006-09-16  Karl Berry  <karl@gnu.org>
48430
48431         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48432         to avoid sectioning errors.
48433         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48434         [ifinfo]: blank line after @center-ed titles.
48435         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48436         Spell FSF address consistently with others.
48437         (These changes approved by rms.)
48438
48439 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48440
48441         Speed up by a factor of 1.61.
48442         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48443         already checked module names again.
48444
48445 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48446
48447         Speed up by a factor of 1.13.
48448         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48449         for new_files, and the input to func_add_or_update.
48450
48451 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48452
48453         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48454         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48455
48456 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48457
48458         * modules/mkancesdirs (Depends-on): Add fcntl.
48459         * modules/savewd: New file.
48460         * MODULES.html.sh (File system functions): Add savewd.
48461
48462         * modules/configmake (Makefile.am): Add support for the
48463         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48464
48465 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48466
48467         * m4/savewd.m4: New file.
48468
48469 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48470
48471         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48472         (dirchownmod): New arg FD.  All callers changed.
48473         Use FD rather than opening the directory ourself, as opening is
48474         now the caller's responsibility.
48475         * lib/dirchownmod.h: Likewise.
48476         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48477         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48478         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48479         (test_dir): Remove.
48480         (mkancesdirs): Return length of prefix of FILE that has already
48481         been made, or -2 if there is a child doing the work.  Redo
48482         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48483         ".", and treat ".." specially since it might stray back into
48484         already-created areas.  Use a subprocess if necessary.  New arg
48485         WD; all users changed.  MAKE_DIR function should now return 1
48486         if it creates a directory that is not readable.  Return -2 if
48487         a child process is spun off.
48488         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48489         Adjust signature to match code.
48490         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48491         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48492         all users changed.
48493         * lib/savewd.c, lib/savewd.h: New files.
48494
48495 2006-09-15  Jim Meyering  <jim@meyering.net>
48496
48497         * modules/rename-dest-slash: New module.
48498         * MODULES.html.sh (posix_compat): Add it here.
48499
48500         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48501
48502 2006-09-15  Jim Meyering  <jim@meyering.net>
48503
48504         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48505         file.
48506
48507         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48508
48509 2006-09-15  Jim Meyering  <jim@meyering.net>
48510
48511         * lib/rename-dest-slash.c (has_trailing_slash): Use
48512         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48513         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48514         test before testing whether SRC is a directory.
48515         Suggestions from Bruno Haible.
48516
48517         Avoid a warning about an unused variable.
48518         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48519         into the #ifdef block where it's used.
48520
48521         * lib/rename-dest-slash.c: New file.
48522
48523 2006-09-14  Bruno Haible  <bruno@clisp.org>
48524
48525         * lib/allocsa.c: Include <config.h> unconditionally.
48526         * lib/asnprintf.c: Likewise.
48527         * lib/asprintf.c: Likewise.
48528         * lib/c-strcasecmp.c: Likewise.
48529         * lib/c-strcasestr.c: Likewise.
48530         * lib/c-strncasecmp.c: Likewise.
48531         * lib/c-strstr.c: Likewise.
48532         * lib/classpath.c: Likewise.
48533         * lib/clean-temp.c: Likewise.
48534         * lib/concatpath.c: Likewise.
48535         * lib/copy-file.c: Likewise.
48536         * lib/csharpcomp.c: Likewise.
48537         * lib/csharpexec.c: Likewise.
48538         * lib/execute.c: Likewise.
48539         * lib/fatal-signal.c: Likewise.
48540         * lib/findprog.c: Likewise.
48541         * lib/fwriteerror.c: Likewise.
48542         * lib/gl_array_list.c: Likewise.
48543         * lib/gl_array_oset.c: Likewise.
48544         * lib/gl_avltree_list.c: Likewise.
48545         * lib/gl_avltree_oset.c: Likewise.
48546         * lib/gl_avltreehash_list.c: Likewise.
48547         * lib/gl_carray_list.c: Likewise.
48548         * lib/gl_linked_list.c: Likewise.
48549         * lib/gl_linkedhash_list.c: Likewise.
48550         * lib/gl_list.c: Likewise.
48551         * lib/gl_oset.c: Likewise.
48552         * lib/gl_rbtree_list.c: Likewise.
48553         * lib/gl_rbtree_oset.c: Likewise.
48554         * lib/gl_rbtreehash_list.c: Likewise.
48555         * lib/imaxabs.c: Likewise.
48556         * lib/imaxdiv.c: Likewise.
48557         * lib/javacomp.c: Likewise.
48558         * lib/javaexec.c: Likewise.
48559         * lib/javaversion.c: Likewise.
48560         * lib/linebreak.c: Likewise.
48561         * lib/localcharset.c: Likewise.
48562         * lib/lock.c: Likewise.
48563         * lib/mbchar.c: Likewise.
48564         * lib/mbswidth.c: Likewise.
48565         * lib/mkdtemp.c: Likewise.
48566         * lib/pipe.c: Likewise.
48567         * lib/printf-args.c: Likewise.
48568         * lib/printf-parse.c: Likewise.
48569         * lib/progname.c: Likewise.
48570         * lib/progreloc.c: Likewise.
48571         * lib/readlink.c: Likewise.
48572         * lib/sh-quote.c: Likewise.
48573         * lib/stpcpy.c: Likewise.
48574         * lib/stpncpy.c: Likewise.
48575         * lib/strcasecmp.c: Likewise.
48576         * lib/strcasestr.c: Likewise.
48577         * lib/strcspn.c: Likewise.
48578         * lib/striconv.c: Likewise.
48579         * lib/strncasecmp.c: Likewise.
48580         * lib/strnlen1.c: Likewise.
48581         * lib/strstr.c: Likewise.
48582         * lib/strtok_r.c: Likewise.
48583         * lib/tls.c: Likewise.
48584         * lib/tmpdir.c: Likewise.
48585         * lib/unicodeio.c: Likewise.
48586         * lib/unsetenv.c: Likewise.
48587         * lib/vasnprintf.c: Likewise.
48588         * lib/vasprintf.c: Likewise.
48589         * lib/wait-process.c: Likewise.
48590         * lib/xallocsa.c: Likewise.
48591         * lib/xsetenv.c: Likewise.
48592         * lib/xstriconv.c: Likewise.
48593
48594 2006-09-13  Simon Josefsson  <jas@extundo.com>
48595
48596         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48597         that internally, suggested by Ralf Wildenhues
48598         <Ralf.Wildenhues@gmx.de>.
48599
48600 2006-09-13  Simon Josefsson  <jas@extundo.com>
48601
48602         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48603         @LIBOBJS@.
48604         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48605
48606 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48607
48608         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48609         longer worry about uses that don't define HAVE_CONFIG_H.
48610         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48611         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48612         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48613         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48614         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48615         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48616         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48617         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48618         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48619         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48620         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48621         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48622         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48623         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48624         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48625         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48626         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48627         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48628         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48629         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48630         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48631         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48632         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48633         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48634         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48635         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48636         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48637         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48638         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48639         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48640         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48641         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48642         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48643         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48644         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48645         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48646         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48647         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48648         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48649         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48650         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48651         Likewise.
48652
48653 2006-09-13  Eric Blake  <ebb9@byu.net>
48654
48655         * lib/getopt.c: Fix typo in last commit.
48656
48657 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48658
48659         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48660         dgettext.
48661
48662 2006-09-12  Jim Meyering  <jim@meyering.net>
48663
48664         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48665         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48666         Reported by Nelson H. F. Beebe.
48667
48668 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48669
48670         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48671         program_invocation_name and program_invocation_short_name are
48672         initialized.
48673         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48674         and program_invocation_short_name to argp.h, so they are visible
48675         to user programs.
48676         * lib/argp.h: Likewise
48677
48678 2006-09-10  Bruno Haible  <bruno@clisp.org>
48679
48680         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48681         m4/inttypes_h.m4, m4/uintmax_t.m4.
48682
48683 2006-09-10  Bruno Haible  <bruno@clisp.org>
48684
48685         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48686         gl_AC_TYPE_UINTMAX_T.
48687
48688 2006-09-10  Bruno Haible  <bruno@clisp.org>
48689
48690         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48691
48692 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48693
48694         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48695         convention.  Text proposed by Bruno Haible.
48696         (struct argp_option): Document the use of N_() wrappers.
48697
48698         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48699         '\v', and translate the two parts separately, instead of feeding
48700         the whole string to gettext.  This allows to exclude
48701         '\v' from the strings visible to the translator by writing doc
48702         strings as N_("..") "\v" N_("..").
48703
48704 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48705
48706         * config/srclist.txt: Undo latest change; the bug was fixed.
48707
48708 2006-09-09  Bruno Haible  <bruno@clisp.org>
48709
48710         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48711         assignments if building a library without libtool.
48712         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48713         in func_emit_lib_Makefile_am.
48714         (func_import): When building a static library libfoo.a, arrange to
48715         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48716         (func_create_testdir): Likewise.
48717         * modules/gc (configure.ac, Makefile.am): If building statically,
48718         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48719         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48720         * modules/striconv (configure.ac, Makefile.am): Likewise.
48721         Based on a suggestion by Ralf Wildenhues.
48722
48723 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48724
48725         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48726         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48727         Also:
48728
48729         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48730         Add year_2050_test to catch glibc bug 2821
48731         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48732
48733         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48734         Prefer #ifdef to #if.
48735
48736         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48737         Return from 'main' instead of calling 'exit'.
48738
48739 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48740
48741         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48742         returned the maximum time_t value rather than (time_t) -1.
48743         Problem originally reported by William Bardwell
48744         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48745
48746         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48747         Moved to here ...
48748         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48749         ... from here.
48750
48751 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48752
48753         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48754         2821 is fixed.
48755
48756 2006-09-08  Jim Meyering  <jim@meyering.net>
48757
48758         Don't make generated files read-only.  That would bother too many
48759         people.  However, do retain the ability to work when targets are
48760         read-only: remove the destination and temporary files before writing
48761         them (when generated via sed or echo), or by using the -f option for
48762         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48763         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48764         * modules/byteswap, modules/configmake, modules/fcntl:
48765         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48766         * modules/localcharset, modules/netinet_in, modules/poll:
48767         * modules/stdbool, modules/stdint, modules/sys_select:
48768         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48769
48770 2006-09-08  Jim Meyering  <jim@meyering.net>
48771
48772         Avoid new build failure on FreeBSD 6.0.
48773         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48774         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48775         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48776
48777 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48778
48779         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48780
48781 2006-09-07  Jim Meyering  <jim@meyering.net>
48782
48783         Fix global typo in last change: use chmod u-w, not chmod u-x.
48784         Spotted by Paul Eggert and Bruce Korb.
48785         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48786         * modules/byteswap, modules/configmake, modules/fcntl:
48787         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48788         * modules/localcharset, modules/netinet_in, modules/poll:
48789         * modules/stdbool, modules/stdint, modules/sys_select:
48790         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48791
48792 2006-09-06  Jim Meyering  <jim@meyering.net>
48793
48794         Make generated files be read-only.
48795         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48796         Ensure that each generated file is now read-only.
48797         * modules/argz: Likewise.
48798         * modules/arpa_inet: Likewise.
48799         * modules/byteswap: Likewise.
48800         * modules/configmake: Likewise.
48801         * modules/fcntl: Likewise.
48802         * modules/fnmatch: Likewise.
48803         * modules/getopt: Likewise.
48804         * modules/glob: Likewise.
48805         * modules/inttypes: Likewise.
48806         * modules/netinet_in: Likewise.
48807         * modules/poll: Likewise.
48808         * modules/stdbool: Likewise.
48809         * modules/stdint: Likewise.
48810         * modules/sys_select: Likewise.
48811         * modules/sys_socket: Likewise.
48812         * modules/sys_stat: Likewise.
48813         * modules/sysexits: Likewise.
48814         * modules/localcharset: Same as above, but continue using temporary
48815         file named "t-$@" (why different?) rather than the "$@-t" used
48816         everywhere else.
48817
48818         * modules/sysexits (Makefile.am): Replace literal occurrences
48819         of "sysexit.h" more readable, and more consistent, "$@".
48820
48821 2006-09-06  Bruno Haible  <bruno@clisp.org>
48822
48823         * modules/striconv: New file.
48824         * modules/xstriconv: New file.
48825         * MODULES.html.sh (Internationalization functions): Add striconv,
48826         xstriconv.
48827
48828 2006-09-06  Bruno Haible  <bruno@clisp.org>
48829
48830         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
48831         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
48832         not using libtool correctly.
48833
48834 2006-09-06  Bruno Haible  <bruno@clisp.org>
48835
48836         * lib/striconv.h: New file.
48837         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
48838         iconvstring.c.
48839         * lib/xstriconv.h: New file.
48840         * lib/xstriconv.c: New file.
48841
48842 2006-09-06  Bruno Haible  <bruno@clisp.org>
48843
48844         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48845         lib_..._LDFLAGS.
48846
48847 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48848
48849         * lib/argz_.h: Sync from Libtool.
48850
48851         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
48852                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48853
48854         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
48855
48856 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48857
48858         * modules/trim: New file.
48859
48860 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
48861
48862         * lib/trim.h: New file.
48863         * lib/trim.c: New file.
48864
48865 2006-09-05  Bruno Haible  <bruno@clisp.org>
48866
48867         * MODULES.html.sh (String handling): Add trim.
48868
48869 2006-09-04  Karl Berry  <karl@gnu.org>
48870
48871         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
48872         until next release.
48873
48874 2006-09-03  Bruno Haible  <bruno@clisp.org>
48875
48876         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
48877         correctly.
48878
48879 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48880
48881         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
48882         not gl_GETLOADAVG.  Omit unneeded semicolons.
48883         Problems reported by Ralf Wildenhues in
48884         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48885         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
48886         at the end, which is the usual gnulib style.
48887
48888         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
48889         of doing all the work ourselves.
48890         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
48891         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
48892
48893 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48894
48895         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
48896         Problem reported by Ralf Wildenhues in
48897         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
48898
48899         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
48900         HAVE_STRUCT_STATFS_F_FSTYPENAME.
48901
48902 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48903
48904         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
48905         yesterday's patch by changing test -n to test -z.
48906
48907 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48908
48909         * modules/getloadavg (Files): Add m4/getloadavg.m4.
48910         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
48911         the former is now obsolescent.
48912
48913         * modules/chdir-long (Depends-on): Add fcntl.
48914
48915 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48916
48917         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
48918         obsolescent, and programs should use gnulib instead.
48919         * m4/getloadavg.m4: New file, with contents taken from Autoconf
48920         but with prefixes changed.
48921
48922 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48923
48924         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
48925         or stdbool.h, because they might not exist while configuring.
48926
48927         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
48928         Don't include unistd.h or limits.h; not needed, since chdir-long.h
48929         does that for us.
48930         (O_DIRECTORY): Remove.
48931
48932 2006-08-31  Eric Blake  <ebb9@byu.net>
48933
48934         * gnulib-tool: Don't let emacs change spaces to TAB.
48935
48936 2006-08-31  Bruno Haible  <bruno@clisp.org>
48937
48938         * gnulib-tool: When calling func_import more than once, do it in a
48939         subshell.
48940         Reported by Eric Blake <ebb9@byu.net>.
48941
48942 2006-08-31  Bruno Haible  <bruno@clisp.org>
48943
48944         * gnulib-tool (nl): Remove variable.
48945         (sed_transform_lib_file): Use more robust test for config-h module.
48946         (func_import): Fix typo in 2006-08-25 patch.
48947
48948 2006-08-31  Bruno Haible  <bruno@clisp.org>
48949
48950         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
48951         specified, augment Makefile.am variables instead of assigning them.
48952
48953 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48954
48955         Work around a bug in both the Linux and SunOS 64-bit kernels:
48956         nanosleep mishandles sleeps for longer than 2**31 seconds.
48957         Problem reported by Frank v Waveren in
48958         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
48960         Check for nanosleep bug.
48961         (LIB_NANOSLEEP): Append clock_gettime library if needed.
48962
48963 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48964
48965         Work around a bug in both the Linux and SunOS 64-bit kernels:
48966         nanosleep mishandles sleeps for longer than 2**31 seconds.
48967         Problem reported by Frank v Waveren in
48968         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
48969         * lib/nanosleep.c (BILLION): New constant.
48970         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
48971         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
48972         implementation.
48973
48974 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48975
48976         * modules/nanosleep (Depends-on): Add gettime.
48977
48978 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48979         and Simon Josefsson  <jas@extundo.com>
48980         and Oskar Liljeblad  <oskar@osk.mine.nu>
48981
48982         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
48983         * gnulib-tool (func_import): New license type 'unmodifiable license
48984         text'.
48985         * modules/fdl: Use it.  Longer description.
48986         * module/gpl, module/lgpl: New files.
48987
48988 2006-08-30  Jim Meyering  <jim@meyering.net>
48989
48990         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
48991         shadowing the parameter.
48992
48993 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48994
48995         Sync from Libtool:
48996
48997         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48998
48999         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
49000         sharing with gnulib.  Report by Eric Blake.
49001
49002 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49003
49004         * modules/isapipe: New file.
49005         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
49006
49007 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49008
49009         * modules/configmake (Makefile.am): Add a comment, and omit
49010         the CONFIGMAKE_ prefix from generated macro names.  Suggested
49011         by Bruno Haible.
49012
49013 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49014
49015         * m4/isapipe.m4: New file.
49016
49017 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49018
49019         * lib/isapipe.c, lib/isapipe.h: New files.
49020
49021 2006-08-29  Jim Meyering  <jim@meyering.net>
49022
49023         * modules/configmake (Makefile.am): Make configmake.h depend on
49024         Makefile.  Otherwise, a stale configmake.h could hang around.
49025
49026 2006-08-29  Eric Blake  <ebb9@byu.net>
49027
49028         * lib/error.c (error_at_line, print_errno_message): Match libc, after
49029         resolution of upstream bug 3044.
49030
49031 2006-08-29  Bruno Haible  <bruno@clisp.org>
49032
49033         * modules/localcharset (Depends-on): Add configmake.
49034         (Makefile.am): Remove setting of LIBDIR through DEFS.
49035
49036 2006-08-29  Bruno Haible  <bruno@clisp.org>
49037
49038         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
49039         defined.
49040
49041 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49042
49043         * modules/fcntl: New file.
49044         * modules/chdir-safer (Depends-on): Add fcntl.
49045         * modules/fts: Likewise.
49046         * modules/mkdir-p: Likewise.
49047
49048         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
49049         This undoes the most recent change, since we're now addressing the
49050         problem in a different way.
49051
49052         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
49053         into output, since the output might be called Makefile.am even
49054         if $makefile_name is something different.
49055         (func_import): Use $makefile_am rather than
49056         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
49057         empty.
49058
49059         * modules/inttypes (Files): Add m4/inttypes-h.m4.
49060
49061 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49062
49063         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
49064         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
49065         recent change to stdint.m4, since we're now addressing the problem in a
49066         different way.
49067
49068 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49069
49070         * m4/fcntl_h.m4: New file.
49071
49072 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49073
49074         * lib/fcntl_.h: New file.
49075         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
49076         the fcntl module.
49077         * lib/dirchownmod.c: Likewise.
49078         * lib/fts.c: Likewise.
49079
49080         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
49081         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
49082         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
49083         just before including <inttypes.h>, to avoid circular inclusion.
49084
49085 2006-08-28  Jim Meyering  <jim@meyering.net>
49086
49087         * doc/visibility.texi: Actually read and correct the grammar of the
49088         sentence affected by yesterday's change.
49089
49090 2006-08-28  Eric Blake  <ebb9@byu.net>
49091
49092         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
49093         needs wrapper.
49094
49095 2006-08-28  Eric Blake  <ebb9@byu.net>
49096
49097         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
49098
49099 2006-08-28  Eric Blake  <ebb9@byu.net>
49100
49101         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
49102
49103 2006-08-28  Bruno Haible  <bruno@clisp.org>
49104
49105         * modules/c-strstr: New file, from GNU gettext.
49106         * MODULES.html.sh (String handling): Add c-strstr.
49107
49108 2006-08-28  Bruno Haible  <bruno@clisp.org>
49109
49110         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
49111         macros.
49112         Reported by Eric Blake.
49113
49114 2006-08-28  Bruno Haible  <bruno@clisp.org>
49115
49116         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
49117         (VASNPRINTF): Return a string of length > INT_MAX without failing.
49118         * lib/vasprintf.c: Include errno.h, limits.h.
49119         (EOVERFLOW): New fallback definition.
49120         (vasprintf): Test here whether the string length is > INT_MAX.
49121         * lib/vsnprintf.c: Include errno.h, limits.h.
49122         (EOVERFLOW): New fallback definition.
49123         (vsnprintf): Fix bug when generated string was too long for the buffer.
49124         Test here whether the string length is > INT_MAX.
49125
49126 2006-08-28  Bruno Haible  <bruno@clisp.org>
49127
49128         * lib/inttypes_.h (SCNX*): Remove definitions.
49129         Reported by Eric Blake.
49130
49131 2006-08-28  Bruno Haible  <bruno@clisp.org>
49132
49133         * lib/c-strstr.h: New file, from GNU gettext.
49134         * lib/c-strstr.c: New file, from GNU gettext.
49135
49136 2006-08-28  Bruno Haible  <bruno@clisp.org>
49137
49138         * gnulib-tool: Reorder some statements.
49139
49140 2006-08-28  Bruno Haible  <bruno@clisp.org>
49141
49142         * gnulib-tool: New option --makefile-name.
49143         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
49144         $makefile_name.
49145         (func_import): Write $makefile_name to the cache file, and read it from
49146         there unless explicitly specified. Use $makefile_name as file name
49147         instead of Makefile.am. Adjust the recommendations accordingly.
49148
49149 2006-08-28  Bruno Haible  <bruno@clisp.org>
49150
49151         * gnulib-tool (func_verify_module): Check against misapplying patch.
49152
49153 2006-08-28  Bruno Haible  <bruno@clisp.org>
49154
49155         * gnulib-tool (func_relativize, func_relconcat): New functions.
49156         Give an error if --local-dir is given with --update.
49157         Remove trailing slashes from $local_gnulib_dir.
49158         (func_import): Store the relativized $local_gnulib_dir in
49159         gnulib-cache.m4, and read it from there if not specified explicitly.
49160
49161 2006-08-28  Bruno Haible  <bruno@clisp.org>
49162
49163         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49164         is the current directory. Respect also $local_gnulib_dir.
49165
49166 2006-08-28  Bruno Haible  <bruno@clisp.org>
49167             Simon Josefsson  <jas@extundo.com>
49168
49169         BeOS portability.
49170         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49171
49172 2006-08-27  Jim Meyering  <jim@meyering.net>
49173
49174         * doc/visibility.texi: Remove duplicate word: "pointer".
49175
49176 2006-08-26  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49179         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49180         (Makefile.am): Create inttypes.h from inttypes_.h.
49181         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49182
49183         * modules/imaxabs: New file.
49184
49185         * modules/imaxdiv: New file.
49186
49187 2006-08-26  Bruno Haible  <bruno@clisp.org>
49188
49189         * m4/inttypes.m4: New file.
49190         * m4/_inttypes_h.m4: Remove file.
49191         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49192         PRI_MACROS_BROKEN.
49193         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49194
49195         * m4/imaxabs.m4: New file.
49196
49197         * m4/imaxdiv.m4: New file.
49198
49199 2006-08-26  Bruno Haible  <bruno@clisp.org>
49200
49201         * lib/inttypes_.h: New file.
49202         * lib/inttypes.h: Remove file.
49203         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49204
49205         * lib/imaxabs.c: New file.
49206
49207         * lib/imaxdiv.c: New file.
49208
49209 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49210
49211         New config-h module, so that "make" output needn't be cluttered
49212         by -DHAVE_CONFIG_H.
49213         * MODULES.html.sh (Support for building libraries and executables):
49214         Add config-h.
49215         * modules/config-h: New file.
49216         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49217         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49218         the config-h module is used.
49219
49220         New configmake module, so that "make" output needn't be cluttered
49221         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49222         * MODULES.html.sh (Support for building libraries and executables):
49223         Add configmake.
49224         * modules/configmake: New file.
49225
49226 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49227
49228         * m4/config-h.m4: New file.
49229
49230 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         * config/srclist.txt: Add elisp-comp.
49233
49234 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49235
49236         * MODULES.html.sh (Support for building libraries and executables):
49237         Add elisp-comp.
49238         * build-aux/elisp-comp: New file.
49239         * modules/elisp-comp: New file.
49240
49241 2006-08-24  Bruno Haible  <bruno@clisp.org>
49242
49243         * gnulib-tool (func_create_testdir): Use non-default values of
49244         sourcebase and m4base.
49245
49246 2006-08-24  Bruno Haible  <bruno@clisp.org>
49247
49248         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49249         HTML structure.
49250
49251 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49252
49253         * modules/openat (Depends-on): Add lchown.
49254
49255 2006-08-23  Bruno Haible  <bruno@clisp.org>
49256
49257         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49258         of gl_LOCK_EARLY instead of gl_LOCK.
49259
49260 2006-08-23  Bruno Haible  <bruno@clisp.org>
49261
49262         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49263         on OSF/1 to no.
49264         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49265
49266 2006-08-23  Bruno Haible  <bruno@clisp.org>
49267
49268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49269         as unusable.
49270
49271         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49272         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49273         (gl_LOCK): New macro.
49274
49275 2006-08-22  Simon Josefsson  <jas@extundo.com>
49276
49277         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49278         to md5 module.
49279
49280 2006-08-22  Simon Josefsson  <jas@extundo.com>
49281
49282         * MODULES.html.sh: Add "Support for maintaining and release
49283         projects".
49284
49285         * build-aux/gnupload: New file, from coreutils.
49286
49287 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49288
49289         Avoid the need for AC_LIBSOURCES in m4 macros.
49290         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49291         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49292         * modules/check-version (EXTRA_DIST): Add check-version.h.
49293         * modules/crc (EXTRA_DIST): Add crc.h.
49294         * modules/des (EXTRA_DIST): Add des.h.
49295         * modules/gc (EXTRA_DIST): Add gc.h.
49296         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49297         * modules/getline (EXTRA_DIST): Add getline.h.
49298         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49299         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49300         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49301         * modules/md2 (EXTRA_DIST): Add md2.h.
49302         * modules/md4 (EXTRA_DIST): Add md4.h.
49303         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49304         * modules/read-file (EXTRA_DIST): Add read-file.h.
49305         * modules/readline (EXTRA_DIST): Add readline.h.
49306         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49307         rijndael-api-fst.h.
49308
49309 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49310
49311         * m4/rijndael.m4 (gl_ARCFOUR):
49312         * m4/arctwo.m4 (gl_ARCTWO):
49313         * m4/check-version.m4 (gl_CHECK_VERSION):
49314         * m4/crc.m4 (gl_CRC):
49315         * m4/des.m4 (gl_DES):
49316         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49317         * m4/gc.m4 (gl_GC):
49318         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49319         * m4/getline.m4 (gl_FUNC_GETLINE):
49320         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49321         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49322         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49323         * m4/md2.m4 (gl_MD2):
49324         * m4/md4.m4 (gl_MD4):
49325         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49326         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49327         * m4/readline.m4 (gl_FUNC_READLINE):
49328         * m4/rijndael.m4 (gl_RIJNDAEL):
49329         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49330         to get the necessary .h files and whatnot.
49331
49332 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49333
49334         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49335         gnulib rather than the other way around.
49336         * config/srclistvars.sh (COREUTILS): Remove.
49337
49338 2006-08-22  Jim Meyering  <jim@meyering.net>
49339
49340         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49341
49342         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49343
49344 2006-08-22  Eric Blake  <ebb9@byu.net>
49345
49346         * modules/regexprops-generic: New file.
49347         * MODULES.html.sh (Support for building documentation): List it.
49348
49349 2006-08-22  Eric Blake  <ebb9@byu.net>
49350
49351         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49352         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49353         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49354         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49355
49356 2006-08-22  Bruno Haible  <bruno@clisp.org>
49357
49358         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49359         and lib_LTLIBRARIES like the other lib_* variables.
49360
49361 2006-08-22  Bruno Haible  <bruno@clisp.org>
49362
49363         * build-aux/x-to-1.in: New file, from GNU gettext.
49364
49365 2006-08-22  Bruno Haible  <bruno@clisp.org>
49366
49367         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49368         <utmpx.h> exists.
49369
49370 2006-08-22  Bruno Haible  <bruno@clisp.org>
49371
49372         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49373         <utmpx.h> exists.
49374
49375 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49376
49377         BeOS portability.
49378         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49379         exist.
49380         Problem reported by Bruno Haible.
49381
49382 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49383
49384         Avoid the need for AC_LIBSOURCES in m4 macros.
49385         * modules/acl (EXTRA_DIST): Add acl.h.
49386         * modules/argmatch (Files): Add m4/argmatch.m4.
49387         (configure.ac): Add gl_ARGMATCH.
49388         (EXTRA_DIST): Renamed from lib_SOURCES, for
49389         consistency with the other modules.  Remove argmatch.c.
49390         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49391         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49392         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49393         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49394         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49395         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49396         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49397         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49398         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49399         * modules/closeout (EXTRA_DIST): Add closeout.h.
49400         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49401         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49402         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49403         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49404         dirname.h; remove basename.c and stripslash.c.
49405         * modules/exclude (EXTRA_DIST): Add exclude.h.
49406         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49407         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49408         * modules/file-type (EXTRA_DIST): Add file-type.h.
49409         * modules/filemode (EXTRA_DIST): Add filemode.h.
49410         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49411         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49412         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49413         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49414         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49415         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49416         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49417         * modules/getdate (EXTRA_DIST): Add getdate.c.
49418         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49419         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49420         * modules/getpass (EXTRA_DIST): Add getpass.h.
49421         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49422         * modules/group-member (EXTRA_DIST): Add group-member.h.
49423         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49424         * modules/hash (EXTRA_DIST): Add hash.h.
49425         * modules/human (EXTRA_DIST): Add human.h.
49426         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49427         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49428         * modules/lchown (EXTRA_DIST): Add lchown.h.
49429         * modules/long-options (EXTRA_DIST): Add long-options.h.
49430         * modules/lstat (EXTRA_DIST): Add lstat.h.
49431         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49432         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49433         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49434         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49435         * modules/memxor (EXTRA_DIST): Add memxor.h.
49436         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49437         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49438         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49439         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49440         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49441         * modules/physmem (EXTRA_DIST): Add physmem.h.
49442         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49443         * modules/posixver (EXTRA_DIST): Add posixver.h.
49444         * modules/quote (EXTRA_DIST): Add quote.h.
49445         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49446         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49447         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49448         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49449         regex_internal.h regexec.c.
49450         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49451         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49452         * modules/same (EXTRA_DIST): Add same.h.
49453         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49454         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49455         * modules/savedir (EXTRA_DIST): Add savedir.h.
49456         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49457         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49458         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49459         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49460         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49461         * modules/strdup (EXTRA_DIST): Add strdup.h.
49462         * modules/strftime (EXTRA_DIST): Add strftime.h.
49463         * modules/strndup (EXTRA_DIST): Add strndup.h.
49464         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49465         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49466         * modules/time_r (EXTRA_DIST): Add time_r.h.
49467         * modules/timespec (EXTRA_DIST): Add timespec.h.
49468         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49469         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49470         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49471         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49472         * modules/userspec (EXTRA_DIST): Add userspec.h.
49473         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49474         * modules/utimens (EXTRA_DIST): Add utimens.h.
49475         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49476         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49477         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49478         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49479         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49480         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49481         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49482         * modules/yesno (EXTRA_DIST): Add yesno.h.
49483
49484 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49485
49486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49487
49488         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49489         * m4/dev-ino.m4, same-inode.m4: Remove.
49490
49491         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49492         * m4/acl.m4 (AC_FUNC_ACL):
49493         * m4/backupfile.m4 (gl_BACKUPFILE):
49494         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49495         * m4/canon-host.m4 (gl_CANON_HOST):
49496         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49497         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49498         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49499         * m4/cloexec.m4 (gl_CLOEXEC):
49500         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49501         * m4/closeout.m4 (gl_CLOSEOUT):
49502         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49503         * m4/dirname.m4 (gl_DIRNAME):
49504         * m4/exclude.m4 (gl_EXCLUDE):
49505         * m4/exitfail.m4 (gl_EXITFAIL):
49506         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49507         * m4/file-type.m4 (gl_FILE_TYPE):
49508         * m4/filemode.m4 (gl_FILEMODE):
49509         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49510         * m4/fpending.m4 (gl_FUNC_FPENDING):
49511         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49512         * m4/fts.m4 (gl_FUNC_FTS):
49513         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49514         * m4/getdate.m4 (gl_GETDATE):
49515         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49516         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49517         * m4/getpass.m4 (gl_FUNC_GETPASS):
49518         * m4/gettime.m4 (gl_GETTIME):
49519         * m4/getugroups.m4 (gl_GETUGROUPS):
49520         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49521         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49522         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49523         * m4/hash.m4 (gl_HASH):
49524         * m4/idcache.m4 (gl_IDCACHE):
49525         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49526         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49527         * m4/long-options.m4 (gl_LONG_OPTIONS):
49528         * m4/lstat.m4 (gl_FUNC_LSTAT):
49529         * m4/md5.m4 (gl_MD5):
49530         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49531         * m4/memcoll.m4 (gl_MEMCOLL):
49532         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49533         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49534         * m4/memxor.m4 (gl_MEMXOR):
49535         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49536         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49537         * m4/modechange.m4 (gl_MODECHANGE):
49538         * m4/mountlist.m4 (gl_MOUNTLIST):
49539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49540         * m4/openat.m4 (gl_FUNC_OPENAT):
49541         * m4/pathmax.m4 (gl_PATHMAX):
49542         * m4/physmem.m4 (gl_PHYSMEM):
49543         * m4/posixtm.m4 (gl_POSIXTM):
49544         * m4/posixver.m4 (gl_POSIXVER):
49545         * m4/quote.m4 (gl_QUOTE):
49546         * m4/quotearg.m4 (gl_QUOTEARG):
49547         * m4/readtokens.m4 (gl_READTOKENS):
49548         * m4/readutmp.m4 (gl_READUTMP):
49549         * m4/regex.m4 (gl_REGEX):
49550         * m4/safe-read.m4 (gl_SAFE_READ):
49551         * m4/safe-write.m4 (gl_SAFE_WRITE):
49552         * m4/same.m4 (gl_SAME):
49553         * m4/save-cwd.m4 (gl_SAVE_CWD):
49554         * m4/savedir.m4 (gl_SAVEDIR):
49555         * m4/settime.m4 (gl_SETTIME):
49556         * m4/sha1.m4 (gl_SHA1):
49557         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49558         * m4/stat-macros.m4 (gl_STAT_MACROS):
49559         * m4/stat-time.m4 (gl_STAT_TIME):
49560         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49561         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49562         * m4/strdup.m4 (gl_FUNC_STRDUP):
49563         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49564         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49565         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49566         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49567         * m4/time_r.m4 (gl_TIME_R):
49568         * m4/timespec.m4 (gl_TIMESPEC):
49569         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49570         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49571         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49572         * m4/userspec.m4 (gl_USERSPEC):
49573         * m4/utimecmp.m4 (gl_UTIMECMP):
49574         * m4/utimens.m4 (gl_UTIMENS):
49575         * m4/xalloc.m4 (gl_XALLOC):
49576         * m4/xgetcwd.m4 (gl_XGETCWD):
49577         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49578         * m4/xreadlink.m4 (gl_XREADLINK):
49579         * m4/xstrtod.m4 (gl_XSTRTOD):
49580         * m4/yesno.m4 (gl_YESNO):
49581         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49582         to get the necessary .h files and whatnot.
49583
49584 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49585             Bruno Haible  <bruno@clisp.org>
49586
49587         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49588         /bin/sh understanding of '!' conditional negation.
49589
49590 2006-08-21  Jim Meyering  <jim@meyering.net>
49591
49592         * modules/openat (Depends-on): Really alphabetize.
49593
49594         * modules/acl (Depends-on): Add error and quote.
49595
49596         * check-module (find_included_lib_files): Add at-func.c to the
49597         ok-to-include-more-than-once white list.
49598
49599         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49600
49601 2006-08-21  Bruno Haible  <bruno@clisp.org>
49602
49603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49604         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49605         Reported by Martin Lambers <marlam@marlam.de>.
49606
49607 2006-08-21  Bruno Haible  <bruno@clisp.org>
49608
49609         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49610         specify an installation location, don't emit a noinst_LIBRARIES or
49611         noinst_LTLIBRARIES assignment.
49612
49613 2006-08-21  Bruno Haible  <bruno@clisp.org>
49614
49615         BeOS portability.
49616         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49617         BeOS has mbrtowc() but no <wctype.h>.
49618
49619 2006-08-21  Bruno Haible  <bruno@clisp.org>
49620
49621         BeOS portability.
49622         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49623         exist.
49624
49625 2006-08-21  Bruno Haible  <bruno@clisp.org>
49626
49627         BeOS portability.
49628         * lib/mbchar.h: Include <wctype.h> only if it exists.
49629
49630 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49631
49632         Remove files that are no longer needed by their respective modules.
49633         * m4/obstack.m4: Remove.
49634         * m4/strerror_r.m4: Remove.
49635         * m4/uint32_t.m4: Remove.
49636         * m4/uintptr_t.m4: Remove.
49637         * m4/ullong_max.m4: Remove.
49638         * m4/xstrtoimax.m4: Remove.
49639         * m4/xstrtoumax.m4: Remove.
49640
49641         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49642         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49643         dependencies now capture this.
49644
49645         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49646         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49647         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49648         * m4/human.m4 (gl_HUMAN): Likewise.
49649         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49650         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49651
49652         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49653
49654         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49655         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49656         stdint.
49657         * m4/human.m4 (gl_HUMAN): Likewise.
49658         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49659         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49660         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49661         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49662         * m4/xstrtol (gl_XSTRTOL): Likewise.
49663
49664         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49665         AC_TYPE_LONG_LONG_INT.
49666         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49667         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49668         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49669         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49670
49671         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49672         on stdbool.
49673
49674         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49675         (gl_PREREQ_XSTRTOUL): Remove.
49676
49677         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49678
49679         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49680         mode.
49681
49682 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49683
49684         Add and change modules to make it easier for coreutils to use
49685         gnulib-tool.
49686         * modules/backupfile (Files): Remove m4/d-ino.m4.
49687         (Depends-on): Add d-ino.
49688         * modules/cycle-check (Depends-on): Add stdint.
49689         (lib_SOURCES): Add cycle-check.h.
49690         * modules/d-ino: New module.
49691         * modules/d-type: New module.
49692         * modules/error (Files): Remove m4/strerror_r.m4.
49693         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49694         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49695         m4/inttypes_h.m4, m4/uintmax_t.m4.
49696         (Depends-on): Add stdint.
49697         (lib_SOURCES): Add fsusage.h.
49698         * modules/getcwd (Files): Remove d-ino.m4.
49699         (Depends-on): Add d-ino.
49700         * modules/getndelim2 (Depends-on): Add stdint.
49701         * modules/glob (Files): Remove m4/d-type.m4.
49702         (Depends-on): Add d-type.
49703         * modules/host-os: New module.
49704         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49705         m4/inttypes_h.m4, m4/uintmax_t.m4.
49706         * Depends-on: Add stdint.
49707         (lib_SOURCES): Add human.h.
49708         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49709         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49710         m4/uintmax_t.m4, m4/ulonglong.m4.
49711         (Depends-on): Add stdint.
49712         (EXTRA_DIST): Add inttostr.h.
49713         * modules/lchmod: New module.
49714         * modules/link-follow: New module.
49715         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49716         (Depends-on): Add lchmod.
49717         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49718         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49719         (Depends-on): Add stdint.
49720         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49721         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49722         (Depends-on): Add stdint.
49723         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49724         * modules/perl: New module.
49725         * modules/regex (Depends-on): Add stdint.
49726         * modules/rmdir-errno: New module.
49727         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49728         m4/intmax_t.m4.
49729         (Depends-on): Add stdint.
49730         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49731         m4/uintmax_t.m4.
49732         (Depends-on): Add stdint.
49733         * modules/unlink-busy: New module.
49734         * modules/utimecmp (Depends-on): Add stdint.
49735         * modules/uptime: New module.
49736         * modules/winsz-ioctl: New module.
49737         * modules/winsz-termios: New module.
49738         * modules/xnanosleep (Depends-on): Add nanosleep.
49739         * modules/ullong_max: Remove.
49740         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49741         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49742         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49743         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49744         (Depends-on): Add inttypes.
49745         (lib_SOURCES): Add xstrtol.h.
49746         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49747         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49748         * MODULES.html.sh: Move 'assert' into the assert section.
49749         Move 'dummy' into the linking section.
49750         Remove ullong_max.
49751         Add section for compatibility checks for POSIX:2001 functions,
49752         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49753         winsz-ioctl, and winsz-termios into it.
49754         Add lchmod.
49755         Add top-level Misc section and put host-os, perl, and uptime
49756         into it.
49757
49758 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49759
49760         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49761         now assume the stdint module.  Do not include inttypes.h.
49762         * lib/fsusage.h: Likewise.
49763         * lib/getndelim2.c: Likewise.
49764         * lib/human.h: Likewise.
49765         * lib/inttostr.h: Likewise.
49766         * lib/obstack.c: Likewise.
49767         * lib/regex_internal.h: Likewise.
49768         * lib/tempname.c: Likewise.
49769         * lib/utimecmp.c: Likewise.
49770         * lib/xstrtol.h: Likewise.
49771
49772         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49773
49774         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49775         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49776         * lib/xtime.h: Likewise.
49777
49778 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49779
49780         * modules/openat (Files): Add lib/fchmodat.c.
49781         Fixes problem reported by Jay Youngman.
49782
49783 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49784
49785         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49786         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49787
49788 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49789             Bruno Haible  <bruno@clisp.org>
49790
49791         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49792         and is a script that invokes bison. Tighten the code. Add comments.
49793
49794 2006-08-18  Jim Meyering  <jim@meyering.net>
49795
49796         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49797         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49798         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49799         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49800
49801 2006-08-18  Bruno Haible  <bruno@clisp.org>
49802
49803         * modules/bison-i18n: New file.
49804         * MODULES.html.sh (Internationalization functions): Add it.
49805
49806 2006-08-18  Bruno Haible  <bruno@clisp.org>
49807
49808         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49809         sys/statvfs.h. When getmntinfo was found, check its declaration and
49810         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49811
49812 2006-08-18  Bruno Haible  <bruno@clisp.org>
49813
49814         * m4/bison-i18n.m4: New file, from bison.
49815
49816 2006-08-18  Bruno Haible  <bruno@clisp.org>
49817
49818         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49819         (ME_DUMMY): Treat "kernfs" as a dummy.
49820         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49821
49822 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         Update from coreutils.
49825
49826         2006-08-15  Jim Meyering  <jim@meyering.net>
49827
49828         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
49829
49830         2006-01-17  Jim Meyering  <jim@meyering.net>
49831
49832         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
49833
49834         2006-01-11  Jim Meyering  <jim@meyering.net>
49835
49836         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
49837         Check for the lchmod function.
49838
49839 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49840
49841         Update from coreutils.
49842
49843         * lib/__fpending.h: Add copyright notice.
49844         * lib/fprintftime.h: Likewise.
49845         * lib/savedir.c: Use (C) in copyright notice.
49846         * lib/savedir.h: Likewise.
49847
49848         2006-08-15  Jim Meyering  <jim@meyering.net>
49849
49850         * lib/at-func.c: New file, with the logic of all emulated at-functions.
49851         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
49852         in support of the EXPECTED_ERRNO macro.
49853         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
49854         definitions.  Instead, define the appropriate symbols and include
49855         "at-func.c".
49856         * lib/mkdirat.c (mkdirat): Likewise.
49857         * lib/fchmodat.c (fchmodat): Likewise.
49858         (ENOSYS): Remove definition.
49859         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
49860         it.  Don't include "unistd--.h" -- it wasn't ever used.
49861
49862         2006-01-17  Jim Meyering  <jim@meyering.net>
49863
49864         Rewrite fts.c not to change the current working directory,
49865         by using openat, fstatat, fdopendir, etc..
49866
49867         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
49868         (HAVE_OPENAT_SUPPORT): Define.
49869         [_LIBC] (fchdir): Don't undef or define; no longer used.
49870         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
49871         Now, this `function' always succeeds, and consumes its file descriptor
49872         parameter -- so callers must not close such FDs.  Update callers.
49873         (diropen_fd, opendirat, cwd_advance_fd): New functions.
49874         (diropen): Add parameter, SP.  Adjust all callers.
49875         Implement using diropen_fd, rather than open.
49876         (fts_open): Initialize new member, fts_cwd_fd.
49877         Remove fts_rft-setting code.
49878         (fts_close): Close fts_cwd_fd, if necessary.
49879         (__opendir2): Define in terms of opendir or opendirat,
49880         depending on whether the FST_NOCHDIR flag is set.
49881         (fts_build): Since fts_safe_changedir consumes its FD, and since
49882         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
49883         and close the dup'd file descriptor upon failure.
49884         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
49885         (fts_safe_changedir): Tweak semantics to reflect that this function
49886         now calls cwd_advance_fd and hence consumes its FD argument.
49887         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
49888         [struct FTS] (fts_rft): Remove now-unused member.
49889         [struct FTS] (fts_cycle.state): Improve comment.
49890
49891         * lib/openat.c (openat_needs_fchdir): New function.
49892         * lib/openat.h (openat_needs_fchdir): Declare it.
49893
49894 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49895
49896         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
49897         Problem and fix reported by Pádraig Brady in
49898         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
49899
49900 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49901
49902         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
49903
49904 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49905
49906         * lib/memcoll.c (memcoll): Optimize for the common case where the
49907         arguments are bytewise equal.
49908
49909 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49910
49911         * doc/regexprops-generic.texi: Add a copyright notice.
49912
49913 2006-08-15  Bruno Haible  <bruno@clisp.org>
49914
49915         * modules/tmpdir (License): Change to LGPL.
49916
49917 2006-08-15  Bruno Haible  <bruno@clisp.org>
49918
49919         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
49920         module.
49921
49922 2006-08-14  Simon Josefsson  <jas@extundo.com>
49923
49924         * config/srclist.txt: Add gnupload.
49925
49926 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49927
49928         Change copyright notice from LGPL 2 to GPL 2, since that's the
49929         standard form used in the gnulib repository.
49930         * tests/test-lock.c: Likewise.
49931         * tests/test-stdint.c: Likewise.
49932         * tests/test-tls.c: Likewise.
49933
49934         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
49935         prelude-manager.  User shorter URLs for GNU projects, without '?'.
49936         Add copyright notice.
49937
49938         * check-module: Add copyright notice.  Output a copyright
49939         notice if "--version" is specified.
49940         * modules/COPYING: New file.
49941         * tests/test-getaddrinfo.c: Add copyright notice.
49942         * tests/test-verify.c: Likewise.
49943
49944 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49945
49946         Change copyright notice from LGPL 2 to GPL 2, since that's the
49947         standard form used in the gnulib repository.
49948         * lib/lock.c: LGPL -> GPL.
49949         * lib/lock.h: Likewise.
49950         * lib/strnlen1.c: Likewise.
49951         * lib/strnlen1.h: Likewise.
49952         * lib/tls.c: Likewise.
49953         * lib/tls.h: Likewise.
49954         * lib/tmpdir.c: Likewise.
49955
49956         * lib/TODO: Remove; this belongs only in coreutils.
49957
49958 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49959
49960         Add copyright notices to long-enough files that lack them, since
49961         otherwise the files aren't clearly free.  Use the same notice that
49962         getdate.texi already uses.
49963         * doc/alloca-opt.texi: Add copyright notice.
49964         * doc/alloca.texi: Likewise.
49965         * doc/ctime.texi: Likewise.
49966         * doc/functions.texi: Likewise.
49967         * doc/gcd.texi: Likewise.
49968         * doc/gnulib-tool.texi: Likewise.
49969         * doc/inet_ntoa.texi: Likewise.
49970         * doc/visibility.texi: Likewise.
49971
49972         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
49973         * doc/quote.texi: Add copyright notice.
49974
49975         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
49976         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
49977         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
49978         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
49979         is now obsolete, and give a pointer to the Sun list.
49980         Add copyright notice.
49981
49982 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49983
49984         * config/srclistvars.sh: Add copyright notice.
49985
49986 2006-08-14  Eric Blake  <ebb9@byu.net>
49987
49988         Import the following change from libc:
49989
49990         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
49991
49992         Upstream bug 2997.
49993         * lib/misc/error.c: Add space between program name and message if file
49994         name is missing.
49995
49996 2006-08-12  Karl Berry  <karl@gnu.org>
49997
49998         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
49999         remove, these originate in gnulib now.
50000
50001 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50002
50003         * doc/Makefile (standards.info standards.html standards.dvi):
50004         Also depend on make-stds.texi.
50005
50006 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50007
50008         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
50009         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
50010
50011         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
50012         in wchar_t.  Problem reported by Eric Blake.
50013
50014         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
50015         LEN is smaller than SIZE.  Suggested by Bruno Haible.
50016         Also, help the compiler to keep LEN in a register.
50017
50018 2006-08-11  Eric Blake  <ebb9@byu.net>
50019
50020         * users.txt: Sort.  Add tar.
50021
50022 2006-08-11  Bruno Haible  <bruno@clisp.org>
50023
50024         * users.txt: New file.
50025
50026 2006-08-11  Bruno Haible  <bruno@clisp.org>
50027
50028         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
50029         before <wchar.h>. Needed for OSF/1 and BSD/OS.
50030
50031 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50032
50033         * modules/snprintf (Depends-on): Remove minmax.
50034         (Maintainer): Add self and Bruno.
50035
50036 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50037
50038         * lib/.cppi-disable: Add snprintf.h, socket_.h.
50039         * lib/snprintf.c: Include <errno.h> and <limits.h>.
50040         (EOVERFLOW): Define if the system does not.
50041         Do not include "minmax.h"; it wasn't used.
50042         (snprintf): Don't assume size_t promotes to an unsigned type.
50043         Fix bug when generated string was too long for the buffer: the
50044         buffer's contents are supposed to be the initial prefix of the
50045         output.  Don't assume vasnprintf returns EOVERFLOW if the size
50046         exceeds INT_MAX; do the check ourselves.
50047
50048         Import the following changes from libc:
50049
50050         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
50051
50052         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
50053         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
50054         set wc to the byte which couldn't be converted.
50055         (re_string_reconstruct): Don't clear valid_raw_len before calling
50056         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
50057         tip_context using re_string_context_at.
50058
50059         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
50060
50061         * lib/posix/regex.h: g++ still cannot handled [restrict].
50062
50063         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
50064
50065         * lib/posix/regex.h: Remove special handling for VMS.
50066
50067 2006-08-10  Jim Meyering  <jim@meyering.net>
50068
50069         * modules/same-inode: New module.
50070         * modules/dev-ino: New module.
50071         * modules/cycle-check: Depend on these modules, rather than simply
50072         including their .h files.
50073         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
50074         required via m4/cycle-check.m4.
50075         * modules/same: Depend on new same-inode module, rather than
50076         including same-inode.h.
50077         * modules/chdir-safer: New file.
50078
50079         * modules/chown (Depends-on): Add stat-macros.
50080
50081 2006-08-10  Jim Meyering  <jim@meyering.net>
50082
50083         * m4/cycle-check.m4: New file.
50084         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
50085         * m4/dev-ino.m4, m4/same-inode.m4: New files.
50086
50087 2006-08-10  Eric Blake  <ebb9@byu.net>
50088
50089         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
50090         in from original proposal.
50091
50092 2006-08-10  Eric Blake  <ebb9@byu.net>
50093         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50094
50095         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
50096         namespace.
50097
50098 2006-08-10  Bruno Haible  <bruno@clisp.org>
50099
50100         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
50101         as well.
50102
50103 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50104
50105         Sync from coreutils.
50106
50107         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
50108
50109         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
50110         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
50111
50112 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50113
50114         * modules/restrict: Remove; no longer needed now that we assume
50115         Autoconf 2.59 or later.
50116         * MODULES.html.sh: Remove 'restrict'.
50117         * modules/argp (Depends-on): Remove 'restrict'.
50118         * modules/base64 (Depends-on): Likewise.
50119         * modules/gc (Depends-on): Likewise.
50120         * modules/getaddrinfo (Depends-on): Likewise.
50121         * modules/glob (Depends-on): Likewise.
50122         * modules/inet_ntop (Depends-on): Likewise.
50123         * modules/inet_pton (Depends-on): Likewise.
50124         * modules/memxor (Depends-on): Likewise.
50125         * modules/regex (Depends-on): Likewise.
50126         * modules/strtok_r (Depends-on): Likewise.
50127         * modules/time_r (Depends-on): Likewise.
50128
50129 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50130
50131         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
50132         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
50133         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50134         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
50135         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
50136         * m4/memxor.m4 (gl_MEMXOR): Likewise.
50137         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
50138         gl_C_RESTRICT replaced by AC_C_RESTRICT.
50139
50140         Merge from coreutils.
50141         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
50142         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
50143         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50144         * m4/time_r.m4 (gl_TIME_R): Likewise.
50145
50146 2006-08-09  Karl Berry  <karl@gnu.org>
50147
50148         * config/srclist.txt: no more gettext-tools, per Bruno.
50149
50150 2006-08-08  Eric Blake  <ebb9@byu.net>
50151
50152         * modules/verror: New module.
50153         * MODULES.html.sh: Document it.
50154
50155 2006-08-08  Eric Blake  <ebb9@byu.net>
50156
50157         * lib/verror.h, lib/verror.c: New files.
50158
50159 2006-08-08  Eric Blake  <ebb9@byu.net>
50160
50161         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50162         verror_at_line output complies with GNU Coding Standards even when
50163         file is NULL.
50164
50165 2006-08-07  Bruno Haible  <bruno@clisp.org>
50166
50167         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50168         versions of AIX.
50169         Reported by Ralf Wildenhues.
50170
50171 2006-08-07  Bruno Haible  <bruno@clisp.org>
50172
50173         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50174         in an AC_DEFUN. Needed so that the autoconf snippets can use
50175         AC_REQUIRE.
50176
50177 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50178
50179         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50180         Initialize pkgdata_DATA.
50181         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50182         overriding it.
50183
50184 2006-08-06  Eric Blake  <ebb9@byu.net>
50185
50186         * lib/error.h: Fold in some upstream changes from glibc.
50187         * lib/error.c: Likewise.
50188
50189 2006-08-04  Bruno Haible  <bruno@clisp.org>
50190
50191         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50192         Make the mostlyclean-local rule depend on mostlyclean-generic.
50193         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50194
50195 2006-07-31  Bruno Haible  <bruno@clisp.org>
50196
50197         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50198         <stdlib.h>, <string.h>.
50199
50200 2006-07-30  Bruno Haible  <bruno@clisp.org>
50201
50202         * modules/readlink (License): Change to LGPL.
50203
50204 2006-07-30  Bruno Haible  <bruno@clisp.org>
50205
50206         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50207         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50208         set PKGDATADIR to point to it.
50209
50210 2006-07-30  Bruno Haible  <bruno@clisp.org>
50211
50212         * modules/csharpexec (configure.ac): Comment out macro invocation.
50213         * modules/javaexec (configure.ac): Likewise.
50214         * modules/javacomp-script (configure.ac): Likewise.
50215
50216         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50217
50218 2006-07-30  Bruno Haible  <bruno@clisp.org>
50219
50220         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50221         linked-list.
50222
50223 2006-07-30  Bruno Haible  <bruno@clisp.org>
50224
50225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50226
50227 2006-07-30  Bruno Haible  <bruno@clisp.org>
50228
50229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50230         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50231         get removed.
50232
50233 2006-07-29  Bruno Haible  <bruno@clisp.org>
50234
50235         Make it possible for gnulib-tool to work with locally modified or
50236         augmented gnulib repositories.
50237         * gnulib-tool (func_usage): Document --local-dir option.
50238         (local_gnulib_dir): New variable.
50239         Handle --local-dir option.
50240         (func_lookup_file): New function.
50241         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50242         (func_get_description, func_get_filelist, func_get_description,
50243         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50244         func_get_automake_snippet, func_get_include_directive,
50245         func_get_license, func_get_maintainer): Use func_lookup_file.
50246         (func_import, func_create_testdir): Use func_lookup_file.
50247
50248 2006-07-29  Bruno Haible  <bruno@clisp.org>
50249
50250         * modules/setenv (Depends-on): Add unistd.
50251
50252 2006-07-29  Bruno Haible  <bruno@clisp.org>
50253
50254         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50255
50256 2006-07-29  Bruno Haible  <bruno@clisp.org>
50257
50258         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50259
50260 2006-07-29  Bruno Haible  <bruno@clisp.org>
50261
50262         * gnulib-tool (import, update): If there is no Makefile.am, look at
50263         aclocal.m4, instead of bailing out.
50264
50265 2006-07-29  Bruno Haible  <bruno@clisp.org>
50266
50267         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50268         Categorize the options by when they are useful.
50269
50270 2006-07-29  Bruno Haible  <bruno@clisp.org>
50271
50272         * gnulib-tool (func_usage): Document option --no-libtool.
50273         Handle option --no-libtool.
50274         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50275         for changed semantics of $libtool variable.
50276         (func_import): Likewise. If libtool is not used, show this through
50277         an option --no-libtool.
50278         (func_create_testdir): Update.
50279
50280 2006-07-29  Bruno Haible  <bruno@clisp.org>
50281
50282         * gnulib-tool (func_import): Extend error message about missing
50283         --doc-base.
50284
50285 2006-07-29  Bruno Haible  <bruno@clisp.org>
50286
50287         * gnulib-tool (func_import): Don't create the $docbase directory if
50288         there is no file to store there.
50289
50290 2006-07-29  Bruno Haible  <bruno@clisp.org>
50291
50292         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50293         relevant, look for configure.ac there, not in the current directory.
50294         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50295
50296 2006-07-29  Bruno Haible  <bruno@clisp.org>
50297
50298         * gnulib-tool (SORT): New variable.
50299         (func_usage): Undocument --assume-autoconf option.
50300         Remove --assume-autoconf option handling.
50301         (autoconf_minversion): Determine from the contents of configure.ac.
50302         (func_import): Remove autoconf_minversion handling.
50303         Suggested by Eric Blake.
50304
50305 2006-07-29  Bruno Haible  <bruno@clisp.org>
50306
50307         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50308
50309 2006-07-29  Bruno Haible  <bruno@clisp.org>
50310
50311         * config/srclist.txt (*setenv.[ch]): Remove rules.
50312
50313 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50314
50315         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50316
50317 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50318
50319         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50320         arpa/inet.h.
50321
50322 2006-07-28  Simon Josefsson  <jas@extundo.com>
50323
50324         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50325         * modules/inet_pton (Depends-on): Likewise.
50326
50327 2006-07-28  Simon Josefsson  <jas@extundo.com>
50328
50329         * m4/netinet_in_h.m4: New file.
50330
50331 2006-07-28  Simon Josefsson  <jas@extundo.com>
50332
50333         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50334         #include's.
50335
50336 2006-07-28  Simon Josefsson  <jas@extundo.com>
50337
50338         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50339         #include's.
50340
50341 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50342
50343         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50344         setgid on directories only if they set these bits.
50345         * lib/modechange.h: Remove obsolete comment about masks.
50346
50347 2006-07-28  Eric Blake  <ebb9@byu.net>
50348
50349         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50350         macro expansion.
50351
50352 2006-07-28  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50355
50356 2006-07-28  Bruno Haible  <bruno@clisp.org>
50357
50358         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50359
50360 2006-07-28  Bruno Haible  <bruno@clisp.org>
50361
50362         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50363         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50364         Define fallbacks.
50365         Avoids link error on FreeBSD 4.x.
50366         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50367
50368         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50369         encoding.
50370         * lib/mbswidth.c (iswcntrl): Likewise.
50371
50372 2006-07-27  Bruno Haible  <bruno@clisp.org>
50373
50374         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50375         test.
50376
50377 2006-07-27  Bruno Haible  <bruno@clisp.org>
50378
50379         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50380         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50381         defined.
50382
50383 2006-07-26  Eric Blake  <ebb9@byu.net>
50384
50385         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50386
50387 2006-07-26  Eric Blake  <ebb9@byu.net>
50388
50389         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50390         like mingw that lack mkstemp.
50391         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50392         avoid compilation warning on mingw.
50393
50394 2006-07-26  Bruno Haible  <bruno@clisp.org>
50395
50396         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50397         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50398         INT_FAST*_MIN, INTPTR_MIN.
50399
50400 2006-07-25  Bruno Haible  <bruno@clisp.org>
50401
50402         * modules/version-etc (Depends-on): Add stdarg.
50403
50404 2006-07-25  Bruno Haible  <bruno@clisp.org>
50405
50406         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50407         complex commands.
50408
50409 2006-07-25  Bruno Haible  <bruno@clisp.org>
50410
50411         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50412         defined in <stdarg.h> or config.h.
50413
50414 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50415
50416         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50417         (gl_STDIO_SAFER): Remove.
50418
50419 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50420
50421         * MODULES.html.sh (File stream based Input/Output):
50422         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50423         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50424         * modules/fopen-safer, modules/tmpfile-safer: New files.
50425         * modules/stdio-safer: Remove.
50426
50427 2006-07-24  Bruno Haible  <bruno@clisp.org>
50428
50429         * modules/tmpdir: New file.
50430         * MODULES.html.sh (File system functions): Add it.
50431
50432 2006-07-24  Bruno Haible  <bruno@clisp.org>
50433
50434         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50435         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50436
50437 2006-07-24  Bruno Haible  <bruno@clisp.org>
50438
50439         * modules/clean-temp: New file.
50440
50441 2006-07-24  Bruno Haible  <bruno@clisp.org>
50442
50443         * m4/tmpdir.m4: New file, from GNU gettext.
50444
50445 2006-07-24  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/tmpdir.h: New file, from GNU gettext.
50448         * lib/tmpdir.c: New file, from GNU gettext.
50449
50450 2006-07-24  Bruno Haible  <bruno@clisp.org>
50451
50452         * lib/clean-temp.h: New file, from GNU gettext.
50453         * lib/clean-temp.c: New file, from GNU gettext.
50454
50455 2006-07-23  Eric Blake  <ebb9@byu.net>
50456
50457         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50458         (Depends-on): Add binary-io.
50459
50460 2006-07-23  Eric Blake  <ebb9@byu.net>
50461
50462         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50463
50464 2006-07-23  Eric Blake  <ebb9@byu.net>
50465
50466         * lib/tmpfile-safer.c: New file.
50467         * lib/stdio-safer.h (fopen_safer): Add prototype.
50468         * lib/stdio--.h (tmpfile): Make safer.
50469
50470 2006-07-23  Bruno Haible  <bruno@clisp.org>
50471
50472         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50473         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50474         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50475         gl_linked_remove_at): Use it.
50476
50477 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50478         and Simon Josefsson <jas@extundo.com>
50479
50480         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50481
50482         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50483
50484 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50485
50486         * modules/close-stream: New file.
50487         * modules/closeout (Description): Make it clear that it exits
50488         with a diagnostic on error.
50489         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50490         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50491
50492 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50493
50494         * m4/close-stream.m4: New file.
50495
50496 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50497
50498         * lib/close-stream.c, lib/close-stream.h: New files.
50499
50500 2006-07-22  Bruno Haible  <bruno@clisp.org>
50501
50502         Merge from GNU gettext 0.15.
50503
50504         2006-05-01  Bruno Haible  <bruno@clisp.org>
50505
50506                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50507
50508         2006-07-22  Bruno Haible  <bruno@clisp.org>
50509
50510                 * modules/javaversion: New file.
50511                 * MODULES.html.sh (Java): Add javaversion.
50512
50513         2006-03-12  Bruno Haible  <bruno@clisp.org>
50514
50515                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50516
50517         2005-12-04  Bruno Haible  <bruno@clisp.org>
50518
50519                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50520                 (untested).
50521
50522         2006-06-21  Bruno Haible  <bruno@clisp.org>
50523
50524                 Avoid warnings from recent versions of mcs.
50525                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50526                 -o, -L, -r any more. Use options documented since mcs-1.0
50527                 instead. Similarly for -g.
50528
50529         2005-12-04  Bruno Haible  <bruno@clisp.org>
50530
50531                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50532                 .resources, not .resource.
50533
50534         2005-07-09  Bruno Haible  <bruno@clisp.org>
50535
50536                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50537                 add a .dll suffix.
50538                 Reported by Mark Junker <mjscod@gmx.de>.
50539
50540         2006-07-22  Bruno Haible  <bruno@clisp.org>
50541
50542                 * modules/gettext: Upgrade to gettext-0.15.
50543                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50544                 m4/visibility.m4.
50545                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50546
50547 2006-07-22  Bruno Haible  <bruno@clisp.org>
50548
50549         Merge from GNU gettext 0.15.
50550
50551         2006-03-25  Bruno Haible  <bruno@clisp.org>
50552
50553                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50554
50555         2006-07-21  Bruno Haible  <bruno@clisp.org>
50556
50557                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50558                 "1.1".
50559
50560         2006-05-09  Bruno Haible  <bruno@clisp.org>
50561
50562                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50563                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50564                 for the conftestver execution.
50565
50566         2006-05-01  Bruno Haible  <bruno@clisp.org>
50567
50568                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50569                 optional target-version argument. Verify that the compiler
50570                 groks source of the specified source-version, or add -source
50571                 option as necessary. Verify that the compiler produces
50572                 bytecode in the specified target-version, or add -target and
50573                 -source options as necessary. Make the result of the test
50574                 available as variable CONF_JAVAC. Also log error output in
50575                 config.log.
50576
50577         2006-03-11  Bruno Haible  <bruno@clisp.org>
50578
50579                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50580
50581         2006-05-09  Bruno Haible  <bruno@clisp.org>
50582
50583                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50584                 CLASSPATH_SEPARATOR to a semicolon.
50585
50586         2006-03-12  Bruno Haible  <bruno@clisp.org>
50587
50588                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50589                 available as variable CONF_JAVA, for subsequent autoconf
50590                 tests. Also log error output in config.log.
50591
50592         2006-07-19  Bruno Haible  <bruno@clisp.org>
50593
50594                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50595                 that getline works on glibc2 systems. Needed to avoid trouble
50596                 in relocatable.c.
50597                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50598
50599         2005-12-04  Bruno Haible  <bruno@clisp.org>
50600
50601                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50602                 launcher (untested).
50603
50604         2005-12-04  Bruno Haible  <bruno@clisp.org>
50605
50606                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50607
50608         2006-07-22  Bruno Haible  <bruno@clisp.org>
50609
50610                 * gettext.m4: Update from GNU gettext-0.15.
50611                 * nls.m4: Likewise.
50612                 * po.m4: Likewise.
50613                 * inttypes-pri.m4: Likewise.
50614                 * inttypes-h.m4: Renamed from inttypes.m4.
50615                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50616
50617 2006-07-22  Bruno Haible  <bruno@clisp.org>
50618
50619         Merge from GNU gettext 0.15.
50620
50621         2005-07-05  Bruno Haible  <bruno@clisp.org>
50622
50623                 * printf-args.c (printf_fetchargs): Work around broken
50624                 definition of wint_t on mingw.
50625
50626         2005-02-12  Bruno Haible  <bruno@clisp.org>
50627
50628                 * xallocsa.h: Add extern "C" for C++.
50629
50630         2006-05-17  Bruno Haible  <bruno@clisp.org>
50631
50632                 Cygwin portability.
50633                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50634
50635         2006-04-30  Bruno Haible  <bruno@clisp.org>
50636
50637                 * progreloc.c: Include <mach-o/dyld.h> if available.
50638                 (find_executable): Use _NSGetExecutablePath when possible.
50639
50640         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50641
50642                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50643                 function.
50644
50645         2005-12-29  Bruno Haible  <bruno@clisp.org>
50646
50647                 * progreloc.c (set_program_name_and_installdir): Fix
50648                 compilation error.
50649
50650         2005-12-04  Bruno Haible  <bruno@clisp.org>
50651
50652                 Cygwin portability.
50653                 * progreloc.c: Include <windows.h> also on Cygwin.
50654                 (find_executable): Add support for Cygwin.
50655                 (set_program_name_and_installdir): Handle also platforms with
50656                 nonempty EXEEXT.
50657
50658         2006-07-11  Bruno Haible  <bruno@clisp.org>
50659
50660                 * javacomp.c: Fix a comment.
50661                 Reported by Jim Meyering.
50662
50663         2006-04-30  Bruno Haible  <bruno@clisp.org>
50664
50665                 * javacomp.h (compile_java_class): Add source_version,
50666                 target_version arguments.
50667                 * javacomp.c: Rewritten to choose only a compiler that
50668                 respects the specified source_version and target_version.
50669
50670         2006-06-27  Bruno Haible  <bruno@clisp.org>
50671
50672                 Assume correct S_ISDIR macro.
50673                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50674
50675         2006-07-22  Bruno Haible  <bruno@clisp.org>
50676
50677                 * javaversion.h: New file, from GNU gettext.
50678                 * javaversion.c: New file, from GNU gettext.
50679                 * javaversion.java: New file, from GNU gettext.
50680                 * javaversion.class: New file, from GNU gettext.
50681
50682         2006-05-17  Bruno Haible  <bruno@clisp.org>
50683
50684                 Cygwin portability.
50685                 * javaexec.c (execute_java_class): Test for jview program
50686                 also on Cygwin.
50687
50688         2006-04-09  Bruno Haible  <bruno@clisp.org>
50689
50690                 * fatal-signal.c: Don't include string.h.
50691                 (at_fatal_signal): Use a copying loop instead of memcpy.
50692
50693         2005-12-04  Bruno Haible  <bruno@clisp.org>
50694
50695                 * csharpexec.c: Add support for 'clix' launcher (untested).
50696                 (execute_csharp_using_sscli): New function.
50697                 (execute_csharp_program): Call it.
50698
50699         2006-06-21  Bruno Haible  <bruno@clisp.org>
50700
50701                 Avoid warnings from recent versions of mcs.
50702                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50703                 -o, -L, -r any more. Use options documented since mcs-1.0
50704                 instead. Similarly for -g.
50705
50706         2005-07-09  Bruno Haible  <bruno@clisp.org>
50707
50708                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50709                 add a .dll suffix.
50710                 Reported by Mark Junker <mjscod@gmx.de>.
50711
50712         2006-06-17  Bruno Haible  <bruno@clisp.org>
50713
50714                 * config.charset: Update for NetBSD 3.0.
50715
50716         2006-05-17  Bruno Haible  <bruno@clisp.org>
50717
50718                 Cygwin portability.
50719                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50720
50721         2006-05-16  Bruno Haible  <bruno@clisp.org>
50722
50723                 * localcharset.c [CYGWIN]: Include <windows.h>.
50724                 (get_charset_aliases): For Cygwin, return the same CPxxx
50725                 aliases list as under WIN32.
50726                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50727                 the environment variables. Fall back to GetACP().
50728
50729         2006-04-05  Bruno Haible  <bruno@clisp.org>
50730
50731                 * config.charset: Update Juan Manuel Guerrero's address.
50732
50733         2005-02-12  Bruno Haible  <bruno@clisp.org>
50734
50735                 * allocsa.h: Add extern "C" for C++.
50736
50737         2005-02-10  Bruno Haible  <bruno@clisp.org>
50738
50739                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50740                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50741
50742         2006-07-22  Bruno Haible  <bruno@clisp.org>
50743
50744                 * gettext.h: Update to GNU gettext-0.15.
50745
50746 2006-07-22  Bruno Haible  <bruno@clisp.org>
50747
50748         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50749         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50750         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50751
50752 2006-07-21  Eric Blake  <ebb9@byu.net>
50753
50754         * modules/stdlib-safer: New file.
50755         * MODULES.html.sh (File stream based Input/Output): Add
50756         stdlib-safer.
50757
50758 2006-07-21  Eric Blake  <ebb9@byu.net>
50759
50760         * lib/stdlib-safer.h: New file from coreutils, required by
50761         stdlib--.h.
50762
50763 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50764
50765         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50766
50767 2006-07-20  Bruno Haible  <bruno@clisp.org>
50768
50769         * gnulib-tool: Recognize new option --assume-autoconf.
50770         (autoconf_minversion): New variable.
50771         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50772
50773 2006-07-20  Bruno Haible  <bruno@clisp.org>
50774
50775         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50776
50777 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50778
50779         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50780         Reindent and repaginate.
50781
50782 2006-07-19  Derek Price  <derek@ximbiot.com>
50783
50784         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50785         Correct grammar.
50786
50787 2006-07-17  Bruno Haible  <bruno@clisp.org>
50788
50789         * modules/list: New file.
50790         * modules/array-list: New file.
50791         * modules/carray-list, modules/carray-list-tests: New files.
50792         * modules/linked-list, modules/linked-list-tests: New files.
50793         * modules/avltree-list, modules/avltree-list-tests: New files.
50794         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50795         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50796         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50797         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50798         * modules/oset: New file.
50799         * modules/array-oset: New file.
50800         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50801         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50802         * tests/test-carray_list.c: New file.
50803         * tests/test-linked_list.c: New file.
50804         * tests/test-avltree_list.c: New file.
50805         * tests/test-rbtree_list.c: New file.
50806         * tests/test-linkedhash_list.c: New file.
50807         * tests/test-avltreehash_list.c: New file.
50808         * tests/test-rbtreehash_list.c: New file.
50809         * tests/test-avltree_oset.c: New file.
50810         * tests/test-rbtree_oset.c: New file.
50811         * MODULES.html.sh (Container data structures): New section.
50812
50813 2006-07-17  Bruno Haible  <bruno@clisp.org>
50814
50815         * m4/gl_list.m4: New file.
50816
50817 2006-07-17  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/gl_list.h: New file.
50820         * lib/gl_list.c: New file.
50821         * lib/gl_array_list.h: New file.
50822         * lib/gl_array_list.c: New file.
50823         * lib/gl_carray_list.h: New file.
50824         * lib/gl_carray_list.c: New file.
50825         * lib/gl_linked_list.h: New file.
50826         * lib/gl_linked_list.c: New file.
50827         * lib/gl_anylinked_list1.h: New file.
50828         * lib/gl_anylinked_list2.h: New file.
50829         * lib/gl_avltree_list.h: New file.
50830         * lib/gl_avltree_list.c: New file.
50831         * lib/gl_anyavltree_list1.h: New file.
50832         * lib/gl_anyavltree_list2.h: New file.
50833         * lib/gl_rbtree_list.h: New file.
50834         * lib/gl_rbtree_list.c: New file.
50835         * lib/gl_anyrbtree_list1.h: New file.
50836         * lib/gl_anyrbtree_list2.h: New file.
50837         * lib/gl_anytree_list1.h: New file.
50838         * lib/gl_anytree_list2.h: New file.
50839         * lib/gl_linkedhash_list.h: New file.
50840         * lib/gl_linkedhash_list.c: New file.
50841         * lib/gl_anyhash_list1.h: New file.
50842         * lib/gl_anyhash_list2.h: New file.
50843         * lib/gl_avltreehash_list.h: New file.
50844         * lib/gl_avltreehash_list.c: New file.
50845         * lib/gl_rbtreehash_list.h: New file.
50846         * lib/gl_rbtreehash_list.c: New file.
50847         * lib/gl_anytreehash_list1.h: New file.
50848         * lib/gl_anytreehash_list2.h: New file.
50849
50850         * lib/gl_oset.h: New file.
50851         * lib/gl_oset.c: New file.
50852         * lib/gl_array_oset.h: New file.
50853         * lib/gl_array_oset.c: New file.
50854         * lib/gl_avltree_oset.h: New file.
50855         * lib/gl_avltree_oset.c: New file.
50856         * lib/gl_rbtree_oset.h: New file.
50857         * lib/gl_rbtree_oset.c: New file.
50858         * lib/gl_anytree_oset.h: New file.
50859
50860 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50861
50862         * m4/mkancesdirs.m4: New file.
50863         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
50864         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
50865         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
50866         it.
50867
50868 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50869
50870         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
50871         * lib/mkancesdirs.h: New files.
50872         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
50873         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
50874         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
50875         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
50876         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
50877         callers changed.  Revamp internals significantly, by not
50878         attempting to create directories that are temporarily more
50879         permissive than the final results.  Do not attempt to use
50880         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
50881         This removes some race conditions, fixes some bugs, and simplifies
50882         things.  Use new dirchownmod function to do owner and mode changes.
50883         * lib/mkdir-p.h: Likewise.
50884         * lib/modechange.c (octal_to_mode): New function.
50885         (struct mode_change): New member mentioned.
50886         (make_node_op_equals): New arg mentioned.  All callers changed.
50887         (mode_compile): Keep track of which mode bits the user has explicitly
50888         mentioned.
50889         (mode_adjust): New arg DIR, so that we implement the X op correctly.
50890         New arg PMODE_BITS, to keep track of which mode bits the user
50891         mentioned; it treats S_ISUID and S_ISGID speciall.
50892         All callers changed.
50893         * lib/modechange.h: Likewise.
50894
50895 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50896
50897         * MODULES.html.sh: Add mkancestors.
50898         * modules/mkancesdirs: New module.
50899         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
50900         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
50901         The chdir-safer and afs files are now orphans; I'll remove them
50902         unless someone speaks up.
50903         Add lib/dirchownmod.c, lib/dirchownmod.h.
50904         (Depends-on): Remove alloca, chown, save-cwd, dirname.
50905         Add lchown, mkancesdirs.
50906         (Maintainer): Add self.
50907
50908 2006-07-15  Karl Berry  <karl@gnu.org>
50909
50910         * gnulib-tool: help message wording/arrangement.
50911
50912 2006-07-14  Simon Josefsson  <jas@extundo.com>
50913
50914         * doc/gnulib.texi (Libtool and Windows): New section.
50915
50916 2006-07-12  Simon Josefsson  <jas@extundo.com>
50917
50918         * modules/gendocs (License): Fix license, approved by Karl.
50919
50920 2006-07-12  Eric Blake  <ebb9@byu.net>
50921
50922         * MODULES.html.sh: Add gendocs.
50923
50924 2006-07-11  Eric Blake  <ebb9@byu.net>
50925
50926         * modules/fdl: New module, to install doc/fdl.texi.
50927         * MODULES.html.sh: Add new section for documentation modules.
50928         * gnulib-tool: Avoid space-tab.
50929         (--doc-base): New option, to manage files from doc.
50930
50931 2006-07-11  Eric Blake  <ebb9@byu.net>
50932
50933         * m4/absolute-header.m4: Fix comments to match recent change.
50934
50935 2006-07-11  Eric Blake  <ebb9@byu.net>
50936
50937         * gnulib-tool: List --doc-base before --tests-base.
50938
50939 2006-07-11  Derek R. Price  <derek@ximbiot.com>
50940
50941         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
50942
50943 2006-07-11  Bruno Haible  <bruno@clisp.org>
50944
50945         * README: Mention where to put documentation.
50946
50947 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50948
50949         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
50950
50951 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50952
50953         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
50954         to stdint.m4.
50955
50956 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
50957
50958         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
50959         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
50960         "no/such/file/stdint.h" when there is no such file, so that
50961         the resulting C code can be parsed by dodgy compilers.
50962         Problems reported by Bob Proulx.
50963
50964 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50965
50966         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
50967         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50968         macros into the GNU _D_EXACT_NAMLEN.
50969         * lib/savedir.c:  Likewise.
50970         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
50971
50972 2006-07-10  Derek R. Price  <derek@ximbiot.com>
50973         and Paul Eggert  <eggert@cs.ucla.edu>
50974
50975         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
50976         * m4/savedir.m4:
50977         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
50978         macros into the GNU _D_EXACT_NAMLEN.
50979
50980 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50981
50982         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
50983         around the absolute name, to work around a problem with the HP-UX
50984         11.23 native C compiler, reported by Bob Proulx.
50985
50986 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50987
50988         * doc/maintain.texi, make-stds.texi: Sync from
50989         <http://savannah.gnu.org/projects/gnustandards>.
50990
50991 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50992
50993         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
50994
50995 2006-07-09  Jim Meyering  <jim@meyering.net>
50996
50997         * m4/glob.m4: Remove a doubled word in a comment.
50998
50999 2006-07-09  Jim Meyering  <jim@meyering.net>
51000
51001         * lib/argp-pv.c: Remove a doubled word in a comment.
51002         * lib/check-version.c (check_version): Likewise.
51003         * lib/javacomp.c (compile_java_class): Likewise.
51004
51005 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51006
51007         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
51008         for the benefit of people using Autoconf 2.60.  If you want to
51009         support older Autoconf versions you can copy m4/onceonly_2_57.m4
51010         (or m4/onceonly.m4, if pre-2.57) manually.
51011
51012 2006-07-08  Jim Meyering  <jim@meyering.net>
51013
51014         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
51015         comment.
51016         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
51017         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
51018         comment.
51019
51020 2006-07-08  Jim Meyering  <jim@meyering.net>
51021
51022         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
51023
51024 2006-07-07  Simon Josefsson  <jas@extundo.com>
51025
51026         * tests/test-crc.c: Change expected crc value, the test vector
51027         were probably computed using the old broken crc.c?
51028
51029 2006-07-06  Simon Josefsson  <jas@extundo.com>
51030
51031         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
51032         now the canonical place for the M4 file).
51033
51034         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
51035         from the sys_socket dependency now.
51036
51037         * modules/inet_pton (Files): Ditto.
51038
51039         * modules/inet_ntop (Files): Ditto.
51040
51041 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51042
51043         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
51044         not gl_PREREQ_GETUSERSHELL.
51045
51046 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51047
51048         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
51049         with only one argument, for Autoconf 2.60.
51050         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
51051         expand to nothing, so add a shell command to avoid syntax error.
51052         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
51053
51054 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51055
51056         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
51057
51058 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51059
51060         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
51061         no longer needed.  Check for isblank decl.
51062         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
51063         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
51064         of existence.
51065
51066 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51067
51068         * lib/getloadavg.c: Use __VMS, not VMS.
51069         * lib/getopt.c: Likewise.
51070         * lib/getpagesize.h: Likewise.
51071         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
51072         and probably does not work.
51073
51074 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51075
51076         * lib/.cppi-disable: Add wcwidth.
51077         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
51078         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
51079         (ISGRAPH): Remove.  All uses changed to isgraph.
51080         (FOLD) [!defined _LIBC]: Remove special case.
51081         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
51082         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
51083         HAVE_ISBLANK.
51084         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
51085         case.
51086
51087 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51088
51089         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
51090         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
51091         brackets.  Other minor changes to suppress some compiler
51092         warnings.
51093
51094 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51095         and Paul Eggert  <eggert@cs.ucla.edu>
51096
51097         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
51098         of invoking obsolescent AC_HEADER_DIRENT macro.
51099         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
51100         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
51101         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
51102         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
51103         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
51104         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51105         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
51106         * m4/readdir.m4: Remove; no longer needed.
51107
51108 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51109         and Paul Eggert  <eggert@cs.ucla.edu>
51110
51111         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
51112         Don't worry about this obsolete case any more.
51113         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
51114         directories.
51115         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
51116         worry about this obsolete case any more.
51117         * lib/fts.c: Likewise.
51118         * lib/getcwd.c: Likewise.
51119         * lib/glob.h: Likewise.
51120         * lib/savedir.c: Likewise.
51121
51122 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51123
51124         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
51125         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
51126         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
51127         needed.
51128         All uses removed.
51129         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51130         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51131         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
51132         needed.
51133         * m4/getdate.m4 (gl_GETDATE): Likewise.
51134         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51135         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51136         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51137         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51138         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51139         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51140         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
51141         needed.
51142
51143 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51144
51145         * lib/memcasecmp.c: Include <limits.h>.
51146         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
51147         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
51148         Don't assume isdigit succeeds only on '0' through '9'.
51149
51150 2006-07-05  Eric Blake  <ebb9@byu.net>
51151
51152         * modules/getaddrinfo (Depends-on): Add snprintf.
51153
51154 2006-07-05  Eric Blake  <ebb9@byu.net>
51155
51156         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
51157         to avoid 'header present but could not be compiled' on cygwin.
51158
51159 2006-07-05  Eric Blake  <ebb9@byu.net>
51160
51161         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51162         missing from netdb.h.
51163         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51164
51165 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51166
51167         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51168         no longer needed.
51169         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51170         * m4/getdate.m4 (gl_GETDATE): Likewise.
51171         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51172         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51173         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51174         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51175         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51176
51177 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51178
51179         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51180         All uses of is_space replaced by isspace.
51181         * lib/exit.h: Don't talk about STDC_HEADERS.
51182         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51183         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51184         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51185         replaced by isprint etc.
51186         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51187         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51188         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51189         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51190         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51191         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51192
51193 2006-07-05  Bruno Haible  <bruno@clisp.org>
51194
51195         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51196         the function exists, before testing against AIX.
51197         Reported by Martin Lambers <marlam@marlam.de>.
51198
51199 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51200
51201         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51202         From Mark D. Baushke.
51203
51204 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51205
51206         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51207         to the absolute name, not just one, to bypass Sun C 5.8's
51208         "warning: #include of /usr/include/... may be non-portable".
51209
51210 2006-07-04  Eric Blake  <ebb9@byu.net>
51211
51212         * modules/dirname-tests: New test module.
51213         * tests/test-dirname.c: New file, replacing dirname.c
51214         TEST_DIRNAME section that was recently deleted.
51215
51216 2006-07-04  Bruno Haible  <bruno@clisp.org>
51217
51218         Assume ANSI C header files and <ctype.h> functions.
51219         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51220         (mbsnwidth): Use isprint, iscntrl instead.
51221
51222 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51223
51224         Merge from coreutils.
51225         * MODULES.html.sh: Add xstrtold.
51226         * modules/xstrtold: New file.
51227         * modules/cycle-check (Files): Add lib/same-inode.h.
51228         * modules/dirname (Files): Add m4/double-slash-root.m4.
51229         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51230         * modules/mkdir-p (Files): Add lib/same-inode.h.
51231         * modules/same (Files): Add lib/same-inode.h.
51232
51233 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51234
51235         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51236         This is to keep the terminology clean; POSIX talks about
51237         "absolute pathnames", not "full pathnames", but the GNU
51238         Coding Standards say to use "path" for something else;
51239         so use "absolute" to keep both sides happy.
51240         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51241         Set gl_absolute_header, not gl_full_header_path.
51242         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51243         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51244         All uses changed.
51245
51246         Merge from coreutils.
51247
51248         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51249
51250         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51251         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51252         want to require the building of c-strtod.o.
51253         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51254         needs -lm directly.
51255         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51256
51257         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51260         --as-needed option if available.  Problem reported by Albert Chin in
51261         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51262         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51263         cc merely issues a bunch of annoying warnings for --as-needed
51264         (this problem was reported by Bob Proulx).  Also, try linking with
51265         -lm to detect a bug in binutils 2.16 (this problem was reported
51266         by Ralf Wildenhues).
51267
51268         2006-06-18  Jim Meyering  <jim@meyering.net>
51269
51270         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51271         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51272         macro.
51273         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51274         also check for glibc-2.4's abort-inducing bug.
51275
51276         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51277         Low-probability clean-up should be to use rmdir to get rid of
51278         the just-created directory, not unlink.
51279
51280         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51281         configure fail, and request a bug report to inform us about it.
51282         Add a comment that, barring reports to the contrary, in 2007 we'll
51283         assume ftruncate is universally available.
51284
51285         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51286
51287         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51288
51289         2006-03-12  Jim Meyering  <jim@meyering.net>
51290
51291         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51292         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51293         * m4/same.m4 (gl_SAME): Likewise.
51294         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51295
51296         2006-03-11  Eric Blake  <ebb9@byu.net>
51297
51298         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51299         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51300         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51301         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51302
51303 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51304
51305         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51306         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51307         reported by Mark D. Baushke, one in
51308         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51309
51310         Merge from coreutils.
51311
51312         * lib/.cppi-disable: Add stdint_.h.
51313         * lib/.cvsignore: Add stdint.h.
51314
51315         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51318         both double and long double versions.
51319         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51320         * lib/xstrtold.c: New file.
51321         * lib/xstrtod.h (xstrtold): New decl.
51322
51323         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51324
51325         * lib/filemode.c (setst): Remove.
51326         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51327         (arguably) clearer, and the generated code is a bit smaller on my
51328         Debian GNU/Linux stable x86 host.
51329
51330         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51331
51332         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51333         Assume that filemode.h includes sys/types.h and sys/stat.h.
51334         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51335         (ftypelet): Reorder to put common cases first, for efficiency.
51336         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51337         to do 'M'.
51338         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51339         of 10, for compatibility with FreeBSD.  All callers changed.
51340         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51341         types that can't be deduced solely from st_mode.  First arg is now a
51342         const pointer.
51343         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51344         (strmode): Renamed from mode_string.
51345         (filemodestring): New decl.
51346         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51347         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51348         needed.
51349         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51350
51351         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51352
51353         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51354         fsusage.h now does that.  Include fsusage.h first, to test interface.
51355         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51356         at most one method (the old code could have generated decls that
51357         didn't conform to C89, not that this was ever exercised).
51358         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51359
51360         2006-03-19  Jim Meyering  <jim@meyering.net>
51361
51362         Work even in a chroot where d_ino values for entries in "/"
51363         don't match the stat.st_ino values for the same names.
51364         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51365         number, iterate through all entries again, using lstat instead.
51366         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51367         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51368
51369         * lib/getcwd.c (__getcwd): Clarify a comment.
51370         Use memcpy in place of a call to strcpy.
51371
51372         2006-03-12  Jim Meyering  <jim@meyering.net>
51373
51374         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51375         matches that of the current directory (which we're about to chdir ".."
51376         out of), then save the dev-ino of the parent, instead.
51377
51378         * lib/same-inode.h (SAME_INODE): New file/macro.
51379         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51380         Include "same-inode.h", instead.
51381         * lib/same.c: Likewise.
51382         * lib/cycle-check.h: Include "same-inode.h".
51383         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51384         * lib/cycle-check.c (SAME_INODE): Remove definition.
51385         * lib/root-dev-ino.h: Include "same-inode.h".
51386
51387         2006-03-11  Eric Blake  <ebb9@byu.net>
51388
51389         * lib/same.c (same_name): s/base_name/last_component/
51390         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51391         * lib/filenamecat.c (file_name_concat): Likewise.
51392
51393         2006-03-11  Eric Blake  <ebb9@byu.net>,
51394                     Paul Eggert  <eggert@cs.ucla.edu>
51395
51396         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51397         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51398         drive prefix.
51399         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51400         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51401         (last_component): New method.
51402         * lib/dirname.c (dir_len): Determine when drive letters need a
51403         subsequent slash.  Preserve // when it is special.
51404         (dir_name): Don't append dot when drive letter is absolute.
51405         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51406         * lib/basename.c (base_name): New semantics - malloc the result.
51407         Preserve // when it is special.  Preserve relative files that look
51408         like drive letters.
51409         (base_len): Preserve // when it is special.
51410         (last_component): New method, similar to old base_name semantics.
51411         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51412         base_name.  Strip redundant slashes from ///.
51413
51414 2006-07-03  Jim Meyering  <jim@meyering.net>
51415
51416         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51417         macro is used before the first cycle_check call.
51418
51419 2006-07-03  Eric Blake  <ebb9@byu.net>
51420
51421         * modules/dirname (Depends-on): Add xstrndup.
51422
51423 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51424
51425         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51426         test cases, so that config.log is a bit easier to follow.
51427
51428 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51429
51430         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51431         both are 64 bits, since this seems to be the tradition, and this
51432         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51433         we ever run into a host that prefers long long to long in this
51434         case, we'll need another configure-time test.  Problem reported by
51435         Jim Meyering.
51436
51437 2006-07-02  Eric Blake  <ebb9@byu.net>
51438
51439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51440
51441 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51442
51443         * modules/inttypes (Depends-on): No longer depends on stdint.
51444         * modules/stdint (Description): Say more about assumptions.
51445         Say that the fast types might differ.  Say macros are used.
51446         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51447         (Makefile.am): Revise list of substituted symbols to match
51448         new stdint.m4.
51449         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51450         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51451         * tests/test-stdint.c (verify_same_types)
51452         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51453         the code conforms to C99/C89.
51454         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51455         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51456
51457 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51458
51459         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51460         but fix a bug, by requiring at least 64 bits.
51461         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51462         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51463         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51464         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51465
51466         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51467         changes.  Make 2.59 a prerequisite.  Check and substitute for
51468         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51469         inttypes.h.  Do not use special include files; just use the
51470         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51471         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51472         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51473         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51474         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51475         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51476         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51477         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51478         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51479         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51480         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51481         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51482         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51483         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51484         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51485         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51486         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51487         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51488         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51489         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51490         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51491         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51492         not check for things that C99 does not require, e.g., int8_t.  If
51493         a test isn't needed unless <stdint.h> isn't working, and is
51494         unlikely to be needed for any other reason, then don't do it
51495         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51496         size_t, since we assume C89 freestanding at least.  Do not check
51497         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51498         the right thing even if the types are not defined.  Instead use:
51499         (gl_STDINT_TYPE_PROPERTIES): New macro.
51500         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51501         testing whether <sys/types.h> clashes, as Autoconf does this for
51502         us now.  All uses removed.
51503         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51504         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51505         (gl_CHECK_TYPE_SAME):
51506         Remove; no longer needed.
51507         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51508         exists, since we'll return 0 anyway in that case.
51509         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51510
51511 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51512
51513         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51514         possible collision with system files.
51515         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51516         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51517         WCHAR_MIN and WCHAR_MAX in this case.
51518         (<stddef.h>): Do not include; no longer needed.
51519         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51520         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51521         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51522         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51523         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51524         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51525         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51526         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51527         !defined(__c99))]: Include in this case too, since it's harmless
51528         now.
51529         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51530         dangerous to do so.
51531         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51532         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51533         (_STDINT_MIN, _STDINT_MAX): New macros.
51534         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51535         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51536         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51537         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51538         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51539         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51540         macros, not typedefs; this simplifies things quite a bit.
51541         Use long int for all types narrower than int64_t.
51542         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51543         Define in terms of long long int or int64_t or long int,
51544         not int64_t or int32_t.  This saves some compile-time testing.
51545         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51546         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51547         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51548         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51549         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51550         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51551         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51552         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51553         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51554         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51555         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51556         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51557         undef any previous version and define our own version, for
51558         simplicity and consistency with the new macros for types.
51559         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51560         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51561         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51562         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51563         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51564         @WINT_T_SUFFIX@ to keep things simple here.
51565         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51566         Simplify by assuming typical 8/16/32/64 host, since we're
51567         already doing that elsewhere anyway.
51568         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51569         and assume long long int is 64 bits if available.  This
51570         speeds up 'configure'.
51571
51572 2006-07-01  Eric Blake  <ebb9@byu.net>
51573
51574         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51575         Reported by Andreas Buening.
51576
51577 2006-07-01  Eric Blake  <ebb9@byu.net>
51578
51579         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51580
51581 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51582
51583         * lib/getaddrinfo.c: fixed typo
51584
51585 2006-06-29  Jim Meyering  <jim@meyering.net>
51586
51587         * modules/strftime (Maintainer): Add my name, since with the
51588         FPRINTFTIME changes strftime.c has forked from glibc.
51589
51590 2006-06-29  Eric Blake  <ebb9@byu.net>
51591
51592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51593
51594 2006-06-29  Eric Blake  <ebb9@byu.net>
51595
51596         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51597
51598 2006-06-29  Eric Blake  <ebb9@byu.net>
51599
51600         * lib/stat_.h: New file.
51601
51602 2006-06-29  Eric Blake  <ebb9@byu.net>
51603
51604         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51605         unused static function.
51606
51607 2006-06-29  Eric Blake  <ebb9@byu.net>
51608
51609         * doc/functions.texi (Function Portability): Document missing lstat
51610         on mingw.
51611
51612 2006-06-29  Eric Blake  <ebb9@byu.net>
51613
51614         * MODULES.html.sh: Add sys_stat.
51615         * modules/sys_stat: New module.
51616         * modules/mkstemp (Depends-on): Add sys_stat.
51617
51618 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51619
51620         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51621
51622 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51623
51624         * m4/c-bs-a.m4: Removed.
51625
51626 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51627
51628         * lib/strftime.c: Assume strftime() exists.
51629
51630 2006-06-29  Derek Price  <derek@ximbiot.com>
51631
51632         * modules/c-bs-a: Removed - \a is C89.
51633         * MODULES.html.sh: Remove c-bs-a.
51634
51635 2006-06-29  Bruno Haible  <bruno@clisp.org>
51636
51637         * modules/wcwidth (License): Change to LGPL.
51638
51639 2006-06-28  Simon Josefsson  <jas@extundo.com>
51640
51641         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51642         on _WIN32.
51643
51644         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51645         getnameinfo.
51646
51647 2006-06-28  Simon Josefsson  <jas@extundo.com>
51648
51649         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51650
51651 2006-06-28  Simon Josefsson  <jas@extundo.com>
51652
51653         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51654         functions there.  It will succeed on Windows XP, but on Windows
51655         2000 and (presumably) earlier, it will fail, and use the internal
51656         re-implementation.
51657         (use_win32_p): New function.
51658         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51659         Support AI_NUMERICSERV to disable getservbyname.
51660         (getnameinfo): New function, only supports
51661         NI_NUMERICHOST|NI_NUMERICSERV for now.
51662
51663         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51664         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51665         getnameinfo.
51666
51667 2006-06-28  Eric Blake  <ebb9@byu.net>
51668
51669         * modules/wcwidth: New file.
51670         * modules/mbchar (Depends-on): Add wcwidth.
51671         * modules/mbswidth (Depends-on): Add wcwidth.
51672         * MODULES.html.sh: Add wcwidth.
51673
51674 2006-06-28  Eric Blake  <ebb9@byu.net>
51675
51676         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51678
51679 2006-06-28  Eric Blake  <ebb9@byu.net>
51680
51681         * lib/xvasprintf.h: Fix comments.
51682
51683 2006-06-28  Eric Blake  <ebb9@byu.net>
51684
51685         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51686         * lib/mbswidth.c (wcwidth): Move from here...
51687         * lib/wcwidth.h: ...to this new file.
51688
51689 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51690
51691         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51692
51693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51694         it's obsolete.
51695         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51696
51697 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51698
51699         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51700         Autoconf 2.60 says this stuff was obsolete.
51701
51702 2006-06-28  Bruno Haible  <bruno@clisp.org>
51703
51704         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51705
51706 2006-06-28  Bruno Haible  <bruno@clisp.org>
51707
51708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51709         gt_TYPE_WCHAR_T.
51710
51711 2006-06-28  Bruno Haible  <bruno@clisp.org>
51712
51713         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51714         declaration for wcwidth.
51715         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51716
51717 2006-06-28  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51720         (mkdir): Define using _mkdir.
51721
51722 2006-06-28  Bruno Haible  <bruno@clisp.org>
51723
51724         * lib/getaddrinfo.h: Fix POSIX URL.
51725         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51726         _WIN32.
51727         (use_win32_p): Make static.
51728         (getaddrinfo): Reject service name if it is empty or does not consist
51729         solely of decimal digits, or if its value is > 65535.
51730         (getnameinfo): Remove useless casts.
51731
51732 2006-06-27  Simon Josefsson  <jas@extundo.com>
51733
51734         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51735         Eggert and Martin Lambers.
51736
51737 2006-06-27  Simon Josefsson  <jas@extundo.com>
51738
51739         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51740         Eggert and Martin Lambers.
51741
51742 2006-06-27  Bruno Haible  <bruno@clisp.org>
51743
51744         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51745         result to 0, not to empty.
51746         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51747
51748 2006-06-27  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51751
51752 2006-06-26  Simon Josefsson  <jas@extundo.com>
51753
51754         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51755         present.
51756
51757 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51758
51759         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51760         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51761         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51762
51763 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51764
51765         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51766
51767 2006-06-26  Bruno Haible  <bruno@clisp.org>
51768
51769         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51770
51771 2006-06-26  Bruno Haible  <bruno@clisp.org>
51772
51773         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51774
51775 2006-06-26  Bruno Haible  <bruno@clisp.org>
51776
51777         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51778         SGI C compiler in pre-C99 mode.
51779         Suggested by Mark D. Baushke and Larry Jones.
51780
51781 2006-06-26  Bruno Haible  <bruno@clisp.org>
51782
51783         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51784         WCHAR_MAX.
51785         Reported by Mark D. Baushke and Larry Jones.
51786
51787 2006-06-26  Bruno Haible  <bruno@clisp.org>
51788
51789         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51790         in pre-C99 mode.
51791         Suggested by Mark D. Baushke and Larry Jones.
51792
51793 2006-06-23  Simon Josefsson  <jas@extundo.com>
51794             Bruno Haible  <bruno@clisp.org>
51795
51796         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51797         Emit mostlyclean-local rule.
51798         (func_emit_tests_Makefile_am): Likewise.
51799         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51800
51801 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51802
51803         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51804
51805 2006-06-23  Bruno Haible  <bruno@clisp.org>
51806
51807         * tests/test-stdint.c: Update to match ISO C 99 Technical
51808         Corrigendum 1.
51809
51810 2006-06-23  Bruno Haible  <bruno@clisp.org>
51811
51812         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51813
51814 2006-06-23  Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/stdint_.h: Treat IRIX like OpenBSD.
51817
51818 2006-06-23  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51821         ISO C 99 Technical Corrigendum 1.
51822
51823 2006-06-22  Simon Josefsson  <jas@extundo.com>
51824
51825         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51826         MinGW.
51827
51828 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51829
51830         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
51831         needed.  Some compiler complained about some of them.  Problem reported
51832         by Larry Jones in
51833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
51834
51835 2006-06-21  Simon Josefsson  <jas@extundo.com>
51836
51837         * tests/test-getaddrinfo.c: New file.
51838
51839         * modules/getaddrinfo-tests: New file.
51840
51841         * MODULES.html.sh: Add inet_pton.
51842
51843         * modules/inet_pton: New file.
51844
51845 2006-06-21  Simon Josefsson  <jas@extundo.com>
51846
51847         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
51848         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
51849         of using the (limited) gnulib implementation on Windows XP.
51850
51851         * m4/inet_pton.m4: New file.
51852
51853 2006-06-21  Simon Josefsson  <jas@extundo.com>
51854
51855         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
51856         variable.
51857
51858         * lib/socket_.h: Don't define WINVER.
51859
51860         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
51861         slightly modified to work in gnulib.
51862
51863 2006-06-21  Simon Josefsson  <jas@extundo.com>
51864
51865         * doc/gnulib.texi (Windows sockets): Add.
51866
51867 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51868
51869         * lib/read-file.c (fread_file): Start with buffer allocation of
51870         0 bytes rather than 1 byte; this simplifies the code.
51871         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
51872         code to free buffer and save/restore errno.
51873         (internal_read_file): Remove unused local.
51874
51875 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51876
51877         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
51878         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
51879         Problem reported by Denis Excoffier in
51880         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
51881
51882 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51883
51884         * modules/sys_socket, modules/socklen: Include sys/types since
51885         FreeBSD 4.x's sys/socket.h needs it.
51886
51887 2006-06-19  Simon Josefsson  <jas@extundo.com>
51888
51889         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
51890
51891 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51892
51893         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
51894
51895 2006-06-19  Bruno Haible  <bruno@clisp.org>
51896
51897         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
51898         and FULL_PATH_INTTYPES_H in angle brackets.
51899         Reported by Mark D. Baushke <mdb@gnu.org>.
51900
51901 2006-06-17  Eric Blake  <ebb9@byu.net>
51902
51903         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
51904         errno.
51905
51906 2006-06-17  Bruno Haible  <bruno@clisp.org>
51907
51908         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
51909         <sys/inttypes.h>.
51910
51911 2006-06-17  Bruno Haible  <bruno@clisp.org>
51912
51913         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
51914         whether errno is declared. Assume <errno.h> declares errno.
51915
51916 2006-06-17  Bruno Haible  <bruno@clisp.org>
51917
51918         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
51919
51920 2006-06-17  Bruno Haible  <bruno@clisp.org>
51921
51922         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
51923         problem on Solaris 2.5.1.
51924
51925 2006-06-16  Eric Blake  <ebb9@byu.net>
51926
51927         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
51928         * lib/unicodeio.c [!defined errno]: Likewise.
51929         * lib/strtol.c [!defined errno]: Likewise.
51930         * lib/strtod.c [!defined errno]: Likewise.
51931
51932 2006-06-15  Eric Blake  <ebb9@byu.net>
51933
51934         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
51935
51936 2006-06-15  Eric Blake  <ebb9@byu.net>
51937
51938         * config/srclist.txt (ssize_t.m4): Lose sync.
51939
51940 2006-06-15  Bruno Haible  <bruno@clisp.org>
51941
51942         * modules/stdint (Files): Include m4/full-header-path.m4,
51943         m4/size_max.m4, m4/wchar_t.m4.
51944         (Makefile.am): Many more substitutions.
51945         * modules/stdint-tests: New file.
51946         * tests/test-stdint.c: New file.
51947
51948 2006-06-15  Bruno Haible  <bruno@clisp.org>
51949
51950         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
51951         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
51952         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
51953         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
51954         gl_CHECK_TYPE_SAME): New macros.
51955
51956 2006-06-15  Bruno Haible  <bruno@clisp.org>
51957
51958         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
51959
51960 2006-06-15  Bruno Haible  <bruno@clisp.org>
51961
51962         * lib/stdint_.h: Rewritten to be fully auto-configured.
51963         Fixes bug on HP-UX/IA64.
51964
51965 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
51966
51967         * lib/getdate.y (__attribute__): Don't define if already defined.
51968         Problem reported by Larry Jones.
51969         * lib/utimens.c (__attribute__): Likewise.
51970
51971 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
51972
51973         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
51974         reported by Andreas Schwab.
51975
51976 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51977             Bruno Haible  <bruno@clisp.org>
51978
51979         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
51980         check for the declaration of strnlen and a run test that exposes the
51981         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
51982         rpl_strndup.
51983
51984 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51985             Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
51988
51989 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51990
51991         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
51992         compile test, for Tru64 4.0D.
51993
51994 2006-05-28  Karl Berry  <karl@gnu.org>
51995
51996         * config/srclist.txt (printf-args.c): lose sync.
51997
51998 2006-05-26  Martin Lambers  <marlam@marlam.de>
51999
52000         * lib/getpass.c: Updates the test for the native W32 API, and adds
52001         missing includes, thus fixing compilation warnings.
52002
52003 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52004
52005         * lib/exclude.c (exclude_fnmatch): New function.
52006         (excluded_file_name): Call exclude_fnmatch.
52007         * lib/exclude.h (excluded_file_name): New prototype
52008
52009 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
52010
52011         * lib/tempname.c (small_open, large_open): New macros.
52012         (__open, __open64) [!_LIBC]: Remove.
52013         (__gen_tempname): Use small_open and large_open instead of __open
52014         and __open64.  This fixes a portability bug on HP-UX 11.11i
52015         reported by Simon Wing-Tang in
52016         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
52017
52018 2006-05-24  Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
52021         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
52022         Reported by Thorsten Maerz <torte@netztorte.de> via
52023         Aaron Stone <aaron@serendipity.cx>.
52024
52025 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52026
52027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
52028         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
52029         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
52030         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
52031         not really conditional on the cache.
52032         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
52033
52034 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52035
52036         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
52037         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
52038         (my_usleep): Don't mishandle maximum value.
52039
52040 2006-05-19  Jim Meyering  <jim@meyering.net>
52041
52042         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
52043
52044 2006-05-17  Bruno Haible  <bruno@clisp.org>
52045
52046         Cygwin portability.
52047         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
52048
52049 2006-05-17  Bruno Haible  <bruno@clisp.org>
52050
52051         * lib/stdint_.h: Fix recognition of Cygwin.
52052
52053 2006-05-15  Bruno Haible  <bruno@clisp.org>
52054
52055         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
52056         on libtool patch by Ralf Wildenhues.
52057
52058 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52059
52060         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
52061         test for C99 conformance; (bool) 0.5 is an integer constant
52062         expression, but (bool) -0.5 is not.  Problem reported by Fedor
52063         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
52064
52065 2006-05-11  Simon Josefsson  <jas@extundo.com>
52066
52067         * m4/xvasprintf.m4: Fix obvious typo.
52068
52069 2006-05-11  Jim Meyering  <jim@meyering.net>
52070
52071         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
52072         James Lemley.
52073
52074 2006-05-10  Simon Josefsson  <jas@extundo.com>
52075
52076         * lib/md4.c: Typo fix, update copyright years.
52077         (K1, K2): Don't use L because it turn computations into 64-bit on
52078         64-bit platforms.
52079
52080 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
52081
52082         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
52083         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
52084         unwanted sign propagation, e.g., on hosts with 64-bit int.
52085         There still are some problems with reeelly weird theoretical hosts
52086         (e.g., 33-bit int) but it's not worth worrying about now.
52087         * lib/sha1.c (rol): Likewise.
52088         (K1, K2, K3, K4): Remove unnecessary L suffix.
52089
52090 2006-05-10  Bruno Haible  <bruno@clisp.org>
52091
52092         * lib/des.c: Cast to avoid warnings.
52093
52094 2006-05-09  Bruno Haible  <bruno@clisp.org>
52095
52096         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
52097         (Depends-on): Depend also on xsize, stdarg.
52098         (configure.ac): Add gl_XVASPRINTF.
52099
52100 2006-05-09  Bruno Haible  <bruno@clisp.org>
52101
52102         * m4/xvasprintf.m4: New file.
52103
52104 2006-05-09  Bruno Haible  <bruno@clisp.org>
52105
52106         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
52107         (EOVERFLOW): Define fallback value.
52108         (xstrcat): New function.
52109         (xvasprintf): Recognize the special case of a string concatenation.
52110
52111 2006-05-08  Eric Blake  <ebb9@byu.net>
52112
52113         * gnulib-tool (func_version): Base copyright year on CVS date.
52114         (func_emit_copyright_notice): New function.
52115         (func_emit_lib_Makefile_am): Use it.
52116         (func_emit_tests_Makefile_am): Likewise.
52117         (func_import): Likewise.
52118
52119 2006-05-08  Bruno Haible  <bruno@clisp.org>
52120
52121         * modules/stdarg: New file.
52122         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
52123
52124 2006-05-08  Bruno Haible  <bruno@clisp.org>
52125
52126         * m4/stdarg.m4: New file, from GNU gettext.
52127
52128 2006-05-08  Bruno Haible  <bruno@clisp.org>
52129
52130         * config/srclist.txt (build-aux/config.rpath): different from latest
52131         release.
52132
52133 2006-05-08  Bruno Haible  <bruno@clisp.org>
52134
52135         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
52136
52137 2006-05-05  Jim Meyering  <jim@meyering.net>
52138
52139         * m4/warning.m4: New file, derived from bison's file by the same name.
52140
52141 2006-05-03  Bruno Haible  <bruno@clisp.org>
52142
52143         * lib/stdint_.h: Shorter URL.
52144         * lib/inttypes.h: Likewise.
52145
52146 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52147
52148         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
52149
52150 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52151
52152         * lib/verify.h: Document the internals better.  Most of this change
52153         was written by Bruno Haible.
52154
52155 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * doc/verify.texi: New file, partly based on a proposal by
52158         Bruno Haible.
52159
52160 2006-05-02  Bruno Haible  <bruno@clisp.org>
52161
52162         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52163         test from here...
52164         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52165
52166 2006-04-29  Bruno Haible  <bruno@clisp.org>
52167
52168         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52169         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52170
52171 2006-04-29  Bruno Haible  <bruno@clisp.org>
52172
52173         * gnulib-tool: Make --update option actually work.
52174
52175 2006-04-29  Bruno Haible  <bruno@clisp.org>
52176
52177         * doc/gcd.texi: New file.
52178         * doc/gnulib.texi: Include it.
52179
52180 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * lib/getdate.y (get_date): When adding relative date, start with the
52183         initial time, not with the result of the first mktime call.
52184
52185 2006-04-25  Bruno Haible  <bruno@clisp.org>
52186
52187         * gnulib-tool (func_import): Output the include directives in three
52188         blocks, sorted separately.
52189         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52190
52191 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52194         to define main with arguments, for C++.  Reported by Eric Blake.
52195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52196         Prefer 'int main ()' to 'int main (void)', for C++.
52197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52198         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52199         for 'main', for C99 and C++.
52200
52201 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52204         Don't assume that exit status -1 is valid.
52205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52206         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52207         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52208         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52209         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52210         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52211         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52212         functions can be used without declaring them, or that you can
52213         exit with status -1.
52214         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52215
52216 2006-04-24  Karl Berry  <karl@gnu.org>
52217
52218         * config/srclist.txt (longdouble.m4): sync lost.
52219
52220 2006-04-24  Eric Blake  <ebb9@byu.net>
52221
52222         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52223
52224 2006-04-24  Bruno Haible  <bruno@clisp.org>
52225
52226         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52227         poll() implementation in AIX.
52228         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52229
52230 2006-04-24  Bruno Haible  <bruno@clisp.org>
52231
52232         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52233         assigned exactly once.
52234
52235 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52236             Bruno Haible  <bruno@clisp.org>
52237
52238         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52239         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52240         for AM_CPPFLAGS.
52241
52242 2006-04-23  Bruno Haible  <bruno@clisp.org>
52243
52244         * modules/copy-file: Depend on unistd.
52245         * modules/execute: Likewise.
52246         * modules/fatal-signal: Likewise.
52247         * modules/findprog: Likewise.
52248         * modules/mkdtemp : Likewise.
52249         * modules/pipe: Likewise.
52250         * modules/wait-process: Likewise.
52251
52252 2006-04-23  Bruno Haible  <bruno@clisp.org>
52253
52254         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52255         condition was already detected.
52256         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52257
52258 2006-04-23  Bruno Haible  <bruno@clisp.org>
52259
52260         * lib/copy-file.c: Include <unistd.h> unconditionally.
52261         * lib/execute.c: Likewise.
52262         * lib/fatal-signal.c: Likewise.
52263         * lib/findprog.c: Likewise.
52264         * lib/mkdtemp.c: Likewise.
52265         * lib/pipe.h: Likewise.
52266         * lib/pipe.c: Likewise.
52267         * lib/wait-process.h: Likewise.
52268
52269 2006-04-23  Bruno Haible  <bruno@clisp.org>
52270
52271         * gnulib-tool (func_usage): Fix --import description. Document
52272         --update.
52273         (func_import): Create temporary file in a temporary directory, if
52274         --dry-run is specified. Silence errors from 'grep' when there are no
52275         m4 files in $m4dir.
52276         (func_create_testdir): Silence errors from 'grep' when there are no
52277         m4 files in $m4dir.
52278         Reported by Karl Berry <karl@freefriends.org>.
52279
52280 2006-04-20  Bruno Haible  <bruno@clisp.org>
52281
52282         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52283         one argument, so that the code will be portable to Autoconf 2.60.
52284         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52285         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52286         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52287
52288 2006-04-19  Derek Price  <derek@ximbiot.com>
52289             Eric Blake  <ebb9@byu.net>
52290
52291         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52292         rather than "/full/path.h".  Update comment to match.  Shorten &
52293         generalize m4_translit call via AS_TR_CPP.
52294
52295 2006-04-19  Derek Price  <derek@ximbiot.com>
52296             Eric Blake  <ebb9@byu.net>
52297
52298         * lib/inttypes.h: Correct grammar in comment.
52299
52300 2006-04-18  Derek Price  <derek@ximbiot.com>
52301             Paul Eggert  <eggert@cs.ucla.edu>
52302
52303         * modules/inttypes: New file.
52304         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52305
52306 2006-04-18  Derek Price  <derek@ximbiot.com>
52307             Paul Eggert  <eggert@cs.ucla.edu>
52308
52309         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52310         New files.
52311
52312 2006-04-18  Derek Price  <derek@ximbiot.com>
52313             Paul Eggert  <eggert@cs.ucla.edu>
52314
52315         * lib/inttypes.h: New file.
52316         * lib/strtoimax.c: Assume <inttypes.h>.
52317
52318 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52319
52320         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52321         isn't mounted.  Problem reported by Kir Kolyshkin.
52322
52323 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52324
52325         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52326         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52327         Derek R. Price.
52328         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52329         implementation.
52330
52331 2006-04-12  Eric Blake  <ebb9@byu.net>
52332
52333         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52334         is now done automatically by the corresponding Autoconf macro.
52335
52336 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52337
52338         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52339         time_r.h.
52340
52341 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52342
52343         Merge regex changes from libc, removing some of our
52344         POSIX-conformance changes that were rejected and redoing them in a
52345         less-intrusive way.
52346
52347         * lib/regcomp.c (re_compile_internal, init_dfa):
52348         Length arg is now size_t, not Idx.  All uses changed.
52349         (peek_token): Forward decl now says internal_function.
52350         (__re_error_msgid, __re_error_msgid_idx):
52351         Now static rather than extern with attribute_hidden.
52352         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52353         For some reason libc prefers K&R style defns for external functions.
52354         (regerror) [!defined _LIBC]: Likewise.
52355         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52356         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52357         (build_range_exp, build_collating_symbol):
52358         Use K&R-style defn.
52359         (re_compile_fastmap): Use '\0' to memset, not 0.
52360         (utf8_sb_map): Make the calculations more obvious.
52361         (init_dfa, parse_bracket_exp, build_charclass_op):
52362         Call calloc and cast result, as glibc does.
52363         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52364         (build_range_exp, build_collating_symbol):
52365         Now internal functions.
52366
52367         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52368
52369         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52370         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52371         Don't depend on VMS; depend on __VMS instead, for POSIX
52372         namespace cleanness.
52373         (regoff_t): Define to ssize_t, not long int.
52374
52375         Remove the REG_ macros named below.  Instead, make the old names
52376         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52377         __USE_GNU_REGEX.
52378         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52379         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52380         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52381         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52382         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52383         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52384         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52385         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52386         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52387         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52388         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52389         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52390         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52391         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52392         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52393         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52394         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52395         (REG_NREGS):
52396         Remove.  All uses replaced by the old RE_* names.
52397         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52398         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52399         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52400         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52401         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52402         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52403         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52404         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52405         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52406         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52407         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52408         Don't bother having these macros be independent of each others'
52409         values, since they no longer exist in the POSIX name space.
52410
52411         Rename the following member names back to their old names,
52412         unless !__USE_GNU_REGEX.  All uses changed back.
52413         (buffer): Renamed from re_buffer.
52414         (allocated): Renamed from re_allocated.
52415         (used): Renamed from re_used.
52416         (syntax): Renamed from re_syntax.
52417         (fastmap): Renamed from re_fastmap.
52418         (translate): Renamed from re_translate.
52419         (can_be_null): Renamed from re_can_be_null.
52420         (regs_allocated): Renamed from re_regs_allocated.
52421         (fastmap_accurate): Renamed from re_fastmap_accurate.
52422         (no_sub): Renamed from re_no_sub.
52423         (not_bol): Renamed from re_not_bol.
52424         (not_eol): Renamed from re_not_eol.
52425         (newline_anchor): Renamed from re_newline_anchor.
52426         (num_regs): Renamed from rm_num_regs.
52427         (start): Renamed from rm_start.
52428         (end): Renamed from rm_end.
52429
52430         (free_state): Move up a bit.
52431
52432         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52433         #define to be empty.
52434         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52435         when that is what is intended.
52436         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52437         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52438         (MAX): New macro.
52439         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52440         All uses changed back to re_malloc, etc.  It's now the caller's
52441         responsibility to check for overflow; all callers changed.
52442         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52443         (re_x2nrealloc): Remove.
52444         (free_state): Remove decl.
52445
52446         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52447         (re_set_registers, re_exec):
52448         Use K&R-style defn.
52449
52450         2006-01-31  Roland McGrath  <roland@redhat.com>
52451
52452         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52453         Reported by Mike Frysinger <vapier@gentoo.org>.
52454
52455         2006-01-15  Andreas Jaeger  <aj@suse.de>
52456
52457         [BZ #1950]
52458         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52459         build_wcs_upper_buffer change.
52460         (build_wcs_upper_buffer): Change return type.
52461
52462         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52463
52464         * lib/regex_internal.h: Include <stdint.h> if available.
52465
52466         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52467
52468         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52469
52470         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52471
52472         * lib/regcomp.c: Adjust for changed secondary hash function.
52473
52474         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52475
52476         * lib/regex.h: Pretty printing.
52477         Clean up namespace a bit.
52478
52479         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52480
52481         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52482         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52483
52484         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52485                     Ulrich Drepper  <drepper@redhat.com>
52486
52487         [BZ #1302]
52488         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52489         changed.
52490         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52491
52492         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52493
52494         [BZ #281]
52495         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52496         * lib/regcomp.c: Remove unnecessary uses of
52497         unsigned RE_TRANSLATE_TYPE.
52498         * lib/regex_internal.h: Likewise.
52499         * lib/regex_internal.c: Likewise.
52500         * lib/regexec.c: Likewise.
52501         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52502
52503         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52504
52505         * lib/regexec.c (find_recover_state): Remove unnecessary
52506         initialization.
52507         (transit_state_bkref): Make DFA a const pointer.
52508         (get_subexp): Likewise.
52509         (check_arrival): Likewise.
52510         (update_cur_sifted_state): Likewise.
52511         (re_search_internal): Likewise.
52512         (prune_impossible_nodes): Likewise.
52513         (acquire_init_state_context): Likewise.
52514         (proceed_next_node): Likewise.
52515         (set_regs): Likewise.
52516         (free_fail_stack_return): Likewise.
52517         (check_arrival_expand_ecl): Mark DFA parameter as const.
52518         (check_arrival_expand_ecl_sub): Likewise.
52519         (check_subexp_limits): Likewise.
52520         (sub_epsilon_src_nodes):  Likewise.
52521         (add_epsilon_src_nodes):  Likewise.
52522         (merge_state_array): Likewise.
52523         (update_regs): Likewise.
52524         (build_trtable): Likewise.
52525         (sift_states_backward): Mark MCTX parameter as const.
52526         (build_sifted_states): Likewise.
52527         (update_cur_sifted_state): Likewise.
52528         (sift_states_mkref): Likewise.
52529         (check_arrival_expand_ecl): Mark eclosure as const.
52530         (check_dst_limits_calc_pos_1): Likewise.
52531         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52532         pointer.
52533
52534         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52535
52536         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52537         (transit_state_sb): Likewise.
52538         (transit_state_mb): Likewise.
52539         (sift_states_iter_mb): Likewise.
52540         (check_arrival_add_next_nodes): Likewise.
52541         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52542         [_LIBC] (re_search_2_stub): Use mempcpy.
52543
52544         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52545         mbrtowc for very simple UTF-8 case.
52546
52547         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52548         a pointer-to-const.
52549         (re_acquire_state_context): Likewise.
52550         * lib/regex_internal.h: Adjust prototypes.
52551
52552         * lib/regex.c: Prevent using C++ compilers.
52553
52554         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52555         (re_acquire_state_context): Likewise.
52556
52557 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52558
52559         * modules/regex (Depends-on): Add ssize_t.
52560
52561 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52562
52563         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52564         translation table.
52565
52566 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52567
52568         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52569
52570 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52571             Bruno Haible  <bruno@clisp.org>
52572
52573         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52574         <sys/types.h> and <inttypes.h>.
52575
52576 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52577
52578         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52579         `__error_t_defined', so argp.h will not typedef the former.
52580
52581 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52582
52583         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52584         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52585         glibc names.  Even if glibc is changed to conform to POSIX, the
52586         traditional names will be available anyway, since regex depends on
52587         the extensions module.  Also, fix a longstanding typo in the
52588         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52589         reported by Emanuele Giaquinta.  Also, change sense of cached
52590         variable, so that the message makes sense.
52591
52592 2006-03-24  Simon Josefsson  <jas@extundo.com>
52593
52594         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52595         including some doc fixes.
52596         (base64_encode_alloc): Fix +1 bug on allocation failures.
52597
52598 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52599
52600         * lib/base64.c (base64_encode): Do not read past end of array with
52601         unsanitized input on systems with CHAR_BIT > 8.
52602
52603 2006-03-24  Eric Blake  <ebb9@byu.net>
52604
52605         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52606
52607 2006-03-22  Karl Berry  <karl@gnu.org>
52608
52609         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52610         * config/srclistvars.sh (COREUTILS): new var.
52611
52612 2006-03-17  Jim Meyering  <jim@meyering.net>
52613
52614         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52615         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52616
52617 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52618
52619         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52620         no longer needs it.  Instead, check that regoff_t is as least
52621         as wide as ptrdiff_t.
52622
52623         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52624         so that our regex.h stays compatible with the installed regex.
52625         This is helpful for installers who configure --without-included-regex.
52626         Problem reported by Emanuele Giaquinta.
52627
52628 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52629
52630         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52631         Typedef to long int, not to off_, as POSIX will likely change
52632         in that direction.
52633
52634 2006-03-15  Eric Blake  <ebb9@byu.net>
52635
52636         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52637
52638 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52639
52640         * lib/argp-help.c (validate_uparams): Fix typo
52641         * lib/argp-parse.c (argp_default_options): Consistently begin help
52642         messages with a lowercase letter.
52643
52644 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52645
52646         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52647         overrun buffers and shouldn't be used (much as gets shouldn't be
52648         used).
52649         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52650
52651 2006-03-08  Simon Josefsson  <jas@extundo.com>
52652
52653         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52654         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52655
52656 2006-03-08  Simon Josefsson  <jas@extundo.com>
52657
52658         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52659         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52660
52661 2006-03-08  Simon Josefsson  <jas@extundo.com>
52662
52663         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52664         signal that configure disabled the device.
52665
52666 2006-03-08  Simon Josefsson  <jas@extundo.com>
52667
52668         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52669         languages.
52670
52671 2006-03-07  Simon Josefsson  <jas@extundo.com>
52672
52673         * modules/getopt (Depends-on): Add unistd.
52674
52675         * modules/unistd: New file.
52676
52677 2006-03-07  Simon Josefsson  <jas@extundo.com>
52678
52679         * modules/gc-random: New file.
52680
52681 2006-03-07  Simon Josefsson  <jas@extundo.com>
52682
52683         * m4/unistd_h.m4: New file.
52684
52685 2006-03-07  Simon Josefsson  <jas@extundo.com>
52686
52687         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52688         test to be side-effect free by storing the result in the cache
52689         variable gl_cv_lib_readline, and moving the assignment of
52690         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52691         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52692
52693 2006-03-07  Simon Josefsson  <jas@extundo.com>
52694
52695         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52696         error on missing devices (the functions will return an error).
52697
52698         * m4/gc.m4: Move random stuff to gc-random.m4
52699
52700 2006-03-07  Simon Josefsson  <jas@extundo.com>
52701
52702         * lib/unistd_.h: New file.
52703
52704 2006-03-07  Simon Josefsson  <jas@extundo.com>
52705
52706         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52707
52708 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52709
52710         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52711         Problem reported by Juan Manuel Guerrero.
52712
52713 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52714
52715         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52716         the unistd module.
52717         * lib/getlogin_r.c: Likewise.
52718         * lib/getlogin_r.h: Likewise.
52719         * lib/glob.c: Likewise.
52720         * lib/pagealign_alloc.c: Likewise.
52721         * lib/unistd_.h: Remove; no longer needed.
52722
52723 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52724
52725         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52726         Add unistd.
52727         * modules/c-stack (Depends-on): Add unistd.
52728         * modules/getlogin_r: Likewise.
52729         * modules/glob: Likewise.
52730         * modules/pagealign_alloc: Likewise.
52731         * modules/unistd (Files): Remove lib/unistd_.h.
52732         (EXTRA_DIST): Remove.
52733         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52734         need unistd_.h.
52735         (MOSTLYCLEANFILES): Remove unistd.h-t.
52736
52737 2006-03-03  Simon Josefsson  <jas@extundo.com>
52738
52739         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52740
52741 2006-03-03  Simon Josefsson  <jas@extundo.com>
52742
52743         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52744         libidn and bison.
52745
52746 2006-03-03  Simon Josefsson  <jas@extundo.com>
52747
52748         * build-aux/maint.mk: Add indent target.
52749
52750 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52751
52752         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52753         our replacement poll.h in any case, to avoid a differing
52754         declaration from a system header.  Seen on AIX.
52755
52756 2006-03-01  Simon Josefsson  <jas@extundo.com>
52757
52758         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52759         <kasal@ucw.cz>.
52760
52761 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52762
52763         * modules/gettime (Depends-on): Add extensions module.
52764         * modules/nanosleep (Depends-on): Likewise.
52765         * modules/settime (Depends-on): Likewise.
52766
52767 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52768
52769         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52770         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52771         pedantically.
52772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52773         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52774
52775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52776         not "==".  Reported by Ralf Wildenhues.
52777
52778 2006-03-01  Karl Berry  <karl@gnu.org>
52779
52780         * doc/Copyright/request-*: new files, synced from gnuorg.
52781
52782 2006-03-01  Karl Berry  <karl@gnu.org>
52783
52784         * config/srclist.txt (Copyright/*): new entries.
52785
52786 2006-02-28  Simon Josefsson  <jas@extundo.com>
52787
52788         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52789
52790 2006-02-27  Simon Josefsson  <jas@extundo.com>
52791
52792         * lib/base64.h: Indent #define's.  From Jim Meyering
52793         <jim@meyering.net>.
52794
52795 2006-02-27  Jim Meyering  <jim@meyering.net>
52796
52797         Revert the change of 2006-02-24, so these files can continue
52798         to be sync'd from gettext.
52799         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52800         of `config.h'.
52801
52802 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52803
52804         * modules/intprops: New file.
52805         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52806         Add intprops.
52807         * modules/getloadavg (Files): Remove lib/intprops.h.
52808         (Depends-on): Add intprops.
52809         * modules/human: Likewise.
52810         * modules/inttostr: Likewise.
52811         * modules/openat: Likewise.
52812         * modules/sig2str: Likewise.
52813         * modules/userspec: Likewise.
52814         * modules/utimecmp: Likewise.
52815         * modules/xnanosleep: Likewise.
52816         * modules/xstrtol: Likewise.
52817
52818 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52819
52820         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52821         * modules/lock-tests (TESTS): Use $(EXEEXT).
52822         * modules/tls-tests: Likewise.
52823         * modules/argp-tests: Likewise.
52824         (check_PROGRAMS): New var, replacing...
52825         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52826
52827 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52828
52829         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
52830         `config.h'.
52831
52832 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52833
52834         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
52835
52836 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52837
52838         Sync from coreutils.
52839         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
52840         gl_CHDIR_SAFER.
52841
52842 2006-02-22  Jim Meyering  <jim@meyering.net>
52843
52844         Sync from coreutils.
52845         * m4/chdir-safer.m4: New file.
52846
52847 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52848
52849         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
52850         AT_FDCWD exceeds INT_MAX.
52851         * lib/openat.h (AT_FDCWD): Likewise.
52852
52853 2006-02-17  Eric Blake  <address@hidden>
52854
52855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
52856
52857 2006-02-16  Simon Josefsson  <jas@extundo.com>
52858
52859         * modules/getaddrinfo (Depends-on): Add sys_socket.
52860
52861 2006-02-15  Simon Josefsson  <jas@extundo.com>
52862
52863         * build-aux/maint.mk: Add dsyntax-check rule.
52864
52865 2006-02-15  Eric Blake  <ebb9@byu.net>
52866
52867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
52868         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
52869         'present but cannot compile' warnings on cygwin.
52870         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
52871         use ws2tcpip.h if sys/socket.h works.
52872         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
52873         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
52874
52875 2006-02-14  Simon Josefsson  <jas@extundo.com>
52876
52877         * modules/maintainer-makefile (Files): Rename.
52878
52879         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
52880         and (the local) Makefile.cfg to maint-cfg.mk.
52881
52882         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
52883         to the latter.
52884
52885         * modules/maintainer-makefile: New module.
52886
52887         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
52888         severaly stripped to make it possible to build it up from scratch
52889         with reliable tests.
52890
52891         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
52892         fixes to permit overriding the default actions when configure and
52893         makefile are not available.
52894
52895 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52896
52897         Sync from coreutils.
52898         * modules/lstat (Depends-on): Don't depend on xalloc.
52899         (License): Change from GPL to LGPL, since this is now simply a
52900         replacement for a libc function.
52901
52902 2006-02-14  Jim Meyering  <jim@meyering.net>
52903
52904         Sync from coreutils.
52905
52906         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
52907         failure on deficient systems, and simplify gnulib lgpl dependencies.
52908         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
52909         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
52910
52911         * lib/xalloc-die.c: Remove unused definition of N_.
52912
52913 2006-02-14  Jim Meyering  <jim@meyering.net>
52914
52915         Sync from coreutils.
52916         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
52917         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
52918         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
52919         double-quote uses of that variable, to accommodate the rare case in
52920         which getmntent is available in none of the libraries checked.  This
52921         happens at least on FreeBSD 5.0.
52922
52923 2006-02-13  Simon Josefsson  <jas@extundo.com>
52924
52925         * gnulib-tool (Usage): Fix --import, from
52926         karl@freefriends.org (Karl Berry).
52927
52928 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52929
52930         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
52931
52932 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
52933
52934         * lib/argp-namefrob.h: Restore changes accidentally lost during the
52935         "autoupdate" on 2005-12-12.
52936
52937 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52938
52939         * modules/closeout (Depends-on): Remove atexit.
52940
52941 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
52942
52943         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
52944         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
52945
52946 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52947
52948         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
52949         __EXTENSIONS__ if this causes compilation to fail.  Problem
52950         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
52951         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
52952
52953 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
52954
52955         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
52956         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
52957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
52958         All uses changed.
52959
52960 2006-01-26  Simon Josefsson  <jas@extundo.com>
52961
52962         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
52963         prototype is visible on mingw32.
52964
52965         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
52966         for mingw32.
52967
52968         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
52969         mingw32).
52970
52971 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52972
52973         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
52974         attempt to open for write; this always fails, at least on POSIX
52975         hosts.  This reinstates the 2006-01-09 change, which was
52976         inadvertently removed.
52977
52978 2006-01-26  Bruno Haible  <bruno@clisp.org>
52979
52980         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
52981         Reported by Paul Eggert.
52982
52983 2006-01-26  Bruno Haible  <bruno@clisp.org>
52984             Paul Eggert  <eggert@cs.ucla.edu>
52985
52986         * lib/stdbool_.h (_Bool)
52987         [(! (defined __cplusplus || defined __BEOS__)
52988           && !defined __GNUC__
52989           && !(defined __HP_cc || defined __xlc__
52990                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
52991                || defined __sgi))]:
52992         #define to signed char in these cases too; this simplifies
52993         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
52994         etc., separately) and makes it more conservative.
52995
52996 2006-01-25  Simon Josefsson  <jas@extundo.com>
52997
52998         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
52999         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
53000         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
53001
53002 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53003
53004         * lib/argp-namefrob.h: Bugfix. Remove stray #
53005
53006 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53007
53008         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
53009         so that we test the test.
53010         Check for yet another HP-UX cc bug involving *bool |= bool.
53011
53012 2006-01-25  Karl Berry  <karl@gnu.org>
53013
53014         * config/srclist.txt (vasnprintf.c): sync lost.
53015
53016 2006-01-25  Jim Meyering  <jim@meyering.net>
53017
53018         Sync from the stable (b5) branch of coreutils:
53019
53020         * lib/fts.c (fts_children): Don't let close() clobber errno from
53021         failed fchdir().
53022
53023         * lib/fts.c (fts_stat): When following a symlink-to-directory,
53024         don't necessarily interpret stat-fails+lstat-succeeds as indicating
53025         a dangling symlink.  That can also happen at least for ELOOP.
53026         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
53027         FYI, this bug predates the inclusion of fts.c in coreutils.
53028
53029         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
53030         in their own block, so pre-c99 compilers don't object.
53031
53032         Avoid the double-free (first in fts_read, second in fts_close) that
53033         would occur when an `active' directory is made inaccessible (e.g.,
53034         via chmod a-x) during a traversal.
53035         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53036         before returning.  Reproduce this failure by
53037         mkdir -p a/b; cd a; chmod a-x . b
53038         Reported by Stavros Passas.
53039
53040 2006-01-25  Jim Meyering  <jim@meyering.net>
53041
53042         * lib/fileblocks.c: Remove more useless parentheses.
53043         * lib/readutmp.h: Likewise.
53044
53045 2006-01-25  Bruno Haible  <bruno@clisp.org>
53046
53047         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
53048         warnings.
53049         Reported by Paul Eggert.
53050
53051 2006-01-25  Bruno Haible  <bruno@clisp.org>
53052
53053         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
53054         rid of a trap command. For Solaris sh.
53055         Reported by Mark D. Baushke <mdb@gnu.org>.
53056
53057 2006-01-24  Simon Josefsson  <jas@extundo.com>
53058
53059         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
53060         Bruno.
53061
53062 2006-01-24  Karl Berry  <karl@gnu.org>
53063
53064         * config/srclist.txt (argp-namefrob.h): sync lost.
53065
53066 2006-01-24  Jim Meyering  <jim@meyering.net>
53067
53068         * modules/openat (Files): Add lib/intprops.h.
53069         From Mark D. Baushke.
53070
53071 2006-01-24  Jim Meyering  <jim@meyering.net>
53072
53073         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
53074         Reported by Mark D. Baushke.
53075
53076 2006-01-24  Jim Meyering  <jim@meyering.net>
53077
53078         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
53079
53080 2006-01-24  Bruno Haible  <bruno@clisp.org>
53081
53082         * modules/strnlen (Maintainer): Change from glibc to all.
53083
53084 2006-01-24  Bruno Haible  <bruno@clisp.org>
53085
53086         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
53087         Patch by Paul Eggert.
53088
53089 2006-01-24  Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
53092         already has it.
53093         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
53094         2005-11-26.
53095
53096         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
53097         'signed char' to avoid problems with the built-in _Bool type.
53098         Reported by Paul Eggert on 2005-11-26.
53099
53100 2006-01-24  Bruno Haible  <bruno@clisp.org>
53101
53102         * gnulib-tool (func_import): Avoid constructing complicated sed
53103         expressions inside backquote.
53104         Report and solution by Mark D. Baushke <mdb@gnu.org>.
53105
53106 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
53107
53108         These changes imported from libc.
53109         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
53110         test and two separate function calls.
53111         * lib/strndup.c (__strndup): Add libc_hidden_def.
53112
53113 2006-01-23  Simon Josefsson  <jas@extundo.com>
53114
53115         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
53116         Remove the test_*_SOURCES variable: automake infers it by default.
53117         * modules/tls-tests: Likewise.
53118
53119 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53120
53121         Work around porting bugs reported by Dieter in
53122         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
53123         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
53124         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
53125         Include "getopt.h" first, to check interface.
53126         (getenv): Declare only if defined HAVE_DECL_GETENV &&
53127         !HAVE_DECL_GETENV.
53128         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
53129         (__strndup): Revert to K&R-style function dfns, the glibc style.
53130         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
53131         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
53132         Include strnlen.h first, to get prototype properly.
53133         (strnlen): Renamed from __strnlen.
53134         Remove weak alias.
53135
53136 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53137
53138         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
53139
53140 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53141
53142         * config/srclist.txt: Adjust to reflect glibc reorganization.
53143         This affects only comments.
53144
53145 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53146
53147          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
53148          Reported by Bruce Korb <bkorb@gnu.org>.
53149
53150 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53151
53152         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
53153         to pacify gcc -Wswitch-default.
53154
53155 2006-01-22  Bruno Haible  <bruno@clisp.org>
53156
53157         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
53158         temporary buffer for sprintf, take into account the precision also
53159         for 'd', 'i', 'u', 'o', 'x', 'X'.
53160
53161 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53162
53163         * modules/argp-tests: New module
53164         * tests/test-argp.c: New file
53165         * tests/test-argp-2.sh: New file
53166
53167 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53168
53169         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53170         (__argp_base_name): Removed
53171         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53172         typo.
53173         (__argp_base_name): Provide macro definition or extern declaration
53174         depending on the configuration
53175
53176 2006-01-20  Simon Josefsson  <jas@extundo.com>
53177
53178         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53179
53180 2006-01-20  Simon Josefsson  <jas@extundo.com>
53181
53182         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53183
53184 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53185
53186         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53187         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53188         Suggested by Bruno Haible.
53189
53190 2006-01-20  Karl Berry  <karl@gnu.org>
53191
53192         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53193         until changes propagate, I guess.
53194
53195 2006-01-19  Simon Josefsson  <jas@extundo.com>
53196
53197         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53198
53199 2006-01-19  Simon Josefsson  <jas@extundo.com>
53200
53201         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53202
53203 2006-01-19  Simon Josefsson  <jas@extundo.com>
53204
53205         * gnulib-tool: Set check_PROGRAMS.
53206
53207         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53208         modules/des-tests, modules/gc-arcfour-tests,
53209         modules/gc-arctwo-tests, modules/gc-des-tests,
53210         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53211         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53212         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53213         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53214         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53215         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53216         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53217         test_*_SOURCES.
53218
53219 2006-01-18  Simon Josefsson  <jas@extundo.com>
53220
53221         * modules/socklen (Depends-on): Depend on sys_socket.
53222
53223 2006-01-18  Simon Josefsson  <jas@extundo.com>
53224
53225         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53226         modules/des-tests, modules/gc-arcfour-tests,
53227         modules/gc-arctwo-tests, modules/gc-des-tests,
53228         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53229         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53230         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53231         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53232         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53233         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53234         $(EXEEXT) to automake TESTS variable, for mingw32.
53235
53236 2006-01-17  Simon Josefsson  <jas@extundo.com>
53237
53238         * modules/socklen (Include): Need sys/socket.h.
53239
53240 2006-01-17  Bruno Haible  <bruno@clisp.org>
53241
53242         * modules/ssize_t (Include): Add <sys/types.h>.
53243
53244 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53245
53246         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53247         it's not portable and it doesn't work with cross-compiles.
53248         Problem reported by Bruno Haible.  Fix missing-$ typo in
53249         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53250         -zignore from being used with Sun's C compiler.
53251
53252 2006-01-12  Simon Josefsson  <jas@extundo.com>
53253
53254         * lib/base64.c: Fix warning, reported by Bruno Haible
53255         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53256
53257 2006-01-12  Bruno Haible  <bruno@clisp.org>
53258
53259         * modules/ldd: New file.
53260         * build-aux/ldd.sh.in: New file.
53261         * MODULES.html.sh (Support for building libraries and executables): Add
53262         ldd.
53263
53264 2006-01-12  Bruno Haible  <bruno@clisp.org>
53265
53266         * m4/ldd.m4: New file.
53267
53268 2006-01-12  Bruno Haible  <bruno@clisp.org>
53269
53270         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53271         endless loop while replacing $auxdir with build-aux.
53272
53273 2006-01-11  Simon Josefsson  <jas@extundo.com>
53274
53275         * lib/stdint_.h (SIZE_MAX): Add missing (.
53276
53277 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53278
53279         Sync from coreutils.
53280         * lib/md5.c: Fix commentary typos.
53281         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53282         * lib/md5.h (__attribute__): Remove; unused.
53283         * lib/sha1.c: Fix commentary to match md5 better.
53284         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53285         so that we don't need to worry about alignment.  All uses changed.
53286         This merges the 2005-10-28 md5 change into sha1.
53287
53288 2006-01-11  Jim Meyering  <jim@meyering.net>
53289
53290         Sync from coreutils.
53291         * lib/md5.c (OP): Fix spacing.
53292
53293 2006-01-11  Bruno Haible  <bruno@clisp.org>
53294
53295         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53296         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53297         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53298
53299 2006-01-11  Bruno Haible  <bruno@clisp.org>
53300
53301         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53302         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53303         the "early" section as well.
53304
53305 2006-01-11  Bruno Haible  <bruno@clisp.org>
53306
53307         Avoid "ar: no archive members specified" error on MacOS X.
53308         * gnulib-tool (func_modules_add_dummy): New function.
53309         (func_import, func_create_testdir): Invoke it.
53310
53311 2006-01-11  Bruno Haible  <bruno@clisp.org>
53312
53313         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53314         with $auxdir in AC_CONFIG_FILES statements.
53315
53316 2006-01-11  Bruno Haible  <bruno@clisp.org>
53317
53318         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53319         Initialize also noinst_HEADERS to empty.
53320
53321 2006-01-11  Bruno Haible  <bruno@clisp.org>
53322
53323         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53324         variables.
53325         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53326         autoreconf.
53327
53328 2006-01-11  Bruno Haible  <bruno@clisp.org>
53329
53330         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53331         overridable by the user.
53332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53333
53334 2006-01-10  Simon Josefsson  <jas@extundo.com>
53335
53336         * modules/sys_socket: New file.
53337
53338 2006-01-10  Simon Josefsson  <jas@extundo.com>
53339
53340         * m4/sys_socket_h.m4: New file.
53341
53342 2006-01-10  Simon Josefsson  <jas@extundo.com>
53343
53344         * lib/socket_.h: New file.
53345
53346 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53347
53348         * modules/readutmp (Maintainer): Add myself.
53349
53350 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53351
53352         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53353         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53354         People who are still concerned with buggy memcmp implementations
53355         can invoke gl_FUNC_MEMCMP themselves.
53356
53357 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53358
53359         * lib/regex_internal.h (BITSET_WORD_BITS):
53360         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53361         preprocessor mishandles large unsigned values as if they were signed.
53362         Problem reported by Claudio Fontana in
53363         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53364
53365 2006-01-10  Jim Meyering  <jim@meyering.net>
53366
53367         Avoid the double-free (first in fts_read, second in fts_close) that
53368         would occur when an `active' directory is made inaccessible (e.g.,
53369         via chmod a-x) during a traversal.
53370         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53371         before returning.  Reproduce this failure by
53372         mkdir -p a/b; cd a; chmod a-x . b
53373         Reported by Stavros Passas.
53374
53375         Sync from coreutils.
53376         * lib/sha1.c: Tweak grammar in a comment.
53377
53378 2006-01-10  Jim Meyering  <jim@meyering.net>
53379
53380         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53381         Patch by Joerg Sonnenberger.
53382
53383 2006-01-10  Bruno Haible  <bruno@clisp.org>
53384
53385         * modules/readutmp: Depend on module free.
53386         * modules/strtok_r: Depend on module restrict.
53387
53388 2006-01-10  Bruno Haible  <bruno@clisp.org>
53389
53390         * modules/gettext (configure.ac): Add an invocation of
53391         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53392
53393 2006-01-10  Bruno Haible  <bruno@clisp.org>
53394
53395         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53396         Reported by Werner Lemberg <wl@gnu.org>.
53397
53398 2006-01-10  Bruno Haible  <bruno@clisp.org>
53399
53400         * lib/localcharset.c: Update from GNU gettext.
53401
53402 2006-01-10  Bruno Haible  <bruno@clisp.org>
53403
53404         * lib/argp.h (__const): Remove macro. Use const instead.
53405         * lib/argp-fmtstream.h (__const): Likewise.
53406         * lib/glob_.h (__const): Remove macro.
53407         * lib/glob-libc.h: Use const instead of __const.
53408
53409 2006-01-10  Bruno Haible  <bruno@clisp.org>
53410
53411         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53412         variable.
53413         Needed to avoid an automake error regarding the 'gettext' module.
53414
53415 2006-01-09  Simon Josefsson  <jas@extundo.com>
53416
53417         * modules/inet_ntop (Depends-on): Add restrict.
53418
53419 2006-01-09  Simon Josefsson  <jas@extundo.com>
53420
53421         * modules/gc-rijndael-tests (License): Put under LGPL.
53422
53423         * modules/gc-des-tests (License): Likewise.
53424
53425         * modules/gc-arcfour-tests (License): Likewise.
53426
53427         * modules/gc-arctwo-tests (License): Likewise.
53428
53429         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53430
53431         * modules/gc-hmac-sha1-tests (Files): Likewise.
53432
53433         * modules/gc-hmac-md5-tests (License): Likewise.
53434
53435         * modules/gc-sha1-tests (License): Likewise.
53436
53437         * modules/gc-md5-tests (License): Likewise.
53438
53439         * modules/gc-md4-tests (License): Likewise.
53440
53441         * modules/gc-md2-tests (License): Likewise.
53442
53443         * modules/gc-tests (License): Likewise.
53444
53445         * modules/des-tests (License): Likewise.
53446
53447         * modules/md4-tests (License): Likewise.
53448
53449         * modules/md2-tests (License): Likewise.
53450
53451 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53452
53453         Sync from coreutils:
53454
53455         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53456         * modules/lib-ignore: New file.
53457         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53458         chdir-safer.m4, lchmod.m4.
53459         * modules/openat: Add mkdirat.c, openat-priv.h.
53460
53461 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53462
53463         Sync from coreutils.
53464         * m4/lib-ignore.m4: New file.
53465         * m4/lchmod.m4: New file.
53466
53467 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         Sync from coreutils.
53470         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53471         for write access: POSIX says that must fail.
53472         * lib/fts.c (diropen): Likewise.
53473         * lib/save-cwd.c (save_cwd): Likewise.
53474         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53475         well, for minor improvements on hosts that lack O_DIRECTORY.
53476         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53477         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53478         Fall back on chown if open failed with EACCES.
53479
53480         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53481         Report an error at compile-time if only a 1-second nominal clock
53482         resolution is found.
53483
53484         * lib/lchmod.h: New file.
53485         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53486         (make_dir_parents): Use lchown rather than chown, and
53487         lchmod rather than chmod.
53488
53489         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53490         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53491         "proc" reported by n0dalus.
53492
53493         * lib/mountlist.c: Include <limits.h>.
53494         (dev_from_mount_options)
53495         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53496         New function.  It no longer assumes "dev=" has the System V meaning
53497         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53498         (read_file_system_list)
53499         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53500         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53501         dev= in that case.
53502
53503         * lib/posixtm.h (PDS_PRE_2000): New macro.
53504         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53505         allow_century.  All usages changed.  Reject dates outside the range
53506         1969-1999 if PDS_PRE_2000 is used.
53507
53508 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53509
53510         Sync from coreutils.
53511         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53512         (Time of day items): Mention the possibility of leap seconds.
53513         Problem reported by Dr. David Alan Gilbert.
53514
53515 2006-01-09  Jim Meyering  <jim@meyering.net>
53516
53517         Sync from coreutils.
53518
53519         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53520
53521         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53522
53523         * lib/modechange.c (mode_compile): Reject an invalid mode string
53524         that starts with an octal digit.  From Andreas Gruenbacher.
53525
53526         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53527         and dup to open_safer and dup_safer, respectively.
53528         (openat_permissive): Fix typo in comment.
53529
53530         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53531         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53532         (_): Remove; no longer needed.
53533         (openat): Renamed from rpl_openat; no need for rpl_openat
53534         since openat.h renames openat for us.
53535         Replace most of the body with a call to openat_permissive,
53536         to avoid duplicate code.
53537         Port to (probably hypothetical) environments were mode_t is
53538         wider than int.
53539         (openat_permissive): Require mode arg, so that we can check
53540         types better.  Put it just after flags.  Change cwd failure
53541         indicator from pointer-to-bool to pointer-to-errno-value.
53542         All callers changed.
53543         Invoke openat_save_fail and/or openat_restore_fail if
53544         cwd_errno is null, so that openat can call us.
53545         (openat_permissive, fdopendir, fstatat, unlinkat):
53546         Simplify errno handling to avoid some duplicate code,
53547         as it's OK to set errno on success.
53548         * lib/openat.h: Revamp code so that function macros depend on
53549         __OPENAT_PREFIX only, not also on AT_FDCWD.
53550         (openat_ro): Remove.  Caller changed to use openat_permissive.
53551         (openat_permissive): Now a macro, if not a function.
53552         (openat_restore_fail, openat_save_fail): Now always functions,
53553         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53554
53555         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53556         and openat.c.
53557         * lib/mkdirat.c: Include openat-priv.h.
53558         Remove definitions of macros defined therein.
53559         * lib/openat.c: Likewise.
53560
53561         * lib/mkdirat.c (mkdirat): New file and function.
53562         * lib/openat.h (mkdirat): Declare.
53563
53564         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53565
53566         * lib/openat.h (openat_permissive): Declare.
53567         (openat_ro): Define.
53568
53569         * lib/openat.c (EXPECTED_ERRNO): New macro.
53570         (openat_permissive): New function -- used in remove.c rewrite.
53571         (all functions): Set errno just before returning, only if there
53572         was an actual failure.
53573         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53574
53575         Emulate openat-family functions using Linux's procfs, if possible.
53576         Idea and some code based on Ulrich Drepper's glibc changes.
53577
53578         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53579         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53580         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53581         before falling back on save_cwd and restore_cwd.
53582         (fdopendir, fstatat, unlinkat): Likewise.
53583
53584         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53585         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53586
53587         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53588         as second argument to va_arg.  Otherwise, some versions of gcc
53589         warn that `if this code is reached, the program will abort'.
53590
53591 2006-01-09  Jim Meyering  <jim@meyering.net>
53592
53593         Sync from coreutils.
53594         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53595         Require openat-priv.h.
53596
53597 2006-01-09  Bruno Haible  <bruno@clisp.org>
53598
53599         * modules/strnlen (Include): Use strnlen.h.
53600
53601 2006-01-09  Bruno Haible  <bruno@clisp.org>
53602
53603         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53604
53605 2006-01-09  Bruno Haible  <bruno@clisp.org>
53606
53607         * lib/sysexit_.h (EX_OK): New macro.
53608         Suggested by Martin Lambers <marlam@marlam.de>.
53609
53610 2006-01-09  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53613         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53614
53615 2006-01-09  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53618         numbers.
53619
53620 2006-01-09  Bruno Haible  <bruno@clisp.org>
53621
53622         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53623         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53624         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53625         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53626
53627 2006-01-09  Bruno Haible  <bruno@clisp.org>
53628
53629         * build-aux/javacomp.sh.in: New file, moved from lib/.
53630         * modules/javacomp-script (Files): Update.
53631         (configure.ac): Add AC_CONFIG_FILES invocation.
53632         (EXTRA_DIST): Remove variable.
53633
53634         * build-aux/javaexec.sh.in: New file, moved from lib/.
53635         * modules/javaexec (Files): Update.
53636         (configure.ac): Add AC_CONFIG_FILES invocation.
53637         (EXTRA_DIST): Remove javaexec.sh.in.
53638
53639         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53640         * modules/csharpcomp-script (Files): Update.
53641         (configure.ac): Add AC_CONFIG_FILES invocation.
53642         (EXTRA_DIST): Remove variable.
53643
53644         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53645         * modules/csharpexec (Files): Update.
53646         (configure.ac): Add AC_CONFIG_FILES invocation.
53647         (EXTRA_DIST): Remove csharpexec.sh.in.
53648
53649 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53650
53651         Sync from coreutils.
53652
53653         Add POSIX ACL support
53654         * lib/acl.h (copy_acl, set_acl): Add declarations.
53655         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53656         systems other than Linux.
53657         (chmod_or_fchmod): New function: use fchmod when possible,
53658         and chmod otherwise.
53659         (file_has_acl): Add a POSIX ACL implementation, with a
53660         Linux-specific subcase.
53661         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53662         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53663         acls are unsupported.
53664         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53665         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53666         are unsupported.
53667
53668 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53669
53670         Sync from coreutils.
53671         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53672
53673 2006-01-07  Bruno Haible  <bruno@clisp.org>
53674
53675         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53676         gl_EARLY.
53677
53678 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53679
53680         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53681         Problem reported for Mingw by Mark Junker.
53682
53683 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53684
53685         * README: Gnulib normally doesn't generate a tarball.
53686
53687 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53688
53689         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53690         long int, not int, for nanosecond counts, so that people who are
53691         used to POSIX struct timespec won't be surprised.  Reported by Jim
53692         Meyering.
53693
53694 2005-12-28  Bruno Haible  <bruno@clisp.org>
53695
53696         * build-aux/config.rpath: Update from GNU gettext.
53697
53698 2005-12-16  Jim Meyering  <jim@meyering.net>
53699
53700         * modules/fprintftime: New module.
53701         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53702
53703 2005-12-16  Jim Meyering  <jim@meyering.net>
53704
53705         * m4/fprintftime.m4: New file.
53706
53707 2005-12-16  Jim Meyering  <jim@meyering.net>
53708
53709         * lib/fprintftime.c, lib/fprintftime.h: New files.
53710
53711 2005-12-15  Simon Josefsson  <jas@extundo.com>
53712
53713         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53714         new m4/socklen.m4.
53715
53716 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53717
53718         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53719         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53720
53721 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53722
53723         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53724         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53725         struct uparams is valid. Fall back to the default values if it is
53726         not.
53727
53728 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53729
53730         * modules/argp (Files): Add argp-pin.c
53731         (Depends-on): dirname
53732         (lib_SOURCES): Add argp-pin.c
53733
53734 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53735
53736         * m4/argp.m4:  Check if program_invocation_name and
53737         program_invocation_short_name are declared and define appropriate
53738         macros if they are not.
53739
53740 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53741
53742         * lib/argp-help.c (__argp_base_name): New function
53743         (__argp_short_program_name): Rewrite using __argp_base_name
53744         * lib/argp-namefrob.h: Define program_invocation_name and
53745         program_invocation_short_name if requested
53746         (__argp_base_name): Add prototype
53747         * lib/argp-parse.c (argp_def): Use gettext wrappers
53748         (argp_default_parser): Use __argp_base_name
53749         * lib/argp-pin.c: New file. Defines program_invocation_name and
53750         program_invocation_short_name on systems that lack them.
53751
53752 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53753
53754         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53755         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53756         porting problem reported by Georg Schwarz in
53757         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53758
53759 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53760
53761         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53762         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53763         porting problem reported by Georg Schwarz in
53764         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53765
53766 2005-12-05  Bruno Haible  <bruno@clisp.org>
53767
53768         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53769         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53770         Reported by Mark Junker <mjscod@gmx.de>.
53771
53772 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53773
53774         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53775         Use implementation from Albert Chin, with some
53776         comments/corrections by Stepan Kasal and myself.
53777
53778 2005-12-02  Bruno Haible  <bruno@clisp.org>
53779
53780         * gnulib-tool (func_import): Accept GPLed build tool modules when
53781         --lgpl is given.
53782         * modules/csharpcomp-script: New file.
53783         * modules/csharpcomp: Depend on it.
53784         * modules/javacomp-script: New file.
53785         * modules/javacomp: Depend on it.
53786         Suggested by Simon Josefsson.
53787
53788 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53789
53790         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53791         statement, to work around an HP-UX 10.20 compiler bug reported by
53792         Peter O'Gorman.
53793
53794 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53795
53796         * modules/savedir (Depends-on): Add openat.
53797
53798 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53799
53800         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53801         (uintmax_t) [defined uintmax_t]: Do not declare.
53802         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53803         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53804         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53805         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53806         sake of portability to weird hosts that C allows (though we don't
53807         know of any practical examples).
53808
53809         * lib/savedir.h (fdsavedir): New decl.
53810         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53811         contains most of the former guts of savedir.
53812         (savedir): Use savedirstream.
53813         Include "openat.h".
53814
53815 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53816
53817         * modules/obstack (Files): Add m4/ulonglong.m4.
53818         Problem reported by Davide Angelocola.
53819
53820 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53821
53822         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53823         coreutils no longer futzes with rounding modes.
53824
53825 2005-11-14  Jim Meyering  <jim@meyering.net>
53826
53827         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53828         replacement of mkstemp.
53829
53830 2005-11-10  Simon Josefsson  <jas@extundo.com>
53831
53832         * lib/readline.c: Remove EOL.
53833
53834 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53835
53836         * modules/gethrxtime (Depends-on): Add gettime.
53837
53838 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53839
53840         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
53841         or gettimeofday; no longer needed.
53842
53843 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53844
53845         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
53846         time business.
53847         (gethrxtime) [! (HAVE_NANOUPTIME
53848         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
53849         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
53850         our own approximation.
53851
53852 2005-11-08  Eric Blake  <ebb9@byu.net>
53853
53854         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53855
53856 2005-11-08  Eric Blake  <ebb9@byu.net>
53857
53858         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
53859
53860 2005-11-04  Bruno Haible  <bruno@clisp.org>
53861
53862         * gnulib-tool: Implement --update mode.
53863
53864 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53865
53866         Fix porting problem reported by Theodoros V. Kalamatianos.
53867         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
53868         Don't assume that futimes failing means we must fail.
53869
53870 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
53871
53872         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
53873         variables to suggest the intended function of the PATH_MAX check.
53874
53875 2005-10-30  Kean Johnston  <jkj@sco.com>
53876
53877         Trivial changes to support SCO systems.
53878         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
53879         as PATH_MAX.
53880         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
53881         where __ptr is null when no I/O is pending.
53882
53883 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53884
53885         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
53886         leave errno alone.  Problem reported by Dmitry V. Levin.
53887
53888 2005-10-28  Simon Josefsson  <jas@extundo.com>
53889
53890         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
53891         Test more.
53892
53893         * tests/test-gc-md2.c, tests/test-md2.c: New files.
53894
53895         * modules/md2, modules/md2-tests: New files.
53896
53897 2005-10-28  Simon Josefsson  <jas@extundo.com>
53898
53899         * m4/inet_ntop.m4: More tests.
53900
53901         * m4/gc-md2.m4, md2.m4: New file.
53902
53903 2005-10-28  Simon Josefsson  <jas@extundo.com>
53904
53905         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
53906         "restrict" keywords, as per POSIX.  Protect the function
53907         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
53908         Don't use K&R prototypes.  Check the sprintf return values.
53909         Re-define EAFNOSUPPORT if not present.  Indent.
53910
53911         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
53912         suggested by Bruno Haible <bruno@clisp.org>.
53913
53914         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
53915
53916         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
53917
53918         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
53919         libgcrypt).
53920
53921         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
53922
53923         * lib/md2.h, lib/md2.c: New files.
53924
53925 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
53926
53927         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
53928         errno alone.  Problem reported by Frederic Jolliton.
53929
53930 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
53931
53932         * modules/verify (License): Change from GPL to LGPL.  This is a
53933         tiny module and there are apparently near-equivalents that are
53934         under the BSD license.
53935
53936 2005-10-24  Simon Josefsson  <jas@extundo.com>
53937
53938         * modules/sha1: Relicense to LGPL.
53939
53940 2005-10-24  Simon Josefsson  <jas@extundo.com>
53941
53942         * lib/md4.h: Shrink buffer size, now that we changed the type.
53943
53944 2005-10-23  Simon Josefsson  <jas@extundo.com>
53945
53946         * gnulib-tool (func_import): Fix --tests-base.
53947
53948 2005-10-22  Simon Josefsson  <jas@extundo.com>
53949
53950         * modules/arcfour (Depends-on): Need stdint.
53951
53952 2005-10-22  Simon Josefsson  <jas@extundo.com>
53953
53954         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
53955         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
53956
53957 2005-10-22  Simon Josefsson  <jas@extundo.com>
53958
53959         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
53960         suggested by Bruno Haible <bruno@clisp.org>.
53961
53962 2005-10-22  Simon Josefsson  <jas@extundo.com>
53963
53964         * lib/crc.h: Include stddef.h, for size_t.
53965
53966 2005-10-22  Simon Josefsson  <jas@extundo.com>
53967
53968         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
53969         arcfour_context struct (simplify test vector testing in GNU
53970         Shishi).
53971
53972 2005-10-21  Simon Josefsson  <jas@extundo.com>
53973
53974         * modules/des, modules/des-tests: New files.
53975
53976         * modules/gc-des, modules/gc-des-tests: New files.
53977
53978         * tests/test-des.c, tests/test-gc-des.c: New file.
53979
53980 2005-10-21  Simon Josefsson  <jas@extundo.com>
53981
53982         * modules/arctwo, modules/arctwo-tests: New files.
53983
53984         * tests/test-arctwo.c: New file.
53985
53986         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
53987
53988         * tests/test-gc-arctwo.c: New file.
53989
53990 2005-10-21  Simon Josefsson  <jas@extundo.com>
53991
53992         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
53993         Bruno Haible <bruno@clisp.org>.
53994
53995         * m4/gc-des.m4: New file.
53996
53997 2005-10-21  Simon Josefsson  <jas@extundo.com>
53998
53999         * m4/arctwo.m4: New file.
54000
54001         * m4/gc-arctwo.m4: New file.
54002
54003 2005-10-21  Simon Josefsson  <jas@extundo.com>
54004
54005         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
54006         block.
54007
54008 2005-10-21  Simon Josefsson  <jas@extundo.com>
54009
54010         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
54011         <bruno@clisp.org>.
54012
54013         * lib/hmac-sha1.c (hmac_sha1): Likewise.
54014
54015         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
54016         Bruno Haible <bruno@clisp.org>.
54017
54018         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
54019         <bruno@clisp.org>.
54020
54021 2005-10-21  Simon Josefsson  <jas@extundo.com>
54022
54023         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
54024
54025 2005-10-21  Simon Josefsson  <jas@extundo.com>
54026
54027         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
54028
54029 2005-10-21  Simon Josefsson  <jas@extundo.com>
54030
54031         * lib/des.h, lib/des.c: New files.
54032
54033         * lib/gc-gnulib.c: Support DES.c
54034
54035 2005-10-21  Simon Josefsson  <jas@extundo.com>
54036
54037         * lib/arctwo.h, lib/arctwo.c: New files.
54038
54039         * lib/gc-gnulib.c: Support ARCTWO.
54040
54041 2005-10-21  Simon Josefsson  <jas@extundo.com>
54042
54043         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
54044         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54045
54046 2005-10-21  Simon Josefsson  <jas@extundo.com>
54047
54048         * gnulib-tool (func_import, func_create_testdir): Define automake
54049         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
54050         Makefile.am snippet),
54051         suggested by Bruno Haible <bruno@clisp.org>.
54052
54053         * modules/gc (Makefile.am): Use it.
54054
54055 2005-10-21  Bruno Haible  <bruno@clisp.org>
54056
54057         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
54058         patch.
54059
54060 2005-10-19  Simon Josefsson  <jas@extundo.com>
54061
54062         * tests/test-gc-rijndael.c: New file.
54063
54064         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
54065
54066 2005-10-19  Simon Josefsson  <jas@extundo.com>
54067
54068         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
54069         interface too.
54070
54071 2005-10-19  Simon Josefsson  <jas@extundo.com>
54072
54073         * tests/test-gc-arcfour.c: New file.
54074
54075         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
54076
54077 2005-10-19  Simon Josefsson  <jas@extundo.com>
54078
54079         * modules/gc-md4, modules/gc-md4-tests: New file.
54080
54081         * tests/test-gc-md4.c: New file.
54082
54083 2005-10-19  Simon Josefsson  <jas@extundo.com>
54084
54085         * m4/gc-md4.m4: New file.
54086
54087 2005-10-19  Simon Josefsson  <jas@extundo.com>
54088
54089         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
54090         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
54091         <kasal@ucw.cz>.
54092
54093 2005-10-19  Simon Josefsson  <jas@extundo.com>
54094
54095         * m4/gc-arcfour.m4: New file.
54096
54097         * m4/gc-rijndael.m4: New file.
54098
54099 2005-10-19  Simon Josefsson  <jas@extundo.com>
54100
54101         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
54102
54103 2005-10-19  Simon Josefsson  <jas@extundo.com>
54104
54105         * lib/gc-gnulib.c: Support ARCFOUR.
54106
54107 2005-10-19  Simon Josefsson  <jas@extundo.com>
54108
54109         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
54110         support.
54111
54112         * lib/gc.h: Add ECB enum type.
54113
54114         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
54115
54116 2005-10-18  Simon Josefsson  <jas@extundo.com>
54117
54118         * tests/test-md5.c: New file.
54119
54120         * modules/md5-tests: New file.
54121
54122 2005-10-18  Simon Josefsson  <jas@extundo.com>
54123
54124         * tests/test-md4.c: New file.
54125
54126         * modules/md4, modules/md4-tests: New files.
54127
54128 2005-10-18  Simon Josefsson  <jas@extundo.com>
54129
54130         * m4/md4.m4: New file.
54131
54132 2005-10-18  Simon Josefsson  <jas@extundo.com>
54133
54134         * lib/md4.h, lib/md4.c: New files, based on md5.?.
54135
54136 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
54137
54138         * gnulib-tool (func_create_testdir): Omit the second check whether
54139         BUILT_SOURCES in nonempty.
54140
54141 2005-10-17  Simon Josefsson  <jas@extundo.com>
54142
54143         * tests/test-rijndael.c: New file.
54144
54145 2005-10-17  Simon Josefsson  <jas@extundo.com>
54146
54147         * modules/sha1: Depend on stdint instead of md5.
54148
54149         * modules/md5: Depend on stdint, remove uint32_t.
54150
54151 2005-10-17  Simon Josefsson  <jas@extundo.com>
54152
54153         * modules/gc-sha1-tests: New file.
54154
54155         * tests/test-gc-sha1.c: New file.
54156
54157 2005-10-17  Simon Josefsson  <jas@extundo.com>
54158
54159         * m4/md5.m4: Remove call to uint32_t.m4.
54160
54161 2005-10-17  Simon Josefsson  <jas@extundo.com>
54162
54163         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54164
54165         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54166         md5.h.
54167
54168         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54169
54170         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54171
54172 2005-10-17  Simon Josefsson  <jas@extundo.com>
54173
54174         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54175
54176 2005-10-17  Simon Josefsson  <jas@extundo.com>
54177
54178         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54179
54180 2005-10-17  Simon Josefsson  <jas@extundo.com>
54181
54182         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54183
54184         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54185
54186 2005-10-17  Bruno Haible  <bruno@clisp.org>
54187
54188         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54189         that it can also be used in a test.
54190
54191 2005-10-16  Bruno Haible  <bruno@clisp.org>
54192
54193         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54194         TESTS_ENVIRONMENT, so that individual tests can augment it.
54195
54196         * gnulib-tool (func_create_testdir): Use an intermediate target for
54197         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54198         macros, like $(ALLOCA_H), which cannot be passed through the command
54199         line.
54200
54201 2005-10-15  Simon Josefsson  <jas@extundo.com>
54202
54203         * modules/rijndael-tests: New file.
54204
54205         * modules/rijndael: New file.
54206
54207 2005-10-15  Simon Josefsson  <jas@extundo.com>
54208
54209         * m4/rijndael.m4: New file.
54210
54211 2005-10-15  Simon Josefsson  <jas@extundo.com>
54212
54213         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54214
54215         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54216
54217 2005-10-14  Simon Josefsson  <jas@extundo.com>
54218
54219         * tests/test-arcfour.c: New file.
54220
54221         * modules/arcfour, modules/arcfour-tests: New files.
54222
54223 2005-10-14  Simon Josefsson  <jas@extundo.com>
54224
54225         * m4/arcfour.m4: New file.
54226
54227 2005-10-14  Simon Josefsson  <jas@extundo.com>
54228
54229         * lib/arcfour.h, lib/arcfour.c: New files.
54230
54231 2005-10-14  Roland McGrath  <roland@redhat.com>
54232
54233         Import from libc.  [BZ #1331]
54234         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54235         macro argument.
54236         Reported by Matej Vela <vela@debian.org>.
54237
54238 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54239
54240         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54241         include <wchar.h>; no longer needed.
54242
54243 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54246
54247 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54248         and  Ulrich Drepper  <drepper@redhat.com>
54249
54250         Import from libc.
54251         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54252         instead of inline stream orientation test and two separate
54253         function calls.  Pay no attention to USE_IN_LIBIO.
54254
54255 2005-10-13  Simon Josefsson  <jas@extundo.com>
54256
54257         * modules/gc-hmac-md5-tests: New file.
54258
54259         * tests/test-gc-hmac-sha1.c: New file.
54260
54261         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54262
54263         * modules/gc-hmac-md5-tests: New file.
54264
54265         * tests/test-gc-md5.c: New file.
54266
54267         * modules/gc-md5-tests: New file.
54268
54269 2005-10-13  Simon Josefsson  <jas@extundo.com>
54270
54271         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54272         Move memory allocation outside of loop.
54273
54274 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54275
54276         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54277         intermediate directory is in a read-only file system.  Problem
54278         reported by Eric Blake.
54279
54280 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54281
54282         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54283
54284 2005-10-12  Simon Josefsson  <jas@extundo.com>
54285
54286         * tests/test-hmac-sha1.c: New file.
54287
54288         * modules/hmac-sha1-tests: New file.
54289
54290         * modules/hmac-sha1: New file.
54291
54292 2005-10-12  Simon Josefsson  <jas@extundo.com>
54293
54294         * modules/gc-sha1: New file.
54295
54296 2005-10-12  Simon Josefsson  <jas@extundo.com>
54297
54298         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54299
54300         * tests/test-gc-pbkdf2-sha1.c: New file.
54301
54302 2005-10-12  Simon Josefsson  <jas@extundo.com>
54303
54304         * modules/gc-md5, modules/gc-hmac-md5: New files.
54305
54306         * modules/gc (Files): Remove md5, memxor and hmac files.
54307
54308 2005-10-12  Simon Josefsson  <jas@extundo.com>
54309
54310         * m4/gc-pbkdf2-sha1.m4: New file.
54311
54312         * m4/gc-hmac-sha1.m4: New file.
54313
54314         * m4/gc-sha1: New file.
54315
54316         * m4/hmac-sha1.m4: New file.
54317
54318 2005-10-12  Simon Josefsson  <jas@extundo.com>
54319
54320         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54321
54322         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54323
54324 2005-10-12  Simon Josefsson  <jas@extundo.com>
54325
54326         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54327         suggested by Bruno Haible <bruno@clisp.org>.
54328
54329 2005-10-12  Simon Josefsson  <jas@extundo.com>
54330
54331         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54332
54333 2005-10-12  Simon Josefsson  <jas@extundo.com>
54334
54335         * lib/gc-pbkdf2-sha1.c: New file.
54336
54337         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54338
54339 2005-10-12  Simon Josefsson  <jas@extundo.com>
54340
54341         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54342
54343         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54344
54345 2005-10-12  Simon Josefsson  <jas@extundo.com>
54346
54347         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54348         GC_USE_HMAC_MD5, respectively.
54349
54350         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54351         (gc_md5): Fix typo.
54352
54353         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54354
54355         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54356
54357         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54358
54359 2005-10-12  Bruno Haible  <bruno@clisp.org>
54360
54361         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54362         Reported by Stepan Kasal <kasal@ucw.cz>.
54363
54364 2005-10-11  Simon Josefsson  <jas@extundo.com>
54365
54366         * tests/test-crc.c: New file.
54367
54368         * modules/crc, modules/crc-tests: New files.
54369
54370 2005-10-11  Simon Josefsson  <jas@extundo.com>
54371
54372         * m4/crc.m4: New file.
54373
54374 2005-10-11  Simon Josefsson  <jas@extundo.com>
54375
54376         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54377
54378         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54379
54380         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54381
54382 2005-10-11  Simon Josefsson  <jas@extundo.com>
54383
54384         * lib/crc.h, lib/crc.c: New files.
54385
54386         * lib/gc.h (gc_hash_buffer): Add doc.
54387
54388 2005-10-11  Bruno Haible  <bruno@clisp.org>
54389
54390         * modules/c-strcasestr: New file.
54391         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54392
54393 2005-10-11  Bruno Haible  <bruno@clisp.org>
54394
54395         * modules/c-strcase: New file.
54396         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54397
54398 2005-10-11  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/strcasecmp.c: Include limits.h.
54401         (strcasecmp): Avoid integer overflow on exotic platforms.
54402         * lib/strncasecmp.c: Include limits.h.
54403         (strncasecmp): Avoid integer overflow on exotic platforms.
54404         Reported by Paul Eggert.
54405
54406 2005-10-11  Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/c-strcasestr.h: New file, from GNU gettext.
54409         * lib/c-strcasestr.c: New file, from GNU gettext.
54410
54411 2005-10-11  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/c-strcase.h: New file, from GNU gettext.
54414         * lib/c-strcasecmp.c: New file, from GNU gettext.
54415         * lib/c-strncasecmp.c: New file, from GNU gettext.
54416
54417 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54418
54419         * modules/mempcpy (License): GPL -> LGPL.
54420         * modules/strchrnul (License): Likewise.
54421         * modules/sysexits (License): Likewise.
54422
54423 2005-10-08  Simon Josefsson  <jas@extundo.com>
54424
54425         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54426
54427 2005-10-07  Simon Josefsson  <jas@extundo.com>
54428
54429         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54430
54431 2005-10-06  Simon Josefsson  <jas@extundo.com>
54432
54433         * tests/test-hmac-md5.c: New file.
54434
54435         * modules/hmac-md5-tests: New file.
54436
54437         * modules/hmac-md5: New file.
54438
54439 2005-10-06  Simon Josefsson  <jas@extundo.com>
54440
54441         * m4/hmac-md5.m4: New file.
54442
54443         * m4/memxor.m4: Require gl_C_RESTRICT.
54444
54445 2005-10-06  Simon Josefsson  <jas@extundo.com>
54446
54447         * lib/memxor.c (memxor): Avoid casts and warnings.
54448
54449 2005-10-06  Simon Josefsson  <jas@extundo.com>
54450
54451         * lib/hmac-md5.c: New file.
54452
54453         * lib/hmac.h: New file.
54454
54455 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54456
54457         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54458         promotes to int, not unsigned int, to catch the AIX 5.3
54459         compiler bug.
54460
54461 2005-10-05  Simon Josefsson  <jas@extundo.com>
54462
54463         * modules/memxor: New file.
54464
54465         * modules/iconv (Files): Move config.rpath to havelib, it is used
54466         there.
54467
54468         * modules/havelib (Files): Add config.rpath.
54469
54470 2005-10-05  Simon Josefsson  <jas@extundo.com>
54471
54472         * m4/memxor.m4: New file.
54473
54474 2005-10-05  Simon Josefsson  <jas@extundo.com>
54475
54476         * lib/memxor.c (memxor): Fix compiler error.
54477
54478         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54479         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54480
54481         * lib/memxor.h, lib/memxor.c: New files.
54482
54483         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54484         we assume all systems have it, suggested by Jim Meyering
54485         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54486         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54487         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54488         same reasons.
54489
54490 2005-10-05  Simon Josefsson  <jas@extundo.com>
54491
54492         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54493
54494 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54495
54496         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54497         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54498         needed, since the source code now assumes these .h files.
54499
54500 2005-10-05  Derek Price  <derek@ximbiot.com>
54501
54502         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54503
54504 2005-10-05  Bruno Haible  <bruno@clisp.org>
54505
54506         * modules/stdint (License): Change to LGPL.
54507
54508 2005-10-04  Simon Josefsson  <jas@extundo.com>
54509
54510         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54511         D. Baushke" <mdb@gnu.org>.
54512
54513 2005-10-04  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/verify.h (verify_true): Provide alternative definition for C++.
54516
54517 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54518
54519         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54520         (SSIZE_MAX): New macro, if not already defined.
54521         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54522         than 2 GiB.
54523
54524 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54525
54526         Sync from coreutils.
54527         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54528         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54529         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54530         ULLONG_MAX doesn't work with 2.7.2.1.
54531
54532 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54533
54534         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54535         From Ben Pfaff.
54536
54537         * modules/exclude (Depends-on): Depend on verify.
54538         * modules/strtoimax (Depends-on): Likewise.
54539         * modules/utimecmp (Depends-on): Likewise.
54540
54541 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54542
54543         * lib/exclude.c: Include verify.h.
54544         (verify): Remove.  All callers changed to use verify.h's version.
54545         * lib/strtoimax.c: Likewise.
54546         * lib/utimecmp.c: Likewis.e
54547
54548         Sync from coreutils.
54549         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54550         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54551         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54552         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54553         bother returning ENOSYS if settimeofday or stime fails; just let
54554         them return whatever errno they want to return.
54555         * lib/utimens.c: Include unistd.h, for dup2.
54556         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54557         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54558
54559 2005-10-02  Jim Meyering  <jim@meyering.net>
54560
54561         Sync from coreutils.
54562         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54563         from glibc-2.2.5 that fails for read-only files.
54564
54565 2005-10-02  Jim Meyering  <jim@meyering.net>
54566
54567         Sync from coreutils.
54568         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54569         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54570         `#if HAVE_CONFIG_H'.
54571         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54572         Remove AT_FDCWD test.
54573         Do not consume the fd unless successful.
54574         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54575         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54576         block, so that we don't even try to compile it if settimeofday is
54577         available.  This works around a compilation failure on OSF1 V5.1,
54578         due to stime requiring a `long int*' while tv_sec is `int'.
54579
54580 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54581
54582         Sync from coreutils.
54583         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54584         against `yes', rather than just testing for nonempty.
54585
54586 2005-10-01  Simon Josefsson  <jas@extundo.com>
54587
54588         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54589         and Darwin.
54590
54591         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54592         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54593         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54594         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54595         Check if struct addrinfo is declared.
54596
54597 2005-10-01  Simon Josefsson  <jas@extundo.com>
54598
54599         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54600         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54601         AI_* and EAI_* definitions.  Protect function declarations.
54602
54603 2005-10-01  Jim Meyering  <jim@meyering.net>
54604
54605         Sync from coreutils.
54606
54607         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54608         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54609         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54610         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54611         in the inet and nsl libraries.  Required on Solaris 5.7.
54612
54613 2005-10-01  Jim Meyering  <jim@meyering.net>
54614
54615         Sync from coreutils.
54616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54617         in the inet and nsl libraries.  Required on Solaris 5.7.
54618
54619 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54620
54621         * lib/getdelim.c (getdelim): Remove unused variables.
54622
54623 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54624
54625         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54626         so that the code works even with ancient cpp.  Portability problem
54627         with GCC 2.7.2.1 reported by Thomas M.Ott.
54628
54629 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54630
54631         * modules/regex (Depends-on): Add strcase.
54632
54633         * modules/gethostname (Licence): Change from GPL to LGPL, since
54634         gethostname.c is a trivial implementation of a standard library
54635         function.
54636         * modules/poll (License): Change from GPL to LGPL, since it's
54637         derived from LGPL code.
54638
54639 2005-09-27  Jim Meyering  <jim@meyering.net>
54640
54641         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54642         HAVE_CONFIG_H.
54643
54644         * lib/intprops.h (signed_type_or_expr__): Define.
54645         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54646         for unsigned types.
54647
54648 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54649
54650         * lib/verify.h (verify_expr): Remove, replacing with:
54651         (verify_true): New macro that returns true instead of void.
54652         (verify_type__): Remove.
54653         (verify): Use verify_true rather than verify_type__.
54654
54655 2005-09-26  Bruno Haible  <bruno@clisp.org>
54656
54657         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54658         is necessary.
54659         (lib_SOURCES): Remove mbchar.c.
54660         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54661         (Files): Add m4/mbrtowc.m4.
54662         * modules/mbiter: Likewise.
54663         * modules/mbuiter: Likewise.
54664
54665 2005-09-26  Bruno Haible  <bruno@clisp.org>
54666
54667         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54668         compile mbchar.c if they are not both present.
54669         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54670         * m4/mbiter.m4 (gl_MBITER): Likewise.
54671         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54672         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54673         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54674
54675 2005-09-25  Jim Meyering  <jim@meyering.net>
54676
54677         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54678         also uses socklen_t.
54679
54680 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54681
54682         * lib/utimens.c (ENOSYS): Define if not already defined.
54683         (futimens): Support having a null PATH if the file descriptor
54684         is nonnegative.
54685
54686         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54687         Remove.
54688         (__attribute): Define to empty unless GCC 3.1 or later.
54689         This works around a core dump on OpenBSD 3.4, which has GCC
54690         2.95.3, which dumps core when given __attribute__(()).  It also
54691         simplifies other tests, since we really don't want to bother with
54692         worrying about which ancient version of GCC supported what.
54693         Original problem reported by Yoann Vandoorselaere, with part of
54694         the fix suggested by Derek Price.
54695
54696 2005-09-24  Jim Meyering  <jim@meyering.net>
54697
54698         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54699         so we can once again use a positive bitfield width of 1 -- now we
54700         don't have to explain why we were using a bitfield width of 2.
54701
54702 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54703
54704         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54705         and similarly for the other external symbols.  Problem reported
54706         by James Gallager.
54707
54708         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54709         bug reported by Jim Meyering.
54710
54711         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54713         not needed, since socklen is a prerequisite module.
54714
54715 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54716
54717         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54718         Problem reported by Eric Blake.
54719         (getaddrinfo): Initialize se so that it's not garbage.
54720         Redo internal storage allocation so that it doesn't make unportable
54721         assumptions about alignment.
54722         Fix a memory leak.
54723
54724         * lib/utimens.c (futimens): Use futimesat if available.
54725         Prefer it to futimes since it doesn't have the futimes bug.
54726
54727         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54728         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54729         Instead, declare a function that returns a pointer to an array,
54730         and use verify_type__ to declare the size of the array.
54731         Problem and germ of a solution reported by Bruno Haible.
54732         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54733         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54734
54735 2005-09-23  Jim Meyering  <jim@meyering.net>
54736
54737         Sync from coreutils.
54738         Correct build failure (socklen_t not defined) on at least
54739         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54740         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54741
54742 2005-09-23  Jim Meyering  <jim@meyering.net>
54743
54744         * modules/getaddrinfo (Depends-on): Add socklen.
54745
54746 2005-09-23  Bruno Haible  <bruno@clisp.org>
54747
54748         * tests/test-verify.c: New file.
54749
54750 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         Sync from coreutils.
54753
54754         * modules/argmatch (Depends-on): Add verify.
54755         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54756         unistd-safer.
54757         * modules/save-cwd (Depends-on): Likewise.
54758
54759         * modules/openat (Files): Add lib/openat-die.c.
54760         (Depends-on): Remove error, exitfail.
54761         Add dirname.
54762
54763         * modules/verify: New file.
54764         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54765         with "verify" module.
54766
54767 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54768
54769         Sync from coreutils.
54770
54771         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54772         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54773         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54774         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54775         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54776         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54777         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54778         Don't bother checking for string.h, stdlib.h, unistd.h.
54779         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54780         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54781         module's job.
54782         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54783         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54784
54785         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54786         (gl_GETDATE): Use it.
54787
54788         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54789
54790 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54791
54792         Sync from coreutils.
54793
54794         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54795         stat-time.h.
54796         * lib/argmatch.h: Include verify.h
54797         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54798         (ARGMATCH_ASSERT): Remove; unused.
54799         * lib/canonicalize.c: Assume STDC_HEADERS.
54800         * lib/exclude.c: Include "strcase.h".
54801         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54802         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54803         and stdio-safer.h.
54804         (getusershell): Call fopen, not fopen_safer.
54805         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54806         Do not include unistd-safer.h.
54807         (save_cwd): Don't call fd_safer; no longer needed
54808         now that we include fcntl--.h.
54809
54810         * lib/getdate.y (relative_time): New type.
54811         (RELATIVE_TIME_0): New constant.
54812         (parser_control): Use relative_time instead of doing it ourselves.
54813         (%union): Add new relative_time rel member.
54814         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54815         Now typeless.
54816         (relunit, relunit_snumber): Now of type rel.
54817         (zone, rel, relunit, get_date): Adjust to above changes.
54818
54819         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54820         Do not include unistd-safer.h.
54821         (getloadavg): Don't call fd_safer; no longer needed
54822         now that we include fcntl--.h.
54823
54824         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54825         (make_dir_parents): Treat ENOSYS like EEXIST.
54826
54827         Improve quality of diagnostics on restore_cwd failure.
54828         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
54829         (make_dir_parents): Last arg is now int * (for errno), not bool *.
54830         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
54831         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
54832         each time through the loop.  Do not diagnose restore_cwd failure;
54833         that is the caller's job (and perhaps the caller does not care).
54834
54835         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
54836         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
54837         If the file already exists but is not a directory, don't bother
54838         to try to make its parents.
54839         Close potential file descriptor leak if we can't chdir("/") (!).
54840         Don't always return true if chdir($PWD) fails; return true only
54841         if the requested action was done successfully (except for the
54842         chdir($PWD)).
54843         Don't log final directory unless we actually made it.
54844         Refactor to avoid duplicate code to fix up permissions.
54845         Don't attempt to fix up parent permissions if chdir($PWD) fails.
54846
54847         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
54848         to make it a bit faster and (I hope) clearer.
54849         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
54850         Fix bug in formats like %2N.
54851
54852         * lib/verify.h: New file.
54853
54854 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54855
54856         Sync from coreutils.
54857         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
54858
54859 2005-09-22  Jim Meyering  <jim@meyering.net>
54860
54861         Sync from coreutils.
54862
54863         * m4/lstat.m4 (gl_FUNC_LSTAT):
54864         Use AC_LIBSOURCES to require lstat.c and lstat.h.
54865         Remove obsolete comment.
54866         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
54867         * m4/xstrtod.m4: Likewise.
54868
54869         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
54870
54871 2005-09-22  Jim Meyering  <jim@meyering.net>
54872
54873         Sync from coreutils.
54874
54875         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
54876
54877         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
54878         the .tm_year member, since otherwise gcc-4.0 would now warn about
54879         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
54880
54881         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
54882         order to avoid an unsuppressible warning from gcc on 64-bit systems.
54883
54884         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
54885         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
54886         when run in a time zone for which daylight savings time is in effect
54887         for the starting date.
54888
54889         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
54890         stop us from restricting permissions of just-created absolute-named
54891         directories.
54892         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
54893         to restore initial working directory.
54894         * lib/mkdir-p.c (make_dir_parents): New parameter:
54895         different_working_dir, to tell caller if/when we change the working
54896         directory and are unable to return to the initial one.
54897         * lib/mkdir-p.h (make_dir_parents): Update prototype.
54898         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
54899         `return false'.  This fixes a bug introduced on 2004-07-30.
54900
54901         * lib/openat.c (fdopendir): Be sure to close the supplied
54902         file descriptor before returning.  This makes our replacement
54903         implementation a little closer to Solaris's, where fdopendir
54904         ties the file descriptor to the returned DIR* pointer.
54905         * lib/openat.c (unlinkat): New function.
54906         * lib/openat.h (unlinkat): Add prototype.
54907         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
54908         (openat_restore_fail): Rename from openat_restore_die.
54909         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
54910
54911         Provide an alternative to exiting immediately upon save_cwd or
54912         restore_cwd failure.  Now, an application can arrange e.g.,
54913         to perform a longjump in that case.
54914         * lib/openat.c: Include dirname.h.
54915         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
54916         (rpl_openat, fdopendir, fstatat): Call openat_save_die
54917         and openat_restore_die rather than calling error directly.
54918         Don't include "error.h" or "exitfail.h"; they're no longer needed.
54919
54920         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
54921         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
54922         define.
54923
54924         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
54925         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
54926                             int utc, int nanoseconds);
54927         Background:
54928         date should not have to allocate a megabyte of virtual memory to
54929         handle a format argument like +%1048575T.  When implemented with
54930         strftime, it must allocate such a buffer, use strftime to fill it
54931         in, print it, then free it.
54932         With fprintftime, it simply prints everything and exits.
54933         With no need for memory allocation, that's one fewer way to fail.
54934         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
54935         optional field width, not before, so we accept %9:z, not %:9z.
54936         (my_strftime): Be sure to use L_('x') for literals.
54937
54938         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
54939         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
54940         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
54941         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
54942         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
54943         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
54944         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
54945         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
54946         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
54947         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
54948         * lib/xgethostname.c, lib/xreadlink.c:
54949         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
54950
54951         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
54952         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
54953         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
54954         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54955         and don't include <sys/file.h>).
54956
54957 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
54958
54959         Sync from coreutils.
54960
54961         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
54962         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
54963         [!LDAV_DONE]: Avoid unused variable warning.
54964
54965 2005-09-21  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/unicodeio.h (unicode_to_mb): New declaration.
54968
54969 2005-09-20  Derek Price  <derek@ximbiot.com>
54970
54971         * lib/getaddrinfo.c: Don't include <netdb.h> included from
54972         getaddrinfo.h.
54973
54974 2005-09-20  Bruno Haible  <bruno@clisp.org>
54975
54976         * gnulib-tool: Remove trailing slashes from the values specified for
54977         --source-base, --m4-base, --tests-base, --aux-dir.
54978         Suggested by Simon Josefsson <jas@extundo.com>.
54979
54980 2005-09-20  Bruno Haible  <bruno@clisp.org>
54981
54982         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
54983         func_modules_to_filelist, func_import, func_create_testdir): Make all
54984         sorting results locale-independent, so that gnulib-cache.m4 doesn't
54985         change when gnulib-tool is invoked in a different locale.
54986
54987 2005-09-19  Simon Josefsson  <jas@extundo.com>
54988
54989         * m4/socklen.m4: Fix typo.
54990
54991 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54992
54993         Use a consistent style for including <config.h>.
54994         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
54995         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
54996         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
54997         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
54998         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
54999         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
55000         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
55001         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
55002         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
55003         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
55004         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
55005         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
55006         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
55007         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
55008         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
55009         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
55010         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
55011         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
55012         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
55013         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
55014         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
55015         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
55016         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
55017         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
55018         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
55019         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
55020         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
55021         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
55022         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
55023         lib/xstrtoumax.c, lib/yesno.c:
55024         Standardize inclusion of config.h.
55025         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
55026         lib/inttostr.h:  Removed inclusion of config.h from header files.
55027         * lib/inttostr.c:  Adjusted in-tree users.
55028         * lib/timespec.h: Remove superfluous warning to include config.h.
55029         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
55030         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
55031         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
55032         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
55033         config.h with HAVE_CONFIG_H.
55034
55035 2005-09-19  Jim Meyering  <jim@meyering.net>
55036
55037         * modules/pathmax (License): Change to LGPL.
55038
55039 2005-09-19  Derek Price  <derek@ximbiot.com>
55040
55041         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
55042
55043 2005-09-19  Bruno Haible  <bruno@clisp.org>
55044
55045         * gnulib-tool (import): Provide default for --tests-base.
55046
55047 2005-09-19  Bruno Haible  <bruno@clisp.org>
55048
55049         * doc/quote.texi: New file, extracted from gnulib.texi.
55050         * doc/ctime.texi: New file, extracted from gnulib.texi.
55051         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
55052         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
55053         * doc/gnulib.texi: Include them.
55054
55055 2005-09-18  Bruno Haible  <bruno@clisp.org>
55056
55057         Portability fix.
55058         * gnulib-tool (func_readlink): New function.
55059         (func_ln_if_changed): Use it.
55060
55061 2005-09-18  Bruno Haible  <bruno@clisp.org>
55062
55063         * gnulib-tool: Support --with-tests also with --import.
55064         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
55065         (func_import): Use variables $testsbase and $inctests. Emit a
55066         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
55067         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
55068         SUBDIRS += $testsdir.
55069         (func_create_testdir): Update.
55070
55071 2005-09-18  Bruno Haible  <bruno@clisp.org>
55072
55073         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
55074         instead of $dry_run.
55075         (func_cp_if_changed, func_mv_if_changed): Remove functions.
55076         (func_ln_if_changed): Don't handle dry-run here.
55077         (func_import): In dry-run mode, detect more precisely which actions
55078         would be performed, and don't use "...ing" verbs.
55079
55080 2005-09-18  Bruno Haible  <bruno@clisp.org>
55081
55082         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
55083         (func_import): Use join on two temporary files instead of three nested
55084         loops, in order to determine which files are new or old.
55085
55086 2005-09-18  Bruno Haible  <bruno@clisp.org>
55087
55088         * gnulib-tool (func_import): Comment out code that spits out the
55089         new files with --dry-run.
55090
55091 2005-09-18  Bruno Haible  <bruno@clisp.org>
55092
55093         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
55094
55095 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         * lib/stat-time.h: New file.
55098         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
55099         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
55100         in a different way.
55101         (timespec_cmp): New function.
55102         * lib/utimecmp.c: Include stat-time.h.
55103         (SYSCALL_RESOLUTION): Depend on whether various struct stat
55104         members exist, not on the obsolescent ST_MTIM_NSEC.
55105         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
55106
55107 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55108
55109         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
55110
55111 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55112
55113         * MODULES.html.sh (File system functions): Add stat-time.
55114         * modules/stat-time: New file.
55115         * modules/timespec (Files): Remove m4/st_mtim.m4; this
55116         is now done in a different way, by the stat-time module.
55117         * modules/utimecmp (Depends-on): Add stat-time.
55118
55119 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         * m4/st_mtim.m4: Remove.  Superseded by...
55122         * m4/stat-time.m4: New file.
55123         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
55124         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
55125
55126 2005-09-15  Derek Price  <derek@ximbiot.com>
55127
55128         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
55129
55130 2005-09-15  Derek Price  <derek@ximbiot.com>
55131
55132         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
55133         * lib/regex_internal.c: Ditto, using this...
55134         (__GNUC_PREREQ): ...new macro.
55135         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
55136         using...
55137         (__GNUC_PREREQ): ...this new macro.
55138
55139         * lib/strstr.h: Include string.h. Define strstr as a macro here.
55140
55141 2005-09-15  Derek Price  <derek@ximbiot.com>
55142             Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
55145         changes, consolidating in...
55146         * lib/regex_internal.h: ...this file.
55147
55148 2005-09-13  Jim Meyering  <jim@meyering.net>
55149
55150         * lib/canon-host.c: Filter through gnu indent and reword comments
55151         slightly.
55152         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
55153
55154 2005-09-13  Derek Price  <derek@ximbiot.com>
55155
55156         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
55157         failure.
55158         Reported by Jim Meyering  <jim@meyering.net>.
55159
55160 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55161
55162         * lib/base64.c: Typo.
55163         (base64_encode): Put b64str in initialized data section.
55164
55165 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55166
55167         Merge glibc and coreutils changes into gnulib, plus a few
55168         extra fixes.
55169         * lib/md5.c: Use #error rather than a string.
55170         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55171         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55172         (__attribute__): Define to empty for non recent-GCC.
55173         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55174         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55175         Renamed from their non-__ counterparts, with new macros replacing
55176         them if not _LIBC.  Add __THROW attribute.
55177         (rol): Remove.
55178         (struct md5_ctx): Align buffer if using GCC.
55179         * lib/sha1.h (struct sha1_ctx): Likewise.
55180         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55181         The old name was backwards.
55182         (NOTSWAP): Remove; not used.
55183         (rol): New macro, moved here from md5.h.
55184         (sha1_process_block): Remove a FIXME that doesn't make sense.
55185
55186 2005-09-12  Derek Price  <derek@ximbiot.com>
55187
55188         Return usable errors from canon-host.
55189         * lib/canon-host.h: New file.
55190         * lib/canon-host.c (canon_host): Wrap...
55191         (canon_host_r): ...this new function, which now relies exclusively on
55192         getaddrinfo.
55193         (ch_strerror): New function.
55194         (last_cherror): New global.
55195         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55196         interface.
55197         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55198         void *.
55199         (freeaddrinfo): Free ai->ai_canonname when set.
55200
55201 2005-09-12  Derek Price  <derek@ximbiot.com>
55202
55203         Make canon-host require getaddrinfo.
55204         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55205         AC_LIBSOURCE canon-host.h.  Call...
55206         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55207         gl_GETADDRINFO.
55208         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55209
55210 2005-09-12  Derek Price  <derek@ximbiot.com>
55211
55212         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55213         LGPL.
55214         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55215
55216 2005-09-12  Derek Price  <derek@ximbiot.com>
55217
55218         * lib/gai_strerror.c: Include config.h when available.  Include
55219         getaddrinfo.h before other headers to test interface.
55220         Reported by Larry Jones <lawrence.jones@ugs.com>.
55221
55222 2005-09-12  Derek Price  <derek@ximbiot.com>
55223             Paul Eggert  <eggert@cs.ucla.edu>
55224
55225         * modules/glob (Files): Add glob-libc.h.
55226
55227 2005-09-12  Derek Price  <derek@ximbiot.com>
55228             Paul Eggert  <eggert@cs.ucla.edu>
55229
55230         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55231         glob_.h, glob-libc.h.
55232         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55233
55234 2005-09-12  Derek Price  <derek@ximbiot.com>
55235             Paul Eggert  <eggert@cs.ucla.edu>
55236
55237         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55238         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55239         protecting things that should be done only in gnulib contexts.
55240         * lib/glob_.h: New file, containing only the glob things needed for
55241         gnulib.
55242         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55243         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55244         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55245         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55246         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55247         and to respect the namespace rules better.
55248
55249 2005-09-08  Simon Josefsson  <jas@extundo.com>
55250
55251         * modules/socklen: New file.
55252
55253 2005-09-08  Simon Josefsson  <jas@extundo.com>
55254
55255         * m4/socklen.m4: New file.
55256
55257 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55258
55259         * modules/utimens (Files): Add m4/utimbuf.m4, since
55260         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55261         Reported by Sergey Poznyakoff.
55262
55263 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55264
55265         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55266         definitions, since that's the preferred style in glibc.
55267         Fix a minor spacing issue, and update copyright notice to match
55268         glibc's.
55269
55270 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55271
55272         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55273
55274 2005-09-06  Simon Josefsson  <jas@extundo.com>
55275
55276         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55277         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55278
55279 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55280
55281         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55282         warning.
55283
55284 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55285
55286         * config/srclist.txt: Add glibc bug 1302.
55287
55288 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         Change bitset word type from unsigned int to unsigned long int,
55291         as this has better performance on typical 64-bit hosts.
55292         Port bitset code to hosts with unusual word sizes.
55293         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55294         (build_collating_symbol):
55295         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55296         argument is a bitset.  This is merely a style issue, but it makes
55297         it clearer that an entire array is expected.
55298         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55299         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55300         Port to the case where bitset_word is not the same as unsigned int.
55301         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55302         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55303         Likewise.
55304         * lib/regexec.c (check_dst_limits_calc_pos_1,
55305         check_subexp_matching_top):
55306         (build_trtable, group_nodes_into_DFAstates):
55307         Likewise.
55308         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55309         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55310         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55311         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55312         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55313         * lib/regcomp.c (optimize_subexps, lower_subexp):
55314         Work even if bitset_word has holes in its bitwise representation.
55315         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55316         * lib/regexec.c (check_dst_limits_calc_pos_1,
55317         check_subexp_matching_top):
55318         Likewise.
55319         * lib/regex_internal.c (re_string_reconstruct):
55320         Don't assume UCHAR_MAX == 255.
55321         * lib/regex_internal.h (bitset_set_all): Likewise.
55322         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55323         All uses changed.
55324         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55325         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55326         All uses changed.
55327         (BITSET_WORD_MAX): New macro.
55328         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55329         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55330         (bitset_empty, bitset_copy):
55331         Prefer sizeof (bitset) to multiplying it out ourselves.
55332         (bitset_not_merge): Remove; unused.
55333         (bitset_contain): Return bool, not unsigned int with one bit on.
55334         All callers changed.
55335         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55336         alignment than re_node_set; do this by defining a new internal
55337         type struct dests_alloc and using it to allocate memory.
55338
55339 2005-09-05  Bruno Haible  <bruno@clisp.org>
55340
55341         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55342         links.
55343
55344 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55345
55346         * modules/size_max (Makefile.am): Add size_max.h
55347
55348 2005-09-04  Derek Price  <derek@ximbiot.com>
55349
55350         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55351
55352 2005-09-03  Simon Josefsson  <jas@extundo.com>
55353
55354         * gnulib-tool: Fix typo.
55355
55356 2005-09-03  Simon Josefsson  <jas@extundo.com>
55357
55358         * config/srclist.txt: Add glibc bug 1293.
55359
55360 2005-09-03  Derek Price  <derek@ximbiot.com>
55361
55362         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55363         From Larry Jones <lawrence.jones@ugs.com>.
55364
55365 2005-09-02  Simon Josefsson  <jas@extundo.com>
55366
55367         * modules/socklen: New file.
55368
55369 2005-09-02  Simon Josefsson  <jas@extundo.com>
55370
55371         * modules/havelib: New module.
55372
55373         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55374         Use havelib.
55375
55376 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55377
55378         Check for arithmetic overflow when calculating sizes, to prevent
55379         some buffer-overflow issues.  These patches are conservative, in the
55380         sense that when I couldn't determine whether an overflow was possible,
55381         I inserted a run-time check.
55382         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55383         macros.
55384         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55385         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55386         (re_xnrealloc, re_x2nrealloc): New inline functions.
55387         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55388         parse_bracket_exp):
55389         (build_equiv_class, build_charclass): Check for arithmetic overflow
55390         in size expression calculations.
55391         * lib/regex_internal.c (re_string_realloc_buffers):
55392         (build_wcs_upper_buffer, re_node_set_add_intersect):
55393         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55394         (re_dfa_add_node, register_state): Likewise.
55395         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55396         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55397         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55398         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55399
55400 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55401
55402         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55403         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55404
55405 2005-09-02  Bruno Haible  <bruno@clisp.org>
55406
55407         Support for lib vs. lib64 distinction on biarch platforms.
55408         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55409         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55410         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55411
55412 2005-09-02  Bruno Haible  <bruno@clisp.org>
55413
55414         * gnulib-tool (import): In the other first-use case, provide defaults
55415         as well.
55416
55417 2005-09-02  Bruno Haible  <bruno@clisp.org>
55418
55419         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55420         patches not yet found in the latest gettext release.
55421
55422 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55423
55424         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55425         to avoid a collision with bits/local_lim.h in glibc.
55426         All uses changed.  Problem reported by Dmitry V. Levin in
55427         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55428
55429         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55430         bugs in int versus size_t comparisons.
55431         (re_string_context_at): Fix bug where the code assumed that
55432         Idx is signed.
55433
55434         Use bool where appropriate.
55435         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55436         All callers changed.
55437         (calc_eclosure_iter): Likewise, for ROOT arg.
55438         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55439         (build_charclass_op): Likewise, for NON_MATCH arg.
55440         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55441         (re_string_construct_common): Likewise, for ICASE arg.
55442         * lib/regexec.c (re_search_2_stub, re_search_stub):
55443         Likewise, for RET_LEN arg.
55444         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55445         (set_regs): Likewise, for FL_BACKTRACK arg.
55446         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55447         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55448         (calc_eclosure_iter, parse_bracket_exp):
55449         Use bool for internal variables that are booleans.
55450         * lib/regexec.c (re_search_internal, check_matching,
55451         proceed_next_node):
55452         (set_regs, build_sifted_states, sift_states_bkref):
55453         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55454         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55455         (find_collation_sequence_value):
55456         Likewise.
55457         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55458         (re_node_set_compare):
55459         Return bool, not int. All callers changed.
55460         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55461         (build_trtable, check_node_accept): Likewise.
55462         * lib/regex_internal.h: Include stdbool.h.
55463
55464         Fix bugs uncovered when converting to bool.
55465         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55466         failure instead of charging ahead blindly.
55467         * lib/regex_internal.c (register_state): Likewise.
55468         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55469         for freeing internal storage.
55470         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55471         bitset pieces used as boolean, to avoid undefined behavior
55472         on hosts that do int overflow checking.
55473
55474 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55475
55476         * config/srclist.txt: Add glibc bugs 1285-1287.
55477
55478 2005-09-01  Jim Meyering  <jim@meyering.net>
55479
55480         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55481         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55482         Require gl_STAT_MACROS, too.
55483
55484 2005-09-01  Bruno Haible  <bruno@clisp.org>
55485
55486         * gnulib-tool (import): In the first-use case, provide defaults.
55487
55488 2005-09-01  Bruno Haible  <bruno@clisp.org>
55489
55490         * gnulib-tool (func_import): Remove the .tmp files.
55491
55492 2005-09-01  Bruno Haible  <bruno@clisp.org>
55493
55494         * gnulib-tool (func_import): Fix handling of symbolic links.
55495
55496 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55497
55498         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55499         old glibc regex code mishandles strings longer than 2**31 bytes.
55500         This patch fixes this when the regex code is used in gnulib
55501         (i.e., outside glibc).
55502
55503         This patch should not affect the use of the regex code inside
55504         glibc.  No doubt this problem also needs to be handled for glibc
55505         as well, but the result will be an incompatible change to the
55506         glibc ABI, and the old ABI will have to be supported too.  That
55507         can be the the subject for another patch.
55508
55509         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55510         governing whether the rest of this patch is active.  By default,
55511         the macro is disabled and the patch has no effect.
55512         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55513         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55514         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55515         (re_match_2, re_set_registers): Use the new types.
55516         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55517         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55518         New macros.
55519         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55520         (re_string_context_at, bin_tree_t, re_dfastate_t):
55521         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55522         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55523         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55524         (re_string_char_size_at, re_string_wchar_at):
55525         (re_string_elem_size_at):
55526         Use the new types and macros to port to 64-bit hosts.
55527         Use unsigned types for internal values, so that the code
55528         mostly works even for arrays larger than SSIZE_MAX.
55529         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55530         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55531         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55532         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55533         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55534         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55535         (calc_inveclosure, parse_dup_op, build_range_exp):
55536         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55537         (fetch_number, create_token_tree, mark_opt_subexp):
55538         Likewise.
55539         * lib/regex_internal.c (re_string_construct_common,
55540         create_ci_newstate):
55541         (create_cd_newstate, re_string_allocate, re_string_construct):
55542         (re_string_realloc_buffers, build_wcs_upper_buffer):
55543         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55544         (re_string_reconstruct, re_string_peek_byte_case):
55545         (re_string_fetch_byte_case, re_string_context_at):
55546         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55547         (re_node_set_init_copy, re_node_set_add_intersect):
55548         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55549         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55550         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55551         (re_acquire_state, re_acquire_state_context, register_state):
55552         Likewise.
55553         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55554         search_cur_bkref_entry):
55555         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55556         (re_search_internal, re_search_2_stub, re_search_stub)
55557         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55558         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55559         (update_cur_sifted_state, check_dst_limits):
55560         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55561         (check_subexp_limits, sift_states_bkref, merge_state_array):
55562         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55563         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55564         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55565         (expand_bkref_cache, check_node_accept_bytes):
55566         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55567         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55568         (acquire_init_state_context, check_halt_node_context):
55569         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55570         (sift_states_backward, clean_state_log_if_needed):
55571         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55572         (find_recover_state, transit_state_sb, transit_state_mb):
55573         (transit_state_bkref, build_trtable, match_ctx_clean):
55574         Likewise.
55575         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55576         to work around an assumption that REG_MISSING is negative.
55577
55578         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55579         (seek_collating_symbol_entry) [defined _LIBC]:
55580         (lookup_collation_sequence_value) [defined _LIBC]:
55581         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55582         Use prototypes rather than old-style function definitions.
55583         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55584         (transit_state_sb) [0]:
55585         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55586
55587         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55588         rm_eo.
55589
55590         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55591         (optimize_subexps, lower_subexp):
55592         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55593         since the signed shift might overflow.  Use 1u<<31 instead.
55594         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55595         Likewise.
55596         * lib/regexec.c (check_dst_limits_calc_pos_1,
55597         check_subexp_matching_top): Likewise.
55598
55599         * lib/regcomp.c (optimize_subexps, lower_subexp):
55600         Use CHAR_BIT rather than 8, for clarity.
55601         * lib/regexec.c (check_dst_limits_calc_pos_1):
55602         (check_subexp_matching_top): Likewise.
55603         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55604         have to worry about portability issues when shifting it left.
55605         Remove no-longer-needed test for table_size > 0.
55606         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55607         in a word, as the resulting behavior is undefined.
55608         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55609         in one case, a <= should have been an <, and in another case the
55610         whole test was missing.
55611         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55612         the standard name CHAR_BIT.
55613         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55614         this is not true on one's complement and signed-magnitude hosts.
55615
55616         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55617         next_last_offset.
55618         (struct re_dfa_t): Remove unused member states_alloc.
55619         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55620
55621 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55622
55623         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55624         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55625         and large-file glibc and in 32-bit large-file Solaris.
55626
55627 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55628
55629         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55630         lengths fit in regoff_t; this isn't true if regoff_t is the same
55631         width as size_t.
55632         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55633         (= START + RANGE) instead of RANGE.  This avoids overflow
55634         problems when regoff_t is the same width as size_t.
55635         All callers changed.
55636         (re_search_2_stub): Check for overflow when adding the
55637         sizes of the two strings.
55638         (re_search_stub): Check for overflow when adding START
55639         to RANGE; if it occurs, substitute the extreme value.
55640
55641 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55642
55643         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55644
55645 2005-08-31  Jim Meyering  <jim@meyering.net>
55646
55647         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55648         a pointer-to-const.
55649         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55650         (register_state): Likewise.
55651         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55652         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55653         (group_nodes_into_DFAstates): Likewise.
55654
55655 2005-08-31  Jim Meyering  <jim@meyering.net>
55656
55657         * check-module: Add a FIXME comment.
55658
55659 2005-08-31  Eric Blake  <ebb9@byu.net>
55660
55661         * modules/unistd-safer (Files): Add unistd--.h.
55662         * modules/stdio-safer (Files): Add stdio--.h.
55663
55664 2005-08-31  Derek Price  <derek@ximbiot.com>
55665
55666         * lib/getdelim.c (getdelim): Return EOF on EOF.
55667         Reported by Larry Jones <lawrence.jones@ugs.com>.
55668
55669 2005-08-31  Bruno Haible  <bruno@clisp.org>
55670
55671         Avoid unnecessary diffs in the generated lib/Makefile.am.
55672         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55673         the generated files.
55674         (func_import): Don't set cmd.
55675
55676 2005-08-31  Bruno Haible  <bruno@clisp.org>
55677
55678         * lib/strstr.c: Include <stddef.h>, for NULL.
55679         * lib/strcasestr.c: Likewise.
55680         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55681
55682 2005-08-31  Bruno Haible  <bruno@clisp.org>
55683
55684         * gnulib-tool: New option --macro-prefix.
55685         (func_import): Use macro_prefix.
55686         (import): Handle option --macro-prefix.
55687
55688 2005-08-31  Bruno Haible  <bruno@clisp.org>
55689
55690         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55691         Also use new variables cached_lgpl, cached_libtool.
55692
55693 2005-08-31  Bruno Haible  <bruno@clisp.org>
55694
55695         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55696         always instantiating them.
55697
55698 2005-08-31  Bruno Haible  <bruno@clisp.org>
55699
55700         * gnulib-tool (func_import): Read the previous cached settings
55701         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55702         earlier added by gnulib but are now dropped. Warn when a gnulib file
55703         overwrites a non-gnulib file.
55704
55705 2005-08-31  Bruno Haible  <bruno@clisp.org>
55706
55707         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55708         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55709         projects that don't keep autogenerated files in CVS. Put into
55710         actioncmd only the specified modules, not the transitive closure.
55711
55712 2005-08-31  Bruno Haible  <bruno@clisp.org>
55713
55714         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55715         Create directories that shall be filled.
55716         (import): Don't look for gl_* macros in configure.ac. Recurse across
55717         all directories containing a gnulib-cache.m4 files, if meaningful.
55718
55719 2005-08-31  Bruno Haible  <bruno@clisp.org>
55720
55721         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55722         (import): Set seen_libtool when we see gl_LIBTOOL.
55723
55724 2005-08-31  Bruno Haible  <bruno@clisp.org>
55725
55726         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55727         declaration macro definitions from generated gnulib.m4.
55728
55729 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55730
55731         * lib/iconvme.h: Add prototype for iconv_alloc.
55732
55733 2005-08-29  Simon Josefsson  <jas@extundo.com>
55734
55735         * lib/iconvme.c: Fix errno.
55736
55737 2005-08-29  Bruno Haible  <bruno@clisp.org>
55738
55739         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55740         that it works when the directory contains spaces.
55741
55742 2005-08-29  Bruno Haible  <bruno@clisp.org>
55743
55744         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55745
55746 2005-08-29  Bruno Haible  <bruno@clisp.org>
55747
55748         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55749         Emit more advice.
55750
55751 2005-08-29  Bruno Haible  <bruno@clisp.org>
55752         and Stepan Kasal  <kasal@ucw.cz>
55753
55754         * check-module: If more parameters are given, check each of them
55755         separately; add more exceptions, as noted by Jim Meyering.
55756         (check_module): New procedure.
55757         (%exempt_header): Now contains all exceptions.
55758
55759 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55760
55761         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55762
55763 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55764
55765         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55766
55767 2005-08-28  Bruno Haible  <bruno@clisp.org>
55768
55769         * m4/gnulib-tool.m4: New file.
55770
55771 2005-08-27  Jim Meyering  <jim@meyering.net>
55772
55773         * modules/unistd-safer (Files): Add pipe-safer.c.
55774         * modules/fcntl-safer (Files): Add creat-safer.c.
55775
55776 2005-08-27  Jim Meyering  <jim@meyering.net>
55777
55778         * m4/stdlib-safer.m4: New file.  From coreutils.
55779         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55780         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55781         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55782         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55783         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55784
55785 2005-08-27  Jim Meyering  <jim@meyering.net>
55786
55787         * lib/fopen-safer.c: Merge minor changes from coreutils.
55788         * lib/dup-safer.c: Likewise.
55789         * lib/fd-safer.c: Likewise.
55790
55791         Merge from coreutils.
55792         * lib/stdio--.h: New file.
55793         * lib/stdlib--.h: New file.
55794         * lib/mkstemp-safer.c: New file.
55795
55796         GNU tar needs these.
55797         * lib/pipe-safer.c: New file.
55798         * lib/creat-safer.c: New file.
55799         * lib/fcntl--.h (creat): Define to creat_safer.
55800         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55801         * lib/unistd--.h (pipe): Define to pipe_safer.
55802         * lib/unistd-safer.h: Declare pipe_safer.
55803
55804 2005-08-26  Simon Josefsson  <jas@extundo.com>
55805
55806         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55807         Haible <bruno@clisp.org>.
55808
55809 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55810
55811         * lib/regex_internal.h: Remove all references to
55812         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55813         or better.
55814         (bitset_not, bitset_merge, bitset_not_merge):
55815         (bitset_mask, re_string_allocate, re_string_construct):
55816         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55817         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55818         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55819         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55820         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55821         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55822         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55823         (re_acquire_state_context):
55824         Remove unnecessary forward decls.
55825         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55826         Put __attribute at function definition,
55827         now that the function decl has been removed.
55828         * lib/regex_internal.c (re_string_peek_byte_case):
55829         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
55830         Likewise.
55831
55832 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
55833
55834         * m4/regex.m4: Add AC_PREREQ(2.50).
55835         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
55836
55837 2005-08-25  Simon Josefsson  <jas@extundo.com>
55838
55839         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
55840         __fsetlocking.
55841
55842 2005-08-25  Simon Josefsson  <jas@extundo.com>
55843
55844         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
55845         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
55846         GLIBC specific code.
55847
55848 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         Make regex safe for g++.  This fixes one real bug (an "err"
55851         that should have been "*err").  g++ problem reported by
55852         Sam Steingold.
55853         * lib/regex_internal.h (re_calloc): New macro, consistent with
55854         re_malloc etc.  All callers of calloc changed to use re_calloc.
55855         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
55856         not int.  All callers changed.
55857         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
55858         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
55859         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
55860         (find_recover_state): Change "err" to "*err"; this fixes what
55861         appears to be a real bug.
55862         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
55863         versus int.
55864
55865 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55866
55867         * modules/regex (Depends-on): Add malloc, since the code
55868         assumes that !malloc(0) means failure.
55869
55870 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55871
55872         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
55873
55874         alloca modernization/simplification for regex.
55875         * lib/regex.c: Remove portability cruft for alloca.  This no longer
55876         needs to be at the start of the file, and can be moved into
55877         regex_internal.h and simplified.
55878         * lib/regex_internal.h: Include <alloca.h>.
55879         (__libc_use_alloca) [!defined _LIBC]: New macro.
55880         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
55881         now works outside glibc.
55882
55883 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
55884
55885         * config/srclist.txt: Add glibc bugs 1241, 1245.
55886
55887 2005-08-25  Jim Meyering  <jim@meyering.net>
55888
55889         * lib/open-safer.c: Include <config.h>.
55890         Otherwise, we'd lose LARGEFILE support in any file using
55891         e.g. "fcntl--.h"
55892
55893 2005-08-25  Bruno Haible  <bruno@clisp.org>
55894
55895         * m4/minmax.m4: Require autoconf 2.52.
55896         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
55897         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
55898         alternatives of translit over the alphabet.
55899         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
55900
55901 2005-08-24  Simon Josefsson  <jas@extundo.com>
55902
55903         * tests/test-getpass.c: New file.
55904
55905 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55906
55907         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
55908         for GNU regex features.
55909
55910 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55911
55912         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
55913         * lib/regex.h (regerror): Likewise.
55914
55915         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
55916         requires this.  (The code never needed it.)
55917
55918         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
55919         All uses of recently-renamed identifiers changed to use the new,
55920         POSIX-compliant names.  The code will build and run just fine
55921         without these changes, but it's better to eat our own dog food
55922         and use the standard-conforming names.
55923
55924         * lib/regex.h: Fix a multitude of POSIX name space violations.
55925         These changes have an effect only for programs that define
55926         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
55927         do not change anything for programs compiled in the normal way.
55928         Also, there is no effect on the ABI.
55929
55930         (_REGEX_SOURCE): New macro.
55931         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
55932         defined and _GNU_SOURCE is not; this fixes a name space violation.
55933
55934         Rename the following macros to obey POSIX requirements.
55935         The old names are still visible as macros if _REGEX_SOURCE is defined.
55936         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
55937         RE_BACKSLASH_ESCAPE_IN_LISTS.
55938         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
55939         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
55940         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
55941         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
55942         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
55943         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
55944         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
55945         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
55946         (REG_INTERVALS): renamed from RE_INTERVALS.
55947         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
55948         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
55949         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
55950         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
55951         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
55952         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
55953         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
55954         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
55955         RE_UNMATCHED_RIGHT_PAREN_ORD.
55956         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
55957         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
55958         (REG_DEBUG): renamed from RE_DEBUG.
55959         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
55960         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
55961         unusual, since we can't clash with the POSIX REG_ICASE.
55962         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
55963         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
55964         (REG_NO_SUB): renamed from RE_NO_SUB.
55965         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
55966         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
55967         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
55968         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
55969         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
55970         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
55971         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
55972         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
55973         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
55974         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
55975         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
55976         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
55977         RE_SYNTAX_POSIX_MINIMAL_BASIC.
55978         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
55979         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
55980         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
55981         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
55982         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
55983         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
55984         (REG_FIXED): Renamed from REGS_FIXED.
55985         (REG_NREGS): Renamed from RE_NREGS.
55986
55987         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
55988         of other REG_* macros, since POSIX says the user is allowed to
55989         #undef these macros selectively.
55990
55991         (reg_errcode_t): Update comment stating what other tables need
55992         to be consistent.
55993
55994         Rename the following enum values to obey POSIX requirements.
55995         The old names are still visible as macros.
55996         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
55997         is not defined, since GNU is supposed to be a superset of POSIX as
55998         much as possible, and since we want reg_errcode_t to be a signed
55999         type for implementation consistency.
56000         (_REG_NOERROR): Renamed from REG_NOERROR.
56001         (_REG_NOMATCH): Renamed from REG_NOMATCH.
56002         (_REG_BADPAT): Renamed from REG_BADPAT.
56003         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
56004         (_REG_ECTYPE): Renamed from REG_ECTYPE.
56005         (_REG_EESCAPE): Renamed from REG_EESCAPE.
56006         (_REG_ESUBREG): Renamed from REG_ESUBREG.
56007         (_REG_EBRACK): Renamed from REG_EBRACK.
56008         (_REG_EPAREN): Renamed from REG_EPAREN.
56009         (_REG_EBRACE): Renamed from REG_EBRACE.
56010         (_REG_BADBR): Renamed from REG_BADBR.
56011         (_REG_ERANGE): Renamed from REG_ERANGE.
56012         (_REG_ESPACE): Renamed from REG_ESPACE.
56013         (_REG_BADRPT): Renamed from REG_BADRPT.
56014         (_REG_EEND): Renamed from REG_EEND.
56015         (_REG_ESIZE): Renamed from REG_ESIZE.
56016         (_REG_ERPAREN): Renamed from REG_ERPAREN.
56017         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
56018         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
56019         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
56020         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
56021
56022         (_REG_RE_NAME, _REG_RM_NAME): New macros.
56023         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
56024         changed.  But support the old name if the new one is not defined
56025         and if _REGEX_SOURCE.
56026
56027         Change the following member names in struct re_pattern_buffer.
56028         The old names are still supported if !_REGEX_SOURCE.
56029         The new names are always supported, regardless of _REGEX_SOURCE.
56030         (re_buffer): Renamed from buffer.
56031         (re_allocated): Renamed from allocated.
56032         (re_used): Renamed from used.
56033         (re_syntax): Renamed from syntax.
56034         (re_fastmap): Renamed from fastmap.
56035         (re_translate): Renamed from translate.
56036         (re_can_be_null): Renamed from can_be_null.
56037         (re_regs_allocated): Renamed from regs_allocated.
56038         (re_fastmap_accurate): Renamed from fastmap_accurate.
56039         (re_no_sub): Renamed from no_sub.
56040         (re_not_bol): Renamed from not_bol.
56041         (re_not_eol): Renamed from not_eol.
56042         (re_newline_anchor): Renamed from newline_anchor.
56043
56044         Change the following member names in struct re_registers.
56045         The old names are still supported if !_REGEX_SOURCE.
56046         The new names are always supported, regardless of _REGEX_SOURCE.
56047         (rm_num_regs): Renamed from num_regs.
56048         (rm_start): Renamed from start.
56049         (rm_end): Renamed from end.
56050
56051         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
56052         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
56053         Prepend __ to parameter names.
56054
56055         Undo yesterday's changes.
56056
56057 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56058
56059         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
56060         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
56061         lib/regex.c.
56062
56063 2005-08-24  Jim Meyering  <jim@meyering.net>
56064
56065         Sync from coreutils.
56066         * m4/fcntl-safer.m4: New file.
56067
56068         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
56069         and object files for this module.
56070
56071 2005-08-24  Jim Meyering  <jim@meyering.net>
56072
56073         Sync from coreutils.
56074         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
56075
56076 2005-08-24  Jim Meyering  <jim@meyering.net>
56077
56078         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
56079         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
56080
56081 2005-08-24  Jim Meyering  <jim@meyering.net>
56082
56083         * modules/fcntl-safer: New module.
56084         * modules/fts (Depends-on): Add fcntl-safer.
56085         * MODULES.html.sh (File descriptor based Input/Output):
56086         Add fcntl-safer.
56087
56088 2005-08-24  Bruno Haible  <bruno@clisp.org>
56089
56090         Support for unit test modules.
56091         * modules/README: Mention tests modules.
56092         * modules/TEMPLATE-TESTS: New file.
56093         * gnulib-tool: New options --extract-tests-module, --with-tests and
56094         --tests-base (unused for the moment).
56095         (testsbase, inctests): New variables.
56096         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
56097         (func_verify_module): Exclude TEMPLATE-TESTS.
56098         (func_verify_nontests_module, func_verify_tests_module): New functions.
56099         (func_get_dependencies): Add implicit dependency for tests modules.
56100         (func_get_tests_module): New function.
56101         (func_modules_transitive_closure): When --with-tests was specified,
56102         include the unit tests as well, unless explicitly avoided.
56103         (func_emit_lib_Makefile_am): Ignore the tests modules here.
56104         (func_emit_tests_Makefile_am): New function.
56105         (func_create_testdir): When --with-tests was specified, emit a
56106         tests/ directory.
56107         * MODULES.html.sh (Future developments): Update.
56108
56109 2005-08-24  Bruno Haible  <bruno@clisp.org>
56110
56111         * modules/tls-tests: New file.
56112         * tests/test-tls.c: New file, from GNU gettext.
56113
56114 2005-08-24  Bruno Haible  <bruno@clisp.org>
56115
56116         * modules/lock-tests: New file.
56117         * tests/test-lock.c: New file, from GNU gettext.
56118
56119 2005-08-24  Bruno Haible  <bruno@clisp.org>
56120
56121         * lib/lock.h: Add multiple inclusion guard.
56122         * lib/tls.h: Add multiple inclusion guard.
56123
56124 2005-08-24  Bruno Haible  <bruno@clisp.org>
56125
56126         * gnulib-tool: Add support for the --aux-dir option to
56127         --create-testdir, --create-megatestdir, --test, --megatest.
56128         (func_create_testdir, func_create_megatestdir): Optionally emit a
56129         AC_CONFIG_AUX_DIR directive.
56130         (create-testdir, create-megatestdir, test, megatest): Provide a
56131         default value for $auxdir.
56132
56133 2005-08-24  Bruno Haible  <bruno@clisp.org>
56134
56135         * gnulib-tool (import): Use compound statement instead of subshell
56136         where possible.
56137
56138 2005-08-24  Bruno Haible  <bruno@clisp.org>
56139
56140         * gnulib-tool (import): Change --aux-dir default to "build-aux".
56141
56142 2005-08-24  Bruno Haible  <bruno@clisp.org>
56143
56144         * gnulib-tool (func_version): Update.
56145
56146 2005-08-24  Bruno Haible  <bruno@clisp.org>
56147
56148         * gnulib-tool (func_import, func_create_testdir,
56149         func_create_megatestdir): Quote all autoconf macro arguments.
56150
56151 2005-08-24  Bruno Haible  <bruno@clisp.org>
56152
56153         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
56154         option --force, because --force causes the aclocal.m4 of each
56155         subdirectory to be newer than the corresponding config.h.in.
56156
56157 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56158
56159         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56160         All contents moved to gl_REGEX.
56161         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56162         assume that it does.
56163
56164 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56165
56166         * lib/regex.h (REG_NOSYS)
56167         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56168         Define, since POSIX requires it as of 2001.
56169         (_REG_ENOSYS)
56170         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56171         New private symbol, used to keep the enum signed in all cases.
56172         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56173         Youngman in
56174         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56175
56176         * lib/regex_internal.c (re_string_skip_chars, register_state):
56177         (calc_state_hash):
56178         Remove forward decls; no longer needed now that we use prototypes.
56179         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56180         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56181         (clean_state_log_if_needed): Likewise.
56182
56183 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         * config/srclist.txt: Add glibc bugs 1231-1233.
56186
56187 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56188
56189         Fix problems reported by Sam Steingold in
56190         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56191         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56192         assumed that reg_errcode_t is a signed type, which is not
56193         necessarily true if _XOPEN_SOURCE is not defined.
56194         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56195         since some compilers warn about it otherwise.
56196
56197 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56198
56199         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56200         (init_word_char, create_initial_state, duplicate_node_closure):
56201         (fetch_token, peek_token_bracket, build_range_exp):
56202         (build_collating_symbol): Remove forward decls; no longer needed
56203         now that we use prototypes.
56204
56205         * lib/regcomp.c:
56206         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56207         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56208         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56209         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56210         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56211         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56212         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56213         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56214         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56215         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56216         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56217         (build_charclass, build_charclass_op, fetch_number, create_tree):
56218         (create_token_tree, mark_opt_subexp, duplicate_tree):
56219         Use prototypes rather than old-style definitions.
56220
56221         * lib/regex_internal.c:
56222         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56223         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56224         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56225         (re_string_reconstruct, re_string_peek_byte_case):
56226         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56227         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56228         (re_node_set_init_copy, re_node_set_add_intersect):
56229         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56230         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56231         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56232         (re_acquire_state, re_acquire_state_context, register_state):
56233         (create_ci_newstate, create_cd_newstate, free_state):
56234         Likewise.
56235         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56236         re_search_2):
56237         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56238         (re_search_internal, prune_impossible_nodes):
56239         (acquire_init_state_context, check_matching, static):
56240         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56241         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56242         (update_regs, sift_states_backward, build_sifted_states):
56243         (clean_state_log_if_needed, merge_state_array):
56244         (update_cur_sifted_state, add_epsilon_src_nodes):
56245         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56246         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56247         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56248         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56249         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56250         (check_arrival, check_arrival_add_next_nodes):
56251         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56252         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56253         (check_node_accept_bytes, check_node_accept, extend_buffers):
56254         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56255         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56256         (sift_ctx_init):
56257         Likewise.
56258
56259         * lib/regex_internal.h:
56260         (re_string_allocate, re_string_construct, re_string_reconstruct):
56261         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56262         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56263         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56264         (re_string_context_at, re_string_peek_byte_case):
56265         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56266         is defined, since we now use prototypes always.
56267
56268         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56269         C89 or better.  All uses removed.
56270
56271 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56272
56273         * config/srclist.txt: Add glibc bugs 1220-1227.
56274
56275 2005-08-20  Jim Meyering  <jim@meyering.net>
56276
56277         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56278         of unused local, dfa.
56279
56280 2005-08-20  Bruno Haible  <bruno@clisp.org>
56281
56282         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56283
56284 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56285
56286         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56287         (re_node_set_insert_last, re_dfa_add_node):
56288         Rename local variables to avoid GCC shadowing warnings.
56289
56290 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56291
56292         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56293         [defined lint]: Suppress bogus uninitialized-variable warnings.
56294
56295         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56296         and let the caller return REG_ESPACE if out of space.  This
56297         removes an uninitialied-variable warning with GCC 4.0.1, and also
56298         avoids taking the address of a local variable.  All callers
56299         changed.
56300
56301 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56302
56303         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56304         $LIBCSRC/posix/regexec.c.
56305         Add glibc bug 1217 for regcomp.c.
56306
56307 2005-08-19  Jim Meyering  <jim@meyering.net>
56308
56309         * lib/regexec.c (proceed_next_node): Redo local variables to
56310         avoid GCC shadowing warnings.
56311
56312 2005-08-18  Bruno Haible  <bruno@clisp.org>
56313
56314         * lib/strstr.c (strstr): Fix return value in multibyte case.
56315         * lib/strcasestr.c (strcasestr): Likewise.
56316
56317 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56318
56319         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56320
56321 2005-08-17  Jim Meyering  <jim@meyering.net>
56322
56323         Make the %s format (seconds since the epoch) work for a negative
56324         number and when used with a zero-padded field width, e.g. %015s.
56325
56326         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56327         label so that it precedes the code to set `digits'.  Otherwise,
56328         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56329         print `00-22'.  Now, it prints `-0022', as it should.
56330
56331 2005-08-17  Bruno Haible  <bruno@clisp.org>
56332
56333         * modules/strstr (Files): Add m4/mbrtowc.m4.
56334         (Depends-on): Add mbuiter.
56335
56336 2005-08-17  Bruno Haible  <bruno@clisp.org>
56337
56338         * modules/strcasestr: New file.
56339         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56340         strcasestr.
56341
56342 2005-08-17  Bruno Haible  <bruno@clisp.org>
56343
56344         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56345
56346 2005-08-17  Bruno Haible  <bruno@clisp.org>
56347
56348         * modules/mbuiter: New file.
56349         * MODULES.html.sh (Extended multibyte and wide character utilities):
56350         Add mbuiter.
56351
56352 2005-08-17  Bruno Haible  <bruno@clisp.org>
56353
56354         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56355         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56356
56357 2005-08-17  Bruno Haible  <bruno@clisp.org>
56358
56359         * m4/strcasestr.m4: New file.
56360
56361 2005-08-17  Bruno Haible  <bruno@clisp.org>
56362
56363         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56364         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56365
56366 2005-08-17  Bruno Haible  <bruno@clisp.org>
56367
56368         * lib/strcasestr.h: New file.
56369         * lib/strcasestr.c: New file.
56370
56371 2005-08-17  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/strcasecmp.c: Use mbuiter.h.
56374
56375 2005-08-17  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/mbuiter.h: New file.
56378
56379 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56380
56381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56382         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56383         and gl_GETOPT are both invoked via different paths (as happens
56384         with GNU tar CVS because it uses both argp and getopt), the former
56385         wins.
56386
56387 2005-08-16  Bruno Haible  <bruno@clisp.org>
56388
56389         * modules/tls: New file.
56390         * MODULES.html.sh (Multithreading): Add tls.
56391
56392 2005-08-16  Bruno Haible  <bruno@clisp.org>
56393
56394         * modules/strnlen1: New file.
56395         * MODULES.html.sh (String handling): Add strnlen1.
56396
56397 2005-08-16  Bruno Haible  <bruno@clisp.org>
56398
56399         * modules/strcase (Files): Add m4/mbrtowc.m4.
56400         (Depends-on): Add strnlen1, mbchar.
56401
56402 2005-08-16  Bruno Haible  <bruno@clisp.org>
56403
56404         * modules/mbiter: New file.
56405         * MODULES.html.sh (Extended multibyte and wide character utilities):
56406         Add mbiter.
56407
56408 2005-08-16  Bruno Haible  <bruno@clisp.org>
56409
56410         * modules/mbfile: New file.
56411         * MODULES.html.sh (Extended multibyte and wide character utilities):
56412         Add mbfile.
56413
56414 2005-08-16  Bruno Haible  <bruno@clisp.org>
56415
56416         * modules/mbchar: New file.
56417         * MODULES.html.sh (Extended multibyte and wide character utilities):
56418         New section.
56419
56420 2005-08-16  Bruno Haible  <bruno@clisp.org>
56421
56422         * m4/tls.m4: New file, from GNU gettext.
56423
56424 2005-08-16  Bruno Haible  <bruno@clisp.org>
56425
56426         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56427         always.
56428         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56429
56430 2005-08-16  Bruno Haible  <bruno@clisp.org>
56431
56432         * m4/mbiter.m4: New file.
56433
56434 2005-08-16  Bruno Haible  <bruno@clisp.org>
56435
56436         * m4/mbfile.m4: New file.
56437
56438 2005-08-16  Bruno Haible  <bruno@clisp.org>
56439
56440         * m4/mbchar.m4: New file.
56441
56442 2005-08-16  Bruno Haible  <bruno@clisp.org>
56443
56444         * lib/tls.h: New file, from GNU gettext.
56445         * lib/tls.c: New file, from GNU gettext.
56446
56447 2005-08-16  Bruno Haible  <bruno@clisp.org>
56448
56449         * lib/strnlen1.h: New file.
56450         * lib/strnlen1.c: New file.
56451
56452 2005-08-16  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56455         (mbi_init): Update.
56456         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56457         NUL byte, not after it.
56458
56459 2005-08-16  Bruno Haible  <bruno@clisp.org>
56460
56461         * lib/strcase.h (strcasecmp): Add note in comments.
56462         * lib/strncasecmp.c: Use code from strcasecmp.c.
56463         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56464         (strcasecmp): Work correctly in multibyte locales.
56465
56466 2005-08-16  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/mbiter.h: New file.
56469
56470 2005-08-16  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/mbfile.h: New file.
56473
56474 2005-08-16  Bruno Haible  <bruno@clisp.org>
56475
56476         * lib/mbchar.h: New file.
56477         * lib/mbchar.c: New file.
56478
56479 2005-08-16  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56482         the valid ones. Makes the comparison operations transitive:
56483         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56484         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56485
56486 2005-08-15  Simon Josefsson  <jas@extundo.com>
56487
56488         * modules/ssize_t (License): Change to 'unlimited'.
56489
56490         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56491
56492 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56493
56494         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56495         Add comments for each pending glibc patch.
56496
56497 2005-08-15  Bruno Haible  <bruno@clisp.org>
56498
56499         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56500         __cplusplus is defined.
56501
56502 2005-08-14  Jim Meyering  <jim@meyering.net>
56503
56504         Sync from coreutils.
56505
56506         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56507         Use the hash-table-based cycle-detection code not just when
56508         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56509         Reported by James Youngman in
56510         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56511         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56512         FTS_TIGHT_CYCLE_CHECK.
56513         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56514         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56515         once again.
56516         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56517         * lib/fts.c (fd_safer): Remove decl.
56518         Include fcntl--.h rather than unistd-safer.h
56519         (fts_safe_changedir): Don't call fd_safer; no longer needed
56520         now that we include fcntl--.h.
56521
56522 2005-08-12  Simon Josefsson  <jas@extundo.com>
56523
56524         * modules/getndelim2: Use ssize_t module.
56525         * modules/getnline: Likewise.
56526         * modules/safe-read: Likewise.
56527         * modules/xreadlink: Likewise.
56528
56529         * modules/ssize_t: New file.
56530
56531 2005-08-12  Simon Josefsson  <jas@extundo.com>
56532
56533         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56534
56535 2005-08-12  Simon Josefsson  <jas@extundo.com>
56536
56537         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56538         ssize_t.
56539
56540 2005-08-12  Simon Josefsson  <jas@extundo.com>
56541
56542         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56543         readline, getdelim and check_version.
56544         (Support for systems lacking ISO C 99: Sizes of integer types):
56545         Add size_max.
56546
56547 2005-08-12  Bruno Haible  <bruno@clisp.org>
56548
56549         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56550
56551 2005-08-11  Simon Josefsson  <jas@extundo.com>
56552
56553         * modules/readline: New file.
56554
56555         * modules/strnlen (Files): Add strnlen.h.
56556
56557 2005-08-11  Simon Josefsson  <jas@extundo.com>
56558
56559         * m4/readline.m4: New file.
56560
56561 2005-08-11  Simon Josefsson  <jas@extundo.com>
56562
56563         * lib/readline.h, readline.c: New file.
56564
56565 2005-08-11  Simon Josefsson  <jas@extundo.com>
56566
56567         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56568         gl_AVOID.
56569
56570 2005-08-11  Bruno Haible  <bruno@clisp.org>
56571
56572         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56573
56574 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56575
56576         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56577
56578 2005-08-10  Simon Josefsson  <jas@extundo.com>
56579
56580         * tests/test-iconvme.c: New file.
56581
56582 2005-08-10  Simon Josefsson  <jas@extundo.com>
56583
56584         * m4/strnlen.m4: New file.
56585
56586         * m4/strndup.m4: Don't check for strnlen declaration, done in
56587         strnlen.m4.
56588
56589 2005-08-10  Simon Josefsson  <jas@extundo.com>
56590
56591         * lib/strndup.c: Use strnlen.h.
56592
56593         * lib/strnlen.h: New file.
56594
56595 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56596
56597         * README: Typos.
56598
56599 2005-08-02  Simon Josefsson  <jas@extundo.com>
56600
56601         * modules/readline: New file.
56602
56603 2005-08-02  Simon Josefsson  <jas@extundo.com>
56604
56605         * modules/getdelim: New file.
56606
56607         * modules/getline: Rewrite, don't use getndelim2.
56608
56609 2005-08-02  Simon Josefsson  <jas@extundo.com>
56610
56611         * m4/getline.m4: Separate out getdelim stuff into separate module.
56612
56613         * m4/getdelim.m4: New file.
56614
56615 2005-08-02  Simon Josefsson  <jas@extundo.com>
56616
56617         * lib/getline.h, getline.c: Rewrite.
56618
56619         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56620
56621 2005-07-31  Bruno Haible  <bruno@clisp.org>
56622
56623         * lib/lock.h (gl_lock_initializer): New macro.
56624         (gl_lock_define_initialized): Use it.
56625         (gl_rwlock_initializer): New macro.
56626         (gl_rwlock_define_initialized): Use it.
56627         (gl_recursive_lock_initializer): New macro.
56628         (gl_recursive_lock_define_initialized): Use it.
56629
56630 2005-07-30  Karl Berry  <karl@gnu.org>
56631
56632         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56633         Report from Ben Pfaff, regarding getopt.
56634
56635 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56636
56637         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56638         normal way.
56639         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56640         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56641         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56642         (gl_GETOPT): Use the new macros.  Most of the implementation
56643         is moved to the new macros.  This is for programs like Emacs
56644         that don't want all the functionality of gl_GETOPT.
56645
56646 2005-07-26  Bruno Haible  <bruno@clisp.org>
56647
56648         * m4/lock.m4: Update from GNU gettext.
56649
56650 2005-07-26  Bruno Haible  <bruno@clisp.org>
56651
56652         * lib/lock.h: Update from GNU gettext.
56653         * lib/lock.c: Update from GNU gettext.
56654
56655 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56656
56657         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56658         obsolescent AC_TRY_RUN.  Include the default includes files, for
56659         'exit'.
56660
56661 2005-07-24  Bruno Haible  <bruno@clisp.org>
56662
56663         * modules/visibility: New file.
56664         * MODULES.html.sh (Misc): Add visibility.
56665
56666 2005-07-24  Bruno Haible  <bruno@clisp.org>
56667
56668         * m4/visibility.m4: New file.
56669
56670 2005-07-24  Bruno Haible  <bruno@clisp.org>
56671
56672         * doc/visibility.texi: New file.
56673
56674 2005-07-22  Bruno Haible  <bruno@clisp.org>
56675
56676         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56677         $(ALLOCA_H), redundant through BUILT_SOURCES.
56678         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56679         redundant through BUILT_SOURCES.
56680         * modules/byteswap (Makefile.am): Remove explicit dependency on
56681         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56682         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56683         $(FNMATCH_H), redundant through BUILT_SOURCES.
56684         * modules/getopt (Makefile.am): Remove explicit dependency on
56685         $(GETOPT_H), redundant through BUILT_SOURCES.
56686         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56687         redundant through BUILT_SOURCES.
56688         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56689         redundant through BUILT_SOURCES.
56690         * modules/stdbool (Makefile.am): Remove explicit dependency on
56691         $(STDBOOL_H), redundant through BUILT_SOURCES.
56692         * modules/stdint (Makefile.am): Remove explicit dependency on
56693         $(STDINT_H), redundant through BUILT_SOURCES.
56694         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56695         Remove explicit dependency on $(SYSEXITS_H).
56696         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56697
56698 2005-07-18  Simon Josefsson  <jas@extundo.com>
56699
56700         * lib/check-version.c (check_version): Accept identical versions too.
56701
56702 2005-07-18  Bruno Haible  <bruno@clisp.org>
56703
56704         * modules/lock: New file.
56705         * MODULES.html.sh (Multithreading): New section.
56706
56707 2005-07-18  Bruno Haible  <bruno@clisp.org>
56708
56709         * m4/lock.m4: New file, from GNU gettext.
56710
56711 2005-07-18  Bruno Haible  <bruno@clisp.org>
56712
56713         * lib/lock.h: New file, from GNU gettext.
56714         * lib/lock.c: New file, from GNU gettext.
56715
56716 2005-07-18  Bruno Haible  <bruno@clisp.org>
56717
56718         * lib/lock.h (gl_once_t): New type.
56719         (gl_once_define, gl_once): New macros.
56720         * lib/lock.c (fresh_once): New variable.
56721         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56722         functions.
56723
56724 2005-07-16  Simon Josefsson  <jas@extundo.com>
56725
56726         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56727         workaround, suggested by Bruno.
56728
56729 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56730
56731         * modules/xalloc (Depends-on): Add xalloc-die.
56732         * modules/xvasprintf (Depends-on): Add xalloc-die.
56733
56734 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56735
56736         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56737         with a minor change.
56738
56739 2005-07-15  Bruno Haible  <bruno@clisp.org>
56740
56741         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56742         When using lib/poll.c, define poll as rpl_poll.
56743
56744 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56745
56746         * modules/argp (Depends-on): Remove unlocked-io.
56747
56748 2005-07-14  Derek Price  <derek@ximbiot.com>
56749
56750         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56751         for glob symlink bug.
56752
56753 2005-07-14  Bruno Haible  <bruno@clisp.org>
56754
56755         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56756         Instead, test for *_unlocked function declarations directly.
56757
56758 2005-07-11  Simon Josefsson  <jas@extundo.com>
56759
56760         * modules/size_max: New file.
56761
56762         * modules/xsize: Depend on size_max module for size_max.m4.
56763
56764 2005-07-11  Simon Josefsson  <jas@extundo.com>
56765
56766         * lib/size_max.h: New file.
56767
56768 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56769
56770         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56771         copyright symbol and the year.
56772         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56773         (version_etc_va): Use parameterized copyright notice.
56774         Reword to conform to the current GNU coding standards.
56775
56776 2005-07-11  Karl Berry  <karl@gnu.org>
56777
56778         * doc/gnulib.texi (Quoting): new node.
56779         (Initial import): more info, from Patrice.
56780
56781 2005-07-11  Bruno Haible  <bruno@clisp.org>
56782
56783         * gnulib-tool (func_usage): Document option --avoid.
56784         (Command line options): Handle --avoid.
56785         (func_acceptable): New function.
56786         (func_modules_transitive_closure): Use it.
56787
56788 2005-07-11  Bruno Haible  <bruno@clisp.org>
56789
56790         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56791         Reported by Jim Meyering.
56792
56793 2005-07-10  Bruno Haible  <bruno@clisp.org>
56794
56795         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56796         Needed when size_t is smaller than 'unsigned int'.
56797         Reported by Paul Eggert.
56798
56799 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56800
56801         * modules/argp (Depends-on): Add unlocked-io
56802
56803 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56804
56805         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56806         block of defines.
56807
56808 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56809
56810         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56811         fix now.
56812
56813 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56814         and Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56817         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56818
56819 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56820
56821         * modules/regex (Files): Add lib/regex_internal.c,
56822         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56823         (Depends-on): Add extensions.
56824         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56825
56826 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56827
56828         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
56829         pathconf.
56830         * m4/same.m4 (gl_SAME): Likewise.
56831         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
56832
56833         * m4/regex.m4: Adjust to new libc regex implementation.
56834         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
56835         all the .c and .h parts of (the new) regex.
56836         Quote the m4 stuff better.
56837         Check for RE_ICASE bug of old gnulib.
56838         Check for REG_STARTEND of recent libc.
56839         Rename local variables from jm_* to gl_*.
56840         Quote operand of "test -f".
56841         Say "recent enough" version of libc, not "version 2".
56842         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
56843         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
56844         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
56845         Remove check for btowc, isascii.
56846         Require AM_LANGINFO_CODESET.
56847
56848 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56849
56850         * lib/regex.c, regex.h: Sync from libc.
56851         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
56852         * lib/regexec.c:
56853         New files, synced from libc, except that regex_internal.h
56854         currently has a small porting fix.
56855
56856 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56857
56858         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
56859         regex_internal.c, regexec.c.
56860         Add regex_internal.h too, but as a comment, since the libc version
56861         is currently broken in gnulib mode.
56862
56863 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56864
56865         Support programs like Emacs that use gnulib but not gettext.
56866         * MODULES.html.sh (Internationalization functions): Add gettext-h.
56867         * modules/gettext-h: New file.
56868         * modules/gettext (Files): Remove lib/gettext.h.
56869         (Depends-on): Add gettext-h.
56870         (Makefile.am): Remove lib_SOURCES.
56871         * modules/argmatch, modules/c-stack, modules/closeout:
56872         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
56873         * modules/execute, modules/file-type, modules/getaddrinfo:
56874         * modules/getopt, modules/human, modules/javacomp:
56875         * modules/javaexec, modules/mkdir-p, modules/obstack:
56876         * modules/openat, modules/pagealign_alloc, modules/pipe:
56877         * modules/quotearg, modules/regex, modules/rpmatch:
56878         * modules/unicodeio, modules/userspec, modules/version-etc:
56879         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
56880         * modules/xsetenv:
56881         Depend on gettext-h, not gettext.
56882
56883 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56884
56885         * gnulib-tool (func_import): Add support for 'public domain' license.
56886         * modules/alloca, modules/atexit, modules/memmove:
56887         Now public domain, not GPL.
56888         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
56889         * modules/realloc, modules/strerror, modules/strtod:
56890         Now LGPL, not GPL.
56891
56892 2005-07-05  Bruno Haible  <bruno@clisp.org>
56893
56894         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
56895         autoconf CVS. Needed for mingw.
56896
56897 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56898
56899         Remove the dependency of the strftime module on the tzset module.
56900         * modules/strftime (Depends-on): Remove dependency on tzset.
56901
56902 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56903
56904         Remove the dependency of the strftime module on the tzset module.
56905         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
56906         gl_FUNC_TZSET_CLOBBER.
56907
56908 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56909
56910         Remove the dependency of the strftime module on the tzset module.
56911         * lib/strftime.c (my_strftime)
56912         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
56913         Copy the input structure, to work around some of the bug with
56914         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
56915         Solaris releases, you should also use the tzset module, but we won't
56916         require it as a dependency any more since we don't want LGPLed code
56917         to depend on GPLed code.
56918
56919 2005-07-02  Jim Meyering  <jim@meyering.net>
56920
56921         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
56922         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
56923         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
56924         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
56925
56926 2005-07-02  Jim Meyering  <jim@meyering.net>
56927
56928         * lib/backupfile.c (backup_args): Change a `0' to NULL.
56929
56930 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
56933         declares only 'struct timespec;' (!).
56934
56935 2005-07-01  Jim Meyering  <jim@meyering.net>
56936
56937         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
56938         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
56939         * lib/save-cwd.c, tempname.c:
56940         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56941         and don't include <sys/file.h>).
56942
56943 2005-06-29  Jim Meyering  <jim@meyering.net>
56944
56945         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
56946         type name.  Use the variable name instead.
56947         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
56948         Likewise.
56949
56950 2005-06-28  Simon Josefsson  <jas@extundo.com>
56951
56952         * modules/check-version (Files): Add check-version.m4.
56953
56954 2005-06-28  Simon Josefsson  <jas@extundo.com>
56955
56956         * m4/check-version.m4: New file, suggested by Jim Meyering
56957         <jim@meyering.net>.
56958
56959 2005-06-28  Simon Josefsson  <jas@extundo.com>
56960
56961         * lib/check-version.h, lib/check-version.c: New files.
56962
56963 2005-06-28  Simon Josefsson  <jas@extundo.com>
56964
56965         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
56966         collision with global variable.  Better indentation.  Don't
56967         increment buffer pointer beyond buffer end.  Based on comments
56968         from Paul Eggert <eggert@cs.ucla.edu>.
56969
56970         * lib/base64.h: Indent.
56971
56972 2005-06-28  Simon Josefsson  <jas@extundo.com>
56973
56974         * doc/gnulib.texi (Library version handling): New section.
56975
56976 2005-06-28  Jim Meyering  <jim@meyering.net>
56977
56978         * check-module (find_included_lib_files): Hard-code another
56979         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
56980         but modules/fts-lgpl (correctly) does not list those files.
56981
56982         * modules/canonicalize (Files): Add lib/pathmax.h.
56983
56984 2005-06-25  Simon Josefsson  <jas@extundo.com>
56985
56986         * modules/check-version: New file.
56987
56988 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
56989
56990         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
56991         initializer of struct addrinfo, as an indication that we don't
56992         care how many members the structure has.
56993
56994 2005-06-24  Derek Price  <derek@ximbiot.com>
56995         and Bruno Haible  <bruno@clisp.org>
56996
56997         Remove stat module & update lstat.
56998         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
56999         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57000         * m4/stat.m4: Remove this file.
57001
57002 2005-06-24  Derek Price  <derek@ximbiot.com>
57003         and Bruno Haible  <bruno@clisp.org>
57004
57005         Remove stat module & update lstat.
57006         * lib/stat.c: Remove this file...
57007         (slash_aware_lstat): ...moving this content and its support...
57008         * lib/lstat.c (rpl_lstat): ...into here.
57009         * lib/lstat.h: New file.
57010
57011 2005-06-24  Derek Price  <derek@ximbiot.com>
57012         and Bruno Haible  <bruno@clisp.org>
57013
57014         Remove stat module & update lstat.
57015         * config/srclist.txt (libc sources): Remove stat.
57016
57017 2005-06-24  Derek Price  <derek@ximbiot.com>
57018         and Bruno Haible  <bruno@clisp.org>
57019
57020         Remove stat module & update lstat.
57021         * MODULES.html.sh (stat): Remove.
57022         * MODULES.html: Regenerated.
57023         * modules/lstat (Description): Correct function name.
57024         (Files): Add "lstat.h".
57025         (Depends-on): Remove stat, add xalloc, stat-macros.
57026         * modules/stat: Remove this file.
57027         (Include): Add "lstat.h", remove <sys/stat.h>.
57028
57029 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57030
57031         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
57032         (ranged_convert): Don't save conversion in a temporary struct.
57033         This causes a warning with GCC 4.0.0, and anyway in the typical
57034         case it's not worth the extra 100 bytes or so of code.
57035         (ranged_convert, __mktime_internal): When calling a function via a
57036         pointer P, use P () rather than (*P) (), as we now assume C89 or
57037         better.
57038
57039 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57040
57041         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
57042         "who -r" failed to give output.  Problem reported by Tim Waugh.
57043
57044         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
57045         (xcalloc): Use it to avoid needless tests.
57046         Problem reported by Jim Meyering.
57047
57048 2005-06-20  Derek Price  <derek@ximbiot.com>
57049
57050         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
57051         unnecessary for Autoconfs > 2.59c.
57052
57053 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57054
57055         * lib/argp.h (__option_is_short): Check upper limit of
57056         __key. Isprint() requires its argument to have the value
57057         of an unsigned char or EOF.
57058
57059 2005-06-16  Jim Meyering  <jim@meyering.net>
57060
57061         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
57062         when either N or S is zero.
57063
57064 2005-06-16  Derek Price  <derek@ximbiot.com>
57065
57066         * m4/bison.m4: Declare YACC & YFLAGS precious.
57067
57068 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
57071         multibyte string or pattern, fall back on unibyte matching.
57072         Problem reported by James Youngman.
57073
57074 2005-06-08  Bruno Haible  <bruno@clisp.org>
57075
57076         * modules/csharpcomp: New file.
57077         * MODULES.html.sh (C#): Add csharpcomp.
57078
57079 2005-06-08  Bruno Haible  <bruno@clisp.org>
57080
57081         * m4/csharpcomp.m4: New file, from GNU gettext.
57082
57083 2005-06-08  Bruno Haible  <bruno@clisp.org>
57084
57085         * lib/csharpcomp.h: New file, from GNU gettext.
57086         * lib/csharpcomp.c: New file, from GNU gettext.
57087         * lib/csharpcomp.sh.in: New file, from GNU gettext.
57088
57089 2005-06-08  Bruno Haible  <bruno@clisp.org>
57090
57091         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
57092         warning on mingw.
57093
57094 2005-06-07  Derek Price  <derek@ximbiot.com>
57095
57096         Sync from CVS.
57097         * lib/glob_.h: Indent nested #ifdef.
57098
57099 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57100
57101         Sync from coreutils.
57102         Use "file name" when talking about file names, instead of "filename"
57103         or "path", as per the GNU coding standards.
57104         * lib/mkdir-p.c: Renamed from makepath.c.
57105         (make_dir_parents): Renamed from make_path.  All callers changed.
57106         * lib/mkdir-p.h: Likewise.  All includers changed.
57107         * lib/filenamecat.c: Renamed from path-concat.c.
57108         (file_name_concat): Renamed from path_concat.  All callers changed.
57109         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
57110         * lib/filenamecat.h: Likewise.  All includers changed.
57111         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
57112         in comments or local variable names.
57113         * lib/basename.c: Likewise.
57114         * lib/canonicalize.c, canonicalize.h: Likewise.
57115         * lib/dirname.c, dirname.h: Likewise.
57116         * lib/euidaccess.c: Likewise.
57117         * lib/exclude.c: Likewise
57118         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
57119         * lib/fsusage.c, fsuage.h: Likewise.
57120         * lib/fts.c, fts_.h: Likewise.
57121         * lib/getcwd.c: Likewise.
57122         * lib/getloadavg.c: Likewise.
57123         * lib/mkstemp.c: Likewise.
57124         * lib/mountlist.c, mountlist.h: Likewise.
57125         * lib/openat.c, openat.h: Likewise.
57126         * lib/readlink-stub.c: Likewise.
57127         * lib/readutmp.c, readutmp.h: Likewise.
57128         * lib/rename.c: Likewise.
57129         * lib/rmdir.c: Likewise.
57130         * lib/same.c: Likewise.
57131         * lib/savedir.c: Likewise.
57132         * lib/stripslash.c: Likewise.
57133         * lib/tempname.c: Likewise.
57134         * lib/xreadlink.c: Likewise.
57135         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
57136         All uses changed.
57137         * lib/exclude.h: Likewise.
57138
57139         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
57140         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57141         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
57142         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57143         * lib/pathmax.h: Include <limits.h> unconditionally, since other
57144         files have been getting away with it for years (MORE/BSD 4.3
57145         is extinct now).
57146         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
57147         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57148
57149         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
57150         Define to 256, not 255, as per modern POSIX.
57151
57152 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57153
57154         Sync from coreutils.
57155         Use "file name" when talking about file names, instead of "filename"
57156         or "path", as per the GNU coding standards.
57157         * MODULES.html.sh: mkdir-p renamed from makepath.
57158         filenamecat renamed from path-concat.
57159         * modules/filenamecat: Renamed from modules/path-concat.
57160         (Files): filenamecat.h and filenamecat.c renamed from
57161         path-concat.h and path-concat.c.
57162         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57163         (Include): filenamecat.h, not path-concat.h.
57164         * modules/mkdir-p: Renamed from modules/makepath.
57165         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57166         makepath.c.
57167         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57168         (Include): mkdir-p.h, not makepath.h.
57169
57170 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57171
57172         Sync from coreutils.
57173         * m4/mkdir-p.m4: Renamed from makepath.m4.
57174         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57175         Rename files from makepath.c to mkdir-p.c, and from
57176         makepath.h to mkdir-p.h.
57177         * m4/filenamecat.m4: Renamed from path-concat.m4.
57178         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57179         Rename files from path-concat.c to filenamecat.c,
57180         and from path-concat.h to filenamecat.h.
57181         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57182         "file name" in local variables or comments.
57183         * m4/rename.m4: Likewise.
57184
57185 2005-06-01  Bruno Haible  <bruno@clisp.org>
57186
57187         * modules/csharpexec: New file.
57188         * MODULES.html.sh (C#): New section.
57189
57190 2005-06-01  Bruno Haible  <bruno@clisp.org>
57191
57192         * m4/csharp.m4: New file, from GNU gettext.
57193         * m4/csharpexec.m4: New file, from GNU gettext.
57194
57195 2005-06-01  Bruno Haible  <bruno@clisp.org>
57196
57197         * lib/csharpexec.h: New file, from GNU gettext.
57198         * lib/csharpexec.c: New file, from GNU gettext.
57199         * lib/csharpexec.sh.in: New file, from GNU gettext.
57200
57201 2005-05-31  Derek Price  <derek@ximbiot.com>
57202             Paul Eggert  <eggert@cs.ucla.edu>
57203
57204         Sync from cvs.
57205         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57206
57207 2005-05-31  Derek Price  <derek@ximbiot.com>
57208             Paul Eggert  <eggert@cs.ucla.edu>
57209
57210         Sync from cvs.
57211         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57212
57213 2005-05-29  Derek Price  <derek@ximbiot.com>
57214
57215         * config/srclist.txt (glob_.h, glob.c): Add these files.
57216
57217 2005-05-29  Derek Price  <derek@ximbiot.com>
57218
57219         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57220         * modules/glob: New file.
57221         * modules/getlogin_r: Add link to POSIX spec in description.
57222
57223 2005-05-29  Derek Price  <derek@ximbiot.com>
57224             Paul Eggert  <eggert@cs.ucla.edu>
57225
57226         * m4/glob.m4: New file.
57227
57228 2005-05-29  Derek Price  <derek@ximbiot.com>
57229             Paul Eggert  <eggert@cs.ucla.edu>
57230
57231         * lib/glob_.h, lib/glob.c: New files.
57232
57233 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57234
57235         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57236         * modules/fts-lgpl (Depends-on): Remove gettext.
57237
57238 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57241         and don't require gt_INTTYPES_PRI.
57242
57243 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57244
57245         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57246
57247         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57248         the configuration hassle isn't worth it.
57249         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57250         (LONGEST_MODIFIER, PRIuMAX): Remove.
57251
57252 2005-05-27  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57255
57256 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57257
57258         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57259         _POSIX_PTHREAD_SEMANTICS for Solaris.
57260
57261 2005-05-25  Derek Price  <derek@ximbiot.com>
57262
57263         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57264
57265 2005-05-25  Derek Price  <derek@ximbiot.com>
57266             Paul Eggert  <eggert@cs.ucla.edu>
57267
57268         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57269         * lib/getlogin_r.c, getlogin_r.h: New files.
57270
57271 2005-05-25  Bruno Haible  <bruno@clisp.org>
57272             Derek Price  <derek@ximbiot.com>
57273
57274         * lib/getlogin_r.h: Simplify API documentation.
57275
57276 2005-05-23  Derek Price  <derek@ximbiot.com>
57277
57278         * modules/minmax (Files): Add m4/minmax.m4.
57279         (configure.ac): Add gl_MINMAX.
57280
57281 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57282
57283         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57284         so that unistd-safer.h (GPL'ed code) need not be included.
57285
57286 2005-05-22  Bruno Haible  <bruno@clisp.org>
57287
57288         * m4/minmax.m4: New file.
57289         Based on a patch by Derek Price <derek@ximbiot.com>.
57290
57291 2005-05-22  Bruno Haible  <bruno@clisp.org>
57292
57293         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57294         (INT64_MIN): Fix definition.
57295         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57296
57297         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57298         NEED_SIGNED_INT_TYPES.
57299
57300         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57301         HAVE_SYSTEM_INTTYPES.
57302
57303 2005-05-22  Bruno Haible  <bruno@clisp.org>
57304
57305         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57306         Also include <sys/param.h> if it defines MIN, MAX.
57307         Based on a patch by Derek Price <derek@ximbiot.com>.
57308
57309 2005-05-21  Jim Meyering  <jim@meyering.net>
57310
57311         * modules/fts (Files): Add m4/inttypes-pri.m4.
57312         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57313
57314 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57315
57316         New fts module.
57317         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57318         (setup_dir, free_dir): New functions.
57319         (enter_dir, leave_dir): Define trivial
57320         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57321         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57322         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57323         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57324         Move to fts-cycle.c.
57325         (fts_open): Use setup_dir.
57326         (fts_close): Use free_dir.
57327         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57328         This adds a label and some gotos, but the alternatives were messier.
57329         Check for memory allocation failure when entering a dir.
57330         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57331         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57332         (FTS): New member fts_cycle, that is a union that contains the
57333         old active_dir_ht and cycle_state.  All uses changed to mention
57334         fts_cycle.ht and fts_cycle.state.
57335         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57336         fts.c, with the following changes:
57337         (setup_dir, free_dir): New functions.
57338         (enter_dir): Now returns bool.  Return true if successful, false
57339         if memory exhausted.  All callers changed.
57340         Do not bother partly cleaning up on
57341         memory allocation failure; that is free_dir's job.
57342         However, free ad if hash_insert fails, to avoid memory leak.
57343         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57344         fts->fts_options to see which union member to use.
57345
57346 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57347
57348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57349         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57350
57351 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57352
57353         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57354
57355 2005-05-20  Jim Meyering  <jim@meyering.net>
57356
57357         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57358         Now a macro, to pacify GCC.
57359
57360 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57361
57362         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57363         of -1.
57364
57365 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57366
57367         * lib/chown.c (rpl_chown): Return -1 on failure.
57368
57369 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57372         Don't check for stddef.h.
57373         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57374         don't use its results.
57375         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57376         since we include them unconditionally.  Don't require
57377         AM_STDBOOL_H, since stdbool is a prerequisite.
57378         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57379         since we assume C89 or better.
57380         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57381         as we don't use their results.
57382         Don't check for fchdir, memmove, memset, strrchr, as we use
57383         them unconditionally.
57384         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57385         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57386
57387 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57388
57389         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57390         Include <stddef.h> unconditionally, since we assume C89 now.
57391         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57392         * lib/fts.c: Include fts_.h first, to check interface.
57393         Do not include intprops.h; no longer needed.
57394         Include cycle-check.h and hash.h, since fts_.h no longer does.
57395         Remove unnecessary casts of closedir to void.
57396         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57397         decide whether to decrement nlinks.
57398         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57399         (FTS): Use struct hash_table * instead of Hash_table, so that
57400         we no longer need to include hash.h here.
57401
57402 2005-05-18  Jim Meyering  <jim@meyering.net>
57403
57404         * modules/dirfd (License): Change to LGPL.  Most of the code
57405         is already in the public domain.
57406
57407 2005-05-18  Jim Meyering  <jim@meyering.net>
57408
57409         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57410         Reported by Yoann Vandoorselaere.
57411
57412 2005-05-17  Jim Meyering  <jim@meyering.net>
57413
57414         * m4/fts.m4: New file, from coreutils.
57415
57416 2005-05-17  Jim Meyering  <jim@meyering.net>
57417
57418         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57419
57420 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57421
57422         Sync from coreutils.
57423         * m4/unlinkdir.m4: New file.
57424
57425 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57426
57427         Sync from coreutils.
57428         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57429         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57430         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57431         White space changes only.
57432         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57433         special.
57434         * lib/yesno.c: Include getline.h, not ctype.h.
57435         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57436         Use getline to remove arbitrary restriction on response length.
57437
57438 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57439
57440         * config/srclist-update: Spell out "Street" in FSF postal
57441         mail address; this is the style the FSF seems to prefer.
57442
57443         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57444         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57445         this updates FSF postal mail address.
57446
57447         Sync from coreutils.
57448         * modules/unlinkdir: New file.
57449         * modules/yesno (Depends-on): Add getline.
57450         * MODULES.html.sh (File system functions): Add unlinkdir.
57451
57452 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57453
57454         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57455         lib/strsep.h:
57456         Change the initial comment to refer to GPL, not LGPL.
57457         gnulib-tool will change it to LGPL as needed.
57458
57459         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57460         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57461         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57462         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57463         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57464         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57465         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57466         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57467         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57468         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57469         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57470         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57471         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57472         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57473         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57474         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57475         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57476         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57477         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57478         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57479         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57480         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57481         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57482         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57483         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57484         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57485         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57486         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57487         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57488         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57489         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57490         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57491         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57492         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57493         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57494         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57495         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57496         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57497         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57498         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57499         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57500         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57501         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57502         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57503         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57504         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57505         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57506         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57507         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57508         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57509         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57510         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57511         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57512         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57513         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57514         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57515         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57516         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57517         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57518         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57519         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57520         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57521         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57522         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57523         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57524         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57525         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57526         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57527         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57528         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57529         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57530         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57531         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57532         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57533         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57534         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57535         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57536         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57537         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57538         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57539         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57540         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57541         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57542         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57543         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57544         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57545         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57546         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57547         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57548         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57549         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57550         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57551         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57552         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57553         lib/yesno.c, lib/yesno.h:
57554         Update FSF postal mail address.
57555
57556 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57557
57558         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57559         tests/test-memmem.c, tests/test-stpncpy.c:
57560         Update FSF postal mail address.
57561
57562 2005-05-13  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57565         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57566         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57567         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57568         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57569         Add support for 64-bit integers in the MSVC compiler.
57570
57571 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57572
57573         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57574
57575 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57576
57577         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57578
57579 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57580
57581         * doc/getdate.texi (General date syntax): Don't say that date
57582         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57583         Problem reported by Nic Ferrier.
57584
57585 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57586
57587         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57588         specified in ai_socktype. Fix invalid ai_protocol
57589         check. ai_protocol is usually set to 0 or depending on
57590         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57591         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57592         ai_socktype / ai_protocol in the returned addrinfo structure.
57593
57594 2005-05-10  Simon Josefsson  <jas@extundo.com>
57595
57596         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57597         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57598
57599 2005-05-10  Karl Berry  <karl@gnu.org>
57600
57601         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57602         (from http://www.gnu.org/licenses).
57603         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57604         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57605         fdl.texi suffices.
57606
57607 2005-05-10  Karl Berry  <karl@gnu.org>
57608
57609         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57610         (COPYING.DOC): remove.
57611
57612         * config/srclist-update: new FSF address.
57613
57614 2005-05-10  Derek Price  <derek@ximbiot.com>
57615
57616         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57617         possible.
57618
57619 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57620             Bruno Haible  <bruno@clisp.org>
57621
57622         * modules/inet_ntop: New file.
57623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57624         inet_ntop.
57625
57626 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57627             Bruno Haible  <bruno@clisp.org>
57628
57629         * m4/inet_ntop.m4: New file.
57630
57631 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57632             Bruno Haible  <bruno@clisp.org>
57633
57634         * lib/inet_ntop.h: New file.
57635         * lib/inet_ntop.c: New file, from glibc with modifications.
57636
57637 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57638
57639         * modules/time_r (License): Change to LGPL.
57640         * modules/extensions (License): Change to LGPL.  Actually,
57641         the license is more permissive than that, but currently gnulib-tool
57642         doesn't know how to handle more-permissive licenses.
57643
57644         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57645         Problem reported by Dave Love.
57646
57647 2005-05-08  Jim Meyering  <jim@meyering.net>
57648
57649         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57650         blank.
57651
57652 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57653
57654         * modules/argmatch (Depends-on): Add stdbool.
57655         * modules/backupfile (Depends-on): Likewise.
57656         * modules/chdir-long (Depends-on): Likewise.
57657         * modules/closeout (Depends-on): Likewise.
57658         * modules/cycle-check (Depends-on): Likewise.
57659         * modules/dirname (Depends-on): Likewise.
57660         * modules/fnmatch (Depends-on): Likewise.
57661         * modules/fsusage (Depends-on): Likewise.
57662         * modules/fwriteerror (Depends-on): Likewise.
57663         * modules/getcwd (Depends-on): Likewise.
57664         * modules/getloadavg (Depends-on): Likewise.
57665         * modules/hard-locale (Depends-on): Likewise.
57666         * modules/makepath (Depends-on): Likewise.
57667         * modules/mountlist (Depends-on): Likewise.
57668         * modules/nanosleep (Depends-on): Likewise.
57669         * modules/posixtm (Depends-on): Likewise.
57670         * modules/quotearg (Depends-on): Likewise.
57671         * modules/readtokens (Depends-on): Likewise.
57672         * modules/readtokens0 (Depends-on): Likewise.
57673         * modules/readutmp (Depends-on): Likewise.
57674         * modules/save-cwd (Depends-on): Likewise.
57675         * modules/strftime (Depends-on): Likewise.
57676         * modules/userspec (Depends-on): Likewise.
57677         * modules/utimecmp (Depends-on): Likewise.
57678         * modules/xgetcwd (Depends-on): Likewise.
57679         * modules/xnanosleep (Depends-on): Likewise.
57680         * modules/xstrtod (Depends-on): Likewise.
57681         * modules/yesno (Depends-on): Likewise.
57682
57683 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57684
57685         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57686         needless checks.
57687
57688 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         Merge from coreutils.  Among other things,
57691         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57692         * lib/fd-safer.c: New file.
57693         * lib/fcntl-safer.h, open-safer.c: Remove.
57694         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57695         * lib/dup-safer.c: Include unistd-safer.h first.
57696         Don't include errno.h.
57697         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57698         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57699         * lib/file-type.c: Rely on file-type.h change.
57700         * lib/getloadavg.c: Include unistd-safer.h.
57701         (getloadavg): Use safer open.
57702         * lib/getusershell.c: Include "stdio-safer.h".
57703         (getusershell): Use safer fopen.
57704         * lib/long-options.c (long_options): Use NULL rather than 0.
57705         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57706         'free'.
57707         * lib/modechange.c: Likewise.
57708         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57709         (MODE_DONE): New constant.
57710         (struct mode_change): Remove 'next' member.
57711         (make_node_op_equals): New function; like the old one of the
57712         same name, except it allocates an array.
57713         (mode_compile, mode_create_from_ref): Use it.
57714         (mode_compile): Allocate result as an array, not a linked list.
57715         Parse octal string ourself, so that we catch mistakes like "+0".
57716         (mode_adjust): Arg is an array, not a linked list.
57717         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57718         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57719         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57720         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57721         Remove.  This is now stat-macros.h's job.
57722         (talloc): Remove.  All callers replaced by xalloc, so that
57723         our invokers don't have to worry about reporting memory failures.
57724         (make_node_op_equals): Remove.
57725         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57726         New constants.
57727         (struct mode_change): Moved here from modechange.h.
57728         (mode_append_entry): Remove.
57729         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57730         apps to have incorrect behavior.  Use simpler algorithm for head
57731         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57732         Detect more invalid usages rather than having somewhat-random behavior.
57733         Don't insert an "a=" action, as that leads to incorrect behavior.
57734         (mode_compile, mode_create_from_ref): Return NULL on error instead
57735         of an enum, since now there's only one way to have an error.  All
57736         callers changed.
57737         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57738         at the correct time.  Simplify calculation of "+u" and its ilk.
57739         Don't mishandle "+X".
57740         (mode_free): Remove "register" and localize decls.
57741         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57742         (struct mode_change): Move to modechange.c; callers don't
57743         need to see this stuff.
57744         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57745         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57746         (mode_change, mode_adjust): Reflect the new signatures noted above.
57747         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57748         that might redefine system include files.
57749         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57750         (my_usleep): Use NULL rather than (void *) 0.
57751         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57752         Use siginterrupt to specify that system calls should be interrupted.
57753         (rpl_nanosleep): Move initialization of suspended closer to call of
57754         my_usleep.
57755         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57756         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57757         (desirable_utmp_entry): New function.
57758         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57759         using x2nrealloc, to simplify logic.
57760         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57761         size calculation.  Do not assume utmp file is a regular file.
57762         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57763         (READ_UTMP_CHECK_PIDS): New constant.
57764         * lib/save-cwd.c: Include unistd-safer.h.
57765         (save_cwd): Use fd_safer.
57766         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57767         [!_LIBC] Include "stat-macros.h" instead.
57768         * lib/unistd-safer.h (fd_safer): New decl.
57769
57770 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57771
57772         * modules/getloadavg (Depends-on): Add unistd-safer.
57773         * modules/getusershell (Depends-on): Add stdio-safer.
57774         * modules/lstat (Depends-on): Remove xalloc.
57775         * modules/mkstemp (Depends-on): Add stat-macros.
57776         * modules/modechange (Depends-on): Remove xstrtol.
57777         Add stat-macros, xalloc.
57778         * modules/save-cwd (Depends-on): Add unistd-safer.
57779         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57780         * modules/unistd-safer (Files): Add lib/fd-safer.c
57781         (Makefile.am): Remove lib_SOURCES.
57782
57783         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57784         Remove fcntl-safer; unistd-safer supersedes it.
57785
57786 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57787
57788         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57789         AC_HEADER_STAT.
57790         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57791         (gl_PREREQ_CHOWN): Remove.
57792         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57793         it.  Don't require AC_HEADER_STAT.
57794         (gl_PREREQ_LSTAT): Remove.
57795         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57796         Don't require AC_HEADER_STAT.
57797         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57798         (gl_PREREQ_RMDIR): Remove.
57799         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57800         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57801         the stat-macros module a prerequisite.
57802         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57803         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57804         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57805         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57806         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57807         variable names.
57808         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57809         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57810         variable prefixes.
57811         * m4/fcntl-safer.m4: Remove.
57812         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57813         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57814         Invoke gl_PREREQ_FD_SAFER.
57815         (gl_PREREQ_FD_SAFER): New macro.
57816         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57817         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57818         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57819         Remove duplicate call to AC_LIBOBJ(readutmp).
57820         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57821
57822         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57823         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57824
57825 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57826
57827         * MODULES.html.sh (Misc): Add byteswap.
57828
57829 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57830
57831         * modules/getcwd (Depends-on): Add extensions.
57832         * modules/openat (Depends-on): Likewise.
57833
57834 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57835
57836         * modules/byteswap: New file.
57837
57838 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57839
57840         * m4/byteswap.m4: New file.
57841
57842 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
57843
57844         * lib/byteswap_.h: New file.
57845
57846 2005-04-25  Karl Berry  <karl@gnu.org>
57847
57848         * m4/gettext.m4: Update from GNU gettext 0.14.4.
57849
57850 2005-04-25  Albert Chin  <china@thewrittenword.com>
57851
57852         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
57853         Toolkit C bug.
57854
57855 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
57856
57857         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
57858         (func_ln_if_changed) Remove forcibly for no error message
57859         in case file does not exist.
57860
57861 2005-04-19  Simon Josefsson  <jas@extundo.com>
57862
57863         * gnulib-tool (Options): Make --symlink mean --symbolic.
57864
57865 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
57866
57867         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
57868
57869 2005-04-16  Simon Josefsson  <jas@extundo.com>
57870
57871         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
57872
57873 2005-04-15  Simon Josefsson  <jas@extundo.com>
57874
57875         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
57876
57877 2005-04-15  Simon Josefsson  <jas@extundo.com>
57878
57879         * gnulib-tool: Rename --symlink to --symbolic.
57880
57881 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
57882
57883         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
57884         symbolic links to files instead of copying/moving.  Add --aux-dir,
57885         specifying directory relative --dir where auxiliary build tools
57886         are placed.
57887
57888 2005-04-14  Bruno Haible  <bruno@clisp.org>
57889
57890         * modules/allocsa (License): Change to LGPL.
57891         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57892
57893 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57894
57895         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
57896         that "UTC +1 second" continues to work.  Problem reported
57897         by Dmitry V. Levin.
57898         (relunit_snumber): New rule.
57899         (relunit): Use it.
57900
57901 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
57902
57903         * lib/getdate.y (universal_time_zone_table): New constant.
57904         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
57905         universal_time_zone_table.
57906         (lookup_zone): Prefer universal_time_zone_table to
57907         local_time_zone_table, so that "GMT" time stamps are allowed in
57908         London during the summer.  Problem reported by Ian Abbott.
57909
57910 2005-04-12  Jim Meyering  <jim@meyering.net>
57911
57912         * lib/human.c (humblock): Set *options even when returning due to
57913         xstrtoumax conversion failure.  Thanks to a used-uninitialized
57914         warning from gcc-4.
57915
57916 2005-04-09  Jim Meyering  <jim@meyering.net>
57917
57918         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
57919         -Wuninitialized: initialize tm0.tm_year.
57920
57921 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57922
57923         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
57924         count, since there's no maximum.  All uses changed.
57925         Add member dsts_seen.
57926         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
57927         not being INT_MAX.
57928         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
57929         Use pc_rels_seen to decide whther a date is absolute.
57930
57931         * lib/getdate.y (number): Don't overwrite year.
57932         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
57933         check.
57934
57935 2005-04-02  Simon Josefsson  <jas@extundo.com>
57936
57937         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
57938         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
57939
57940 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
57941
57942         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
57943         where no absolute path name can be longer than PATH_MAX.
57944
57945 2005-03-27  Jim Meyering  <jim@meyering.net>
57946
57947         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
57948
57949 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
57950
57951         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
57952         "one's complement" -> "ones' complement" in comment, as per Knuth.
57953         "value of type" -> "type or expression" in comment.
57954         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
57955
57956 2005-03-26  Jim Meyering  <jim@meyering.net>
57957
57958         Comment nits.
57959         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
57960         Correct typos: s/or/of/.
57961
57962 2005-03-26  Jim Meyering  <jim@meyering.net>
57963
57964         * modules/check-include-files: Move to ../ and rename to...
57965         * check-module: ...this.
57966
57967 2005-03-25  Jim Meyering  <jim@meyering.net>
57968
57969         * modules/xvasprintf (Files): Add xalloc.h.
57970
57971 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57972
57973         * modules/gettext (Files): config/config.rpath ->
57974         build-aux/config.rpath
57975         * modules/iconv (Files): Likewise.
57976         Problem reported by Oskar Liljeblad.
57977
57978 2005-03-23  Jim Meyering  <jim@meyering.net>
57979
57980         * modules/check-include-files: New script to check for
57981         missing dependencies, multiple includes, etc.
57982
57983         * modules/c-strtold (Depends-on): Add xalloc.
57984         * modules/c-strtod (Depends-on): Add xalloc.
57985         * modules/hash (Depends-on): Add xalloc.
57986         (Files): Remove lib/xalloc.h.
57987
57988         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
57989         * modules/userspec (Files): Add lib/inttostr.h.
57990
57991 2005-03-23  Jim Meyering  <jim@meyering.net>
57992
57993         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
57994
57995 2005-03-22  Jim Meyering  <jim@meyering.net>
57996
57997         * modules/stat-macros: New module.
57998         * modules/canonicalize, modules/euidaccess, modules/file-type,
57999         * modules/filemode, modules/lchown, modules/makepath,
58000         * modules/rmdir, modules/stat: Depend on new stat-macros module
58001         rather than listing lib/stat-macros.h manually.
58002         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
58003
58004 2005-03-22  Jim Meyering  <jim@meyering.net>
58005
58006         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
58007
58008 2005-03-22  Bruno Haible  <bruno@clisp.org>
58009
58010         * config/srclist.txt: Replace target directory 'config' with
58011         'build-aux'.
58012         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
58013         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
58014         ../build-aux/.
58015
58016 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
58017
58018         * modules/chdir-long (Depends-on): Add mempcpy.
58019
58020         * modules/acl, modules/backupfile, modules/c-strtod,
58021         modules/c-strtold, modules/canon-host, modules/canonicalize,
58022         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
58023         modules/exclude, modules/exitfail, modules/file-type,
58024         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
58025         modules/getdate, modules/getline, modules/getpagesize,
58026         modules/getpass, modules/getugroups, modules/group-member,
58027         modules/hard-locale, modules/hash, modules/human, modules/idcache,
58028         modules/inttostr, modules/long-options, modules/makepath,
58029         modules/md5, modules/memcasecmp, modules/memcoll,
58030         modules/modechange, modules/mountlist, modules/path-concat,
58031         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
58032         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
58033         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
58034         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
58035         modules/strftime, modules/strndup, modules/strverscmp,
58036         modules/timespec, modules/unlocked-io, modules/userspec,
58037         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
58038         modules/yesno:
58039         Remove lib_SOURCES line from Makefile.am section, as this is now
58040         done automatically by the corresponding Autoconf macro.
58041
58042 2005-03-21  Jim Meyering  <jim@meyering.net>
58043
58044         Changes imported from coreutils.
58045
58046         * lib/cycle-check.c: Don't include xalloc.h.
58047
58048         * lib/path-concat.c: Don't include assert.h.
58049         (path_concat): Remove assertion that would have triggered
58050         for ABASE starting with more than one slash.
58051         Reported by Andreas Schwab.
58052
58053         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
58054         properly when ABASE is an absolute file name.
58055         Correct the description of this function.
58056         Include <assert.h>.
58057         Add an assertion and a test driver.
58058         This fixes a bug introduced on 2004-07-02.
58059         Andreas Schwab reported the resulting failure of cp --parents:
58060         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
58061
58062 2005-03-21  Jim Meyering  <jim@meyering.net>
58063
58064         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
58065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
58066
58067 2005-03-21  Jim Meyering  <jim@meyering.net>
58068         and  Paul Eggert  <eggert@cs.ucla.edu>
58069
58070         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
58071         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
58072         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
58073         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
58074         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
58075         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
58076         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
58077         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
58078         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
58079         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
58080         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
58081         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
58082         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
58083         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
58084         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
58085         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
58086         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
58087         for these modules.
58088
58089 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
58090
58091         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
58092         (which shouldn't happen), generate nothing instead of returning 0
58093         immediately, so that nstrftime (NULL, ...) doesn't return 0.
58094
58095 2005-03-16  Bruno Haible  <bruno@clisp.org>
58096
58097         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
58098         HAVE_LONGLONG_64BIT.
58099
58100 2005-03-16  Bruno Haible  <bruno@clisp.org>
58101
58102         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
58103         HAVE_LONGLONG_64BIT.
58104
58105 2005-03-16  Bruno Haible  <bruno@clisp.org>
58106
58107         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
58108         HAVE_LONGLONG_64BIT.
58109
58110 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58111
58112         * lib/strftime.c (my_strftime): Prepend space to format so that we can
58113         reliably distinguish strftime failure from empty output on POSIX
58114         hosts.
58115
58116 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
58119         (iconv_string): Don't guess a size-zero buffer, as that might cause
58120         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
58121         result would be 'too large', where 'too large' is (heuristically)
58122         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
58123         overflow concerns.  This will prevent some unwanted malloc failures
58124         when the inputs are very large.
58125
58126 2005-03-15  Karl Berry  <karl@gnu.org>
58127
58128         * config/srclist.txt (config.rpath): from gettext.
58129         * config/config.rpath: update.
58130
58131 2005-03-15  Bruno Haible  <bruno@clisp.org>
58132
58133         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
58134         to 'negate'.
58135
58136         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
58137         variable.
58138
58139         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
58140         results.
58141
58142 2005-03-14  Simon Josefsson  <jas@extundo.com>
58143
58144         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
58145         <fx@gnu.org>.
58146
58147 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
58148
58149         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
58150         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
58151         intprops.h.
58152         * lib/strtol.c: Likewise.
58153
58154 2005-03-14  Jim Meyering  <jim@meyering.net>
58155
58156         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
58157         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
58158         to be nonzero so that we (and caller) can detect the difference
58159         between a valid zero-length expansion and an error return, even
58160         when the underlying strftime fails before writing anything into
58161         that location.
58162
58163 2005-03-14  Bruno Haible  <bruno@clisp.org>
58164
58165         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58166         Update from GNU gettext 0.14.3.
58167
58168 2005-03-10  Jim Meyering  <jim@meyering.net>
58169
58170         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58171
58172 2005-03-10  Jim Meyering  <jim@meyering.net>
58173
58174         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58175         so that this module works on systems without fchdir.
58176
58177 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58178
58179         Factor int-properties macros into a single file, except for
58180         glibc-related files.
58181         * lib/intprops.h: New file.
58182         * lib/getloadavg.c: Include it instead of limits.h.
58183         (INT_STRLEN_BOUND): Remove.
58184         * lib/human.c: Include intprops.h.
58185         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58186         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58187         302/1000.
58188         * lib/inttostr.h: Include intprops.h instead of limits.h.
58189         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58190         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58191         for consistency with intprops.h.
58192         (time_t_is_integer, twos_complement_arithmetic): Use them.
58193         * lib/sig2str.h: Include <signal.h>, intprops.h.
58194         (INT_STRLEN_BOUND): Remove.
58195         * lib/strftime.c (TYPE_SIGNED): Remove.
58196         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58197         * lib/strtol.c: Adjust comments to match intprops.h.
58198         * lib/userspec.c: Include intprops.h.
58199         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58200         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58201         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58202         instead of rolling our own expressions.
58203         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58204
58205         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58206         instead of int.
58207         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58208         the right thing even if adding 1900 would overflow.  Similarly
58209         for tm_mon + 1 and tm_yday + 1.
58210         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58211         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58212         (DO_SIGNED_NUMBER): New macro.
58213         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58214
58215 2005-03-07  Bruno Haible  <bruno@clisp.org>
58216
58217         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58218
58219 2005-03-07  Bruno Haible  <bruno@clisp.org>
58220
58221         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58222
58223 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58224
58225         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58226         (func_import): Only replace files via --import when they have actually
58227         changed.
58228
58229 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58230
58231         * m4/mmap-anon.m4: New file.
58232         * m4/pagealign_alloc.m4: New file.
58233
58234 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58235             Bruno Haible  <bruno@clisp.org>
58236
58237         * modules/pagealign_alloc: New file.
58238         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58239
58240 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58241             Bruno Haible  <bruno@clisp.org>
58242
58243         * lib/pagealign_alloc.h: New file.
58244         * lib/pagealign_alloc.c: New file.
58245
58246 2005-03-03  Bruno Haible  <bruno@clisp.org>
58247
58248         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58249         Use an all-permissive copyright notice, recommended by RMS.
58250
58251 2005-03-02  Bruno Haible  <bruno@clisp.org>
58252
58253         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58254         of AIX, the replacement has to be done only after <string.h> is
58255         included, therefore not in config.h. stpncpy.h does the replacement,
58256         and stpncpy.c uses it.
58257
58258 2005-03-02  Bruno Haible  <bruno@clisp.org>
58259
58260         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58261         stpncpy.c uses it.
58262
58263 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58264
58265         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58266         The workaround isn't strictly needed for POSIX conformance, and
58267         it's too much of a pain to configure and maintain.  We'll ask
58268         people to fix their kernels instead.
58269         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58270         (NANOSLEEP_BUG_WORKAROUND): Remove.
58271         (xnanosleep): Remove the workaround.
58272
58273 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58274
58275         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58276         Reported by Derek Price.
58277         (Include): Add "timespec.h".
58278
58279         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58280
58281 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58282
58283         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58284         to detect nanosleep bug.
58285
58286 2005-03-01  Bruno Haible  <bruno@clisp.org>
58287
58288         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58289
58290 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58291
58292         * modules/gethrxtime: New file.
58293         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58294         (Depends-on): Add gethrxtime.
58295         (configure.ac): Add gl_XNANOSLEEP.
58296         (Makefile.am): Remove lib_SOURCES line.
58297
58298 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58299
58300         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58301         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58302
58303 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58304
58305         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58306         * lib/timespec.h (gettime): Return void, since it always
58307         succeeds now.  All uses changed.
58308         * lib/gettime.c (gettime) Likewise.
58309         [HAVE_NANOTIME]: Prefer nanotime.
58310         Assume gettimeofday succeeds, as POSIX requires.
58311         Assime time () succeeds, since other code already does.
58312         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58313         (timespec_subtract): Remove.
58314         (NANOSLEEP_BUG_WORKAROUND): New constant.
58315         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58316         things considerably.  Use it only on GNU/Linux hosts, since the
58317         workaround shouldn't be needed elsewhere.
58318
58319 2005-02-24  Bruno Haible  <bruno@clisp.org>
58320
58321         * modules/gettext (Files): Add m4/glibc2.m4.
58322
58323 2005-02-24  Bruno Haible  <bruno@clisp.org>
58324
58325         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58326         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58327         * m4/progtest.m4:
58328         Update from GNU gettext 0.14.2.
58329         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58330
58331 2005-02-24  Bruno Haible  <bruno@clisp.org>
58332
58333         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58334         * lib/config.charset: Update from GNU gettext 0.14.2.
58335
58336 2005-02-24  Bruno Haible  <bruno@clisp.org>
58337
58338         * lib/gettext.h: Update from GNU gettext 0.14.2.
58339
58340 2005-02-23  Simon Josefsson  <jas@extundo.com>
58341
58342         * m4/iconvme.m4: New file.
58343
58344 2005-02-23  Jim Meyering  <jim@meyering.net>
58345
58346         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58347         change.
58348         Thanks to Bruno Haible for catching it.
58349
58350 2005-02-22  Simon Josefsson  <jas@extundo.com>
58351
58352         * modules/iconvme: New file.
58353
58354         * MODULES.html.sh: Add iconvme.
58355
58356 2005-02-22  Simon Josefsson  <jas@extundo.com>
58357
58358         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58359
58360 2005-02-22  Simon Josefsson  <jas@extundo.com>
58361
58362         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58363
58364 2005-02-22  Jim Meyering  <jim@meyering.net>
58365
58366         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58367         s/ifndef/ifdef/.
58368
58369 2005-02-20  Neil Conway  <neilc@samurai.com>
58370
58371         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58372         returned by OSX/Darwin if the specified buffer is not large
58373         enough for the hostname.
58374
58375 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58376
58377         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58378         pass it to _help, otherwise the latter coredumps trying to
58379         dereference state.root_argp.
58380
58381 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58382
58383         * modules/chdir-long (Depends-on): Add memrchr.
58384         * modules/memrchr (Files): Add lib/memrchr.h.
58385         (Include): "memrchr.h".
58386
58387 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58390
58391 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58392
58393         * lib/memrchr.h: New file.
58394         * lib/chdir-long.c: Include it.
58395         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58396         Don't bother including stddef.h.
58397
58398 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58399
58400         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58401         inclusion.
58402         Include <sys/types.h>, for dev_t.
58403         (ME_DUMMY, ME_REMOTE): Move from here....
58404         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58405         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58406         Dmitry V. Levin.
58407         Include mountlist.h first, to test the interface.
58408
58409 2005-01-29  Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/progname.c (program_name): Initialize.
58412         Needed when linking statically on MacOS X.
58413
58414 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58415
58416         Sync from coreutils.
58417         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58418         (Depends-on): Add c-strtod.
58419         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58420
58421 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58422
58423         Sync from coreutils.
58424         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58425
58426         Remove files that are specific to coreutils.
58427         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58428
58429 2005-01-28  Bruno Haible  <bruno@clisp.org>
58430
58431         * modules/javacomp: New file.
58432         * MODULES.html.sh (Java): Add javacomp.
58433
58434 2005-01-28  Bruno Haible  <bruno@clisp.org>
58435
58436         * m4/javacomp.m4: New file, from GNU gettext.
58437
58438 2005-01-28  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/javacomp.sh.in: New file, from GNU gettext.
58441         * lib/javacomp.h: New file, from GNU gettext.
58442         * lib/javacomp.c: New file, from GNU gettext.
58443
58444 2005-01-26  Simon Josefsson  <jas@extundo.com>
58445
58446         * lib/gai_strerror.c: Use GPL in header.
58447
58448 2005-01-26  Bruno Haible  <bruno@clisp.org>
58449
58450         * modules/javaexec: New file.
58451         * MODULES.html.sh (Java): Add javaexec.
58452
58453 2005-01-26  Bruno Haible  <bruno@clisp.org>
58454
58455         * m4/javaexec.m4: New file, from GNU gettext.
58456
58457 2005-01-26  Bruno Haible  <bruno@clisp.org>
58458
58459         * lib/javaexec.sh.in: New file, from GNU gettext.
58460         * lib/javaexec.h: New file, from GNU gettext.
58461         * lib/javaexec.c: New file, from GNU gettext.
58462
58463 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58464
58465         * modules/lchown (Depends-on): Remove lchown.h
58466
58467 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58468
58469         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58470         must be defined if the header file was not found, in order
58471         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58472
58473 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58474
58475         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58476         initializers for struct pentry_state.
58477         (__argp_error): Check return value of __asprintf
58478         (__argp_failure): Translate error message
58479
58480         * lib/argp-parse.c: Removed braces around the expansion of N_()
58481
58482 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58483
58484         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58485         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58486         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58487         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58488         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58489         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58490         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58491         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58492         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58493         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58494         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58495         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58496         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58497         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58498         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58499         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58500         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58501         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58502         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58503         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58504         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58505         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58506         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58507         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58508         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58509         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58510         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58511         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58512         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58513         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58514         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58515         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58516         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58517         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58518         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58519         Use an all-permissive copyright notice, recommended by RMS.
58520
58521 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * modules/chdir-long (Depends-on): Remove mempcpy.
58524
58525 2005-01-21  Jim Meyering  <jim@meyering.net>
58526
58527         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58528         same value as for Solaris 9.
58529
58530         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58531         component length.  This included changing the parameter to be
58532         of type `char *' rather than `char const *'.
58533         * lib/chdir-long.h (chdir_long): Update prototype.
58534
58535         * lib/openat.c (fdopendir, fstatat): New functions.
58536         * lib/openat.h: Include headers required for use of DIR and struct
58537         stat.
58538         [AT_SYMLINK_NOFOLLOW]: Define.
58539         (fdopendir, fstatat): Add prototypes.
58540
58541 2005-01-21  Bruno Haible  <bruno@clisp.org>
58542
58543         * modules/classpath: New file.
58544         * MODULES.html.sh (Java): Add classpath.
58545
58546 2005-01-21  Bruno Haible  <bruno@clisp.org>
58547
58548         * lib/classpath.h: New file, from GNU gettext.
58549         * lib/classpath.c: New file, from GNU gettext.
58550
58551 2005-01-20  Simon Josefsson  <jas@extundo.com>
58552
58553         * modules/version-etc-fsf: New file.
58554
58555 2005-01-20  Simon Josefsson  <jas@extundo.com>
58556
58557         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58558         * lib/version-etc.c: Remove version_etc_copyright.
58559         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58560         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58561
58562 2005-01-20  Simon Josefsson  <jas@extundo.com>
58563
58564         * lib/base64.h (isbase64): Add.
58565
58566         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58567         using a unsigned prototype, don't inline.
58568         (base64_decode): Use it.
58569
58570 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58571
58572         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58573         it.
58574
58575 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58576
58577         * lib/save-cwd.c (save_cwd): Remove code to support the case
58578         where fchdir is missing or flaky.
58579
58580 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58581
58582         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58583
58584 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58585
58586         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58587         AC_LIBSOURCES now does this.
58588         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58589         with new ullong_max module.
58590
58591 2005-01-19  Bruno Haible  <bruno@clisp.org>
58592
58593         * modules/sh-quote: New file.
58594         * MODULES.html.sh (Executing programs): Add sh-quote.
58595
58596 2005-01-19  Bruno Haible  <bruno@clisp.org>
58597
58598         * lib/sh-quote.h: New file, from GNU gettext.
58599         * lib/sh-quote.c: New file, from GNU gettext.
58600
58601 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         Merge from coreutils.
58604         * m4/ullong_max.m4: New file.
58605         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58606         (gl_MACROS): Assume localeconv exists.
58607
58608 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58609
58610         Merge changes from coreutils, as described below in several
58611         changelogs dated today.
58612
58613         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58614         (O_DIRECTORY): Remove; not needed here, since "." must be
58615         a directory.  All uses removed.
58616         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58617         universal on Suns, and we also need to test for IRIX.
58618         Revamp code to use 'if' rather than '#if'.
58619         Avoid unnecessary comparison of cwd->desc to 0.
58620
58621         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58622         for known valid error numbers rather than observed invalid ones.
58623
58624 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58625
58626         * modules/ullong_max: New file.
58627
58628         * modules/chdir-long, modules/openat: New files.
58629         * modules/save-cwd (Depends-on): Depend on chdir-long.
58630         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58631
58632 2005-01-18  Jim Meyering  <jim@meyering.net>
58633
58634         Merge from coreutils.
58635         * m4/chdir-long.m4, m4/openat.m4: New files.
58636         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58637         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58638         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58639         is sane and DOES follow symlinks.  Besides, testing 20 different
58640         systems found no broken chown implementations.
58641         Prompted by a change in rsync's copy of this macro.
58642         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58643
58644         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58645
58646         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58647         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58648         NULL-means-set-to-current-time semantics.
58649         Remove temporary file immediately, rather than waiting
58650         for configure's at-exit trap code to do it.
58651
58652 2005-01-18  Jim Meyering  <jim@meyering.net>
58653
58654         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58655
58656         * lib/utimens.c (futimens): Account for the fact that futimes
58657         can also fail with errno == ENOSYS or errno == ENOENT.
58658         Patch from Dmitry V. Levin.
58659
58660         Change the name of the robust chdir function from chdir to chdir_long.
58661         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58662         (restore_cwd): Use chdir_long, not chdir.
58663         * lib/chdir-long.c: Renamed from chdir.c.
58664         * lib/chdir-long.h: Renamed from chdir.h.
58665         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58666         Hurd.
58667
58668 2005-01-18  Bruno Haible  <bruno@clisp.org>
58669
58670         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58671         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58672         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58673         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58674         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58675         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58676         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58677         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58678         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58679         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58680         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58681         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58682         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58683         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58684         Use an all-permissive copyright notice, recommended by RMS.
58685
58686 2005-01-18  Bob Proulx  <bob@proulx.com>
58687
58688         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58689         simplify offsetof() macro construct to avoid compile failure with
58690         native HP-UX 11.0 ANSI C compiler.
58691
58692 2005-01-17  Bruno Haible  <bruno@clisp.org>
58693
58694         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58695         redundant because stpncpy.m4 takes care of it.
58696
58697 2005-01-17  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58700
58701 2005-01-17  Bruno Haible  <bruno@clisp.org>
58702
58703         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58704         used.
58705
58706 2005-01-17  Bruno Haible  <bruno@clisp.org>
58707
58708         * lib/fwriteerror.h (fwriteerror): Change specification to include
58709         fclose.
58710         * lib/fwriteerror.c: Include <stdbool.h>.
58711         (fwriteerror): At the end, close the file stream. Record whether
58712         stdout was already closed.
58713
58714 2005-01-17  Bruno Haible  <bruno@clisp.org>
58715
58716         * lib/execute.c (environ): Declare if needed.
58717         * lib/pipe.c (environ): Likewise.
58718         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58719
58720 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58721
58722         * modules/argp: Depend on vsnprintf
58723
58724 2005-01-10  Jim Meyering  <jim@meyering.net>
58725
58726         * modules/closeout (Depends-on): Add atexit.
58727
58728 2005-01-06  Bruno Haible  <bruno@clisp.org>
58729
58730         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58731
58732 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58735         definitions to be after all include files, to avoid collisions.
58736         Problem reported by Bob Proulx.
58737
58738 2005-01-04  Jim Meyering  <jim@meyering.net>
58739
58740         Changes imported from coreutils.
58741         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58742         as the mkstemp template, use a temporary directory and an
58743         8.3-friendly template to avoid trouble on systems like DJGPP.
58744         Reported by Juan M. Guerrero via Stepan Kasal.
58745         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58746         close. Remove the temporary directory right away, rather than waiting
58747         for configure's at-exit trap code to do it.
58748         Suggestion from Stepan Kasal.
58749
58750 2005-01-01  Simon Josefsson  <jas@extundo.com>
58751
58752         * gnulib-tool: Print #include directives when --import'ing.
58753
58754 2004-12-28  Simon Josefsson  <jas@extundo.com>
58755
58756         * tests/test-base64.c: Include required header files.  Remove
58757         unused variables.
58758
58759 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58760
58761         * modules/error (Depends-on): Remove gettext.
58762
58763 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58764
58765         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58766         not needed.  This removes a dependency on the gettext module.
58767         [defined _LIBC]: Do not include <libintl.h>; not needed.
58768
58769 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58772         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58773
58774 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58775
58776         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58777         HAVE_DECL_STRTOLD.
58778
58779 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         * modules/getdate (Depends-on): Remove alloca-opt.
58782
58783 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58786
58787 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58788
58789         * lib/argp-parse.c: Include <stddef.h>.
58790         (alignof, alignto): New macros.
58791         (parser_init): Don't assume that void * is aligned sufficiently
58792         for struct option.
58793
58794         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58795         need to extend the stack.
58796         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58797         large.
58798
58799 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58800
58801         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58802
58803 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58804
58805         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58806         (2004-10-24) change.  Apparently this was a false alarm.
58807
58808         * modules/getdate: Depend on alloca-opt, not alloca.
58809
58810 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58811
58812         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58813         Remove now-obsolete comment about AIX.
58814         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58815         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58816         (YYMAXDEPTH): New macro.
58817
58818 2004-12-18  Simon Josefsson  <jas@extundo.com>
58819
58820         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58821
58822 2004-12-18  Bruno Haible  <bruno@clisp.org>
58823
58824         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58825
58826 2004-12-18  Bruno Haible  <bruno@clisp.org>
58827
58828         * lib/fatal-signal.c (fatal_signals): Make non-const.
58829         (init_fatal_signals): New function.
58830         (uninstall_handlers, install_handlers): Ignore signals that were set to
58831         SIG_IGN.
58832         (at_fatal_signal): Call init_fatal_signals.
58833         (init_fatal_signal_set): Likewise. Ignore signals that were set to
58834         SIG_IGN.
58835         Reported by Paul Eggert.
58836
58837 2004-12-18  Bruno Haible  <bruno@clisp.org>
58838
58839         * doc/alloca.texi: New file.
58840         * doc/alloca-opt.texi: New file.
58841
58842 2004-12-17  Jim Meyering  <jim@meyering.net>
58843
58844         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
58845         Otherwise, install-sh could exit with improper exit status when
58846         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
58847
58848 2004-12-16  Simon Josefsson  <jas@extundo.com>
58849
58850         * tests/test-base64.c: Add license.
58851
58852 2004-12-15  Stepan Kasal  <address@hidden>
58853
58854         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
58855
58856 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
58857
58858         * modules/getcwd (Files): Add m4/d-ino.m4.
58859         Suggested by Mark D. Baushke.
58860
58861 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58862
58863         * lib/getdate.y (textint): New member "negative".
58864         (time_zone_hhmm): New function.
58865         Expect 14 shift-reduce conflicts, not 13.
58866         (o_colon_minutes): New rule.
58867         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
58868         (yylex): Set the "negative" member of signed numbers.
58869
58870 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
58871
58872         * doc/getdate.texi (Time of day items, Time zone items):
58873         Describe new formats +00:00, UTC+00:00.
58874
58875 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58876
58877         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
58878         spurious "-l"s.  Problem reported by Stepan Kasal.
58879
58880 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
58881
58882         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
58883         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
58884
58885 2004-12-04  Simon Josefsson  <jas@extundo.com>
58886
58887         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
58888         Vandoorselaere <yoann@prelude-ids.org>.
58889
58890 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58891
58892         Changes imported from coreutils.
58893         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
58894         exist.
58895         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
58896
58897 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58898
58899         Changes imported from coreutils.
58900         * lib/hard-locale.c: Assume <locale.h> exists.
58901         Include "strdup.h".
58902         (GLIBC_VERSION): New macro.
58903         (hard_locale): Assume setlocale exists.
58904         Rewrite to avoid #ifdef.
58905         Use strdup rather than malloc + strcpy.
58906         * lib/human.c: Assume <locale.h> exists.
58907         (human_readable): Assume localeconv exists.
58908
58909 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
58910
58911         * modules/hard-locale (Depends-on): Add strdup.
58912
58913 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58914
58915         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
58916         convert T2, not T.  (Imported from libc.)
58917
58918 2004-11-30  Simon Josefsson  <jas@extundo.com>
58919
58920         * modules/restrict (License): Change to LGPL.
58921
58922 2004-11-30  Simon Josefsson  <jas@extundo.com>
58923
58924         * m4/restrict.m4: Add copyright and copying conditions.
58925
58926 2004-11-30  Simon Josefsson  <jas@extundo.com>
58927
58928         * m4/base64.m4: New file.
58929
58930 2004-11-30  Simon Josefsson  <jas@extundo.com>
58931
58932         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
58933         base64.
58934
58935         * tests/test-base64.c: New file.
58936
58937         * modules/base64: New file.
58938
58939 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
58942         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
58943
58944         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
58945
58946 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
58947
58948         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
58949         (__getcwd.c): Don't restore errno; glibc doesn't.
58950         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
58951         first, falling back to our code only if its results look suspicious.
58952         Ensure that the resulting buffer is only as large as necessary.
58953
58954         * lib/readutmp.c: Include readutmp.h first.
58955         Include <errno.h>, since readutmp.h no longer does that.
58956         * lib/readutmp.h: Don't include <errno.h>,
58957         <sys/param.h>, <time.h>; not needed to establish interface.
58958         (errno): Remove decl.
58959         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
58960         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
58961         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
58962
58963 2004-11-28  Simon Josefsson  <jas@extundo.com>
58964
58965         * lib/base64.h, base64.c: New file.
58966
58967 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
58970
58971 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58972
58973         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
58974         (Depends-on): Remove pathmax, same.  Add mempcpy.
58975         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
58976         (Makefile.am): Append getcwd.h to lib_SOURCES.
58977         (Include): Add getcwd.h.
58978         (Maintainer): Change from Jim Meyering to "all, glibc",
58979         since getdate now uses intended-for-glibc code.
58980         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
58981         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
58982
58983 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58984
58985         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
58986         HP's ANSI C compiler.
58987         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
58988         Declaring int functions causes warnings on some modern systems and
58989         shouldn't be needed to compile on ancient ones.
58990         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
58991         defined.
58992
58993         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
58994         with the following changes.
58995         (__set_errno): Parenthesize properly.
58996         Include <stdbool.h>.
58997         (MIN, MAX, MATCHING_INO): New macros.
58998         (__getcwd): Define with prototype, not K&R form.
58999         Use heuristics to allocate default buffer on stack if possible.
59000         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
59001         behavior, and to avoid the PATH_MAX limit when computing
59002         ../../../../...
59003         Use MATCHING_INO to compare inode number to file.
59004         Check for arithmetic overflow in size calculations.
59005         Fix bug in reallocation of dot array that caused getcwd to fail
59006         on directories nested deeper than 75.
59007         Be more careful about saving errno on error.
59008         Do not use realloc; use only free+malloc, as this is a bit
59009         more flexible and avoids a needless copy operation.
59010         Do not inspect st_dev and st_ino for symbolic links; POSIX
59011         doesn't specify the latter.
59012         Check for closedir errors.
59013         Avoid needless casts.
59014         Use "#ifdef weak_alias" around weak_alias, to be like other
59015         glibc code.
59016         The following changes to getcwd.c have effect only when used in
59017         gnulib; they have no effect inside glibc proper.
59018         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
59019         as alloca isn't used.
59020         (alloca, __alloca): Likewise.
59021         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
59022         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
59023         unconditionally, as gnulib assumes C89 or better.
59024         Do not include <sys/param.h>.
59025         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
59026         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
59027         better.
59028         (NULL) [!defined NULL]: Remove; we assume C89 or better.
59029         Include <dirent.h> in a way that is compatible with modern Autoconf.
59030         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
59031         New macros, if not already defined.
59032         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
59033         Use "_LIBC", not "defined _LIBC", for consistency.
59034         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
59035         a mempcpy module.
59036         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
59037         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
59038         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
59039         credit only to Jim Meyering and adjust the copyright dates.
59040         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
59041         <stdlib.h>, <unistd.h>, "pathmax.h".
59042         Instead, include "xgetcwd.h" (first) and "getcwd.h".
59043         (INITIAL_BUFFER_SIZE): Remove.
59044         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
59045
59046 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
59049         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
59050         Use the _ONCE methods, for efficiency.
59051         Check for fcntl.h.  In test program, include <errno.h>
59052         and <fcntl.h> if available.  Remove old K&R cruft from
59053         test program.  Check for common errors in GNU/Linux,
59054         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
59055         don't do AC_LIBOBJ, as that's getcwd.m4's job.
59056         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
59057         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
59058         name accordingly.
59059         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
59060         accommodate new getcwd.c.
59061         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
59062         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
59063         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
59064         that's all we need now.
59065
59066 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59067
59068         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
59069         argp-parse.c depends on getopt internals, that means we should
59070         always use our getopt, to be on the safe side.
59071         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
59072         order not to spoil the result of an eventual previous invocation
59073         of gl_GETOPT_SUBSTITUTE.
59074
59075 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59076
59077         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
59078         redefinition warnings. To avoid them, include the defines
59079         in `#if !defined __need_getopt ... #endif'. The only place
59080         where __getopt_argv_const is used is in definitions
59081         of getopt_long and getopt_long_only below, which are as well
59082         protected by `#ifndef __need_getopt'.
59083         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
59084         __need_getopt after including <stdio.h> and <unistd.h> These
59085         headers might have defined it.
59086
59087 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
59090
59091 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59092
59093         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
59094         (futimens): New function, which uses futimes if available.
59095         (futimens, utimens): Support timespec==NULL, with same semantics
59096         as utime and utimens.
59097         * lib/utimens.h (futimens): New decl.
59098
59099 2004-11-23  Jim Meyering  <jim@meyering.net>
59100
59101         * lib/getopt_.h: Remove trailing blanks.
59102
59103 2004-11-23  Jim Meyering  <jim@meyering.net>
59104
59105         * lib/__fpending.c: Add comment.
59106
59107 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
59108
59109         * modules/canonicalize (Depends-on): Add xreadlink.
59110         Problem reported by James Youngman.
59111
59112 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59113
59114         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
59115         New macros.
59116         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
59117         optopt): Use them instead of invoking ## directly; otherwise, the
59118         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
59119
59120 2004-11-19  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/strtok_r.c: Move comments from here...
59123         * lib/strtok_r.h: ... to here.
59124
59125 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59126
59127         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
59128         implementations that mishandle size_t overflow.
59129
59130 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59131
59132         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
59133         might fail.  Problem reported by Yoann Vandoorselaere.
59134         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
59135         implementations that mishandle size_t overflow.
59136
59137 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * modules/canon-host (Depends-on): Add strdup.
59140
59141 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59142
59143         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
59144
59145 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59146
59147         * lib/canon-host.c: Include "strdup.h".
59148         (canon_host): Use getaddrinfo if available, so that IPv6 works.
59149         Use strdup instead of malloc/strcpy to duplicate strings.
59150
59151         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
59152         (human_space_before_unit): New constant.
59153         * lib/human.c (human_readable): Support it.
59154
59155         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
59156         (xgetcwd): Set errno correctly when failing.
59157         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
59158         the failure is actually due to a PATH_MAX problem.
59159
59160         Further getopt changes to make it more likely that glibc will
59161         buy the changes back.
59162         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59163         (getopt): Use it, so to preserve glibc semantic
59164         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59165         when compiling for libc.
59166         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59167         (getopt_long, getopt_long_only): Use it.
59168
59169         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59170         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59171         (getopt): Argv is now char * const *, as per standard.
59172         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59173         not char *__getopt_argv_const *.
59174         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59175         _getopt_long_only_r): Likewise.
59176         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59177         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59178         _getopt_long_r, _getopt_long_only_r): Likewise.
59179         * lib/getopt_.h (__getopt_argv_const): Remove.
59180         (getopt): Argv is now char * const *, as per standard.
59181
59182         * lib/getdate.y (tORDINAL): New token.
59183         (day, relunit): Allow it for relative times.
59184         (relative_time_table): Use tORDINAL for ordinals.
59185
59186 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59189         Document that "second" isn't allowed as an ordinal number.
59190
59191 2004-11-16  Jim Meyering  <jim@meyering.net>
59192
59193         * modules/closeout (Depends-on): Add fpending.
59194
59195 2004-11-15  Jim Meyering  <jim@meyering.net>
59196
59197         * lib/closeout.c: Include "__fpending.h" once again.
59198         Include <stdbool.h>.
59199         (close_stdout): Don't fail just because stdout was closed initially,
59200         since some programs don't write to stdout in the normal course of
59201         operation (other than --version and --help), and we don't want this
59202         function to make e.g. `touch file >&-' fail.
59203         But do fail if it was closed and someone has tried to write to it.
59204         E.g., `printf foo >&-' must fail.
59205
59206 2004-11-13  Jim Meyering  <jim@meyering.net>
59207
59208         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59209
59210 2004-11-12  Simon Josefsson  <jas@extundo.com>
59211
59212         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59213         small doc fix is still pending.
59214
59215 2004-11-11  Simon Josefsson  <jas@extundo.com>
59216
59217         * modules/strtok_r: New file.
59218
59219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59220         strtok_r.
59221
59222 2004-11-11  Simon Josefsson  <jas@extundo.com>
59223
59224         * m4/strtok_r.m4: New file.
59225
59226         * m4/getopt.m4: Replace opterr.
59227
59228 2004-11-11  Simon Josefsson  <jas@extundo.com>
59229
59230         * lib/strtok_r.h, strtok_r.c: New file.
59231
59232 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59233
59234         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59235         of replacing opterr, getopt, etc.  This should handle the
59236         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59237
59238 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59239
59240         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59241         we can stop lying to compilers about the constness of argv when we
59242         are compiled outside glibc.
59243         (getopt, getopt_long, getopt_long_only): Use it.
59244         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59245         _getopt_internal, getopt): Likewise.
59246         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59247         _getopt_long_only_r): Likewise.
59248         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59249         _getopt_long_r, _getopt_long_only_r): Likewise.
59250
59251         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59252         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59253         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59254         the other external symbols.
59255         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59256         declaration, since the above renaming now works around collisions.
59257
59258 2004-11-11  Jim Meyering  <jim@meyering.net>
59259
59260         * lib/linebreak.c: Remove trailing blanks.
59261         * lib/alloca_.h: Likewise.
59262         * lib/acosl.c: Likewise.
59263         * lib/euidaccess.c: Likewise.
59264         * lib/allocsa.h: Likewise.
59265
59266 2004-11-10  Simon Josefsson  <jas@extundo.com>
59267
59268         * m4/getaddrinfo.m4: New file.
59269
59270 2004-11-10  Simon Josefsson  <jas@extundo.com>
59271
59272         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59273
59274 2004-11-10  Simon Josefsson  <jas@extundo.com>
59275
59276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59277         getaddrinfo.
59278
59279         * modules/getaddrinfo: New file.
59280
59281 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59284
59285 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59286
59287         * lib/mktime.c (SHR): New macro, which is a portable
59288         substitute for >> that should work even on Crays.
59289         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59290         Problem reported by Mark D. Baushke in
59291         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59292         * lib/getdate.y (SHR): Likewise.
59293         (tm_diff): Use it.
59294         * lib/strftime.c (SHR): Likewise.
59295         (tm_diff): Use it.
59296         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59297         quote_these_too, so that right shifts are well defined.  All uses
59298         changed.
59299
59300 2004-11-10  Jim Meyering  <jim@meyering.net>
59301
59302         Ensure that no close failure goes unreported.
59303         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59304         return early when it seems there's nothing to flush.
59305         Don't include __fpending.h.
59306
59307 2004-11-10  Jim Meyering  <jim@meyering.net>
59308
59309         * modules/closeout (Depends-on): Remove fpending.
59310
59311 2004-11-10  Jim Meyering  <jim@meyering.net>
59312
59313         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59314
59315 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59316
59317         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59318         gl_FUNC_STRFTIME.
59319         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59320         and AC_REQUIRE when possible, to avoid duplicate checks.
59321         Check for <wchar.h>.
59322
59323 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59324
59325         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59326
59327 2004-11-09  Bruno Haible  <bruno@clisp.org>
59328
59329         * m4/sockpfaf.m4: New file.
59330
59331 2004-11-05  Bruno Haible  <bruno@clisp.org>
59332
59333         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59334         Reported by Mark D. Baushke <mdb@cvshome.org>.
59335
59336 2004-11-04  Bruno Haible  <bruno@clisp.org>
59337
59338         2004-09-11  Bruno Haible  <bruno@clisp.org>
59339                 * allocsa.valgrind: New file.
59340         2004-02-06  Bruno Haible  <bruno@clisp.org>
59341                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59342                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59343                 Reported by Christopher Seip <chris.seip@hp.com>.
59344
59345 2004-11-04  Bruno Haible  <bruno@clisp.org>
59346
59347         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59348         (Makefile.am): Distribute it.
59349
59350 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59351
59352         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59353         with errno == ERANGE if the buffer is too small.
59354         Problem reported by Mark D. Baushke.
59355
59356 2004-11-03  Albert Chin  <china@thewrittenword.com>
59357             Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59360         equivalent, substitute $ac_type for equivalent type rather than
59361         blindly using uint32_t *always* which won't work if uint32_t is not
59362         available.  Define _UINT32_T to work around typedef of uint32_t if
59363         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59364         2.5.1.
59365
59366 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59367
59368         * m4/jm-macros.m4: Sync from coreutils.
59369         (gl_MACROS): Check for mbrlen, for pathchk.
59370         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59371
59372 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         * lib/xreadlink.c (MAXSIZE): New macro.
59375         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59376         size does not exceed MAXSIZE.  Avoid cast.
59377         As suggested by Mark D. Baushke in
59378         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59379         if readlink fails with buffer size just under MAXSIZE, try again
59380         with MAXSIZE.
59381
59382 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59383
59384         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59385
59386 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59387         and  Paul Eggert  <eggert@cs.ucla.edu>
59388
59389         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59390         (get_date): Overparenthesize to avoid GCC warning.
59391
59392 2004-11-02  Bruno Haible  <bruno@clisp.org>
59393
59394         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59395         returns void.
59396
59397 2004-11-02  Bruno Haible  <bruno@clisp.org>
59398
59399         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59400         function returns void.
59401
59402 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59403
59404         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59405         fflush_unlocked, flockfile, funlockfile, funlockfile,
59406         fputs_unlocked, putc_unlocked.
59407
59408 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59409
59410         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59411         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59412         already declared.
59413
59414 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59415
59416         * modules/getdate (Files): Add doc/getdate.texi.
59417         (Depends-on): Add setenv, xalloc.
59418
59419 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59420
59421         * lib/getdate.y: Add support for TZ="foo" within a date string.
59422         Fix some bugs near time_t boundaries.  Reject dates with
59423         out-of-range components, e.g., "Sept 31".
59424         Include <stdlib.h>, "setenv.h", "xalloc.h".
59425         (ISDIGIT_LOCALE): Remove; unused.
59426         Note that the TZ and time functions used here are not reentrant.
59427         (mktime_ok, get_tz): New functions.
59428         (TZBUFSIZE): New constant.
59429         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59430         This requires that we sometimes generate our own TZ="XXX..." setting.
59431
59432 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59433
59434         * doc/getdate.texi: New file, from coreutils with modifications for
59435         the new TZ parsing.
59436
59437 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59438
59439         * lib/mktime.c (not_equal_tm): Remove redundant check.
59440
59441 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59442
59443         * modules/regex (lib_SOURCES): Add regex.c.
59444         Reported by James Youngman in
59445         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59446
59447 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59448
59449         * lib/getdate.y: Use Bison 1.875 features, and some minor
59450         code cleanups.  This change does not affect semantics.
59451         Don't include <stdlib.h>; no longer needed.
59452         Don't include unlocked-io.h; only the "#if TEST" code uses
59453         stdio, and performance isn't crucial there.
59454         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59455         Bison 1.875 features as described below.
59456         All uses of "PC." replaced by "pc->".
59457         (YYSTYPE): Add a forward declaration.
59458         (yylex, yyerror): Use full prototypes in forward decls.
59459         Use "%pure-parser" rather than obsolescent "%pure_parser".
59460         Use %parse-param and %lex-param instead of obsolescent
59461         YYPARSE_PARAM and YYLEX_PARAM.
59462         (meridian_table, month_and_day_table, time_units_table,
59463         relative_time_table, time_zone_table, military_table,
59464         lookup_zone, lookup_word, get_date):
59465         Use NULL instead of 0 where appropriate.
59466         (to_hour): Avoid abort (), to avoid a dependency on
59467         stdlib.h.
59468         (yyerror, yylex): Now accepts parser_control * arg.
59469         (main) [TEST]: Use '\0' rather than 0 for char.
59470
59471 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59472
59473         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59474
59475 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59476
59477         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59478         It's now the caller's responsibility to handle the case where
59479         !HAVE_GETPAGESIZE && !defined getpagesize.
59480
59481         * lib/mktime.c (leapyear): Arg is long int, not int.
59482
59483 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59484
59485         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59486
59487 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59488
59489         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59490         missing.  Problem reported by James Youngman.
59491
59492 2004-10-16  Simon Josefsson  <jas@extundo.com>
59493
59494         * gnulib-tool: Fix comments.  Fix parse problem.
59495         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59496
59497 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59498
59499         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59500         implementation of getopt_long.  Problem reported by Alexander Taler in:
59501         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59502
59503 2004-10-15  Bruno Haible  <bruno@clisp.org>
59504
59505         * gnulib-tool: Untabify. Initialize supplied_libname.
59506         (func_usage): More homogenous output.
59507         (func_modules_transitive_closure, func_modules_to_filelist,
59508         func_emit_lib_Makefile_am): New functions.
59509         (func_import): New function, extracted from big case statement. Use
59510         func_get_license, func_modules_transitive_closure,
59511         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59512         opt_lgpl. Don't use test -a, as it's not portable.
59513         (func_create_testdir): Use func_modules_transitive_closure,
59514         func_modules_to_filelist, func_emit_lib_Makefile_am.
59515
59516 2004-10-15  Bruno Haible  <bruno@clisp.org>
59517
59518         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59519
59520 2004-10-15  Bruno Haible  <bruno@clisp.org>
59521
59522         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59523         the portions belonging to each module.
59524         Suggested by Derek Robert Price <derek@ximbiot.com>.
59525
59526 2004-10-12  Simon Josefsson  <jas@extundo.com>
59527
59528         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59529         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59530         to real functions.
59531
59532 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59533
59534         * modules/vsnprintf: New file.
59535
59536 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59537
59538         * m4/vsnprintf.m4: New file.
59539
59540 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59541
59542         * lib/vsnprintf.h: New file.
59543         * lib/vsnprintf.c: New file.
59544
59545 2004-10-11  Bruno Haible  <bruno@clisp.org>
59546
59547         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59548         vsnprintf.
59549
59550 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59551
59552         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59553
59554 2004-10-07  Bruno Haible  <bruno@clisp.org>
59555
59556         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59557         fits into the provided buffer.
59558
59559 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59560
59561         * lib/diacrit.c, diacrit.h: Add GPL notice.
59562
59563         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59564         notice.
59565         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59566         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59567         This avoids a potential constant-folding bug.
59568
59569 2004-10-05  Bruno Haible  <bruno@clisp.org>
59570
59571         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59572         for the declaration of strsep.
59573
59574 2004-10-05  Bruno Haible  <bruno@clisp.org>
59575
59576         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59577
59578 2004-10-04  Simon Josefsson  <jas@extundo.com>
59579
59580         * modules/memmem: New file.
59581         * tests/test-memmem.c: New file.
59582         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59583
59584 2004-10-04  Simon Josefsson  <jas@extundo.com>
59585
59586         * m4/memmem.m4: New file.
59587
59588 2004-10-04  Simon Josefsson  <jas@extundo.com>
59589
59590         * lib/memmem.h: New file.
59591         * lib/memmem.c: New file, taken from glibc.
59592
59593 2004-10-04  Simon Josefsson  <jas@extundo.com>
59594
59595         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59596         '#ifdef USE_UNLOCKED_IO'.
59597
59598 2004-10-04  Simon Josefsson  <jas@extundo.com>
59599
59600         * config/srclist.txt: Add memmem from glibc.
59601
59602 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59603
59604         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59605
59606         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59607         modules/exclude, modules/getdate, modules/getline,
59608         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59609         modules/getusershell, modules/linebuffer, modules/md5,
59610         modules/mountlist, modules/posixtm, modules/readtokens,
59611         modules/readutmp, modules/regex, modules/sha1,
59612         modules/version-etc, modules/yesno:
59613         Remove dependency on unlocked-io.
59614
59615 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59616
59617         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59618
59619         * m4/unlocked-io.m4: Add copyright notice.
59620         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59621
59622 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59623
59624         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59625         * lib/xmalloc.c (xmemdup): Likewise.
59626         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59627         XFREE): Remove these long-obsolescent macros.
59628         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59629         * lib/xstrdup.c: Remove.
59630
59631         * lib/regex.c (re_comp): Cast gettext return value to char *,
59632         Problem reported by Martin Neitzel via Mark D. Baushke.
59633
59634 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59635
59636         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59637         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59638         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59639         regex.c, sha1.c, version-etc.c, yesno.c:
59640         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59641         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59642         the includer's responsibility.
59643
59644         Sync from coreutils.
59645
59646         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59647         points to the start of a string, as the C Standard says the
59648         resulting behavior is undefined.
59649
59650         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59651         simple -> simple_backups, numbered_existing ->
59652         numbered_existing_backups, numbered -> numbered_backups
59653         to avoid shadowing problems.  All uses changed.
59654         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59655         * lib/backupfile.c (check_extension, numbered_backup):
59656         Rename locals to avoid shadowing 'basename'.
59657         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59658         once.
59659
59660         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59661         * lib/.cvsignore: Add getopt.h.
59662
59663 2004-10-04  Bruno Haible  <bruno@clisp.org>
59664
59665         * modules/README: New file.
59666         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59667         not a module.
59668
59669 2004-10-02  Jim Meyering  <jim@meyering.net>
59670
59671         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59672
59673 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59674
59675         * modules/strsep: New file.
59676
59677 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59678
59679         * m4/strsep.m4: New file.
59680
59681 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59682
59683         * lib/strsep.h: New file.
59684         * lib/strsep.c: New file.
59685
59686 2004-10-01  Simon Josefsson  <jas@extundo.com>
59687
59688         * lib/snprintf.c (snprintf): Handle size==0.
59689
59690 2004-10-01  Simon Josefsson  <jas@extundo.com>
59691             Bruno Haible  <bruno@clisp.org>
59692
59693         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59694         (snprintf): Declare 'args'.
59695
59696 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59697
59698         * lib/snprintf.c: Remove comments as to why each header is needed.
59699
59700 2004-10-01  Bruno Haible  <bruno@clisp.org>
59701
59702         * MODULES.html.sh: Add strsep.
59703
59704 2004-09-30  Simon Josefsson  <jas@extundo.com>
59705
59706         * modules/snprintf: New file.
59707
59708 2004-09-30  Simon Josefsson  <jas@extundo.com>
59709
59710         * m4/snprintf.m4: New file.
59711
59712 2004-09-30  Simon Josefsson  <jas@extundo.com>
59713
59714         * lib/snprintf.h, lib/snprintf.c: New files.
59715
59716 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59717
59718         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59719         (hol_entry_help): Never translate an empty string.
59720         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59721         * lib/argp.h (OPTION_NO_TRANS): New option.
59722
59723 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * modules/argp (Maintainer): Replace Simon Josefsson
59726         by Sergey Poznyakoff.
59727
59728 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59731         changes merged back into glibc.
59732
59733 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59734
59735         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59736
59737 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59738
59739         * lib/xvasprintf.c: Include xalloc.h.
59740         (xvasprintf): Use xalloc_die, not xmalloc_die.
59741
59742 2004-09-29  Bruno Haible  <bruno@clisp.org>
59743
59744         * modules/alloca-opt: New file, derived from modules/alloca.
59745         * modules/allocsa: Depend on alloca-opt instead of alloca.
59746         * modules/setenv: Likewise.
59747         * modules/vasnprintf: Likewise.
59748         * MODULES.html.sh: Add alloca-opt.
59749
59750 2004-09-28  Simon Josefsson  <jas@extundo.com>
59751
59752         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59753         LGPL, and to replace license template from GPL to LGPL.
59754
59755 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59756
59757         * modules/dummy: Change license to LGPL.
59758
59759 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59760
59761         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59762
59763 2004-09-24  Simon Josefsson  <jas@extundo.com>
59764
59765         * modules/minmax (License): Change from GPL to LGPL.
59766
59767 2004-09-23  Simon Josefsson  <jas@extundo.com>
59768
59769         * gnulib-tool (--import): Typo.
59770
59771 2004-09-23  Simon Josefsson  <jas@extundo.com>
59772
59773         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59774
59775 2004-09-22  Bruno Haible  <bruno@clisp.org>
59776
59777         * modules/*: Add 'License' field.
59778         * gnulib-tool: Accept --extract-license option.
59779         (func_get_license): New function.
59780
59781 2004-09-21  Bruno Haible  <bruno@clisp.org>
59782
59783         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59784         Reported by Simon Josefsson.
59785
59786 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59787
59788         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59789         gl_AC_TYPE_LONG_LONG.
59790
59791 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59792
59793         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59794
59795 2004-09-18  Simon Josefsson  <jas@extundo.com>
59796         and  Paul Eggert  <eggert@cs.ucla.edu>
59797
59798         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59799         calls with autoreconf.  Define GL_LIB.
59800
59801 2004-09-14  Karl Berry  <karl@gnu.org>
59802
59803         * config/srclist.txt: unsync setenv.c, sigh.
59804
59805 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59808         Problem reported by Bruno Haible in:
59809         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59810
59811 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59812
59813         * config/srclist.txt: Comment out argp-pvh.c.
59814
59815 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59816
59817         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59818         in case some system header has #define'd it.  Problem reported by
59819         Soeren D. Schulze in
59820         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59821
59822 2004-09-09  Karl Berry  <karl@gnu.org>
59823
59824         * regex.[ch]: delete from the root.  These were supposed to be
59825                 synced with emacs cvs, but this has not happened for about
59826                 a year, and anyway nothing else uses emacs regex.[ch].
59827                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59828                 lib/regex[.ch] is untouched.
59829
59830 2004-09-09  Bruno Haible  <bruno@clisp.org>
59831
59832         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
59833
59834 2004-09-09  Bruno Haible  <bruno@clisp.org>
59835
59836         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
59837         modifications.
59838         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
59839
59840 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59841
59842         * modules/xvasprintf: New file.
59843         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
59844
59845 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
59846
59847         * lib/xvasprintf.h: New file.
59848         * lib/xvasprintf.c: New file.
59849         * lib/xasprintf.c: New file.
59850
59851 2004-09-08  Bruno Haible  <bruno@clisp.org>
59852
59853         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
59854
59855 2004-09-08  Bruno Haible  <bruno@clisp.org>
59856
59857         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
59858         length is > INT_MAX.
59859         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
59860         more.
59861
59862 2004-09-08  Bruno Haible  <bruno@clisp.org>
59863
59864         * lib/stdint_.h: New file, taken from GNU clisp.
59865
59866 2004-09-08  Bruno Haible  <bruno@clisp.org>
59867             Oskar Liljeblad  <oskar@osk.mine.nu>
59868
59869         * modules/stdint: New file.
59870         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
59871
59872 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59873
59874         Import from coreutils.
59875         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
59876         strings on unbounded length.  alloca's performance benefits aren't
59877         that important here.
59878         (V_STRDUP): Remove.
59879         (parse_with_separator): New function, with most of the internals
59880         of the old parse_user_spec.  Allow user to omit both user and group,
59881         for compatibility with FreeBSD.
59882         Clone only the user name, not the entire spec.
59883         Do not set *uid, *gid unless entirely successful.
59884         Avoid memory leak in some failing cases.
59885         Fix regression for USER.GROUP reported by Dmitry V. Levin in
59886         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
59887         (parse_user_spec): Rewrite to use parse_with_separator.
59888
59889 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59890
59891         * modules/userspec: Don't depend on alloca.
59892
59893 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59894
59895         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
59896
59897 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59898
59899         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
59900         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
59901         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
59902
59903 2004-08-16  Simon Josefsson  <jas@extundo.com>
59904
59905         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
59906         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
59907         Add --dry-run for --import.
59908         Let user provided command line parameters override configure.ac
59909         settings.
59910
59911 2004-08-12  Simon Josefsson  <jas@extundo.com>
59912
59913         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
59914         as discussed with Paul Eggert in threads rooted at
59915         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
59916         and
59917         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
59918         Before, the test was empty, and relied on ELIDE_CODE in source
59919         code.)
59920         (gl_PREREQ_GETOPT): New macro.
59921         (gl_GETOPT): Use them.
59922
59923 2004-08-12  Simon Josefsson  <jas@extundo.com>
59924
59925         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
59926         * lib/getopt_.h: Renamed from getopt.h.
59927
59928 2004-08-12  Simon Josefsson  <jas@extundo.com>
59929
59930         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
59931         Change default library name from libfoo to libgnu.
59932         Now, if you have a configure.ac that says:
59933                 gl_SOURCE_BASE(gl)
59934                 gl_M4_BASE(gl/m4)
59935                 gl_MODULES(error getopt etcetera)
59936                 gl_INIT
59937         you can import all you need by running:
59938                 ../gnulib/gnulib-tool --import
59939
59940         * modules/getopt (Files): Rename getopt.h to getopt_.h.
59941         (Makefile.am): Rewrite, use logic from argz.
59942         (Include): Use <getopt.h> instead of "getopt.h".
59943
59944 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59945
59946         * modules/argp (Files): Add m4/unlocked-io.m4.
59947         (Depends-on): Add extensions.
59948
59949 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59950
59951         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
59952         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
59953         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
59954         Check for program_invocation_name, program_invocation_short_name,
59955         flockfile, funlockfile, features.h, _getopt_long_only_r.
59956
59957 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59958
59959         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
59960         its complicated substitute.
59961         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
59962         and program_invocation_name.
59963         (__argp_basename) [!_LIBC]: Remove; the only use was
59964         replaced by its body.
59965         (__argp_short_program_name): Change condition from
59966         !defined __argp_short_program_name to
59967         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
59968         to match argp-namefrob.h.
59969         (__argp_failure): Don't assume strerror_r returns char *.
59970         * lib/argp-parse.c (N_): Define unconditionally.
59971         (argp_default_options): Fill out initializers with 0 to avoid
59972         gcc warnings.
59973
59974 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
59975
59976         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
59977         getopt1.c.
59978
59979 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         Merge from coreutils.
59982
59983         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
59984
59985         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
59986         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
59987
59988 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59989
59990         Merge from coreutils.
59991
59992         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
59993         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
59994         for Reliant Unix 5.43.
59995
59996         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
59997         (union fooround): Use uintmax_t, not long int.
59998         The rest is a merge from libc:
59999         [defined _LIBC]: Include <shlib-compat.h>.
60000         (_obstack) [defined _LIBC]: Remove after 2.3.4.
60001
60002         * lib/settime.c (settime): Recode to avoid warning with
60003         Sun Forte C 6U2.
60004
60005         * lib/strverscmp.c: Convert to UTF-8.
60006
60007 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60010         m4/uintmax_t.m4.
60011
60012 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60013
60014         * modules/xalloc-die: New file.
60015         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
60016
60017         * modules/md5 (Files): Add m4/uint32_t.m4.
60018         * modules/sha1: Renamed from modules/sha.
60019         (Files):
60020         Rename lib/sha.h to lib/sha1.h.
60021         Rename lib/sha.c to lib/sha1.c.
60022         Rename m4/sha.m4 to m4/sha1.m4.
60023         (lib_SOURCES): Likewise.
60024         (configure.ac): Rename gl_SHA to gl_SHA1.
60025         (Include): sha.h -> sha1.h.
60026
60027 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60028
60029         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
60030         * m4/sha1.m4: Renamed from sha.m4.
60031         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
60032
60033 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         * lib/obstack.h (obstack_empty_p):
60036         Don't assume that chunk->contents is suitably aligned.
60037         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
60038         Likewise. Problem reported by Benno in
60039         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
60040
60041         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
60042         readable.  This could be improved further but it'd take some work.
60043
60044 2004-08-08  Simon Josefsson  <jas@extundo.com>
60045
60046         * modules/xgethostname (Depends-on): Remove exit and error (not
60047         used).
60048
60049         * modules/getpass-gnu: Add getpass.h.
60050         (Depends-on): Add stdbool.
60051         * modules/getpass: Add getpass.h.
60052
60053 2004-08-08  Simon Josefsson  <jas@extundo.com>
60054
60055         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
60056         Check getpass declaration.
60057
60058 2004-08-08  Simon Josefsson  <jas@extundo.com>
60059
60060         * lib/xgethostname.c: Don't include error.h (not used).
60061
60062         * lib/getpass.h: Add.
60063         * lib/getpass.c: Include getpass.h first.
60064
60065 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
60066
60067         * lib/xalloc-die.c: New file.
60068         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
60069         All uses removed.
60070         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
60071         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
60072         xalloc-die.c.
60073         (_, N_, xalloc_die): Move to xalloc-die.c.
60074         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
60075         so that we needn't mess with xalloc_msg_memory_exhausted.
60076
60077         * lib/sha1.h: Renamed from sha.h.
60078         (SHA1_H): Renamed from _SHA_H.
60079         (sha1_ctx): Renamed from sha_ctx.
60080         (sha1_init_ctx): Renamed from sha_init_ctx.
60081         (sha1_process_block): Renamed from sha_process_block.
60082         (sha1_process_bytes): Renamed from sha_process_bytes.
60083         (sha1_finish_ctx): Renamed from sha_finish_ctx.
60084         (sha1_read_ctx): Renamed from sha_read_ctx.
60085         (sha1_stream): Renamed from sha_stream.
60086         (sha1_buffer): Renamed from sha_buffer.
60087         * lib/sha1.c: Likewise; renamed from sha.c.
60088         Do not include <sys/types.h>.
60089         Include <stddef.h> rather than <stdlib.h>.
60090
60091 2004-08-08  Bruno Haible  <bruno@clisp.org>
60092
60093         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
60094         FILESYSTEM_PREFIX_LEN.
60095         * lib/progreloc.c: Likewise.
60096         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
60097
60098 2004-08-06  Simon Josefsson  <jas@extundo.com>
60099
60100         * modules/progname (Depends-on): Don't depend on stdbool.
60101
60102 2004-08-06  Simon Josefsson  <jas@extundo.com>
60103
60104         * modules/getsubopt: New file.
60105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60106         getsubopt.
60107
60108 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60109
60110         More merge from coreutils.
60111
60112         * m4/utimens.m4, m4/utimecmp.m4: New files.
60113         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
60114         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
60115         prereq.m4, sha.m4: Import changes from coreutils.
60116
60117 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         More merge from coreutils.
60120         * modules/raise, modules/readtokens0, modules/utimens:
60121         * modules/utimecmp, module/xnanosleep: New files.
60122         * modules/strftime: Add lib/strftime.h.
60123         Change include from <time.h> to "strftime.h".
60124         * modules/yesno: Add lib/yesno.h.
60125         * modules/backupfile: Remove lib/addext.c.
60126         * modules/euidaccess: Add stat-macros.h.
60127         * modules/canonicalize, modules/euidaccess,
60128         modules/filemode, modules/lchown, modules/makepath,
60129         modules/rmdir, modules/stat: Likewise.
60130
60131 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60132
60133         Merge from tar.
60134         * lib/argp-help.c (make_hol, hol_append): Don't assume that
60135         SIZE_MAX is a valid preprocessor constant.
60136         (__argp_basename): Change from "#ifndef _LIBC"
60137         to "#ifndef __argp_short_program_name", so that
60138         we don't compile these functions for tar.
60139
60140         More merges from coreutils.
60141         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
60142         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
60143         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
60144         * lib/addext.c: Remove; no longer needed.
60145         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
60146         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
60147         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
60148         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
60149         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
60150         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
60151         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
60152         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
60153         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
60154         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60155         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
60156         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
60157         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
60158         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60159         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60160         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60161         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60162         Import changes from coreutils.
60163
60164 2004-08-05  Simon Josefsson  <jas@extundo.com>
60165
60166         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60167
60168 2004-08-05  Simon Josefsson  <jas@extundo.com>
60169
60170         * m4/getsubopt.m4: New file.
60171
60172 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60173
60174         Merge from coreutils.
60175
60176         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60177         * m4/getcwd-path-max.m4: New files.
60178
60179         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60180         FILESYSTEM_PREFIX_LEN ->
60181         FILE_SYSTEM_PREFIX_LEN.
60182         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60183         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60184         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60185         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60186
60187         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60188         prerequisite modules now handle the DOS stuff.
60189         Don't check for unistd.h.
60190
60191 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60192
60193         Merge from coreutils.
60194
60195         * lib/.gdb-history: Remove; this doesn't belong here.
60196
60197         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60198         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60199         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60200         * lib/getcwd.c: New files.
60201
60202         * lib/dirname.h: Include <stdbool.h>.
60203         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60204         for consistency with POSIX terminology.  All uses changed.
60205         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60206         (strip_trailing_slashes): Use bool for booleans.
60207         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60208
60209         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60210         sometimes returns a positive errno value even when it succeeds.
60211         (print_errno_message) [!LIBC]: Fall back on strerror if
60212         __strerror_r fails.
60213
60214         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60215         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60216         (longest_relative_suffix): New function.
60217         (path_concat): Use it.  Assume first argument is not NULL.
60218         Port to DOS.  Omit redundant separators.
60219         Report an error instead of returning NULL.
60220         Use mempcpy instead of memcpy.
60221         (xpath_concat): Remove: not declared or used.
60222
60223         * lib/same.h: Include <stdbool.h>
60224         (same_name): Return bool, not int.
60225         * lib/same.c (same_name): Likewise.
60226         (errno): Don't declare; we assume C89 or better now.
60227
60228         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60229         if not already defined.
60230
60231         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60232         * lib/dup-safer.c (errno): Likewise.
60233
60234 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60235
60236         Merge from coreutils.
60237         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60238         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60239         * modules/path-concat: Don't depend on strdup.
60240
60241 2004-08-03  Simon Josefsson  <jas@extundo.com>
60242
60243         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60244         * lib/progname.h: Don't include stdbool.h.
60245
60246 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60247
60248         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60249         * MODULES.html.sh (func_all_modules): Remove fatal.
60250
60251 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60254
60255 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60256
60257         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60258         working.
60259
60260 2004-08-02  Simon Josefsson  <jas@extundo.com>
60261
60262         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60263         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60264         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60265
60266 2004-08-01  Simon Josefsson  <jas@extundo.com>
60267
60268         * lib/xgetdomainname.c: Include stdlib.h, for free().
60269
60270 2004-07-19  Bruno Haible  <bruno@clisp.org>
60271
60272         * MODULES.html.sh (func_all_modules): Add dummy.
60273
60274 2004-07-16  Simon Josefsson  <jas@extundo.com>
60275
60276         * modules/dummy: New file.
60277
60278 2004-07-16  Simon Josefsson  <jas@extundo.com>
60279
60280         * lib/dummy.c: New file.
60281
60282 2004-07-16  Bruno Haible  <bruno@clisp.org>
60283
60284         * lib/backupfile.h: Add extern "C" for C++.
60285         * lib/closeout.h: Likewise.
60286         * lib/copy-file.h: Likewise.
60287         * lib/findprog.h: Likewise.
60288         * lib/full-write.h: Likewise.
60289         * lib/pathname.h: Likewise.
60290         * lib/progname.h: Likewise.
60291         * lib/stpcpy.h: Likewise.
60292         * lib/stpncpy.h: Likewise.
60293         * lib/strcase.h: Likewise.
60294         * lib/strstr.h: Likewise.
60295         * lib/xalloc.h: Likewise.
60296
60297         * lib/mbswidth.h: Add extern "C" for C++.
60298         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60299
60300 2004-07-13  Robert Millan  <robertmh@gnu.org>
60301
60302         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60303
60304 2004-07-09  Simon Josefsson  <jas@extundo.com>
60305
60306         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60307         failed without this.)
60308
60309 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60310
60311         * modules/chown (Files): Add lib/fchown-stub.c, since
60312         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60313
60314 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60315
60316         * lib/fchown-stub.c: New file.
60317
60318 2004-06-24  Jim Meyering  <jim@meyering.net>
60319
60320         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60321
60322 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60323
60324         * modules/argz: Omit "#include".
60325
60326         * MODULES.html.sh (func_all_modules): Add calloc, to match
60327         2004-06-01 addition of calloc module.
60328
60329 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         * m4/argz.m4: New file, which is autoupdated from libtool.
60332
60333 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60334
60335         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60336         libtool.
60337
60338 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60339
60340         * config/srclist-update: Don't insist on "USA." before the
60341         close-comment, as libtool omits the period and puts the */ on a
60342         separate line.
60343         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60344         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60345
60346 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60347
60348         * modules/argz: New file.
60349         * MODULES.html.sh (func_all_modules): Add argz.
60350
60351 2004-06-12  Jim Meyering  <jim@meyering.net>
60352         and  Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         * modules/hash (Files): Add lib/xalloc.h.
60355         * modules/pipe (Depends-on): Add wait-process.
60356         * modules/stat (Depends-on): Add xalloc.
60357         * modules/userspec (Files): Add lib/userspec.h.
60358         * modules/xstrto
60359
60360         Upgrade from gettext-0.13.
60361         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60362         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60363         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60364
60365 2004-06-10  Jim Meyering  <jim@meyering.net>
60366
60367         * lib/calloc.c: New file.
60368
60369 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60370
60371         * lib/getdate.y (yylex): Allow space between sign and number.
60372         Problem reported by Dan Jacobson.
60373
60374 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60375
60376         Merge from coreutils CVS.
60377
60378         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60379         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60380         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60381         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60382         xstrtol.m4: Fix copyright date and/or serial number.
60383
60384         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60385         See if we need an fchown replacement.
60386         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60387         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60388         and use the replacement function if we detect either defect.
60389
60390         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60391         gl_UTIMECMP.
60392
60393 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60394         and  Jim Meyering  <jim@meyering.net>
60395
60396         Merge from coreutils CVS.
60397
60398         * lib/stat-macros.h: New file, with contents from file-type.h
60399         and coreutils' system.h.
60400         * lib/file-type.c: Include "stat-macros.h".
60401         * lib/file-type.h (file_type): Move all macro definitions to new file,
60402         stat-macros.h.
60403
60404         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60405         Wrap old code with this conditional.
60406         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60407         function that does not dereference symlinks.
60408         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60409
60410         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60411         dependency problems.
60412         (xreadlink): Accept new arg SIZE, for efficiency.
60413         All decls and uses changed.
60414         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60415
60416         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60417         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60418
60419         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60420         sysexits.h.
60421
60422 2004-06-01  Jim Meyering  <jim@meyering.net>
60423
60424         * m4/calloc.m4: New file.
60425
60426 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60429         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60430         Also, fix a typo in a diagnostic.
60431
60432 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60433
60434         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60435         or AC_FUNC_REALLOC.
60436
60437 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60438
60439         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60440         macros to be defined.
60441         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60442         the allocator returns NULL because the requested size is zero.
60443
60444 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60445
60446         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60447         var.  Add comment explaining why libc still defines it.  This
60448         merges the following patch from glibc:
60449         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60450
60451 2004-05-20  Andreas Schwab  <schwab@suse.de>
60452
60453         * m4/free.m4: Replace free if it not known to work, not the other
60454         way round.
60455
60456 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60457
60458         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60459         present in glibc since revision 1.1 of this file.
60460         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60461         obstack_alignment_mask, obstack_alloc, obstack_base,
60462         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60463         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60464         obstack_grow0, obstack_init, obstack_int_grow,
60465         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60466         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60467         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60468         nonexistent functions.
60469
60470 2004-05-18  Karl Berry  <karl@gnu.org>
60471
60472         * config/srclist.txt: break link for vasnprintf.c.
60473
60474 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60475
60476         Port obstack to the AS/400, where pointers are 16 bytes wide and
60477         you cannot cast an integer to a valid pointer.  This patch is
60478         currently waiting to be integrated into glibc; see
60479         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60480
60481         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60482         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60483         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60484         (struct obstack): temp member is now a union of a pointer and
60485         an integer, instead of an integer.  All integer uses changed.
60486         This does not affect the physical layout of struct obstack,
60487         except on hosts (like the AS/400) where the size or alignment of
60488         void * is greater than that of ptrdiff_t.
60489         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60490         __STDC__)]: Store temporary in pointer member of union, not
60491         integer member.
60492         * lib/obstack.c: Include <stddef.h>, for offsetof.
60493         (struct fooalign): Remove; it doesn't need a name.
60494         (union fooround): Change double to long double, and add void *.
60495         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60496         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60497         not a macro.  Hence the values are always int; so remove all
60498         casts-to-int in uses.
60499
60500 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60503         we can get this patch merged into glibc.
60504
60505 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60506             Paul Eggert  <eggert@cs.ucla.edu>
60507
60508         * m4/argp: Depend on alloca.
60509
60510 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60511             Paul Eggert  <eggert@cs.ucla.edu>
60512
60513         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60514         freecoding.
60515
60516 2004-05-17  Bruno Haible  <bruno@clisp.org>
60517
60518         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60519         precision that consists of a '.' followed by an empty digit string.
60520         Patch by Tor Lillqvist <tml@iki.fi>.
60521
60522 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60523
60524         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60525         for backward compatibility with older code.  We need our own
60526         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60527         it under some other name, and our alloca.h will define it.
60528
60529 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60530             Derek Price  <derek@ximbiot.com>
60531
60532         * lib/alloca.c: Include <alloca.h>, to get our interface.
60533         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60534         include <alloca.h> first.  Use C89 prototype for alloca; this
60535         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60536         Use #elif for simplicity, since we can assume C89 now.
60537         Don't try to source the system alloca.h since it will not be found
60538         and to prevent recursively including its replacement.
60539         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60540         * lib/regex.c: Likewise.
60541
60542 2004-05-16  Derek Price  <derek@ximbiot.com>
60543             Paul Eggert  <eggert@cs.ucla.edu>
60544
60545         getline cleanup.  This changes the getndelim2 API: both order of
60546         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60547         no delimiter).
60548
60549         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60550         interface does that.
60551         (getline): Always use getdelim, so that we don't have two
60552         copies of this code.
60553         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60554         if available.
60555         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60556         (GETNDELIM2_MAXIMUM): New macro.
60557         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60558         instead of the old practice of delim2==0.  All callers changed.
60559         Return -1 on overflow, instead of returning junk.
60560         Do not set *linesize unless allocation succeeds.
60561         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60562         that we include sys/types.h.
60563         * lib/getnline.h: Likewise.
60564         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60565         (getndelim2): Reorder arguments.
60566         * lib/getnline.c (getnline, getndelim):
60567         Don't discard the NMAX argument.
60568         (getnline): Invoke getndelim, to avoid code duplication.
60569         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60570         of (size_t) -1 by callers of the getnline family.
60571
60572 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60575         Check for gettimeofday.
60576         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60577         Check for settimeofday, stime.
60578
60579 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60580
60581         * lib/nanosleep.c (suspended): Change its type from int to
60582         sig_atomic_t volatile.
60583         (first_call): Make it private to rpl_nanosleep, and have it
60584         be zero initially as that's a bit faster.
60585         (my_usleep): Round up fractional times instead of truncating them,
60586         as this is the usual meaning for 'sleep'.
60587
60588         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60589         doesn't work.
60590         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60591         (ENOSYS): Define if not defined.
60592         (settime): Fall back on stime if it exists and settimeofday fails.
60593         But don't bother with fallbacks if a method fails with errno == EPERM.
60594
60595 2004-05-11  Jim Meyering  <jim@meyering.net>
60596
60597         Prior to this change, the save_cwd caller required read access to the
60598         current directory on most systems (ones with the fchdir function).
60599
60600         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60601         fails, try write-only, and finally, resort to using xgetcwd.
60602
60603 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60604
60605         * lib/obstack.c, obstack.h: Import changes from libc.
60606
60607 2004-04-28  Bruno Haible  <bruno@clisp.org>
60608
60609         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60610         also implicitly appends .exe to executables.
60611         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60612         accepts Windows pathnames.
60613         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60614         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60615         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60616         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60617         Reported by Derek Robert Price <derek@ximbiot.com>.
60618
60619 2004-04-21  Karl Berry  <karl@gnu.org>
60620
60621         * config/srclist.txt (localcharset.c): break sync.
60622
60623 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60624
60625         * m4/host-os.m4: Add a copyright notice.
60626
60627 2004-04-20  Jim Meyering  <jim@meyering.net>
60628
60629         Change UTILS_ to gl_ in AC_DEFINE'd names.
60630         Change utils_- and jm_-prefixed variables, too.
60631         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60632         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60633         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60634
60635         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60636         Don't emit trailing blanks.
60637         Also rename jm_-prefixed variables to have gl_ prefix.
60638
60639         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60640         Also rename jm_-prefixed variables to have gl_ prefix.
60641
60642         * m4/jm-macros.m4: Reflect the renamings.
60643         * m4/prereq.m4: Likewise.
60644
60645 2004-04-20  Jim Meyering  <jim@meyering.net>
60646
60647         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60648         memory.
60649
60650 2004-04-20  Jim Meyering  <jim@meyering.net>
60651             Bruno Haible  <bruno@clisp.org>
60652
60653         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60654         memory when realloc fails.
60655
60656 2004-04-19  Jim Meyering  <jim@meyering.net>
60657
60658         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60659         now that readutmp.c may call `free (0)'.
60660
60661 2004-04-19  Bruno Haible  <bruno@clisp.org>
60662
60663         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60664         * m4/inttypes_h.m4: Likewise.
60665         * m4/stdint_h.m4: Likewise.
60666         * m4/intmax_t.m4: Likewise.
60667         * m4/uintmax_t.m4: Likewise.
60668
60669 2004-04-18  Jim Meyering  <jim@meyering.net>
60670
60671         * m4/prereq.m4: Don't forbid jm_ prefix.
60672
60673         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60674         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60675         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60676         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60677         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60678         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60679         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60680         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60681         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60682         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60683         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60684         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60685         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60686         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60687         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60688         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60689         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60690         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60691         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60692
60693 2004-04-18  Jim Meyering  <jim@meyering.net>
60694
60695         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60696         failure, don't leak memory and do call END_UTMP_ENT.
60697
60698 2004-04-16  Jim Meyering  <jim@meyering.net>
60699
60700         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60701         coreutils' stat program.
60702         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60703
60704 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60705
60706         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60707         C89.
60708         (CHAR_BIT): Remove, since we assume C89.
60709         Include <stdint.h> if available, as per current Autoconf CVS advice.
60710
60711 2004-03-31  Jim Meyering  <jim@meyering.net>
60712
60713         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60714         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60715         * m4/xalloc.m4: Likewise.
60716
60717 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60718
60719         Merge from coreutils.
60720
60721         * m4/inttostr.m4: New file.
60722         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60723         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60724         Require gl_CLOCK_TIME.
60725         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60726
60727 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60728
60729         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60730         not bool, to be more consistent with Unix conventions.
60731         Suggested by Bruno Haible.
60732
60733         Merge from coreutils.
60734
60735         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60736         * lib/umaxtostr.c: New files.
60737
60738         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60739         the usual <time.h> dance.
60740         (get_date): Change signature to support fractional time stamps.
60741         All callers changed.
60742         * lib/getdate.y: Include "getdate.h" first, as we can now
60743         assume C89 and don't need to worry about 'const'.
60744         Similarly, include "unlocked-io.h" near start, not in middle.
60745         Include <limits.h>.
60746         (textint.value): Use long int rather than int.
60747         (textint.digits): Use size_t rather than int.
60748         (BILLION, LOG10_BILLION): New constants.
60749         (parser_control): New member rel_ns.  Members day_ordinal,
60750         time_zone, month, day, hour, minutes, rel_year, rel_month,
60751         rel_day, rel_hour, rel_minutes, rel_seconds
60752         are now long int, not int.  Member seconds is now struct timespec,
60753         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60754         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60755         not int.
60756         (%union.intval): Now long int, not int.
60757         New member timespec.
60758         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60759         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60760         (spec): Now is a timespec or an item list.
60761         (timespec, items): New nonterminals.
60762         (time, rel, relunit, number, get_date):
60763         Add support for fractional seconds.
60764         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60765         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60766         (to_hour): First arg is now long int, not int.
60767         (to_year): Returns long int, not int.
60768         Don't treat year -70 like 70.
60769         (tm_diff): Returns long int, not int.
60770         (lookup_word): Use bool instead of int when appropriate.
60771         (yylex): Use size_t for count, not int.
60772         Detect overflow when parsing large integer constants.
60773         Add support for fractions.
60774         (get_date): Make pointers 'const' if possible.
60775         Use more-portable code to detect integer overflow.
60776         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60777         Don't use ctime; it's not reliable if the year has >4 digits.
60778
60779         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60780         This is for compatibility with BSD.
60781
60782         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60783         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60784         From coreutils' system.h.
60785
60786         * lib/userspec.c: Don't include "posixver.h".
60787         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60788         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60789         compatible extension.  Simplify code by removing a boolean int
60790         that was always nonzero if a string was nonnull.
60791
60792 2004-03-30  Jim Meyering  <jim@meyering.net>
60793
60794         Merge from coreutils.
60795
60796         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60797         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60798         on some systems one must include <grp.h> before it.
60799         Reported by Christian Krackowizer.
60800
60801 2004-03-30  Jim Meyering  <jim@meyering.net>
60802
60803         Merge from coreutils.
60804
60805         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60806
60807         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60808         an empty input stream.
60809
60810         * lib/readtokens.c: Include <stdbool.h>.
60811         (readtoken): Use `size_t' rather than int/long.
60812         All callers adjusted.
60813         Use `bool' rather than `int' where appropriate.
60814         Use memset rather than an explicit loop.
60815         Use x2nrealloc rather than xrealloc.
60816         Allow the use of `\0' as a delimiter.
60817         (readtokens): Likewise.
60818         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60819
60820 2004-03-30  Jim Meyering  <jim@meyering.net>
60821
60822         * m4/realloc.m4: Remove file, since now it does no more than
60823         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60824         the `configure.ac' section of module/realloc.
60825         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60826
60827 2004-03-30  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
60830         nonnull.
60831
60832 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60833
60834         Merge changes to getloadavg.c from coreutils and Emacs.
60835
60836         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
60837         Define to an expression, not to the empty string.
60838         Include cloexec.h and xalloc.h.
60839         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
60840         Use set_cloexec_flag rather than rolling our own.
60841         * lib/cloexec.c, lib/cloexec.h: New files.
60842
60843 2004-03-29  Paul Eggert  <eggert@twinsun.com>
60844
60845         * m4/cloexec.m4: New file.
60846
60847 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60848
60849         * lib/getopt.h: Sync with libc CVS.
60850
60851 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60852             Bruno Haible  <bruno@clisp.org>
60853
60854         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
60855         mbswidth.
60856
60857 2004-03-18  Paul Eggert  <eggert@twinsun.com>
60858             Bruno Haible  <bruno@clisp.org>
60859
60860         * lib/mbswidth.h: Include <wchar.h> only if
60861         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
60862         <wchar.h>.
60863         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
60864
60865 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60866
60867         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
60868         Sync with libc CVS.
60869         * lib/getopt_int.h: New file, also synced from libc.
60870
60871 2004-03-09  Paul Eggert  <eggert@twinsun.com>
60872
60873         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
60874         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
60875         Bring back getopt.c, getopt.h, getopt1.c.
60876
60877 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60878
60879         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
60880         All uses changed.  Check for sa_sigaction member; this fixes
60881         a bug first reported by Jason Andrade in
60882         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60883
60884 2004-03-07  Paul Eggert  <eggert@twinsun.com>
60885
60886         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
60887         '#if' expressions.  Unlike the code it replaces, it does not
60888         depend on (defined _SC_PAGESIZE).  However, it does depend on
60889         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
60890         first reported by Jason Andrade in
60891         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
60892
60893 2004-02-25  Simon Josefsson  <jas@extundo.com>
60894
60895         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
60896
60897 2004-02-25  Simon Josefsson  <jas@extundo.com>
60898
60899         * lib/strdup.h: New file.
60900         * lib/strdup.c: Include it.
60901         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
60902         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
60903
60904 2004-02-23  Karl Berry  <karl@gnu.org>
60905
60906         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
60907         (from fencepost.gnu.org:/gd/gnuorg).
60908
60909 2004-02-23  Karl Berry  <karl@gnu.org>
60910
60911         * config/srclistvars.sh (GNUORG) [karl]: redefine.
60912         * config/srclist.txt: add maintain/standards documents.
60913
60914 2004-02-18  Bruno Haible  <bruno@clisp.org>
60915
60916         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
60917         Reported by Derek Robert Price <derek@ximbiot.com>.
60918
60919 2004-02-16  Karl Berry  <karl@gnu.org>
60920
60921         * config/mkinstalldirs, install-sh: update from automake.
60922
60923 2004-02-06  Karl Berry  <karl@gnu.org>
60924
60925         * m4/po.m4: update from gettext 0.14.1.
60926
60927 2004-02-06  Karl Berry  <karl@gnu.org>
60928
60929         * lib/config.charset: update from gettext 0.14.1.
60930
60931 2004-02-05  Paul Eggert  <eggert@twinsun.com>
60932
60933         Add comments and code, prompted by suggestions from Bruno Haible
60934         for sh-quote.
60935         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
60936         describing the enum quoting_style values.
60937         * lib/quotearg.c (quotearg_alloc): New function.
60938         (quotearg_buffer_restyled): Treat lone { and } as special.
60939         Treat = as special.  Work around bug with older shells
60940         that "see" a '\' that is really the 2nd byte of a multibyte char.
60941         Quote empty string with shell_quoting_style.
60942
60943 2004-02-03  Bruno Haible  <bruno@clisp.org>
60944
60945         * m4/pipe.m4: New file, from GNU gettext.
60946
60947 2004-02-03  Bruno Haible  <bruno@clisp.org>
60948
60949         * lib/pipe.h: New file, from GNU gettext.
60950         * lib/pipe.c: New file, from GNU gettext.
60951
60952 2004-01-27  Bruno Haible  <bruno@clisp.org>
60953
60954         * m4/execute.m4: New file, from GNU gettext.
60955
60956 2004-01-27  Bruno Haible  <bruno@clisp.org>
60957
60958         * lib/execute.h: New file, from GNU gettext.
60959         * lib/execute.c: New file, from GNU gettext.
60960         * lib/w32spawn.h: New file, from GNU gettext.
60961
60962 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60963
60964         Merge from diffutils.
60965
60966         * lib/file-type.c (file_type): Add typed memory objects.
60967         * lib/file-type.h (S_TYPEISTMO): New macro.
60968
60969         * lib/c-stack.h (c_stack_action): Remove argv argument.
60970         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
60971         (die): Don't calculate message unless segv_action returns.
60972         (get_stack_location, min_address_from_argv, max_address_from_argv,
60973         volatile stack_base, volatile_stack_size): Remove.
60974         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
60975         that every segmentation violation is a stack overflow.  (Ouch!)
60976         See Debian bug 136249 (still outstanding) for more info about why
60977         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
60978
60979 2004-01-24  Paul Eggert  <eggert@twinsun.com>
60980
60981         Exit-status fix from coreutils.
60982
60983         Use exit_failure consistently in place of EXIT_FAILURE,
60984         so that program exit statuses are consistent on failure.
60985
60986         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
60987         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
60988         * lib/argmatch.h: Comment fix to match the above.
60989         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
60990         Now a macro referring to exit_failure, instead of a separate
60991         variable.  Include "exitfail.h" to get it.
60992         * lib/xstrtol.h: Include "exitfail.h".
60993         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
60994
60995         * lib/long-options.c (parse_long_options): Use prototype
60996         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
60997         for clarity.
60998
60999 2004-01-21  Jim Meyering  <jim@meyering.net>
61000
61001         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
61002         so as not to conflict with a different-sized __mktime_internal
61003         function in GNU libc.
61004         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
61005         Problem building statically-linked `ls' reported by Michael Brunnbauer.
61006
61007 2004-01-20  Karl Berry  <karl@gnu.org>
61008
61009         * config/config.guess: update from config.
61010
61011         * config/srclistvars.sh: GNUWWWLICENSES for karl.
61012
61013 2004-01-20  Bruno Haible  <bruno@clisp.org>
61014
61015         Safer stack allocation.
61016         * lib/setenv.c: Include allocsa.h.
61017         (alloca): Remove fallback definition.
61018         (freea): Remove macro.
61019         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
61020         instead of freea.
61021
61022 2004-01-20  Bruno Haible  <bruno@clisp.org>
61023
61024         * m4/eealloc.m4: New file, from GNU gettext.
61025
61026 2004-01-20  Bruno Haible  <bruno@clisp.org>
61027
61028         * m4/allocsa.m4: New file, from GNU gettext.
61029
61030 2004-01-20  Bruno Haible  <bruno@clisp.org>
61031
61032         * lib/xallocsa.h: New file, from GNU gettext.
61033         * lib/xallocsa.c: New file, from GNU gettext.
61034
61035 2004-01-20  Bruno Haible  <bruno@clisp.org>
61036
61037         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
61038
61039 2004-01-20  Bruno Haible  <bruno@clisp.org>
61040
61041         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
61042         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
61043         specially.
61044
61045 2004-01-20  Bruno Haible  <bruno@clisp.org>
61046
61047         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
61048         patch.
61049
61050 2004-01-20  Bruno Haible  <bruno@clisp.org>
61051
61052         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
61053
61054 2004-01-20  Bruno Haible  <bruno@clisp.org>
61055
61056         * lib/eealloc.h: New file.
61057
61058 2004-01-20  Bruno Haible  <bruno@clisp.org>
61059
61060         * lib/binary-io.h: Avoid warnings on Cygwin.
61061
61062 2004-01-20  Bruno Haible  <bruno@clisp.org>
61063
61064         * lib/allocsa.h: New file, from GNU gettext.
61065         * lib/allocsa.c: New file, from GNU gettext.
61066
61067 2004-01-18  Karl Berry  <karl@gnu.org>
61068
61069         * doc/gpl.texi, doc/lgpl.texi: new files.
61070
61071 2004-01-18  Karl Berry  <karl@gnu.org>
61072
61073         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
61074         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
61075
61076 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61077
61078         Merge from coreutils.
61079
61080         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
61081         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
61082         (gl_DEFAULT_POSIX2_VERSION): Move
61083         the documentation from 'configure' into 'config.hin',
61084         so that 'configure --help' isn't burdened by it and
61085         we don't have to worry about its formatting there.
61086         Reword the documentation so that it's more succinct
61087         and can be run together into a single paragraph.
61088         * m4/same.m4 (gl_SAME): Check for pathconf.
61089
61090 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61091
61092         Merge from coreutils.
61093
61094         * lib/posixver.c: Include posixver.h.
61095
61096         * lib/same.c: Include <stdbool.h>, <limits.h>.
61097         (_POSIX_NAME_MAX): Define if not defined.
61098         (MIN): New macro.
61099         (same_name): If file names are silently truncated, report
61100         that the file names are the same if they are the same after
61101         the silent truncation.
61102
61103         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
61104         conversion function.
61105         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
61106         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
61107         longer needed.
61108
61109 2004-01-15  Jim Meyering  <jim@meyering.net>
61110
61111         Merge from coreutils.
61112
61113         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
61114         if no library is required.
61115         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
61116         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
61117         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
61118         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
61119         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
61120         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
61121         value, $ac_cv_search_crypt, if it's "none required".
61122         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
61123         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
61124         not gl_FUNC_GETLOADAVG.
61125         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
61126         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
61127
61128 2004-01-15  Jim Meyering  <jim@meyering.net>
61129
61130         Merge from coreutils.
61131
61132         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
61133         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
61134         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
61135
61136         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
61137         optional configure-time default.
61138
61139         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61140
61141         * lib/xreadlink.c (xreadlink): Correct outdated comment.
61142
61143 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
61144
61145         Merge from coreutils.
61146
61147         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
61148         value, $ac_cv_search_nanosleep, if it's "none required".
61149
61150 2004-01-14  Paul Eggert  <eggert@twinsun.com>
61151
61152         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
61153         with like-named macro in fnmatch.c.
61154         (EXT): Use an internal constant instead.
61155
61156         Merge fnmatch patches from glibc.
61157         * lib/fnmatch.c (mbsinit): Remove define.
61158         Add libc_hidden_ver (__fnmatch, fnmatch).
61159         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61160         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61161
61162 2004-01-14  Karl Berry  <karl@gnu.org>
61163
61164         * config/install-sh: update from automake.
61165
61166 2004-01-13  Karl Berry  <karl@gnu.org>
61167
61168         * config/install-sh: update from automake.
61169
61170 2004-01-09  Karl Berry  <karl@gnu.org>
61171
61172         * config/install-sh: update from automake.
61173
61174 2004-01-05  Karl Berry  <karl@gnu.org>
61175
61176         * config/config.{sub,guess}: update from config.
61177
61178 2003-12-31  Karl Berry  <karl@gnu.org>
61179
61180         * config/depcomp: update from automake.
61181
61182 2003-12-14  Karl Berry  <karl@gnu.org>
61183
61184         * lib/config.charset: update from gettext-runtime.
61185
61186 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61187
61188         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61189         Bug reported by Alfred M. Szmidt.
61190
61191 2003-12-03  Bruno Haible  <bruno@clisp.org>
61192
61193         * m4/gettext.m4: Upgrade from gettext-0.13.
61194         * m4/po.m4: Upgrade from gettext-0.13.
61195         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61196         * m4/intmax.m4: New file, from gettext-0.13.
61197         * m4/printf-posix.m4: New file, from gettext-0.13.
61198
61199 2003-11-29  Karl Berry  <karl@gnu.org>
61200
61201         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61202
61203 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61204             Bruno Haible  <bruno@clisp.org>
61205
61206         * lib/printf-parse.h: Don't include sys/types.h.
61207         (ARG_NONE): New macro.
61208         (char_directive): Change type of *arg_index fields to size_t.
61209         * lib/printf-parse.c: Don't include sys/types.h.
61210         (SSIZE_MAX): Remove macro.
61211         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61212         Remove unnecessary overflow check.
61213         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61214         fields.
61215
61216 2003-11-25  Bruno Haible  <bruno@clisp.org>
61217
61218         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61219
61220 2003-11-25  Bruno Haible  <bruno@clisp.org>
61221
61222         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61223         gt_TYPE_SSIZE_T.
61224
61225 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61226
61227         * modules/alloca: Remove dependency on xalloc.
61228
61229 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61230
61231         * lib/alloca.c: Remove dependency on xalloc module.
61232         (xalloc_die): Remove.
61233         (memory_full) [!defined emacs]: New macro.
61234         [!defined emacs]: Don't include xalloc.h.
61235         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61236         address arithmetic overflows.  Change datatypes a bit to avoid
61237         unnecessary casts.
61238
61239 2003-11-22  Jim Meyering  <jim@meyering.net>
61240
61241         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61242         s/size/size_t/.
61243
61244 2003-11-21  Karl Berry  <karl@gnu.org>
61245
61246         * config/config.{sub,guess}: update from config.
61247
61248 2003-11-18  Karl Berry  <karl@gnu.org>
61249
61250         * config/config.{sub,guess}: update from config.
61251
61252         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61253
61254 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61255
61256         * README: Mention that S+T cannot overflow if S is the size of
61257         an existing object and T is sufficiently small.
61258
61259 2003-11-17  Jim Meyering  <jim@meyering.net>
61260
61261         On systems without utime and without a utimes function capable of
61262         dealing with a NULL struct utimbuf* argument, this utime replacement
61263         could -- in unusual circumstances -- leak a file descriptor.
61264         * lib/utime.c: Include <unistd.h> and <errno.h>.
61265         (utime_null): Be sure to close `fd' and to preserve errno.
61266         Reported by Geoff Collyer via Arnold Robbins.
61267
61268 2003-11-17  Bruno Haible  <bruno@clisp.org>
61269
61270         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61271         (Depends-on): Add xsize.
61272
61273 2003-11-17  Bruno Haible  <bruno@clisp.org>
61274
61275         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61276
61277 2003-11-17  Bruno Haible  <bruno@clisp.org>
61278
61279         * lib/vasnprintf.c (alloca): Remove fallback definition.
61280         (freea): Remove definition.
61281         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61282         Reported by Paul Eggert.
61283
61284 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61285             Bruno Haible  <bruno@clisp.org>
61286
61287         Protect against address arithmetic overflow.
61288         * lib/printf-args.h: Include stddef.h.
61289         (arguments): Change type of field 'count' to size_t.
61290         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61291         'unsigned int' where appropriate.
61292         * lib/printf-parse.h: Include sys/types.h.
61293         (char_directive): Change type of *arg_index fields to ssize_t.
61294         (char_directives): Change type of fields 'count', max_*_length to
61295         size_t.
61296         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61297         (SSIZE_MAX): Define fallback value.
61298         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61299         instead of 'int' where appropriate. Check a_allocated, d_allocated
61300         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61301         * lib/vasnprintf.c: Include xsize.h.
61302         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61303         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61304         overflow. Avoid wraparound when converting a width or precision from
61305         decimal to binary.
61306
61307 2003-11-16  Bruno Haible  <bruno@clisp.org>
61308
61309         Update from GNU gettext.
61310         * lib/printf-parse.c: Generalize to it can be compiled for wide
61311         strings.
61312         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61313         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61314         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61315         SNPRINTF): New macros.
61316         Don't include <alloca.h> if the file is used inside libintl.
61317         (local_wcslen): New function, for Solaris 2.5.1.
61318         (VASNPRINTF): Use it instead of wcslen.
61319
61320 2003-11-16  Bruno Haible  <bruno@clisp.org>
61321
61322         * lib/xsize.h (xmax): New function.
61323         (xsum, xsum3, xsum4): Declare as "pure" functions.
61324
61325 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61326
61327         * modules/xalloc (Files): Undo latest change, since xalloc.h
61328         no longer needs SIZE_MAX or PTRDIFF_MAX.
61329
61330 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61331
61332         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61333         gl_PTRDIFF_MAX.
61334
61335 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61336
61337         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61338         "return", to pacify some unknown compiler.  Problem reported
61339         by Joerg Schilling.
61340
61341 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61342
61343         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61344         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61345         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61346         heuristic is just as accurate as far as we know, and it removes a
61347         dependency on size_max.m4 and ptrdiff_max.m4.
61348
61349 2003-11-11  Bruno Haible  <bruno@clisp.org>
61350
61351         * modules/xsize (Files): Add m4/size_max.m4.
61352         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61353
61354 2003-11-11  Bruno Haible  <bruno@clisp.org>
61355
61356         * m4/size_max.m4: New file.
61357         * m4/ptrdiff_max.m4: New file.
61358         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61359         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61360         (gl_XALLOC): Invoke it.
61361
61362 2003-11-11  Bruno Haible  <bruno@clisp.org>
61363
61364         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61365         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61366         defined.
61367
61368 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61369
61370         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61371         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61372         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61373         From Bruno Haible.
61374         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61375         not (size_t) -1, since it's defined here.
61376
61377 2003-11-09  Karl Berry  <karl@gnu.org>
61378
61379         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61380
61381 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61382
61383         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61384         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61385         Reject sizes of exactly SIZE_MAX bytes.
61386         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61387         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61388
61389 2003-11-05  Bruno Haible  <bruno@clisp.org>
61390
61391         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61392         SIZE_MAX defined in <limits.h> on Solaris.
61393
61394 2003-11-04  Jim Meyering  <jim@meyering.net>
61395
61396         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61397         variable names, rather than @VAR@.
61398         * modules/poll: Likewise.
61399
61400 2003-11-04  Bruno Haible  <bruno@clisp.org>
61401
61402         * modules/xsize: New file.
61403         * modules/linebreak: Depend on xsize.
61404         * MODULES.html.sh (func_all_modules): Add xsize.
61405
61406 2003-11-04  Bruno Haible  <bruno@clisp.org>
61407
61408         * m4/xsize.m4: New file.
61409
61410 2003-11-04  Bruno Haible  <bruno@clisp.org>
61411
61412         * lib/xsize.h: New file.
61413         * lib/linebreak.c: Include xsize.h.
61414         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61415         argument for overflow.
61416         Suggested by Paul Eggert.
61417
61418 2003-11-03  Karl Berry  <karl@gnu.org>
61419
61420         * config/config.{guess,sub}: update from config.
61421
61422 2003-11-03  Jim Meyering  <jim@meyering.net>
61423
61424         * modules/userspec (lib_SOURCES): Add userspec.h.
61425         (Include): Add "userspec.h".
61426         Improve description.
61427
61428 2003-11-03  Jim Meyering  <jim@meyering.net>
61429
61430         * lib/userspec.c: Include "userspec.h".
61431         * lib/userspec.h: New file.
61432
61433 2003-11-03  Bruno Haible  <bruno@clisp.org>
61434
61435         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61436
61437 2003-11-03  Bruno Haible  <bruno@clisp.org>
61438
61439         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61440         available, to avoid (extremely rare) race condition.
61441         Suggested by Paul Eggert.
61442
61443 2003-11-02  Karl Berry  <karl@gnu.org>
61444
61445         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61446
61447 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61448
61449         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61450         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61451         (read_filesystem_list): Set and use me_type_malloced.
61452         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61453         whatever the type happens to be), for brevity and consistency.
61454         Check for size calculation overflow on Alphas running OSF/1.
61455
61456 2003-10-31  Jim Meyering  <jim@meyering.net>
61457
61458         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61459
61460         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61461
61462 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61463             Bruno Haible  <bruno@clisp.org>
61464
61465         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61466         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61467
61468 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61471         netbsd*-gnu*.  Suggested by Robert Millan.
61472
61473 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61474
61475         * modules/group-member: Depend on stdbool.
61476
61477 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61478
61479         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61480
61481 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61482
61483         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61484         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61485         after the 'gnu' in these cases.  This fixes some bugs in the
61486         previous change, and is based on suggestions by Robert Millan.
61487
61488 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61489
61490         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61491         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61492         no longer needed.
61493         * lib/quotearg.c (quotearg_n_options): Use it.
61494         * lib/group-member.c: Include <stdbool.h>.
61495         (free_group_info): Arg is now const *; don't free arg.
61496         (get_group_info): Now returns bool and accepts struct group_info *,
61497         rather than returning a malloc'ed struct group_info *.
61498         All uses changed.  Check for overflow in internal size calculation.
61499
61500         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61501         rather than xmalloc/xrealloc.
61502         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61503         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61504         conformance bug: the old code used a pointer after freeing the
61505         storage that it addressed.
61506         * lib/hash.c (hash_initialize): Simplify the code by using
61507         xalloc_oversized rather than doing it by hand.
61508         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61509         the buffer preserved.  Use free and xmalloc instead.
61510         * lib/quotearg.c (quotearg_n_options): Likewise.
61511         Use a simpler test for size overflow.  Don't use xalloc_oversized
61512         because unsigned int might be wider than size_t (!); this suggests
61513         that we should switch from unsigned int to size_t for slot numbers.
61514
61515 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61516
61517         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61518         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61519         NetBSD kernels.  Requested by Richard Stallman.
61520
61521 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61522
61523         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61524         to allocate the returned structure.  Do not allocate a subarray,
61525         as x2nrealloc will do that.
61526         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61527         instead of xnrealloc.
61528         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61529
61530 2003-10-27  Bruno Haible  <bruno@clisp.org>
61531
61532         * lib/stdbool_.h: Better support for BeOS.
61533
61534 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61535
61536         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61537         now uses inline.
61538
61539 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61540
61541         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61542         callers that want to do their own size-overflow checking.  Include
61543         <stdbool.h>, since xalloc_oversized returns bool.
61544         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61545         to use xalloc_oversized.
61546
61547         Add two functions x2realloc, x2nrealloc, for programs that grow
61548         arrays dynamically by doubling their sizes.
61549         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61550         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61551         New functions.
61552
61553         Port to C99 semantics for 'inline' of external functions.
61554         Bug reported by Bruno Haible.
61555         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61556         with the old contents of xnmalloc.
61557         (xnmalloc, xmalloc): Use it.
61558         (xnrealloc_inline): New static inline function,
61559         with the old contents of xnrealloc.
61560         (xnrealloc, xrealloc): Use it.
61561
61562         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61563         that.
61564
61565 2003-10-26  Karl Berry  <karl@gnu.org>
61566
61567         * config/srclist.txt (COPYING.DOC): no longer available from
61568         /gd/gnuorg; don't know where the ultimate source is.
61569
61570 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61571
61572         Fix several address-calculation bugs in the hash modules,
61573         plus some minor code cleanup.
61574
61575         * lib/hash.h: Include <stdbool.h>, for bool.
61576         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61577         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61578         hash_get_n_entries, hash_get_max_bucket_length,
61579         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61580         hash_rehash): Use size_t rather than unsigned.
61581         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61582         hash_get_n_buckets_used, hash_get_n_entries,
61583         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61584         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61585         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61586         Likewise.
61587         (SIZE_MAX): Define if not defined.
61588         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61589         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61590         hash_print):
61591         Use const * when possible.
61592         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61593         (check_tuning): Fix bug: if tuning parameters were very close to
61594         0 or 1, rounding errors could have caused subscript violations.
61595         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61596         (hash_initialize): Add 'fail:' label
61597         to free table and return NULL, and use it to simplify code.
61598         Use calloc rather than clearing the storage ourself.
61599         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61600         buffer size calculations.
61601         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61602         Include <stddef.h>, for size_t.
61603         * lib/hash-pjw.c (hash_pjw): Likewise.
61604         Switch to method described by Bruno Haible.
61605         Include <limits.h>, for CHAR_BIT.
61606         (SIZE_BITS): New macro.
61607
61608 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61609
61610         * m4/getline.m4 (AM_FUNC_GETLINE):
61611         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61612         hosts.  Problem reported by Derek Robert Price in
61613         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61614         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61615         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61616
61617 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61618
61619         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61620         ceiling the allocation at NMAX bytes rather than silently
61621         discarding input bytes before NMAX is reached.  This makes
61622         a difference only if NMAX exceeds SIZE_MAX / 2.
61623
61624         * lib/obstack.c: Merge from glibc.
61625         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61626         Add libc_hidden_def (_obstack_newchunk).
61627         (_obstack_free) [! defined _LIBC]: Remove.
61628         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61629         a clone of the function body.
61630         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61631         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61632
61633         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61634         glibc.
61635         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61636         arg to memcpy.
61637
61638         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61639         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61640         Don't use lvalue casts, as GCC plans to remove support for them
61641         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61642         was also present in the non-GCC version, indicating that this
61643         code had always been buggy and had never been widely used.
61644         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61645         Use the fast variant of each macro, rather than copying the
61646         definiens of the fast variant; that way, we'll be more likely to
61647         catch future bugs in the fast variants.
61648
61649 2003-10-20  Bruno Haible  <bruno@clisp.org>
61650
61651         * modules/wait-process: New file.
61652         * MODULES.html.sh (func_all_modules): Add wait-process.
61653
61654 2003-10-20  Bruno Haible  <bruno@clisp.org>
61655
61656         * m4/wait-process.m4: New file.
61657
61658 2003-10-20  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/wait-process.h: New file, from GNU gettext.
61661         * lib/wait-process.c: New file, from GNU gettext.
61662
61663 2003-10-19  Jim Meyering  <jim@meyering.net>
61664
61665         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61666         HPUX 10.20.
61667
61668 2003-10-18  Karl Berry  <karl@gnu.org>
61669
61670         * config/config.guess: update from config.
61671
61672 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61673
61674         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61675         (getgroups): First arg is int, not size_t.
61676         Don't let 'free' mangle errno.
61677
61678 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61679
61680         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61681
61682 2003-10-16  Karl Berry  <karl@gnu.org>
61683
61684         * config/config.{guess,sub}: update from config.
61685
61686 2003-10-16  Jim Meyering  <jim@meyering.net>
61687
61688         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61689         memcpy.
61690
61691 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61692
61693         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61694         (SIZE_MAX): Remove.
61695         (new_exclude, add_exclude_file): Initial size no longer needs to
61696         be a power of 2.
61697         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61698         our own address arithmetic overflow checking.
61699
61700         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61701         (fnmatch): Do not alloca more than 2000 wide characters;
61702         instead, use malloc for large buffers.
61703         Check for address arithmetic overflow, and return -1
61704         with errno set to ENOMEM in that case.
61705         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61706         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61707         instead, return -1.  Check for address arithmetic overflow.
61708
61709 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61710
61711         Handle invalid suffixes and overflow independently, so that
61712         callers can treat them independently as needed.  Fix some bugs in
61713         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61714         suffix for a human-readable blocksize.  The major caller-visible
61715         change is the addition of a new
61716         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61717         that both overflow and suffix chars were found.
61718
61719         * lib/human.c (humblock): Don't check separately for invalid suffix
61720         char; that is xstrtoumax's job (now that its bug is fixed).
61721         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61722         INTMAX_MAX]: New macros.
61723         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61724         TYPE_MAXIMUM): New macros.
61725         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61726         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61727         if overflow occurs, as it's what __strtol does and it's more useful
61728         in practice.
61729         (__xstrtol): If __strtol reports some error other than ERANGE,
61730         reflect it to the caller as LONGINT_INVALID.  If it reports
61731         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61732         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61733         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61734         value.
61735         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61736         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61737         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61738         [defined UINTMAX_MAX]: New macros.
61739
61740 2003-10-14  Bruno Haible  <bruno@clisp.org>
61741
61742         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61743
61744 2003-10-14  Bruno Haible  <bruno@clisp.org>
61745
61746         * m4/sig_atomic_t: New file, from GNU gettext.
61747         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61748
61749 2003-10-14  Bruno Haible  <bruno@clisp.org>
61750
61751         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61752         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61753         Also use volatile where needed.
61754
61755 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61756
61757         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61758         Change maintainer from Bruno Haible to 'all'.
61759
61760 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61761
61762         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61763
61764 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61765
61766         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61767         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61768         and define in terms of the other primitives.
61769         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61770         (SIZE_MAX): Define if not already defined.
61771         (array_size_overflow): New function.
61772         (xalloc_die): Abort instead of exiting if 'error' returns.
61773         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61774         (xmalloc, xrealloc): Use them.
61775         (xcalloc): Check for address arithmetic overflow.
61776         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61777         a bit faster than strcpy.
61778
61779 2003-10-10  Simon Josefsson  <jas@extundo.com>
61780
61781         * modules/argp (Depends-on): Add restrict and strcase.
61782
61783 2003-10-10  Simon Josefsson  <jas@extundo.com>
61784
61785         * m4/argp.m4: Add AC_C_INLINE.
61786
61787 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61788
61789         Merge getpass from libc, plus a few fixes.
61790
61791         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61792         Include <stdbool.h>.
61793         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61794         __fsetlocking to empty.
61795         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61796         do include <bits/libc-lock.h>.
61797         Do not include <fcntl.h>; not needed.
61798         [_LIBC]: Include <wchar.h>.
61799         (NOTCANCEL_MODE): New macro.
61800         (flockfile, funlockfile) [_LIBC]: New macros.
61801         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61802         [!_LIBC]: New macros.
61803         (call_fclose): New function.
61804         (getpass): Use it.  Save tty stream separately; this simplifies the
61805         code and makes it more reliable if stdin happens to equal stdout.
61806         Invoke __fsetlocking on tty.
61807         Handle thread cancellation if needed.
61808         Namespace cleanup (use __tcgetattr, __getline).
61809         Use bool for Booleans.
61810         [USE_IN_LIBIO]: Handle wide streams.
61811         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61812         stream might go where.
61813
61814         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61815         doesn't have to include <stdio.h> before us.
61816         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61817         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61818         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61819         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61820         if not declared, so that we can use getpass.c code from libc without
61821         rewriting it.
61822         (flockfile, ftrylockfile, funlockfile): New macros.
61823
61824 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61825
61826         * modules/getpass: Depend on stdbool.
61827
61828 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61829
61830         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
61831
61832 2003-10-07  Karl Berry  <karl@gnu.org>
61833
61834         * config/config.{guess,sub}: update from config.
61835
61836 2003-10-06  Jim Meyering  <jim@meyering.net>
61837             Bruno Haible  <bruno@clisp.org>
61838
61839         This lets translators provide better translations for the
61840         "Written by ..." part of --version output.
61841         * lib/version-etc.h: Include stdarg.h.
61842         (version_etc_copyright): Declare as readonly.
61843         (version_etc): Make this function variadic with a NULL-terminated list
61844         of author name strings.
61845         (version_etc_va): New declaration.
61846         * lib/version-etc.c: Include stdarg.h, stdlib.h.
61847         (version_etc_copyright): Declare as readonly.
61848         (version_etc_va): New function. Provide a different translatable string
61849         for each possible number of authors < 10. Abbreviate when there are 10
61850         authors or more.
61851         (version_etc): Make this function variadic. Call version_etc_va.
61852         Suggestion from Gary V. Vaughan.
61853
61854         * lib/long-options.h (parse_long_options): Change prototype: the
61855         authors string is moved to the end and becomes variadic.
61856         * lib/long-options.c: Include stdarg.h.
61857         (parse_long_options): Make this function variadic, too.
61858         Call version_etc_va, not version_etc.
61859
61860 2003-10-06  Bruno Haible  <bruno@clisp.org>
61861
61862         * modules/version-etc-2: Remove file.
61863         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
61864
61865 2003-10-06  Bruno Haible  <bruno@clisp.org>
61866
61867         * modules/fatal-signal: New file.
61868         * MODULES.html.sh (func_all_modules): Add fatal-signal.
61869
61870 2003-10-06  Bruno Haible  <bruno@clisp.org>
61871
61872         * m4/fatal-signal.m4: New file.
61873         * m4/signalblocking.m4: New file, from GNU gettext.
61874
61875 2003-10-06  Bruno Haible  <bruno@clisp.org>
61876
61877         * lib/version-etc-2.h: Remove file.
61878         * lib/version-etc-2.c: Remove file.
61879
61880 2003-10-06  Bruno Haible  <bruno@clisp.org>
61881
61882         * lib/fatal-signal.h: New file, from GNU gettext.
61883         * lib/fatal-signal.c: New file, from GNU gettext.
61884
61885 2003-10-05  Paul Eggert  <eggert@twinsun.com>
61886
61887         * README: Rework advice for preventing empty .o files.
61888         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
61889         not <sys/types.h>.
61890
61891 2003-10-04  Karl Berry  <karl@gnu.org>
61892
61893         * lib/argp*: update from libc.
61894
61895 2003-10-04  Karl Berry  <karl@gnu.org>
61896
61897         * config/config.{guess,sub}: update from config.
61898
61899 2003-10-02  Bruno Haible  <bruno@clisp.org>
61900
61901         * modules/lchown (Include): Add lchown.h.
61902         * modules/time_r (Include): Use "..." syntax.
61903         * modules/xgetdomainname (Include): Add xgetdomainname.h.
61904
61905 2003-10-01  Simon Josefsson  <jas@extundo.com>
61906
61907         * MODULES.html.sh (func_all_modules): Move gethostname from section
61908         'based on' to section 'lacking' POSIX:2001.
61909
61910 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
61911
61912         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
61913         to output mode on the same stream.
61914
61915 2003-09-29  Paul Eggert  <eggert@twinsun.com>
61916
61917         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
61918         Fix arg typo in previous patch.
61919
61920 2003-09-28  Jim Meyering  <jim@meyering.net>
61921
61922         * lib/error.c: Correct cpp indentation.
61923
61924 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61925
61926         * modules/free: New file.
61927
61928 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61929
61930         * m4/free.m4: New file.
61931
61932 2003-09-27  Paul Eggert  <eggert@twinsun.com>
61933
61934         * lib/minmax.h (MIN, MAX)
61935         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
61936         Omit the special code that used __typeof__, since we worry that
61937         it could be more trouble than it's worth.  See:
61938         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
61939         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
61940
61941         * lib/free.c: New file.
61942
61943 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
61944
61945         Trivial fixes to Makefile.am parts of module listings.
61946         * modules/strstr: Append strstr.h to lib_SOURCES.
61947         * modules/strcase: Likewise, for strcase.h.
61948
61949 2003-09-27  Karl Berry  <karl@gnu.org>
61950
61951         * config/mkinstalldirs: update from automake.
61952
61953 2003-09-26  Paul Eggert  <eggert@twinsun.com>
61954
61955         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
61956         (error_tail): Do not loop, reallocating temporary buffer, since
61957         the output cannot contain more wide characters than the input
61958         contains bytes, the size must be big enough already.  This avoids
61959         one potential size overflow calculation.  Check for size overflow
61960         when calculating temporary buffer size.  Free temporary buffer
61961         when done, if it was allocated with malloc; this plugs a memory
61962         leak.  Remove casts from void * to pointers, that are no longer
61963         needed now that we're assuming C89 or better.
61964
61965         Merge error changes from glibc.
61966
61967         * lib/error.c, error.h: Update copyright notice header to match glibc.
61968         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
61969         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
61970         Disable cancellation while printing error.
61971         * lib/error.h: Prepend __ to parameter names.
61972
61973 2003-09-26  Jim Meyering  <jim@meyering.net>
61974
61975         * lib/error.c (error_tail): Move some declarations
61976         into inner scope where the local variables are used.
61977
61978 2003-09-26  Bruno Haible  <bruno@clisp.org>
61979
61980         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
61981         stpncpy().
61982         Don't define stpncpy through config.h; it's now done through stpncpy.h.
61983
61984 2003-09-26  Bruno Haible  <bruno@clisp.org>
61985
61986         * lib/stpncpy.h (gnu_stpncpy): New declaration.
61987         (stpncpy): Define as alias for gnu_stpncpy.
61988         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
61989
61990 2003-09-25  Simon Josefsson  <jas@extundo.com>
61991
61992         * lib/xgetdomainname.h: New file.
61993         * lib/xgetdomainname.c: New file.
61994
61995 2003-09-25  Simon Josefsson  <jas@extundo.com>
61996             Bruno Haible  <bruno@clisp.org>
61997
61998         * modules/getdomainname: New file.
61999         * modules/xgetdomainname: New file.
62000         * MODULES.html.sh (func_all_modules): Add getdomainname,
62001         xgetdomainname.
62002
62003 2003-09-25  Simon Josefsson  <jas@extundo.com>
62004             Bruno Haible  <bruno@clisp.org>
62005
62006         * m4/getdomainname.m4: New file.
62007
62008 2003-09-25  Simon Josefsson  <jas@extundo.com>
62009             Bruno Haible  <bruno@clisp.org>
62010
62011         * lib/getdomainname.h: New file.
62012         * lib/getdomainname.c: New file.
62013
62014 2003-09-25  Karl Berry  <karl@gnu.org>
62015
62016         * lib/argp-fmtstream.c, argp-help.c: update from libc.
62017
62018 2003-09-25  Karl Berry  <karl@gnu.org>
62019
62020         * config/install-sh: update from automake.
62021
62022 2003-09-25  Bruno Haible  <bruno@clisp.org>
62023
62024         * modules/version-etc-2: New file, from modules/version-etc with
62025         modifications.
62026         * MODULES.html.sh (func_all_modules): Add version-etc-2.
62027
62028 2003-09-25  Bruno Haible  <bruno@clisp.org>
62029
62030         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
62031         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
62032
62033 2003-09-24  Simon Josefsson  <jas@extundo.com>
62034
62035         * modules/xgethostname: Add xgethostname.h.
62036
62037 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62038
62039         * lib/linebuffer.c (freebuffer): Don't free the argument, just
62040         the buffer associated with the argument.  Bug reported by
62041         Simon Josefsson.
62042
62043 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62044
62045         * README: Document assumptions that 'int' is at least 32 bits
62046         wide, that integer arithmetic is 2's complement without overflow,
62047         that there are no holes in integer values, that adding sizes of
62048         two nonoverlapping objects can't overflow, and that all-bits-zero
62049         yields scalar zero.  Fix spelling and capitalization typos.
62050
62051 2003-09-19  Karl Berry  <karl@gnu.org>
62052
62053         * lib/argp.h: update from libc.
62054
62055 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62056
62057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
62058         to avoid spurious warnings like "AC_RUN_IFELSE was called before
62059         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
62060
62061 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62062
62063         * gnulib-tool: Use "test -h", not "test -L", for portability
62064         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
62065         (tags_regexp): Remove, since \| doesn't conform to POSIX.
62066         (sed_extract_prog): Issue s commands one-by-one, rather than
62067         using \| in one s command.
62068
62069 2003-09-16  Paul Eggert  <eggert@twinsun.com>
62070
62071         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
62072         input error, instead of returning NULL the next time we are called
62073         (and therefore losing track of errno).
62074
62075 2003-09-16  Bruno Haible  <bruno@clisp.org>
62076
62077         * gnulib-tool (func_create_testdir): Warn about duplicated
62078         dependencies.
62079
62080 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62081
62082         * modules/argmatch, modules/fatal, modules/obstack,
62083         modules/xalloc, modules/xgethostname: Sort dependencies by
62084         importance, not alphabetically.
62085
62086 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62087
62088         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
62089         fails, so that the caller gets the proper errno.
62090
62091         * lib/readutmp.c (read_utmp): Likewise.
62092         Check for fstat error.  Close stream and free storage
62093         when failing.
62094
62095 2003-09-14  Karl Berry  <karl@gnu.org>
62096
62097         * config/srclist.txt (strdup.c): disable for c89 changes.
62098
62099 2003-09-14  Jim Meyering  <jim@meyering.net>
62100
62101         * lib/getloadavg.c: Correct cpp indentation.
62102         * lib/strdup.c: Likewise.
62103         * lib/vasnprintf.c: Likewise.
62104
62105 2003-09-14  Bruno Haible  <bruno@clisp.org>
62106
62107         * modules/fwriteerror: New file.
62108         * MODULES.html.sh (func_all_modules): Add fwriteerror.
62109
62110 2003-09-14  Bruno Haible  <bruno@clisp.org>
62111
62112         * lib/fwriteerror.h: New file.
62113         * lib/fwriteerror.c: New file.
62114
62115 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62116
62117         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
62118         modules/xgethostname, modules/xalloc: Depend on exit.
62119
62120 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62121
62122         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
62123
62124         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
62125         and AC_MINIX, too, so that their extensions are available.
62126
62127         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
62128         This macro has been superseded by gl_BACKUPFILE.
62129
62130         More patches to assume C89 or better.
62131
62132         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
62133
62134         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
62135         unconditionally.
62136         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
62137         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
62138         Include <string.h>, <stdlib.h> unconditionally.
62139         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
62140         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
62141         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
62142         headers or for string.h.
62143         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
62144         or strtoul.
62145
62146         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
62147         headers.
62148         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
62149         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62150         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
62151         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
62152         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62153         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
62154         memcpy, memset.
62155         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
62156         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
62157         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
62158         strtol.
62159         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62160         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62161         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62162         strtoul.
62163
62164 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62165
62166         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62167         * lib/obstack.c [!defined _LIBC]: Likewise.
62168         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62169         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62170         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62171
62172         More changes to assume C89 or better.
62173
62174         * lib/error.c (error_tail): Assume vprintf.
62175
62176         * lib/argmatch.c (getenv): Remove decl.
62177         * lib/progreloc.c (get_full_program_name): Define via prototype.
62178         * lib/setenv.c (clearenv): Likewise.
62179         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62180         needed.
62181         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62182         (malloc, memcpy): Remove decls.
62183         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62184         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62185         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62186         (memcpy): Remove macro.
62187         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62188         (__P): Remove.  All uses removed.
62189         (PTR): Remove.  All uses changed to void *.
62190         (CHAR_BIT, NULL): Remove.
62191         (spaces, zeros, memset_space, memset_zero)
62192         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62193         Remove.
62194         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62195         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62196         Define with prototype.
62197         Remove now-unnecessary prototype decl.
62198         (extra_args_spec): Assume ANSI C.  All uses changed.
62199         (extra_args_spec_iso): Remove.
62200         (my_strftime, emacs_strftimeu): Define via prototype.
62201         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62202         unconditionally.
62203         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62204         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62205         (strtoul, strtol): Remove decls.
62206         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62207         LONG_MAX): Remove.
62208         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62209         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62210         (LOCALE_PARAM_PROTO): New macro.
62211         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62212         (INTERNAL (strtol), strtol): Define with a prototype.
62213         (PARAMS): Remove.  All uses removed.
62214         * lib/tempname.c: Include <string.h> unconditionally.
62215         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62216         * lib/xgethostname.c (main): Define with a prototype.
62217         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62218         Include <stdlib.h> unconditionally.
62219         (calloc, malloc, realloc, free): Remove decls.
62220         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62221         Include <stdlib.h> unconditionally.  Sort include file names.
62222         (strtod): Remove.
62223         (xstrtod): Define with a prototype.
62224         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62225         (strtol, strtoul): Remove decls.
62226
62227 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62228
62229         More patches to assume C89 or better.
62230         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62231         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62232         string.h, memchr, STDC_HEADERS.
62233
62234 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62235
62236         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62237         Include <stdlib.h>, <string.h> unconditionally.
62238         Remove now-unnecessary cast to char *.
62239         * lib/strnlen.c: Include <string.h> unconditionally.
62240         * lib/yesno.c (yesno): Define with a prototype.
62241
62242 2003-09-11  Bruno Haible  <bruno@clisp.org>
62243
62244         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62245
62246 2003-09-10  Jim Meyering  <jim@meyering.net>
62247
62248         * lib/error.c: Correct indentation of cpp directives.
62249
62250 2003-09-10  Bruno Haible  <bruno@clisp.org>
62251
62252         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62253         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62254         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62255         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62256         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62257         <stdlib.h> and <string.h> checks.
62258         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62259         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62260
62261 2003-09-10  Bruno Haible  <bruno@clisp.org>
62262
62263         * lib/strcspn.c: Include <string.h> unconditionally.
62264         * lib/strpbrk.c: Include <string.h> unconditionally.
62265         * lib/strstr.c: Include <string.h> unconditionally.
62266         * lib/unicodeio.c: Include <string.h> unconditionally.
62267         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62268         * lib/unsetenv.c: Likewise.
62269         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62270         * lib/yesno.c: Include <stdlib.h> unconditionally.
62271         (rpmatch): Add prototype.
62272
62273 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62274
62275         More patches to assume C89 or better.
62276         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62277         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62278         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62279         or for string.h.
62280         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62281         stdlib.h.
62282         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62283         C headers.
62284         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62285         string.h.
62286         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62287         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62288         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62289         or for string.h.
62290         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62291         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62292         C headers.
62293         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62294         memcpy.
62295         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62296         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62297         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62298         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62299         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62300         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62301         string.h, free.
62302         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62303         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62304         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62305         C headers, or for string.h.
62306         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62307         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62308         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62309         headers, memory.h, stdlib.h, string.h, strings.h.
62310         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62311         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62312         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62313         strchr.
62314         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62315         headers, memory.h, string.h.
62316         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62317         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62318         free.
62319         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62320         headers.
62321         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62322         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62323         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62324         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62325         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62326
62327 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62328
62329         More K&R removal.
62330
62331         * lib/acosl.c (main): Use a prototype.
62332         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62333         tanl.c: Likewise.
62334
62335         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62336
62337         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62338         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62339         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62340         with a prototype.
62341         * lib/getopt.c (const): Remove macro.
62342         Include <string.h> unconditionally.
62343         (my_index): Remove; all uses changed to strchr.
62344         (strlen): Remove decl.
62345         (exchange): Remove forward decl; no longer needed.
62346         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62347         Define with prototype.
62348         * lib/getopt1.c (const): Remove macro.
62349         (getopt_long, getopt_long_only, main): Define with prototype.
62350
62351         * lib/getugroups.c: Include <string.h> unconditionally.
62352
62353         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62354         (getusershell, setusershell, endusershell, readname, main):
62355         Define with prototypes.
62356
62357         * lib/group-member.c: Include group-member.h first.
62358         Include <stdlib.h> unconditionally.
62359
62360         * lib/hard-locale.c: Include hard-locale.h first.
62361         Include <stdlib.h>, <string.h> unconditionally.
62362
62363         * lib/hash.c (free, malloc): Remove decls.
62364         Include <stdlib.h> unconditionally.
62365
62366         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62367         (getenv): Do not declare.
62368
62369         * lib/idcache.c: Include <string.h> unconditionally.
62370
62371         * lib/long-options.c: Include long-options.h first, to test interface.
62372         Include <stdlib.h> unconditionally.
62373
62374         * lib/makepath.c: Include makepath.h first, to test interface.
62375         Include <stdlib.h> and <string.h> unconditionally.
62376
62377         * lib/linebuffer.c: Include <stdlib.h>.
62378         (free): Remove decl.
62379
62380         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62381         stddef.h. rpl_malloc returns void *, not char *.
62382         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62383         prototype.
62384
62385         * lib/md5.h: Include <limits.h> unconditionally.
62386         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62387         (__P): Remove; all uses removed.
62388         * lib/md5.c: Include "md5.h" first.
62389         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62390         md5_buffer, md5_process_bytes, md5_process_block):
62391         Define with prototypes.
62392         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62393         * lib/sha.c: Include "sha.h" first.
62394         Include <stdlib.h>, <string.h> unconditionally.
62395
62396         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62397         * lib/memcmp.c (__ptr_t): Likewise.
62398         * lib/memrchr.c (__ptr_t): Likewise.
62399         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62400         Include <string.h> unconditionally.
62401         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62402         * lib/memchr.c: Include <stdlib.h> unconditionally.
62403         * lib/memchr.c (LONG_MAX): Remove.
62404         * lib/memrchr.c (LONG_MAX): Likewise.
62405         * lib/memchr.c (__memchr): Define via a prototype.
62406         * lib/memrchr.c (__memrchr): Likewise.
62407         * lib/memcmp.c (__P): Remove, and remove all uses.
62408         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62409         Remove forward decls; no longer needed.
62410         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62411         Use types required by C89 in prototype.
62412
62413         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62414         * lib/savedir.c: Likewise.
62415         * lib/mkdir.c (free): Remove decl.
62416         * lib/rmdir.c (rmdir): Define with a prototype.
62417         * lib/savedir.c: Include savedir.h first, to test interface.
62418
62419         * lib/mktime.c (STDC_HEADERS): Remove.
62420         Include <stdlib.h>, <string.h> unconditionally.
62421
62422         * lib/modechange.c: Include <stdlib.h> unconditionally.
62423         (malloc): Remove decl.
62424
62425         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62426         (free): Remove decl.
62427
62428         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62429         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62430         (This type really should be intptr_t, but that's a C99ism.)
62431         (_obstack_memcpy): Remove: all uses changed to memcpy.
62432         Include <string.h> unconditionally.
62433         (struct obstack): Assume __STDC__ for types of members
62434         chunkfun, freefun, extra_arg.
62435         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62436         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62437         obstack_begin, obstack_specify_allocation,
62438         obstack_specify_allocation_with_arg, obstack_chunkfun,
62439         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62440         Remove unprototyped decls and the macros that use them.
62441         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62442         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62443         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62444         (defined __STDC__ && __STDC__)]:
62445         Remove nonprototyped code.
62446         Include <stdlib.h> unconditionally.
62447         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62448         _obstack_allocated_p, _obstack_free, obstack_free,
62449         _obstack_memory_used, print_and_abort):
62450         Define using prototypes.
62451         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62452         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62453         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62454         obstack_next_free, obstack_object_size, obstack_room) [0]:
62455         Remove unused, unprototyped code.
62456
62457         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62458
62459         * lib/physmem.c (physmem_total, physmem_available, main): Define
62460         with prototypes.
62461
62462         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62463         (main): Define with a prototype.
62464
62465         * lib/posixver.c (getenv): Remove decl.
62466
62467         * lib/putenv.c (malloc): Returns void *, not char *.
62468         Include <string.h> unconditionally.
62469         (strchr, memcpy, NULL): Do not define.
62470
62471         * lib/readtokens.c: Include readtokens.h first, to test interface.
62472         Include <stdlib.h>, <string.h> unconditionally.
62473         (init_tokenbuffer): Define with a prototype.
62474
62475         * lib/regex.c (PARAMS): Remove.  All uses removed.
62476         All uses of _RE_ARGS removed, too.
62477         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62478         unconditionally.
62479         (bzero): Assume memset exists.
62480         (memcmp, memcpy, NULL): Remove.
62481         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62482         char, or assignments to local vars of type signed char.
62483         (init_syntax_once, PREFIX(extract_number_and_incr),
62484         PREFIX(print_partial_compiled_pattern),
62485         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62486         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62487         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62488         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62489         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62490         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62491         wcs_compile_range, byte_compile_range, truncate_wchar,
62492         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62493         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62494         count_mbs_length, wcs_re_match_2_internal,
62495         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62496         PREFIX(alt_match_null_string_p),
62497         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62498         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62499         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62500         now-unnecessary declaration, if any.
62501         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62502         regcomp, regexec):
62503         Remove now-unnecessary casts among pointer types.
62504         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62505
62506         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62507         (free): Remove decl.
62508
62509         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62510
62511         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62512         (free): Remove decl.
62513
62514         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62515         * lib/xgetcwd.c: Likewise.
62516
62517         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62518         (free): Remove decl.
62519
62520         * lib/strchrnul.c (strchrnul): Define with a prototype.
62521         Fix bug: c_in was not converted to char before searching.
62522
62523         The following changes are not K&R related:
62524
62525         * lib/group-member.h: Include <sys/types.h>, so that this file is
62526         self-contained.
62527         * lib/makepath.h: Likewise.
62528
62529         * lib/getusershell.c (readname, default_index, line_size, readname):
62530         Use size_t, not int, for sizes.
62531         (readname): If the size overflows, report an error instead of
62532         looping forever.
62533
62534 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62535
62536         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62537         libc.
62538
62539 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62540
62541         * README: New section: portability guidelines.
62542
62543 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62544
62545         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62546         C89 spec.
62547
62548 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62549
62550         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62551
62552 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62553
62554         Assume C89 or better; remove K&R cruft.
62555         A few of these changes were first proposed by Derek Robert Price
62556         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62557
62558         * lib/addext.c: Include <string.h> unconditionally.
62559         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62560         Don't declare getenv or malloc.
62561
62562         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62563         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62564         (NULL): Remove.
62565         (find_stack_direction, alloca): Use prototypes.
62566
62567         * lib/atexit.c (atexit): Define using a prototype.
62568
62569         * lib/basename.c, dirname.c, stripslash.c:
62570         Include <string.h> unconditionally.
62571
62572         * lib/bcopy.c: Include <stddef.h>.
62573         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62574
62575         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62576
62577         * lib/error.h (error, error_at_line, error_print_progname)
62578         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62579         * lib/error.c: Include error.h first, to check interface.
62580         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62581         (VA_START): Remove; all uses changeed to va_start.
62582         (exit, strerror): Remove decls.
62583         (error_print_progname): Prototype uncondionally.
62584         Don't include <errno.h>; no longer needed.
62585         (private_strerror): Remove.
62586         (error_tail): Always define.
62587         (error, error_at_line): Assume C89 or better; always use prototypes.
62588         * lib/fatal.c: Include "fatal.h" first, to test interface.
62589         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62590         (VA_START): Remove; all uses changed to va_start.
62591         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62592         this case.
62593         (exit): Remove decl.
62594         (fatal): Prototype unconditionally.  Assume va_start works.
62595         Abort at end, to pacify gcc.
62596
62597         * lib/euidaccess.c (main): Define with a prototype.
62598
62599         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62600
62601         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62602
62603         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62604         prototypes.
62605         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62606         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62607         (getenv): Remove decl.
62608         (fnmatch): Define using a prototype.
62609         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62610         (FCT): Define using a prototype.
62611
62612         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62613
62614         * lib/gethostname.c: Include <stddef.h>.
62615         (gethostname): Define with prototype.  Length is size_t, not int.
62616
62617 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62618
62619         Assume C89 or better; remove K&R cruft.
62620         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62621         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62622         string.h, getenv, malloc.
62623         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62624         headers.
62625         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62626         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62627         do not check for strerror.
62628         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62629         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62630         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62631         do not check for doprnt or vprintf.
62632         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62633         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62634
62635 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62636
62637         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62638         getversion.c should have been removed then, but was accidentally
62639         preserved.
62640
62641         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62642         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62643
62644 2003-09-08  Karl Berry  <karl@gnu.org>
62645
62646         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62647                 config, forget about prep.
62648
62649         * config/depcomp, missing: update from automake.
62650
62651 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62652
62653         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62654         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62655
62656 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62657
62658         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62659         copy_tm_result.  Bug reported by Simon Josefsson in
62660         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62661
62662 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62663
62664         * m4/time_r.m4: New file.
62665         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62666         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62667         is. Check for timegm declaration.
62668         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62669         Do not check for gmtime_r.
62670         Replace mktime if __mktime_internal does not exist and if mktime
62671         hasn't been replaced already.
62672
62673 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62674
62675         * lib/time_r.c, lib/time_r.h: New files.
62676
62677         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62678         __localtime_r.
62679         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62680         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62681
62682         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62683         __gmtime_r.
62684         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62685         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62686         Include <time_r.h>.
62687
62688         * lib/timegm.c: Switch to glibc implementation, with the following
62689         changes:
62690         [defined HAVE_CONFIG_H]: Include <config.h>.
62691         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62692         (__mktime_internal) [!defined _LIBC]: New decl.
62693         (__gmtime_r) [!defined _LIBC]: New macro and function.
62694         (timegm): Use a prototype, since gnulib assumes C89.
62695         Do not bother declaring tmp to be const, as it's not really usefu.
62696         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62697         (timegm): Declare only if HAVE_DECL_TIMEGM.
62698
62699 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62700
62701         * MODULES.html.sh (func_all_modules): Add time_r.
62702         * modules/time_r: New file.
62703         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62704         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62705
62706 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62707
62708         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62709         Bug reported by Lute Kamstra in
62710         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62711
62712         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62713         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62714         course with correspondingly smaller numbers for tomorrow and
62715         yesterday.  From Tadayoshi Funaba.  Originally installed into
62716         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62717         coreutils merge?).
62718
62719 2003-08-31  Simon Josefsson  <jas@extundo.com>
62720
62721         * modules/timegm: New file.
62722         * MODULES.html.sh (func_all_modules): Add timegm.
62723
62724 2003-08-31  Simon Josefsson  <jas@extundo.com>
62725
62726         * m4/timegm.m4: New file.
62727
62728 2003-08-31  Simon Josefsson  <jas@extundo.com>
62729
62730         * lib/timegm.h: New file.
62731         * lib/timegm.c: New file.  Based on
62732         wget-1.8.2/src/http.c:mktime_from_utc.
62733
62734 2003-08-31  Karl Berry  <karl@gnu.org>
62735
62736         * lib/argp.h: update from libc.
62737
62738 2003-08-28  Bruno Haible  <bruno@clisp.org>
62739
62740         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62741         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62742         followed by '#define fnmatch fnmatch_posix' gives an error.
62743
62744 2003-08-28  Bruno Haible  <bruno@clisp.org>
62745
62746         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62747         warning on QNX, which defines O_BINARY to 000000.
62748
62749 2003-08-27  Jim Meyering  <jim@meyering.net>
62750
62751         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62752         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62753         would fail after 32.  Reported by Danny Levinson.  Details here:
62754         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62755
62756 2003-08-24  Bruno Haible  <bruno@clisp.org>
62757
62758         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62759         MSVC7 <stdio.h> is included later.
62760
62761 2003-08-22  Simon Josefsson  <jas@extundo.com>
62762
62763         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62764
62765 2003-08-20  Karl Berry  <karl@gnu.org>
62766
62767         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62768
62769 2003-08-20  Bruno Haible  <bruno@clisp.org>
62770
62771         * modules/progname: New file.
62772         * MODULES.html.sh (func_all_modules): Add progname.
62773
62774 2003-08-20  Bruno Haible  <bruno@clisp.org>
62775
62776         * lib/progname.h: New file, from GNU gettext.
62777         * lib/progname.c: New file, from GNU gettext.
62778         * lib/progreloc.c: New file, from GNU gettext.
62779
62780 2003-08-19  Jim Meyering  <jim@meyering.net>
62781
62782         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62783         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62784
62785 2003-08-19  Bruno Haible  <bruno@clisp.org>
62786
62787         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62788         more.
62789
62790 2003-08-19  Bruno Haible  <bruno@clisp.org>
62791
62792         * lib/xstrdup.c: Assume <string.h> exists.
62793
62794 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62795
62796         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62797         in makefile rules.
62798
62799 2003-08-18  Jim Meyering  <jim@meyering.net>
62800
62801         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62802         * m4/lib-ld.m4: Likewise.
62803
62804 2003-08-18  Jim Meyering  <jim@meyering.net>
62805
62806         * lib/setenv.h: Indent nested cpp directive.
62807         * lib/vasnprintf.c: Remove trailing blanks.
62808
62809 2003-08-17  Simon Josefsson  <jas@extundo.com>
62810
62811         * modules/xstrndup: New file.
62812         * MODULES.html.sh (func_all_modules): Add xstrndup.
62813
62814 2003-08-17  Simon Josefsson  <jas@extundo.com>
62815
62816         * modules/argp: Fix autoconf macro name. Add more dependencies.
62817
62818 2003-08-17  Simon Josefsson  <jas@extundo.com>
62819
62820         * m4/xstrndup.m4: New file.
62821
62822 2003-08-17  Simon Josefsson  <jas@extundo.com>
62823
62824         * m4/argp.m4: New file.
62825
62826 2003-08-17  Simon Josefsson  <jas@extundo.com>
62827             Bruno Haible  <bruno@clisp.org>
62828
62829         * lib/xstrndup.h: New file.
62830         * lib/xstrndup.c: New file.
62831
62832 2003-08-17  Bruno Haible  <bruno@clisp.org>
62833
62834         * modules/strndup (Files, Include): Add lib/strndup.h.
62835
62836 2003-08-17  Bruno Haible  <bruno@clisp.org>
62837
62838         * modules/euidaccess (Files): Add lib/euidaccess.h.
62839
62840 2003-08-17  Bruno Haible  <bruno@clisp.org>
62841
62842         * lib/strndup.h: New file.
62843
62844 2003-08-17  Bruno Haible  <bruno@clisp.org>
62845
62846         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
62847         like AC_GNU_SOURCE.
62848         * modules/extensions (configure.ac): Comment out the invocation of
62849         gl_USE_SYSTEM_EXTENSIONS.
62850
62851 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62852
62853         Merges from coreutils, etc.
62854         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
62855         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
62856         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
62857         fixing a typo.
62858         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
62859         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
62860
62861 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62862
62863         Document merge from coreutils.
62864         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
62865         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
62866         * modules/utime: Add m4/utimes-null.m4.
62867
62868 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62869
62870         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
62871         space, undoing this 2003-08-12 change:
62872         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62873
62874 2003-08-16  Paul Eggert  <eggert@twinsun.com>
62875
62876         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
62877         strtoul.c from libc, undoing this 2003-08-12 change:
62878         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
62879
62880 2003-08-16  Jim Meyering  <jim@meyering.net>
62881
62882         Merges from coreutils.
62883         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
62884         prefix.  Adjust cache variables similarly.  Create 500 rather than
62885         just 300 files, to exercise bug on Darwin6.5, too.
62886         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
62887         $missing_dir.
62888         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
62889         AM_SYS_POSIX_TERMIOS.
62890         Reported by mkc@mathdogs.com.
62891         Also change use of $am_cv_sys_posix_termios
62892         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
62893         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
62894         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
62895         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
62896         in /proc/mounts until it finds one with matching device number.  This
62897         is unnecessary when the FILE argument *is* a mount point.  No stat call
62898         is necessary in that case.  So, disable the statvfs-testing code on
62899         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
62900         as RedHat bug# 84846.
62901         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62902         to 1MB, so as not to render systems with no stack size limit (e.g.,
62903         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62904         Include <unistd.h>.  On some systems,
62905         it is required for the definition of _SC_PAGESIZE.
62906
62907 2003-08-16  Jim Meyering  <jim@meyering.net>
62908
62909         Merge from coreutils.
62910         * lib/xstrtoimax.c: #else #if -> #elif.
62911         * lib/xstrtoumax.c: Likewise.
62912
62913 2003-08-16  Jim Meyering  <jim@meyering.net>
62914
62915         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
62916         * m4/utimes.m4: Removed.
62917         * m4/utimes-null.m4: Renamed from utimes.m4.
62918
62919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
62920         to 1MB, so as not to render systems with no stack size limit (e.g.,
62921         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
62922         Include <unistd.h>.  On some systems,
62923         it is required for the definition of _SC_PAGESIZE.
62924
62925 2003-08-16  Jim Meyering  <jim@meyering.net>
62926         and Paul Eggert  <eggert@cs.ucla.edu>
62927
62928         Merges from coreutils, etc.
62929
62930         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
62931         using the latest version from cvs.  This avoids problems with #line
62932         directives using a vendor (Sun) compiler.
62933         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
62934         Don't set GETGROUPS_LIB here; now it's
62935         done via getgroups.m4's wrapper function.
62936         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
62937         rather than just in sh-util/configure.in, so that the
62938         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
62939         same.
62940         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
62941         AC_FUNC_GETLOADAVG where to find getloadavg.c.
62942         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
62943         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
62944         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
62945         Remove code that is now done by the newly-required macros.
62946         Append $(EXEEXT) to DF_PROG.
62947         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
62948         Do not invoke or require the following here,
62949         since prereq.m4 or some gnulib .m4 now does this for us:
62950         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
62951         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
62952         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
62953         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
62954         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
62955         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
62956         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
62957         AC_FUNC_OBSTACK.
62958         Do not replace the following functions, as this is now the job
62959         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
62960         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
62961         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
62962         atexit getpass, strdup, getpagesize.
62963         Replace 'raise'.
62964         Do not check for the following functions, as this is now the job
62965         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
62966         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
62967         setregid.
62968         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
62969         Check for sys/sysctl.h.
62970         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
62971         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
62972         of checking for ssize_t ourselves.
62973
62974         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
62975         Require every macro that gnulib/modules/* suggests for us.
62976         (jm_PREREQ_ADDEXT): New macro.
62977         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
62978         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
62979
62980         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
62981         (gl_PHYSMEM): Use it.
62982         Also check for `table' function.
62983         Check for new headers and functions.
62984         Add check for sys/sysmp.h.
62985         With suggestions from Kaveh Ghazi.
62986         Ignore headers that are present but cannot be compiled.  This
62987         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
62988         C 5.4.
62989
62990 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62991
62992         Document merge from coreutils.
62993         * modules/userspec: Depend on posixver.
62994         * modules/strftime: Depend on tzset.
62995
62996 2003-08-15  Paul Eggert  <eggert@twinsun.com>
62997
62998         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
62999         rather than tab, after '#' in shell-script copyright notices.
63000         Suggested by Bruno Haible.
63001
63002 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63003
63004         * config/srclist-update: Use three spaces, rather than tab, after '#'
63005         in shell-script copyright notices.  Suggested by Bruno Haible.
63006         Remove unnecessary parenthesization in regular expression.
63007
63008 2003-08-15  Jim Meyering  <jim@meyering.net>
63009
63010         Merge from coreutils.
63011         * lib/xgethostname.c: Include <stdlib.h>.
63012         (xghostname): Don't exit for anything other than memory-related
63013         failure; just return NULL.
63014         * lib/userspec.c: Include "posixver.h".
63015         (parse_user_spec): Accept `.' as a separator only
63016         in pre-POSIX-200112 mode.
63017         * lib/strtoimax.c: Use #elif rather than #else #if.
63018         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
63019         Remove function, now that we can rely on a working tzset function.
63020         [!_LIBC]: Ensure that the required autoconf test has been run.
63021         [!defined _NL_CURRENT && HAVE_STRFTIME]:
63022         Use underlying_strftime for %r.
63023         * lib/sha.c: Merge in some clean-up and optimization changes from
63024         glibc.
63025         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
63026         Ensure that it is a multiple of 64.
63027         Rearrange loop exit tests so as to avoid performing an
63028         additional fread after encountering an error or EOF.
63029         * lib/realloc.c: Update copyright date.
63030
63031 2003-08-15  Jim Meyering  <jim@meyering.net>
63032         and Paul Eggert  <eggert@twinsun.com>
63033
63034         Merge from coreutils.
63035         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
63036         member but strut utmpx does not.  Needed for AIX 4.3.3.
63037         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
63038
63039 2003-08-15  Jim Meyering  <jim@meyering.net>
63040         and Paul Eggert  <eggert@cs.ucla.edu>
63041
63042         Merges from coreutils, etc.
63043         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
63044         Require gl_FUNC_TZSET_CLOBBER.
63045         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
63046         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
63047         members.
63048
63049 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63050
63051         Help the merge from coreutils.
63052         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
63053         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
63054         * m4/tzset.m4: Use it too.
63055
63056 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63057
63058         * modules/tzset: New file.
63059
63060 2003-08-14  Jim Meyering  <jim@meyering.net>
63061
63062         Merges from coreutils.
63063         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
63064         variable names, rather than @FNMATCH_H@.
63065         * modules/alloca: Likewise for $(ALLOCA_H).
63066
63067         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
63068         the three copies of the literal target, `fnmatch.h'.
63069         * modules/alloca (alloca.h): Likewise.
63070
63071 2003-08-14  Jim Meyering  <jim@meyering.net>
63072
63073         Merge from coreutils.
63074         * m4/tzset.m4: New file.
63075         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
63076         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
63077         otherwise, AIX 5.1 systems would end up using the latter.
63078         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
63079         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
63080         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
63081         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
63082
63083 2003-08-14  Jim Meyering  <jim@meyering.net>
63084
63085         Merge from coreutils.
63086         * lib/obstack.h: Whitespace changes.
63087         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
63088         and xcalloc return values.
63089         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
63090         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
63091         hang on OSF/1 5.1 for DIR on both local and remote file systems.
63092         Reported by (and fix confirmed by) Nelson H. F. Beebe.
63093         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63094         error from mntctl.
63095         Use mntctl's return value to drive the entry-processing loop, since
63096         we can't rely on the value of the vmt_length member in the last
63097         entry.  On some systems doing so could result in exhausting
63098         virtual memory.  Based in part on a patch from Mike Jetzer.
63099
63100 2003-08-14  Jim Meyering  <jim@meyering.net>
63101         and Paul Eggert  <eggert@twinsun.com>
63102
63103         Merges from coreutils, plus other fixes.
63104         * lib/physmem.c: Merge in portability changes from gcc/libiberty
63105         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
63106         for credits and details.  Thanks to Kaveh Ghazi for helping
63107         to keep these files in sync.
63108         (ARRAY_SIZE): Define it.
63109         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
63110         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
63111         (memcasecmp): Don't assume size_t fits in unsigned int.
63112         Remove casts and duplicate code.
63113         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
63114         (memcpy): Remove definition.
63115         Merge in some clean-up and optimization changes from glibc.
63116         [BLOCKSIZE]: Move definition to top of file.
63117         Ensure that it is a multiple of 64.
63118         Rearrange loop exit tests so as to avoid performing an
63119         additional fread after encountering an error or EOF.
63120         * lib/md5.h (md5_uintptr): Define.
63121         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
63122         return to the initial working directory.  Preserve errno
63123         for caller.
63124         * lib/idcache.c: Include "xalloc.h".
63125         (xmalloc, xrealloc): Remove decls.
63126         (getuser): Remove casts no longer required in C89.
63127         * lib/human.c: Include stdio.h, for sprintf.
63128         * lib/group-member.c: Include "xalloc.h".
63129         (xmalloc, xrealloc): Remove decls.
63130         (get_group_info): Remove casts no longer required in C89.
63131         * lib/getusershell.c (readname): Remove casts no longer required in
63132         C89.
63133         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
63134         * lib/getline.c: Whitespace fix, from coreutils.
63135
63136 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63137
63138         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
63139         Check for isascii.
63140
63141         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63142         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63143         Undo previous (whitespace-only) change.
63144
63145 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63146
63147         * lib/exclude.c: Include <ctype.h>
63148         (IN_CTYPE_DOMAIN): New macro.
63149         (is_space): New fn.
63150         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
63151         and empty lines.
63152
63153         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63154         Undo previous (whitespace-only) change.
63155
63156 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63157
63158         * config/srclist-update: Change update back to the old behavior,
63159         leaving whitespace alone.  Use one 'sed' command rather than a
63160         pipeline.
63161         (fixlicense): Now a variable, not a function.
63162         (remove_trailing_blanks): Remove.
63163         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63164         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63165         Undo previous (whitespace-only) change.
63166
63167 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63168
63169         Merge from coreutils.
63170         * modules/euidaccess: Add lib_SOURCES, include for new
63171         file euidaccess.h
63172
63173 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63174
63175         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63176         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63177         Normalize leading white space and remove trailing white space.
63178
63179         Merge from coreutils
63180         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63181
63182         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63183         0.12.1.  These files are now being upgraded automatically by
63184         ../config/srclist-update.
63185
63186 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63187
63188         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63189         Normalize leading white space and remove trailing white space.
63190         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63191         notice, as per ../config/srclist-update.
63192
63193         Merge from coreutils.
63194         * lib/euidaccess.h: New file.
63195         * lib/euidaccess.c: Include it.
63196         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63197         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63198         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63199
63200 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63201
63202         * config/srclist-update: Add copyright notice.
63203         (remove_id_lines, remove_trailing_blanks): New constants.
63204         (fixfile): Use them to normalize spacing a bit in copied files.
63205         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63206         Normalize leading white space and remove trailing white space.
63207
63208         * config/texinfo.tex: Sync with texinfo.
63209
63210         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63211         strtoul.c from libc, to merge coreutils whitespace changes.
63212
63213         * config/srclist.txt: Get the following m4 files from gettext:
63214         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63215         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63216         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63217         wint_t.m4.
63218
63219 2003-08-12  Karl Berry  <karl@gnu.org>
63220
63221         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63222         been made.
63223
63224 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63225
63226         * modules/gnu-source, m4/gnu-source.m4:
63227         Remove; we're assuming Autoconf 2.54 or later now.
63228         Suggested by Bruno Haible.
63229         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63230
63231 2003-08-11  Bruno Haible  <bruno@clisp.org>
63232
63233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63234
63235 2003-08-11  Bruno Haible  <bruno@clisp.org>
63236
63237         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63238         (vasnprintf): Use it instead of wcslen.
63239
63240 2003-08-11  Bruno Haible  <bruno@clisp.org>
63241
63242         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63243         value to ensure that _Bool promotes to int. Use #define for _Bool when
63244         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63245
63246 2003-08-10  Karl Berry  <karl@gnu.org>
63247
63248         * lib/regex.h: update from libc (whitespace fix).
63249
63250 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63251
63252         Merge some files from coreutils.  These changes were
63253         originally made by Jim Meyering.
63254         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63255         many older Unixes require this.
63256         * lib/alloca.c (alloca): Remove cast to argument of free;
63257         no longer needed in C89.
63258         * lib/alloca_.h, regex.h: Fix white space to match
63259         what GNU indent does.
63260
63261 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63262
63263         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63264         apparently Emacs's Unicode mode got confused before my 2003-08-05
63265         checkin.
63266
63267 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63268
63269         * m4/extensions.m4: New file.
63270         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63271         Require gl_USE_SYSTEM_EXTENSIONS.
63272         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63273         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63274
63275 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63276
63277         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63278         * modules/extensions, modules/gnu-source: New files.
63279         * modules/timespec, modules/unlocked-io: Depend on extensions.
63280
63281 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63282
63283         * modules/restrict: New file.
63284         * MODULES.html.sh (func_all_modules): Add restrict.
63285         * modules/regex: Depend on restrict.
63286
63287 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63288
63289         * m4/restrict.m4: New file.
63290         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63291
63292 2003-08-07  Bruno Haible  <bruno@clisp.org>
63293
63294         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63295         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63296
63297 2003-08-07  Bruno Haible  <bruno@clisp.org>
63298
63299         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63300         makes the module 'getndelim2' compatible with the module 'getline'.
63301
63302 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63303
63304         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63305         byte with "\201" to avoid glitches when editing that source file
63306         with multi-gnome-terminal.
63307
63308 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63309
63310         * lib/bumpalloc.h: Remove.
63311
63312 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63313
63314         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63315         * modules/bumpalloc: Remove.
63316
63317 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63318
63319         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63320         GNU coding style.
63321
63322         Merge from coreutils.
63323         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63324         1. From glibc.
63325         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63326         from Karl Berry, implemented by Jim Meyering.
63327         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63328         from Dmitry V. Levin.
63329         Remove anachronistic cast of xrealloc.
63330         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63331         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63332         type. Otherwise, it wouldn't compile with at least /bin/cc on
63333         ymp-cray-unicos9.0.2.X.
63334         Combine two mostly-identical uses of alloca into one.
63335         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63336
63337 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63338
63339         [From Emacs.]
63340
63341         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63342         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63343         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63344         obsolete NLIST_NAME_UNION.
63345         [__GNU__]: Undef BSD and FSCALE.
63346         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63347
63348 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63349
63350         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63351         an enum type, so that it's guaranteed to promote to int.  See:
63352         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63353
63354 2003-08-03  Karl Berry  <karl@gnu.org>
63355
63356         * config/depcomp: update from automake.
63357
63358 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63359
63360         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63361         (strerror): Don't assume that a printable int fits in 14 bytes.
63362
63363 2003-07-31  Bruno Haible  <bruno@clisp.org>
63364
63365         * modules/getpass-gnu: New file.
63366         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63367
63368 2003-07-31  Bruno Haible  <bruno@clisp.org>
63369
63370         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63371
63372 2003-07-24  Karl Berry  <karl@gnu.org>
63373
63374         * config/missing: update from automake.
63375
63376 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63377             Bruno Haible  <bruno@clisp.org>
63378
63379         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63380         * lib/getline.c (getline, getdelim): Likewise.
63381         Remove _GNU_SOURCE define; now it's defined in config.h through
63382         m4/getline.m4.
63383
63384 2003-07-23  Karl Berry  <karl@gnu.org>
63385
63386         * config/config.sub: update from prep.
63387
63388 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63389
63390         * modules/xalloc (Depends-on): Add exitfail.
63391         * modules/xmemcoll: Likewise.
63392
63393 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63394
63395         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63396         over-parenthesization in macros.
63397
63398         Sync with coreutils.
63399
63400         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63401         required by C99.
63402
63403         Use `exit_failure' for xalloc and xmemcoll instead of their own
63404         private exit-failure variables.
63405         * lib/xalloc.h (xalloc_exit_failure): Remove.
63406         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63407         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63408         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63409         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63410         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63411
63412 2003-07-20  Jim Meyering  <jim@meyering.net>
63413
63414         * modules/closeout (Depends-on): Add exitfail.
63415         Suggestion from Bruno Haible.
63416
63417 2003-07-19  Karl Berry  <karl@gnu.org>
63418
63419         * config/config.sub: update from prep.
63420
63421 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63422
63423         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63424         Remove.
63425         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63426         to test that it can stand by itself.  Include "exitfail.h".
63427         Clients should set exit_failure instead.
63428         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63429
63430 2003-07-18  Bruno Haible  <bruno@clisp.org>
63431
63432         * modules/getndelim2: New file.
63433         * modules/getline: Share files with module getndelim2.
63434         * modules/getnline: Depend on getndelim2 instead of sharing files with
63435         it. Add getnline.c to lib_SOURCES.
63436         * MODULES.html.sh (func_all_modules): Add getndelim2.
63437
63438 2003-07-18  Bruno Haible  <bruno@clisp.org>
63439
63440         * m4/getndelim2.m4: New file.
63441         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63442         invoke gl_PREREQ_GETNDELIM2.
63443         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63444         gl_PREREQ_GETNDELIM2.
63445         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63446         gl_GETNDELIM2.
63447
63448 2003-07-18  Bruno Haible  <bruno@clisp.org>
63449
63450         * lib/getndelim2.h: New file.
63451         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63452         getndelim2.h.
63453         (getndelim2): Make non-static. Change return type to ssize_t.
63454         * lib/getline.h: Change argument names.
63455         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63456         * lib/getnline.c: Include getndelim2.h.
63457
63458 2003-07-18  Andreas Schwab  <schwab@suse.de>
63459
63460         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63461
63462 2003-07-17  Karl Berry  <karl@gnu.org>
63463
63464         * config/config.sub: update from prep.
63465
63466 2003-07-17  Bruno Haible  <bruno@clisp.org>
63467
63468         * modules/getnline: New file.
63469         * modules/getline: Add lib/getndelim2.c to source file list.
63470         * MODULES.html.sh (func_all_modules): Add getnline.
63471
63472 2003-07-17  Bruno Haible  <bruno@clisp.org>
63473
63474         * m4/getnline.m4: New file.
63475
63476 2003-07-17  Bruno Haible  <bruno@clisp.org>
63477
63478         * m4/Makefile.am.in: Remove file.
63479         * m4/Makefile.am: Remove file.
63480         * m4/Makefile.in: Remove file.
63481
63482 2003-07-17  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/getnline.h: New file.
63485         * lib/getnline.c: New file.
63486         * lib/getndelim2.c: New file, extracted from getline.c.
63487         (getndelim2): Renamed from getdelim2, with added nmax argument.
63488         * lib/getline.c: Include getndelim2.c.
63489         (getdelim2): Moved out to getndelim2.c.
63490         (getline, getdelim): Update.
63491
63492 2003-07-17  Bruno Haible  <bruno@clisp.org>
63493
63494         * lib/Makefile.am: Remove file.
63495         * lib/Makefile.in: Remove file.
63496
63497 2003-07-17  Bruno Haible  <bruno@clisp.org>
63498
63499         * configure.in: Remove file.
63500         * Makefile.in: Remove file.
63501
63502 2003-07-17  Bruno Haible  <bruno@clisp.org>
63503
63504         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63505
63506 2003-07-16  Karl Berry  <karl@gnu.org>
63507
63508         * config/srclist-update: was running fixlicense twice, which caused
63509                 texinfo.tex to be nullified for some reason.  Simplify,
63510                 $gplsrc is no longer needed as far as I can see?
63511
63512 2003-07-16  Jim Meyering  <jim@meyering.net>
63513
63514         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63515
63516 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63517
63518         * config/srclist.txt: Get the following files from gettext-runtime/intl
63519         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63520         ref-del.sin.  From Bruno Haible.
63521         * config/srclist-update (fixfile): Change grep pattern again, since the
63522         previous fix didn't work (there was another trailing $).  Use
63523         '[$]' to escape the $s.
63524
63525 2003-07-15  Karl Berry  <karl@gnu.org>
63526
63527         * lib/vasnprintf.c: update from gettext.
63528
63529 2003-07-15  Karl Berry  <karl@gnu.org>
63530
63531         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63532         gets expanded when surrounded by '$'.
63533
63534 2003-07-15  Jim Meyering  <jim@meyering.net>
63535
63536         * modules/save-cwd: Don't depend on error.  From Derek Price.
63537
63538 2003-07-15  Jim Meyering  <jim@meyering.net>
63539
63540         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63541
63542 2003-07-14  Simon Josefsson  <jas@extundo.com>
63543
63544         * modules/mempcpy: New file.
63545         * MODULES.html.sh (func_all_modules): Add mempcpy.
63546
63547 2003-07-14  Simon Josefsson  <jas@extundo.com>
63548
63549         * m4/mempcpy.m4: New file.
63550
63551 2003-07-14  Simon Josefsson  <jas@extundo.com>
63552
63553         * lib/mempcpy.h: New file.
63554         * lib/mempcpy.c: New file.
63555
63556 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63557
63558         * modules/getdate, modules/posixtm: Depend on mktime.
63559
63560 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63561
63562         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63563         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63564         unicodeio.c, unicodeio.h, unlocked-io.h:
63565         Switch from LGPL to GPL.
63566
63567 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63568
63569         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63570         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63571         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63572         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63573         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63574         updated automatically by ../config/srclist-update.  This changes
63575         their license from LPGL to GPL.
63576
63577 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63578
63579         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63580         assumed to refer to the root of the most recent stable gettext version.
63581         * config/srclistvars.sh: Add defaults for eggert.
63582         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63583         Match "This program" as well as "The program".  This is needed
63584         for gettext.
63585
63586 2003-07-14  Jim Meyering  <jim@meyering.net>
63587
63588         Don't emit diagnostics.  Let callers do that.
63589         * lib/save-cwd.c: Don't include "error.h".
63590         (save_cwd): Don't call error.  Ensure that errno is valid
63591         when returning nonzero.
63592
63593         * lib/save-cwd.h (restore_cwd): Update prototype.
63594         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63595         Simplify.  Don't call error upon failure.  Let callers do that.
63596         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63597         when auditing is enabled.  But don't bother updating the #if.
63598
63599 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63600
63601         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63602         it breaks C++ compilation.
63603         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63604
63605 2003-07-10  Simon Josefsson  <jas@extundo.com>
63606
63607         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63608
63609 2003-07-10  Jim Meyering  <jim@meyering.net>
63610
63611         * m4/clock_time.m4: Remove trailing blank.
63612         * m4/intmax_t.m4: Likewise.
63613
63614 2003-07-10  Jim Meyering  <jim@meyering.net>
63615
63616         * lib/vasnprintf.c: Remove trailing blanks.
63617         Make cpp indentation consistent.
63618
63619 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63620
63621         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63622         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63623         Switch from LGPL to GPL.
63624
63625 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63626
63627         * config/srclist.txt: Sort sublists.  Add
63628         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63629         that differ from gnulib for one reason or another; we'd like this list
63630         to be smaller but for now let's document what we have.
63631
63632 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63633
63634         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63635         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63636         and sweeter "eval x=$x".
63637         * config/srclist.txt: Get lib/argp* from glibc.
63638
63639 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63640
63641         * lib/mktime.c: Fix some boundary cases and remove need for floating
63642         point.
63643
63644         Issue a compile-time diagnostic if time_t is floating point, or if
63645         two's complement arithmetic is not in effect, or if arithmetic
63646         right shift does not propagate the sign.  These assumptions were
63647         all in the original code but they weren't checked.
63648
63649         (TIME_T_MIDPOINT, verify): New macros.
63650         (__isleap): Remove; it has integer overflow problems.
63651         (leapyear): New function, without those problems.
63652         (ydhms_tm_diff): Remove; splitting into two parts.
63653         (ydhms_diff): New function, containing the arithmetic part of
63654         the old ydhms_tm_diff function.  Issue a compile-time
63655         diagnostic if we are not using C99 integer division.
63656         Avoid casts when possible.
63657         (guess_time_tm): New function, containing the checking part of
63658         the old ydhms_tm_diff function.  Return the new value, rather than
63659         the difference between it and the old.  Accept a new argument T
63660         so that *T specifies the old value.  Check for overflow in the result.
63661
63662         (__mktime_internal): Use a time_t offset, not a long int offset.
63663         This undoes the 2003-06-04 change, which is no longer needed now
63664         that we have better overflow checking.
63665         (localtime_offset): Likewise.
63666
63667         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63668         and long are 64-bit but int is only 32-bit.
63669         (ydhms_diff): Use long int to store year1 and yday1.
63670         Issue a compile-time diagnostic if long int is not wide enough.
63671
63672         (__mktime_internal): Use long int to store adjusted year and yday.
63673         Use plain C rather than preprocessor commands, if that doesn't
63674         affect efficiency.
63675         Check for overflow (and try to repair) after each probe
63676         rather than checking only at the very end.  This avoids some bugs
63677         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63678         does not equal GMT offset at maximum time).
63679         Use integer to check for overflow rather than floating point; this
63680         is more portable to non-IEEE hosts, and is a tad faster.
63681         When we detect that we are oscillating between two values,
63682         don't check whether tm_isdst has the requested value, since
63683         we already know the answer.  When tm_isdst has the wrong value,
63684         use a different heuristic to find the right one, based on the
63685         extreme values actually observed in practice in tz2003a,
63686         rather than the (overly optimistic) "previous 3 calendar quarters".
63687
63688         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63689         "T const" to accommodate glibc style.
63690         (check_result): Use less-confusing report format.  "long" -> "long int.
63691         (main): Likewise.
63692         Don't loop if the iteration overflows time_t.
63693         Allow a negative step in the iteration.
63694
63695 2003-07-06  Karl Berry  <karl@gnu.org>
63696
63697         * config/depcomp: update from automake.
63698         * config/config.sub: update from prep.
63699
63700 2003-07-03  Karl Berry  <karl@gnu.org>
63701
63702         * config/config.guess: update from prep.
63703
63704 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63705
63706         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63707         xreadlink.c now includes it unconditionally.
63708
63709 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63710
63711         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63712         having it depend on HAVE_SYS_TYPES_H.
63713
63714 2003-07-01  Bruno Haible  <bruno@clisp.org>
63715
63716         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63717         <sys/types.h> should be sufficient.
63718         Reported by Paul Eggert.
63719
63720 2003-06-26  Karl Berry  <karl@gnu.org>
63721
63722         * config/depcomp: update from automake.
63723
63724 2003-06-26  Bruno Haible  <bruno@clisp.org>
63725
63726         * modules/human: Depend on module stdbool.
63727
63728 2003-06-25  Bruno Haible  <bruno@clisp.org>
63729
63730         * modules/readlink: New file.
63731         * modules/xreadlink: Depend on it.
63732         * MODULES.html.sh (func_all_modules): Add readlink.
63733
63734 2003-06-25  Bruno Haible  <bruno@clisp.org>
63735
63736         * m4/readlink.m4: New file.
63737
63738 2003-06-25  Bruno Haible  <bruno@clisp.org>
63739
63740         * lib/readlink.c: New file.
63741
63742 2003-06-22  Karl Berry  <karl@gnu.org>
63743
63744         * config/srclist.txt: update mkinstalldirs from automake.
63745         * config/mkinstalldirs: update.
63746
63747 2003-06-22  Bruno Haible  <bruno@clisp.org>
63748
63749         Portability to mingw32.
63750         * m4/ssize_t.m4: New file, from GNU gettext.
63751         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63752         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63753
63754 2003-06-22  Bruno Haible  <bruno@clisp.org>
63755
63756         * modules/safe-read: Add m4/ssize_t.m4.
63757         * modules/xreadlink: Add m4/ssize_t.m4.
63758
63759 2003-06-20  Bruno Haible  <bruno@clisp.org>
63760
63761         Assume C89, so PARAMS isn't needed.
63762         * lib/unicodeio.h (PARAMS): Remove.
63763         * lib/unicodeio.c: Don't use PARAMS.
63764
63765 2003-06-18  Karl Berry  <karl@gnu.org>
63766
63767         * config/config.{guess,sub}: update from prep.
63768
63769 2003-06-18  Jim Meyering  <jim@meyering.net>
63770
63771         Merge changes from coreutils.
63772         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63773         Remove explicit declarations of xmalloc and realloc.
63774         Include xalloc.h.
63775         (read_utmp): Remove anachronistic cast of xmalloc.
63776
63777 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63778
63779         Assume C89, so PARAMS isn't needed.
63780         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63781         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63782         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63783         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63784         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63785         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63786         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63787         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63788         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63789         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63790         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63791         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63792         no longer needed. Anyway, config.h should always be included before any
63793         other file.
63794
63795 2003-06-11  Simon Josefsson  <jas@extundo.com>
63796
63797         * modules/sysexits: New file.
63798         * MODULES.html.sh (func_all_modules): Add sysexits.
63799
63800 2003-06-11  Simon Josefsson  <jas@extundo.com>
63801
63802         * lib/sysexit_.h: New file.
63803
63804 2003-06-11  Derek Price  <derek@ximbiot.com>
63805
63806         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63807         necessary.
63808
63809 2003-06-11  Bruno Haible  <bruno@clisp.org>
63810
63811         * m4/sysexits.m4: New file.
63812
63813 2003-06-10  Simon Josefsson  <jas@extundo.com>
63814
63815         * lib/argp.h: New file, from glibc.
63816         * lib/argp-ba.c: New file, from glibc.
63817         * lib/argp-eexst.c: New file, from glibc.
63818         * lib/argp-fmtstream.c: New file, from glibc.
63819         * lib/argp-fmtstream.h: New file, from glibc.
63820         * lib/argp-fs-xinl.c: New file, from glibc.
63821         * lib/argp-help.c: New file, from glibc.
63822         * lib/argp-namefrob.h: New file, from glibc.
63823         * lib/argp-parse.c: New file, from glibc.
63824         * lib/argp-pv.c: New file, from glibc.
63825         * lib/argp-pvh.c: New file, from glibc.
63826         * lib/argp-xinl.c: New file, from glibc.
63827
63828 2003-06-10  Simon Josefsson  <jas@extundo.com>
63829
63830         * modules/strchrnul: New file.
63831
63832 2003-06-10  Simon Josefsson  <jas@extundo.com>
63833
63834         * modules/argp: New file.
63835
63836 2003-06-10  Simon Josefsson  <jas@extundo.com>
63837
63838         * m4/strchrnul.m4: New file.
63839
63840 2003-06-10  Simon Josefsson  <jas@extundo.com>
63841
63842         * lib/strchrnul.h: New file.
63843         * lib/strchrnul.c: New file.
63844
63845 2003-06-10  Bruno Haible  <bruno@clisp.org>
63846
63847         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
63848
63849 2003-06-07  Karl Berry  <karl@gnu.org>
63850
63851         * config/config.{guess,sub}: update from prep.
63852
63853 2003-06-07  Jim Meyering  <jim@meyering.net>
63854
63855         * modules/strtod: Use $(...) notation, not @...@ for
63856         AC_REPLACE'd variables.
63857         * modules/localcharset: Likewise.
63858
63859 2003-06-07  Jim Meyering  <jim@meyering.net>
63860
63861         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
63862         in place of my name in the copyright comment.
63863         Remove definition and uses of __P.
63864
63865         From coreutils.
63866         * lib/stat.c: Don't declare xmalloc explicitly.
63867         Instead, include "xalloc.h".
63868         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
63869         xrealloc, and xcalloc return values.
63870         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
63871         Improve comment.
63872         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
63873
63874 2003-06-07  Bruno Haible  <bruno@clisp.org>
63875
63876         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
63877         avoid AC_CONFIG_LINKS.
63878         * modules/fnmatch (Makefile.am): Use explicit creation rule for
63879         fnmatch.h, to avoid AC_CONFIG_LINKS.
63880         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
63881
63882 2003-06-07  Bruno Haible  <bruno@clisp.org>
63883
63884         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
63885         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
63886         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63887         directory.
63888         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
63889         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
63890         directory.
63891
63892 2003-06-06  Jim Meyering  <jim@meyering.net>
63893
63894         Merge from coreutils.
63895         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
63896         Consolidate declarations and initializations of *_base* locals.
63897
63898         Merge from coreutils.
63899         This avoids a core dump on systems without GNU putenv,
63900         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
63901         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
63902         (unsetenv): New static function, from GNU libc.
63903         (rpl_putenv): Use it.
63904
63905         * lib/modechange.c: Remove trailing blanks.
63906
63907         Merge from coreutils.
63908         * lib/fsusage.c: Remove declaration of statfs.
63909         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
63910
63911         * lib/posixtm.c: Include <stdbool.h> unconditionally.
63912
63913 2003-06-06  Jim Meyering  <jim@meyering.net>
63914
63915         * lib/stdbool_.h: Renamed from stdbool.h.in.
63916
63917 2003-06-06  Jim Meyering  <jim@meyering.net>
63918             Bruno Haible  <bruno@clisp.org>
63919
63920         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
63921         Adjust Makefile.am snippet not to redirect directly to target.
63922         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
63923
63924 2003-06-05  Paul Eggert  <eggert@twinsun.com>
63925
63926         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
63927         mismatch, look in future quarters as well as past.  This fixes a
63928         bug when processing fall-backwards gaps immediately after a long
63929         period of daylight-saving time.
63930
63931         * lib/mktime.c: Assume freestanding C89 or better.
63932         (HAVE_LIMITS_H): Remove.  Assume it's 1.
63933         (__P): Remove; not used.
63934         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
63935         (mktime, not_equal_tm, print_tm, check_result,
63936         main): Use prototypes.  Use const * where appropriate.
63937         (main): Fix typo in testing code that uncovered by above changes.
63938         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
63939
63940 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63941
63942         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
63943         locale.h, localeconv.  This merges changes from coreutils.
63944
63945         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
63946         It can be removed after the next Autoconf is released.
63947         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
63948         needed.
63949
63950 2003-06-04  Paul Eggert  <eggert@twinsun.com>
63951
63952         * lib/mktime.c: Fix Debian bug 177940
63953         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
63954         (localtime_offset): Now long int, not time_t, because we want it
63955         to be guaranteed to be signed.  All uses changed.
63956         (__mktime_internal): If overflow would occur when adding offset,
63957         don't add it.
63958
63959         Merge 'human' changes from coreutils.  Rewrite to support
63960         locale-specific notations like thousands separators.
63961         * lib/human.c: Simplify authorship notice.
63962         Include human.h immediately after config.h.
63963         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
63964         <limits.h>: Do not include, since human.h does.
63965         (SIZE_MAX, UINTMAX_MAX): New macros.
63966         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
63967         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
63968         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
63969         (power_letter): Renamed from suffixes.
63970         (generate_suffix_backwards): Remove.
63971         (adjust_value): Now takes int style (because of human.h changes)
63972         and long double value (for greater precision on some platforms).
63973         (group_number): New function.
63974         (human_readable): Use it.  Use integer options, not enum.
63975         Put the options before the sizes in the arg list.
63976         Support all the new options.
63977         The old human_readable function has been removed;
63978         use inttostr.h instead.
63979         (human_readable, default_block_size, humblock):
63980         Use uintmax_t, not int, for block sizes.
63981         (human_readable_inexact, block_size_types): Remove.
63982         (block_size_opts): New constant.
63983         (human_options): Renamed from human_block_size, with new signature
63984         that allows block sizes up to UINTMAX_MAX.  All callers changed.
63985         * lib/human.h: Add copyright and authorship notice.
63986         Include <limits.h> and <stdbool.h> unconditionally.
63987         (PARAMS): Remove.  All uses removed.
63988         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
63989         (enum human_inexact_style): Remove tag; now a nameless enum.
63990         (human_floor, human_ceiling, human_round_to_even): Now have
63991         values 2, 0, 1 rather than -1, 1, 0.
63992         (human_group_digits, human_suppress_point_zero, human_autoscale,
63993         human_base_1024, human_SI, human_B): New constants.
63994         (human_readable_inexact, human_block_size): Remove.
63995         (human_readable): Size args are now uintmax_t, not int.
63996         (human_options): New decl.
63997
63998         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
63999         unnecessary now that we assume C89 or better.  This change
64000         imported from coreutils.
64001
64002         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64003         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
64004         in the 2003-05-30 sync from glibc.
64005
64006         .h files should stand alone, but we shouldn't include <sys/types.h>
64007         if we can get away with just <stddef.h>.
64008
64009         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
64010         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
64011         rather than <sys/types.h>, as we merely need size_t.
64012         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
64013         to get size_t.
64014         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
64015         Include <stdio.h>, to get FILE.
64016         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
64017         memcasecmp.h has included <stddef.h> and all we need is size_t.
64018         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
64019         our interface, instead of including <sys/types.h>
64020
64021 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64022
64023         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
64024         now, as glibc mktime is buggy on non-glibc systems.
64025
64026 2003-06-03  Karl Berry  <karl@gnu.org>
64027
64028         * config/config.sub: update from prep.
64029
64030 2003-06-02  Paul Eggert  <eggert@twinsun.com>
64031
64032         [from coreutils]
64033         Fix some minor time-related bugs with POSIX time arguments.
64034         Some valid time stamps were being rejected (notably -1, and
64035         time stamps before 1900 on 64-bit hosts).  And some invalid
64036         time stamps were being accepted, e.g. September 31.
64037
64038         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
64039         that we can return (time_t) -1 successfully.
64040         * lib/posixtm.c: Likewise.
64041         [HAVE_STDBOOL_H]: Include <stdbool.h>.
64042         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
64043         (t): Remove static var.
64044         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
64045         of static var.  All uses changed.
64046         (year): Do not reject years before 1900; they can occur with
64047         64-bit time_t.
64048         (posix_time_parse): Do not check for out-of-range components;
64049         that is now the caller's responsibility, since our checks were
64050         only approximations.
64051         (posixtime): Use mktime to check for out-of-range components,
64052         since it knows them exactly.
64053         If mktime returns (time_t) -1, check whether an error actually occurred
64054         by invoking localtime on -1.
64055         (main) [TEST_POSIXTIME]: Check for input data errors, and report
64056         posixtime failures better.
64057         Improve the test data (in comments only).
64058
64059 2003-06-02  Karl Berry  <karl@gnu.org>
64060
64061         * config/mkinstalldirs (version): new variable.
64062         (--version): new option.
64063         (usage): improve message.
64064
64065 2003-05-30  Karl Berry  <karl@gnu.org>
64066
64067         * lib/mktime.c: update from libc.
64068
64069 2003-05-30  Bruno Haible  <bruno@clisp.org>
64070
64071         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
64072         * config/config.rpath: Upgrade to gettext-0.12.1.
64073
64074 2003-05-30  Bruno Haible  <bruno@clisp.org>
64075
64076         * m4/gettext.m4: Upgrade to gettext-0.12.1.
64077         * m4/nls.m4: New file, from gettext-0.12.1.
64078         * m4/po.m4: New file, from gettext-0.12.1.
64079         * m4/progtest.m4: Upgrade to gettext-0.12.1.
64080
64081 2003-05-30  Bruno Haible  <bruno@clisp.org>
64082
64083         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
64084         * lib/localcharset.h: Likewise.
64085         * lib/localcharset.c: Likewise.
64086
64087 2003-05-29  Karl Berry  <karl@gnu.org>
64088
64089         * config/config.rpath: update from gettext.
64090
64091 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64092
64093         Assume the headers required for C89 freestanding compilers.
64094         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
64095         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
64096         * m4/human.m4 (gl_HUMAN): Likewise.
64097         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
64098         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
64099         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64100         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
64101         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64102         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
64103
64104 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64105
64106         Assume the headers required for C89 freestanding compilers.
64107         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
64108         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
64109         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
64110         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
64111         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
64112         define, since <limits.h> is guaranteed to do that.
64113         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
64114         * lib/exclude.c: Include <stdbool.h> unconditionally.
64115         * lib/tempname.c: Include <stddef.h> unconditionally.
64116         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
64117         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
64118         <stddef.h> does that.
64119         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
64120         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
64121         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
64122         needed.
64123         * lib/xstrtol.c: Likewise.
64124         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
64125         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
64126
64127         * lib/addext.c (addext): Use assignment rather than cast, to avoid
64128         warnings on some platforms.
64129
64130         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64131         arbitrarily.
64132
64133 2003-05-26  Jim Meyering  <jim@meyering.net>
64134
64135         Merge in a change from coreutils:
64136         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
64137         that is guaranteed to be `no'.  Use `no_such_member' to indicate
64138         that condition, rather than `-1' which is slightly misleading.
64139         Change the name of the cache variable to have the gl_ prefix.
64140         Prompted by a patch from Richard Dawe for DJGPP.
64141
64142 2003-05-24  Karl Berry  <karl@gnu.org>
64143
64144         * config/config.guess: update from prep.
64145
64146 2003-05-22  Karl Berry  <karl@gnu.org>
64147
64148         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
64149
64150 2003-05-20  Karl Berry  <karl@gnu.org>
64151
64152         * config/config.guess: update from prep.
64153
64154 2003-05-18  Karl Berry  <karl@gnu.org>
64155
64156         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
64157         might actually be set by the user.
64158
64159         * config/depcomp, install-sh, mdate-sh: update from automake.
64160
64161 2003-05-17  Bruno Haible  <bruno@clisp.org>
64162
64163         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64164         invalid expansion for AC_EGREP_CPP.
64165         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64166         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64167         Suggested by Akim Demaille <akim@epita.fr> in
64168         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64169
64170 2003-05-12  Jim Meyering  <jim@meyering.net>
64171
64172         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64173         the space-padded-by-default conversion specifiers, %e, %k, %l.
64174
64175 2003-05-12  Bruno Haible  <bruno@clisp.org>
64176
64177         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64178         the string is longer than 4 KB.
64179
64180 2003-05-11  Karl Berry  <karl@gnu.org>
64181
64182         * config/config.{guess,sub}: update from prep.
64183
64184 2003-05-09  Bruno Haible  <bruno@clisp.org>
64185
64186         * modules/error: Add m4/strerror_r.m4 to file list.
64187
64188 2003-05-03  Bruno Haible  <bruno@clisp.org>
64189
64190         Upgrade to Unicode-4.0.
64191         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64192         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64193         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64194         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64195         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64196         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64197         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64198         Change width of U+E0100..U+E01EF from 1 to 0.
64199
64200 2003-04-25  Jim Meyering  <jim@meyering.net>
64201
64202         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64203         of type size_t, not int.
64204
64205 2003-04-25  Bruno Haible  <bruno@clisp.org>
64206
64207         * lib/copy-file.c: Include <stddef.h>, for size_t.
64208
64209 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64210
64211         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64212         code which expansion is under static control.  Patch imported from
64213         Akim Demaille's patch to Bison; see
64214         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64215
64216 2003-04-14  Bruno Haible  <bruno@clisp.org>
64217
64218         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64219
64220 2003-04-11  Jim Meyering  <jim@meyering.net>
64221
64222         Merge changes from Coreutils.
64223
64224         2003-03-22  Jim Meyering  <jim@meyering.net>
64225
64226         * lib/strftime.c (widen): Cast alloca return value to proper type.
64227
64228         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64229
64230         From GNU libc.
64231         * lib/strftime.c (my_strftime): Handle very large width
64232         specifications for numeric values correctly.  Improve checks for
64233         overflow.
64234
64235         2003-01-19  Jim Meyering  <jim@meyering.net>
64236
64237         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64238         definitions.
64239         (nl_get_alt_digit) [! defined my_strftime]: Define.
64240         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64241         _nl_get_alt_digit and _nl_get_walt_digit.
64242
64243         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64244         libc. These changes have no effect outside of _LIBC.
64245
64246 2003-04-10  Bruno Haible  <bruno@clisp.org>
64247
64248         * modules/findprog: New file.
64249         * MODULES.html.sh (func_all_modules): Add it.
64250
64251 2003-04-10  Bruno Haible  <bruno@clisp.org>
64252
64253         * m4/findprog.m4: New file.
64254         * m4/eaccess.m4: New file.
64255
64256 2003-04-10  Bruno Haible  <bruno@clisp.org>
64257
64258         * lib/findprog.h: New file, from GNU gettext.
64259         * lib/findprog.c: New file, from GNU gettext.
64260
64261 2003-04-05  Jim Meyering  <jim@meyering.net>
64262
64263         Merge changes from Coreutils.
64264
64265         * lib/exclude.h (PARAMS): Remove definition and uses.
64266         * lib/exclude.c: Remove uses of `PARAMS'.
64267
64268         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64269         Add test-cases for DOS filenames. Declare program_name.
64270         (main): Set up program_name.  Patch by Rich Dawe.
64271
64272         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64273         error from mntctl.
64274         Use mntctl's return value to drive the entry-processing loop, since
64275         we can't rely on the value of the vmt_length member in the last
64276         entry.  On some systems doing so could result in exhausting
64277         virtual memory.  Based in part on a patch from Mike Jetzer.
64278
64279 2003-04-04  Bruno Haible  <bruno@clisp.org>
64280
64281         * modules/linebreak: New file.
64282         * MODULES.html.sh (func_all_modules): Add it.
64283
64284 2003-04-04  Bruno Haible  <bruno@clisp.org>
64285
64286         * m4/linebreak.m4: New file.
64287
64288 2003-04-04  Bruno Haible  <bruno@clisp.org>
64289
64290         * lib/linebreak.h: New file, from GNU gettext.
64291         * lib/linebreak.c: New file, from GNU gettext with slight
64292         modifications.
64293         * lib/lbrkprop.h: New file, from GNU gettext.
64294
64295 2003-04-03  Bruno Haible  <bruno@clisp.org>
64296
64297         * modules/utf8-ucs4: New file.
64298         * modules/utf16-ucs4: New file.
64299         * modules/ucs4-utf8: New file.
64300         * modules/ucs4-utf16: New file.
64301         * MODULES.html.sh (func_all_modules): Add them.
64302
64303 2003-04-03  Bruno Haible  <bruno@clisp.org>
64304
64305         * m4/utf-ucs4.m4: New file.
64306         * m4/ucs4-utf.m4: New file.
64307
64308 2003-04-03  Bruno Haible  <bruno@clisp.org>
64309
64310         * lib/utf8-ucs4.h: New file, from GNU gettext.
64311         * lib/utf16-ucs4.h: New file, from GNU gettext.
64312         * lib/ucs4-utf8.h: New file, from GNU gettext.
64313         * lib/ucs4-utf16.h: New file, from GNU gettext.
64314
64315 2003-04-02  Bruno Haible  <bruno@clisp.org>
64316
64317         * modules/binary-io: New file.
64318         * MODULES.html.sh (func_all_modules): Add it.
64319
64320 2003-04-02  Bruno Haible  <bruno@clisp.org>
64321
64322         * lib/binary-io.h: New file, from GNU gettext.
64323
64324 2003-04-01  Bruno Haible  <bruno@clisp.org>
64325
64326         * modules/pathname: New file.
64327         * MODULES.html.sh (func_all_modules): Add it.
64328
64329 2003-04-01  Bruno Haible  <bruno@clisp.org>
64330
64331         * lib/pathname.h: New file, from GNU gettext.
64332         * lib/concatpath.c: New file, from GNU gettext.
64333
64334 2003-03-30  Bruno Haible  <bruno@clisp.org>
64335
64336         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64337
64338 2003-03-30  Bruno Haible  <bruno@clisp.org>
64339
64340         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64341         function chown() doesn't exist.
64342
64343 2003-03-28  Bruno Haible  <bruno@clisp.org>
64344
64345         * modules/copy-file: New file.
64346         * MODULES.html.sh (func_all_modules): Add it.
64347
64348 2003-03-28  Bruno Haible  <bruno@clisp.org>
64349
64350         * m4/copy-file.m4: New file.
64351
64352 2003-03-28  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/copy-file.h: New file, from GNU gettext.
64355         * lib/copy-file.c: New file, from GNU gettext.
64356
64357 2003-03-18  Jim Meyering  <jim@meyering.net>
64358
64359         * lib/quote.c (quote_n): Fix typo in comment.
64360
64361 2003-03-18  Bruno Haible  <bruno@clisp.org>
64362
64363         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64364         checking.
64365         * m4/onceonly_2_57.m4: Likewise.
64366
64367 2003-03-17  Bruno Haible  <bruno@clisp.org>
64368
64369         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64370         (m4_quote): Remove macro.
64371         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64372
64373 2003-03-14  Jim Meyering  <jim@meyering.net>
64374
64375         Merge changes from Coreutils.
64376         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64377         to be const, in order to avoid warnings.
64378         (obstack_room): Likewise.
64379         (obstack_empty_p): Likewise.
64380
64381 2003-03-14  Bruno Haible  <bruno@clisp.org>
64382
64383         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64384         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64385
64386 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64387
64388         Merge changes from Bison.
64389         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64390         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64391         when compiling Bison 1.875's `bitset bset = obstack_alloc
64392         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64393         * lib/hash.c: Include <stdbool.h> unconditionally.
64394
64395 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64396
64397         * m4/onceonly.m4 (m4_quote): New macro.
64398         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64399         Quote AC_FOREACH variable-expansions properly.
64400
64401 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64402
64403         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64404
64405 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64406
64407         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64408         Reported by Bruce Becker; see:
64409         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64410
64411 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64412             Bruno Haible  <bruno@clisp.org>
64413
64414         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64415         Reported by John Hughes, see
64416         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64417
64418 2003-02-20  Bruno Haible  <bruno@clisp.org>
64419
64420         * MODULES.html.sh (func_all_modules): Add poll.
64421
64422 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64423
64424         * modules/poll: New file.
64425
64426 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64427
64428         * lib/poll_.h: New file.
64429         * lib/poll.c: New file.
64430
64431 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64432
64433         * m4/poll.m4: New file.
64434
64435 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64436
64437         * modules/mathl: New file.
64438
64439 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64440
64441         * lib/mathl.h: New file.
64442         * lib/acosl.c: New file.
64443         * lib/asinl.c: New file.
64444         * lib/atanl.c: New file.
64445         * lib/ceill.c: New file.
64446         * lib/cosl.c: New file.
64447         * lib/expl.c: New file.
64448         * lib/floorl.c: New file.
64449         * lib/frexpl.c: New file.
64450         * lib/ldexpl.c: New file.
64451         * lib/logl.c: New file.
64452         * lib/sincosl.c: New file.
64453         * lib/sinl.c: New file.
64454         * lib/sqrtl.c: New file.
64455         * lib/tanl.c: New file.
64456         * lib/trigl.c: New file.
64457         * lib/trigl.h: New file.
64458
64459 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64460
64461         * m4/mathl.m4: New file.
64462
64463 2003-02-18  Bruno Haible  <bruno@clisp.org>
64464
64465         * MODULES.html.sh (func_all_modules): Add mathl.
64466
64467 2003-02-17  Bruno Haible  <bruno@clisp.org>
64468
64469         * modules/mkdtemp: New module.
64470         * MODULES.html.sh (func_all_modules): Add it.
64471
64472 2003-02-17  Bruno Haible  <bruno@clisp.org>
64473
64474         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64475
64476 2003-02-17  Bruno Haible  <bruno@clisp.org>
64477
64478         * lib/mkdtemp.h: New file, from GNU gettext.
64479         * lib/mkdtemp.c: New file, from GNU gettext.
64480
64481 2003-02-02  Jim Meyering  <jim@meyering.net>
64482
64483         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64484         e.g. glibc-2.2.93.
64485
64486 2003-01-31  Bruno Haible  <bruno@clisp.org>
64487
64488         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64489         'rpl_rename'.
64490         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64491         'rpl_strnlen'.
64492         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64493         'rpl_strtod'.
64494         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64495         'rpl_utime'.
64496
64497 2003-01-31  Bruno Haible  <bruno@clisp.org>
64498
64499         * lib/rename.c: #undef rename before defining rpl_rename.
64500         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64501
64502 2003-01-30  Bruno Haible  <bruno@clisp.org>
64503
64504         * modules/vasnprintf, modules/vasprintf: New modules.
64505         * MODULES.html.sh (func_all_modules): Add them.
64506
64507 2003-01-30  Bruno Haible  <bruno@clisp.org>
64508
64509         * m4/signed.m4: New file, from GNU gettext.
64510         * m4/longdouble.m4: New file, from GNU gettext.
64511         * m4/wchar_t.m4: New file, from GNU gettext.
64512         * m4/wint_t.m4: New file, from GNU gettext.
64513         * m4/vasnprintf.m4: New file.
64514         * m4/vasprintf.m4: New file.
64515
64516 2003-01-30  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/printf-args.h: New file, from GNU gettext.
64519         * lib/printf-args.c: New file, from GNU gettext.
64520         * lib/printf-parse.h: New file, from GNU gettext.
64521         * lib/printf-parse.c: New file, from GNU gettext.
64522         * lib/vasnprintf.h: New file, from GNU gettext.
64523         * lib/vasnprintf.c: New file, from GNU gettext.
64524         * lib/asnprintf.c: New file, from GNU gettext.
64525         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64526         * lib/vasprintf.c: New file, from GNU gettext.
64527         * lib/asprintf.c: New file, from GNU gettext.
64528
64529 2003-01-29  Bruno Haible  <bruno@clisp.org>
64530
64531         * modules/stpncpy: New module.
64532         * MODULES.html.sh (func_all_modules): Add it.
64533
64534 2003-01-29  Bruno Haible  <bruno@clisp.org>
64535
64536         * m4/stpncpy.m4: New file.
64537
64538 2003-01-29  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64541         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64542
64543 2003-01-28  Bruno Haible  <bruno@clisp.org>
64544
64545         * modules/c-ctype: New module.
64546         * MODULES.html.sh (func_all_modules): Add it.
64547
64548 2003-01-28  Bruno Haible  <bruno@clisp.org>
64549
64550         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64551         Paul Eggert.
64552         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64553         Paul Eggert.
64554
64555 2003-01-27  Bruno Haible  <bruno@clisp.org>
64556
64557         * modules/xsetenv: New module.
64558         * MODULES.html.sh (func_all_modules): Add it.
64559
64560 2003-01-27  Bruno Haible  <bruno@clisp.org>
64561
64562         * lib/xsetenv.h: New file, from GNU gettext.
64563         * lib/xsetenv.c: New file, from GNU gettext.
64564
64565 2003-01-23  Jim Meyering  <jim@meyering.net>
64566
64567         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64568         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64569
64570 2003-01-23  Bruno Haible  <bruno@clisp.org>
64571
64572         * modules/minmax: New module.
64573         * MODULES.html.sh (func_all_modules): Add it.
64574
64575 2003-01-23  Bruno Haible  <bruno@clisp.org>
64576
64577         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64578         Eggert.
64579
64580 2003-01-22  Bruno Haible  <bruno@clisp.org>
64581
64582         * modules/exit: New module.
64583         * MODULES.html.sh (func_all_modules): Add it.
64584
64585 2003-01-22  Bruno Haible  <bruno@clisp.org>
64586
64587         * lib/exit.h: New file, from GNU gettext.
64588
64589 2003-01-19  Bruno Haible  <bruno@clisp.org>
64590
64591         * gnulib-tool: Recognize option --extract-maintainer.
64592         (func_get_maintainer): New function.
64593         * modules/*: Add Maintainer entry.
64594
64595 2003-01-16  Jim Meyering  <jim@meyering.net>
64596
64597         * m4/regex.m4: The `regex' struct is both input and output.
64598         Initialize it before each use.  Patch by Tim Waugh.
64599
64600 2003-01-16  Bruno Haible  <bruno@clisp.org>
64601
64602         * MODULES.html.sh: Add a table of contents. Add the module name as
64603         leftmost column. Add hyperlinks.
64604
64605 2003-01-15  Bruno Haible  <bruno@clisp.org>
64606
64607         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64608
64609 2003-01-15  Bruno Haible  <bruno@clisp.org>
64610
64611         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64612         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64613         suffix.
64614
64615 2003-01-15  Bruno Haible  <bruno@clisp.org>
64616
64617         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64618
64619 2003-01-15  Bruno Haible  <bruno@clisp.org>
64620
64621         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64622         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64623
64624 2003-01-14  Jim Meyering  <jim@meyering.net>
64625
64626         * lib/same.c (same_name): Tweak a comment.
64627
64628 2003-01-14  Bruno Haible  <bruno@clisp.org>
64629
64630         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64631         when a string comparison is sufficient.
64632
64633 2003-01-14  Bruno Haible  <bruno@clisp.org>
64634
64635         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64636         'unsigned int'.
64637
64638 2003-01-14  Bruno Haible  <bruno@clisp.org>
64639
64640         * lib/hash-pjw.c: Add comment about low quality of this function.
64641
64642 2003-01-13  Bruno Haible  <bruno@clisp.org>
64643
64644         * modules/stpcpy: Distribute lib/stpcpy.h.
64645         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64646
64647 2003-01-13  Bruno Haible  <bruno@clisp.org>
64648
64649         * modules/*: Add a description.
64650         * modules/strpbrk: Fix Makefile.am snippet.
64651         * modules/strtoimax: Fix dependencies.
64652         * modules/strtoumax: Likewise.
64653
64654 2003-01-13  Bruno Haible  <bruno@clisp.org>
64655
64656         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64657         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64658         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64659
64660 2003-01-13  Bruno Haible  <bruno@clisp.org>
64661
64662         * gnulib-tool (func_create_testdir): Store config/* files in the main
64663         directory.
64664         * config.rpath: Move to ...
64665         * config/config.rpath: ... here.
64666         * modules/gettext: Contains config/config.rpath, not config.rpath.
64667         * modules/iconv: Likewise.
64668
64669 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64670
64671         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64672         to avoid collisions with libcurses and libreadline.
64673
64674         * m4/getstr.m4: Remove.
64675         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64676
64677 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64678
64679         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64680         to avoid collisions with libcurses and libreadline.
64681
64682         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64683         * lib/getstr.h, getstr.c: Remove.
64684         * lib/getline.c: Include "getline.h", to check interface.
64685         Move body of old getstr.c here: this defines MIN_CHUNK and
64686         declares getdelim2, which is renamed from getstr.
64687         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64688
64689         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64690         All uses changed.
64691         * lib/linebuffer.h: Likewise.
64692         (readline): Remove backward-compatibility macro.
64693
64694 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64695
64696         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64697         to avoid collisions with libcurses and libreadline.
64698         * getstr: Remove.
64699         * MODULES.html.sh: Remove getstr.
64700         * modules/getline: Depend on unlocked-io, not getstr.
64701
64702 2003-01-12  Jim Meyering  <jim@meyering.net>
64703
64704         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64705
64706 2003-01-10  Bruno Haible  <bruno@clisp.org>
64707
64708         * modules/alloca: Change Makefile.am requirements. Simplify Include
64709         requirements. Add lib/alloca_.h to file list.
64710
64711 2003-01-10  Bruno Haible  <bruno@clisp.org>
64712
64713         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64714
64715 2003-01-10  Bruno Haible  <bruno@clisp.org>
64716
64717         * lib/alloca_.h: New file.
64718         * lib/getdate.y: Unconditionally include alloca.h.
64719         * lib/makepath.c: Likewise.
64720         * lib/setenv.c: Likewise.
64721         * lib/userspec.c: Likewise.
64722
64723 2003-01-09  Karl Berry  <karl@gnu.org>
64724
64725         * MODULES.html.sh: include `dirname $0` in PATH, to find
64726         gnulib-tool.
64727
64728 2003-01-09  Bruno Haible  <bruno@clisp.org>
64729
64730         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64731         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64732
64733 2003-01-09  Bruno Haible  <bruno@clisp.org>
64734
64735         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64736
64737 2003-01-09  Bruno Haible  <bruno@clisp.org>
64738
64739         * lib/stdbool.h.in: New file.
64740
64741 2003-01-09  Bruno Haible  <bruno@clisp.org>
64742
64743         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64744         * MODULES.html.sh: Likewise.
64745
64746 2003-01-08  Jim Meyering  <jim@meyering.net>
64747
64748         * lib/full-write.c: Undefine and define-away `const' after inclusion
64749         of errno.h, not before.  Suggestion from Bruno Haible.
64750
64751 2003-01-08  Bruno Haible  <bruno@clisp.org>
64752
64753         * modules/full-read: Depend on full-write.
64754
64755 2003-01-08  Bruno Haible  <bruno@clisp.org>
64756
64757         * lib/safe-read.c: Include specification header first, to ensure its
64758         selfcontainedness.
64759         * lib/full-write.c: Likewise.
64760
64761 2003-01-07  Jim Meyering  <jim@meyering.net>
64762
64763         * lib/full-write.c: Rework so that it may serve to define full_read,
64764         too.
64765         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64766
64767 2003-01-07  Bruno Haible  <bruno@clisp.org>
64768
64769         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64770         <inttypes.h>.
64771         * lib/xstrtol.h: Likewise.
64772         * lib/xstrtoimax.c: Likewise.
64773         * lib/xstrtoumax.c: Likewise.
64774         * lib/human.h: Likewise.
64775
64776         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64777         on systems that have <inttypes.h> but not <stdint.h>.
64778
64779 2003-01-07  Bruno Haible  <bruno@clisp.org>
64780
64781         * MODULES.html.sh: Add copyright notice.
64782         (missed_files): Omit CVS directory entries.
64783         (func_module): Make it work with sed-3.02.
64784         * MODULES.txt: Remove file.
64785
64786 2003-01-06  Jim Meyering  <jim@meyering.net>
64787
64788         * lib/version-etc.c: Update year in translatable copyright string.
64789
64790 2003-01-03  Karl Berry  <karl@gnu.org>
64791
64792         * config/config.{guess,sub}: update from prep.
64793
64794 2003-01-02  Karl Berry  <karl@gnu.org>
64795
64796         * doc/COPYING.DOC: belatedly updated to 1.2.
64797
64798 2003-01-01  Karl Berry  <karl@gnu.org>
64799
64800         * gnulib-tool (func_verify_module): report module name $module in
64801         error message, not $1.
64802         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64803         be created, only if it doesn't exist.
64804         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64805
64806 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64807
64808         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64809
64810 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64811
64812         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64813         memcmp if strcoll doesn't work.
64814
64815 2002-12-31  Bruno Haible  <bruno@clisp.org>
64816
64817         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64818         nonempty.
64819
64820 2002-12-31  Bruno Haible  <bruno@clisp.org>
64821
64822         * lib/memcoll.c (STRCOLL): New macro.
64823         (memcoll): Use it.
64824
64825 2002-12-31  Bruno Haible  <bruno@clisp.org>
64826
64827         * lib/localcharset.h: New file.
64828         * lib/localcharset.c: Include it.
64829         * lib/unicodeio.c: Likewise.
64830
64831 2002-12-31  Bruno Haible  <bruno@clisp.org>
64832
64833         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
64834         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
64835
64836 2002-12-31  Bruno Haible  <bruno@clisp.org>
64837
64838         * lib/getline.h: Include <stddef.h>, for size_t.
64839
64840         * lib/unicodeio.h: Include <stddef.h>, for size_t.
64841         * lib/unicodeio.c: Don't include <stddef.h>.
64842
64843 2002-12-31  Bruno Haible  <bruno@clisp.org>
64844
64845         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
64846         HAVE_TM_ZONE.
64847
64848 2002-12-24  Karl Berry  <karl@gnu.org>
64849
64850         * config/config.guess: update from prep.
64851
64852 2002-12-24  Bruno Haible  <bruno@clisp.org>
64853
64854         General infrasructure.
64855         * m4/README: Rewritten.
64856         * m4/onceonly.m4: New file.
64857         * m4/onceonly_2_57.m4: New file.
64858
64859         Module atexit.
64860         * m4/atexit.m4: New file.
64861
64862         Module strtod.
64863         * m4/strtod.m4: New file.
64864
64865         Module strtol.
64866         * m4/strtol.m4: New file.
64867
64868         Module strtoul.
64869         * m4/strtoul.m4: New file.
64870
64871         Module memchr.
64872         * m4/memchr.m4: New file.
64873
64874         Module memcmp.
64875         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
64876         (jm_FUNC_MEMCMP): Invoke it.
64877
64878         Module memcpy.
64879         * m4/memcpy.m4: New file.
64880
64881         Module memmove.
64882         * m4/memmove.m4: New file.
64883
64884         Module memset.
64885         * m4/memset.m4: New file.
64886
64887         Module strcspn.
64888         * m4/strcspn.m4: New file.
64889
64890         Module strpbrk.
64891         * m4/strpbrk.m4: New file.
64892
64893         Module strstr.
64894         * m4/strstr.m4: New file.
64895
64896         Module strerror.
64897         * m4/strerror.m4: New file.
64898
64899         Module mktime.
64900         * m4/mktime.m4: Renamed from jm-mktime.m4.
64901         (gl_PREREQ_MKTIME): New macro.
64902         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
64903
64904         Module malloc.
64905         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
64906         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
64907         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
64908
64909         Module realloc.
64910         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
64911         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
64912         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
64913
64914         Module strftime.
64915         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
64916         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
64917         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
64918         gl_TM_GMTOFF.
64919         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
64920
64921         Module xalloc.
64922         * m4/xalloc.m4: New file.
64923
64924         Module alloca.
64925         * m4/alloca.m4: New file.
64926
64927         Module putenv.
64928         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
64929         (jm_FUNC_PUTENV): Invoke it.
64930
64931         Module setenv.
64932         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
64933         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
64934         when invoked twice.
64935         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
64936         gt_FUNC_SETENV.
64937
64938         Module memrchr.
64939         * m4/memrchr.m4: New file.
64940
64941         Module stpcpy.
64942         * m4/stpcpy.m4: New file.
64943
64944         Module strcase.
64945         * m4/strcase.m4: New file.
64946
64947         Module strdup.
64948         * m4/strdup.m4: New file.
64949
64950         Module strnlen.
64951         * m4/strnlen.m4: New file.
64952
64953         Module strndup.
64954         * m4/strndup.m4: New file.
64955
64956         Module xstrtod.
64957         * m4/xstrtod.m4: New file.
64958
64959         Module xstrtol.
64960         * m4/xstrtol.m4: New file.
64961
64962         Module getdate.
64963         * m4/getdate.m4: New file.
64964
64965         Module unlocked-io.
64966         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
64967         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
64968         * m4/jm-glibc-io.m4n: Remove file.
64969
64970         Module long-options.
64971         * m4/long-options.m4: New file.
64972
64973         Module md5.
64974         * m4/md5.m4: New file.
64975
64976         Module sha.
64977         * m4/sha.m4: New file.
64978
64979         Module getstr.
64980         * m4/getstr.m4: New file.
64981
64982         Module getline.
64983         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
64984         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
64985         <sys/types.h>, for size_t. Use the function name gnu_getline, not
64986         simply getline. Infoke gl_PREREQ_GETLINE.
64987
64988         Module obstack.
64989         * m4/obstack.m4: New file.
64990
64991         Module hash.
64992         * m4/hash.m4: New file.
64993
64994         Module readtokens.
64995         * m4/readtokens.m4: New file.
64996
64997         Module strverscmp.
64998         * m4/strverscmp.m4: New file.
64999
65000         Module stdbool.
65001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
65002         OSF/1.
65003
65004         Module strtoll.
65005         * m4/strtoll.m4: New file.
65006
65007         Module strtoull.
65008         * m4/strtoull.m4: New file.
65009
65010         Module strtoimax.
65011         * m4/strtoimax.m4: New file.
65012
65013         Module strtoumax.
65014         * m4/strtoumax.m4: New file.
65015
65016         Module xstrtoimax.
65017         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
65018         jm_AC_PREREQ_XSTRTOIMAX.
65019         Moved the strtol prerequisites to strtol.m4.
65020         Moved the strtoll prerequisites to strtoll.m4.
65021         Moved the strtoimax prerequisites to strtoimax.m4.
65022
65023         Module xstrtoumax.
65024         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
65025         jm_AC_PREREQ_XSTRTOUMAX.
65026         Moved the strtoul prerequisites to strtoul.m4.
65027         Moved the strtoull prerequisites to strtoull.m4.
65028         Moved the strtoumax prerequisites to strtoumax.m4.
65029
65030         Module chown.
65031         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
65032         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
65033
65034         Module dup2.
65035         * m4/dup2.m4: New file.
65036
65037         Module ftruncate.
65038         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
65039         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
65040
65041         Module getgroups.
65042         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
65043         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
65044
65045         Module gettimeofday.
65046         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
65047         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
65048         gl_PREREQ_GETTIMEOFDAY.
65049
65050         Module mkdir.
65051         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
65052         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
65053
65054         Module mkstemp.
65055         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
65056         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
65057         jm_AC_TYPE_UINTMAX_T.
65058         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
65059
65060         Module stat.
65061         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
65062         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
65063
65064         Module lstat.
65065         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
65066         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
65067
65068         Module timespec.
65069         * m4/timespec.m4 (gl_TIMESPEC): New macro.
65070         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
65071         * m4/st_mtim.m4: Indentation.
65072
65073         Module nanosleep.
65074         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
65075         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
65076         gl_PREREQ_NANOSLEEP.
65077
65078         Module regex.
65079         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
65080         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
65081         (gl_REGEX): New macro.
65082
65083         Module rename.
65084         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
65085         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
65086
65087         Module rmdir.
65088         * m4/rmdir.m4: New file.
65089
65090         Module utime.
65091         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
65092         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
65093         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
65094
65095         Module dirname.
65096         * m4/dirname.m4: New file.
65097
65098         Module getopt.
65099         * m4/getopt.m4: New file.
65100
65101         Module unistd-safer.
65102         * m4/unistd-safer.m4: New file.
65103
65104         Module fnmatch.
65105         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
65106         declaration.
65107         (gl_PREREQ_FNMATCH_EXTRA): New macro.
65108         (gl_FUNC_FNMATCH_POSIX): New macro.
65109         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
65110         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
65111         simply fnmatch.
65112
65113         Module exclude.
65114         * m4/exclude.m4: New file.
65115
65116         Module human.
65117         * m4/human.m4: New file.
65118
65119         Module acl.
65120         * m4/acl.m4: Nop.
65121
65122         Module backupfile.
65123         * m4/backupfile.m4: New file.
65124         * m4/d-ino.m4: Indentation.
65125
65126         Module fsusage.
65127         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
65128         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
65129         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
65130
65131         Module dirfd.
65132         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
65133         requirements.
65134
65135         Module euidaccess.
65136         * m4/euidaccess.m4: New file.
65137
65138         Module file-type.
65139         * m4/file-type.m4: New file.
65140
65141         Module fileblocks.
65142         * m4/fileblocks.m4: New file.
65143
65144         Module filemode.
65145         * m4/filemode.m4: New file.
65146
65147         Module isdir.
65148         * m4/isdir.m4: New file.
65149
65150         Module lchown.
65151         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
65152         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
65153
65154         Module makepath.
65155         * m4/makepath.m4: New file.
65156
65157         Module modechange.
65158         * m4/modechange.m4: New file.
65159
65160         Module mountlist.
65161         * m4/mountlist.m4: New file.
65162         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65163         Indentation.
65164
65165         Module path-concat.
65166         * m4/path-concat.m4: New file.
65167
65168         Module pathmax.
65169         * m4/pathmax.m4: New file.
65170
65171         Module same.
65172         * m4/same.m4: New file.
65173
65174         Module save-cwd.
65175         * m4/save-cwd.m4: New file.
65176
65177         Module savedir.
65178         * m4/savedir.m4: New file.
65179
65180         Module xgetcwd.
65181         * m4/xgetcwd.m4: New file.
65182         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65183
65184         Module xreadlink.
65185         * m4/xreadlink.m4: New file.
65186
65187         Module safe-read.
65188         * m4/safe-read.m4: New file.
65189
65190         Module safe-write.
65191         * m4/safe-write.m4: New file.
65192
65193         Module closeout.
65194         * m4/closeout.m4: New file.
65195
65196         Module stdio-safer.
65197         * m4/stdio-safer.m4: New file.
65198
65199         Module getpass.
65200         * m4/getpass.m4: New file.
65201
65202         Module getugroups.
65203         * m4/getugroups.m4: New file.
65204
65205         Module group-member.
65206         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65207         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65208
65209         Module idcache.
65210         * m4/idcache.m4: New file.
65211
65212         Module userspec.
65213         * m4/userspec.m4: New file.
65214
65215         Module gettime.
65216         * m4/clock_time.m4: New file.
65217         * m4/gettime.m4: New file.
65218
65219         Module settime.
65220         * m4/settime.m4: New file.
65221
65222         Module posixtm.
65223         * m4/posixtm.m4: New file.
65224
65225         Module gethostname.
65226         * m4/gethostname.m4: New file.
65227
65228         Module canon-host.
65229         * m4/canon-host.m4: New file.
65230
65231         Module gettext.
65232         * m4/codeset.m4: New file, from gettext-0.11.5.
65233         * m4/gettext.m4: New file, from gettext-0.11.5.
65234         * m4/glibc21.m4: New file, from gettext-0.11.5.
65235         * m4/iconv.m4: New file, from gettext-0.11.5.
65236         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65237         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65238         * m4/inttypes.m4: New file, from gettext-0.11.5.
65239         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65240         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65241         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65242         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65243         * m4/lib-link.m4: New file, from gettext-0.11.5.
65244         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65245         * m4/progtest.m4: New file, from gettext-0.11.5.
65246         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65247         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65248         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65249
65250         Module localcharset.
65251         * m4/localcharset.m4: New file.
65252
65253         Module hard-locale.
65254         * m4/hard-locale.m4: New file.
65255
65256         Module mbswidth.
65257         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65258         onceonly macros.
65259         * m4/mbrtowc.m4: Add comment.
65260
65261         Module memcasecmp.
65262         * m4/memcasecmp.m4: New file.
65263
65264         Module memcoll.
65265         * m4/memcoll.m4: New file.
65266
65267         Module unicodeio.
65268         * m4/unicodeio.m4: New file.
65269
65270         Module rpmatch.
65271         * m4/rpmatch.m4: New file.
65272
65273         Module yesno.
65274         * m4/yesno.m4: New file.
65275
65276         Module exitfail.
65277         * m4/exitfail.m4: New file.
65278
65279         Module c-stack.
65280         * m4/c-stack.m4 (gl_C_STACK): New macro.
65281         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65282
65283         Module error.
65284         * m4/error.m4 (gl_ERROR): New macro.
65285         (jm_PREREQ_ERROR): Use onceonly macros.
65286
65287         Module fatal.
65288         * m4/fatal.m4: New file.
65289
65290         Module getloadavg.
65291         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65292         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65293
65294         Module getpagesize.
65295         * m4/getpagesize.m4: New file.
65296
65297         Module getusershell.
65298         * m4/getusershell.m4: New file.
65299
65300         Module physmem.
65301         * m4/physmem.m4: New file.
65302
65303         Module posixver.
65304         * m4/posixver.m4: New file.
65305
65306         Module quotearg.
65307         * m4/quotearg.m4: New file.
65308
65309         Module quote.
65310         * m4/quote.m4: New file.
65311
65312         Module readutmp.
65313         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65314
65315         Module sig2str.
65316         * m4/sig2str.m4: New file.
65317
65318         Other.
65319         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65320         ulonglong.m4.
65321         * m4/intmax_t.m4: New file.
65322         * m4/d-type.m4: Indentation.
65323         * m4/jm-macros.m4: Update.
65324         * m4/prereq.m4 (jm_PREREQ): Update.
65325         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65326         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65327         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65328         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65329         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65330         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65331         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65332         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65333         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65334         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65335         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65336         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65337         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65338         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65339         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65340         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65341         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65342         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65343         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65344
65345 2002-12-24  Bruno Haible  <bruno@clisp.org>
65346
65347         * MODULES.txt: Update according to m4/ changes.
65348
65349         Module gettext.
65350         * config.rpath: New file, from gettext-0.11.5.
65351
65352         * modules/*: New module descriptions.
65353         * gnulib-tool: New file.
65354         * MODULES.html.sh: New file.
65355
65356 2002-12-21  Karl Berry  <karl@gnu.org>
65357
65358         * doc/fdl.texi: update to version 1.2.
65359
65360 2002-12-19  Karl Berry  <karl@gnu.org>
65361
65362         * config/config.guess: update from prep.
65363
65364 2002-12-18  Bruno Haible  <bruno@clisp.org>
65365
65366         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65367         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65368
65369 2002-12-17  Bruno Haible  <bruno@clisp.org>
65370
65371         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65372         stdlib.h, string.h.
65373
65374 2002-12-17  Bruno Haible  <bruno@clisp.org>
65375
65376         * lib/canon-host.c (strdup): Remove unused declaration.
65377
65378         * lib/fsusage.c: Include full_read.h.
65379         (get_fs_usage): Use full_read instead of safe_read.
65380
65381         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65382
65383 2002-12-12  Karl Berry  <karl@gnu.org>
65384
65385         * config/config.guess: update from prep.
65386
65387 2002-12-11  Bruno Haible  <bruno@clisp.org>
65388
65389         * m4/setenv.m4: New file, from gettext-0.11.5.
65390
65391 2002-12-11  Bruno Haible  <bruno@clisp.org>
65392
65393         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65394         not unsetenv().
65395         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65396         modifications:
65397
65398         2002-12-11  Bruno Haible  <bruno@clisp.org>
65399
65400                 * setenv.c (alloca): Fall back to malloc.
65401                 (freea): New macro.
65402                 (setenv): Use freea() to free memory allocated with alloca().
65403
65404         2002-11-13  Bruno Haible  <bruno@clisp.org>
65405
65406                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65407                 function declarations.
65408                 * unsetenv.c (unsetenv): Likewise.
65409
65410         2002-03-04  Bruno Haible  <bruno@clisp.org>
65411
65412                 Portability to AIX 4.3.3.
65413                 * unsetenv.c: New file, extracted from setenv.c.
65414                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65415
65416         2001-12-20  Bruno Haible  <bruno@clisp.org>
65417
65418                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65419                 use malloc instead. For SunOS 4.
65420
65421         2001-12-11  Bruno Haible  <bruno@clisp.org>
65422
65423                 * setenv.c: Declare alloca.
65424                 (compar_fn_t): New typedef.
65425                 (KNOWN_VALUE, STORE_VALUE): Use it.
65426
65427         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65428         setenv.h.
65429
65430 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65431
65432         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65433         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65434         Choose values that are less likely to collide with system fnmatch
65435         options.
65436         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65437         defined (e.g., a pure POSIX system).
65438         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65439         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65440
65441 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65442
65443         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65444         a pain in practice to deal with generated m4 files.  This change
65445         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65446
65447         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65448         and jm-glibc-io.m4, as they are no longer a special case.
65449         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65450         kludge and the auto-generation stuff.  Check only whether the
65451         functions are declared, not whether they exist, since older hosts
65452         that don't declare the functions can't use the optimization anyway.
65453
65454 2002-12-06  Jim Meyering  <jim@meyering.net>
65455
65456         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65457
65458         Merge in changes from libc's misc/error.c, in preparation
65459         for the merge of gnulib's changes back into libc.
65460
65461         * lib/error.c (_): Define only if not already defined.
65462         Move definition to follow all #include directives.
65463         Include unlocked-io.h only if !_LIBC.
65464         [_LIBC]: Include <libio/libioP.h>.
65465         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65466         (fflush): Tweak definition to use INTUSE.
65467         (putc): Define.
65468
65469 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65470
65471         * lib/alloca.c [defined emacs]: Include "lisp.h".
65472         (xalloc_die) [defined emacs]: New macro.
65473         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65474         [! defined emacs]: Include <xalloc.h>.
65475         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65476         (pointer): Typedef to POINTER_TYPE *.
65477         (malloc): Remove decl; we now always use xmalloc.
65478         (alloca): Use old-style definition, since Emacs needs this.
65479         Check for arithmetic overflow when computing combined size.
65480
65481 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65482
65483         Do not generate unlocked-io.h automatically, since it's easier to
65484         maintain it by hand.
65485
65486         * lib/unlocked-io.h: New file, from GNU diffutils,
65487         but with proper copyright notice and attribution.
65488         * lib/gen-uio: Remove.
65489         * lib/Makefile.am: Add copyright notice.
65490         (libfetish_a_SOURCES): Add unlocked-io.h.
65491         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65492         (DISTCLEANFILES, io_functions): Remove macros.
65493         (EXTRA_DIST): Remove gen_uio.
65494         (unlocked-io.h): Remove rule.
65495
65496 2002-12-04  Jim Meyering  <jim@meyering.net>
65497
65498         Reflect the fact that stat.c and lstat.c are no longer generated.
65499         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65500         (DISTCLEANFILES): Likewise.
65501         (EXTRA_DIST): Likewise.
65502         (all_local): Don't depend on stat.c or lstat.c.
65503         (stat.c, lstat.c): Remove rules.
65504         (EXTRA_DIST): Remove xstat.in.
65505
65506         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65507         * lib/stat.c: New file.  Contents mostly from xstat.in.
65508         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65509         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65510
65511         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65512         too.
65513         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65514
65515 2002-12-03  Jim Meyering  <jim@meyering.net>
65516
65517         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65518         but not semantics, to minimize the differences between these two files.
65519         (safe_read): Change comment to mention SAFE_READ_ERROR.
65520
65521         * lib/safe-read.c (IS_EINTR): Define.
65522         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65523
65524 2002-12-02  Jim Meyering  <jim@meyering.net>
65525
65526         * lib/safe-read.c (EINTR): Define.
65527         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65528         (INT_MAX): Provide fallback.
65529         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65530
65531         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65532
65533 2002-12-02  Bruno Haible  <bruno@clisp.org>
65534
65535         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65536         Define, taken from safe-read.c.
65537         (INT_MAX): Provide fallback.
65538         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65539         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65540
65541         * lib/safe-read.c (EINTR): Remove definition.
65542         (safe_read): Don't use EINTR if it is absent.
65543
65544 2002-12-01  Jim Meyering  <jim@meyering.net>
65545
65546         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65547         zero.
65548         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65549
65550 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65551
65552         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65553         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65554         with `if (! (value < limit)) abort ();', for readability.
65555
65556 2002-11-26  Karl Berry  <karl@gnu.org>
65557
65558         * lib/strdup.c: copy from libc again, with jim's ok.
65559         * lib/.cppi-disable: re-add strdup.c
65560
65561 2002-11-25  Karl Berry  <karl@gnu.org>
65562
65563         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65564         instead of "strtol.c".
65565
65566 2002-11-25  Karl Berry  <karl@gnu.org>
65567
65568         * config/install-sh: update from automake for variable quoting, $0 in
65569         error msgs, etc.
65570
65571         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65572         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65573         entry.
65574
65575 2002-11-25  Jim Meyering  <jim@meyering.net>
65576
65577         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65578
65579 2002-11-24  Karl Berry  <karl@gnu.org>
65580
65581         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65582         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65583
65584 2002-11-24  Jim Meyering  <jim@meyering.net>
65585
65586         Update from coreutils:
65587
65588         * lib/mktime.c: Merge in changes from libc.
65589
65590         Avoid a link-time failure on some Linux systems.
65591         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65592         (otherwise).
65593         (__mon_yday): Declare with the STATIC attribute.
65594         (__mktime_internal): Likewise.
65595         Based on a report from Greg Schafer.
65596
65597 2002-11-23  Jim Meyering  <jim@meyering.net>
65598
65599         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65600         Use `unsigned', not `int', as type of index.
65601
65602         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65603
65604         * lib/fsusage.c: Remove unneeded parentheses around operands of
65605         `defined'.
65606
65607 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65608
65609         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65610         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65611         so that we can be included first.
65612         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65613         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65614         No need to include stddef.h or sys/types.h any more.
65615         Surround local include files with "", not "<>".
65616         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65617         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65618         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65619         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65620         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65621         (ISPRINT): Remove; no longer needed now that we assume C89.
65622
65623         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65624         Preserve errno.
65625
65626         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65627         quotearg_char): Use SIZE_MAX rather than
65628         (size_t) -1 when we are talking about "infinity".
65629
65630         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65631
65632 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65633
65634         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65635         hint that one should use `if (! x) abort ();' rather than `assert
65636         (x);', and anyway it's one less thing to worry about configuring.
65637         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65638         hash_rehash, hash_insert): Use abort rather than assert.
65639
65640 2002-11-22  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/safe-read.h: Assume C89. Add comments.
65643         (safe_read): Change return type to size_t.
65644         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65645         byte counts > SSIZE_MAX correctly.
65646         * lib/safe-write.h: New file.
65647         * lib/safe-write.c: New file.
65648         * lib/full-read.h: New file.
65649         * lib/full-read.c: New file.
65650         * lib/full-write.h: Assume C89. Add comments.
65651         * lib/full-write.c: Include safe-write.h.
65652         (full_write): Rewritten to use safe_write.
65653         Suggested by Jim Meyering and Paul Eggert.
65654
65655 2002-11-21  Jim Meyering  <jim@meyering.net>
65656
65657         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65658
65659         Merge in changes from the coreutils.
65660
65661         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65662         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65663         <stdint.h>.
65664         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65665         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65666         int.  Work more efficiently if X is the same width as uintmax_t.
65667         Do not compare X to -1, to avoid bogus compiler warning.
65668         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65669         Don't assume that f_frsize and f_bsize are the same type.
65670
65671         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65672         warning on FreeBSD.
65673
65674         * lib/makepath.c (make_path): Restore umask *before* creating the final
65675         component.
65676         (make_path): Minor reformatting.
65677
65678         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65679         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65680         HAVE_MALLOC/HAVE_REALLOC.
65681
65682         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65683         dummy ones.  At least on GNU/Linux systems, `auto' means something
65684         else.
65685         From Michael Stone.
65686
65687 2002-11-21  Bruno Haible  <bruno@clisp.org>
65688
65689         Remove case insensitive option matching.
65690         * lib/argmatch.h (argcasematch): Remove declaration.
65691         (ARGCASEMATCH): Remove macro.
65692         (__xargmatch_internal): Remove case_sensitive argument.
65693         (XARGMATCH): Update.
65694         (XARGCASEMATCH): Remove macro.
65695         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65696         case_sensitive argument.
65697         (argcasematch): Remove function.
65698         (__xargmatch_internal): Remove case_sensitive argument.
65699         (main): Use XARGMATCH instead of XARGCASEMATCH.
65700
65701         * lib/xmalloc.c: Change compile-time error message. Add comment about
65702         required autoconf version.
65703
65704 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65705
65706         Merge argmatch cleanups from Bison.  Assume C89.
65707
65708         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65709         Include stdlib.h, for EXIT_FAILURE.
65710         Always include <string.h>, since we assume C89.
65711         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65712         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65713         Include <stddef.h> instead, since it's all we need for size_t.
65714         (PARAMS): Remove.  All uses removed.
65715         (ARRAY_CARDINALITY): Do not bother to #undef.
65716         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65717         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65718         Remove unnecessary parentheses.
65719         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65720         Insert necessary parentheses.
65721         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65722         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65723
65724 2002-11-19  Bruno Haible  <bruno@clisp.org>
65725
65726         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65727         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65728
65729         * lib/mbswidth.h (PARAMS): Remove macro.
65730         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65731         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65732
65733         * lib/gcd.h (PARAMS): Remove macro.
65734         (gcd): Use ANSI C function declarations.
65735         * lib/gcd.c (gcd): Likewise.
65736
65737 2002-11-15  Bruno Haible  <bruno@clisp.org>
65738
65739         * lib/strcspn.c: Include <stddef.h>.
65740         (strcspn): Use ANSI C function declaration. Change return type to
65741         size_t. Use NULL.
65742         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65743         (strpbrk): Use NULL.
65744         * lib/strpbrk.h (PARAMS): Remove macro.
65745         (strpbrk): Use ANSI C function declaration.
65746         * lib/strstr.c: Don't include <sys/types.h>.
65747         * lib/strstr.h (PARAMS): Remove macro.
65748         (strstr): Use ANSI C function declarations.
65749
65750 2002-11-14  Karl Berry  <karl@gnu.org>
65751
65752         * config/mkinstalldirs: `do' on separate line, instead of
65753         `for var; do'.
65754
65755 2002-11-06  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65758         * lib/gcd.c (gcd): Likewise.
65759
65760 2002-11-05  Bruno Haible  <bruno@clisp.org>
65761
65762         * lib/gcd.h: New file, from gettext-0.11.5.
65763         * lib/gcd.c: New file, from gettext-0.11.5.
65764
65765 2002-11-05  Bruno Haible  <bruno@clisp.org>
65766
65767         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65768         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65769         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65770         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65771
65772         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65773         <libintl.h>.
65774         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65775         <libintl.h>.
65776
65777         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65778         * lib/human.c: Include gettext.h instead of <libintl.h>.
65779         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65780         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65781         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65782         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65783         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65784         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65785         (textdomain): Remove definition.
65786         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65787
65788         * lib/long-options.c: Remove include of <libintl.h> and definition of
65789         _.
65790         * lib/same.c: Remove include of <libintl.h> and definition of _.
65791
65792 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65793
65794         * lib/config.charset: A few additions for Solaris.
65795
65796 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65797
65798         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65799         * lib/localcharset.c (locale_charset): Declare as extern "C".
65800
65801 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65802
65803         * lib/config.charset: msdos in uk_UA uses CP1125.
65804
65805 2002-11-04  Bruno Haible  <bruno@clisp.org>
65806
65807         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65808         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65809         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65810         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65811         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65812
65813 2002-11-04  Bruno Haible  <bruno@clisp.org>
65814
65815         * lib/localcharset.c (locale_charset): Don't return an empty string.
65816
65817 2002-11-04  Bruno Haible  <bruno@clisp.org>
65818
65819         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65820         aliases.
65821
65822 2002-11-04  Bruno Haible  <bruno@clisp.org>
65823
65824         * lib/config.charset: Update for newest glibc. Add canonical names
65825         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65826
65827 2002-11-04  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/config.charset: Add support for NetBSD.
65830
65831 2002-11-04  Bruno Haible  <bruno@clisp.org>
65832
65833         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
65834
65835 2002-11-01  Bruno Haible  <bruno@clisp.org>
65836
65837         * configure.in: Add AC_CONFIG_AUX_DIR call.
65838         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
65839         test/Makefile.
65840         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
65841
65842 2002-09-28  Karl Berry  <karl@gnu.org>
65843
65844         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
65845         installed automake until the next release, since changes have been
65846         made.
65847
65848 2002-09-25  Karl Berry  <karl@gnu.org>
65849
65850         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
65851         * lib/getopt*: copy from libc/posix.
65852         * lib/gettext.h: copy from gettext.
65853         * lib/.cppi-disable: add strdup.c, gettext.h.
65854
65855 2002-09-25  Karl Berry  <karl@gnu.org>
65856
65857         * config/srclist.txt: enable gettext.h check.
65858         * config/config.{guess,sub}: update from prep.
65859         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
65860                 from automake 1.6.3.
65861         See srclist*.
65862
65863 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
65864
65865         * regex.c (PATFETCH): Remove the translating fetch.
65866         (PATFETCH_RAW): Rename to PATFETCH.
65867         (set_image_of_range): New fun.
65868         (SET_RANGE_TABLE_WORK_AREA): Use it.
65869         (regex_compile): Don't translate the pattern chars so eagerly.
65870         Only do it when inserting an `exactn' bytecode or when handling
65871         a char-range.
65872         (mutually_exclusive_p): Avoid empty statement.
65873
65874 2002-07-06  Jim Meyering  <meyering@lucent.com>
65875
65876         * m4/README: Don't mention Makefile.am.in.
65877         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
65878
65879 2002-07-01  Jim Meyering  <meyering@lucent.com>
65880
65881         * lib/c-stack.c: Include sys/time.h.
65882         From Volker Borchert.
65883
65884 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65885
65886         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
65887
65888 2002-06-26  Paul Eggert  <eggert@twinsun.com>
65889
65890         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
65891         New macro.  Use it uniformly instead of
65892         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
65893         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
65894         reported by Vin Shelton.
65895
65896 2002-06-22  Paul Eggert  <eggert@twinsun.com>
65897
65898         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
65899         Do not assume SA_SIGINFO behavior.
65900         Bug reported by Jim Meyering on NetBSD 1.5.2.
65901
65902 2002-06-22  Jim Meyering  <meyering@lucent.com>
65903
65904         * m4/c-stack.m4: New file, from diffutils-2.8.2.
65905         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
65906
65907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
65908         now that configure.ac uses AC_GNU_SOURCE.
65909         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
65910         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
65911
65912         Update to latest tools.  Suggestions from Paul Eggert.
65913         * m4/stdbool.m4: New file, from diffutils-2.8.2.
65914         * m4/gnu-source.m4: Update from diffutils-2.8.2.
65915         * m4/fnmatch.m4: Likewise.
65916         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
65917         to AC_HEADER_STDBOOL
65918
65919 2002-06-22  Jim Meyering  <meyering@lucent.com>
65920
65921         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
65922         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
65923
65924 2002-06-22  Jim Meyering  <meyering@lucent.com>
65925
65926         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
65927
65928         * lib/exitfail.c, exitfail.h: Likewise.
65929         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
65930
65931         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
65932         of fnmatch.h.
65933         (EXTRA_DIST): Add fnmatch_loop.c.
65934         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
65935
65936         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
65937         * lib/fnmatch.c: Update from diffutils-2.8.2.
65938         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
65939         * lib/fnmatch.h: Remove file.
65940
65941 2002-06-21  Jim Meyering  <meyering@lucent.com>
65942
65943         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
65944         * m4/mbrtowc.m4: Likewise.
65945
65946         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
65947         * m4/mbswidth.m4: Reflect name change:
65948         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
65949         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65950
65951         * m4/lib-link.m4: Update from gettext-0.11.2.
65952         * m4/gettext.m4: Likewise.
65953
65954         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
65955         From Alfred M. Szmidt.
65956
65957 2002-06-18  Paul Eggert  <eggert@twinsun.com>
65958
65959         * lib/file-type.h: Report an error if neither S_ISREG nor
65960         S_IFREG is defined, instead of using a test specific to glibc
65961         2.2.  This should be safe, since POSIX requires S_ISREG and
65962         Unix Version 7 had S_IFREG.  We don't need to check for
65963         <sys/types.h> since we don't use any symbols that it defines.
65964
65965 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
65966
65967         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
65968         $@-t, so that each temporary file name is unique and valid in the first
65969         8 characters, for operation under DOS.
65970
65971 2002-06-15  Paul Eggert  <eggert@twinsun.com>
65972
65973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
65974
65975 2002-06-15  Jim Meyering  <meyering@lucent.com>
65976
65977         Work even with DJGPP 2.03, which lacks support for symlinks.
65978         From Richard Dawe.
65979         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
65980         is defined.
65981         * lib/lchown.c (S_ISLNK): Likewise.
65982
65983 2002-06-15  Jim Meyering  <meyering@lucent.com>
65984
65985         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
65986         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
65987         have been included before this file.
65988
65989 2002-06-14  Jim Meyering  <meyering@lucent.com>
65990
65991         * lib/file-type.h: Use the version from diffutils-2.8.2.
65992         * lib/file-type.c: Likewise.
65993
65994 2002-06-07  Jim Meyering  <meyering@lucent.com>
65995
65996         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
65997         They're needed at least for NetBSD 1.5.2.
65998         ($statxfs_includes): Include those same headers.
65999         ($statxfs_includes): Include sys/vfs.h if available.
66000         ($statxfs_includes): Likewise for sys/statvfs.h.
66001         Check for the following members in both structs statfs and statvfs:
66002         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
66003
66004 2002-06-01  Jim Meyering  <meyering@lucent.com>
66005
66006         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
66007         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
66008
66009 2002-05-28  Jim Meyering  <meyering@lucent.com>
66010
66011         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
66012         Reported by Volker Borchert.
66013
66014 2002-05-27  Jim Meyering  <meyering@lucent.com>
66015
66016         Fix a problem seen only on nonconforming systems whereby ls.c's
66017         use of localtime, and then of gettimeofday would cause trouble:
66018         the localtime call used to initialize rpl_gettimeofday's save
66019         mechanism would clobber ls's current local time information so
66020         that in any long listing the first file would always be listed
66021         with date 1970-01-01.  Analysis by Volker Borchert.
66022
66023         * lib/gettimeofday.c (localtime): Undefine.
66024         (rpl_localtime): New function.
66025
66026 2002-05-27  Jim Meyering  <meyering@lucent.com>
66027
66028         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
66029         localtime.
66030
66031         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
66032         use the replacement function; it wouldn't resolve at link time.
66033         Reported by Volker Borchert.
66034
66035 2002-05-22  Jim Meyering  <meyering@lucent.com>
66036
66037         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
66038         file-type.h.
66039         * lib/file-type.h: New file.
66040         * lib/file-type.c (file_type): New file/function.  Extracted from
66041         diffutils.
66042
66043 2002-04-30  Jim Meyering  <meyering@lucent.com>
66044
66045         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
66046
66047 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66048
66049         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
66050
66051 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66052
66053         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
66054         Do not check for alloca.h (no longer used) or stdbool.h (was never
66055         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
66056
66057 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66058
66059         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
66060
66061 2002-04-29  Jim Meyering  <meyering@lucent.com>
66062
66063         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
66064         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
66065         Use AC_FUNC_STRNLEN here instead.
66066
66067         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
66068         With autoconf-2.53a, it's part of AC_PROG_CC.
66069
66070 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66071
66072         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
66073         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
66074
66075 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66076
66077         * lib/sig2str.h, lib/sig2str.c: New files.
66078         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
66079
66080 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66081
66082         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
66083         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
66084         of 127, since 64 is the largest conceivable number for ancient
66085         nonstandard hosts.
66086         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
66087
66088 2002-04-28  Jim Meyering  <meyering@lucent.com>
66089
66090         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
66091
66092 2002-04-24  Jim Meyering  <meyering@lucent.com>
66093
66094         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
66095         (jm_PREREQ): Use it.
66096
66097         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
66098         mach/mach.h fcntl.h.
66099         Check for this function: setlocale.
66100
66101 2002-04-24  Jim Meyering  <meyering@lucent.com>
66102
66103         * lib/gettext.h: New file, from Gettext.
66104         * lib/Makefile.am (INCLUDES): Remove -I../intl.
66105         (libfetish_a_SOURCES): Add gettext.h.
66106
66107 2002-04-16  Jim Meyering  <meyering@lucent.com>
66108
66109         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
66110         ut_pid, ut_id, ut_exit.
66111
66112 2002-04-16  Jim Meyering  <meyering@lucent.com>
66113
66114         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
66115         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
66116         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
66117
66118 2002-04-12  Jim Meyering  <meyering@lucent.com>
66119
66120         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
66121         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
66122         existence of the getmntinfo function.  Needed for Darwin 5.3.
66123
66124         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
66125         This is necessary at least on Darwin 5.3.
66126
66127         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
66128         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
66129         strnlen.o in the library, and that makes some versions of ranlib
66130         object.
66131
66132 2002-04-12  Jim Meyering  <meyering@lucent.com>
66133
66134         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
66135
66136 2002-04-09  Jim Meyering  <meyering@lucent.com>
66137
66138         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
66139         to be more precise.  Rather than saying we're checking whether the
66140         function `works', say what we're testing.
66141         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
66142         Reported by Bruno Haible.
66143
66144 2002-03-10  Jim Meyering  <meyering@lucent.com>
66145
66146         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
66147         Suggestion from Santiago Vila.
66148
66149 2002-03-08  Jim Meyering  <meyering@lucent.com>
66150
66151         * lib/rename.c: Mention that this wrapper is needed also on
66152         mips-dec-ultrix4.4 systems.
66153
66154 2002-03-02  Jim Meyering  <meyering@lucent.com>
66155
66156         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
66157         not HAVE_CLOCK_SETTIME.
66158
66159 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66160
66161         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66162         Check for clock_settime.
66163
66164 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66165
66166         * lib/nanosleep.h: Rename to....
66167         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66168
66169         * lib/gettime.c: New file.
66170         * lib/settime.c: New file.
66171         * lib/stime.c: Remove.
66172
66173         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66174         timespec.h.  Remove nanosleep.h.
66175
66176 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66177
66178         * m4/acl.m4: New file.
66179         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66180         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66181
66182 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66183
66184         * lib/acl.c, lib/acl.h: New files.
66185         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66186
66187 2002-02-24  Jim Meyering  <meyering@lucent.com>
66188
66189         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66190         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66191         cause trouble.  Reported by Nelson Beebe.
66192
66193 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66194
66195         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66196         compilers that don't know that xalloc_die never returns.
66197
66198 2002-02-20  Jim Meyering  <meyering@lucent.com>
66199
66200         * lib/getdate.c: Regenerate using bison-1.33.
66201
66202 2002-02-17  Jim Meyering  <meyering@lucent.com>
66203
66204         * config/config.guess (main): Don't use `head -1'; it's no longer
66205         portable. Use `sed 1q' instead.
66206
66207 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66208
66209         * m4/codeset.m4: Upgrade to gettext-0.11.
66210         * m4/gettext.m4: Upgrade to gettext-0.11.
66211         * m4/glibc21.m4: Upgrade to gettext-0.11.
66212         * m4/iconv.m4: Upgrade to gettext-0.11.
66213         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66214         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66215         * m4/lib-ld.m4: New file, from gettext-0.11.
66216         * m4/lib-link.m4: New file, from gettext-0.11.
66217         * m4/lib-prefix.m4: New file, from gettext-0.11.
66218         * m4/progtest.m4: Upgrade to gettext-0.11.
66219
66220 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66221
66222         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66223         (jm_PREREQ): Use it.
66224
66225 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66226
66227         * lib/posixver.c, lib/posixver.h: New files.
66228         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66229
66230 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66231             Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66234         (fwrite_success_callback): New declaration.
66235         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66236         print_unicode_char. Call failure callback instead of error.
66237         (fwrite_success_callback): New function.
66238         (exit_failure_callback): New function.
66239         (fallback_failure_callback): New function.
66240         (print_unicode_char): Call unicode_to_mb.
66241
66242 2002-01-26  Jim Meyering  <meyering@lucent.com>
66243
66244         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66245         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66246
66247 2002-01-26  Jim Meyering  <meyering@lucent.com>
66248
66249         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66250
66251 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66252
66253         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66254
66255 2002-01-22  Jim Meyering  <meyering@lucent.com>
66256
66257         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66258         Otherwise, some versions of automake would omit the rule that makes
66259         Makefile from Makefile.in.
66260
66261 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66262
66263         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66264         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66265         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66266         (memcoll): Set errno to zero if there is no error.
66267
66268         * lib/quotearg.c (quotearg_buffer_restyled):
66269         Fix bug with quoting buffers containing NUL when backslashing escapes.
66270         This bug was exposed by the other changes in this patch.
66271         (quotearg_n_options): New arg ARGSIZE.
66272         All callers changed.
66273         (quoting_options_from_style): New function.
66274         (quotearg_n_style): Use it.
66275         (quotearg_n_style_mem): New function.
66276
66277         * lib/quotearg.h (quotearg_n_style_mem): New function.
66278
66279 2002-01-19  Jim Meyering  <meyering@lucent.com>
66280
66281         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66282         Remove useless quotes: DF_PROG="df".
66283         * m4/strnlen.m4: New file.
66284
66285 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66286
66287         * lib/backupfile.c (ISDIGIT): Comment fix.
66288         * lib/getdate.y (ISDIGIT): Likewise.
66289         * lib/posixtm.c (ISDIGIT, year): Likewise.
66290         * lib/strverscmp.c (ISDIGIT): Likewise.
66291         * lib/userspec.c (ISDIGIT): Likewise.
66292
66293 2002-01-16  Jim Meyering  <meyering@lucent.com>
66294
66295         * lib/getdate.y: Add three semicolons, each just before a closing
66296         brace. Bison (as of version 1.31) no longer papers over that mistake.
66297
66298 2002-01-05  Jim Meyering  <meyering@lucent.com>
66299
66300         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66301
66302 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66303
66304         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66305         not silently exit merely because the output buffer happens to
66306         have nothing pending.
66307
66308 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66309
66310         See the big note in ../ChangeLog.
66311         * lib/human.c (suffixes): Prefer K to k for 1024.
66312         (generate_suffix_backwards): New function.
66313         (human_readable_inexact): Use it.
66314         * lib/xstrtol.c (__xstrtol): If there is no number but there
66315         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66316         Accept 'K' as well as 'k'.
66317
66318 2001-12-15  Jim Meyering  <meyering@lucent.com>
66319
66320         * lib/regex.h (__restrict_arr): Update from libc.
66321
66322         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66323         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66324         (STREQ): Define.
66325
66326 2001-12-14  Jim Meyering  <meyering@lucent.com>
66327
66328         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66329         Suggestion from Bruno Haible.
66330
66331 2001-12-10  Jim Meyering  <meyering@lucent.com>
66332
66333         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66334         xrealloc, Instead, include "xalloc.h".
66335         (initbuffer): Don't cast xmalloc return value to char*.
66336         (readline): Reword comment.
66337         Don't cast xrealloc return value to char*
66338         Return NULL, not 0.
66339
66340 2001-12-09  Jim Meyering  <meyering@lucent.com>
66341
66342         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66343         about `signed and unsigned type in conditional expression'.
66344         * lib/posixtm.c (posix_time_parse): Likewise.
66345
66346         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66347
66348         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66349         to avoid a pedantic warning.
66350
66351         * lib/getstr.c: Don't include assert.h.
66352         (getstr): Remove warning-evoking assertions.
66353         Return -1 if offset parameter is out of bounds.
66354         Change the type of a local from int to size_t.
66355
66356         * lib/strftime.c (my_strftime_localtime_r): Include this function
66357         definition in the `#if ! HAVE_TM_GMTOFF' block.
66358
66359         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66360         Include xalloc.h instead.
66361
66362 2001-12-02  Jim Meyering  <meyering@lucent.com>
66363
66364         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66365         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66366         included.
66367
66368         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66369         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66370
66371 2001-11-30  Akim Demaille  <akim@epita.fr>
66372
66373         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66374         before being defined.
66375
66376 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66377
66378         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66379         First arg is int, not unsigned.
66380         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66381         (SIZE_MAX, UINT_MAX): New macros.
66382         (quotearg_n_options): Abort if N is negative.
66383         Avoid overflow check on hosts where size_t is 64 bits and int
66384         is 32 bits, as overflow is impossible there.
66385         Fix off-by-one typo that caused unnecessary reallocation.
66386
66387 2001-11-27  Jim Meyering  <meyering@lucent.com>
66388
66389         * lib/tempname.c: Merge with version from libc.
66390         * lib/regex.c: Likewise.
66391
66392         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66393         systems for which STDC_HEADERS is 0, it was not included, resulting in
66394         a warning about an integer-to-pointer conversion problem with getenv.
66395         Reported by Volker Borchert.
66396
66397 2001-11-26  Jim Meyering  <meyering@lucent.com>
66398
66399         * lib/gtod.h: Remove file.
66400         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66401         * lib/gettimeofday.c: Don't include gtod.h.
66402         (GTOD_init): Remove function.
66403         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66404         Suggestion from Volker Borchert.
66405
66406 2001-11-23  Jim Meyering  <meyering@lucent.com>
66407
66408         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66409         it.
66410         * lib/hash.c (struct hash_table): Define it here instead.
66411
66412 2001-11-22  Jim Meyering  <meyering@lucent.com>
66413
66414         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66415
66416 2001-11-20  Jim Meyering  <meyering@lucent.com>
66417
66418         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66419         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66420
66421 2001-11-19  Jim Meyering  <meyering@lucent.com>
66422
66423         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66424         directory.  Use "conftestXXXXXX" as the template.
66425         Suggestion from Paul Eggert.
66426
66427         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66428         immediately, so the test doesn't mistakenly hit the max-open-files
66429         limit.
66430
66431 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66432
66433         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66434         (TEMPORARIES): New macro.
66435         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66436         removes an artificial limitation (e.g. HP-UX 10.20, where
66437         TMP_MAX is 17576).
66438
66439 2001-11-18  Jim Meyering  <meyering@lucent.com>
66440
66441         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66442
66443 2001-11-18  Jim Meyering  <meyering@lucent.com>
66444
66445         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66446         on SunOS 4.
66447
66448         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66449         files will be created before anything else.
66450
66451 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66452
66453         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66454         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66455
66456 2001-11-17  Jim Meyering  <meyering@lucent.com>
66457
66458         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66459         Prompted by a report from Bob Proulx.
66460
66461         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66462         Instead, require UTILS_FUNC_MKSTEMP.
66463
66464 2001-11-17  Jim Meyering  <meyering@lucent.com>
66465
66466         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66467         Now, that's done as part of AC_FUNC_STRTOD.
66468
66469 2001-11-17  Jim Meyering  <meyering@lucent.com>
66470
66471         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66472         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66473         rather than group writable.  Patch by Juan F. Codagnone.
66474
66475         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66476         xrealloc, Instead, include "xalloc.h".
66477
66478         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66479         Remove explicit declarations of xmalloc, xrealloc,
66480         and xstrdup.  Instead, include "xalloc.h".
66481
66482         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66483         unlocked-io.h.
66484         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66485         Likewise.
66486         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66487
66488         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66489         Reported by Padraig Brady.
66490
66491         * lib/mkstemp.c: #undef mkstemp.
66492         Include config.h.
66493         (rpl_mkstemp): Rename from mkstemp.
66494         Protoize.
66495
66496 2001-11-16  Jim Meyering  <meyering@lucent.com>
66497
66498         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66499         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66500         determine the amount of total physical memory, use pstat_getstatic.
66501         HPUX-11 doesn't define _SC_PHYS_PAGES.
66502         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66503         If sysconf couldn't be used to determine the amount of available
66504         physical memory, use both pstat_getstatic and pstat_getdynamic.
66505         Based on a patch from Bob Proulx.
66506
66507 2001-11-10  Jim Meyering  <meyering@lucent.com>
66508
66509         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66510         (jm_PREREQ): Use it.
66511
66512 2001-11-09  Jim Meyering  <meyering@lucent.com>
66513
66514         * m4/jm-macros.m4: Require autoconf-2.52f.
66515         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66516         Use these AC_-prefixed names, not the AM_-prefixed ones.
66517
66518         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66519
66520 2001-11-05  Jim Meyering  <meyering@lucent.com>
66521
66522         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66523
66524 2001-11-04  Jim Meyering  <meyering@lucent.com>
66525
66526         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66527         $DEFS.
66528
66529 2001-11-03  Jim Meyering  <meyering@lucent.com>
66530
66531         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66532         of AC_DEFUN.
66533
66534         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66535         know the name of the variable in the macro definition.
66536
66537 2001-11-03  Jim Meyering  <meyering@lucent.com>
66538
66539         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66540         in argmatch_to_argument call.
66541
66542         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66543         argument.
66544
66545         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66546         e.g., a fault due to an attempt to free a NULL pointer.
66547
66548 2001-11-01  Jim Meyering  <meyering@lucent.com>
66549
66550         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66551         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66552
66553 2001-11-01  Jim Meyering  <meyering@lucent.com>
66554
66555         * lib/dirfd.c, lib/dirfd.h: New files.
66556         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66557
66558         * lib/hash.c (hash_print) [TESTING]: Clean up.
66559
66560 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66561
66562         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66563         to avoid a warning if -Wall.
66564
66565 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66566
66567         * README: New file
66568         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66569         (per RMS's instructions, this is now the canonical source)
66570         * lgpl/, gpl/: New directories.
66571
66572 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66573
66574         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66575
66576 2001-10-21  Jim Meyering  <meyering@lucent.com>
66577
66578         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66579         this code would end up calling gettext even in packages built
66580         with --disable-nls.
66581         * lib/getopt.c (_): Likewise.
66582         * lib/regex.c (_): Likewise.
66583
66584 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66585
66586         * m4/error.m4 (jm_PREREQ_ERROR):
66587         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66588         AC_FUNC_STRERROR_R does that.
66589         Check for strerror declaration.
66590
66591         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66592         are supposed to have them these days.
66593         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66594         Merge changes from latest Autoconf CVS.
66595         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66596         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66597         POSIX decided to standardize on the int flavor of strerror_r.
66598
66599 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66600
66601         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66602         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66603         Use strerror_r that is only a macro, even if it is not a function.
66604         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66605         (private_strerror): Use prototypes, not old-style function definition.
66606         (print_errno_message): New function.
66607         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66608         char*-flavored one.
66609         (error_tail, error, error_at_line): Use it.
66610
66611 2001-10-11  Jim Meyering  <meyering@lucent.com>
66612
66613         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66614         and quote_n (1, ... to avoid clobbering a buffer.
66615
66616 2001-10-05  Jim Meyering  <meyering@lucent.com>
66617
66618         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66619         hash-pjw.h.
66620         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66621         * lib/hash-pjw.h: New file.
66622
66623 2001-09-30  Jim Meyering  <meyering@lucent.com>
66624
66625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66626         `struct fsstat' has the `f_fstypename' member.
66627         Use that to define FS_TYPE, which is now used to make
66628         the getfsstat link test tighter.
66629
66630 2001-09-30  Jim Meyering  <meyering@lucent.com>
66631
66632         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66633         Include <sys/ucred.h>, for Apple Darwin.
66634         Include sys/mount.h and sys/fs_types.h only if available.
66635         (FS_TYPE): Define.
66636         (read_filesystem_list): Use FS_TYPE.
66637
66638 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66639
66640         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66641         a boolean context.
66642
66643 2001-09-29  Jim Meyering  <meyering@lucent.com>
66644
66645         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66646         [one-argument getmntent function]): Include stdio.h before mntent.h.
66647         SunOS 4.1.x needs it for the declaration of `FILE'.
66648         Patch by Volker Borchert.
66649
66650         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66651         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66652         sys/fs_types.h, and make the link-test for getfsstat guard #include
66653         directives with appropriate #if HAVE_*_H tests so that we can
66654         detect getfsstat on Apple Darwin1.3.7 systems.
66655         Reported by Nelson Beebe.
66656         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66657
66658 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66659
66660         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66661         #defines strtoimax.  Also treat the other strto* functions
66662         like strtoimax.
66663
66664         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66665         Check for strtoul and strtoumax,
66666         as those declarations are made even in the signed case.
66667         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66668         Likewise, for strtol and strtoimax.
66669
66670 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66671
66672         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66673         #defines strtoimax.  Also treat the other strto* functions
66674         like strtoimax.
66675
66676         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66677         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66678         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66679
66680 2001-09-26  Jim Meyering  <meyering@lucent.com>
66681
66682         Most macros in unlocked-io.h had the wrong number of arguments.
66683         * lib/gen-uio: New script.
66684         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66685         * lib/unlocked-io.hin: Remove file.
66686         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66687         rather than trying to embed it here.
66688         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66689         Reported by Padraig Brady.
66690
66691 2001-09-25  Volker Borchert  <bt@teknon.de>
66692
66693         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66694         `result'.
66695
66696 2001-09-24  Jim Meyering  <meyering@lucent.com>
66697
66698         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66699
66700 2001-09-23  Jim Meyering  <meyering@lucent.com>
66701
66702         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66703         instead of the mere test for existence of mntent.h.  The latter
66704         would get a false-positive on AIX 3.4 systems.
66705         In the outer getmntent if-block, don't die if neither of the getmntent
66706         tests succeeds.  Instead, just fall through and continue with the
66707         remaining tests.
66708
66709 2001-09-23  Jim Meyering  <meyering@lucent.com>
66710
66711         * lib/mountlist.c: Remove useless parentheses in #if directives.
66712         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66713         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66714
66715 2001-09-22  Jim Meyering  <meyering@lucent.com>
66716
66717         * m4/gettext.m4: New file.  From gettext.
66718         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66719         * m4/progtest.m4: Likewise
66720         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66721         * m4/glibc21.m4: Likewise.
66722
66723         * m4/libintl.m4: Remove.  No longer used.
66724
66725 2001-09-22  Jim Meyering  <meyering@lucent.com>
66726
66727         * lib/localcharset.c: Update from latest gettext.
66728         * lib/config.charset: Likewise.
66729
66730 2001-09-20  Jim Meyering  <meyering@lucent.com>
66731
66732         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66733         strtoimax.
66734         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66735         strtoumax.
66736
66737 2001-09-20  Jim Meyering  <meyering@lucent.com>
66738
66739         * lib/xstrtol.c (strtoimax): Guard declaration with
66740         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66741         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66742         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66743         (strtoumax): Likewise, for completeness (it wasn't necessary).
66744
66745 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66746
66747         * lib/strtoimax.c (HAVE_LONG_LONG):
66748         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66749         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66750         to work around bug in IBM C compiler.
66751
66752 2001-09-17  Jim Meyering  <meyering@lucent.com>
66753
66754         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66755         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66756         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66757         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66758         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66759         whenever the right hand side need not be expanded by the shell.
66760
66761 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66762
66763         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66764         library.  It's not correct, as some older glibcs are buggy.
66765         fnmatch wasn't fixed until glibc 2.2.
66766
66767         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66768         special shell magic here.
66769
66770 2001-09-16  Jim Meyering  <meyering@lucent.com>
66771
66772         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66773         * m4/jm-macros.m4: Require it.
66774
66775 2001-09-16  Jim Meyering  <meyering@lucent.com>
66776
66777         * lib/mkdir.c: New file.
66778
66779 2001-09-15  Jim Meyering  <meyering@lucent.com>
66780
66781         * m4/jm-macros.m4: Check for help2man.
66782
66783 2001-09-11  Jim Meyering  <meyering@lucent.com>
66784
66785         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66786         The body, by Paul Eggert, was moved here from configure.in.
66787         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66788
66789 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66790
66791         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66792         (jm_PREREQ): Use it.
66793
66794 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66795
66796         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66797         Use ssize_t, not int, to store result of readlink.
66798         Check for ssize_t overflow as well as size_t overflow,
66799         as POSIX says the result of readlink is implementation-defined
66800         when ssize_t overflows.
66801         Remove unnecessary cast to char*.
66802         Use free+malloc instead of realloc, as the storage doesn't need
66803         to be preserved and it's clearer and can be more efficient that way.
66804         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66805         * lib/xreadlink.h (xreadlink): Update prototype.
66806
66807 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66808
66809         * lib/xgetcwd.c: Revert some of the previous change; intead,
66810         fix the HAVE_GETCWD_NULL code to behave more like the
66811         !HAVE_GETCWD_NULL code used to.
66812
66813         Include "xalloc.h".
66814         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66815         invoke xalloc_die.
66816
66817 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66818
66819         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66820         sys/param.h, as pathmax.h includes them.
66821
66822 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66823
66824         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66825         (jm_PREREQ_XGETCWD): New macro.
66826
66827         * m4/getcwd.m4: New file.
66828
66829 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66830
66831         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
66832         like the HAVE_GETCWD_NULL code.
66833         Include pathmax.h if not HAVE_GETCWD.
66834         Do not include xalloc.h.
66835         (INITIAL_BUFFER_SIZE): New symbol.
66836         Do not use xmalloc / xrealloc, since the caller is responsible for
66837         handling errors.  Preserve errno around `free' during failure.
66838         Do not overrun buffer when using getwd.
66839
66840 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66841
66842         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
66843         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
66844         getcwd (NULL, 0).
66845
66846 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66847
66848         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
66849         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
66850         spotted by Jim Meyering.
66851
66852 2001-09-03  Jim Meyering  <meyering@lucent.com>
66853
66854         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
66855         failure.
66856
66857 2001-09-02  Jim Meyering  <meyering@lucent.com>
66858
66859         * lib/error.c: Update from GNU libc.
66860
66861 2001-09-01  Jim Meyering  <meyering@lucent.com>
66862
66863         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
66864         Used by df.
66865
66866 2001-09-01  Jim Meyering  <meyering@lucent.com>
66867
66868         * lib/xreadlink.c: New file.
66869         * lib/xreadlink.h: New file.
66870         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
66871         xreadlink.h.
66872
66873         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
66874         doesn't conflict with sparc Solaris 7's definition in
66875         /usr/include/sys/int_types.h.
66876
66877         * lib/exclude.c: Use `""', not `<>' to #include non-system header
66878         files.
66879         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
66880         and strncasecmp as r-values.  Unixware didn't have declarations.
66881
66882 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66883
66884         * lib/xstrtol.h: Add copyright notice.
66885         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
66886         LONGINT_INVALID_SUFFIX_CHAR.
66887
66888 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66889
66890         * lib/xstrtol.c (strtoimax): New decl.
66891
66892 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66893
66894         * lib/xgetcwd.c: Don't include pathmax.h.
66895         Include stdlib.h and unistd.h if available.
66896         Include xalloc.h.
66897         (xmalloc, xstrdup, free): Remove decls.
66898         (xgetcwd): Don't assume sizes fit in unsigned.
66899         Check for overflow when computing sizes.
66900         Simplify reallocation code.
66901
66902 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66903
66904         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
66905         a directory's st_size can have an arbitrary value, so the old
66906         usage could waste an arbitrary amount of memory.  All uses
66907         changed.
66908         * lib/savedir.h: Update prototype.
66909
66910 2001-08-31  Paul Eggert  <eggert@twinsun.com>
66911
66912         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
66913
66914         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
66915         old strtoimax.c.
66916
66917         Also, make the following further changes to make this file's
66918         configuration more similar to that of strtol.c:
66919         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
66920         (strtoumax, uintmax_t, strtoull, strtol): Remove.
66921         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
66922         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
66923         changed to signed values.
66924
66925         And make the following changes as well:
66926         Fix copyright notice, as 1999 was missing.
66927         (verify): New macro.
66928         (strtoimax): Check sizes at compile-time, not run-time.
66929         Prefer strtol to strtoll if both work.
66930         (main): Remove; it was not that useful and was a pain to maintain.
66931
66932         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
66933
66934 2001-08-31  Jim Meyering  <meyering@lucent.com>
66935
66936         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
66937         Use an initial, malloc'd, buffer of length 128 rather than
66938         a statically allocated one of length 1024.
66939
66940 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66941
66942         Simplify code, partly by assuming autoconf 2.52 semantics.
66943
66944         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
66945
66946         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
66947         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
66948         All uses removed.
66949         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
66950         Move AC_REQUIRE to next-to-top level, to avoid confusion.
66951         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
66952         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
66953         jm_AC_HEADER_INTTYPES_H.
66954         * m4/jm-macros.m4 (jm_MACROS): Likewise.
66955
66956         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
66957
66958         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66959         Quote first arg of AC_DEFUN.
66960         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
66961         since they are needed to parse the include file even if we need
66962         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
66963         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
66964         but with opposite signedness.
66965
66966 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66967
66968         Merge 'exclude' changes from tar 1.13.22.
66969         This fixes one or two unlikely storage allocation overflow bugs,
66970         but doesn't change user-visible behavior otherwise.
66971
66972 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66973
66974         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
66975         (jm_PREREQ_EXCLUDE): New macro.
66976
66977 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66978
66979         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
66980         tm to be declared.
66981
66982 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66983
66984         * lib/hash.c: Remove '2001' from copyright notice.
66985
66986 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66987
66988         * lib/full-write.h: New file.
66989         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
66990         * lib/full-write.c: Correct credits, as cccp.c no longer
66991         exists and anyway it was so heavily changed from the old cccp
66992         code as to be unrecognizable.  Include full-write.h.
66993         (full_write) Return size_t, with short writes meaning failure.
66994         All callers changed.  This fixes a bug with large buffers
66995         on 64-bit hosts.
66996         * lib/utime.c: Include full-write.h.
66997
66998 2001-08-30  Paul Eggert  <eggert@twinsun.com>
66999
67000         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
67001         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
67002         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
67003         Include if available.
67004         (<xalloc.h>): Include
67005         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
67006         (verify): New macro.  Use it to verify that EXCLUDE macros do not
67007         collide with FNM macros.
67008         (struct patopts): New struct.
67009         (struct exclude): Use it, as exclude patterns now come with options.
67010         (new_exclude): Support above changes.
67011         (new_exclude, add_exclude_file):
67012         Initial size must now be a power of two to simplify overflow checking.
67013         (free_exclude, fnmatch_no_wildcards): New function.
67014         (excluded_filename): No longer requires options arg, as the options
67015         are determined by add_exclude.  Now returns bool, not int.
67016         (excluded_filename, add_exclude):
67017         Add support for the fancy new exclusion options.
67018         (add_exclude, add_exclude_file): Now takes int options arg.
67019         Check for arithmetic overflow when computing sizes.
67020         (add_exclude_file): xrealloc might modify errno, so don't
67021         realloc until after errno might be used.
67022
67023         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
67024         New macros.
67025         (free_exclude): New decl.
67026         (add_exclude, add_exclude_file): Now takes int options arg.
67027         (excluded_filename): No longer requires options arg, as the options
67028         are determined by add_exclude.  Now returns bool, not int.
67029
67030 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67031
67032         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
67033
67034 2001-08-27  Jim Meyering  <meyering@lucent.com>
67035
67036         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
67037
67038         * lib/version-etc.c (N_): Remove definition.
67039         Revert most of last change.
67040         Instead, simply don't mark the `Copyright...' string for translation.
67041         Based on advice from Paul Eggert.
67042
67043         * lib/strtoxmax.c: Tweak comment.
67044
67045 2001-08-26  Jim Meyering  <meyering@lucent.com>
67046
67047         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
67048
67049         * m4/xstrtoimax.m4: New file.
67050         * m4/xstrtoumax.m4: Add comments explaining why we
67051         AC_REPLACE_FUNCS(strtol).
67052
67053 2001-08-26  Jim Meyering  <meyering@lucent.com>
67054
67055         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
67056         of copyright with `%s' so translators don't get an untranslated
67057         message in 2002.
67058         (COPYRIGHT_YEAR): Define.
67059         (version_etc): Use fprintf rather than fputs.
67060         Suggestion from Ulrich Drepper.
67061
67062         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
67063
67064         * lib/strtoll.c: New file, from GNU libc.
67065         * lib/xstrtoimax.c: New file.
67066
67067         * lib/xstrtol.h: Add xstrtoimax.
67068         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
67069         * lib/strtoimax.c: New file.  Likewise, but first define
67070         STRTOUXMAX_SIGNED.
67071
67072         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
67073         ...
67074         * lib/strtoxmax.c: ... then renamed to this.
67075
67076 2001-08-18  Paul Eggert  <eggert@twinsun.com>
67077
67078         * m4/inttypes.m4: Add AC_PREREQ(2.13).
67079         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
67080         (jm_AC_TYPE_INTMAX_T): New macro.
67081         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
67082
67083         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
67084
67085         * m4/longlong.m4: Renamed from ulonglong.m4.
67086         * m4/inttypes.m4: Renamed from inttypes_h.m4.
67087         * m4/uintmax_t.m4: Removed.
67088
67089 2001-08-13  Paul Eggert  <eggert@twinsun.com>
67090
67091         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
67092         Port to Solaris 8, where 'sed' requires a space after the 'r'
67093         command, and where sh dislikes "$/".  Clean up the spacing a bit.
67094         Redirect output to $tmp just once.
67095
67096 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
67097
67098         * lib/addext.c (<errno.h>): Include.
67099         (errno): Declare if not defined.
67100         (addext): Work correctly when pathconf returns -1 and leaves
67101         errno alone because there is no limit.  Also, work even if
67102         pathconf returns a value greater than SIZE_MAX.
67103
67104 2001-08-12  Jim Meyering  <meyering@lucent.com>
67105
67106         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
67107         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
67108         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
67109         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
67110         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
67111         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
67112         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
67113         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
67114         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
67115         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
67116         utime.m4, utimes.m4, xstrtoumax.m4:
67117         Quote the first argument in each use of AC_DEFUN.
67118
67119 2001-08-12  Jim Meyering  <meyering@lucent.com>
67120
67121         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
67122         Simply `return getcwd (NULL, 0);'.
67123         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
67124         Use 1300 as initial value for length, not PATH_MAX.
67125
67126         * lib/pathmax.h: Clean up cpp syntax.
67127
67128 2001-08-12  Jim Meyering  <meyering@lucent.com>
67129
67130         * lib/gettimeofday.c: New file.
67131         * lib/gtod.h: New file.
67132         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
67133
67134 2001-08-05  Jim Meyering  <meyering@lucent.com>
67135
67136         * m4/jm-macros.m4: Require autoconf-2.52.
67137
67138 2001-08-04  Jim Meyering  <meyering@lucent.com>
67139
67140         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
67141         stmt, to get in sync with glibc.
67142
67143 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67144
67145         The following changes are from gettext 0.10.39 as maintained by
67146         Bruno Haible.
67147
67148         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
67149         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
67150         with inverted sense.  All uses changed.
67151
67152         * lib/mbswidth.c: Don't include <limits.h>.
67153         Include <stdlib.h> and <string.h> unconditionally.
67154         (iswcntrl, mbsinit, ISCNTRL): New macros.
67155         (mbsnwidth): Use K&R style function declarations.
67156         Don't bother checking for MB_LEN_MAX == 1, since the compiler
67157         can optimize it when MB_CUR_MAX == 1.
67158         The width of control characters is zero, not 1.
67159
67160 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67161
67162         The following changes are from gettext 0.10.39 as maintained by
67163         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67164
67165         * m4/codeset.m4: Upgrade to serial AM1.
67166         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67167         all uses changed.  Quote first arg of AC_DEFUN.
67168         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67169
67170         * m4/iconv.m4: Upgrade to serial AM2.
67171         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67172         Add --with-libconv-prefix.
67173         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67174         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67175         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67176         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67177         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67178
67179         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67180         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67181         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67182         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67183         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67184         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67185         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67186         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67187         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67188
67189         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67190         string.h any more.
67191
67192         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67193         not the default value.
67194
67195         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67196         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67197         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67198         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67199         Also check for iswcntrl, used for wcwidth fallback.
67200         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67201         to Autoconf 2.13.
67202
67203 2001-08-03  Jim Meyering  <meyering@lucent.com>
67204
67205         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67206         as it was in the original.  Reported by Paul Eggert.
67207
67208 2001-07-16  Jim Meyering  <meyering@lucent.com>
67209
67210         * m4/gettimeofday.m4: New file.
67211         Prompted by a report from Bernhard Baehr.
67212
67213 2001-07-15  Jim Meyering  <meyering@lucent.com>
67214
67215         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67216         stuff. Now it's in ../Makefile.cfg.
67217
67218 2001-07-15  Jim Meyering  <meyering@lucent.com>
67219
67220         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67221         (BUILT_SOURCES): Add unlocked-io.h.
67222         (io_functions): Define.
67223         (unlocked-io.h): New rule.
67224         (DISTCLEANFILES): Add unlocked-io.h.
67225         (all-local): Depend on unlocked-io.h, to ensure it is created.
67226
67227         * lib/unlocked-io.hin: New file
67228
67229         * lib/regex.c: Update from glibc.
67230
67231 2001-07-05  Jim Meyering  <meyering@lucent.com>
67232
67233         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67234         recommendation.
67235         (libfetish_a_SOURCES): Put all .h files here instead.
67236         Remove a thus-exposed (better checks in automake) duplicate and
67237         two unnecessary .h files.
67238
67239 2001-07-04  Jim Meyering  <meyering@lucent.com>
67240
67241         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67242         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67243         distcheck failure.
67244
67245 2001-07-02  Jim Meyering  <meyering@lucent.com>
67246
67247         The following changes were prompted by suggestions from Bruno Haible.
67248
67249         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67250         is now generated.
67251         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67252         definition of EXTRA_DIST.
67253         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67254         ensure that the generated file is created/updated whenever the list
67255         of $(unlocked_functions) is changed.
67256         (jm-glibc-io.m4): New rule.
67257         (unlocked-io.h): New rule -- currently unused.
67258
67259 2001-06-24  Jim Meyering  <meyering@lucent.com>
67260
67261         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67262         unmatched right bracket, rather than kludging it with an extra,
67263         falsely-matching quote in a comment.  Patch by Akim Demaille.
67264
67265 2001-06-11  Jim Meyering  <meyering@lucent.com>
67266
67267         * lib/regex.c: Update from GNU libc.
67268
67269 2001-05-27  Jim Meyering  <meyering@lucent.com>
67270
67271         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67272         Check for ut_type in struct utmp.
67273
67274 2001-05-27  Jim Meyering  <meyering@lucent.com>
67275
67276         * lib/readutmp.h (UT_TYPE): Define.
67277
67278 2001-05-24  Jim Meyering  <meyering@lucent.com>
67279
67280         * lib/argmatch.c: Include "quote.h".
67281         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67282         quote function.  Reported by Göran Uddeborg.
67283
67284 2001-05-22  Jim Meyering  <meyering@lucent.com>
67285
67286         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67287         now that we use the package-supplied version unconditionally.
67288         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67289
67290 2001-05-21  Jim Meyering  <meyering@lucent.com>
67291
67292         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67293         shell syntax errors.
67294
67295 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67296
67297         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67298
67299 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67300
67301         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67302         Don't bother to check library strftime, since
67303         we'll be using our own my_strftime function anyway.
67304         Define my_strftime instead of strftime.
67305
67306 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67307
67308         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67309         which is not yet declared.
67310
67311 2001-05-15  Jim Meyering  <meyering@lucent.com>
67312
67313         * m4/regex.m4: Use proper quoting so brackets appear in the test
67314         program.
67315         Reported by, and with help from, Bruno Haible.
67316
67317 2001-05-13  Jim Meyering  <meyering@lucent.com>
67318
67319         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67320         undefined.
67321
67322 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67323
67324         dirname code cleanup.  base_name now behaves more compatibly
67325         with POSIX basename when given file names that have trailing
67326         slashes, and similarly for dir_name.  Add new primitives
67327         base_len and dir_len.  Put the directory-name-related decls
67328         into dirname.h.
67329
67330         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67331         * lib/backupfile.c (base_name): Likewise.
67332         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67333         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67334         * lib/makepath.c (strip_trailing_slashes): Likewise.
67335         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67336         ISSLASH): Likewise.
67337         * lib/rename.c (strip_trailing_slashes): Likewise.
67338         * lib/same.c (base_name): Likewise.
67339         * lib/stripslash.c (ISSLASH): Likewise.
67340
67341         * lib/addext.c: Include <dirname.h> after size_t is defined.
67342         * lib/backupfile.c: Likewise.
67343
67344         * lib/addext.c (addext): Use base_len to trim redundant
67345         trailing slashes instead of doing it ourselves.
67346         But do not trim the last slash if it is not redundant.
67347
67348         * lib/backupfile.c (find_backup_file_name,
67349         max_backup_version): Use base_len instead of rolling it ourselves.
67350         Handle the case of "" and (on DOS) "C:" correctly.
67351
67352         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67353         needed. Include <string.h>, <dirname.h>.
67354         (base_name): Allow file names ending in slashes, other than names
67355         that are all slashes.  In this case, return the basename followed
67356         by the slashes.  This is more general, and can be used in places
67357         where the original base_name purposely had an assertion failure.
67358         (base_len): New function.
67359
67360         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67361         Do not include <assert.h>; no longer needed.
67362         Include xalloc.h.
67363         (memrchr): Remove decl.
67364         (dir_name_r): Remove.
67365         (dir_len): Renamed from dirlen.  All callers changed.
67366         Rewrite in terms of base_name, for simplicity and consistency.
67367         (dir_name): Never return NULL.  All callers changed.
67368         Do not include <stdlib.h> in test program; no longer needed.
67369         return 0; is fine for test program.
67370
67371         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67372         New macros.
67373         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67374
67375         * lib/path-concat.c (path_concat): Use base_len to compute
67376         base length, not strlen; this means we cannot rely on memcpy
67377         to null-terminate.
67378
67379         * lib/same.c (STREQ): Remove.
67380         (same_name): Handle the case where the basename ends in trailing '/'.
67381
67382         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67383         a slash was stripped.  Do not strip the last slash after a
67384         file system prefix.
67385
67386 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67387
67388         * lib/Makefile.am (libfetish_a_SOURCES):
67389         Add strftime.c, since we now compile it on all hosts.
67390
67391         * lib/strftime.c (my_strftime):
67392         Define to nstrftime if emacs, but only if my_strftime is not defined.
67393         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67394         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67395         Add one more extra argument: a nanoseconds value.
67396         All uses changed.
67397         (ns): New macro.
67398         (my_strftime function): Add %N format.
67399         (emacs_strftimeu): Renamed from emacs_strftime,
67400         with extra ut argument.
67401
67402 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67403
67404         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67405
67406 2001-04-21  Jim Meyering  <meyering@lucent.com>
67407
67408         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67409         doesn't interfere.
67410
67411 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67412
67413         * m4/ftruncate.m4: Check for chsize.
67414         Link with ftruncate.o unconditionally if ftruncate is missing.
67415         This was required when cross-compiling to i586-mingw32msvc.
67416
67417 2001-04-08  Jim Meyering  <meyering@lucent.com>
67418
67419         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67420         recomputed; that's necessary when the offset spans a DST transition.
67421         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67422
67423 2001-04-02  Jim Meyering  <meyering@lucent.com>
67424
67425         * lib/regex.h, regex.c: Update from GNU libc.
67426
67427 2001-03-24  Jim Meyering  <meyering@lucent.com>
67428
67429         * m4/jm-macros.m4: Require autoconf-2.49d.
67430
67431 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67432
67433         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67434
67435 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67436
67437         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67438
67439 2001-03-17  Jim Meyering  <meyering@lucent.com>
67440
67441         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67442         now that the version in autoconf is equivalent.
67443         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67444
67445         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67446         Suggestion from Akim Demaille.
67447
67448         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67449         (jm_PREREQ_TEMPNAME): New function.
67450
67451 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67452
67453         * lib/tempname.c (uint64_t): Define to uintmax_t if
67454         not defined, and if UINT64_MAX is not defined.
67455         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67456         Reported by John David Anglin.
67457
67458 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67459
67460         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67461         resolve alias if codeset is empty.
67462         * lib/config.charset (BeOS): Use wildcard syntax.
67463
67464 2001-03-13  Jim Meyering  <meyering@lucent.com>
67465
67466         * lib/path-concat.c (path_concat)
67467         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67468         concatenating e.g., `C:' and `foo'.
67469         From Bruno Haible.
67470
67471 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67472
67473         * lib/localcharset.c (locale_charset): Don't use
67474         setlocale(LC_CTYPE,NULL). Don't return NULL.
67475         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67476
67477 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67478
67479         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67480         support for DOS/DJGPP.
67481
67482 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67483
67484         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67485         lacks mkstemp.  Compile our own tempname.c if we compile our own
67486         mkstemp.c, as mkstemp relies on tempname.
67487
67488 2001-03-01  Jim Meyering  <meyering@lucent.com>
67489
67490         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67491         AH_VERBATIM really does output its argument verbatim.
67492
67493 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67494
67495         * lib/Makefile.am (libfetish_a_SOURCES):
67496         Add dup-safer.c, fopen-safer.c.
67497         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67498
67499         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67500         * lib/unistd-safer.h: New files.
67501
67502 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67503
67504         The mkstemp replacement is taken from glibc 2.2.2, with some
67505         portability fixes for use outside glibc, as follows:
67506
67507         * lib/tempname.c (struct_stat64): New macro.
67508         (direxists, __gen_tempname): Use it.
67509         This avoids a portability problem with Solaris 8.
67510
67511         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67512         (<stddef.h>, <stdint.h>, <string.h>):
67513         Include only if STDC_HEADERS || _LIBC.
67514         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67515         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67516         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67517         (__set_errno): Define this macro if <errno.h> doesn't.
67518         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67519         Define these macros if <stdio.h> doesn't.
67520         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67521         Define these macros if <sys/stat.h>
67522         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67523         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67524         __xstat64): Define if not _LIBC.
67525         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67526         (__gen_tempname): Invoke gettimeofday only if
67527         HAVE_GETTIMEOFDAY || _LIBC;
67528         otherwise, fall back on plain "time".
67529         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67530
67531         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67532
67533         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67534
67535 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67536
67537         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67538
67539 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67540
67541         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67542         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67543         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67544         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67545
67546 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67547
67548         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67549         Remove workaround macros for hosts that have mbrtowc but not
67550         mbstate_t, as we now insist on proper declarations for both
67551         before using mbrtowc.
67552
67553 2001-02-17  Jim Meyering  <meyering@lucent.com>
67554
67555         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67556         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67557         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67558         UnixWare 7.1.1.
67559
67560         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67561         rather than AC_CACHE_VAL.
67562
67563 2001-02-17  Jim Meyering  <meyering@lucent.com>
67564
67565         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67566         around included file name.
67567
67568         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67569
67570         * lib/strftime.c: Update from GNU libc (the only changes were to
67571         comments).
67572
67573 2001-02-17  Jim Meyering  <meyering@lucent.com>
67574
67575         * lib/regex.c: Update from libc.
67576
67577 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67578
67579         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67580         clash.
67581
67582 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67583
67584         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67585         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67586         Reported by Mark Hounschell via Paul Eggert.
67587
67588 2001-02-07  Jim Meyering  <meyering@lucent.com>
67589
67590         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67591
67592 2001-02-05  Jim Meyering  <meyering@lucent.com>
67593
67594         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67595         it includes the patch required for `large file' support with at least
67596         HP-UX's 10.20 /bin/cc.
67597
67598 2001-02-03  Jim Meyering  <meyering@lucent.com>
67599
67600         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67601         AS_IF, now that it works once again (mysteriously).
67602         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67603
67604 2001-01-30  Jim Meyering  <meyering@lucent.com>
67605
67606         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67607         * m4/chown.m4: Rename conftestchown to conftest.chown.
67608         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67609         s/conftestdir2/conftest.d2/.
67610         * m4/utimes.m4: s/conftestdata/conftest.data/
67611         Inspired by Pavel Roskin's change in autoconf.
67612
67613 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67614
67615         * lib/config.charset: Update for FreeBSD 4.2.
67616
67617 2001-01-27  Jim Meyering  <meyering@lucent.com>
67618
67619         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67620         a use of AS_IF.
67621         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67622
67623 2001-01-26  Jim Meyering  <meyering@lucent.com>
67624
67625         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67626         quotearg.c includes it.
67627
67628 2001-01-26  Jim Meyering  <meyering@lucent.com>
67629
67630         * lib/quotearg.c: Include stddef.h.
67631         * lib/quote.c: Include stddef.h.
67632         Reported by Axel Kittenberger.
67633
67634         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67635         line in double quotes so that it evokes a better diagnostic.
67636         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67637         Reported by Axel Kittenberger.
67638
67639 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67640
67641         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67642         as if it was a `charset'.
67643
67644 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67645
67646         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67647         has const.
67648
67649 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67650
67651         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67652         to avoid a warning.  Add back 'const' to inptr.
67653
67654 2001-01-20  Jim Meyering  <meyering@lucent.com>
67655
67656         Be sure that headers are checked before used in code compiled
67657         for the type checks.
67658         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67659         In place of that, invoke jm_CHECK_ALL_TYPES.
67660         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67661         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67662         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67663         The check for ssize_t was mistakenly run before the test for unistd.h.
67664
67665         The configure-time check for stdbool.h was missing.
67666         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67667         (jm_PREREQ_HASH): New function.
67668
67669 2001-01-17  Jim Meyering  <meyering@lucent.com>
67670
67671         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67672         for autoconf-2.49c.
67673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67674
67675 2001-01-16  Jim Meyering  <meyering@lucent.com>
67676
67677         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67678         From Bruno Haible.
67679
67680 2001-01-14  Jim Meyering  <meyering@lucent.com>
67681
67682         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67683         foo and bar.  Create conftestdir/ in the script, not in the C code.
67684         Remove directories in the script, not in the C code.
67685         Remove conftestdir{,2} before trying to create the directory.
67686         Make the entire configure script fail if the mkdir fails.
67687
67688 2001-01-14  Jim Meyering  <meyering@lucent.com>
67689
67690         * lib/rename.c: New file.  From Volker Borchert.
67691         Include stdlib.h, string.h or strings.h, and xalloc.h.
67692         Use strip_trailing_slashes rather than open-coding it.
67693
67694 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67695
67696         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67697
67698 2001-01-03  Jim Meyering  <meyering@lucent.com>
67699
67700         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67701         of local `inptr' to avoid warning with some system declarations of
67702         iconv.
67703
67704 2001-01-02  Volker Borchert  <bt@teknon.de>
67705
67706         * m4/rename.m4: New file.
67707         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67708
67709 2001-01-01  Jim Meyering  <meyering@lucent.com>
67710
67711         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67712         even on systems with utmpx.h.  It's necessary for the declaration of
67713         utmp's ut_user member.  Reported by Andreas Jaeger.
67714
67715         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67716         available. They are required for the declarations of getgrgid and
67717         getpwuid resp.
67718         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67719         Reported by Andreas Jaeger.
67720
67721 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67722
67723         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67724         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67725         so `make install' also works in VPATH builds.
67726
67727 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67728
67729         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67730         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67731         can be used in subdirectories.
67732
67733 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67734
67735         * lib/modechange.c: Do not assume that mode_t uses the
67736         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67737         the other-execute bit of FOO even if S_IXOTH != 1.
67738
67739         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67740         WOTH, XOTH, ALLM): New macros.
67741         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67742          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67743         Use them.
67744         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67745         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67746         (mode_compile):
67747         No need to use uintmax_t; unsigned long is long enough.
67748         Don't bother to get suffix since we don't use it.
67749
67750 2000-12-26  Jim Meyering  <meyering@lucent.com>
67751
67752         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67753         better with autoheader.
67754
67755 2000-12-24  Jim Meyering  <meyering@lucent.com>
67756
67757         * lib/hash.c (is_prime): Return explicit boolean values.
67758         (hash_get_first): Return NULL to appease Irix5.6's 89.
67759         Reported by Nelson Beebe.
67760
67761 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67762
67763         * lib/localcharset.c (locale_charset): Add support for Win32.
67764
67765 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67766
67767         * lib/physmem.h, lib/physmem.c: New files.
67768
67769         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67770         (noinst_HEADERS): Add physmem.h.
67771
67772         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67773         't' for compatibility with Solaris 8 sort.
67774
67775 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67776
67777         * lib/config.charset: Add support for BeOS.
67778
67779 2000-12-17  Jim Meyering  <meyering@lucent.com>
67780
67781         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67782         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67783
67784 2000-12-16  Jim Meyering  <meyering@lucent.com>
67785
67786         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67787         N and M) would have treated it like `chown N:N FILE'.
67788
67789         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67790
67791 2000-12-16  Jim Meyering  <meyering@lucent.com>
67792
67793         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67794         SHELLS_FILE to a file name that's useful on djgpp systems.
67795         Include stdlib.h.
67796         (ADDITIONAL_DEFAULT_SHELLS): Define.
67797         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67798         Based mostly on a patch from Prashant TR.
67799
67800 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67801
67802         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67803         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67804         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67805
67806 2000-12-08  Andreas Schwab  <schwab@suse.de>
67807
67808         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67809         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67810
67811 2000-12-07  Jim Meyering  <meyering@lucent.com>
67812
67813         * lib/stripslash.c (ISSLASH): Define.
67814         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67815         `/'.
67816         From Prashant TR.
67817
67818         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67819         (dir_name_r): Declare this function as static.
67820         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67821         manifest itself on a name containing a mix of slashes and
67822         backslashes.
67823         Make this function work with names starting with a DOS-style
67824         drive letter and colon prefix.
67825         (dir_name): Append `.' if necessary.
67826         Based mostly on patches from Prashant TR and Eli Zaretskii.
67827
67828         * lib/dirname.h (dir_name_r): Remove prototype.
67829
67830 2000-12-06  Paul Eggert  <eggert@twinsun.com>
67831
67832         * m4/off_t-format.m4: Remove this file.
67833         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
67834
67835 2000-12-06  Jim Meyering  <meyering@lucent.com>
67836
67837         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
67838         replacement strtoull, we may well need the replacement strtoul, too.
67839         Check for declarations of strtoul and strtoull.
67840         Check for strtol.  Mainly as a cue to cause automake to include
67841         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
67842         Check for limits.h -- strtol.c needs it.
67843
67844 2000-12-05  Jim Meyering  <meyering@lucent.com>
67845
67846         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
67847
67848 2000-12-04  Jim Meyering  <meyering@lucent.com>
67849
67850         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
67851         Also include memory.h, stdlib.h, unistd.h if appropriate.
67852         Reported by Andreas Jaeger (conflicting declaration of malloc).
67853
67854 2000-12-02  Jim Meyering  <meyering@lucent.com>
67855
67856         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
67857         * m4/jm-macros.m4 (jm_MACROS): require it.
67858
67859 2000-12-02  Jim Meyering  <meyering@lucent.com>
67860
67861         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
67862
67863 2000-12-01  Paul Eggert  <eggert@twinsun.com>
67864
67865         * lib/memrchr.c: Include <config.h> before any system include file.
67866
67867 2000-11-30  Jim Meyering  <meyering@lucent.com>
67868
67869         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
67870
67871 2000-11-30  Jim Meyering  <meyering@lucent.com>
67872
67873         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
67874
67875 2000-11-29  Paul Eggert  <eggert@twinsun.com>
67876
67877         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
67878
67879 2000-11-26  Jim Meyering  <meyering@lucent.com>
67880
67881         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
67882
67883 2000-11-22  Paul Eggert  <eggert@twinsun.com>
67884
67885         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
67886         size of (size_t) -1; it's not portable.
67887
67888 2000-11-17  Jim Meyering  <meyering@lucent.com>
67889
67890         * lib/strstr.c: Update from GNU libc.
67891
67892 2000-11-17  Akim Demaille  <akim@epita.fr>
67893
67894         * lib/obstack.h: Formatting changes.
67895         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
67896         prevent type checking.
67897         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
67898         cast the value to (void *): assigning a `foo *' to a `void *'
67899         variable is valid.
67900         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
67901
67902 2000-11-16  Jim Meyering  <meyering@lucent.com>
67903
67904         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
67905
67906 2000-11-11  Jim Meyering  <meyering@lucent.com>
67907
67908         * lib/error.c: Add a couple #includes, merging from GNU libc version.
67909
67910 2000-11-10  Jim Meyering  <meyering@lucent.com>
67911
67912         * lib/obstack.h: Update from GNU libc.
67913         * lib/obstack.c: Likewise.
67914
67915 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
67916
67917         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
67918
67919 2000-11-06  Paul Eggert  <eggert@twinsun.com>
67920
67921         * lib/getusershell.c (setusershell): Use rewind rather than
67922         fseek/fseeko, to avoid configuration hassles with fseeko.
67923         Don't bother opening SHELLS_FILE if shellstream is NULL;
67924         it's not necessary.
67925
67926 2000-11-05  Jim Meyering  <meyering@lucent.com>
67927
67928         * lib/makepath.h (make_dir): Declare.
67929         * lib/makepath.c (make_dir): Remove `static' attribute.
67930         Tweak a comment.
67931
67932 2000-11-04  Jim Meyering  <meyering@lucent.com>
67933
67934         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
67935
67936 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
67937
67938         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
67939         last one in a bucket, advance to the next bucket.
67940
67941 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
67942
67943         * lib/fnmatch.c: Do not comment out all the code if we are using
67944         the GNU C library, because in some cases we are replacing buggy
67945         code in the GNU C library itself.
67946
67947 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
67948
67949         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
67950         (regex_compile): Catch bogus \(\1\).
67951
67952 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67953
67954         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
67955         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
67956         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
67957
67958 2000-10-30  Paul Eggert  <eggert@twinsun.com>
67959
67960         * lib/error.h, getline.h, modechange.h:
67961         Remove "2000" from Copyright line, as the file hasn't been
67962         changed this year other than in the copyright notice.
67963
67964         * lib/xalloc.h: Add "2000" to Copyright line, as this file
67965         was changed this year.
67966
67967 2000-10-29  Jim Meyering  <meyering@lucent.com>
67968
67969         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
67970         renaming.
67971         * m4/ls-mntd-fs.m4: Likewise
67972
67973 2000-10-29  Jim Meyering  <meyering@lucent.com>
67974
67975         * lib/xstat.in: Fix grammar in comment.
67976
67977 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
67978
67979         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
67980         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
67981         doesn't define __restrict_arr.
67982
67983 2000-10-28  Jim Meyering  <meyering@lucent.com>
67984
67985         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
67986         (jm_PREREQ_MEMCHR): New function.
67987
67988 2000-10-28  Jim Meyering  <meyering@lucent.com>
67989
67990         * lib/memchr.c: Update from libc.
67991         Adjust for portability:
67992         [HAVE_STDLIB_H]: Include stdlib.h.
67993         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
67994         Undef __memchr, too.
67995         [!weak_alias]: Define __memchr to memchr.
67996
67997         * lib/regex.c: Update from libc.
67998         * lib/regex.h: Likewise.
67999         * lib/getopt1.c: Likewise.
68000         * lib/memcmp.c: Likewise.
68001
68002         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
68003         Avoid using fseek, when possible -- it's broken by design.
68004         Patch by Ulrich Drepper.
68005
68006 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
68007
68008         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
68009         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
68010         Giving in to popular pressure to shut up the compiler with casts.
68011
68012 2000-10-26  Jim Meyering  <meyering@lucent.com>
68013
68014         * lib/strftime.c: Update from libc.
68015
68016 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
68017
68018         * regex.c: More `unsigned char' -> `re_char' changes.
68019         Also change several `int' into `re_wchar_t'.
68020         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
68021         (PUSH_FAILURE_POINTER): Don't cast any more.
68022         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
68023         We want GCC to complain, since this piece of code makes
68024         re_match non-reentrant, which *should* be fixed.
68025         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
68026         (EXTEND_BUFFER): Use RETALLOC.
68027         (SET_LIST_BIT): Don't cast.
68028         (re_wchar_t): New type.
68029         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
68030         that those two functions will always properly return.
68031         (IMMEDIATE_QUIT_CHECK): Cast to void.
68032         (analyse_first): Use recursion rather than an explicit stack.
68033         (re_compile_fastmap): Can't fail anymore.
68034         (re_search_2): Don't check re_compile_fastmap for failure.
68035         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
68036         Now also sets the new value (passed in a new argument).
68037         (re_match_2_internal): Use it.
68038         Also, use a new var `reg' of type size_t when looping through regs
68039         rather than reuse the inappropriate `mcnt'.
68040
68041 2000-10-25  Jim Meyering  <meyering@lucent.com>
68042
68043         * lib/obstack.c: Update from libc.
68044
68045 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
68046
68047         * regex.c (regex_compile): Change the way of handling a range from
68048         a char less than 256 to a char not less than 256.
68049
68050 2000-10-24  Andrew Innes  <andrewi@gnu.org>
68051
68052         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
68053         NT-Emacs only.
68054         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
68055         so that re_search functions only quit when callers expect them to.
68056
68057 2000-10-23  Jim Meyering  <meyering@lucent.com>
68058
68059         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
68060         wrong.  That set_locale call must not have any side effects.
68061         From Paul Eggert.
68062
68063 2000-10-22  Jim Meyering  <meyering@lucent.com>
68064
68065         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
68066         [CYCLIC]: Remove now-unused definition.
68067
68068         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
68069         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
68070         Suggestion from Ulrich Drepper.
68071
68072 2000-10-21  Jim Meyering  <meyering@lucent.com>
68073
68074         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
68075         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
68076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
68077
68078 2000-10-21  Jim Meyering  <meyering@lucent.com>
68079
68080         * lib/dirname.c (memrchr): Declare if necessary.
68081         (dir_name): Remove the restriction that there be no
68082         trailing slashes.  Now, this code skips past them, effectively
68083         ignoring them.
68084         [TEST_DIRNAME] (main): New unit tests.
68085
68086         * lib/memrchr.c: New file from GNU libc.
68087         Undef __memrchr, too.
68088         [!weak_alias]: Define __memrchr to memrchr.
68089         Guard weak_alias use with `#ifdef weak_alias'.
68090
68091 2000-10-21  Jim Meyering  <meyering@lucent.com>
68092
68093         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
68094         (dir_name): Use dir_name_r.
68095         * lib/dirname.h (dir_name_r): Declare it.
68096
68097 2000-10-17  Jim Meyering  <meyering@lucent.com>
68098
68099         * lib/quote.h (PARAMS): Define and use.
68100         Reported by Akim Demaille.
68101
68102         * lib/getopt.c: Update from libc.
68103
68104 2000-10-16  Jim Meyering  <meyering@lucent.com>
68105
68106         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
68107         setlocale.
68108         From Jan Fedak.
68109
68110 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
68111
68112         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
68113
68114 2000-09-25  Jim Meyering  <meyering@lucent.com>
68115
68116         * lib/md5.h (rol): Define (from GnuPG).
68117
68118         * lib/sha.c: Give credit (GnuPG) where due.
68119         (M): Use rol rather than open-coding it.
68120         Add a FIXME comment.
68121
68122 2000-09-21  Jim Meyering  <meyering@lucent.com>
68123
68124         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
68125         Reported by Michael Stone.
68126
68127 2000-09-20  Jim Meyering  <meyering@lucent.com>
68128
68129         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
68130         (noinst_HEADERS): Add sha.h.
68131         Based on code from Scott G. Miller and from GnuPG.
68132
68133 2000-09-18  Jim Meyering  <meyering@lucent.com>
68134
68135         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
68136         LIBS. Otherwise, everyone ends up linking with -lelf for some
68137         configurations.
68138         Reported by Mike Stone.
68139
68140 2000-09-15  Jim Meyering  <meyering@lucent.com>
68141
68142         * lib/regex.c: Update from libc.
68143
68144 2000-09-10  Jim Meyering  <meyering@lucent.com>
68145
68146         * lib/getopt.c (_getopt_internal): Update from glibc.
68147
68148 2000-09-09  Jim Meyering  <meyering@lucent.com>
68149
68150         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
68151         think it should be used as a general replacement for isascii.
68152         * lib/fnmatch.c: Likewise.
68153         * lib/mbswidth.c: Likewise
68154         * lib/regex.c: Likewise.
68155
68156         Don't use atoi.
68157         * lib/userspec.c: Include sys/param.h and limits.h.
68158         Include xstrtol.h.
68159         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68160         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68161         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68162         UID, GID.  Check range.
68163
68164 2000-09-06  Jim Meyering  <meyering@lucent.com>
68165
68166         * lib/getopt.c (_getopt_internal): Update from glibc.
68167
68168 2000-08-30  Jim Meyering  <meyering@lucent.com>
68169
68170         * lib/strftime.c: Merge in changes from GNU libc.
68171
68172 2000-08-26  Jim Meyering  <meyering@lucent.com>
68173
68174         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68175         * m4/fpending.m4: New file.
68176
68177 2000-08-26  Jim Meyering  <meyering@lucent.com>
68178
68179         * lib/closeout.c: Include "__fpending.h".
68180         (close_stdout_status): Return right away if there's nothing to flush.
68181
68182         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68183         * lib/__fpending.c: New file.
68184         * lib/__fpending.h: New file.
68185
68186 2000-08-20  Jim Meyering  <meyering@lucent.com>
68187
68188         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68189         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68190         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68191
68192 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68193
68194         Improve fileutils installation on systems where running
68195         programs (like install) can't be unlinked.
68196         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68197         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68198
68199 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68200
68201         Standardize on "memory exhausted" instead of "Memory exhausted"
68202         or "virtual memory exhausted".
68203         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68204         "virtual memory exhausted".
68205         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68206         our own message.
68207         * lib/userspec.c (parse_user_spec): Likewise.
68208         * lib/bumpalloc.h: comment fix
68209         * lib/same.c, userspec.c: Include xalloc.h.
68210
68211         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68212         not char *const and pointing to a constant array.
68213         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68214         (xrealloc): Comment fix.
68215
68216         * lib/userspec.c (parse_user_spec):
68217         Don't translate a message until just before returning,
68218         to avoid unnecessary translation.
68219
68220 2000-08-07  Jim Meyering  <meyering@lucent.com>
68221
68222         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68223         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68224         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68225         getgroups.c, gethostname.c, getopt.h, group-member.c,
68226         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68227         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68228         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68229         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68230         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68231         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68232         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68233         yesno.c: Back out Copyright date changes for each file with no change
68234         this year.  This eases coordination with other programs using the same
68235         source code modules.  From Paul Eggert.
68236
68237 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68238
68239         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68240         not char, for compatibility with glibc 2.1.3 strftime.c.
68241
68242 2000-08-03  Greg McGary  <greg@mcgary.org>
68243
68244         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68245         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68246         (EXTEND_BUFFER): Use them.
68247
68248 2000-08-01  Jim Meyering  <meyering@lucent.com>
68249
68250         * lib/dirname.c (ISSLASH): Define.
68251         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68252         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68253         both `\' and `/' may be use as path separators.
68254         Based on a patch from Prashant TR.
68255
68256 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68257
68258         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68259         slot vector a constant, since it might get modified.
68260
68261 2000-07-31  Jim Meyering  <meyering@lucent.com>
68262
68263         * lib/xmalloc.c: Use `virtual memory exhausted', not
68264         `Memory exhausted'.
68265         * lib/obstack.c (print_and_abort): Likewise.
68266
68267 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68268
68269         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68270         buffer, so that the caller can always quote one small
68271         component of a "memory exhausted" message in slot 0.
68272         From a suggestion by Jim Meyering.
68273
68274 2000-07-30  Jim Meyering  <meyering@lucent.com>
68275
68276         * lib/makepath.c (make_path): Quote the other instance, too.
68277
68278         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68279         (STATIC_BUF_SIZE): Define.
68280         (quotearg_n_options): Use only statically allocated storage when
68281         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68282         than STATIC_BUF_SIZE.
68283
68284 2000-07-29  Jim Meyering  <meyering@lucent.com>
68285
68286         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68287         * lib/dirname.c (dir_name): Likewise.
68288
68289         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68290         `/'.
68291
68292         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68293         (dir_name): Assert that there are no trailing slashes.
68294
68295 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68296
68297         * lib/mbswidth.h (mbswidth): Add a flags argument.
68298         (mbswidth): New declaration.
68299         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68300         * lib/mbswidth.c (mbswidth): Add a flags argument.
68301         (mbsnwidth): New function.
68302
68303 2000-07-24  Jim Meyering  <meyering@lucent.com>
68304
68305         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68306
68307 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68308
68309         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68310
68311 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68312
68313         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68314         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68315         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68316         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68317         invoke multibyte primitives.
68318
68319 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68320
68321         * lib/quotearg.c:
68322         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68323         so that mbstate_t is always defined.
68324
68325         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68326         be 1 in at least one GCC installation, and this configuration
68327         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68328         performance on hosts that have mbrtowc but have only unibyte
68329         locales, but I assume these hosts are rare.
68330
68331 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68332
68333         * lib/mbswidth.c (_XOPEN_SOURCE):
68334         Don't define; this causes problems on Solaris 7.
68335         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68336
68337 2000-07-23  Jim Meyering  <meyering@lucent.com>
68338
68339         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68340         too: getgrgid, getpwuid, getuid.
68341
68342 2000-07-23  Jim Meyering  <meyering@lucent.com>
68343
68344         * lib/basename.c (base_name): Add an assertion.
68345
68346 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68347
68348         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68349         shadow its mbsinit function.
68350
68351 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68352
68353         * lib/mbswidth.h: New file.
68354         * lib/mbswidth.c: New file.
68355         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68356         (noinst_HEADERS): Add mbswidth.h.
68357
68358 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68359
68360         * lib/config.charset: Add support for FreeBSD. Improve support for
68361         HP-UX and IRIX 6.
68362
68363 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68364
68365         * m4/mbswidth.m4: New file.
68366         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68367
68368 2000-07-15  Jim Meyering  <meyering@lucent.com>
68369
68370         * lib/makepath.c: Include quote.h.
68371         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68372         corresponding argument in a `quote (...)' call.
68373         Give better diagnostics.
68374
68375         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68376         (noinst_HEADERS): Add quote.h.
68377
68378         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68379         from tar's src/misc.c.
68380         * lib/quote.h: New file.  Prototypes for same.
68381
68382 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68383
68384         From a suggestion by Bruno Haible.
68385         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68386         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68387         to decide whether to define the BeOS workaround macro;
68388         this adjusts to the change to AC_MBSTATE_T.
68389
68390 2000-07-14  Jim Meyering  <meyering@lucent.com>
68391
68392         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68393         jm_AC_TYPE_UINTMAX_T.
68394
68395 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68396
68397         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68398
68399         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68400         quotearg_buffer_restyled): Add support for
68401         clocale_quoting_style.  Undo previous change to
68402         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68403         and "{RIGHT QUOTATION MARK}" msgids.
68404
68405 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68406
68407         From a suggestion by Bruno Haible.
68408         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68409         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68410         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68411         and mbstate_t, to a single-part test that simply defines mbstate_t.
68412         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68413         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68414
68415 2000-07-10  Jim Meyering  <meyering@lucent.com>
68416
68417         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68418
68419         * m4/gnu-source.m4: Output to confdefs.h directly.
68420         Suggestion from Akim Demaille.
68421
68422 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68423
68424         The old behavior of quoting `like this' doesn't look good with
68425         newer, ISO-style fonts.  See:
68426         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68427
68428         Instead, quote "like this" by default.  Let the translator
68429         tailor the locale-specific quoting behavior by providing
68430         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68431
68432         * lib/quotearg.c (N_): New macro.
68433         (gettext_default): New function.
68434         (quotearg_buffer_restyled): Use
68435         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68436         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68437
68438 2000-07-09  Jim Meyering  <meyering@lucent.com>
68439
68440         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68441         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68442
68443         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68444         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68445
68446 2000-07-09  Jim Meyering  <meyering@lucent.com>
68447
68448         * lib/Most files: Update copyright dates to include 2000.
68449
68450 2000-07-08  Jim Meyering  <meyering@lucent.com>
68451
68452         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68453         if not defined.
68454         (xgethostname): Remove now-unnecessary #ifdef.
68455         Move declaration of `err' into loop where it's used.
68456
68457 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68458         and Bruno Haible  <haible@clisp.cons.org>
68459
68460         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68461         only if the test for an object-type mbstate_t fails.  This
68462         prevents us from mistakenly reporting that mbstate_t is a
68463         system object type after we "#define mbstate_t int" to work
68464         around its lack.
68465
68466 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68467         and Bruno Haible  <haible@clisp.cons.org>
68468
68469         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68470
68471 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68472
68473         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68474         to strerror_r.
68475         Include <ctype.h> for use of isalpha.
68476
68477 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68478
68479         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68480         by allocating a larger buffer. Test the gethostname return value for
68481         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68482         returns an error and ENAMETOOLONG isn't defined.
68483
68484 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68485
68486         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68487         dimension.
68488
68489 2000-07-04  Jim Meyering  <meyering@lucent.com>
68490
68491         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68492         of the deprecated AC_CHECKING.
68493
68494 2000-07-04  Jim Meyering  <meyering@lucent.com>
68495
68496         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68497         Reported by Bruno Haible.
68498
68499 2000-07-04  Jim Meyering  <meyering@lucent.com>
68500
68501         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68502         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68503         lacks mbrtowc.
68504
68505 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68506
68507         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68508         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68509
68510 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68511         and Bruno Haible  <haible@clisp.cons.org>
68512
68513         * lib/quotearg.c (mbrtowc):
68514         Assign to *pwc, and return 1 only if result is nonzero.
68515         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68516
68517 2000-07-03  Jim Meyering  <meyering@lucent.com>
68518
68519         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68520
68521 2000-07-03  Jim Meyering  <meyering@lucent.com>
68522
68523         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68524         This is necessary to get a definition of e.g., UTMP_FILE on
68525         HP-UX 10.20.
68526         From Bob Proulx.
68527
68528 2000-07-02  Jim Meyering  <meyering@lucent.com>
68529
68530         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68531
68532         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68533         AC_LIBOBJ(function_name).
68534         * m4/chown.m4: Likewise.
68535         * m4/fnmatch.m4: Likewise.
68536         * m4/ftruncate.m4: Likewise.
68537         * m4/getgroups.m4: Likewise.
68538         * m4/getline.m4: Likewise.
68539         * m4/group-member.m4: Likewise.
68540         * m4/jm-macros.m4: Likewise.
68541         * m4/lstat.m4: Likewise.
68542         * m4/malloc.m4: Likewise.
68543         * m4/memcmp.m4: Likewise.
68544         * m4/nanosleep.m4: Likewise.
68545         * m4/putenv.m4: Likewise.
68546         * m4/realloc.m4: Likewise.
68547         * m4/regex.m4: Likewise.
68548         * m4/stat.m4: Likewise.
68549         * m4/strftime.m4: Likewise.
68550
68551 2000-07-02  Jim Meyering  <meyering@lucent.com>
68552
68553         * lib/quotearg.c (mbstate_t): Don't define here.
68554
68555 2000-07-02  Jim Meyering  <meyering@lucent.com>
68556
68557         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68558
68559 2000-07-01  Jim Meyering  <meyering@lucent.com>
68560
68561         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68562
68563 2000-07-01  Jim Meyering  <meyering@lucent.com>
68564
68565         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68566         problem.
68567
68568 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68569
68570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68571         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68572
68573 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68574
68575         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68576         per change in ../m4/ls-mntd-fs.m4.
68577         (read_filesystem_list): Ignore symbolic links.
68578
68579 2000-06-29  Jim Meyering  <meyering@lucent.com>
68580
68581         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68582         for declaration of strcmp.
68583
68584         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68585
68586         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68587         Avoid warning by casting result to `char *' to remove `const'.
68588
68589 2000-06-28  Jim Meyering  <meyering@lucent.com>
68590
68591         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68592         included by quotearg.c, for which we perform this test.  From
68593         Bruno Haible.
68594
68595 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68596
68597         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68598         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68599         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68600
68601 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68602
68603         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68604
68605 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68606
68607         savedir now sets errno on failure and invokes xmalloc to get memory.
68608         Fix a couple of other minor bugs while we're at it.
68609
68610         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68611         (NAMLEN): Remove macro.
68612         (malloc, realloc): Remove decls.
68613         (stpcpy): Likewise.
68614         ("xalloc.h"): Include.
68615         (NAME_SIZE_DEFAULT): New macro.
68616         (savedir): Use xmalloc / xrealloc to allocate memory.
68617         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68618         Skip "" directory entries.
68619         Use strlen to calculate directory entry length, since the old method
68620         is rarely used these days and isn't worth supporting.
68621         Don't use a pointer after freeing it.
68622         Check for integer overflow when calculating allocation size.
68623         Use memcpy to copy entries, instead of stpcpy.
68624         Set errno properly when returning NULL.
68625         Check for readdir error.
68626
68627 2000-06-26  Jim Meyering  <meyering@lucent.com>
68628
68629         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68630
68631 2000-06-25  Jim Meyering  <meyering@lucent.com>
68632
68633         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68634         Linux header bug when _XOPEN_SOURCE is defined to 500.
68635
68636 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68637
68638         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68639         deficiency.
68640
68641 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68642
68643         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68644         Include xalloc.h.
68645         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68646
68647 2000-06-24  Jim Meyering  <meyering@lucent.com>
68648
68649         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68650         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68651         for which strerror does return char*, but which lacks a conveniently
68652         accessible declaration of the function.  If the compile-test says
68653         strerror_r doesn't work, then resort to a `run'-test that works on
68654         BeOS and segfaults on DEC Unix.
68655
68656 2000-06-24  Jim Meyering  <meyering@lucent.com>
68657
68658         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68659
68660 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68661
68662         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68663         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68664
68665 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68666
68667         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68668         (mbrtowc, mbstate_t): Define substitutes if
68669         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68670         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68671         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68672
68673 2000-06-23  Jim Meyering  <meyering@lucent.com>
68674
68675         * m4/afs.m4: Add missing AC_MSG_RESULT.
68676         Reported by Bruno Haible.
68677
68678         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68679         Suggestion from Bruno Haible.
68680
68681 2000-06-23  Jim Meyering  <meyering@lucent.com>
68682
68683         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68684
68685 2000-06-21  Jim Meyering  <meyering@lucent.com>
68686
68687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68688
68689 2000-06-21  Jim Meyering  <meyering@lucent.com>
68690
68691         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68692         (noinst_HEADERS): Add getstr.h.
68693
68694         * lib/getline.c (getstr): Move into a separate file.
68695         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68696         the following changes: new parameter, delim2; both delim[12]
68697         parameters have type `int', not `char'.  The latter would lose
68698         with 8-bit delimiters.
68699         * lib/getstr.h: New file.
68700
68701 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68702
68703         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68704         than 1024, return a memory chunk of least possible size, instead
68705         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68706         Use free/xmalloc instead of xrealloc to avoid copying for very long
68707         paths.
68708
68709 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68710
68711         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68712         the empty string.
68713
68714 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68715
68716         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68717         address, not strdup.  Include <stdlib.h> and don't declare free().
68718
68719 2000-06-19  Jim Meyering  <meyering@lucent.com>
68720
68721         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68722
68723 2000-06-18  Jim Meyering  <meyering@lucent.com>
68724
68725         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68726
68727         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68728         `checking whether...' message to be consistent with that of the
68729         lstat test.
68730
68731 2000-06-18  Jim Meyering  <meyering@lucent.com>
68732
68733         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68734         Besides, these days every porting target provides a mkdir function.
68735
68736         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68737         needed. (this snippet comes from src/system.h).
68738
68739 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68740
68741         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68742
68743 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68744
68745         * lib/human.c (adjust_value): New function.
68746         (human_readable_inexact): Apply rounding style even when
68747         printing approximate values.
68748
68749 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68750
68751         * lib/human.c (human_readable_inexact): Allow an input block
68752         size that is not a multiple of the output block size, and vice versa.
68753         Reported by Piergiorgio Sartor.
68754
68755 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68756
68757         * lib/getdate.y (get_date): Apply relative times after time
68758         zone indicator, not before.  Reported by Todd A. Jacobs.
68759
68760 2000-06-13  Jim Meyering  <meyering@lucent.com>
68761
68762         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68763
68764         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68765
68766 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68767
68768         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68769
68770 2000-06-12  Jim Meyering  <meyering@lucent.com>
68771
68772         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68773         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68774         optional argument.
68775         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68776         the optional argument, `lib'.
68777
68778 2000-06-08  Jim Meyering  <meyering@lucent.com>
68779
68780         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68781
68782 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68783
68784         Rewrite largefile configuration so that we don't need to run
68785         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68786         AC_CANONICAL_HOST in configure.in -- jmm]
68787
68788         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68789         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68790         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68791         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68792         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68793         All uses changed.
68794         Instead of inspecting the output of getconf, try to compile the
68795         test program without and with the macro definition.
68796         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68797         for getconf.  Instead, check for the needed flags by compiling
68798         test programs.
68799
68800 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68801
68802         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68803
68804 2000-06-04  Jim Meyering  <meyering@lucent.com>
68805
68806         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68807         SunOS 4.1.4 for which gid_t is an unsigned type.
68808
68809 2000-06-03  Jim Meyering  <meyering@lucent.com>
68810
68811         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68812         now that autoconf requires that.
68813
68814         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68815         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68816         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68817
68818 2000-06-03  Jim Meyering  <meyering@lucent.com>
68819
68820         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68821
68822 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68823
68824         * m4/glibc21.m4: New file.
68825         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68826
68827 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68828
68829         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
68830         newer, don't install charset.alias.
68831         * lib/config.charset: Change the Linux/glibc rules so they become empty
68832         on glibc-2.1 or newer.
68833
68834 2000-06-02  Jim Meyering  <meyering@lucent.com>
68835
68836         * lib/mountlist.c: Back out last change.  Instead, do this...
68837         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
68838         me_dummy member using the same `ignore'-testing code.
68839         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
68840         fs_type strings.
68841         From Mark D. Roth.
68842
68843 2000-05-29  Jim Meyering  <meyering@lucent.com>
68844
68845         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
68846         mounts with the `ignore' attribute.  Based on a patch from
68847         Mark D. Roth.
68848
68849 2000-05-28  Jim Meyering  <meyering@lucent.com>
68850
68851         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
68852         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68853         * m4/stat.m4: Likewise.
68854         * m4/lstat.m4: Likewise.
68855         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
68856
68857         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
68858         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
68859
68860 2000-05-26  Jim Meyering  <meyering@lucent.com>
68861
68862         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
68863
68864 2000-05-24  Jim Meyering  <meyering@lucent.com>
68865
68866         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
68867         autoconf requires that.
68868         * m4/lib-check.m4: Likewise.
68869         * m4/jm-macros.m4: Likewise.
68870         * m4/strftime.m4: Likewise.
68871
68872         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
68873         AC_CHECK_DECLS, now that autoconf requires that.
68874
68875 2000-05-22  Jim Meyering  <meyering@lucent.com>
68876
68877         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68878         * m4/lstat.m4: Likewise.
68879
68880 2000-05-22  Jim Meyering  <meyering@lucent.com>
68881
68882         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
68883
68884 2000-05-20  Jim Meyering  <meyering@lucent.com>
68885
68886         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
68887         (jm_PREREQ): Use it.
68888
68889 2000-05-18  Jim Meyering  <meyering@lucent.com>
68890
68891         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
68892         back, too, since it may have been modified by allocate_entry.
68893         (hash_delete): Rewrite to use neither the assignment operator
68894         nor the comma operator in an if-expression.
68895
68896 2000-05-15  Paul Eggert  <eggert@twinsun.com>
68897
68898         * lib/closeout.c:
68899         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
68900         Remove; no longer needed.
68901         "quotearg.h": Add include.
68902         (file_name): Do not bother to explicitly initialize to NULL; it's less
68903         efficient on some hosts.
68904         (close_stdout_status): Remove test as to whether stdout was already
68905         closed; it breaks for the case "echo x | sort >&-".
68906         Quote file name colons.
68907         Do not assume that _("write error") lacks format strings.
68908
68909 2000-05-15  Jim Meyering  <meyering@lucent.com>
68910
68911         * lib/version-etc.c (version_etc_copyright): Update the copyright
68912         string used in all --version output.
68913
68914 2000-05-14  Jim Meyering  <meyering@lucent.com>
68915
68916         * lib/closeout.c (close_stdout_set_file_name): New function.
68917         (close_stdout_status): Use new file-scoped global.
68918         Return right away if fstat says the stdout file descriptor is invalid.
68919         * lib/closeout.h (close_stdout_set_file_name): Declare.
68920
68921 2000-05-10  Jim Meyering  <meyering@lucent.com>
68922
68923         * lib/closeout.c [default_exit_status]: New file-scoped variable.
68924         (close_stdout_set_status): New function.
68925         * lib/closeout.h (close_stdout_set_status): Declare.
68926
68927 2000-05-09  Jim Meyering  <meyering@lucent.com>
68928
68929         * m4/gettext.m4: Rename this...
68930         * m4/libintl.m4: ...to this.
68931
68932 2000-05-08  Jim Meyering  <meyering@lucent.com>
68933
68934         * lib/long-options.c: Don't include closeout.h.
68935         (parse_long_options): Don't call close_stdout for --version.
68936
68937 2000-05-06  Paul Eggert  <eggert@twinsun.com>
68938
68939         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
68940         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
68941         2.1.3 bug.  This avoids a clash when files like regex.c define
68942         _GNU_SOURCE.
68943
68944 2000-05-06  Jim Meyering  <meyering@lucent.com>
68945
68946         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
68947         (AC_REPLACE_FUNCS): Add strnlen.
68948
68949         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
68950         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
68951
68952         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
68953         AC_SEARCH_LIBS call for nanosleep.
68954         (LIB_NANOSLEEP): Set and AC_SUBST.
68955
68956 2000-05-06  Jim Meyering  <meyering@lucent.com>
68957
68958         * lib/strnlen.c: Undefine __strnlen and strnlen.
68959         [!weak_alias]: Define __strnlen to strnlen.
68960
68961         * lib/atexit.c: New file, from libiberty.
68962
68963 2000-05-06  Jim Meyering  <meyering@lucent.com>
68964
68965         * lib/closeout.c (close_stdout_status): Also check for errors on the
68966         stderr stream.
68967
68968 2000-05-05  Jim Meyering  <meyering@lucent.com>
68969
68970         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
68971         AC_SEARCH_LIBS call for clock_gettime.
68972         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
68973
68974         * m4/search-libs.m4: Update from autoconf.
68975
68976         su doesn't work on Solaris 2.6.
68977         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
68978         <shadow.h>.  Reported by Dragos Harabor.
68979
68980 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
68981
68982         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
68983         memcpy instead of xmalloc, xrealloc, path_concat.
68984         (locale_charset): Treat empty environment variables as absent.
68985         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
68986
68987 2000-05-04  Jim Meyering  <meyering@lucent.com>
68988
68989         * lib/getopt.c: Update from glibc.
68990         * lib/obstack.c: Likewise.
68991         * lib/obstack.h: Likewise.
68992         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
68993         file
68994
68995         * lib/regex.h: Likewise.
68996         * lib/strndup.c: Likewise.
68997         * lib/strnlen.c: New file, from glibc.
68998
68999 2000-05-03  Jim Meyering  <meyering@lucent.com>
69000
69001         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
69002
69003 2000-05-02  Paul Eggert  <eggert@twinsun.com>
69004
69005         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
69006         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
69007         compile-time test, rather than inspecting host and OS, to
69008         decide whether to define _LARGEFILE_SOURCE.
69009
69010 2000-05-01  Jim Meyering  <meyering@lucent.com>
69011
69012         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
69013
69014         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
69015         Based on a patch from Bruno Haible.
69016
69017 2000-05-01  Jim Meyering  <meyering@lucent.com>
69018
69019         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
69020
69021 2000-04-29  Jim Meyering  <meyering@lucent.com>
69022
69023         * lib/path-concat.c: Declare strdup only if it's not defined.
69024         * lib/canon-host.c: Likewise.
69025
69026 2000-04-28  Jim Meyering  <meyering@lucent.com>
69027
69028         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
69029         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
69030         is included first, then limits.h is included by locale.h by libintl.h.
69031         From John David Anglin.
69032
69033 2000-04-25  Jim Meyering  <meyering@lucent.com>
69034
69035         * lib/makepath.c (S_IRWXUGO): Define.
69036         (make_path): Always perform explicit chmod if MODE specifies any
69037         of the `special' permission bits.  Prompted by a bug report against
69038         install from Mate Wierdl and Joost van Baal.
69039
69040 2000-04-18  Jim Meyering  <meyering@lucent.com>
69041
69042         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
69043         (jm_PREREQ): Use it.
69044
69045 2000-04-18  Jim Meyering  <meyering@lucent.com>
69046
69047         * lib/README: New file.
69048
69049         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
69050         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
69051
69052 2000-04-17  Jim Meyering  <meyering@lucent.com>
69053
69054         Get it right :-)
69055         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
69056         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
69057         Suggestion from Akim Demaille.
69058
69059 2000-04-17  Jim Meyering  <meyering@lucent.com>
69060
69061         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
69062         the definition of it to rpl_strftime also defined-away the system's
69063         declaration.
69064
69065 2000-04-15  Jim Meyering  <meyering@lucent.com>
69066
69067         Use `C' to denote so-called `contiguous' files, the same way
69068         that tar does.
69069         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
69070         (ftypelet): Use S_ISCTG.
69071         From Michael Deutschmann.
69072
69073 2000-04-14  Jim Meyering  <meyering@lucent.com>
69074
69075         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
69076         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
69077         clobbered.
69078
69079 2000-04-14  Jim Meyering  <meyering@lucent.com>
69080
69081         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
69082
69083 2000-04-13  Jim Meyering  <meyering@lucent.com>
69084
69085         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
69086         AH_VERBATIM to insert required #ifndef into config.h.in.
69087         Suggestion from Akim Demaille.
69088
69089 2000-04-12  Jim Meyering  <meyering@lucent.com>
69090
69091         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
69092         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
69093         Christian Krackowizer.
69094
69095         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
69096         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
69097         (AC_SYS_LARGEFILE): Require.
69098         (AM_C_PROTOTYPES): Require.
69099
69100 2000-04-08  Jim Meyering  <meyering@lucent.com>
69101
69102         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
69103         names don't conflict.  Reported by Eli Zaretskii.
69104
69105 2000-04-07  Jim Meyering  <meyering@lucent.com>
69106
69107         * lib/putenv.c: Move inclusion of errno.h so it follows that of
69108         sys/types.h, to work around system header problems on AIX 3.2.5.
69109         From Bruno Haible.
69110
69111 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
69112
69113         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
69114         bug.  Deal with the different error behavior of Irix iconv.
69115
69116 2000-04-05  Paul Eggert  <eggert@twinsun.com>
69117
69118         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
69119         IRIX if the installer said otherwise.
69120
69121 2000-04-05  Jim Meyering  <meyering@lucent.com>
69122
69123         Portability tweaks required for ultrix4.3.
69124         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
69125         (jm_CHECK_DECLS): Add getutent to the list of functions.
69126         (_jm_DECL_HEADERS): Add utmpx.h.
69127         From John David Anglin.
69128
69129         * m4/strftime.m4: Back out the 2000-04-02 change.
69130         Instead of that change, simply undefine putenv in the test program.
69131
69132 2000-04-05  Jim Meyering  <meyering@lucent.com>
69133
69134         Portability tweaks required for ultrix4.3.
69135         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
69136         getutent.
69137         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
69138         * lib/canon-host.c: Declare strdup.
69139         * lib/path-concat.c: Likewise.
69140         From John David Anglin.
69141
69142 2000-04-04  Jim Meyering  <meyering@lucent.com>
69143
69144         Be more DOS 8.3-friendly.
69145         * lib/ref-add.sin: Renamed from ref-add.sed.in.
69146         * lib/ref-del.sin: Renamed from ref-del.sed.in.
69147         * lib/Makefile.am: Reflect renaming.
69148         Reported by Eli Zaretskii.
69149
69150         Use a temporary file name that won't clash with `charset.alias'
69151         in the DOS 8.3 name space.
69152         * lib/Makefile.am (charset_tmp): Define.
69153         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
69154         (uninstall-local): Likewise.
69155         Reported by Eli Zaretskii.
69156
69157 2000-04-03  Jim Meyering  <meyering@lucent.com>
69158
69159         * m4/gettext.m4: Fix typo in comment.
69160
69161         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69162         textutils/configure.in).  Suggestion from Paul Eggert.
69163         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69164
69165 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69166
69167         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69168         variable in the shell rather than using putenv, which isn't
69169         portable.  This avoids the configure-time inter-test dependency
69170         on the potentially-renamed putenv function.
69171
69172 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69173
69174         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69175         before checking struct stat.st_blksize, so that
69176         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69177
69178 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69179
69180         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69181         since strftime.c uses HAVE_STRFTIME to decide whether to use
69182         the underlying strftime.
69183
69184 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69185
69186         * lib/time/strftime.c (my_strftime): Make sure we call the system
69187         strftime, not ourselves, when invoking the underlying strftime.
69188
69189 2000-03-24  Jim Meyering  <meyering@lucent.com>
69190
69191         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69192         (charset_alias): Define.
69193         (install-exec-local): Factor out common code.
69194         (uninstall-local): Split lines longer than 80.
69195         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69196         (SUFFIXES): Define.
69197         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69198         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69199
69200 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69201
69202         * lib/config.charset: Output a line containing "Packages using this
69203         file".
69204         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69205         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69206         ref-del.sed): New rules.
69207
69208 2000-03-17  Jim Meyering  <meyering@lucent.com>
69209
69210         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69211         Otherwise, include <strings.h>
69212
69213 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69214
69215         * lib/unicodeio.c (utf8_wctomb): New function.
69216         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69217         format instead of in UCS-4 with platform dependent endianness.
69218
69219 2000-03-10  Jim Meyering  <meyering@lucent.com>
69220
69221         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69222         From Marco Franzen.
69223
69224 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69225
69226         * lib/savedir.c (savedir): Work even if directory size is
69227         negative; this can happen with some screwy NFS configurations.
69228
69229 2000-03-06  Jim Meyering  <meyering@lucent.com>
69230
69231         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69232         if it's NULL (because we ran out of memory).  From Bruno Haible.
69233
69234 2000-03-05  Jim Meyering  <meyering@lucent.com>
69235
69236         * lib/localcharset.c ("path-concat.h"): Include.
69237         (get_charset_aliases): Use path_concat instead of ANSI string
69238         concatenation.
69239
69240         * lib/unicodeio.h (PARAMS): Define.
69241         Use it to guard prototype.
69242
69243 2000-03-04  Jim Meyering  <meyering@lucent.com>
69244
69245         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69246         for lib/localcharset.c.
69247
69248 2000-03-04  Jim Meyering  <meyering@lucent.com>
69249
69250         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69251         installing into it.
69252         (uninstall-local): Uncomment this rule so `make distcheck' works
69253         once again.
69254
69255         * lib/unicodeio.c (<errno.h>): Include it.
69256         (errno): Declare if not defined.
69257
69258         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69259
69260         * lib/config.charset: New version, incorporating remarks from a linux
69261         i18n mailing list.  From Bruno Haible.
69262
69263 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69264
69265         * m4/codeset.m4: New file.
69266         * m4/iconv.m4: New file.
69267         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69268
69269 2000-03-03  Jim Meyering  <meyering@lucent.com>
69270
69271         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69272
69273 2000-03-02  Jim Meyering  <meyering@lucent.com>
69274
69275         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69276         the messages come out on separate lines.
69277
69278         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69279         rather than jm_CHECK_DECLARATIONS.
69280         * m4/decl.m4: Remove now-unused file.
69281
69282         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69283         geteuid.
69284
69285 2000-03-02  Jim Meyering  <meyering@lucent.com>
69286
69287         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69288
69289 2000-03-01  Jim Meyering  <meyering@lucent.com>
69290
69291         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69292         * lib/unicodeio.c: Likewise.
69293
69294 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69295
69296         * lib/config.charset: New file.
69297         * lib/localcharset.c: New file.
69298         * lib/unicodeio.h, lib/unicodeio.c: New files.
69299         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69300         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69301         (noinst_HEADERS): Add unicodeio.h.
69302         (all-local, install-exec-local, charset.alias): New targets.
69303
69304 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69305
69306         * lib/quotearg.c (ALERT_CHAR): New macro.
69307         (quotearg_buffer_restyled): Use it.
69308
69309 2000-02-27  Jim Meyering  <meyering@lucent.com>
69310
69311         * m4/check-decl.m4: Add getenv to the list.
69312
69313 2000-02-27  Jim Meyering  <meyering@lucent.com>
69314
69315         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69316         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69317
69318         * lib/backupfile.c: Guard inclusion of stdlib.h with
69319         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69320         Declare malloc if needed.
69321
69322         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69323         `#ifndef HAVE_DECL..'
69324         now that autoconf always defines the HAVE_DECL_ symbols.
69325         * lib/human.c: Likewise.
69326         * lib/same.c: Likewise.
69327         * lib/strtoumax.c: Likewise.
69328
69329         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69330         declaration check was not run.
69331         * lib/hash.c: Likewise.
69332         * lib/human.c: Likewise.
69333         * lib/same.c: Likewise.
69334         * lib/strtoumax.c: Likewise.
69335
69336         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69337         `.', then first look up the entire `.'-containing string as a login
69338         name.
69339
69340 2000-02-23  Jim Meyering  <meyering@lucent.com>
69341
69342         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69343         in place of my hack.
69344
69345 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69346
69347         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69348         (textint): New typedef.
69349         (parser_control): Member year changed from int to textint.
69350         All uses changed.
69351         (YYSTYPE): Removed; replaced by %union with int and textint members.
69352         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69353         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69354         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69355         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69356         (date, number, to_year): Use width of number in digits, not its value,
69357         to determine whether it's a 2-digit year, or a 2-digit time.
69358         (yylex): Store number of digits of numeric tokens.
69359         Reported by John Kendall.
69360
69361         (parser_control): Changed from struct parser_control to typedef (for
69362         consistency).  All uses changed.
69363
69364         (tID): Removed; not used.
69365         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69366
69367 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69368
69369         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69370         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69371
69372 2000-02-12  Jim Meyering  <meyering@lucent.com>
69373
69374         * lib/userspec.c (ISDIGIT): Define it.
69375         (isdigit): Remove definition.
69376         (is_number): Use ISDIGIT, not isdigit.
69377         <libintl.h>: Include.
69378         (_ and N_): Define.
69379         (parse_user_spec): Mark translatable strings.
69380
69381 2000-02-10  Jim Meyering  <meyering@lucent.com>
69382
69383         With these changes, nanosleep.[ch] are finally enough like the other
69384         lib/* replacement files to compile on a few more losing systems.
69385
69386         * lib/nanosleep.h: Don't include config.h.
69387         Remove prototype from declaration of nanosleep.
69388         (PARAMS): Remove now-unneeded definition.
69389         * lib/nanosleep.c: #undef nanosleep.
69390         (rpl_nanosleep): Rename from nanosleep.
69391
69392 2000-02-10  Jim Meyering  <meyering@lucent.com>
69393
69394         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69395         gnu_nanosleep to rpl_nanosleep.
69396
69397 2000-02-09  Jim Meyering  <meyering@lucent.com>
69398
69399         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69400         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69401
69402 2000-02-08  Akim Demaille  <akim@epita.fr>
69403
69404         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69405         `[' and `]' and remove uses of `changequote'.
69406         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69407         (AC_SYS_LARGEFILE): Likewise.
69408         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69409         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69410         of changequote.
69411         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69412         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69413         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69414         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69415
69416 2000-02-05  Jim Meyering  <meyering@lucent.com>
69417
69418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69419         Remove explicit use of AC_HEADER_TIME.  It is required by
69420         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69421         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69422         in autoconf whereby the expansion of the latter ended up preceding
69423         the expansion of its prerequisite, AC_HEADER_TIME.
69424         Reported by Volker Borchert.
69425
69426 2000-02-03  Jim Meyering  <meyering@lucent.com>
69427
69428         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69429
69430 2000-02-03  Jim Meyering  <meyering@lucent.com>
69431
69432         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69433         rather than with `#if HAVE_UTMPNAME'.
69434
69435 2000-02-02  Jim Meyering  <meyering@lucent.com>
69436
69437         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69438         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69439         Reported by Eli Zaretskii.
69440
69441 2000-02-01  Jim Meyering  <meyering@lucent.com>
69442
69443         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69444
69445 2000-01-31  Jim Meyering  <meyering@lucent.com>
69446
69447         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69448         functions.  Add the time.h and sys/time.h headers along with the
69449         AC_REQUIRE'ment of AC_HEADER_TIME.
69450
69451 2000-01-31  Jim Meyering  <meyering@lucent.com>
69452
69453         * lib/nanosleep.h (nanosleep): Guard declaration with
69454         `#if ! HAVE_DECL_NANOSLEEP'.
69455         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69456         the declaration in that vendor's sys/timers.h.
69457         Reported by Christian Krackowizer.
69458
69459         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69460         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69461         (ISPRINT): Likewise.
69462         Reported by Tom Tromey.
69463
69464 2000-01-30  Jim Meyering  <meyering@lucent.com>
69465
69466         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69467
69468         * m4/prereq.m4 (utmp_includes): Define.
69469         Check for ut_user and ut_name members in both struct utmpx
69470         and struct utmp.
69471
69472 2000-01-30  Jim Meyering  <meyering@lucent.com>
69473
69474         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69475         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69476         header files where only utmpx.ut_user is declared.
69477
69478         * lib/readutmp.h (UT_USER): Define.
69479
69480 2000-01-29  Jim Meyering  <meyering@lucent.com>
69481
69482         * m4/lib-check.m4: New file containing library-related checks from
69483         fileutils and sh-utils (textutils had none).
69484
69485 2000-01-28  Jim Meyering  <meyering@lucent.com>
69486
69487         * m4/perl.m4: Change format of warning message to look more like that
69488         from the missing script.  Suggestion from François Pinard.
69489
69490 2000-01-25  Jim Meyering  <meyering@lucent.com>
69491
69492         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69493         well as time.h in the compile check.
69494         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69495         Fix typo in cross-compiling case: s/yes/no/.
69496
69497 2000-01-23  Jim Meyering  <meyering@lucent.com>
69498
69499         * m4/jm-macros.m4: Move df-related tests here from
69500         fileutils/configure.in
69501
69502         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69503         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69504
69505         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69506         s/space/ac_fsusage_space/.
69507         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69508
69509         * m4/ftruncate.m4: New file (derived from part of
69510         fileutils/configure.in).
69511         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69512         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69513
69514         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69515         AC_SUBST these here, rather than just in sh-util/configure.in, so
69516         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69517         all the same.
69518         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69519         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69520         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69521         (AC_SUBST(POW_LIBM)): Likewise.
69522         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69523
69524 2000-01-23  Jim Meyering  <meyering@lucent.com>
69525
69526         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69527         obstack.c.
69528
69529 2000-01-22  Jim Meyering  <meyering@lucent.com>
69530
69531         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69532
69533         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69534
69535         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69536         configure.in
69537         (AC_CHECK_HEADERS): Likewise for sh-utils.
69538         (AC_CHECK_HEADERS): Likewise for textutils.
69539         Merge the three lists of headers.
69540
69541         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69542         from fileutils' configure.in.
69543
69544         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69545         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69546         check-decl.m4.
69547
69548         * m4/check-decl.m4: Use #if rather than #ifdef.
69549         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69550         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69551         (_jm_DECL_HEADERS): Define new function.
69552         (jm_CHECK_DECLARATIONS): Require it.
69553
69554 2000-01-22  Jim Meyering  <meyering@lucent.com>
69555
69556         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69557         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69558         Required for some AIX systems.  Reported by Christian Krackowizer.
69559         [TESTING] (main): New function.
69560
69561         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69562         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69563         letters.
69564
69565         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69566         iswprint.
69567
69568         * lib/strverscmp.c (ISDIGIT): Define.
69569         (strverscmp): Use ISDIGIT, not isdigit.
69570
69571 2000-01-19  Jim Meyering  <meyering@lucent.com>
69572
69573         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69574         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69575         defines `struct timespec' in <sys/time.h>
69576
69577         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69578         Thanks to Akim for explaining.
69579
69580 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69581
69582         * lib/nanosleep.c (nanosleep):
69583         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69584         POSIX.1 doesn't require SA_INTERRUPT and some systems
69585         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69586         it's been part of POSIX.1 since day 1 (in 1988).
69587
69588 2000-01-17  Jim Meyering  <meyering@lucent.com>
69589
69590         * lib/interlock: Remove unused file.  Reported by François Pinard.
69591
69592 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69593
69594         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69595         alert, backslash, formfeed, and vertical tab unnecessarily in
69596         shell quoting style.
69597
69598 2000-01-16  Jim Meyering  <meyering@lucent.com>
69599
69600         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69601         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69602         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69603         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69604
69605 2000-01-16  Jim Meyering  <meyering@lucent.com>
69606
69607         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69608         because the latter didn't work.
69609
69610 2000-01-15  Jim Meyering  <meyering@lucent.com>
69611
69612         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69613         (AC_REPLACE_FUNCS): Add memcpy and memset.
69614         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69615         Add strpbrk.
69616         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69617
69618 2000-01-12  Jim Meyering  <meyering@lucent.com>
69619
69620         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69621         (jm_PREREQ): Use it.
69622         (jm_PREREQ_READUTMP): New macro.
69623         (jm_PREREQ): Use it.
69624
69625 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69626
69627         Quote multibyte characters correctly.
69628         * m4/c-bs-a.m4: New file.
69629         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69630         (jm_PREREQ): Use it.
69631
69632 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69633
69634         * m4/uintmax_t.m4: Port to autoconf 2.13.
69635
69636 2000-01-08  Jim Meyering  <meyering@ascend.com>
69637
69638         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69639         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69640
69641 2000-01-04  Jim Meyering  <meyering@ascend.com>
69642
69643         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69644         jm_STRUCT_DIRENT_D_TYPE.
69645         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69646         jm_STRUCT_DIRENT_D_INO.
69647         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69648         jm_STRUCT_UTIMBUF.
69649         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69650         renamings.
69651         * m4/utime.m4: Likewise.
69652
69653         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69654         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69655
69656 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69657
69658         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69659         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69660
69661 2000-01-02  Jim Meyering  <meyering@ascend.com>
69662
69663         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69664         remember if this is necessary.
69665
69666 1999-12-26  Jim Meyering  <meyering@ascend.com>
69667
69668         * m4/jm-macros.m4: Use it here.
69669         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69670
69671 1999-12-23  Jim Meyering  <meyering@ascend.com>
69672
69673         * m4/jm-macros.m4: Check for clock_gettime (moved from
69674         fileutils/configure.in)
69675         Check for gettimeofday.
69676
69677 1999-12-20  Jim Meyering  <meyering@ascend.com>
69678
69679         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69680         autoconf-2.14a-1999-12-20.
69681
69682 1999-12-19  Jim Meyering  <meyering@ascend.com>
69683
69684         * m4/lstat-slash.m4: New file.
69685         * m4/jm-macros.m4: Use the new macro:
69686         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69687
69688 1999-12-07  Jim Meyering  <meyering@ascend.com>
69689
69690         * m4/perl.m4: Require that File::Compare be available, too.
69691         Too many systems seem to lack it.
69692
69693         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69694         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69695
69696 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69697
69698         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69699         problem with the QNX 4.25 shell, which doesn't propagate exit
69700         status of failed commands inside shell assignments.
69701
69702 1999-11-17  Jim Meyering  <meyering@ascend.com>
69703
69704         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69705
69706 1999-11-07  Jim Meyering  <meyering@ascend.com>
69707
69708         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69709
69710 1999-11-06  Jim Meyering  <meyering@ascend.com>
69711
69712         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69713         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69714
69715 1999-11-05  Jim Meyering  <meyering@ascend.com>
69716
69717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69718         configure.in of textutils, fileutils, and sh-utils into this one
69719         (shared between those packages) file.
69720         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69721         AC_STRUCT_ST_BLKSIZE.
69722
69723 1999-11-03  Jim Meyering  <meyering@ascend.com>
69724
69725         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69726         of AC_CHECK_TYPE checks includes unistd.h.
69727         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69728         Suggestion from Akim Demaille.
69729
69730 1999-10-30  Jim Meyering  <meyering@ascend.com>
69731
69732         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69733         m4-quoted string.
69734         * m4/ls-mntd-fs.m4: Likewise.
69735         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69736         * m4/jm-winsz1.m4: Likewise.
69737
69738         * m4/const.m4: Remove file, since the fix made it into the experimental
69739         version of autoconf.
69740         * m4/mktime.m4: Likewise.
69741
69742         * m4/check-type.m4: Remove file, now that the latest version of
69743         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69744
69745         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69746         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69747         AC_CHECK_TYPE.
69748
69749 1999-10-04  Jim Meyering  <meyering@ascend.com>
69750
69751         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69752
69753 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69754
69755         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69756         2.95.1 bug with HP-UX 10.20.
69757
69758 1999-09-17  Jim Meyering  <meyering@ascend.com>
69759
69760         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69761         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69762         due to missing strdup (against sh-utils-2.0).
69763
69764 1999-08-29  Jim Meyering  <meyering@ascend.com>
69765
69766         * m4/jm-macros.m4: Require jm_BISON.
69767         * m4/bison.m4: New file.
69768
69769 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69770
69771         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69772         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69773
69774 1999-08-05  Jim Meyering  <meyering@ascend.com>
69775
69776         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69777         to avoid conflicts with `conftest' on 8+3 filesystems.
69778         Suggestion from Eli Zaretskii.
69779
69780 1999-08-04  Jim Meyering  <meyering@ascend.com>
69781
69782         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69783         fileutils and sh-utils (textutils's getline test was inadequate).
69784         (AM_FUNC_GETLINE): Run this test.
69785         (AC_CHECK_FUNCS): Check for getdelim.
69786         Reported by Bob Proulx.
69787
69788 1999-08-02  Jim Meyering  <meyering@ascend.com>
69789
69790         * m4/jm-macros.m4: Add a comment.
69791
69792 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69793
69794         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69795         <inttypes.h> defines strtoumax as a macro (and not as a
69796         function).
69797
69798 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69799
69800         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69801         that we can shift, multiply and divide unsigned long long
69802         values; Ultrix cc can't do it.
69803
69804 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69805
69806         * m4/mktime.m4: New file, which is a preview of what should appear
69807         in the next public autoconf release.
69808
69809 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69810
69811         * m4/lfs.m4: Remove this file.
69812         * m4/largefile.m4: New file.  It contains the old contents of
69813         lfs.m4, except that all names with prefix AC_LFS have been
69814         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69815         compatible with future autoconf versions.  Also, some minor m4
69816         quoting problems have been fixed.
69817
69818 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69819
69820         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69821         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69822         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69823         and simplify the shell code.
69824
69825 1999-08-01  Jim Meyering  <meyering@ascend.com>
69826
69827         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69828         m4.
69829
69830 1999-07-20  Jim Meyering  <meyering@ascend.com>
69831
69832         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
69833
69834 1999-07-15  Jim Meyering  <meyering@ascend.com>
69835
69836         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
69837
69838 1999-05-22  Jim Meyering  <meyering@ascend.com>
69839
69840         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
69841
69842 1999-05-20  Jim Meyering  <meyering@ascend.com>
69843
69844         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
69845         Add a colon after each `then' in case $4 is empty.
69846
69847 1999-05-16  Jim Meyering  <meyering@ascend.com>
69848
69849         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
69850
69851 1999-05-10  Jim Meyering  <meyering@ascend.com>
69852
69853         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
69854
69855         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
69856         AC_FUNC_MKTIME.
69857
69858 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
69859
69860         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
69861
69862 1999-05-04  Paul Eggert  <eggert@twinsun.com>
69863
69864         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
69865         not CPPFLAGS, so that linking works correctly in IRIX.
69866
69867 1999-04-30  Paul Eggert  <eggert@twinsun.com>
69868
69869         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
69870
69871 1999-04-20  Paul Eggert  <eggert@twinsun.com>
69872
69873         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
69874         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
69875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
69876         jm_AC_TYPE_UNSIGNED_LONG_LONG.
69877         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
69878
69879         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
69880
69881 1999-04-20  Jim Meyering  <meyering@ascend.com>
69882
69883         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
69884         AC_REPLACE xstroull if necessary.  From Paul Eggert.
69885         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
69886
69887 1999-04-18  Jim Meyering  <meyering@ascend.com>
69888
69889         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
69890         * m4/jm-macros.m4: Use it.
69891
69892 1999-04-06  Jim Meyering  <meyering@ascend.com>
69893
69894         * m4/strftime.m4: Remove test for %f.
69895
69896 1999-03-29  Jim Meyering  <meyering@ascend.com>
69897
69898         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
69899         superset of the AC_TYPE_* checks in the textutils, fileutils,
69900         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
69901         AC_TYPE_PID_T.
69902
69903 1999-03-28  Jim Meyering  <meyering@ascend.com>
69904
69905         * m4/jm-macros.m4: Define GNU_PACKAGE here.
69906         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
69907         replaced e.g., in the *.sh files of the sh-utils.
69908
69909 1999-03-20  Jim Meyering  <meyering@ascend.com>
69910
69911         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
69912         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
69913         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
69914
69915 1999-03-19  Jim Meyering  <meyering@ascend.com>
69916
69917         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
69918
69919 1999-03-12  Jim Meyering  <meyering@ascend.com>
69920
69921         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
69922
69923 1999-03-07  Jim Meyering  <meyering@ascend.com>
69924
69925         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
69926         declared.
69927
69928 1999-02-17  Jim Meyering  <meyering@ascend.com>
69929
69930         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
69931         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
69932
69933 1999-02-07  Jim Meyering  <meyering@ascend.com>
69934
69935         * m4/group-member.m4: New file -- extracted from sh-utils'
69936         configure.in.
69937
69938         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
69939         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
69940
69941 1999-02-06  Jim Meyering  <meyering@ascend.com>
69942
69943         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
69944         * m4/fnmatch.m4: Likewise.
69945         * m4/getgroups.m4: Likewise.
69946         * m4/lstat.m4: Likewise.
69947         * m4/malloc.m4: Likewise.
69948         * m4/putenv.m4: Likewise.
69949         * m4/realloc.m4: Likewise.
69950         * m4/regex.m4: Likewise.
69951         * m4/stat.m4: Likewise.
69952         * m4/strftime.m4: Likewise.
69953         Suggestion from Alain Magloire.
69954
69955         * m4/chown.m4: Use `.$ac_objext', not `.o'.
69956         * m4/fnmatch.m4: Likewise.
69957         * m4/getgroups.m4: Likewise.
69958         * m4/getline.m4: Likewise.
69959         * m4/lstat.m4: Likewise.
69960         * m4/malloc.m4: Likewise.
69961         * m4/memcmp.m4: Likewise.
69962         * m4/putenv.m4: Likewise.
69963         * m4/realloc.m4: Likewise.
69964         * m4/regex.m4: Likewise.
69965         * m4/stat.m4: Likewise.
69966         * m4/strftime.m4: Likewise.
69967         Suggestion from Alain Magloire.
69968
69969         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
69970         an argument.
69971
69972         * m4/regex.m4: Add a run-time Test for proper operation of
69973         re_compile_pattern.
69974
69975 1999-01-31  Jim Meyering  <meyering@ascend.com>
69976
69977         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
69978
69979 1999-01-30  Jim Meyering  <meyering@ascend.com>
69980
69981         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
69982
69983         * m4/jm-mktime.m4: Make this a wrapper around the official
69984         AM_FUNC_MKTIME rather than my private copy, now that the official one
69985         is up to date.
69986         * m4/mktime.m4: Remove file.
69987
69988         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
69989         * m4/uptime.m4: Likewise.
69990         * m4/uintmax_t.m4: Likewise.
69991
69992 1999-01-28  Jim Meyering  <meyering@ascend.com>
69993
69994         * m4/jm-macros.m4: Use jm_AFS.
69995         * m4/afs.m4: New file (from fileutils' configure.in).
69996
69997         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
69998         * m4/chown.m4: Likewise.
69999         * m4/d-ino.m4: Likewise.
70000         * m4/d-type.m4: Likewise.
70001         * m4/fnmatch.m4: Likewise.
70002         * m4/getgroups.m4: Likewise.
70003         * m4/gettext.m4: Likewise.
70004         * m4/jm-mktime.m4: Likewise.
70005         * m4/jm-winsz2.m4: Likewise.
70006         * m4/lcmessage.m4: Likewise.
70007         * m4/ls-mntd-fs.m4: Likewise.
70008         * m4/malloc.m4: Likewise.
70009         * m4/memcmp.m4: Likewise.
70010         * m4/putenv.m4: Likewise.
70011         * m4/realloc.m4: Likewise.
70012         * m4/st_mtim.m4: Likewise.
70013         * m4/strftime.m4: Likewise.
70014
70015 1999-01-16  Jim Meyering  <meyering@ascend.com>
70016
70017         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
70018         (ARGMATCH_DIE_DECL): Define.
70019
70020 1999-01-12  Jim Meyering  <meyering@ascend.com>
70021
70022         * m4/Makefile.am.in: Rewrite to avoid using fmt.
70023         Reported by Lars Hecking.
70024
70025 1999-01-10  Jim Meyering  <meyering@ascend.com>
70026
70027         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
70028         gross kludge.
70029         * m4/inttypes_h.m4: Likewise.
70030         * m4/lstat.m4: Likewise.
70031         * m4/malloc.m4: Likewise.
70032         * m4/readdir.m4: Likewise.
70033         * m4/realloc.m4: Likewise.
70034         * m4/st_dm_mode.m4: Likewise.
70035         * m4/stat.m4: Likewise.
70036         * m4/utimbuf.m4: Likewise.
70037         * m4/utimes.m4: Likewise.
70038
70039         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
70040         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
70041         comments in config.h.in are meaningful.
70042
70043         * m4/jm-macros.m4: Require autoconf-2.13 here.
70044
70045         * m4/regex.m4: By default, don't use the included regex.c on systems
70046         with glibc 2.  Suggestion from Uli Drepper.
70047
70048 1999-01-02  Jim Meyering  <meyering@ascend.com>
70049
70050         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
70051
70052 1998-12-18  Jim Meyering  <meyering@ascend.com>
70053
70054         * m4/Makefile.am.in (Makefile.am): Simplify rule.
70055         Based on a suggestion from Lars Hecking.
70056
70057 1998-11-16  Paul Eggert  <eggert@twinsun.com>
70058
70059         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
70060
70061 1998-11-16  Jim Meyering  <meyering@ascend.com>
70062
70063         * m4/lfs.m4: Double-quote the `uname...` expression.
70064
70065 1998-11-14  Jim Meyering  <meyering@ascend.com>
70066
70067         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
70068         * m4/stat.m4: Likewise.
70069
70070 1998-11-03  Jim Meyering  <meyering@ascend.com>
70071
70072         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
70073         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
70074
70075 1998-10-18  Jim Meyering  <meyering@ascend.com>
70076
70077         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
70078
70079 1998-10-17  Jim Meyering  <meyering@ascend.com>
70080
70081         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
70082         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
70083         calls for those previously hard-coded headers.  Instead, take a new
70084         parameter.
70085         (jm_CHECK_DECLARATIONS): Reflect interface change.
70086         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
70087         (jm_CHECK_DECL_LOCALTIME_R): New macro.
70088
70089         * m4/mktime.m4: Test for spring-forward gap before long-running test.
70090
70091 1998-10-14  Jim Meyering  <meyering@ascend.com>
70092
70093         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
70094         instead of "TZ=America/Vancouver".  From Paul Eggert.
70095
70096 1998-10-11  Jim Meyering  <meyering@ascend.com>
70097
70098         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
70099         This adds a test for a recently added compatibility fix for mktime.c.
70100         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
70101
70102 1998-09-27  Jim Meyering  <meyering@ascend.com>
70103
70104         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
70105
70106         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
70107         ../configure.in, including a change from Gordon Matzigkeit to allow
70108         cross-compiling for the Hurd.
70109
70110         * m4/glibc.m4: New file/macro to test for the GNU C Library
70111         versions 1 and 2.  From Gordon Matzigkeit.
70112         Indent.
70113
70114 1998-09-21  Jim Meyering  <meyering@ascend.com>
70115
70116         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
70117
70118 1998-08-18  Paul Eggert  <eggert@twinsun.com>
70119
70120         Port nanosecond-resolution times to UnixWare 2.1.2 and
70121         pedantic Solaris 2.6.
70122
70123         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
70124         AC_STRUCT_ST_MTIM.
70125         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
70126         Generate name of ns member, instead of just 1 or undef.
70127         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
70128
70129 1998-08-15  Jim Meyering  <meyering@ascend.com>
70130
70131         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
70132         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
70133         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
70134         instead of jm_TYPE_SSIZE_T.
70135
70136 1998-08-12  Jim Meyering  <meyering@ascend.com>
70137
70138         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
70139
70140 1998-08-02  Jim Meyering  <meyering@ascend.com>
70141
70142         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
70143         in acconfig.h manually.
70144
70145 1998-07-31  Paul Eggert  <eggert@twinsun.com>
70146
70147         * m4/st_mtim.m4: New file.
70148
70149 1998-07-28  Jim Meyering  <meyering@ascend.com>
70150
70151         * m4/utimes.m4: Undef stat.
70152
70153 1998-07-25  Jim Meyering  <meyering@ascend.com>
70154
70155         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
70156         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
70157
70158 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70159
70160         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70161         uid and gid actually remain unchanged.
70162
70163 1998-07-07  Jim Meyering  <meyering@ascend.com>
70164
70165         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70166
70167 1998-07-04  Jim Meyering  <meyering@ascend.com>
70168
70169         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70170         to prove that this macro can be used in packages without regex.c.
70171
70172 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70173
70174         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70175         is to be used.
70176
70177 1998-07-03  Jim Meyering  <meyering@ascend.com>
70178
70179         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70180
70181         * m4/gettext.m4: New file -- from gettext-0.10.35.
70182         * m4/lcmessage.m4: Likewise.
70183         * m4/progtest.m4: Likewise.
70184
70185         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70186         * m4/jm-macros.m4: Require the new macro.
70187
70188 1998-06-29  Jim Meyering  <meyering@ascend.com>
70189
70190         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70191         for the definition of NGROUPS (used in a system header included
70192         by sys/mount.h).
70193
70194 1998-06-28  Jim Meyering  <meyering@ascend.com>
70195
70196         * m4/ls-mntd-fs.m4: New file.
70197         * m4/fstypename.m4: New file.
70198
70199         * m4/jm-macros.m4: Require the new macro.
70200         * m4/jm-glibc-io.m4: New file.
70201
70202 1998-05-19  Jim Meyering  <meyering@ascend.com>
70203
70204         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70205         * m4/lchown.m4: New file.
70206
70207         * m4/Makefile.am.in: New file.
70208         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70209
70210 1998-05-14  Jim Meyering  <meyering@ascend.com>
70211
70212         * m4/Makefile.am (EXTRA_DIST): Add them.
70213         * m4/jm-macros.m4: New file.
70214         * m4/utimbuf.m4: New file.
70215
70216 1998-05-12  Jim Meyering  <meyering@ascend.com>
70217
70218         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70219
70220 1998-05-11  Jim Meyering  <meyering@ascend.com>
70221
70222         * m4/isc-posix.m4: New file.
70223
70224 1998-05-10  Jim Meyering  <meyering@ascend.com>
70225
70226         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70227
70228 1998-05-09  Jim Meyering  <meyering@ascend.com>
70229
70230         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70231         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70232         with automake.
70233
70234         * m4/ssize_t.m4: New file.
70235         * m4/mktime.m4: Remove file -- the new automake has this now.
70236
70237 1998-04-26  Jim Meyering  <meyering@ascend.com>
70238
70239         * m4/assert.m4: New file.
70240         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70241
70242 1998-04-05  Jim Meyering  <meyering@ascend.com>
70243
70244         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70245         (jm_PREREQ): Use it here.
70246
70247 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70248
70249         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70250         in acconfig.h.
70251
70252 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70253
70254         * m4/prereq.m4: New file.
70255         * m4/error.m4: New file.
70256         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70257
70258 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70259
70260         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70261         cache-check for the same variable -- that defeated the purpose of
70262         the test; the test program was never run.  This was a problem only
70263         on systems with losing getline functions -- HP-UX 10.20 is one.
70264         Reported by Bjorn Helgaas.
70265
70266 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70267
70268         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70269
70270 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70271
70272         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70273
70274         * m4/const.m4: New file.  Use an initializer in this declaration
70275         typedef int charset[2]; const charset x;
70276         Reported by Bob Glickstein.
70277
70278 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70279
70280         * m4/chown.m4: Fix reversed types on -1 args to chown.
70281         From Kaveh Ghazi.
70282
70283 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70284
70285         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70286         Add lseek and memchr.
70287
70288         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70289         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70290         have a 20-character limit on names.
70291
70292 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70293
70294         * m4/inttypes_h.m4: New file.
70295         * m4/uintmax_t.m4: New file.
70296         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70297
70298
70299         -----
70300
70301         Local Variables:
70302         coding: utf-8
70303         End:
70304
70305         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70306
70307         Copying and distribution of this file, with or without
70308         modification, are permitted provided the copyright notice
70309         and this notice are preserved.